Files
shlink-web-client/dependabot/npm_and_yarn/shlink-2a77b0991b/assets/index-gW5f6Z-L.js

807 lines
1.4 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.
function Az(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W1={exports:{}},Bd={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pA;function Tz(){if(pA)return Bd;pA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:o}}return Bd.Fragment=t,Bd.jsx=n,Bd.jsxs=n,Bd}var gA;function Oz(){return gA||(gA=1,W1.exports=Tz()),W1.exports}var y=Oz(),K1={exports:{}},Fd={},Z1={exports:{}},X1={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vA;function jz(){return vA||(vA=1,function(e){function t(Z,I){var k=Z.length;Z.push(I);e:for(;0<k;){var U=k-1>>>1,z=Z[U];if(0<i(z,I))Z[U]=I,Z[k]=z,k=U;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var I=Z[0],k=Z.pop();if(k!==I){Z[0]=k;e:for(var U=0,z=Z.length,P=z>>>1;U<P;){var G=2*(U+1)-1,Y=Z[G],ne=G+1,ue=Z[ne];if(0>i(Y,k))ne<z&&0>i(ue,Y)?(Z[U]=ue,Z[ne]=k,U=ne):(Z[U]=Y,Z[G]=k,U=G);else if(ne<z&&0>i(ue,k))Z[U]=ue,Z[ne]=k,U=ne;else break e}}return I}function i(Z,I){var k=Z.sortIndex-I.sortIndex;return k!==0?k:Z.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var d=[],f=[],m=1,p=null,b=3,_=!1,w=!1,x=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function N(Z){for(var I=n(f);I!==null;){if(I.callback===null)r(f);else if(I.startTime<=Z)r(f),I.sortIndex=I.expirationTime,t(d,I);else break;I=n(f)}}function F(Z){if(x=!1,N(Z),!w)if(n(d)!==null)w=!0,$||($=!0,te());else{var I=n(f);I!==null&&se(F,I.startTime-Z)}}var $=!1,K=-1,Q=5,oe=-1;function ee(){return E?!0:!(e.unstable_now()-oe<Q)}function J(){if(E=!1,$){var Z=e.unstable_now();oe=Z;var I=!0;try{e:{w=!1,x&&(x=!1,j(K),K=-1),_=!0;var k=b;try{t:{for(N(Z),p=n(d);p!==null&&!(p.expirationTime>Z&&ee());){var U=p.callback;if(typeof U=="function"){p.callback=null,b=p.priorityLevel;var z=U(p.expirationTime<=Z);if(Z=e.unstable_now(),typeof z=="function"){p.callback=z,N(Z),I=!0;break t}p===n(d)&&r(d),N(Z)}else r(d);p=n(d)}if(p!==null)I=!0;else{var P=n(f);P!==null&&se(F,P.startTime-Z),I=!1}}break e}finally{p=null,b=k,_=!1}I=void 0}}finally{I?te():$=!1}}}var te;if(typeof O=="function")te=function(){O(J)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,X=he.port2;he.port1.onmessage=J,te=function(){X.postMessage(null)}}else te=function(){T(J,0)};function se(Z,I){K=T(function(){Z(e.unstable_now())},I)}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(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(Z){switch(b){case 1:case 2:case 3:var I=3;break;default:I=b}var k=b;b=I;try{return Z()}finally{b=k}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(Z,I){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var k=b;b=Z;try{return I()}finally{b=k}},e.unstable_scheduleCallback=function(Z,I,k){var U=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?U+k:U):k=U,Z){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=k+z,Z={id:m++,callback:I,priorityLevel:Z,startTime:k,expirationTime:z,sortIndex:-1},k>U?(Z.sortIndex=k,t(f,Z),n(d)===null&&Z===n(f)&&(x?(j(K),K=-1):x=!0,se(F,k-U))):(Z.sortIndex=z,t(d,Z),w||_||(w=!0,$||($=!0,te()))),Z},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(Z){var I=b;return function(){var k=b;b=I;try{return Z.apply(this,arguments)}finally{b=k}}}}(X1)),X1}var yA;function Mz(){return yA||(yA=1,Z1.exports=jz()),Z1.exports}var Q1={exports:{}},mt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bA;function Pz(){if(bA)return mt;bA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),b=Symbol.iterator;function _(P){return P===null||typeof P!="object"?null:(P=b&&P[b]||P["@@iterator"],typeof P=="function"?P:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function T(P,G,Y){this.props=P,this.context=G,this.refs=E,this.updater=Y||w}T.prototype.isReactComponent={},T.prototype.setState=function(P,G){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,G,"setState")},T.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function j(){}j.prototype=T.prototype;function O(P,G,Y){this.props=P,this.context=G,this.refs=E,this.updater=Y||w}var N=O.prototype=new j;N.constructor=O,x(N,T.prototype),N.isPureReactComponent=!0;var F=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function oe(P,G,Y){var ne=Y.ref;return{$$typeof:e,type:P,key:G,ref:ne!==void 0?ne:null,props:Y}}function ee(P,G){return oe(P.type,G,P.props)}function J(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function te(P){var G={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(Y){return G[Y]})}var he=/\/+/g;function X(P,G){return typeof P=="object"&&P!==null&&P.key!=null?te(""+P.key):G.toString(36)}function se(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then($,$):(P.status="pending",P.then(function(G){P.status==="pending"&&(P.status="fulfilled",P.value=G)},function(G){P.status==="pending"&&(P.status="rejected",P.reason=G)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function Z(P,G,Y,ne,ue){var fe=typeof P;(fe==="undefined"||fe==="boolean")&&(P=null);var ge=!1;if(P===null)ge=!0;else switch(fe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(P.$$typeof){case e:case t:ge=!0;break;case m:return ge=P._init,Z(ge(P._payload),G,Y,ne,ue)}}if(ge)return ue=ue(P),ge=ne===""?"."+X(P,0):ne,F(ue)?(Y="",ge!=null&&(Y=ge.replace(he,"$&/")+"/"),Z(ue,G,Y,"",function(W){return W})):ue!=null&&(J(ue)&&(ue=ee(ue,Y+(ue.key==null||P&&P.key===ue.key?"":(""+ue.key).replace(he,"$&/")+"/")+ge)),G.push(ue)),1;ge=0;var D=ne===""?".":ne+":";if(F(P))for(var B=0;B<P.length;B++)ne=P[B],fe=D+X(ne,B),ge+=Z(ne,G,Y,fe,ue);else if(B=_(P),typeof B=="function")for(P=B.call(P),B=0;!(ne=P.next()).done;)ne=ne.value,fe=D+X(ne,B++),ge+=Z(ne,G,Y,fe,ue);else if(fe==="object"){if(typeof P.then=="function")return Z(se(P),G,Y,ne,ue);throw G=String(P),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ge}function I(P,G,Y){if(P==null)return P;var ne=[],ue=0;return Z(P,ne,"","",function(fe){return G.call(Y,fe,ue++)}),ne}function k(P){if(P._status===-1){var G=P._result;G=G(),G.then(function(Y){(P._status===0||P._status===-1)&&(P._status=1,P._result=Y)},function(Y){(P._status===0||P._status===-1)&&(P._status=2,P._result=Y)}),P._status===-1&&(P._status=0,P._result=G)}if(P._status===1)return P._result.default;throw P._result}var U=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},z={map:I,forEach:function(P,G,Y){I(P,function(){G.apply(this,arguments)},Y)},count:function(P){var G=0;return I(P,function(){G++}),G},toArray:function(P){return I(P,function(G){return G})||[]},only:function(P){if(!J(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return mt.Activity=p,mt.Children=z,mt.Component=T,mt.Fragment=n,mt.Profiler=i,mt.PureComponent=O,mt.StrictMode=r,mt.Suspense=d,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,mt.__COMPILER_RUNTIME={__proto__:null,c:function(P){return K.H.useMemoCache(P)}},mt.cache=function(P){return function(){return P.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(P,G,Y){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var ne=x({},P.props),ue=P.key;if(G!=null)for(fe in G.key!==void 0&&(ue=""+G.key),G)!Q.call(G,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&G.ref===void 0||(ne[fe]=G[fe]);var fe=arguments.length-2;if(fe===1)ne.children=Y;else if(1<fe){for(var ge=Array(fe),D=0;D<fe;D++)ge[D]=arguments[D+2];ne.children=ge}return oe(P.type,ue,ne)},mt.createContext=function(P){return P={$$typeof:s,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},mt.createElement=function(P,G,Y){var ne,ue={},fe=null;if(G!=null)for(ne in G.key!==void 0&&(fe=""+G.key),G)Q.call(G,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ue[ne]=G[ne]);var ge=arguments.length-2;if(ge===1)ue.children=Y;else if(1<ge){for(var D=Array(ge),B=0;B<ge;B++)D[B]=arguments[B+2];ue.children=D}if(P&&P.defaultProps)for(ne in ge=P.defaultProps,ge)ue[ne]===void 0&&(ue[ne]=ge[ne]);return oe(P,fe,ue)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(P){return{$$typeof:u,render:P}},mt.isValidElement=J,mt.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:k}},mt.memo=function(P,G){return{$$typeof:f,type:P,compare:G===void 0?null:G}},mt.startTransition=function(P){var G=K.T,Y={};K.T=Y;try{var ne=P(),ue=K.S;ue!==null&&ue(Y,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then($,U)}catch(fe){U(fe)}finally{G!==null&&Y.types!==null&&(G.types=Y.types),K.T=G}},mt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},mt.use=function(P){return K.H.use(P)},mt.useActionState=function(P,G,Y){return K.H.useActionState(P,G,Y)},mt.useCallback=function(P,G){return K.H.useCallback(P,G)},mt.useContext=function(P){return K.H.useContext(P)},mt.useDebugValue=function(){},mt.useDeferredValue=function(P,G){return K.H.useDeferredValue(P,G)},mt.useEffect=function(P,G){return K.H.useEffect(P,G)},mt.useEffectEvent=function(P){return K.H.useEffectEvent(P)},mt.useId=function(){return K.H.useId()},mt.useImperativeHandle=function(P,G,Y){return K.H.useImperativeHandle(P,G,Y)},mt.useInsertionEffect=function(P,G){return K.H.useInsertionEffect(P,G)},mt.useLayoutEffect=function(P,G){return K.H.useLayoutEffect(P,G)},mt.useMemo=function(P,G){return K.H.useMemo(P,G)},mt.useOptimistic=function(P,G){return K.H.useOptimistic(P,G)},mt.useReducer=function(P,G,Y){return K.H.useReducer(P,G,Y)},mt.useRef=function(P){return K.H.useRef(P)},mt.useState=function(P){return K.H.useState(P)},mt.useSyncExternalStore=function(P,G,Y){return K.H.useSyncExternalStore(P,G,Y)},mt.useTransition=function(){return K.H.useTransition()},mt.version="19.2.0",mt}var _A;function pf(){return _A||(_A=1,Q1.exports=Pz()),Q1.exports}var J1={exports:{}},jr={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xA;function Rz(){if(xA)return jr;xA=1;var e=pf();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,jr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(d,f,null,m)},jr.flushSync=function(d){var f=s.T,m=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=f,r.p=m,r.d.f()}},jr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},jr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},jr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:_}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:b,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},jr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},jr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},jr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},jr.requestFormReset=function(d){r.d.r(d)},jr.unstable_batchedUpdates=function(d,f){return d(f)},jr.useFormState=function(d,f,m){return s.H.useFormState(d,f,m)},jr.useFormStatus=function(){return s.H.useHostTransitionStatus()},jr.version="19.2.0",jr}var wA;function dR(){if(wA)return J1.exports;wA=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(),J1.exports=Rz(),J1.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var SA;function Lz(){if(SA)return Fd;SA=1;var e=Mz(),t=pf(),n=dR();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)l+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var l=a,h=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(h=l.return),a=l.return;while(a)}return l.tag===3?h:null}function s(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function u(a){if(a.tag===31){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function d(a){if(o(a)!==a)throw Error(r(188))}function f(a){var l=a.alternate;if(!l){if(l=o(a),l===null)throw Error(r(188));return l!==a?null:a}for(var h=a,v=l;;){var A=h.return;if(A===null)break;var M=A.alternate;if(M===null){if(v=A.return,v!==null){h=v;continue}break}if(A.child===M.child){for(M=A.child;M;){if(M===h)return d(A),a;if(M===v)return d(A),l;M=M.sibling}throw Error(r(188))}if(h.return!==v.return)h=A,v=M;else{for(var q=!1,ie=A.child;ie;){if(ie===h){q=!0,h=A,v=M;break}if(ie===v){q=!0,v=A,h=M;break}ie=ie.sibling}if(!q){for(ie=M.child;ie;){if(ie===h){q=!0,h=M,v=A;break}if(ie===v){q=!0,v=M,h=A;break}ie=ie.sibling}if(!q)throw Error(r(189))}}if(h.alternate!==v)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?a:l}function m(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=m(a),l!==null)return l;a=a.sibling}return null}var p=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function te(a){return a===null||typeof a!="object"?null:(a=J&&a[J]||a["@@iterator"],typeof a=="function"?a:null)}var he=Symbol.for("react.client.reference");function X(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===he?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case x:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case F:return"Suspense";case $:return"SuspenseList";case oe:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case w:return"Portal";case O:return a.displayName||"Context";case j:return(a._context.displayName||"Context")+".Consumer";case N:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case K:return l=a.displayName||null,l!==null?l:X(a.type)||"Memo";case Q:l=a._payload,a=a._init;try{return X(a(l))}catch{}}return null}var se=Array.isArray,Z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},U=[],z=-1;function P(a){return{current:a}}function G(a){0>z||(a.current=U[z],U[z]=null,z--)}function Y(a,l){z++,U[z]=a.current,a.current=l}var ne=P(null),ue=P(null),fe=P(null),ge=P(null);function D(a,l){switch(Y(fe,l),Y(ue,a),Y(ne,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?UE(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=UE(l),a=zE(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(ne),Y(ne,a)}function B(){G(ne),G(ue),G(fe)}function W(a){a.memoizedState!==null&&Y(ge,a);var l=ne.current,h=zE(l,a.type);l!==h&&(Y(ue,a),Y(ne,h))}function le(a){ue.current===a&&(G(ne),G(ue)),ge.current===a&&(G(ge),kd._currentValue=k)}var H,ae;function ce(a){if(H===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);H=l&&l[1]||"",ae=-1<h.stack.indexOf(`
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
`+H+a+ae}var ve=!1;function de(a,l){if(!a||ve)return"";ve=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(l){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(Le){var Oe=Le}Reflect.construct(a,[],ze)}else{try{ze.call()}catch(Le){Oe=Le}a.call(ze.prototype)}}else{try{throw Error()}catch(Le){Oe=Le}(ze=a())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(Le){if(Le&&Oe&&typeof Le.stack=="string")return[Le.stack,Oe.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=v.DetermineComponentFrameRoot(),q=M[0],ie=M[1];if(q&&ie){var pe=q.split(`
`),Ee=ie.split(`
`);for(A=v=0;v<pe.length&&!pe[v].includes("DetermineComponentFrameRoot");)v++;for(;A<Ee.length&&!Ee[A].includes("DetermineComponentFrameRoot");)A++;if(v===pe.length||A===Ee.length)for(v=pe.length-1,A=Ee.length-1;1<=v&&0<=A&&pe[v]!==Ee[A];)A--;for(;1<=v&&0<=A;v--,A--)if(pe[v]!==Ee[A]){if(v!==1||A!==1)do if(v--,A--,0>A||pe[v]!==Ee[A]){var ke=`
`+pe[v].replace(" at new "," at ");return a.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",a.displayName)),ke}while(1<=v&&0<=A);break}}}finally{ve=!1,Error.prepareStackTrace=h}return(h=a?a.displayName||a.name:"")?ce(h):""}function we(a,l){switch(a.tag){case 26:case 27:case 5:return ce(a.type);case 16:return ce("Lazy");case 13:return a.child!==l&&l!==null?ce("Suspense Fallback"):ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return de(a.type,!1);case 11:return de(a.type.render,!1);case 1:return de(a.type,!0);case 31:return ce("Activity");default:return""}}function Ae(a){try{var l="",h=null;do l+=we(a,h),h=a,a=a.return;while(a);return l}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}var Ne=Object.prototype.hasOwnProperty,Ve=e.unstable_scheduleCallback,Fe=e.unstable_cancelCallback,He=e.unstable_shouldYield,be=e.unstable_requestPaint,_e=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,Re=e.unstable_ImmediatePriority,Me=e.unstable_UserBlockingPriority,$e=e.unstable_NormalPriority,Ge=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,ut=e.log,rt=e.unstable_setDisableYieldValue,dt=null,gt=null;function Dt(a){if(typeof ut=="function"&&rt(a),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(dt,a)}catch{}}var yt=Math.clz32?Math.clz32:jl,Ui=Math.log,Kn=Math.LN2;function jl(a){return a>>>=0,a===0?32:31-(Ui(a)/Kn|0)|0}var Dr=256,mo=262144,po=4194304;function zi(a){var l=a&42;if(l!==0)return l;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Da(a,l,h){var v=a.pendingLanes;if(v===0)return 0;var A=0,M=a.suspendedLanes,q=a.pingedLanes;a=a.warmLanes;var ie=v&134217727;return ie!==0?(v=ie&~M,v!==0?A=zi(v):(q&=ie,q!==0?A=zi(q):h||(h=ie&~a,h!==0&&(A=zi(h))))):(ie=v&~M,ie!==0?A=zi(ie):q!==0?A=zi(q):h||(h=v&~a,h!==0&&(A=zi(h)))),A===0?0:l!==0&&l!==A&&(l&M)===0&&(M=A&-A,h=l&-l,M>=h||M===32&&(h&4194048)!==0)?l:A}function ci(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function Cn(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fn(){var a=po;return po<<=1,(po&62914560)===0&&(po=4194304),a}function Zn(a){for(var l=[],h=0;31>h;h++)l.push(a);return l}function _n(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Xn(a,l,h,v,A,M){var q=a.pendingLanes;a.pendingLanes=h,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=h,a.entangledLanes&=h,a.errorRecoveryDisabledLanes&=h,a.shellSuspendCounter=0;var ie=a.entanglements,pe=a.expirationTimes,Ee=a.hiddenUpdates;for(h=q&~h;0<h;){var ke=31-yt(h),ze=1<<ke;ie[ke]=0,pe[ke]=-1;var Oe=Ee[ke];if(Oe!==null)for(Ee[ke]=null,ke=0;ke<Oe.length;ke++){var Le=Oe[ke];Le!==null&&(Le.lane&=-536870913)}h&=~ze}v!==0&&En(a,v,0),M!==0&&A===0&&a.tag!==0&&(a.suspendedLanes|=M&~(q&~l))}function En(a,l,h){a.pendingLanes|=l,a.suspendedLanes&=~l;var v=31-yt(l);a.entangledLanes|=l,a.entanglements[v]=a.entanglements[v]|1073741824|h&261930}function Gr(a,l){var h=a.entangledLanes|=l;for(a=a.entanglements;h;){var v=31-yt(h),A=1<<v;A&l|a[v]&l&&(a[v]|=l),h&=~A}}function Yr(a,l){var h=l&-l;return h=(h&42)!==0?1:Dn(h),(h&(a.suspendedLanes|l))!==0?0:h}function Dn(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function it(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function zf(){var a=I.p;return a!==0?a:(a=window.event,a===void 0?32:lA(a.type))}function Bf(a,l){var h=I.p;try{return I.p=a,l()}finally{I.p=h}}var la=Math.random().toString(36).slice(2),Fn="__reactFiber$"+la,or="__reactProps$"+la,go="__reactContainer$"+la,ka="__reactEvents$"+la,wm="__reactListeners$"+la,r0="__reactHandles$"+la,Sm="__reactResources$"+la,Ml="__reactMarker$"+la;function Ff(a){delete a[Fn],delete a[or],delete a[ka],delete a[wm],delete a[r0]}function vo(a){var l=a[Fn];if(l)return l;for(var h=a.parentNode;h;){if(l=h[go]||h[Fn]){if(h=l.alternate,l.child!==null||h!==null&&h.child!==null)for(a=GE(a);a!==null;){if(h=a[Fn])return h;a=GE(a)}return l}a=h,h=a.parentNode}return null}function ds(a){if(a=a[Fn]||a[go]){var l=a.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return a}return null}function Ia(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(r(33))}function hs(a){var l=a[Sm];return l||(l=a[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function $n(a){a[Ml]=!0}var Cm=new Set,Em={};function yo(a,l){Ua(a,l),Ua(a+"Capture",l)}function Ua(a,l){for(Em[a]=l,a=0;a<l.length;a++)Cm.add(l[a])}var Pl=RegExp("^[: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]*$"),$f={},Vf={};function Rl(a){return Ne.call(Vf,a)?!0:Ne.call($f,a)?!1:Pl.test(a)?Vf[a]=!0:($f[a]=!0,!1)}function wt(a,l,h){if(Rl(l))if(h===null)a.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var v=l.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+h)}}function Yt(a,l,h){if(h===null)a.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+h)}}function Wr(a,l,h,v){if(v===null)a.removeAttribute(h);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(h);return}a.setAttributeNS(l,h,""+v)}}function Qn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function bo(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Hf(a,l,h){var v=Object.getOwnPropertyDescriptor(a.constructor.prototype,l);if(!a.hasOwnProperty(l)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var A=v.get,M=v.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return A.call(this)},set:function(q){h=""+q,M.call(this,q)}}),Object.defineProperty(a,l,{enumerable:v.enumerable}),{getValue:function(){return h},setValue:function(q){h=""+q},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function ht(a){if(!a._valueTracker){var l=bo(a)?"checked":"value";a._valueTracker=Hf(a,l,""+a[l])}}function dn(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var h=l.getValue(),v="";return a&&(v=bo(a)?a.checked?"true":"false":a.value),a=v,a!==h?(l.setValue(a),!0):!1}function ms(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var Ku=/[\n"\\]/g;function an(a){return a.replace(Ku,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function qf(a,l,h,v,A,M,q,ie){a.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?a.type=q:a.removeAttribute("type"),l!=null?q==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+Qn(l)):a.value!==""+Qn(l)&&(a.value=""+Qn(l)):q!=="submit"&&q!=="reset"||a.removeAttribute("value"),l!=null?ua(a,q,Qn(l)):h!=null?ua(a,q,Qn(h)):v!=null&&a.removeAttribute("value"),A==null&&M!=null&&(a.defaultChecked=!!M),A!=null&&(a.checked=A&&typeof A!="function"&&typeof A!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?a.name=""+Qn(ie):a.removeAttribute("name")}function Ll(a,l,h,v,A,M,q,ie){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(a.type=M),l!=null||h!=null){if(!(M!=="submit"&&M!=="reset"||l!=null)){ht(a);return}h=h!=null?""+Qn(h):"",l=l!=null?""+Qn(l):h,ie||l===a.value||(a.value=l),a.defaultValue=l}v=v??A,v=typeof v!="function"&&typeof v!="symbol"&&!!v,a.checked=ie?a.checked:!!v,a.defaultChecked=!!v,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(a.name=q),ht(a)}function ua(a,l,h){l==="number"&&ms(a.ownerDocument)===a||a.defaultValue===""+h||(a.defaultValue=""+h)}function Qt(a,l,h,v){if(a=a.options,l){l={};for(var A=0;A<h.length;A++)l["$"+h[A]]=!0;for(h=0;h<a.length;h++)A=l.hasOwnProperty("$"+a[h].value),a[h].selected!==A&&(a[h].selected=A),A&&v&&(a[h].defaultSelected=!0)}else{for(h=""+Qn(h),l=null,A=0;A<a.length;A++){if(a[A].value===h){a[A].selected=!0,v&&(a[A].defaultSelected=!0);return}l!==null||a[A].disabled||(l=a[A])}l!==null&&(l.selected=!0)}}function za(a,l,h){if(l!=null&&(l=""+Qn(l),l!==a.value&&(a.value=l),h==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=h!=null?""+Qn(h):""}function ps(a,l,h,v){if(l==null){if(v!=null){if(h!=null)throw Error(r(92));if(se(v)){if(1<v.length)throw Error(r(93));v=v[0]}h=v}h==null&&(h=""),l=h}h=Qn(l),a.defaultValue=h,v=a.textContent,v===h&&v!==""&&v!==null&&(a.value=v),ht(a)}function Bi(a,l){if(l){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=l;return}}a.textContent=l}var Gf=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gs(a,l,h){var v=l.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":v?a.setProperty(l,h):typeof h!="number"||h===0||Gf.has(l)?l==="float"?a.cssFloat=h:a[l]=(""+h).trim():a[l]=h+"px"}function Zu(a,l,h){if(l!=null&&typeof l!="object")throw Error(r(62));if(a=a.style,h!=null){for(var v in h)!h.hasOwnProperty(v)||l!=null&&l.hasOwnProperty(v)||(v.indexOf("--")===0?a.setProperty(v,""):v==="float"?a.cssFloat="":a[v]="");for(var A in l)v=l[A],l.hasOwnProperty(A)&&h[A]!==v&&gs(a,A,v)}else for(var M in l)l.hasOwnProperty(M)&&gs(a,M,l[M])}function Nl(a){if(a.indexOf("-")===-1)return!1;switch(a){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 Xu=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vs(a){return Yf.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Kr(){}var Qu=null;function Dl(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ys=null,ft=null;function fi(a){var l=ds(a);if(l&&(a=l.stateNode)){var h=a[or]||null;e:switch(a=l.stateNode,l.type){case"input":if(qf(a,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),l=h.name,h.type==="radio"&&l!=null){for(h=a;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+an(""+l)+'"][type="radio"]'),l=0;l<h.length;l++){var v=h[l];if(v!==a&&v.form===a.form){var A=v[or]||null;if(!A)throw Error(r(90));qf(v,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(l=0;l<h.length;l++)v=h[l],v.form===a.form&&dn(v)}break e;case"textarea":za(a,h.value,h.defaultValue);break e;case"select":l=h.value,l!=null&&Qt(a,!!h.multiple,l,!1)}}}var $t=!1;function Wf(a,l,h){if($t)return a(l,h);$t=!0;try{var v=a(l);return v}finally{if($t=!1,(ys!==null||ft!==null)&&(xp(),ys&&(l=ys,a=ft,ft=ys=null,fi(l),a)))for(l=0;l<a.length;l++)fi(a[l])}}function _o(a,l){var h=a.stateNode;if(h===null)return null;var v=h[or]||null;if(v===null)return null;h=v[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(a=a.type,v=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!v;break e;default:a=!1}if(a)return null;if(h&&typeof h!="function")throw Error(r(231,l,typeof h));return h}var di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kl=!1;if(di)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){kl=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{kl=!1}var Fi=null,xo=null,An=null;function Ba(){if(An)return An;var a,l=xo,h=l.length,v,A="value"in Fi?Fi.value:Fi.textContent,M=A.length;for(a=0;a<h&&l[a]===A[a];a++);var q=h-a;for(v=1;v<=q&&l[h-v]===A[M-v];v++);return An=A.slice(a,1<v?1-v:void 0)}function Il(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Ul(){return!0}function Am(){return!1}function gr(a){function l(h,v,A,M,q){this._reactName=h,this._targetInst=A,this.type=v,this.nativeEvent=M,this.target=q,this.currentTarget=null;for(var ie in a)a.hasOwnProperty(ie)&&(h=a[ie],this[ie]=h?h(M):M[ie]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Ul:Am,this.isPropagationStopped=Am,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Ul)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Ul)},persist:function(){},isPersistent:Ul}),l}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=gr(ca),bs=p({},ca,{view:0,detail:0}),Ot=gr(bs),Kf,kr,fa,zl=p({},bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:td,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==fa&&(fa&&a.type==="mousemove"?(Kf=a.screenX-fa.screenX,kr=a.screenY-fa.screenY):kr=Kf=0,fa=a),Kf)},movementY:function(a){return"movementY"in a?a.movementY:kr}}),Tm=gr(zl),Zf=p({},zl,{dataTransfer:0}),i0=gr(Zf),Om=p({},bs,{relatedTarget:0}),Xf=gr(Om),a0=p({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),Qf=gr(a0),o0=p({},ca,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$i=gr(o0),s0=p({},ca,{data:0}),Jf=gr(s0),Fa={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jm={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"},Mm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ed(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=Mm[a])?!!l[a]:!1}function td(){return ed}var Pm=p({},bs,{key:function(a){if(a.key){var l=Fa[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=Il(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?jm[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:td,charCode:function(a){return a.type==="keypress"?Il(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Il(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Rm=gr(Pm),l0=p({},zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lm=gr(l0),nd=p({},bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:td}),u0=gr(nd),Nm=p({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dm=gr(Nm),ec=p({},zl,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),wo=gr(ec),c0=p({},ca,{newState:0,oldState:0}),Bl=gr(c0),Zr=[9,13,27,32],tc=di&&"CompositionEvent"in window,_s=null;di&&"documentMode"in document&&(_s=document.documentMode);var f0=di&&"TextEvent"in window&&!_s,nc=di&&(!tc||_s&&8<_s&&11>=_s),rc=" ",km=!1;function Im(a,l){switch(a){case"keyup":return Zr.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var xs=!1;function mi(a,l){switch(a){case"compositionend":return rd(l);case"keypress":return l.which!==32?null:(km=!0,rc);case"textInput":return a=l.data,a===rc&&km?null:a;default:return null}}function ws(a,l){if(xs)return a==="compositionend"||!tc&&Im(a,l)?(a=Ba(),An=xo=Fi=null,xs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return nc&&l.locale!=="ko"?null:l.data;default:return null}}var d0={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 Vi(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!d0[a.type]:l==="textarea"}function Um(a,l,h,v){ys?ft?ft.push(v):ft=[v]:ys=v,l=Op(l,"onChange"),0<l.length&&(h=new Ju("onChange","change",null,h,v),a.push({event:h,listeners:l}))}var Hi=null,Fl=null;function $l(a){RE(a,0)}function Vl(a){var l=Ia(a);if(dn(l))return a}function Hl(a,l){if(a==="change")return l}var zm=!1;if(di){var qi;if(di){var Ss="oninput"in document;if(!Ss){var Bm=document.createElement("div");Bm.setAttribute("oninput","return;"),Ss=typeof Bm.oninput=="function"}qi=Ss}else qi=!1;zm=qi&&(!document.documentMode||9<document.documentMode)}function ic(){Hi&&(Hi.detachEvent("onpropertychange",Fm),Fl=Hi=null)}function Fm(a){if(a.propertyName==="value"&&Vl(Fl)){var l=[];Um(l,Fl,a,Dl(a)),Wf($l,l)}}function da(a,l,h){a==="focusin"?(ic(),Hi=l,Fl=h,Hi.attachEvent("onpropertychange",Fm)):a==="focusout"&&ic()}function h0(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vl(Fl)}function Cs(a,l){if(a==="click")return Vl(l)}function m0(a,l){if(a==="input"||a==="change")return Vl(l)}function ha(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var sr=typeof Object.is=="function"?Object.is:ha;function Es(a,l){if(sr(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var h=Object.keys(a),v=Object.keys(l);if(h.length!==v.length)return!1;for(v=0;v<h.length;v++){var A=h[v];if(!Ne.call(l,A)||!sr(a[A],l[A]))return!1}return!0}function ac(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function ql(a,l){var h=ac(a);a=0;for(var v;h;){if(h.nodeType===3){if(v=a+h.textContent.length,a<=l&&v>=l)return{node:h,offset:l-a};a=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=ac(h)}}function oc(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?oc(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function Gl(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=ms(a.document);l instanceof a.HTMLIFrameElement;){try{var h=typeof l.contentWindow.location.href=="string"}catch{h=!1}if(h)a=l.contentWindow;else break;l=ms(a.document)}return l}function $a(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var sc=di&&"documentMode"in document&&11>=document.documentMode,Va=null,lc=null,Yl=null,As=!1;function $m(a,l,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;As||Va==null||Va!==ms(v)||(v=Va,"selectionStart"in v&&$a(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Yl&&Es(Yl,v)||(Yl=v,v=Op(lc,"onSelect"),0<v.length&&(l=new Ju("onSelect","select",null,l,h),a.push({event:l,listeners:v}),l.target=Va)))}function Ha(a,l){var h={};return h[a.toLowerCase()]=l.toLowerCase(),h["Webkit"+a]="webkit"+l,h["Moz"+a]="moz"+l,h}var Ts={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionrun:Ha("Transition","TransitionRun"),transitionstart:Ha("Transition","TransitionStart"),transitioncancel:Ha("Transition","TransitionCancel"),transitionend:Ha("Transition","TransitionEnd")},uc={},Vm={};di&&(Vm=document.createElement("div").style,"AnimationEvent"in window||(delete Ts.animationend.animation,delete Ts.animationiteration.animation,delete Ts.animationstart.animation),"TransitionEvent"in window||delete Ts.transitionend.transition);function lr(a){if(uc[a])return uc[a];if(!Ts[a])return a;var l=Ts[a],h;for(h in l)if(l.hasOwnProperty(h)&&h in Vm)return uc[a]=l[h];return a}var Wl=lr("animationend"),Hm=lr("animationiteration"),Kl=lr("animationstart"),p0=lr("transitionrun"),qm=lr("transitionstart"),g0=lr("transitioncancel"),Os=lr("transitionend"),Gm=new Map,qa="abort auxClick beforeToggle 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(" ");qa.push("scrollEnd");function Xr(a,l){Gm.set(a,l),yo(l,[a])}var Zl=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Qr=[],Tr=0,cc=0;function Xl(){for(var a=Tr,l=cc=Tr=0;l<a;){var h=Qr[l];Qr[l++]=null;var v=Qr[l];Qr[l++]=null;var A=Qr[l];Qr[l++]=null;var M=Qr[l];if(Qr[l++]=null,v!==null&&A!==null){var q=v.pending;q===null?A.next=A:(A.next=q.next,q.next=A),v.pending=A}M!==0&&js(h,A,M)}}function Ga(a,l,h,v){Qr[Tr++]=a,Qr[Tr++]=l,Qr[Tr++]=h,Qr[Tr++]=v,cc|=v,a.lanes|=v,a=a.alternate,a!==null&&(a.lanes|=v)}function id(a,l,h,v){return Ga(a,l,h,v),Ql(a)}function Gi(a,l){return Ga(a,null,null,l),Ql(a)}function js(a,l,h){a.lanes|=h;var v=a.alternate;v!==null&&(v.lanes|=h);for(var A=!1,M=a.return;M!==null;)M.childLanes|=h,v=M.alternate,v!==null&&(v.childLanes|=h),M.tag===22&&(a=M.stateNode,a===null||a._visibility&1||(A=!0)),a=M,M=M.return;return a.tag===3?(M=a.stateNode,A&&l!==null&&(A=31-yt(h),a=M.hiddenUpdates,v=a[A],v===null?a[A]=[l]:v.push(l),l.lane=h|536870912),M):null}function Ql(a){if(50<jd)throw jd=0,y1=null,Error(r(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var So={};function v0(a,l,h,v){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Or(a,l,h,v){return new v0(a,l,h,v)}function fc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Yi(a,l){var h=a.alternate;return h===null?(h=Or(a.tag,l,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h.alternate=a,a.alternate=h):(h.pendingProps=l,h.type=a.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=a.flags&65011712,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue,l=a.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h.refCleanup=a.refCleanup,h}function ad(a,l){a.flags&=65011714;var h=a.alternate;return h===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=h.childLanes,a.lanes=h.lanes,a.child=h.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=h.memoizedProps,a.memoizedState=h.memoizedState,a.updateQueue=h.updateQueue,a.type=h.type,l=h.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function Jl(a,l,h,v,A,M){var q=0;if(v=a,typeof a=="function")fc(a)&&(q=1);else if(typeof a=="string")q=mz(a,h,ne.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case oe:return a=Or(31,h,l,A),a.elementType=oe,a.lanes=M,a;case x:return Co(h.children,A,M,l);case E:q=8,A|=24;break;case T:return a=Or(12,h,l,A|2),a.elementType=T,a.lanes=M,a;case F:return a=Or(13,h,l,A),a.elementType=F,a.lanes=M,a;case $:return a=Or(19,h,l,A),a.elementType=$,a.lanes=M,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case O:q=10;break e;case j:q=9;break e;case N:q=11;break e;case K:q=14;break e;case Q:q=16,v=null;break e}q=29,h=Error(r(130,a===null?"null":typeof a,"")),v=null}return l=Or(q,h,l,A),l.elementType=a,l.type=v,l.lanes=M,l}function Co(a,l,h,v){return a=Or(7,a,v,l),a.lanes=h,a}function dc(a,l,h){return a=Or(6,a,null,l),a.lanes=h,a}function od(a){var l=Or(18,null,null,0);return l.stateNode=a,l}function sd(a,l,h){return l=Or(4,a.children!==null?a.children:[],a.key,l),l.lanes=h,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}var c=new WeakMap;function g(a,l){if(typeof a=="object"&&a!==null){var h=c.get(a);return h!==void 0?h:(l={value:a,source:l,stack:Ae(l)},c.set(a,l),l)}return{value:a,source:l,stack:Ae(l)}}var S=[],R=0,V=null,re=0,me=[],Se=0,Te=null,Ue=1,Xe="";function at(a,l){S[R++]=re,S[R++]=V,V=a,re=l}function bt(a,l,h){me[Se++]=Ue,me[Se++]=Xe,me[Se++]=Te,Te=a;var v=Ue;a=Xe;var A=32-yt(v)-1;v&=~(1<<A),h+=1;var M=32-yt(l)+A;if(30<M){var q=A-A%5;M=(v&(1<<q)-1).toString(32),v>>=q,A-=q,Ue=1<<32-yt(l)+A|h<<A|v,Xe=M+a}else Ue=1<<M|h<<A|v,Xe=a}function Jn(a){a.return!==null&&(at(a,1),bt(a,1,0))}function Tn(a){for(;a===V;)V=S[--R],S[R]=null,re=S[--R],S[R]=null;for(;a===Te;)Te=me[--Se],me[Se]=null,Xe=me[--Se],me[Se]=null,Ue=me[--Se],me[Se]=null}function Ir(a,l){me[Se++]=Ue,me[Se++]=Xe,me[Se++]=Te,Ue=l.id,Xe=l.overflow,Te=a}var kt=null,It=null,St=!1,Ya=null,Jr=!1,hc=Error(r(519));function Wa(a){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eu(g(l,a)),hc}function ld(a){var l=a.stateNode,h=a.type,v=a.memoizedProps;switch(l[Fn]=a,l[or]=v,h){case"dialog":Et("cancel",l),Et("close",l);break;case"iframe":case"object":case"embed":Et("load",l);break;case"video":case"audio":for(h=0;h<Pd.length;h++)Et(Pd[h],l);break;case"source":Et("error",l);break;case"img":case"image":case"link":Et("error",l),Et("load",l);break;case"details":Et("toggle",l);break;case"input":Et("invalid",l),Ll(l,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":Et("invalid",l);break;case"textarea":Et("invalid",l),ps(l,v.value,v.defaultValue,v.children)}h=v.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||l.textContent===""+h||v.suppressHydrationWarning===!0||kE(l.textContent,h)?(v.popover!=null&&(Et("beforetoggle",l),Et("toggle",l)),v.onScroll!=null&&Et("scroll",l),v.onScrollEnd!=null&&Et("scrollend",l),v.onClick!=null&&(l.onclick=Kr),l=!0):l=!1,l||Wa(a,!0)}function xn(a){for(kt=a.return;kt;)switch(kt.tag){case 5:case 31:case 13:Jr=!1;return;case 27:case 3:Jr=!0;return;default:kt=kt.return}}function ma(a){if(a!==kt)return!1;if(!St)return xn(a),St=!0,!1;var l=a.tag,h;if((h=l!==3&&l!==27)&&((h=l===5)&&(h=a.type,h=!(h!=="form"&&h!=="button")||L1(a.type,a.memoizedProps)),h=!h),h&&It&&Wa(a),xn(a),l===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));It=qE(a)}else if(l===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));It=qE(a)}else l===27?(l=It,Vs(a.type)?(a=U1,U1=null,It=a):It=l):It=kt?Ki(a.stateNode.nextSibling):null;return!0}function Eo(){It=kt=null,St=!1}function ud(){var a=Ya;return a!==null&&(ri===null?ri=a:ri.push.apply(ri,a),Ya=null),a}function eu(a){Ya===null?Ya=[a]:Ya.push(a)}var tu=P(null),Ka=null,pa=null;function Ms(a,l,h){Y(tu,l._currentValue),l._currentValue=h}function Ao(a){a._currentValue=tu.current,G(tu)}function y0(a,l,h){for(;a!==null;){var v=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,v!==null&&(v.childLanes|=l)):v!==null&&(v.childLanes&l)!==l&&(v.childLanes|=l),a===h)break;a=a.return}}function b0(a,l,h,v){var A=a.child;for(A!==null&&(A.return=a);A!==null;){var M=A.dependencies;if(M!==null){var q=A.child;M=M.firstContext;e:for(;M!==null;){var ie=M;M=A;for(var pe=0;pe<l.length;pe++)if(ie.context===l[pe]){M.lanes|=h,ie=M.alternate,ie!==null&&(ie.lanes|=h),y0(M.return,h,a),v||(q=null);break e}M=ie.next}}else if(A.tag===18){if(q=A.return,q===null)throw Error(r(341));q.lanes|=h,M=q.alternate,M!==null&&(M.lanes|=h),y0(q,h,a),q=null}else q=A.child;if(q!==null)q.return=A;else for(q=A;q!==null;){if(q===a){q=null;break}if(A=q.sibling,A!==null){A.return=q.return,q=A;break}q=q.return}A=q}}function mc(a,l,h,v){a=null;for(var A=l,M=!1;A!==null;){if(!M){if((A.flags&524288)!==0)M=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var q=A.alternate;if(q===null)throw Error(r(387));if(q=q.memoizedProps,q!==null){var ie=A.type;sr(A.pendingProps.value,q.value)||(a!==null?a.push(ie):a=[ie])}}else if(A===ge.current){if(q=A.alternate,q===null)throw Error(r(387));q.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(a!==null?a.push(kd):a=[kd])}A=A.return}a!==null&&b0(l,a,h,v),l.flags|=262144}function Ym(a){for(a=a.firstContext;a!==null;){if(!sr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function nu(a){Ka=a,pa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function vr(a){return x3(Ka,a)}function Wm(a,l){return Ka===null&&nu(a),x3(a,l)}function x3(a,l){var h=l._currentValue;if(l={context:l,memoizedValue:h,next:null},pa===null){if(a===null)throw Error(r(308));pa=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else pa=pa.next=l;return h}var cU=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(h,v){a.push(v)}};this.abort=function(){l.aborted=!0,a.forEach(function(h){return h()})}},fU=e.unstable_scheduleCallback,dU=e.unstable_NormalPriority,Vn={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _0(){return{controller:new cU,data:new Map,refCount:0}}function cd(a){a.refCount--,a.refCount===0&&fU(dU,function(){a.controller.abort()})}var fd=null,x0=0,pc=0,gc=null;function hU(a,l){if(fd===null){var h=fd=[];x0=0,pc=C1(),gc={status:"pending",value:void 0,then:function(v){h.push(v)}}}return x0++,l.then(w3,w3),l}function w3(){if(--x0===0&&fd!==null){gc!==null&&(gc.status="fulfilled");var a=fd;fd=null,pc=0,gc=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function mU(a,l){var h=[],v={status:"pending",value:null,reason:null,then:function(A){h.push(A)}};return a.then(function(){v.status="fulfilled",v.value=l;for(var A=0;A<h.length;A++)(0,h[A])(l)},function(A){for(v.status="rejected",v.reason=A,A=0;A<h.length;A++)(0,h[A])(void 0)}),v}var S3=Z.S;Z.S=function(a,l){oE=_e(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&hU(a,l),S3!==null&&S3(a,l)};var ru=P(null);function w0(){var a=ru.current;return a!==null?a:Jt.pooledCache}function Km(a,l){l===null?Y(ru,ru.current):Y(ru,l.pool)}function C3(){var a=w0();return a===null?null:{parent:Vn._currentValue,pool:a}}var vc=Error(r(460)),S0=Error(r(474)),Zm=Error(r(542)),Xm={then:function(){}};function E3(a){return a=a.status,a==="fulfilled"||a==="rejected"}function A3(a,l,h){switch(h=a[h],h===void 0?a.push(l):h!==l&&(l.then(Kr,Kr),l=h),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,O3(a),a;default:if(typeof l.status=="string")l.then(Kr,Kr);else{if(a=Jt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=l,a.status="pending",a.then(function(v){if(l.status==="pending"){var A=l;A.status="fulfilled",A.value=v}},function(v){if(l.status==="pending"){var A=l;A.status="rejected",A.reason=v}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,O3(a),a}throw au=l,vc}}function iu(a){try{var l=a._init;return l(a._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(au=h,vc):h}}var au=null;function T3(){if(au===null)throw Error(r(459));var a=au;return au=null,a}function O3(a){if(a===vc||a===Zm)throw Error(r(483))}var yc=null,dd=0;function Qm(a){var l=dd;return dd+=1,yc===null&&(yc=[]),A3(yc,a,l)}function hd(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function Jm(a,l){throw l.$$typeof===b?Error(r(525)):(a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function j3(a){function l(xe,ye){if(a){var Ce=xe.deletions;Ce===null?(xe.deletions=[ye],xe.flags|=16):Ce.push(ye)}}function h(xe,ye){if(!a)return null;for(;ye!==null;)l(xe,ye),ye=ye.sibling;return null}function v(xe){for(var ye=new Map;xe!==null;)xe.key!==null?ye.set(xe.key,xe):ye.set(xe.index,xe),xe=xe.sibling;return ye}function A(xe,ye){return xe=Yi(xe,ye),xe.index=0,xe.sibling=null,xe}function M(xe,ye,Ce){return xe.index=Ce,a?(Ce=xe.alternate,Ce!==null?(Ce=Ce.index,Ce<ye?(xe.flags|=67108866,ye):Ce):(xe.flags|=67108866,ye)):(xe.flags|=1048576,ye)}function q(xe){return a&&xe.alternate===null&&(xe.flags|=67108866),xe}function ie(xe,ye,Ce,Ie){return ye===null||ye.tag!==6?(ye=dc(Ce,xe.mode,Ie),ye.return=xe,ye):(ye=A(ye,Ce),ye.return=xe,ye)}function pe(xe,ye,Ce,Ie){var ot=Ce.type;return ot===x?ke(xe,ye,Ce.props.children,Ie,Ce.key):ye!==null&&(ye.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===Q&&iu(ot)===ye.type)?(ye=A(ye,Ce.props),hd(ye,Ce),ye.return=xe,ye):(ye=Jl(Ce.type,Ce.key,Ce.props,null,xe.mode,Ie),hd(ye,Ce),ye.return=xe,ye)}function Ee(xe,ye,Ce,Ie){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==Ce.containerInfo||ye.stateNode.implementation!==Ce.implementation?(ye=sd(Ce,xe.mode,Ie),ye.return=xe,ye):(ye=A(ye,Ce.children||[]),ye.return=xe,ye)}function ke(xe,ye,Ce,Ie,ot){return ye===null||ye.tag!==7?(ye=Co(Ce,xe.mode,Ie,ot),ye.return=xe,ye):(ye=A(ye,Ce),ye.return=xe,ye)}function ze(xe,ye,Ce){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=dc(""+ye,xe.mode,Ce),ye.return=xe,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case _:return Ce=Jl(ye.type,ye.key,ye.props,null,xe.mode,Ce),hd(Ce,ye),Ce.return=xe,Ce;case w:return ye=sd(ye,xe.mode,Ce),ye.return=xe,ye;case Q:return ye=iu(ye),ze(xe,ye,Ce)}if(se(ye)||te(ye))return ye=Co(ye,xe.mode,Ce,null),ye.return=xe,ye;if(typeof ye.then=="function")return ze(xe,Qm(ye),Ce);if(ye.$$typeof===O)return ze(xe,Wm(xe,ye),Ce);Jm(xe,ye)}return null}function Oe(xe,ye,Ce,Ie){var ot=ye!==null?ye.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return ot!==null?null:ie(xe,ye,""+Ce,Ie);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case _:return Ce.key===ot?pe(xe,ye,Ce,Ie):null;case w:return Ce.key===ot?Ee(xe,ye,Ce,Ie):null;case Q:return Ce=iu(Ce),Oe(xe,ye,Ce,Ie)}if(se(Ce)||te(Ce))return ot!==null?null:ke(xe,ye,Ce,Ie,null);if(typeof Ce.then=="function")return Oe(xe,ye,Qm(Ce),Ie);if(Ce.$$typeof===O)return Oe(xe,ye,Wm(xe,Ce),Ie);Jm(xe,Ce)}return null}function Le(xe,ye,Ce,Ie,ot){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return xe=xe.get(Ce)||null,ie(ye,xe,""+Ie,ot);if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case _:return xe=xe.get(Ie.key===null?Ce:Ie.key)||null,pe(ye,xe,Ie,ot);case w:return xe=xe.get(Ie.key===null?Ce:Ie.key)||null,Ee(ye,xe,Ie,ot);case Q:return Ie=iu(Ie),Le(xe,ye,Ce,Ie,ot)}if(se(Ie)||te(Ie))return xe=xe.get(Ce)||null,ke(ye,xe,Ie,ot,null);if(typeof Ie.then=="function")return Le(xe,ye,Ce,Qm(Ie),ot);if(Ie.$$typeof===O)return Le(xe,ye,Ce,Wm(ye,Ie),ot);Jm(ye,Ie)}return null}function et(xe,ye,Ce,Ie){for(var ot=null,Ut=null,nt=ye,_t=ye=0,Mt=null;nt!==null&&_t<Ce.length;_t++){nt.index>_t?(Mt=nt,nt=null):Mt=nt.sibling;var zt=Oe(xe,nt,Ce[_t],Ie);if(zt===null){nt===null&&(nt=Mt);break}a&&nt&&zt.alternate===null&&l(xe,nt),ye=M(zt,ye,_t),Ut===null?ot=zt:Ut.sibling=zt,Ut=zt,nt=Mt}if(_t===Ce.length)return h(xe,nt),St&&at(xe,_t),ot;if(nt===null){for(;_t<Ce.length;_t++)nt=ze(xe,Ce[_t],Ie),nt!==null&&(ye=M(nt,ye,_t),Ut===null?ot=nt:Ut.sibling=nt,Ut=nt);return St&&at(xe,_t),ot}for(nt=v(nt);_t<Ce.length;_t++)Mt=Le(nt,xe,_t,Ce[_t],Ie),Mt!==null&&(a&&Mt.alternate!==null&&nt.delete(Mt.key===null?_t:Mt.key),ye=M(Mt,ye,_t),Ut===null?ot=Mt:Ut.sibling=Mt,Ut=Mt);return a&&nt.forEach(function(Ws){return l(xe,Ws)}),St&&at(xe,_t),ot}function ct(xe,ye,Ce,Ie){if(Ce==null)throw Error(r(151));for(var ot=null,Ut=null,nt=ye,_t=ye=0,Mt=null,zt=Ce.next();nt!==null&&!zt.done;_t++,zt=Ce.next()){nt.index>_t?(Mt=nt,nt=null):Mt=nt.sibling;var Ws=Oe(xe,nt,zt.value,Ie);if(Ws===null){nt===null&&(nt=Mt);break}a&&nt&&Ws.alternate===null&&l(xe,nt),ye=M(Ws,ye,_t),Ut===null?ot=Ws:Ut.sibling=Ws,Ut=Ws,nt=Mt}if(zt.done)return h(xe,nt),St&&at(xe,_t),ot;if(nt===null){for(;!zt.done;_t++,zt=Ce.next())zt=ze(xe,zt.value,Ie),zt!==null&&(ye=M(zt,ye,_t),Ut===null?ot=zt:Ut.sibling=zt,Ut=zt);return St&&at(xe,_t),ot}for(nt=v(nt);!zt.done;_t++,zt=Ce.next())zt=Le(nt,xe,_t,zt.value,Ie),zt!==null&&(a&&zt.alternate!==null&&nt.delete(zt.key===null?_t:zt.key),ye=M(zt,ye,_t),Ut===null?ot=zt:Ut.sibling=zt,Ut=zt);return a&&nt.forEach(function(Ez){return l(xe,Ez)}),St&&at(xe,_t),ot}function Zt(xe,ye,Ce,Ie){if(typeof Ce=="object"&&Ce!==null&&Ce.type===x&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case _:e:{for(var ot=Ce.key;ye!==null;){if(ye.key===ot){if(ot=Ce.type,ot===x){if(ye.tag===7){h(xe,ye.sibling),Ie=A(ye,Ce.props.children),Ie.return=xe,xe=Ie;break e}}else if(ye.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===Q&&iu(ot)===ye.type){h(xe,ye.sibling),Ie=A(ye,Ce.props),hd(Ie,Ce),Ie.return=xe,xe=Ie;break e}h(xe,ye);break}else l(xe,ye);ye=ye.sibling}Ce.type===x?(Ie=Co(Ce.props.children,xe.mode,Ie,Ce.key),Ie.return=xe,xe=Ie):(Ie=Jl(Ce.type,Ce.key,Ce.props,null,xe.mode,Ie),hd(Ie,Ce),Ie.return=xe,xe=Ie)}return q(xe);case w:e:{for(ot=Ce.key;ye!==null;){if(ye.key===ot)if(ye.tag===4&&ye.stateNode.containerInfo===Ce.containerInfo&&ye.stateNode.implementation===Ce.implementation){h(xe,ye.sibling),Ie=A(ye,Ce.children||[]),Ie.return=xe,xe=Ie;break e}else{h(xe,ye);break}else l(xe,ye);ye=ye.sibling}Ie=sd(Ce,xe.mode,Ie),Ie.return=xe,xe=Ie}return q(xe);case Q:return Ce=iu(Ce),Zt(xe,ye,Ce,Ie)}if(se(Ce))return et(xe,ye,Ce,Ie);if(te(Ce)){if(ot=te(Ce),typeof ot!="function")throw Error(r(150));return Ce=ot.call(Ce),ct(xe,ye,Ce,Ie)}if(typeof Ce.then=="function")return Zt(xe,ye,Qm(Ce),Ie);if(Ce.$$typeof===O)return Zt(xe,ye,Wm(xe,Ce),Ie);Jm(xe,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,ye!==null&&ye.tag===6?(h(xe,ye.sibling),Ie=A(ye,Ce),Ie.return=xe,xe=Ie):(h(xe,ye),Ie=dc(Ce,xe.mode,Ie),Ie.return=xe,xe=Ie),q(xe)):h(xe,ye)}return function(xe,ye,Ce,Ie){try{dd=0;var ot=Zt(xe,ye,Ce,Ie);return yc=null,ot}catch(nt){if(nt===vc||nt===Zm)throw nt;var Ut=Or(29,nt,null,xe.mode);return Ut.lanes=Ie,Ut.return=xe,Ut}finally{}}}var ou=j3(!0),M3=j3(!1),Ps=!1;function C0(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function E0(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Rs(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ls(a,l,h){var v=a.updateQueue;if(v===null)return null;if(v=v.shared,(Ft&2)!==0){var A=v.pending;return A===null?l.next=l:(l.next=A.next,A.next=l),v.pending=l,l=Ql(a),js(a,null,h),l}return Ga(a,v,l,h),Ql(a)}function md(a,l,h){if(l=l.updateQueue,l!==null&&(l=l.shared,(h&4194048)!==0)){var v=l.lanes;v&=a.pendingLanes,h|=v,l.lanes=h,Gr(a,h)}}function A0(a,l){var h=a.updateQueue,v=a.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var A=null,M=null;if(h=h.firstBaseUpdate,h!==null){do{var q={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};M===null?A=M=q:M=M.next=q,h=h.next}while(h!==null);M===null?A=M=l:M=M.next=l}else A=M=l;h={baseState:v.baseState,firstBaseUpdate:A,lastBaseUpdate:M,shared:v.shared,callbacks:v.callbacks},a.updateQueue=h;return}a=h.lastBaseUpdate,a===null?h.firstBaseUpdate=l:a.next=l,h.lastBaseUpdate=l}var T0=!1;function pd(){if(T0){var a=gc;if(a!==null)throw a}}function gd(a,l,h,v){T0=!1;var A=a.updateQueue;Ps=!1;var M=A.firstBaseUpdate,q=A.lastBaseUpdate,ie=A.shared.pending;if(ie!==null){A.shared.pending=null;var pe=ie,Ee=pe.next;pe.next=null,q===null?M=Ee:q.next=Ee,q=pe;var ke=a.alternate;ke!==null&&(ke=ke.updateQueue,ie=ke.lastBaseUpdate,ie!==q&&(ie===null?ke.firstBaseUpdate=Ee:ie.next=Ee,ke.lastBaseUpdate=pe))}if(M!==null){var ze=A.baseState;q=0,ke=Ee=pe=null,ie=M;do{var Oe=ie.lane&-536870913,Le=Oe!==ie.lane;if(Le?(jt&Oe)===Oe:(v&Oe)===Oe){Oe!==0&&Oe===pc&&(T0=!0),ke!==null&&(ke=ke.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var et=a,ct=ie;Oe=l;var Zt=h;switch(ct.tag){case 1:if(et=ct.payload,typeof et=="function"){ze=et.call(Zt,ze,Oe);break e}ze=et;break e;case 3:et.flags=et.flags&-65537|128;case 0:if(et=ct.payload,Oe=typeof et=="function"?et.call(Zt,ze,Oe):et,Oe==null)break e;ze=p({},ze,Oe);break e;case 2:Ps=!0}}Oe=ie.callback,Oe!==null&&(a.flags|=64,Le&&(a.flags|=8192),Le=A.callbacks,Le===null?A.callbacks=[Oe]:Le.push(Oe))}else Le={lane:Oe,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},ke===null?(Ee=ke=Le,pe=ze):ke=ke.next=Le,q|=Oe;if(ie=ie.next,ie===null){if(ie=A.shared.pending,ie===null)break;Le=ie,ie=Le.next,Le.next=null,A.lastBaseUpdate=Le,A.shared.pending=null}}while(!0);ke===null&&(pe=ze),A.baseState=pe,A.firstBaseUpdate=Ee,A.lastBaseUpdate=ke,M===null&&(A.shared.lanes=0),Us|=q,a.lanes=q,a.memoizedState=ze}}function P3(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function R3(a,l){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)P3(h[a],l)}var bc=P(null),ep=P(0);function L3(a,l){a=Do,Y(ep,a),Y(bc,l),Do=a|l.baseLanes}function O0(){Y(ep,Do),Y(bc,bc.current)}function j0(){Do=ep.current,G(bc),G(ep)}var pi=P(null),Wi=null;function Ns(a){var l=a.alternate;Y(kn,kn.current&1),Y(pi,a),Wi===null&&(l===null||bc.current!==null||l.memoizedState!==null)&&(Wi=a)}function M0(a){Y(kn,kn.current),Y(pi,a),Wi===null&&(Wi=a)}function N3(a){a.tag===22?(Y(kn,kn.current),Y(pi,a),Wi===null&&(Wi=a)):Ds()}function Ds(){Y(kn,kn.current),Y(pi,pi.current)}function gi(a){G(pi),Wi===a&&(Wi=null),G(kn)}var kn=P(0);function tp(a){for(var l=a;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||k1(h)||I1(h)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var To=0,vt=null,Wt=null,Hn=null,np=!1,_c=!1,su=!1,rp=0,vd=0,xc=null,pU=0;function On(){throw Error(r(321))}function P0(a,l){if(l===null)return!1;for(var h=0;h<l.length&&h<a.length;h++)if(!sr(a[h],l[h]))return!1;return!0}function R0(a,l,h,v,A,M){return To=M,vt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Z.H=a===null||a.memoizedState===null?v4:Y0,su=!1,M=h(v,A),su=!1,_c&&(M=k3(l,h,v,A)),D3(a),M}function D3(a){Z.H=_d;var l=Wt!==null&&Wt.next!==null;if(To=0,Hn=Wt=vt=null,np=!1,vd=0,xc=null,l)throw Error(r(300));a===null||qn||(a=a.dependencies,a!==null&&Ym(a)&&(qn=!0))}function k3(a,l,h,v){vt=a;var A=0;do{if(_c&&(xc=null),vd=0,_c=!1,25<=A)throw Error(r(301));if(A+=1,Hn=Wt=null,a.updateQueue!=null){var M=a.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}Z.H=y4,M=l(h,v)}while(_c);return M}function gU(){var a=Z.H,l=a.useState()[0];return l=typeof l.then=="function"?yd(l):l,a=a.useState()[0],(Wt!==null?Wt.memoizedState:null)!==a&&(vt.flags|=1024),l}function L0(){var a=rp!==0;return rp=0,a}function N0(a,l,h){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~h}function D0(a){if(np){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}np=!1}To=0,Hn=Wt=vt=null,_c=!1,vd=rp=0,xc=null}function Ur(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hn===null?vt.memoizedState=Hn=a:Hn=Hn.next=a,Hn}function In(){if(Wt===null){var a=vt.alternate;a=a!==null?a.memoizedState:null}else a=Wt.next;var l=Hn===null?vt.memoizedState:Hn.next;if(l!==null)Hn=l,Wt=a;else{if(a===null)throw vt.alternate===null?Error(r(467)):Error(r(310));Wt=a,a={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},Hn===null?vt.memoizedState=Hn=a:Hn=Hn.next=a}return Hn}function ip(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yd(a){var l=vd;return vd+=1,xc===null&&(xc=[]),a=A3(xc,a,l),l=vt,(Hn===null?l.memoizedState:Hn.next)===null&&(l=l.alternate,Z.H=l===null||l.memoizedState===null?v4:Y0),a}function ap(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return yd(a);if(a.$$typeof===O)return vr(a)}throw Error(r(438,String(a)))}function k0(a){var l=null,h=vt.updateQueue;if(h!==null&&(l=h.memoCache),l==null){var v=vt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(l={data:v.data.map(function(A){return A.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),h===null&&(h=ip(),vt.updateQueue=h),h.memoCache=l,h=l.data[l.index],h===void 0)for(h=l.data[l.index]=Array(a),v=0;v<a;v++)h[v]=ee;return l.index++,h}function Oo(a,l){return typeof l=="function"?l(a):l}function op(a){var l=In();return I0(l,Wt,a)}function I0(a,l,h){var v=a.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=h;var A=a.baseQueue,M=v.pending;if(M!==null){if(A!==null){var q=A.next;A.next=M.next,M.next=q}l.baseQueue=A=M,v.pending=null}if(M=a.baseState,A===null)a.memoizedState=M;else{l=A.next;var ie=q=null,pe=null,Ee=l,ke=!1;do{var ze=Ee.lane&-536870913;if(ze!==Ee.lane?(jt&ze)===ze:(To&ze)===ze){var Oe=Ee.revertLane;if(Oe===0)pe!==null&&(pe=pe.next={lane:0,revertLane:0,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),ze===pc&&(ke=!0);else if((To&Oe)===Oe){Ee=Ee.next,Oe===pc&&(ke=!0);continue}else ze={lane:0,revertLane:Ee.revertLane,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},pe===null?(ie=pe=ze,q=M):pe=pe.next=ze,vt.lanes|=Oe,Us|=Oe;ze=Ee.action,su&&h(M,ze),M=Ee.hasEagerState?Ee.eagerState:h(M,ze)}else Oe={lane:ze,revertLane:Ee.revertLane,gesture:Ee.gesture,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},pe===null?(ie=pe=Oe,q=M):pe=pe.next=Oe,vt.lanes|=ze,Us|=ze;Ee=Ee.next}while(Ee!==null&&Ee!==l);if(pe===null?q=M:pe.next=ie,!sr(M,a.memoizedState)&&(qn=!0,ke&&(h=gc,h!==null)))throw h;a.memoizedState=M,a.baseState=q,a.baseQueue=pe,v.lastRenderedState=M}return A===null&&(v.lanes=0),[a.memoizedState,v.dispatch]}function U0(a){var l=In(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var v=h.dispatch,A=h.pending,M=l.memoizedState;if(A!==null){h.pending=null;var q=A=A.next;do M=a(M,q.action),q=q.next;while(q!==A);sr(M,l.memoizedState)||(qn=!0),l.memoizedState=M,l.baseQueue===null&&(l.baseState=M),h.lastRenderedState=M}return[M,v]}function I3(a,l,h){var v=vt,A=In(),M=St;if(M){if(h===void 0)throw Error(r(407));h=h()}else h=l();var q=!sr((Wt||A).memoizedState,h);if(q&&(A.memoizedState=h,qn=!0),A=A.queue,F0(B3.bind(null,v,A,a),[a]),A.getSnapshot!==l||q||Hn!==null&&Hn.memoizedState.tag&1){if(v.flags|=2048,wc(9,{destroy:void 0},z3.bind(null,v,A,h,l),null),Jt===null)throw Error(r(349));M||(To&127)!==0||U3(v,l,h)}return h}function U3(a,l,h){a.flags|=16384,a={getSnapshot:l,value:h},l=vt.updateQueue,l===null?(l=ip(),vt.updateQueue=l,l.stores=[a]):(h=l.stores,h===null?l.stores=[a]:h.push(a))}function z3(a,l,h,v){l.value=h,l.getSnapshot=v,F3(l)&&$3(a)}function B3(a,l,h){return h(function(){F3(l)&&$3(a)})}function F3(a){var l=a.getSnapshot;a=a.value;try{var h=l();return!sr(a,h)}catch{return!0}}function $3(a){var l=Gi(a,2);l!==null&&ii(l,a,2)}function z0(a){var l=Ur();if(typeof a=="function"){var h=a;if(a=h(),su){Dt(!0);try{h()}finally{Dt(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:a},l}function V3(a,l,h,v){return a.baseState=h,I0(a,Wt,typeof v=="function"?v:Oo)}function vU(a,l,h,v,A){if(up(a))throw Error(r(485));if(a=l.action,a!==null){var M={payload:A,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){M.listeners.push(q)}};Z.T!==null?h(!0):M.isTransition=!1,v(M),h=l.pending,h===null?(M.next=l.pending=M,H3(l,M)):(M.next=h.next,l.pending=h.next=M)}}function H3(a,l){var h=l.action,v=l.payload,A=a.state;if(l.isTransition){var M=Z.T,q={};Z.T=q;try{var ie=h(A,v),pe=Z.S;pe!==null&&pe(q,ie),q3(a,l,ie)}catch(Ee){B0(a,l,Ee)}finally{M!==null&&q.types!==null&&(M.types=q.types),Z.T=M}}else try{M=h(A,v),q3(a,l,M)}catch(Ee){B0(a,l,Ee)}}function q3(a,l,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){G3(a,l,v)},function(v){return B0(a,l,v)}):G3(a,l,h)}function G3(a,l,h){l.status="fulfilled",l.value=h,Y3(l),a.state=h,l=a.pending,l!==null&&(h=l.next,h===l?a.pending=null:(h=h.next,l.next=h,H3(a,h)))}function B0(a,l,h){var v=a.pending;if(a.pending=null,v!==null){v=v.next;do l.status="rejected",l.reason=h,Y3(l),l=l.next;while(l!==v)}a.action=null}function Y3(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function W3(a,l){return l}function K3(a,l){if(St){var h=Jt.formState;if(h!==null){e:{var v=vt;if(St){if(It){t:{for(var A=It,M=Jr;A.nodeType!==8;){if(!M){A=null;break t}if(A=Ki(A.nextSibling),A===null){A=null;break t}}M=A.data,A=M==="F!"||M==="F"?A:null}if(A){It=Ki(A.nextSibling),v=A.data==="F!";break e}}Wa(v)}v=!1}v&&(l=h[0])}}return h=Ur(),h.memoizedState=h.baseState=l,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:W3,lastRenderedState:l},h.queue=v,h=m4.bind(null,vt,v),v.dispatch=h,v=z0(!1),M=G0.bind(null,vt,!1,v.queue),v=Ur(),A={state:l,dispatch:null,action:a,pending:null},v.queue=A,h=vU.bind(null,vt,A,M,h),A.dispatch=h,v.memoizedState=a,[l,h,!1]}function Z3(a){var l=In();return X3(l,Wt,a)}function X3(a,l,h){if(l=I0(a,l,W3)[0],a=op(Oo)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var v=yd(l)}catch(q){throw q===vc?Zm:q}else v=l;l=In();var A=l.queue,M=A.dispatch;return h!==l.memoizedState&&(vt.flags|=2048,wc(9,{destroy:void 0},yU.bind(null,A,h),null)),[v,M,a]}function yU(a,l){a.action=l}function Q3(a){var l=In(),h=Wt;if(h!==null)return X3(l,h,a);In(),l=l.memoizedState,h=In();var v=h.queue.dispatch;return h.memoizedState=a,[l,v,!1]}function wc(a,l,h,v){return a={tag:a,create:h,deps:v,inst:l,next:null},l=vt.updateQueue,l===null&&(l=ip(),vt.updateQueue=l),h=l.lastEffect,h===null?l.lastEffect=a.next=a:(v=h.next,h.next=a,a.next=v,l.lastEffect=a),a}function J3(){return In().memoizedState}function sp(a,l,h,v){var A=Ur();vt.flags|=a,A.memoizedState=wc(1|l,{destroy:void 0},h,v===void 0?null:v)}function lp(a,l,h,v){var A=In();v=v===void 0?null:v;var M=A.memoizedState.inst;Wt!==null&&v!==null&&P0(v,Wt.memoizedState.deps)?A.memoizedState=wc(l,M,h,v):(vt.flags|=a,A.memoizedState=wc(1|l,M,h,v))}function e4(a,l){sp(8390656,8,a,l)}function F0(a,l){lp(2048,8,a,l)}function bU(a){vt.flags|=4;var l=vt.updateQueue;if(l===null)l=ip(),vt.updateQueue=l,l.events=[a];else{var h=l.events;h===null?l.events=[a]:h.push(a)}}function t4(a){var l=In().memoizedState;return bU({ref:l,nextImpl:a}),function(){if((Ft&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function n4(a,l){return lp(4,2,a,l)}function r4(a,l){return lp(4,4,a,l)}function i4(a,l){if(typeof l=="function"){a=a();var h=l(a);return function(){typeof h=="function"?h():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function a4(a,l,h){h=h!=null?h.concat([a]):null,lp(4,4,i4.bind(null,l,a),h)}function $0(){}function o4(a,l){var h=In();l=l===void 0?null:l;var v=h.memoizedState;return l!==null&&P0(l,v[1])?v[0]:(h.memoizedState=[a,l],a)}function s4(a,l){var h=In();l=l===void 0?null:l;var v=h.memoizedState;if(l!==null&&P0(l,v[1]))return v[0];if(v=a(),su){Dt(!0);try{a()}finally{Dt(!1)}}return h.memoizedState=[v,l],v}function V0(a,l,h){return h===void 0||(To&1073741824)!==0&&(jt&261930)===0?a.memoizedState=l:(a.memoizedState=h,a=lE(),vt.lanes|=a,Us|=a,h)}function l4(a,l,h,v){return sr(h,l)?h:bc.current!==null?(a=V0(a,h,v),sr(a,l)||(qn=!0),a):(To&42)===0||(To&1073741824)!==0&&(jt&261930)===0?(qn=!0,a.memoizedState=h):(a=lE(),vt.lanes|=a,Us|=a,l)}function u4(a,l,h,v,A){var M=I.p;I.p=M!==0&&8>M?M:8;var q=Z.T,ie={};Z.T=ie,G0(a,!1,l,h);try{var pe=A(),Ee=Z.S;if(Ee!==null&&Ee(ie,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var ke=mU(pe,v);bd(a,l,ke,bi(a))}else bd(a,l,v,bi(a))}catch(ze){bd(a,l,{then:function(){},status:"rejected",reason:ze},bi())}finally{I.p=M,q!==null&&ie.types!==null&&(q.types=ie.types),Z.T=q}}function _U(){}function H0(a,l,h,v){if(a.tag!==5)throw Error(r(476));var A=c4(a).queue;u4(a,A,l,k,h===null?_U:function(){return f4(a),h(v)})}function c4(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:k},next:null};var h={};return l.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:h},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function f4(a){var l=c4(a);l.next===null&&(l=a.alternate.memoizedState),bd(a,l.next.queue,{},bi())}function q0(){return vr(kd)}function d4(){return In().memoizedState}function h4(){return In().memoizedState}function xU(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var h=bi();a=Rs(h);var v=Ls(l,a,h);v!==null&&(ii(v,l,h),md(v,l,h)),l={cache:_0()},a.payload=l;return}l=l.return}}function wU(a,l,h){var v=bi();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},up(a)?p4(l,h):(h=id(a,l,h,v),h!==null&&(ii(h,a,v),g4(h,l,v)))}function m4(a,l,h){var v=bi();bd(a,l,h,v)}function bd(a,l,h,v){var A={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(up(a))p4(l,A);else{var M=a.alternate;if(a.lanes===0&&(M===null||M.lanes===0)&&(M=l.lastRenderedReducer,M!==null))try{var q=l.lastRenderedState,ie=M(q,h);if(A.hasEagerState=!0,A.eagerState=ie,sr(ie,q))return Ga(a,l,A,0),Jt===null&&Xl(),!1}catch{}finally{}if(h=id(a,l,A,v),h!==null)return ii(h,a,v),g4(h,l,v),!0}return!1}function G0(a,l,h,v){if(v={lane:2,revertLane:C1(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},up(a)){if(l)throw Error(r(479))}else l=id(a,h,v,2),l!==null&&ii(l,a,2)}function up(a){var l=a.alternate;return a===vt||l!==null&&l===vt}function p4(a,l){_c=np=!0;var h=a.pending;h===null?l.next=l:(l.next=h.next,h.next=l),a.pending=l}function g4(a,l,h){if((h&4194048)!==0){var v=l.lanes;v&=a.pendingLanes,h|=v,l.lanes=h,Gr(a,h)}}var _d={readContext:vr,use:ap,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useInsertionEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useSyncExternalStore:On,useId:On,useHostTransitionStatus:On,useFormState:On,useActionState:On,useOptimistic:On,useMemoCache:On,useCacheRefresh:On};_d.useEffectEvent=On;var v4={readContext:vr,use:ap,useCallback:function(a,l){return Ur().memoizedState=[a,l===void 0?null:l],a},useContext:vr,useEffect:e4,useImperativeHandle:function(a,l,h){h=h!=null?h.concat([a]):null,sp(4194308,4,i4.bind(null,l,a),h)},useLayoutEffect:function(a,l){return sp(4194308,4,a,l)},useInsertionEffect:function(a,l){sp(4,2,a,l)},useMemo:function(a,l){var h=Ur();l=l===void 0?null:l;var v=a();if(su){Dt(!0);try{a()}finally{Dt(!1)}}return h.memoizedState=[v,l],v},useReducer:function(a,l,h){var v=Ur();if(h!==void 0){var A=h(l);if(su){Dt(!0);try{h(l)}finally{Dt(!1)}}}else A=l;return v.memoizedState=v.baseState=A,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:A},v.queue=a,a=a.dispatch=wU.bind(null,vt,a),[v.memoizedState,a]},useRef:function(a){var l=Ur();return a={current:a},l.memoizedState=a},useState:function(a){a=z0(a);var l=a.queue,h=m4.bind(null,vt,l);return l.dispatch=h,[a.memoizedState,h]},useDebugValue:$0,useDeferredValue:function(a,l){var h=Ur();return V0(h,a,l)},useTransition:function(){var a=z0(!1);return a=u4.bind(null,vt,a.queue,!0,!1),Ur().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,h){var v=vt,A=Ur();if(St){if(h===void 0)throw Error(r(407));h=h()}else{if(h=l(),Jt===null)throw Error(r(349));(jt&127)!==0||U3(v,l,h)}A.memoizedState=h;var M={value:h,getSnapshot:l};return A.queue=M,e4(B3.bind(null,v,M,a),[a]),v.flags|=2048,wc(9,{destroy:void 0},z3.bind(null,v,M,h,l),null),h},useId:function(){var a=Ur(),l=Jt.identifierPrefix;if(St){var h=Xe,v=Ue;h=(v&~(1<<32-yt(v)-1)).toString(32)+h,l="_"+l+"R_"+h,h=rp++,0<h&&(l+="H"+h.toString(32)),l+="_"}else h=pU++,l="_"+l+"r_"+h.toString(32)+"_";return a.memoizedState=l},useHostTransitionStatus:q0,useFormState:K3,useActionState:K3,useOptimistic:function(a){var l=Ur();l.memoizedState=l.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=h,l=G0.bind(null,vt,!0,h),h.dispatch=l,[a,l]},useMemoCache:k0,useCacheRefresh:function(){return Ur().memoizedState=xU.bind(null,vt)},useEffectEvent:function(a){var l=Ur(),h={impl:a};return l.memoizedState=h,function(){if((Ft&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},Y0={readContext:vr,use:ap,useCallback:o4,useContext:vr,useEffect:F0,useImperativeHandle:a4,useInsertionEffect:n4,useLayoutEffect:r4,useMemo:s4,useReducer:op,useRef:J3,useState:function(){return op(Oo)},useDebugValue:$0,useDeferredValue:function(a,l){var h=In();return l4(h,Wt.memoizedState,a,l)},useTransition:function(){var a=op(Oo)[0],l=In().memoizedState;return[typeof a=="boolean"?a:yd(a),l]},useSyncExternalStore:I3,useId:d4,useHostTransitionStatus:q0,useFormState:Z3,useActionState:Z3,useOptimistic:function(a,l){var h=In();return V3(h,Wt,a,l)},useMemoCache:k0,useCacheRefresh:h4};Y0.useEffectEvent=t4;var y4={readContext:vr,use:ap,useCallback:o4,useContext:vr,useEffect:F0,useImperativeHandle:a4,useInsertionEffect:n4,useLayoutEffect:r4,useMemo:s4,useReducer:U0,useRef:J3,useState:function(){return U0(Oo)},useDebugValue:$0,useDeferredValue:function(a,l){var h=In();return Wt===null?V0(h,a,l):l4(h,Wt.memoizedState,a,l)},useTransition:function(){var a=U0(Oo)[0],l=In().memoizedState;return[typeof a=="boolean"?a:yd(a),l]},useSyncExternalStore:I3,useId:d4,useHostTransitionStatus:q0,useFormState:Q3,useActionState:Q3,useOptimistic:function(a,l){var h=In();return Wt!==null?V3(h,Wt,a,l):(h.baseState=a,[a,h.queue.dispatch])},useMemoCache:k0,useCacheRefresh:h4};y4.useEffectEvent=t4;function W0(a,l,h,v){l=a.memoizedState,h=h(v,l),h=h==null?l:p({},l,h),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h)}var K0={enqueueSetState:function(a,l,h){a=a._reactInternals;var v=bi(),A=Rs(v);A.payload=l,h!=null&&(A.callback=h),l=Ls(a,A,v),l!==null&&(ii(l,a,v),md(l,a,v))},enqueueReplaceState:function(a,l,h){a=a._reactInternals;var v=bi(),A=Rs(v);A.tag=1,A.payload=l,h!=null&&(A.callback=h),l=Ls(a,A,v),l!==null&&(ii(l,a,v),md(l,a,v))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var h=bi(),v=Rs(h);v.tag=2,l!=null&&(v.callback=l),l=Ls(a,v,h),l!==null&&(ii(l,a,h),md(l,a,h))}};function b4(a,l,h,v,A,M,q){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(v,M,q):l.prototype&&l.prototype.isPureReactComponent?!Es(h,v)||!Es(A,M):!0}function _4(a,l,h,v){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(h,v),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(h,v),l.state!==a&&K0.enqueueReplaceState(l,l.state,null)}function lu(a,l){var h=l;if("ref"in l){h={};for(var v in l)v!=="ref"&&(h[v]=l[v])}if(a=a.defaultProps){h===l&&(h=p({},h));for(var A in a)h[A]===void 0&&(h[A]=a[A])}return h}function x4(a){Zl(a)}function w4(a){console.error(a)}function S4(a){Zl(a)}function cp(a,l){try{var h=a.onUncaughtError;h(l.value,{componentStack:l.stack})}catch(v){setTimeout(function(){throw v})}}function C4(a,l,h){try{var v=a.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function Z0(a,l,h){return h=Rs(h),h.tag=3,h.payload={element:null},h.callback=function(){cp(a,l)},h}function E4(a){return a=Rs(a),a.tag=3,a}function A4(a,l,h,v){var A=h.type.getDerivedStateFromError;if(typeof A=="function"){var M=v.value;a.payload=function(){return A(M)},a.callback=function(){C4(l,h,v)}}var q=h.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(a.callback=function(){C4(l,h,v),typeof A!="function"&&(zs===null?zs=new Set([this]):zs.add(this));var ie=v.stack;this.componentDidCatch(v.value,{componentStack:ie!==null?ie:""})})}function SU(a,l,h,v,A){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(l=h.alternate,l!==null&&mc(l,h,A,!0),h=pi.current,h!==null){switch(h.tag){case 31:case 13:return Wi===null?wp():h.alternate===null&&jn===0&&(jn=3),h.flags&=-257,h.flags|=65536,h.lanes=A,v===Xm?h.flags|=16384:(l=h.updateQueue,l===null?h.updateQueue=new Set([v]):l.add(v),x1(a,v,A)),!1;case 22:return h.flags|=65536,v===Xm?h.flags|=16384:(l=h.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([v])},h.updateQueue=l):(h=l.retryQueue,h===null?l.retryQueue=new Set([v]):h.add(v)),x1(a,v,A)),!1}throw Error(r(435,h.tag))}return x1(a,v,A),wp(),!1}if(St)return l=pi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=A,v!==hc&&(a=Error(r(422),{cause:v}),eu(g(a,h)))):(v!==hc&&(l=Error(r(423),{cause:v}),eu(g(l,h))),a=a.current.alternate,a.flags|=65536,A&=-A,a.lanes|=A,v=g(v,h),A=Z0(a.stateNode,v,A),A0(a,A),jn!==4&&(jn=2)),!1;var M=Error(r(520),{cause:v});if(M=g(M,h),Od===null?Od=[M]:Od.push(M),jn!==4&&(jn=2),l===null)return!0;v=g(v,h),h=l;do{switch(h.tag){case 3:return h.flags|=65536,a=A&-A,h.lanes|=a,a=Z0(h.stateNode,v,a),A0(h,a),!1;case 1:if(l=h.type,M=h.stateNode,(h.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(zs===null||!zs.has(M))))return h.flags|=65536,A&=-A,h.lanes|=A,A=E4(A),A4(A,a,h,v),A0(h,A),!1}h=h.return}while(h!==null);return!1}var X0=Error(r(461)),qn=!1;function yr(a,l,h,v){l.child=a===null?M3(l,null,h,v):ou(l,a.child,h,v)}function T4(a,l,h,v,A){h=h.render;var M=l.ref;if("ref"in v){var q={};for(var ie in v)ie!=="ref"&&(q[ie]=v[ie])}else q=v;return nu(l),v=R0(a,l,h,q,M,A),ie=L0(),a!==null&&!qn?(N0(a,l,A),jo(a,l,A)):(St&&ie&&Jn(l),l.flags|=1,yr(a,l,v,A),l.child)}function O4(a,l,h,v,A){if(a===null){var M=h.type;return typeof M=="function"&&!fc(M)&&M.defaultProps===void 0&&h.compare===null?(l.tag=15,l.type=M,j4(a,l,M,v,A)):(a=Jl(h.type,null,v,l,l.mode,A),a.ref=l.ref,a.return=l,l.child=a)}if(M=a.child,!a1(a,A)){var q=M.memoizedProps;if(h=h.compare,h=h!==null?h:Es,h(q,v)&&a.ref===l.ref)return jo(a,l,A)}return l.flags|=1,a=Yi(M,v),a.ref=l.ref,a.return=l,l.child=a}function j4(a,l,h,v,A){if(a!==null){var M=a.memoizedProps;if(Es(M,v)&&a.ref===l.ref)if(qn=!1,l.pendingProps=v=M,a1(a,A))(a.flags&131072)!==0&&(qn=!0);else return l.lanes=a.lanes,jo(a,l,A)}return Q0(a,l,h,v,A)}function M4(a,l,h,v){var A=v.children,M=a!==null?a.memoizedState:null;if(a===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((l.flags&128)!==0){if(M=M!==null?M.baseLanes|h:h,a!==null){for(v=l.child=a.child,A=0;v!==null;)A=A|v.lanes|v.childLanes,v=v.sibling;v=A&~M}else v=0,l.child=null;return P4(a,l,M,h,v)}if((h&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&Km(l,M!==null?M.cachePool:null),M!==null?L3(l,M):O0(),N3(l);else return v=l.lanes=536870912,P4(a,l,M!==null?M.baseLanes|h:h,h,v)}else M!==null?(Km(l,M.cachePool),L3(l,M),Ds(),l.memoizedState=null):(a!==null&&Km(l,null),O0(),Ds());return yr(a,l,A,h),l.child}function xd(a,l){return a!==null&&a.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function P4(a,l,h,v,A){var M=w0();return M=M===null?null:{parent:Vn._currentValue,pool:M},l.memoizedState={baseLanes:h,cachePool:M},a!==null&&Km(l,null),O0(),N3(l),a!==null&&mc(a,l,v,!0),l.childLanes=A,null}function fp(a,l){return l=hp({mode:l.mode,children:l.children},a.mode),l.ref=a.ref,a.child=l,l.return=a,l}function R4(a,l,h){return ou(l,a.child,null,h),a=fp(l,l.pendingProps),a.flags|=2,gi(l),l.memoizedState=null,a}function CU(a,l,h){var v=l.pendingProps,A=(l.flags&128)!==0;if(l.flags&=-129,a===null){if(St){if(v.mode==="hidden")return a=fp(l,v),l.lanes=536870912,xd(null,a);if(M0(l),(a=It)?(a=HE(a,Jr),a=a!==null&&a.data==="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Te!==null?{id:Ue,overflow:Xe}:null,retryLane:536870912,hydrationErrors:null},h=od(a),h.return=l,l.child=h,kt=l,It=null)):a=null,a===null)throw Wa(l);return l.lanes=536870912,null}return fp(l,v)}var M=a.memoizedState;if(M!==null){var q=M.dehydrated;if(M0(l),A)if(l.flags&256)l.flags&=-257,l=R4(a,l,h);else if(l.memoizedState!==null)l.child=a.child,l.flags|=128,l=null;else throw Error(r(558));else if(qn||mc(a,l,h,!1),A=(h&a.childLanes)!==0,qn||A){if(v=Jt,v!==null&&(q=Yr(v,h),q!==0&&q!==M.retryLane))throw M.retryLane=q,Gi(a,q),ii(v,a,q),X0;wp(),l=R4(a,l,h)}else a=M.treeContext,It=Ki(q.nextSibling),kt=l,St=!0,Ya=null,Jr=!1,a!==null&&Ir(l,a),l=fp(l,v),l.flags|=4096;return l}return a=Yi(a.child,{mode:v.mode,children:v.children}),a.ref=l.ref,l.child=a,a.return=l,a}function dp(a,l){var h=l.ref;if(h===null)a!==null&&a.ref!==null&&(l.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(a===null||a.ref!==h)&&(l.flags|=4194816)}}function Q0(a,l,h,v,A){return nu(l),h=R0(a,l,h,v,void 0,A),v=L0(),a!==null&&!qn?(N0(a,l,A),jo(a,l,A)):(St&&v&&Jn(l),l.flags|=1,yr(a,l,h,A),l.child)}function L4(a,l,h,v,A,M){return nu(l),l.updateQueue=null,h=k3(l,v,h,A),D3(a),v=L0(),a!==null&&!qn?(N0(a,l,M),jo(a,l,M)):(St&&v&&Jn(l),l.flags|=1,yr(a,l,h,M),l.child)}function N4(a,l,h,v,A){if(nu(l),l.stateNode===null){var M=So,q=h.contextType;typeof q=="object"&&q!==null&&(M=vr(q)),M=new h(v,M),l.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=K0,l.stateNode=M,M._reactInternals=l,M=l.stateNode,M.props=v,M.state=l.memoizedState,M.refs={},C0(l),q=h.contextType,M.context=typeof q=="object"&&q!==null?vr(q):So,M.state=l.memoizedState,q=h.getDerivedStateFromProps,typeof q=="function"&&(W0(l,h,q,v),M.state=l.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(q=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),q!==M.state&&K0.enqueueReplaceState(M,M.state,null),gd(l,v,M,A),pd(),M.state=l.memoizedState),typeof M.componentDidMount=="function"&&(l.flags|=4194308),v=!0}else if(a===null){M=l.stateNode;var ie=l.memoizedProps,pe=lu(h,ie);M.props=pe;var Ee=M.context,ke=h.contextType;q=So,typeof ke=="object"&&ke!==null&&(q=vr(ke));var ze=h.getDerivedStateFromProps;ke=typeof ze=="function"||typeof M.getSnapshotBeforeUpdate=="function",ie=l.pendingProps!==ie,ke||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(ie||Ee!==q)&&_4(l,M,v,q),Ps=!1;var Oe=l.memoizedState;M.state=Oe,gd(l,v,M,A),pd(),Ee=l.memoizedState,ie||Oe!==Ee||Ps?(typeof ze=="function"&&(W0(l,h,ze,v),Ee=l.memoizedState),(pe=Ps||b4(l,h,pe,v,Oe,Ee,q))?(ke||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(l.flags|=4194308)):(typeof M.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=v,l.memoizedState=Ee),M.props=v,M.state=Ee,M.context=q,v=pe):(typeof M.componentDidMount=="function"&&(l.flags|=4194308),v=!1)}else{M=l.stateNode,E0(a,l),q=l.memoizedProps,ke=lu(h,q),M.props=ke,ze=l.pendingProps,Oe=M.context,Ee=h.contextType,pe=So,typeof Ee=="object"&&Ee!==null&&(pe=vr(Ee)),ie=h.getDerivedStateFromProps,(Ee=typeof ie=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(q!==ze||Oe!==pe)&&_4(l,M,v,pe),Ps=!1,Oe=l.memoizedState,M.state=Oe,gd(l,v,M,A),pd();var Le=l.memoizedState;q!==ze||Oe!==Le||Ps||a!==null&&a.dependencies!==null&&Ym(a.dependencies)?(typeof ie=="function"&&(W0(l,h,ie,v),Le=l.memoizedState),(ke=Ps||b4(l,h,ke,v,Oe,Le,pe)||a!==null&&a.dependencies!==null&&Ym(a.dependencies))?(Ee||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(v,Le,pe),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(v,Le,pe)),typeof M.componentDidUpdate=="function"&&(l.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof M.componentDidUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=1024),l.memoizedProps=v,l.memoizedState=Le),M.props=v,M.state=Le,M.context=pe,v=ke):(typeof M.componentDidUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=1024),v=!1)}return M=v,dp(a,l),v=(l.flags&128)!==0,M||v?(M=l.stateNode,h=v&&typeof h.getDerivedStateFromError!="function"?null:M.render(),l.flags|=1,a!==null&&v?(l.child=ou(l,a.child,null,A),l.child=ou(l,null,h,A)):yr(a,l,h,A),l.memoizedState=M.state,a=l.child):a=jo(a,l,A),a}function D4(a,l,h,v){return Eo(),l.flags|=256,yr(a,l,h,v),l.child}var J0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function e1(a){return{baseLanes:a,cachePool:C3()}}function t1(a,l,h){return a=a!==null?a.childLanes&~h:0,l&&(a|=yi),a}function k4(a,l,h){var v=l.pendingProps,A=!1,M=(l.flags&128)!==0,q;if((q=M)||(q=a!==null&&a.memoizedState===null?!1:(kn.current&2)!==0),q&&(A=!0,l.flags&=-129),q=(l.flags&32)!==0,l.flags&=-33,a===null){if(St){if(A?Ns(l):Ds(),(a=It)?(a=HE(a,Jr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Te!==null?{id:Ue,overflow:Xe}:null,retryLane:536870912,hydrationErrors:null},h=od(a),h.return=l,l.child=h,kt=l,It=null)):a=null,a===null)throw Wa(l);return I1(a)?l.lanes=32:l.lanes=536870912,null}var ie=v.children;return v=v.fallback,A?(Ds(),A=l.mode,ie=hp({mode:"hidden",children:ie},A),v=Co(v,A,h,null),ie.return=l,v.return=l,ie.sibling=v,l.child=ie,v=l.child,v.memoizedState=e1(h),v.childLanes=t1(a,q,h),l.memoizedState=J0,xd(null,v)):(Ns(l),n1(l,ie))}var pe=a.memoizedState;if(pe!==null&&(ie=pe.dehydrated,ie!==null)){if(M)l.flags&256?(Ns(l),l.flags&=-257,l=r1(a,l,h)):l.memoizedState!==null?(Ds(),l.child=a.child,l.flags|=128,l=null):(Ds(),ie=v.fallback,A=l.mode,v=hp({mode:"visible",children:v.children},A),ie=Co(ie,A,h,null),ie.flags|=2,v.return=l,ie.return=l,v.sibling=ie,l.child=v,ou(l,a.child,null,h),v=l.child,v.memoizedState=e1(h),v.childLanes=t1(a,q,h),l.memoizedState=J0,l=xd(null,v));else if(Ns(l),I1(ie)){if(q=ie.nextSibling&&ie.nextSibling.dataset,q)var Ee=q.dgst;q=Ee,v=Error(r(419)),v.stack="",v.digest=q,eu({value:v,source:null,stack:null}),l=r1(a,l,h)}else if(qn||mc(a,l,h,!1),q=(h&a.childLanes)!==0,qn||q){if(q=Jt,q!==null&&(v=Yr(q,h),v!==0&&v!==pe.retryLane))throw pe.retryLane=v,Gi(a,v),ii(q,a,v),X0;k1(ie)||wp(),l=r1(a,l,h)}else k1(ie)?(l.flags|=192,l.child=a.child,l=null):(a=pe.treeContext,It=Ki(ie.nextSibling),kt=l,St=!0,Ya=null,Jr=!1,a!==null&&Ir(l,a),l=n1(l,v.children),l.flags|=4096);return l}return A?(Ds(),ie=v.fallback,A=l.mode,pe=a.child,Ee=pe.sibling,v=Yi(pe,{mode:"hidden",children:v.children}),v.subtreeFlags=pe.subtreeFlags&65011712,Ee!==null?ie=Yi(Ee,ie):(ie=Co(ie,A,h,null),ie.flags|=2),ie.return=l,v.return=l,v.sibling=ie,l.child=v,xd(null,v),v=l.child,ie=a.child.memoizedState,ie===null?ie=e1(h):(A=ie.cachePool,A!==null?(pe=Vn._currentValue,A=A.parent!==pe?{parent:pe,pool:pe}:A):A=C3(),ie={baseLanes:ie.baseLanes|h,cachePool:A}),v.memoizedState=ie,v.childLanes=t1(a,q,h),l.memoizedState=J0,xd(a.child,v)):(Ns(l),h=a.child,a=h.sibling,h=Yi(h,{mode:"visible",children:v.children}),h.return=l,h.sibling=null,a!==null&&(q=l.deletions,q===null?(l.deletions=[a],l.flags|=16):q.push(a)),l.child=h,l.memoizedState=null,h)}function n1(a,l){return l=hp({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function hp(a,l){return a=Or(22,a,null,l),a.lanes=0,a}function r1(a,l,h){return ou(l,a.child,null,h),a=n1(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function I4(a,l,h){a.lanes|=l;var v=a.alternate;v!==null&&(v.lanes|=l),y0(a.return,l,h)}function i1(a,l,h,v,A,M){var q=a.memoizedState;q===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:A,treeForkCount:M}:(q.isBackwards=l,q.rendering=null,q.renderingStartTime=0,q.last=v,q.tail=h,q.tailMode=A,q.treeForkCount=M)}function U4(a,l,h){var v=l.pendingProps,A=v.revealOrder,M=v.tail;v=v.children;var q=kn.current,ie=(q&2)!==0;if(ie?(q=q&1|2,l.flags|=128):q&=1,Y(kn,q),yr(a,l,v,h),v=St?re:0,!ie&&a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&I4(a,h,l);else if(a.tag===19)I4(a,h,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(A){case"forwards":for(h=l.child,A=null;h!==null;)a=h.alternate,a!==null&&tp(a)===null&&(A=h),h=h.sibling;h=A,h===null?(A=l.child,l.child=null):(A=h.sibling,h.sibling=null),i1(l,!1,A,h,M,v);break;case"backwards":case"unstable_legacy-backwards":for(h=null,A=l.child,l.child=null;A!==null;){if(a=A.alternate,a!==null&&tp(a)===null){l.child=A;break}a=A.sibling,A.sibling=h,h=A,A=a}i1(l,!0,h,null,M,v);break;case"together":i1(l,!1,null,null,void 0,v);break;default:l.memoizedState=null}return l.child}function jo(a,l,h){if(a!==null&&(l.dependencies=a.dependencies),Us|=l.lanes,(h&l.childLanes)===0)if(a!==null){if(mc(a,l,h,!1),(h&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,h=Yi(a,a.pendingProps),l.child=h,h.return=l;a.sibling!==null;)a=a.sibling,h=h.sibling=Yi(a,a.pendingProps),h.return=l;h.sibling=null}return l.child}function a1(a,l){return(a.lanes&l)!==0?!0:(a=a.dependencies,!!(a!==null&&Ym(a)))}function EU(a,l,h){switch(l.tag){case 3:D(l,l.stateNode.containerInfo),Ms(l,Vn,a.memoizedState.cache),Eo();break;case 27:case 5:W(l);break;case 4:D(l,l.stateNode.containerInfo);break;case 10:Ms(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,M0(l),null;break;case 13:var v=l.memoizedState;if(v!==null)return v.dehydrated!==null?(Ns(l),l.flags|=128,null):(h&l.child.childLanes)!==0?k4(a,l,h):(Ns(l),a=jo(a,l,h),a!==null?a.sibling:null);Ns(l);break;case 19:var A=(a.flags&128)!==0;if(v=(h&l.childLanes)!==0,v||(mc(a,l,h,!1),v=(h&l.childLanes)!==0),A){if(v)return U4(a,l,h);l.flags|=128}if(A=l.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Y(kn,kn.current),v)break;return null;case 22:return l.lanes=0,M4(a,l,h,l.pendingProps);case 24:Ms(l,Vn,a.memoizedState.cache)}return jo(a,l,h)}function z4(a,l,h){if(a!==null)if(a.memoizedProps!==l.pendingProps)qn=!0;else{if(!a1(a,h)&&(l.flags&128)===0)return qn=!1,EU(a,l,h);qn=(a.flags&131072)!==0}else qn=!1,St&&(l.flags&1048576)!==0&&bt(l,re,l.index);switch(l.lanes=0,l.tag){case 16:e:{var v=l.pendingProps;if(a=iu(l.elementType),l.type=a,typeof a=="function")fc(a)?(v=lu(a,v),l.tag=1,l=N4(null,l,a,v,h)):(l.tag=0,l=Q0(null,l,a,v,h));else{if(a!=null){var A=a.$$typeof;if(A===N){l.tag=11,l=T4(null,l,a,v,h);break e}else if(A===K){l.tag=14,l=O4(null,l,a,v,h);break e}}throw l=X(a)||a,Error(r(306,l,""))}}return l;case 0:return Q0(a,l,l.type,l.pendingProps,h);case 1:return v=l.type,A=lu(v,l.pendingProps),N4(a,l,v,A,h);case 3:e:{if(D(l,l.stateNode.containerInfo),a===null)throw Error(r(387));v=l.pendingProps;var M=l.memoizedState;A=M.element,E0(a,l),gd(l,v,null,h);var q=l.memoizedState;if(v=q.cache,Ms(l,Vn,v),v!==M.cache&&b0(l,[Vn],h,!0),pd(),v=q.element,M.isDehydrated)if(M={element:v,isDehydrated:!1,cache:q.cache},l.updateQueue.baseState=M,l.memoizedState=M,l.flags&256){l=D4(a,l,v,h);break e}else if(v!==A){A=g(Error(r(424)),l),eu(A),l=D4(a,l,v,h);break e}else{switch(a=l.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(It=Ki(a.firstChild),kt=l,St=!0,Ya=null,Jr=!0,h=M3(l,null,v,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Eo(),v===A){l=jo(a,l,h);break e}yr(a,l,v,h)}l=l.child}return l;case 26:return dp(a,l),a===null?(h=ZE(l.type,null,l.pendingProps,null))?l.memoizedState=h:St||(h=l.type,a=l.pendingProps,v=jp(fe.current).createElement(h),v[Fn]=l,v[or]=a,br(v,h,a),$n(v),l.stateNode=v):l.memoizedState=ZE(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return W(l),a===null&&St&&(v=l.stateNode=YE(l.type,l.pendingProps,fe.current),kt=l,Jr=!0,A=It,Vs(l.type)?(U1=A,It=Ki(v.firstChild)):It=A),yr(a,l,l.pendingProps.children,h),dp(a,l),a===null&&(l.flags|=4194304),l.child;case 5:return a===null&&St&&((A=v=It)&&(v=tz(v,l.type,l.pendingProps,Jr),v!==null?(l.stateNode=v,kt=l,It=Ki(v.firstChild),Jr=!1,A=!0):A=!1),A||Wa(l)),W(l),A=l.type,M=l.pendingProps,q=a!==null?a.memoizedProps:null,v=M.children,L1(A,M)?v=null:q!==null&&L1(A,q)&&(l.flags|=32),l.memoizedState!==null&&(A=R0(a,l,gU,null,null,h),kd._currentValue=A),dp(a,l),yr(a,l,v,h),l.child;case 6:return a===null&&St&&((a=h=It)&&(h=nz(h,l.pendingProps,Jr),h!==null?(l.stateNode=h,kt=l,It=null,a=!0):a=!1),a||Wa(l)),null;case 13:return k4(a,l,h);case 4:return D(l,l.stateNode.containerInfo),v=l.pendingProps,a===null?l.child=ou(l,null,v,h):yr(a,l,v,h),l.child;case 11:return T4(a,l,l.type,l.pendingProps,h);case 7:return yr(a,l,l.pendingProps,h),l.child;case 8:return yr(a,l,l.pendingProps.children,h),l.child;case 12:return yr(a,l,l.pendingProps.children,h),l.child;case 10:return v=l.pendingProps,Ms(l,l.type,v.value),yr(a,l,v.children,h),l.child;case 9:return A=l.type._context,v=l.pendingProps.children,nu(l),A=vr(A),v=v(A),l.flags|=1,yr(a,l,v,h),l.child;case 14:return O4(a,l,l.type,l.pendingProps,h);case 15:return j4(a,l,l.type,l.pendingProps,h);case 19:return U4(a,l,h);case 31:return CU(a,l,h);case 22:return M4(a,l,h,l.pendingProps);case 24:return nu(l),v=vr(Vn),a===null?(A=w0(),A===null&&(A=Jt,M=_0(),A.pooledCache=M,M.refCount++,M!==null&&(A.pooledCacheLanes|=h),A=M),l.memoizedState={parent:v,cache:A},C0(l),Ms(l,Vn,A)):((a.lanes&h)!==0&&(E0(a,l),gd(l,null,null,h),pd()),A=a.memoizedState,M=l.memoizedState,A.parent!==v?(A={parent:v,cache:v},l.memoizedState=A,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=A),Ms(l,Vn,v)):(v=M.cache,Ms(l,Vn,v),v!==A.cache&&b0(l,[Vn],h,!0))),yr(a,l,l.pendingProps.children,h),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Mo(a){a.flags|=4}function o1(a,l,h,v,A){if((l=(a.mode&32)!==0)&&(l=!1),l){if(a.flags|=16777216,(A&335544128)===A)if(a.stateNode.complete)a.flags|=8192;else if(dE())a.flags|=8192;else throw au=Xm,S0}else a.flags&=-16777217}function B4(a,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!tA(l))if(dE())a.flags|=8192;else throw au=Xm,S0}function mp(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?fn():536870912,a.lanes|=l,Ac|=l)}function wd(a,l){if(!St)switch(a.tailMode){case"hidden":l=a.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?a.tail=null:h.sibling=null;break;case"collapsed":h=a.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:v.sibling=null}}function on(a){var l=a.alternate!==null&&a.alternate.child===a.child,h=0,v=0;if(l)for(var A=a.child;A!==null;)h|=A.lanes|A.childLanes,v|=A.subtreeFlags&65011712,v|=A.flags&65011712,A.return=a,A=A.sibling;else for(A=a.child;A!==null;)h|=A.lanes|A.childLanes,v|=A.subtreeFlags,v|=A.flags,A.return=a,A=A.sibling;return a.subtreeFlags|=v,a.childLanes=h,l}function AU(a,l,h){var v=l.pendingProps;switch(Tn(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(l),null;case 1:return on(l),null;case 3:return h=l.stateNode,v=null,a!==null&&(v=a.memoizedState.cache),l.memoizedState.cache!==v&&(l.flags|=2048),Ao(Vn),B(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(ma(l)?Mo(l):a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,ud())),on(l),null;case 26:var A=l.type,M=l.memoizedState;return a===null?(Mo(l),M!==null?(on(l),B4(l,M)):(on(l),o1(l,A,null,v,h))):M?M!==a.memoizedState?(Mo(l),on(l),B4(l,M)):(on(l),l.flags&=-16777217):(a=a.memoizedProps,a!==v&&Mo(l),on(l),o1(l,A,a,v,h)),null;case 27:if(le(l),h=fe.current,A=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==v&&Mo(l);else{if(!v){if(l.stateNode===null)throw Error(r(166));return on(l),null}a=ne.current,ma(l)?ld(l):(a=YE(A,v,h),l.stateNode=a,Mo(l))}return on(l),null;case 5:if(le(l),A=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==v&&Mo(l);else{if(!v){if(l.stateNode===null)throw Error(r(166));return on(l),null}if(M=ne.current,ma(l))ld(l);else{var q=jp(fe.current);switch(M){case 1:M=q.createElementNS("http://www.w3.org/2000/svg",A);break;case 2:M=q.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;default:switch(A){case"svg":M=q.createElementNS("http://www.w3.org/2000/svg",A);break;case"math":M=q.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;case"script":M=q.createElement("div"),M.innerHTML="<script><\/script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof v.is=="string"?q.createElement("select",{is:v.is}):q.createElement("select"),v.multiple?M.multiple=!0:v.size&&(M.size=v.size);break;default:M=typeof v.is=="string"?q.createElement(A,{is:v.is}):q.createElement(A)}}M[Fn]=l,M[or]=v;e:for(q=l.child;q!==null;){if(q.tag===5||q.tag===6)M.appendChild(q.stateNode);else if(q.tag!==4&&q.tag!==27&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===l)break e;for(;q.sibling===null;){if(q.return===null||q.return===l)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}l.stateNode=M;e:switch(br(M,A,v),A){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Mo(l)}}return on(l),o1(l,l.type,a===null?null:a.memoizedProps,l.pendingProps,h),null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==v&&Mo(l);else{if(typeof v!="string"&&l.stateNode===null)throw Error(r(166));if(a=fe.current,ma(l)){if(a=l.stateNode,h=l.memoizedProps,v=null,A=kt,A!==null)switch(A.tag){case 27:case 5:v=A.memoizedProps}a[Fn]=l,a=!!(a.nodeValue===h||v!==null&&v.suppressHydrationWarning===!0||kE(a.nodeValue,h)),a||Wa(l,!0)}else a=jp(a).createTextNode(v),a[Fn]=l,l.stateNode=a}return on(l),null;case 31:if(h=l.memoizedState,a===null||a.memoizedState!==null){if(v=ma(l),h!==null){if(a===null){if(!v)throw Error(r(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Fn]=l}else Eo(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;on(l),a=!1}else h=ud(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),a=!0;if(!a)return l.flags&256?(gi(l),l):(gi(l),null);if((l.flags&128)!==0)throw Error(r(558))}return on(l),null;case 13:if(v=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(A=ma(l),v!==null&&v.dehydrated!==null){if(a===null){if(!A)throw Error(r(318));if(A=l.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(r(317));A[Fn]=l}else Eo(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;on(l),A=!1}else A=ud(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=A),A=!0;if(!A)return l.flags&256?(gi(l),l):(gi(l),null)}return gi(l),(l.flags&128)!==0?(l.lanes=h,l):(h=v!==null,a=a!==null&&a.memoizedState!==null,h&&(v=l.child,A=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(A=v.alternate.memoizedState.cachePool.pool),M=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(M=v.memoizedState.cachePool.pool),M!==A&&(v.flags|=2048)),h!==a&&h&&(l.child.flags|=8192),mp(l,l.updateQueue),on(l),null);case 4:return B(),a===null&&O1(l.stateNode.containerInfo),on(l),null;case 10:return Ao(l.type),on(l),null;case 19:if(G(kn),v=l.memoizedState,v===null)return on(l),null;if(A=(l.flags&128)!==0,M=v.rendering,M===null)if(A)wd(v,!1);else{if(jn!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(M=tp(a),M!==null){for(l.flags|=128,wd(v,!1),a=M.updateQueue,l.updateQueue=a,mp(l,a),l.subtreeFlags=0,a=h,h=l.child;h!==null;)ad(h,a),h=h.sibling;return Y(kn,kn.current&1|2),St&&at(l,v.treeForkCount),l.child}a=a.sibling}v.tail!==null&&_e()>bp&&(l.flags|=128,A=!0,wd(v,!1),l.lanes=4194304)}else{if(!A)if(a=tp(M),a!==null){if(l.flags|=128,A=!0,a=a.updateQueue,l.updateQueue=a,mp(l,a),wd(v,!0),v.tail===null&&v.tailMode==="hidden"&&!M.alternate&&!St)return on(l),null}else 2*_e()-v.renderingStartTime>bp&&h!==536870912&&(l.flags|=128,A=!0,wd(v,!1),l.lanes=4194304);v.isBackwards?(M.sibling=l.child,l.child=M):(a=v.last,a!==null?a.sibling=M:l.child=M,v.last=M)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=_e(),a.sibling=null,h=kn.current,Y(kn,A?h&1|2:h&1),St&&at(l,v.treeForkCount),a):(on(l),null);case 22:case 23:return gi(l),j0(),v=l.memoizedState!==null,a!==null?a.memoizedState!==null!==v&&(l.flags|=8192):v&&(l.flags|=8192),v?(h&536870912)!==0&&(l.flags&128)===0&&(on(l),l.subtreeFlags&6&&(l.flags|=8192)):on(l),h=l.updateQueue,h!==null&&mp(l,h.retryQueue),h=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),v=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(v=l.memoizedState.cachePool.pool),v!==h&&(l.flags|=2048),a!==null&&G(ru),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),Ao(Vn),on(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function TU(a,l){switch(Tn(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Ao(Vn),B(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return le(l),null;case 31:if(l.memoizedState!==null){if(gi(l),l.alternate===null)throw Error(r(340));Eo()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 13:if(gi(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Eo()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return G(kn),null;case 4:return B(),null;case 10:return Ao(l.type),null;case 22:case 23:return gi(l),j0(),a!==null&&G(ru),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return Ao(Vn),null;case 25:return null;default:return null}}function F4(a,l){switch(Tn(l),l.tag){case 3:Ao(Vn),B();break;case 26:case 27:case 5:le(l);break;case 4:B();break;case 31:l.memoizedState!==null&&gi(l);break;case 13:gi(l);break;case 19:G(kn);break;case 10:Ao(l.type);break;case 22:case 23:gi(l),j0(),a!==null&&G(ru);break;case 24:Ao(Vn)}}function Sd(a,l){try{var h=l.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var A=v.next;h=A;do{if((h.tag&a)===a){v=void 0;var M=h.create,q=h.inst;v=M(),q.destroy=v}h=h.next}while(h!==A)}}catch(ie){qt(l,l.return,ie)}}function ks(a,l,h){try{var v=l.updateQueue,A=v!==null?v.lastEffect:null;if(A!==null){var M=A.next;v=M;do{if((v.tag&a)===a){var q=v.inst,ie=q.destroy;if(ie!==void 0){q.destroy=void 0,A=l;var pe=h,Ee=ie;try{Ee()}catch(ke){qt(A,pe,ke)}}}v=v.next}while(v!==M)}}catch(ke){qt(l,l.return,ke)}}function $4(a){var l=a.updateQueue;if(l!==null){var h=a.stateNode;try{R3(l,h)}catch(v){qt(a,a.return,v)}}}function V4(a,l,h){h.props=lu(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount()}catch(v){qt(a,l,v)}}function Cd(a,l){try{var h=a.ref;if(h!==null){switch(a.tag){case 26:case 27:case 5:var v=a.stateNode;break;case 30:v=a.stateNode;break;default:v=a.stateNode}typeof h=="function"?a.refCleanup=h(v):h.current=v}}catch(A){qt(a,l,A)}}function Za(a,l){var h=a.ref,v=a.refCleanup;if(h!==null)if(typeof v=="function")try{v()}catch(A){qt(a,l,A)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(A){qt(a,l,A)}else h.current=null}function H4(a){var l=a.type,h=a.memoizedProps,v=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":h.autoFocus&&v.focus();break e;case"img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet)}}catch(A){qt(a,a.return,A)}}function s1(a,l,h){try{var v=a.stateNode;KU(v,a.type,h,l),v[or]=l}catch(A){qt(a,a.return,A)}}function q4(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Vs(a.type)||a.tag===4}function l1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||q4(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Vs(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function u1(a,l,h){var v=a.tag;if(v===5||v===6)a=a.stateNode,l?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(a,l):(l=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,l.appendChild(a),h=h._reactRootContainer,h!=null||l.onclick!==null||(l.onclick=Kr));else if(v!==4&&(v===27&&Vs(a.type)&&(h=a.stateNode,l=null),a=a.child,a!==null))for(u1(a,l,h),a=a.sibling;a!==null;)u1(a,l,h),a=a.sibling}function pp(a,l,h){var v=a.tag;if(v===5||v===6)a=a.stateNode,l?h.insertBefore(a,l):h.appendChild(a);else if(v!==4&&(v===27&&Vs(a.type)&&(h=a.stateNode),a=a.child,a!==null))for(pp(a,l,h),a=a.sibling;a!==null;)pp(a,l,h),a=a.sibling}function G4(a){var l=a.stateNode,h=a.memoizedProps;try{for(var v=a.type,A=l.attributes;A.length;)l.removeAttributeNode(A[0]);br(l,v,h),l[Fn]=a,l[or]=h}catch(M){qt(a,a.return,M)}}var Po=!1,Gn=!1,c1=!1,Y4=typeof WeakSet=="function"?WeakSet:Set,ur=null;function OU(a,l){if(a=a.containerInfo,P1=kp,a=Gl(a),$a(a)){if("selectionStart"in a)var h={start:a.selectionStart,end:a.selectionEnd};else e:{h=(h=a.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var A=v.anchorOffset,M=v.focusNode;v=v.focusOffset;try{h.nodeType,M.nodeType}catch{h=null;break e}var q=0,ie=-1,pe=-1,Ee=0,ke=0,ze=a,Oe=null;t:for(;;){for(var Le;ze!==h||A!==0&&ze.nodeType!==3||(ie=q+A),ze!==M||v!==0&&ze.nodeType!==3||(pe=q+v),ze.nodeType===3&&(q+=ze.nodeValue.length),(Le=ze.firstChild)!==null;)Oe=ze,ze=Le;for(;;){if(ze===a)break t;if(Oe===h&&++Ee===A&&(ie=q),Oe===M&&++ke===v&&(pe=q),(Le=ze.nextSibling)!==null)break;ze=Oe,Oe=ze.parentNode}ze=Le}h=ie===-1||pe===-1?null:{start:ie,end:pe}}else h=null}h=h||{start:0,end:0}}else h=null;for(R1={focusedElem:a,selectionRange:h},kp=!1,ur=l;ur!==null;)if(l=ur,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,ur=a;else for(;ur!==null;){switch(l=ur,M=l.alternate,a=l.flags,l.tag){case 0:if((a&4)!==0&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(h=0;h<a.length;h++)A=a[h],A.ref.impl=A.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&M!==null){a=void 0,h=l,A=M.memoizedProps,M=M.memoizedState,v=h.stateNode;try{var et=lu(h.type,A);a=v.getSnapshotBeforeUpdate(et,M),v.__reactInternalSnapshotBeforeUpdate=a}catch(ct){qt(h,h.return,ct)}}break;case 3:if((a&1024)!==0){if(a=l.stateNode.containerInfo,h=a.nodeType,h===9)D1(a);else if(h===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":D1(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=l.sibling,a!==null){a.return=l.return,ur=a;break}ur=l.return}}function W4(a,l,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:Lo(a,h),v&4&&Sd(5,h);break;case 1:if(Lo(a,h),v&4)if(a=h.stateNode,l===null)try{a.componentDidMount()}catch(q){qt(h,h.return,q)}else{var A=lu(h.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(A,l,a.__reactInternalSnapshotBeforeUpdate)}catch(q){qt(h,h.return,q)}}v&64&&$4(h),v&512&&Cd(h,h.return);break;case 3:if(Lo(a,h),v&64&&(a=h.updateQueue,a!==null)){if(l=null,h.child!==null)switch(h.child.tag){case 27:case 5:l=h.child.stateNode;break;case 1:l=h.child.stateNode}try{R3(a,l)}catch(q){qt(h,h.return,q)}}break;case 27:l===null&&v&4&&G4(h);case 26:case 5:Lo(a,h),l===null&&v&4&&H4(h),v&512&&Cd(h,h.return);break;case 12:Lo(a,h);break;case 31:Lo(a,h),v&4&&X4(a,h);break;case 13:Lo(a,h),v&4&&Q4(a,h),v&64&&(a=h.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(h=IU.bind(null,h),rz(a,h))));break;case 22:if(v=h.memoizedState!==null||Po,!v){l=l!==null&&l.memoizedState!==null||Gn,A=Po;var M=Gn;Po=v,(Gn=l)&&!M?No(a,h,(h.subtreeFlags&8772)!==0):Lo(a,h),Po=A,Gn=M}break;case 30:break;default:Lo(a,h)}}function K4(a){var l=a.alternate;l!==null&&(a.alternate=null,K4(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&Ff(l)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var hn=null,ei=!1;function Ro(a,l,h){for(h=h.child;h!==null;)Z4(a,l,h),h=h.sibling}function Z4(a,l,h){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(dt,h)}catch{}switch(h.tag){case 26:Gn||Za(h,l),Ro(a,l,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Gn||Za(h,l);var v=hn,A=ei;Vs(h.type)&&(hn=h.stateNode,ei=!1),Ro(a,l,h),Ld(h.stateNode),hn=v,ei=A;break;case 5:Gn||Za(h,l);case 6:if(v=hn,A=ei,hn=null,Ro(a,l,h),hn=v,ei=A,hn!==null)if(ei)try{(hn.nodeType===9?hn.body:hn.nodeName==="HTML"?hn.ownerDocument.body:hn).removeChild(h.stateNode)}catch(M){qt(h,l,M)}else try{hn.removeChild(h.stateNode)}catch(M){qt(h,l,M)}break;case 18:hn!==null&&(ei?(a=hn,$E(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,h.stateNode),Nc(a)):$E(hn,h.stateNode));break;case 4:v=hn,A=ei,hn=h.stateNode.containerInfo,ei=!0,Ro(a,l,h),hn=v,ei=A;break;case 0:case 11:case 14:case 15:ks(2,h,l),Gn||ks(4,h,l),Ro(a,l,h);break;case 1:Gn||(Za(h,l),v=h.stateNode,typeof v.componentWillUnmount=="function"&&V4(h,l,v)),Ro(a,l,h);break;case 21:Ro(a,l,h);break;case 22:Gn=(v=Gn)||h.memoizedState!==null,Ro(a,l,h),Gn=v;break;default:Ro(a,l,h)}}function X4(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Nc(a)}catch(h){qt(l,l.return,h)}}}function Q4(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Nc(a)}catch(h){qt(l,l.return,h)}}function jU(a){switch(a.tag){case 31:case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new Y4),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new Y4),l;default:throw Error(r(435,a.tag))}}function gp(a,l){var h=jU(a);l.forEach(function(v){if(!h.has(v)){h.add(v);var A=UU.bind(null,a,v);v.then(A,A)}})}function ti(a,l){var h=l.deletions;if(h!==null)for(var v=0;v<h.length;v++){var A=h[v],M=a,q=l,ie=q;e:for(;ie!==null;){switch(ie.tag){case 27:if(Vs(ie.type)){hn=ie.stateNode,ei=!1;break e}break;case 5:hn=ie.stateNode,ei=!1;break e;case 3:case 4:hn=ie.stateNode.containerInfo,ei=!0;break e}ie=ie.return}if(hn===null)throw Error(r(160));Z4(M,q,A),hn=null,ei=!1,M=A.alternate,M!==null&&(M.return=null),A.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)J4(l,a),l=l.sibling}var ga=null;function J4(a,l){var h=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ti(l,a),ni(a),v&4&&(ks(3,a,a.return),Sd(3,a),ks(5,a,a.return));break;case 1:ti(l,a),ni(a),v&512&&(Gn||h===null||Za(h,h.return)),v&64&&Po&&(a=a.updateQueue,a!==null&&(v=a.callbacks,v!==null&&(h=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=h===null?v:h.concat(v))));break;case 26:var A=ga;if(ti(l,a),ni(a),v&512&&(Gn||h===null||Za(h,h.return)),v&4){var M=h!==null?h.memoizedState:null;if(v=a.memoizedState,h===null)if(v===null)if(a.stateNode===null){e:{v=a.type,h=a.memoizedProps,A=A.ownerDocument||A;t:switch(v){case"title":M=A.getElementsByTagName("title")[0],(!M||M[Ml]||M[Fn]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=A.createElement(v),A.head.insertBefore(M,A.querySelector("head > title"))),br(M,v,h),M[Fn]=a,$n(M),v=M;break e;case"link":var q=JE("link","href",A).get(v+(h.href||""));if(q){for(var ie=0;ie<q.length;ie++)if(M=q[ie],M.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&M.getAttribute("rel")===(h.rel==null?null:h.rel)&&M.getAttribute("title")===(h.title==null?null:h.title)&&M.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){q.splice(ie,1);break t}}M=A.createElement(v),br(M,v,h),A.head.appendChild(M);break;case"meta":if(q=JE("meta","content",A).get(v+(h.content||""))){for(ie=0;ie<q.length;ie++)if(M=q[ie],M.getAttribute("content")===(h.content==null?null:""+h.content)&&M.getAttribute("name")===(h.name==null?null:h.name)&&M.getAttribute("property")===(h.property==null?null:h.property)&&M.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&M.getAttribute("charset")===(h.charSet==null?null:h.charSet)){q.splice(ie,1);break t}}M=A.createElement(v),br(M,v,h),A.head.appendChild(M);break;default:throw Error(r(468,v))}M[Fn]=a,$n(M),v=M}a.stateNode=v}else eA(A,a.type,a.stateNode);else a.stateNode=QE(A,v,a.memoizedProps);else M!==v?(M===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):M.count--,v===null?eA(A,a.type,a.stateNode):QE(A,v,a.memoizedProps)):v===null&&a.stateNode!==null&&s1(a,a.memoizedProps,h.memoizedProps)}break;case 27:ti(l,a),ni(a),v&512&&(Gn||h===null||Za(h,h.return)),h!==null&&v&4&&s1(a,a.memoizedProps,h.memoizedProps);break;case 5:if(ti(l,a),ni(a),v&512&&(Gn||h===null||Za(h,h.return)),a.flags&32){A=a.stateNode;try{Bi(A,"")}catch(et){qt(a,a.return,et)}}v&4&&a.stateNode!=null&&(A=a.memoizedProps,s1(a,A,h!==null?h.memoizedProps:A)),v&1024&&(c1=!0);break;case 6:if(ti(l,a),ni(a),v&4){if(a.stateNode===null)throw Error(r(162));v=a.memoizedProps,h=a.stateNode;try{h.nodeValue=v}catch(et){qt(a,a.return,et)}}break;case 3:if(Rp=null,A=ga,ga=Mp(l.containerInfo),ti(l,a),ga=A,ni(a),v&4&&h!==null&&h.memoizedState.isDehydrated)try{Nc(l.containerInfo)}catch(et){qt(a,a.return,et)}c1&&(c1=!1,eE(a));break;case 4:v=ga,ga=Mp(a.stateNode.containerInfo),ti(l,a),ni(a),ga=v;break;case 12:ti(l,a),ni(a);break;case 31:ti(l,a),ni(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,gp(a,v)));break;case 13:ti(l,a),ni(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(yp=_e()),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,gp(a,v)));break;case 22:A=a.memoizedState!==null;var pe=h!==null&&h.memoizedState!==null,Ee=Po,ke=Gn;if(Po=Ee||A,Gn=ke||pe,ti(l,a),Gn=ke,Po=Ee,ni(a),v&8192)e:for(l=a.stateNode,l._visibility=A?l._visibility&-2:l._visibility|1,A&&(h===null||pe||Po||Gn||uu(a)),h=null,l=a;;){if(l.tag===5||l.tag===26){if(h===null){pe=h=l;try{if(M=pe.stateNode,A)q=M.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none";else{ie=pe.stateNode;var ze=pe.memoizedProps.style,Oe=ze!=null&&ze.hasOwnProperty("display")?ze.display:null;ie.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(et){qt(pe,pe.return,et)}}}else if(l.tag===6){if(h===null){pe=l;try{pe.stateNode.nodeValue=A?"":pe.memoizedProps}catch(et){qt(pe,pe.return,et)}}}else if(l.tag===18){if(h===null){pe=l;try{var Le=pe.stateNode;A?VE(Le,!0):VE(pe.stateNode,!1)}catch(et){qt(pe,pe.return,et)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;h===l&&(h=null),l=l.return}h===l&&(h=null),l.sibling.return=l.return,l=l.sibling}v&4&&(v=a.updateQueue,v!==null&&(h=v.retryQueue,h!==null&&(v.retryQueue=null,gp(a,h))));break;case 19:ti(l,a),ni(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,gp(a,v)));break;case 30:break;case 21:break;default:ti(l,a),ni(a)}}function ni(a){var l=a.flags;if(l&2){try{for(var h,v=a.return;v!==null;){if(q4(v)){h=v;break}v=v.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var A=h.stateNode,M=l1(a);pp(a,M,A);break;case 5:var q=h.stateNode;h.flags&32&&(Bi(q,""),h.flags&=-33);var ie=l1(a);pp(a,ie,q);break;case 3:case 4:var pe=h.stateNode.containerInfo,Ee=l1(a);u1(a,Ee,pe);break;default:throw Error(r(161))}}catch(ke){qt(a,a.return,ke)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function eE(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;eE(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function Lo(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)W4(a,l.alternate,l),l=l.sibling}function uu(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:ks(4,l,l.return),uu(l);break;case 1:Za(l,l.return);var h=l.stateNode;typeof h.componentWillUnmount=="function"&&V4(l,l.return,h),uu(l);break;case 27:Ld(l.stateNode);case 26:case 5:Za(l,l.return),uu(l);break;case 22:l.memoizedState===null&&uu(l);break;case 30:uu(l);break;default:uu(l)}a=a.sibling}}function No(a,l,h){for(h=h&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var v=l.alternate,A=a,M=l,q=M.flags;switch(M.tag){case 0:case 11:case 15:No(A,M,h),Sd(4,M);break;case 1:if(No(A,M,h),v=M,A=v.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(Ee){qt(v,v.return,Ee)}if(v=M,A=v.updateQueue,A!==null){var ie=v.stateNode;try{var pe=A.shared.hiddenCallbacks;if(pe!==null)for(A.shared.hiddenCallbacks=null,A=0;A<pe.length;A++)P3(pe[A],ie)}catch(Ee){qt(v,v.return,Ee)}}h&&q&64&&$4(M),Cd(M,M.return);break;case 27:G4(M);case 26:case 5:No(A,M,h),h&&v===null&&q&4&&H4(M),Cd(M,M.return);break;case 12:No(A,M,h);break;case 31:No(A,M,h),h&&q&4&&X4(A,M);break;case 13:No(A,M,h),h&&q&4&&Q4(A,M);break;case 22:M.memoizedState===null&&No(A,M,h),Cd(M,M.return);break;case 30:break;default:No(A,M,h)}l=l.sibling}}function f1(a,l){var h=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==h&&(a!=null&&a.refCount++,h!=null&&cd(h))}function d1(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&cd(a))}function va(a,l,h,v){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)tE(a,l,h,v),l=l.sibling}function tE(a,l,h,v){var A=l.flags;switch(l.tag){case 0:case 11:case 15:va(a,l,h,v),A&2048&&Sd(9,l);break;case 1:va(a,l,h,v);break;case 3:va(a,l,h,v),A&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&cd(a)));break;case 12:if(A&2048){va(a,l,h,v),a=l.stateNode;try{var M=l.memoizedProps,q=M.id,ie=M.onPostCommit;typeof ie=="function"&&ie(q,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(pe){qt(l,l.return,pe)}}else va(a,l,h,v);break;case 31:va(a,l,h,v);break;case 13:va(a,l,h,v);break;case 23:break;case 22:M=l.stateNode,q=l.alternate,l.memoizedState!==null?M._visibility&2?va(a,l,h,v):Ed(a,l):M._visibility&2?va(a,l,h,v):(M._visibility|=2,Sc(a,l,h,v,(l.subtreeFlags&10256)!==0||!1)),A&2048&&f1(q,l);break;case 24:va(a,l,h,v),A&2048&&d1(l.alternate,l);break;default:va(a,l,h,v)}}function Sc(a,l,h,v,A){for(A=A&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var M=a,q=l,ie=h,pe=v,Ee=q.flags;switch(q.tag){case 0:case 11:case 15:Sc(M,q,ie,pe,A),Sd(8,q);break;case 23:break;case 22:var ke=q.stateNode;q.memoizedState!==null?ke._visibility&2?Sc(M,q,ie,pe,A):Ed(M,q):(ke._visibility|=2,Sc(M,q,ie,pe,A)),A&&Ee&2048&&f1(q.alternate,q);break;case 24:Sc(M,q,ie,pe,A),A&&Ee&2048&&d1(q.alternate,q);break;default:Sc(M,q,ie,pe,A)}l=l.sibling}}function Ed(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var h=a,v=l,A=v.flags;switch(v.tag){case 22:Ed(h,v),A&2048&&f1(v.alternate,v);break;case 24:Ed(h,v),A&2048&&d1(v.alternate,v);break;default:Ed(h,v)}l=l.sibling}}var Ad=8192;function Cc(a,l,h){if(a.subtreeFlags&Ad)for(a=a.child;a!==null;)nE(a,l,h),a=a.sibling}function nE(a,l,h){switch(a.tag){case 26:Cc(a,l,h),a.flags&Ad&&a.memoizedState!==null&&pz(h,ga,a.memoizedState,a.memoizedProps);break;case 5:Cc(a,l,h);break;case 3:case 4:var v=ga;ga=Mp(a.stateNode.containerInfo),Cc(a,l,h),ga=v;break;case 22:a.memoizedState===null&&(v=a.alternate,v!==null&&v.memoizedState!==null?(v=Ad,Ad=16777216,Cc(a,l,h),Ad=v):Cc(a,l,h));break;default:Cc(a,l,h)}}function rE(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}function Td(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var v=l[h];ur=v,aE(v,a)}rE(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)iE(a),a=a.sibling}function iE(a){switch(a.tag){case 0:case 11:case 15:Td(a),a.flags&2048&&ks(9,a,a.return);break;case 3:Td(a);break;case 12:Td(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&2&&(a.return===null||a.return.tag!==13)?(l._visibility&=-3,vp(a)):Td(a);break;default:Td(a)}}function vp(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var v=l[h];ur=v,aE(v,a)}rE(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:ks(8,l,l.return),vp(l);break;case 22:h=l.stateNode,h._visibility&2&&(h._visibility&=-3,vp(l));break;default:vp(l)}a=a.sibling}}function aE(a,l){for(;ur!==null;){var h=ur;switch(h.tag){case 0:case 11:case 15:ks(8,h,l);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var v=h.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:cd(h.memoizedState.cache)}if(v=h.child,v!==null)v.return=h,ur=v;else e:for(h=a;ur!==null;){v=ur;var A=v.sibling,M=v.return;if(K4(v),v===h){ur=null;break e}if(A!==null){A.return=M,ur=A;break e}ur=M}}}var MU={getCacheForType:function(a){var l=vr(Vn),h=l.data.get(a);return h===void 0&&(h=a(),l.data.set(a,h)),h},cacheSignal:function(){return vr(Vn).controller.signal}},PU=typeof WeakMap=="function"?WeakMap:Map,Ft=0,Jt=null,Ct=null,jt=0,Ht=0,vi=null,Is=!1,Ec=!1,h1=!1,Do=0,jn=0,Us=0,cu=0,m1=0,yi=0,Ac=0,Od=null,ri=null,p1=!1,yp=0,oE=0,bp=1/0,_p=null,zs=null,er=0,Bs=null,Tc=null,ko=0,g1=0,v1=null,sE=null,jd=0,y1=null;function bi(){return(Ft&2)!==0&&jt!==0?jt&-jt:Z.T!==null?C1():zf()}function lE(){if(yi===0)if((jt&536870912)===0||St){var a=mo;mo<<=1,(mo&3932160)===0&&(mo=262144),yi=a}else yi=536870912;return a=pi.current,a!==null&&(a.flags|=32),yi}function ii(a,l,h){(a===Jt&&(Ht===2||Ht===9)||a.cancelPendingCommit!==null)&&(Oc(a,0),Fs(a,jt,yi,!1)),_n(a,h),((Ft&2)===0||a!==Jt)&&(a===Jt&&((Ft&2)===0&&(cu|=h),jn===4&&Fs(a,jt,yi,!1)),Xa(a))}function uE(a,l,h){if((Ft&6)!==0)throw Error(r(327));var v=!h&&(l&127)===0&&(l&a.expiredLanes)===0||ci(a,l),A=v?NU(a,l):_1(a,l,!0),M=v;do{if(A===0){Ec&&!v&&Fs(a,l,0,!1);break}else{if(h=a.current.alternate,M&&!RU(h)){A=_1(a,l,!1),M=!1;continue}if(A===2){if(M=l,a.errorRecoveryDisabledLanes&M)var q=0;else q=a.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){l=q;e:{var ie=a;A=Od;var pe=ie.current.memoizedState.isDehydrated;if(pe&&(Oc(ie,q).flags|=256),q=_1(ie,q,!1),q!==2){if(h1&&!pe){ie.errorRecoveryDisabledLanes|=M,cu|=M,A=4;break e}M=ri,ri=A,M!==null&&(ri===null?ri=M:ri.push.apply(ri,M))}A=q}if(M=!1,A!==2)continue}}if(A===1){Oc(a,0),Fs(a,l,0,!0);break}e:{switch(v=a,M=A,M){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Fs(v,l,yi,!Is);break e;case 2:ri=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(A=yp+300-_e(),10<A)){if(Fs(v,l,yi,!Is),Da(v,0,!0)!==0)break e;ko=l,v.timeoutHandle=BE(cE.bind(null,v,h,ri,_p,p1,l,yi,cu,Ac,Is,M,"Throttled",-0,0),A);break e}cE(v,h,ri,_p,p1,l,yi,cu,Ac,Is,M,null,-0,0)}}break}while(!0);Xa(a)}function cE(a,l,h,v,A,M,q,ie,pe,Ee,ke,ze,Oe,Le){if(a.timeoutHandle=-1,ze=l.subtreeFlags,ze&8192||(ze&16785408)===16785408){ze={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kr},nE(l,M,ze);var et=(M&62914560)===M?yp-_e():(M&4194048)===M?oE-_e():0;if(et=gz(ze,et),et!==null){ko=M,a.cancelPendingCommit=et(yE.bind(null,a,l,M,h,v,A,q,ie,pe,ke,ze,null,Oe,Le)),Fs(a,M,q,!Ee);return}}yE(a,l,M,h,v,A,q,ie,pe)}function RU(a){for(var l=a;;){var h=l.tag;if((h===0||h===11||h===15)&&l.flags&16384&&(h=l.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var A=h[v],M=A.getSnapshot;A=A.value;try{if(!sr(M(),A))return!1}catch{return!1}}if(h=l.child,l.subtreeFlags&16384&&h!==null)h.return=l,l=h;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Fs(a,l,h,v){l&=~m1,l&=~cu,a.suspendedLanes|=l,a.pingedLanes&=~l,v&&(a.warmLanes|=l),v=a.expirationTimes;for(var A=l;0<A;){var M=31-yt(A),q=1<<M;v[M]=-1,A&=~q}h!==0&&En(a,h,l)}function xp(){return(Ft&6)===0?(Md(0),!1):!0}function b1(){if(Ct!==null){if(Ht===0)var a=Ct.return;else a=Ct,pa=Ka=null,D0(a),yc=null,dd=0,a=Ct;for(;a!==null;)F4(a.alternate,a),a=a.return;Ct=null}}function Oc(a,l){var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,QU(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),ko=0,b1(),Jt=a,Ct=h=Yi(a.current,null),jt=l,Ht=0,vi=null,Is=!1,Ec=ci(a,l),h1=!1,Ac=yi=m1=cu=Us=jn=0,ri=Od=null,p1=!1,(l&8)!==0&&(l|=l&32);var v=a.entangledLanes;if(v!==0)for(a=a.entanglements,v&=l;0<v;){var A=31-yt(v),M=1<<A;l|=a[A],v&=~M}return Do=l,Xl(),h}function fE(a,l){vt=null,Z.H=_d,l===vc||l===Zm?(l=T3(),Ht=3):l===S0?(l=T3(),Ht=4):Ht=l===X0?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,vi=l,Ct===null&&(jn=1,cp(a,g(l,a.current)))}function dE(){var a=pi.current;return a===null?!0:(jt&4194048)===jt?Wi===null:(jt&62914560)===jt||(jt&536870912)!==0?a===Wi:!1}function hE(){var a=Z.H;return Z.H=_d,a===null?_d:a}function mE(){var a=Z.A;return Z.A=MU,a}function wp(){jn=4,Is||(jt&4194048)!==jt&&pi.current!==null||(Ec=!0),(Us&134217727)===0&&(cu&134217727)===0||Jt===null||Fs(Jt,jt,yi,!1)}function _1(a,l,h){var v=Ft;Ft|=2;var A=hE(),M=mE();(Jt!==a||jt!==l)&&(_p=null,Oc(a,l)),l=!1;var q=jn;e:do try{if(Ht!==0&&Ct!==null){var ie=Ct,pe=vi;switch(Ht){case 8:b1(),q=6;break e;case 3:case 2:case 9:case 6:pi.current===null&&(l=!0);var Ee=Ht;if(Ht=0,vi=null,jc(a,ie,pe,Ee),h&&Ec){q=0;break e}break;default:Ee=Ht,Ht=0,vi=null,jc(a,ie,pe,Ee)}}LU(),q=jn;break}catch(ke){fE(a,ke)}while(!0);return l&&a.shellSuspendCounter++,pa=Ka=null,Ft=v,Z.H=A,Z.A=M,Ct===null&&(Jt=null,jt=0,Xl()),q}function LU(){for(;Ct!==null;)pE(Ct)}function NU(a,l){var h=Ft;Ft|=2;var v=hE(),A=mE();Jt!==a||jt!==l?(_p=null,bp=_e()+500,Oc(a,l)):Ec=ci(a,l);e:do try{if(Ht!==0&&Ct!==null){l=Ct;var M=vi;t:switch(Ht){case 1:Ht=0,vi=null,jc(a,l,M,1);break;case 2:case 9:if(E3(M)){Ht=0,vi=null,gE(l);break}l=function(){Ht!==2&&Ht!==9||Jt!==a||(Ht=7),Xa(a)},M.then(l,l);break e;case 3:Ht=7;break e;case 4:Ht=5;break e;case 7:E3(M)?(Ht=0,vi=null,gE(l)):(Ht=0,vi=null,jc(a,l,M,7));break;case 5:var q=null;switch(Ct.tag){case 26:q=Ct.memoizedState;case 5:case 27:var ie=Ct;if(q?tA(q):ie.stateNode.complete){Ht=0,vi=null;var pe=ie.sibling;if(pe!==null)Ct=pe;else{var Ee=ie.return;Ee!==null?(Ct=Ee,Sp(Ee)):Ct=null}break t}}Ht=0,vi=null,jc(a,l,M,5);break;case 6:Ht=0,vi=null,jc(a,l,M,6);break;case 8:b1(),jn=6;break e;default:throw Error(r(462))}}DU();break}catch(ke){fE(a,ke)}while(!0);return pa=Ka=null,Z.H=v,Z.A=A,Ft=h,Ct!==null?0:(Jt=null,jt=0,Xl(),jn)}function DU(){for(;Ct!==null&&!He();)pE(Ct)}function pE(a){var l=z4(a.alternate,a,Do);a.memoizedProps=a.pendingProps,l===null?Sp(a):Ct=l}function gE(a){var l=a,h=l.alternate;switch(l.tag){case 15:case 0:l=L4(h,l,l.pendingProps,l.type,void 0,jt);break;case 11:l=L4(h,l,l.pendingProps,l.type.render,l.ref,jt);break;case 5:D0(l);default:F4(h,l),l=Ct=ad(l,Do),l=z4(h,l,Do)}a.memoizedProps=a.pendingProps,l===null?Sp(a):Ct=l}function jc(a,l,h,v){pa=Ka=null,D0(l),yc=null,dd=0;var A=l.return;try{if(SU(a,A,l,h,jt)){jn=1,cp(a,g(h,a.current)),Ct=null;return}}catch(M){if(A!==null)throw Ct=A,M;jn=1,cp(a,g(h,a.current)),Ct=null;return}l.flags&32768?(St||v===1?a=!0:Ec||(jt&536870912)!==0?a=!1:(Is=a=!0,(v===2||v===9||v===3||v===6)&&(v=pi.current,v!==null&&v.tag===13&&(v.flags|=16384))),vE(l,a)):Sp(l)}function Sp(a){var l=a;do{if((l.flags&32768)!==0){vE(l,Is);return}a=l.return;var h=AU(l.alternate,l,Do);if(h!==null){Ct=h;return}if(l=l.sibling,l!==null){Ct=l;return}Ct=l=a}while(l!==null);jn===0&&(jn=5)}function vE(a,l){do{var h=TU(a.alternate,a);if(h!==null){h.flags&=32767,Ct=h;return}if(h=a.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!l&&(a=a.sibling,a!==null)){Ct=a;return}Ct=a=h}while(a!==null);jn=6,Ct=null}function yE(a,l,h,v,A,M,q,ie,pe){a.cancelPendingCommit=null;do Cp();while(er!==0);if((Ft&6)!==0)throw Error(r(327));if(l!==null){if(l===a.current)throw Error(r(177));if(M=l.lanes|l.childLanes,M|=cc,Xn(a,h,M,q,ie,pe),a===Jt&&(Ct=Jt=null,jt=0),Tc=l,Bs=a,ko=h,g1=M,v1=A,sE=v,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,zU($e,function(){return SE(),null})):(a.callbackNode=null,a.callbackPriority=0),v=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||v){v=Z.T,Z.T=null,A=I.p,I.p=2,q=Ft,Ft|=4;try{OU(a,l,h)}finally{Ft=q,I.p=A,Z.T=v}}er=1,bE(),_E(),xE()}}function bE(){if(er===1){er=0;var a=Bs,l=Tc,h=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||h){h=Z.T,Z.T=null;var v=I.p;I.p=2;var A=Ft;Ft|=4;try{J4(l,a);var M=R1,q=Gl(a.containerInfo),ie=M.focusedElem,pe=M.selectionRange;if(q!==ie&&ie&&ie.ownerDocument&&oc(ie.ownerDocument.documentElement,ie)){if(pe!==null&&$a(ie)){var Ee=pe.start,ke=pe.end;if(ke===void 0&&(ke=Ee),"selectionStart"in ie)ie.selectionStart=Ee,ie.selectionEnd=Math.min(ke,ie.value.length);else{var ze=ie.ownerDocument||document,Oe=ze&&ze.defaultView||window;if(Oe.getSelection){var Le=Oe.getSelection(),et=ie.textContent.length,ct=Math.min(pe.start,et),Zt=pe.end===void 0?ct:Math.min(pe.end,et);!Le.extend&&ct>Zt&&(q=Zt,Zt=ct,ct=q);var xe=ql(ie,ct),ye=ql(ie,Zt);if(xe&&ye&&(Le.rangeCount!==1||Le.anchorNode!==xe.node||Le.anchorOffset!==xe.offset||Le.focusNode!==ye.node||Le.focusOffset!==ye.offset)){var Ce=ze.createRange();Ce.setStart(xe.node,xe.offset),Le.removeAllRanges(),ct>Zt?(Le.addRange(Ce),Le.extend(ye.node,ye.offset)):(Ce.setEnd(ye.node,ye.offset),Le.addRange(Ce))}}}}for(ze=[],Le=ie;Le=Le.parentNode;)Le.nodeType===1&&ze.push({element:Le,left:Le.scrollLeft,top:Le.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<ze.length;ie++){var Ie=ze[ie];Ie.element.scrollLeft=Ie.left,Ie.element.scrollTop=Ie.top}}kp=!!P1,R1=P1=null}finally{Ft=A,I.p=v,Z.T=h}}a.current=l,er=2}}function _E(){if(er===2){er=0;var a=Bs,l=Tc,h=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||h){h=Z.T,Z.T=null;var v=I.p;I.p=2;var A=Ft;Ft|=4;try{W4(a,l.alternate,l)}finally{Ft=A,I.p=v,Z.T=h}}er=3}}function xE(){if(er===4||er===3){er=0,be();var a=Bs,l=Tc,h=ko,v=sE;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?er=5:(er=0,Tc=Bs=null,wE(a,a.pendingLanes));var A=a.pendingLanes;if(A===0&&(zs=null),it(h),l=l.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(dt,l,void 0,(l.current.flags&128)===128)}catch{}if(v!==null){l=Z.T,A=I.p,I.p=2,Z.T=null;try{for(var M=a.onRecoverableError,q=0;q<v.length;q++){var ie=v[q];M(ie.value,{componentStack:ie.stack})}}finally{Z.T=l,I.p=A}}(ko&3)!==0&&Cp(),Xa(a),A=a.pendingLanes,(h&261930)!==0&&(A&42)!==0?a===y1?jd++:(jd=0,y1=a):jd=0,Md(0)}}function wE(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,cd(l)))}function Cp(){return bE(),_E(),xE(),SE()}function SE(){if(er!==5)return!1;var a=Bs,l=g1;g1=0;var h=it(ko),v=Z.T,A=I.p;try{I.p=32>h?32:h,Z.T=null,h=v1,v1=null;var M=Bs,q=ko;if(er=0,Tc=Bs=null,ko=0,(Ft&6)!==0)throw Error(r(331));var ie=Ft;if(Ft|=4,iE(M.current),tE(M,M.current,q,h),Ft=ie,Md(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(dt,M)}catch{}return!0}finally{I.p=A,Z.T=v,wE(a,l)}}function CE(a,l,h){l=g(h,l),l=Z0(a.stateNode,l,2),a=Ls(a,l,2),a!==null&&(_n(a,2),Xa(a))}function qt(a,l,h){if(a.tag===3)CE(a,a,h);else for(;l!==null;){if(l.tag===3){CE(l,a,h);break}else if(l.tag===1){var v=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(zs===null||!zs.has(v))){a=g(h,a),h=E4(2),v=Ls(l,h,2),v!==null&&(A4(h,v,l,a),_n(v,2),Xa(v));break}}l=l.return}}function x1(a,l,h){var v=a.pingCache;if(v===null){v=a.pingCache=new PU;var A=new Set;v.set(l,A)}else A=v.get(l),A===void 0&&(A=new Set,v.set(l,A));A.has(h)||(h1=!0,A.add(h),a=kU.bind(null,a,l,h),l.then(a,a))}function kU(a,l,h){var v=a.pingCache;v!==null&&v.delete(l),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,Jt===a&&(jt&h)===h&&(jn===4||jn===3&&(jt&62914560)===jt&&300>_e()-yp?(Ft&2)===0&&Oc(a,0):m1|=h,Ac===jt&&(Ac=0)),Xa(a)}function EE(a,l){l===0&&(l=fn()),a=Gi(a,l),a!==null&&(_n(a,l),Xa(a))}function IU(a){var l=a.memoizedState,h=0;l!==null&&(h=l.retryLane),EE(a,h)}function UU(a,l){var h=0;switch(a.tag){case 31:case 13:var v=a.stateNode,A=a.memoizedState;A!==null&&(h=A.retryLane);break;case 19:v=a.stateNode;break;case 22:v=a.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(l),EE(a,h)}function zU(a,l){return Ve(a,l)}var Ep=null,Mc=null,w1=!1,Ap=!1,S1=!1,$s=0;function Xa(a){a!==Mc&&a.next===null&&(Mc===null?Ep=Mc=a:Mc=Mc.next=a),Ap=!0,w1||(w1=!0,FU())}function Md(a,l){if(!S1&&Ap){S1=!0;do for(var h=!1,v=Ep;v!==null;){if(a!==0){var A=v.pendingLanes;if(A===0)var M=0;else{var q=v.suspendedLanes,ie=v.pingedLanes;M=(1<<31-yt(42|a)+1)-1,M&=A&~(q&~ie),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(h=!0,jE(v,M))}else M=jt,M=Da(v,v===Jt?M:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(M&3)===0||ci(v,M)||(h=!0,jE(v,M));v=v.next}while(h);S1=!1}}function BU(){AE()}function AE(){Ap=w1=!1;var a=0;$s!==0&&XU()&&(a=$s);for(var l=_e(),h=null,v=Ep;v!==null;){var A=v.next,M=TE(v,l);M===0?(v.next=null,h===null?Ep=A:h.next=A,A===null&&(Mc=h)):(h=v,(a!==0||(M&3)!==0)&&(Ap=!0)),v=A}er!==0&&er!==5||Md(a),$s!==0&&($s=0)}function TE(a,l){for(var h=a.suspendedLanes,v=a.pingedLanes,A=a.expirationTimes,M=a.pendingLanes&-62914561;0<M;){var q=31-yt(M),ie=1<<q,pe=A[q];pe===-1?((ie&h)===0||(ie&v)!==0)&&(A[q]=Cn(ie,l)):pe<=l&&(a.expiredLanes|=ie),M&=~ie}if(l=Jt,h=jt,h=Da(a,a===l?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v=a.callbackNode,h===0||a===l&&(Ht===2||Ht===9)||a.cancelPendingCommit!==null)return v!==null&&v!==null&&Fe(v),a.callbackNode=null,a.callbackPriority=0;if((h&3)===0||ci(a,h)){if(l=h&-h,l===a.callbackPriority)return l;switch(v!==null&&Fe(v),it(h)){case 2:case 8:h=Me;break;case 32:h=$e;break;case 268435456:h=Ze;break;default:h=$e}return v=OE.bind(null,a),h=Ve(h,v),a.callbackPriority=l,a.callbackNode=h,l}return v!==null&&v!==null&&Fe(v),a.callbackPriority=2,a.callbackNode=null,2}function OE(a,l){if(er!==0&&er!==5)return a.callbackNode=null,a.callbackPriority=0,null;var h=a.callbackNode;if(Cp()&&a.callbackNode!==h)return null;var v=jt;return v=Da(a,a===Jt?v:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v===0?null:(uE(a,v,l),TE(a,_e()),a.callbackNode!=null&&a.callbackNode===h?OE.bind(null,a):null)}function jE(a,l){if(Cp())return null;uE(a,l,!0)}function FU(){JU(function(){(Ft&6)!==0?Ve(Re,BU):AE()})}function C1(){if($s===0){var a=pc;a===0&&(a=Dr,Dr<<=1,(Dr&261888)===0&&(Dr=256)),$s=a}return $s}function ME(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:vs(""+a)}function PE(a,l){var h=l.ownerDocument.createElement("input");return h.name=l.name,h.value=l.value,a.id&&h.setAttribute("form",a.id),l.parentNode.insertBefore(h,l),a=new FormData(a),h.parentNode.removeChild(h),a}function $U(a,l,h,v,A){if(l==="submit"&&h&&h.stateNode===A){var M=ME((A[or]||null).action),q=v.submitter;q&&(l=(l=q[or]||null)?ME(l.formAction):q.getAttribute("formAction"),l!==null&&(M=l,q=null));var ie=new Ju("action","action",null,v,A);a.push({event:ie,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if($s!==0){var pe=q?PE(A,q):new FormData(A);H0(h,{pending:!0,data:pe,method:A.method,action:M},null,pe)}}else typeof M=="function"&&(ie.preventDefault(),pe=q?PE(A,q):new FormData(A),H0(h,{pending:!0,data:pe,method:A.method,action:M},M,pe))},currentTarget:A}]})}}for(var E1=0;E1<qa.length;E1++){var A1=qa[E1],VU=A1.toLowerCase(),HU=A1[0].toUpperCase()+A1.slice(1);Xr(VU,"on"+HU)}Xr(Wl,"onAnimationEnd"),Xr(Hm,"onAnimationIteration"),Xr(Kl,"onAnimationStart"),Xr("dblclick","onDoubleClick"),Xr("focusin","onFocus"),Xr("focusout","onBlur"),Xr(p0,"onTransitionRun"),Xr(qm,"onTransitionStart"),Xr(g0,"onTransitionCancel"),Xr(Os,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yo("onBeforeInput",["compositionend","keypress","textInput","paste"]),yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pd="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(" "),qU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pd));function RE(a,l){l=(l&4)!==0;for(var h=0;h<a.length;h++){var v=a[h],A=v.event;v=v.listeners;e:{var M=void 0;if(l)for(var q=v.length-1;0<=q;q--){var ie=v[q],pe=ie.instance,Ee=ie.currentTarget;if(ie=ie.listener,pe!==M&&A.isPropagationStopped())break e;M=ie,A.currentTarget=Ee;try{M(A)}catch(ke){Zl(ke)}A.currentTarget=null,M=pe}else for(q=0;q<v.length;q++){if(ie=v[q],pe=ie.instance,Ee=ie.currentTarget,ie=ie.listener,pe!==M&&A.isPropagationStopped())break e;M=ie,A.currentTarget=Ee;try{M(A)}catch(ke){Zl(ke)}A.currentTarget=null,M=pe}}}}function Et(a,l){var h=l[ka];h===void 0&&(h=l[ka]=new Set);var v=a+"__bubble";h.has(v)||(LE(l,a,2,!1),h.add(v))}function T1(a,l,h){var v=0;l&&(v|=4),LE(h,a,v,l)}var Tp="_reactListening"+Math.random().toString(36).slice(2);function O1(a){if(!a[Tp]){a[Tp]=!0,Cm.forEach(function(h){h!=="selectionchange"&&(qU.has(h)||T1(h,!1,a),T1(h,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[Tp]||(l[Tp]=!0,T1("selectionchange",!1,l))}}function LE(a,l,h,v){switch(lA(l)){case 2:var A=bz;break;case 8:A=_z;break;default:A=V1}h=A.bind(null,l,h,a),A=void 0,!kl||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(A=!0),v?A!==void 0?a.addEventListener(l,h,{capture:!0,passive:A}):a.addEventListener(l,h,!0):A!==void 0?a.addEventListener(l,h,{passive:A}):a.addEventListener(l,h,!1)}function j1(a,l,h,v,A){var M=v;if((l&1)===0&&(l&2)===0&&v!==null)e:for(;;){if(v===null)return;var q=v.tag;if(q===3||q===4){var ie=v.stateNode.containerInfo;if(ie===A)break;if(q===4)for(q=v.return;q!==null;){var pe=q.tag;if((pe===3||pe===4)&&q.stateNode.containerInfo===A)return;q=q.return}for(;ie!==null;){if(q=vo(ie),q===null)return;if(pe=q.tag,pe===5||pe===6||pe===26||pe===27){v=M=q;continue e}ie=ie.parentNode}}v=v.return}Wf(function(){var Ee=M,ke=Dl(h),ze=[];e:{var Oe=Gm.get(a);if(Oe!==void 0){var Le=Ju,et=a;switch(a){case"keypress":if(Il(h)===0)break e;case"keydown":case"keyup":Le=Rm;break;case"focusin":et="focus",Le=Xf;break;case"focusout":et="blur",Le=Xf;break;case"beforeblur":case"afterblur":Le=Xf;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=Tm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=i0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=u0;break;case Wl:case Hm:case Kl:Le=Qf;break;case Os:Le=Dm;break;case"scroll":case"scrollend":Le=Ot;break;case"wheel":Le=wo;break;case"copy":case"cut":case"paste":Le=$i;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=Lm;break;case"toggle":case"beforetoggle":Le=Bl}var ct=(l&4)!==0,Zt=!ct&&(a==="scroll"||a==="scrollend"),xe=ct?Oe!==null?Oe+"Capture":null:Oe;ct=[];for(var ye=Ee,Ce;ye!==null;){var Ie=ye;if(Ce=Ie.stateNode,Ie=Ie.tag,Ie!==5&&Ie!==26&&Ie!==27||Ce===null||xe===null||(Ie=_o(ye,xe),Ie!=null&&ct.push(Rd(ye,Ie,Ce))),Zt)break;ye=ye.return}0<ct.length&&(Oe=new Le(Oe,et,null,h,ke),ze.push({event:Oe,listeners:ct}))}}if((l&7)===0){e:{if(Oe=a==="mouseover"||a==="pointerover",Le=a==="mouseout"||a==="pointerout",Oe&&h!==Qu&&(et=h.relatedTarget||h.fromElement)&&(vo(et)||et[go]))break e;if((Le||Oe)&&(Oe=ke.window===ke?ke:(Oe=ke.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Le?(et=h.relatedTarget||h.toElement,Le=Ee,et=et?vo(et):null,et!==null&&(Zt=o(et),ct=et.tag,et!==Zt||ct!==5&&ct!==27&&ct!==6)&&(et=null)):(Le=null,et=Ee),Le!==et)){if(ct=Tm,Ie="onMouseLeave",xe="onMouseEnter",ye="mouse",(a==="pointerout"||a==="pointerover")&&(ct=Lm,Ie="onPointerLeave",xe="onPointerEnter",ye="pointer"),Zt=Le==null?Oe:Ia(Le),Ce=et==null?Oe:Ia(et),Oe=new ct(Ie,ye+"leave",Le,h,ke),Oe.target=Zt,Oe.relatedTarget=Ce,Ie=null,vo(ke)===Ee&&(ct=new ct(xe,ye+"enter",et,h,ke),ct.target=Ce,ct.relatedTarget=Zt,Ie=ct),Zt=Ie,Le&&et)t:{for(ct=GU,xe=Le,ye=et,Ce=0,Ie=xe;Ie;Ie=ct(Ie))Ce++;Ie=0;for(var ot=ye;ot;ot=ct(ot))Ie++;for(;0<Ce-Ie;)xe=ct(xe),Ce--;for(;0<Ie-Ce;)ye=ct(ye),Ie--;for(;Ce--;){if(xe===ye||ye!==null&&xe===ye.alternate){ct=xe;break t}xe=ct(xe),ye=ct(ye)}ct=null}else ct=null;Le!==null&&NE(ze,Oe,Le,ct,!1),et!==null&&Zt!==null&&NE(ze,Zt,et,ct,!0)}}e:{if(Oe=Ee?Ia(Ee):window,Le=Oe.nodeName&&Oe.nodeName.toLowerCase(),Le==="select"||Le==="input"&&Oe.type==="file")var Ut=Hl;else if(Vi(Oe))if(zm)Ut=m0;else{Ut=h0;var nt=da}else Le=Oe.nodeName,!Le||Le.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Ee&&Nl(Ee.elementType)&&(Ut=Hl):Ut=Cs;if(Ut&&(Ut=Ut(a,Ee))){Um(ze,Ut,h,ke);break e}nt&&nt(a,Oe,Ee),a==="focusout"&&Ee&&Oe.type==="number"&&Ee.memoizedProps.value!=null&&ua(Oe,"number",Oe.value)}switch(nt=Ee?Ia(Ee):window,a){case"focusin":(Vi(nt)||nt.contentEditable==="true")&&(Va=nt,lc=Ee,Yl=null);break;case"focusout":Yl=lc=Va=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,$m(ze,h,ke);break;case"selectionchange":if(sc)break;case"keydown":case"keyup":$m(ze,h,ke)}var _t;if(tc)e:{switch(a){case"compositionstart":var Mt="onCompositionStart";break e;case"compositionend":Mt="onCompositionEnd";break e;case"compositionupdate":Mt="onCompositionUpdate";break e}Mt=void 0}else xs?Im(a,h)&&(Mt="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(Mt="onCompositionStart");Mt&&(nc&&h.locale!=="ko"&&(xs||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&xs&&(_t=Ba()):(Fi=ke,xo="value"in Fi?Fi.value:Fi.textContent,xs=!0)),nt=Op(Ee,Mt),0<nt.length&&(Mt=new Jf(Mt,a,null,h,ke),ze.push({event:Mt,listeners:nt}),_t?Mt.data=_t:(_t=rd(h),_t!==null&&(Mt.data=_t)))),(_t=f0?mi(a,h):ws(a,h))&&(Mt=Op(Ee,"onBeforeInput"),0<Mt.length&&(nt=new Jf("onBeforeInput","beforeinput",null,h,ke),ze.push({event:nt,listeners:Mt}),nt.data=_t)),$U(ze,a,Ee,h,ke)}RE(ze,l)})}function Rd(a,l,h){return{instance:a,listener:l,currentTarget:h}}function Op(a,l){for(var h=l+"Capture",v=[];a!==null;){var A=a,M=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||M===null||(A=_o(a,h),A!=null&&v.unshift(Rd(a,A,M)),A=_o(a,l),A!=null&&v.push(Rd(a,A,M))),a.tag===3)return v;a=a.return}return[]}function GU(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function NE(a,l,h,v,A){for(var M=l._reactName,q=[];h!==null&&h!==v;){var ie=h,pe=ie.alternate,Ee=ie.stateNode;if(ie=ie.tag,pe!==null&&pe===v)break;ie!==5&&ie!==26&&ie!==27||Ee===null||(pe=Ee,A?(Ee=_o(h,M),Ee!=null&&q.unshift(Rd(h,Ee,pe))):A||(Ee=_o(h,M),Ee!=null&&q.push(Rd(h,Ee,pe)))),h=h.return}q.length!==0&&a.push({event:l,listeners:q})}var YU=/\r\n?/g,WU=/\u0000|\uFFFD/g;function DE(a){return(typeof a=="string"?a:""+a).replace(YU,`
`).replace(WU,"")}function kE(a,l){return l=DE(l),DE(a)===l}function Kt(a,l,h,v,A,M){switch(h){case"children":typeof v=="string"?l==="body"||l==="textarea"&&v===""||Bi(a,v):(typeof v=="number"||typeof v=="bigint")&&l!=="body"&&Bi(a,""+v);break;case"className":Yt(a,"class",v);break;case"tabIndex":Yt(a,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Yt(a,h,v);break;case"style":Zu(a,v,M);break;case"data":if(l!=="object"){Yt(a,"data",v);break}case"src":case"href":if(v===""&&(l!=="a"||h!=="href")){a.removeAttribute(h);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=vs(""+v),a.setAttribute(h,v);break;case"action":case"formAction":if(typeof v=="function"){a.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof M=="function"&&(h==="formAction"?(l!=="input"&&Kt(a,l,"name",A.name,A,null),Kt(a,l,"formEncType",A.formEncType,A,null),Kt(a,l,"formMethod",A.formMethod,A,null),Kt(a,l,"formTarget",A.formTarget,A,null)):(Kt(a,l,"encType",A.encType,A,null),Kt(a,l,"method",A.method,A,null),Kt(a,l,"target",A.target,A,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=vs(""+v),a.setAttribute(h,v);break;case"onClick":v!=null&&(a.onclick=Kr);break;case"onScroll":v!=null&&Et("scroll",a);break;case"onScrollEnd":v!=null&&Et("scrollend",a);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(A.children!=null)throw Error(r(60));a.innerHTML=h}}break;case"multiple":a.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":a.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){a.removeAttribute("xlink:href");break}h=vs(""+v),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,""+v):a.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,""):a.removeAttribute(h);break;case"capture":case"download":v===!0?a.setAttribute(h,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,v):a.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?a.setAttribute(h,v):a.removeAttribute(h);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?a.removeAttribute(h):a.setAttribute(h,v);break;case"popover":Et("beforetoggle",a),Et("toggle",a),wt(a,"popover",v);break;case"xlinkActuate":Wr(a,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Wr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Wr(a,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Wr(a,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Wr(a,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Wr(a,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Wr(a,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Wr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Wr(a,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":wt(a,"is",v);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Xu.get(h)||h,wt(a,h,v))}}function M1(a,l,h,v,A,M){switch(h){case"style":Zu(a,v,M);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(A.children!=null)throw Error(r(60));a.innerHTML=h}}break;case"children":typeof v=="string"?Bi(a,v):(typeof v=="number"||typeof v=="bigint")&&Bi(a,""+v);break;case"onScroll":v!=null&&Et("scroll",a);break;case"onScrollEnd":v!=null&&Et("scrollend",a);break;case"onClick":v!=null&&(a.onclick=Kr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Em.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(A=h.endsWith("Capture"),l=h.slice(2,A?h.length-7:void 0),M=a[or]||null,M=M!=null?M[h]:null,typeof M=="function"&&a.removeEventListener(l,M,A),typeof v=="function")){typeof M!="function"&&M!==null&&(h in a?a[h]=null:a.hasAttribute(h)&&a.removeAttribute(h)),a.addEventListener(l,v,A);break e}h in a?a[h]=v:v===!0?a.setAttribute(h,""):wt(a,h,v)}}}function br(a,l,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",a),Et("load",a);var v=!1,A=!1,M;for(M in h)if(h.hasOwnProperty(M)){var q=h[M];if(q!=null)switch(M){case"src":v=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Kt(a,l,M,q,h,null)}}A&&Kt(a,l,"srcSet",h.srcSet,h,null),v&&Kt(a,l,"src",h.src,h,null);return;case"input":Et("invalid",a);var ie=M=q=A=null,pe=null,Ee=null;for(v in h)if(h.hasOwnProperty(v)){var ke=h[v];if(ke!=null)switch(v){case"name":A=ke;break;case"type":q=ke;break;case"checked":pe=ke;break;case"defaultChecked":Ee=ke;break;case"value":M=ke;break;case"defaultValue":ie=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,l));break;default:Kt(a,l,v,ke,h,null)}}Ll(a,M,ie,pe,Ee,q,A,!1);return;case"select":Et("invalid",a),v=q=M=null;for(A in h)if(h.hasOwnProperty(A)&&(ie=h[A],ie!=null))switch(A){case"value":M=ie;break;case"defaultValue":q=ie;break;case"multiple":v=ie;default:Kt(a,l,A,ie,h,null)}l=M,h=q,a.multiple=!!v,l!=null?Qt(a,!!v,l,!1):h!=null&&Qt(a,!!v,h,!0);return;case"textarea":Et("invalid",a),M=A=v=null;for(q in h)if(h.hasOwnProperty(q)&&(ie=h[q],ie!=null))switch(q){case"value":v=ie;break;case"defaultValue":A=ie;break;case"children":M=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(91));break;default:Kt(a,l,q,ie,h,null)}ps(a,v,A,M);return;case"option":for(pe in h)if(h.hasOwnProperty(pe)&&(v=h[pe],v!=null))switch(pe){case"selected":a.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:Kt(a,l,pe,v,h,null)}return;case"dialog":Et("beforetoggle",a),Et("toggle",a),Et("cancel",a),Et("close",a);break;case"iframe":case"object":Et("load",a);break;case"video":case"audio":for(v=0;v<Pd.length;v++)Et(Pd[v],a);break;case"image":Et("error",a),Et("load",a);break;case"details":Et("toggle",a);break;case"embed":case"source":case"link":Et("error",a),Et("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ee in h)if(h.hasOwnProperty(Ee)&&(v=h[Ee],v!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Kt(a,l,Ee,v,h,null)}return;default:if(Nl(l)){for(ke in h)h.hasOwnProperty(ke)&&(v=h[ke],v!==void 0&&M1(a,l,ke,v,h,void 0));return}}for(ie in h)h.hasOwnProperty(ie)&&(v=h[ie],v!=null&&Kt(a,l,ie,v,h,null))}function KU(a,l,h,v){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,M=null,q=null,ie=null,pe=null,Ee=null,ke=null;for(Le in h){var ze=h[Le];if(h.hasOwnProperty(Le)&&ze!=null)switch(Le){case"checked":break;case"value":break;case"defaultValue":pe=ze;default:v.hasOwnProperty(Le)||Kt(a,l,Le,null,v,ze)}}for(var Oe in v){var Le=v[Oe];if(ze=h[Oe],v.hasOwnProperty(Oe)&&(Le!=null||ze!=null))switch(Oe){case"type":M=Le;break;case"name":A=Le;break;case"checked":Ee=Le;break;case"defaultChecked":ke=Le;break;case"value":q=Le;break;case"defaultValue":ie=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,l));break;default:Le!==ze&&Kt(a,l,Oe,Le,v,ze)}}qf(a,q,ie,pe,Ee,ke,M,A);return;case"select":Le=q=ie=Oe=null;for(M in h)if(pe=h[M],h.hasOwnProperty(M)&&pe!=null)switch(M){case"value":break;case"multiple":Le=pe;default:v.hasOwnProperty(M)||Kt(a,l,M,null,v,pe)}for(A in v)if(M=v[A],pe=h[A],v.hasOwnProperty(A)&&(M!=null||pe!=null))switch(A){case"value":Oe=M;break;case"defaultValue":ie=M;break;case"multiple":q=M;default:M!==pe&&Kt(a,l,A,M,v,pe)}l=ie,h=q,v=Le,Oe!=null?Qt(a,!!h,Oe,!1):!!v!=!!h&&(l!=null?Qt(a,!!h,l,!0):Qt(a,!!h,h?[]:"",!1));return;case"textarea":Le=Oe=null;for(ie in h)if(A=h[ie],h.hasOwnProperty(ie)&&A!=null&&!v.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:Kt(a,l,ie,null,v,A)}for(q in v)if(A=v[q],M=h[q],v.hasOwnProperty(q)&&(A!=null||M!=null))switch(q){case"value":Oe=A;break;case"defaultValue":Le=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:A!==M&&Kt(a,l,q,A,v,M)}za(a,Oe,Le);return;case"option":for(var et in h)if(Oe=h[et],h.hasOwnProperty(et)&&Oe!=null&&!v.hasOwnProperty(et))switch(et){case"selected":a.selected=!1;break;default:Kt(a,l,et,null,v,Oe)}for(pe in v)if(Oe=v[pe],Le=h[pe],v.hasOwnProperty(pe)&&Oe!==Le&&(Oe!=null||Le!=null))switch(pe){case"selected":a.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:Kt(a,l,pe,Oe,v,Le)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ct in h)Oe=h[ct],h.hasOwnProperty(ct)&&Oe!=null&&!v.hasOwnProperty(ct)&&Kt(a,l,ct,null,v,Oe);for(Ee in v)if(Oe=v[Ee],Le=h[Ee],v.hasOwnProperty(Ee)&&Oe!==Le&&(Oe!=null||Le!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(r(137,l));break;default:Kt(a,l,Ee,Oe,v,Le)}return;default:if(Nl(l)){for(var Zt in h)Oe=h[Zt],h.hasOwnProperty(Zt)&&Oe!==void 0&&!v.hasOwnProperty(Zt)&&M1(a,l,Zt,void 0,v,Oe);for(ke in v)Oe=v[ke],Le=h[ke],!v.hasOwnProperty(ke)||Oe===Le||Oe===void 0&&Le===void 0||M1(a,l,ke,Oe,v,Le);return}}for(var xe in h)Oe=h[xe],h.hasOwnProperty(xe)&&Oe!=null&&!v.hasOwnProperty(xe)&&Kt(a,l,xe,null,v,Oe);for(ze in v)Oe=v[ze],Le=h[ze],!v.hasOwnProperty(ze)||Oe===Le||Oe==null&&Le==null||Kt(a,l,ze,Oe,v,Le)}function IE(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ZU(){if(typeof performance.getEntriesByType=="function"){for(var a=0,l=0,h=performance.getEntriesByType("resource"),v=0;v<h.length;v++){var A=h[v],M=A.transferSize,q=A.initiatorType,ie=A.duration;if(M&&ie&&IE(q)){for(q=0,ie=A.responseEnd,v+=1;v<h.length;v++){var pe=h[v],Ee=pe.startTime;if(Ee>ie)break;var ke=pe.transferSize,ze=pe.initiatorType;ke&&IE(ze)&&(pe=pe.responseEnd,q+=ke*(pe<ie?1:(ie-Ee)/(pe-Ee)))}if(--v,l+=8*(M+q)/(A.duration/1e3),a++,10<a)break}}if(0<a)return l/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var P1=null,R1=null;function jp(a){return a.nodeType===9?a:a.ownerDocument}function UE(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zE(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function L1(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var N1=null;function XU(){var a=window.event;return a&&a.type==="popstate"?a===N1?!1:(N1=a,!0):(N1=null,!1)}var BE=typeof setTimeout=="function"?setTimeout:void 0,QU=typeof clearTimeout=="function"?clearTimeout:void 0,FE=typeof Promise=="function"?Promise:void 0,JU=typeof queueMicrotask=="function"?queueMicrotask:typeof FE<"u"?function(a){return FE.resolve(null).then(a).catch(ez)}:BE;function ez(a){setTimeout(function(){throw a})}function Vs(a){return a==="head"}function $E(a,l){var h=l,v=0;do{var A=h.nextSibling;if(a.removeChild(h),A&&A.nodeType===8)if(h=A.data,h==="/$"||h==="/&"){if(v===0){a.removeChild(A),Nc(l);return}v--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")v++;else if(h==="html")Ld(a.ownerDocument.documentElement);else if(h==="head"){h=a.ownerDocument.head,Ld(h);for(var M=h.firstChild;M;){var q=M.nextSibling,ie=M.nodeName;M[Ml]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&M.rel.toLowerCase()==="stylesheet"||h.removeChild(M),M=q}}else h==="body"&&Ld(a.ownerDocument.body);h=A}while(h);Nc(l)}function VE(a,l){var h=a;a=0;do{var v=h.nextSibling;if(h.nodeType===1?l?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(l?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),v&&v.nodeType===8)if(h=v.data,h==="/$"){if(a===0)break;a--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||a++;h=v}while(h)}function D1(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var h=l;switch(l=l.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":D1(h),Ff(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}a.removeChild(h)}}function tz(a,l,h,v){for(;a.nodeType===1;){var A=h;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!v&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(v){if(!a[Ml])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(M=a.getAttribute("rel"),M==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(M!==A.rel||a.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||a.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||a.getAttribute("title")!==(A.title==null?null:A.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(M=a.getAttribute("src"),(M!==(A.src==null?null:A.src)||a.getAttribute("type")!==(A.type==null?null:A.type)||a.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&M&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var M=A.name==null?null:""+A.name;if(A.type==="hidden"&&a.getAttribute("name")===M)return a}else return a;if(a=Ki(a.nextSibling),a===null)break}return null}function nz(a,l,h){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Ki(a.nextSibling),a===null))return null;return a}function HE(a,l){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=Ki(a.nextSibling),a===null))return null;return a}function k1(a){return a.data==="$?"||a.data==="$~"}function I1(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function rz(a,l){var h=a.ownerDocument;if(a.data==="$~")a._reactRetry=l;else if(a.data!=="$?"||h.readyState!=="loading")l();else{var v=function(){l(),h.removeEventListener("DOMContentLoaded",v)};h.addEventListener("DOMContentLoaded",v),a._reactRetry=v}}function Ki(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return a}var U1=null;function qE(a){a=a.nextSibling;for(var l=0;a;){if(a.nodeType===8){var h=a.data;if(h==="/$"||h==="/&"){if(l===0)return Ki(a.nextSibling);l--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||l++}a=a.nextSibling}return null}function GE(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var h=a.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(l===0)return a;l--}else h!=="/$"&&h!=="/&"||l++}a=a.previousSibling}return null}function YE(a,l,h){switch(l=jp(h),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Ld(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);Ff(a)}var Zi=new Map,WE=new Set;function Mp(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Io=I.d;I.d={f:iz,r:az,D:oz,C:sz,L:lz,m:uz,X:fz,S:cz,M:dz};function iz(){var a=Io.f(),l=xp();return a||l}function az(a){var l=ds(a);l!==null&&l.tag===5&&l.type==="form"?f4(l):Io.r(a)}var Pc=typeof document>"u"?null:document;function KE(a,l,h){var v=Pc;if(v&&typeof l=="string"&&l){var A=an(l);A='link[rel="'+a+'"][href="'+A+'"]',typeof h=="string"&&(A+='[crossorigin="'+h+'"]'),WE.has(A)||(WE.add(A),a={rel:a,crossOrigin:h,href:l},v.querySelector(A)===null&&(l=v.createElement("link"),br(l,"link",a),$n(l),v.head.appendChild(l)))}}function oz(a){Io.D(a),KE("dns-prefetch",a,null)}function sz(a,l){Io.C(a,l),KE("preconnect",a,l)}function lz(a,l,h){Io.L(a,l,h);var v=Pc;if(v&&a&&l){var A='link[rel="preload"][as="'+an(l)+'"]';l==="image"&&h&&h.imageSrcSet?(A+='[imagesrcset="'+an(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(A+='[imagesizes="'+an(h.imageSizes)+'"]')):A+='[href="'+an(a)+'"]';var M=A;switch(l){case"style":M=Rc(a);break;case"script":M=Lc(a)}Zi.has(M)||(a=p({rel:"preload",href:l==="image"&&h&&h.imageSrcSet?void 0:a,as:l},h),Zi.set(M,a),v.querySelector(A)!==null||l==="style"&&v.querySelector(Nd(M))||l==="script"&&v.querySelector(Dd(M))||(l=v.createElement("link"),br(l,"link",a),$n(l),v.head.appendChild(l)))}}function uz(a,l){Io.m(a,l);var h=Pc;if(h&&a){var v=l&&typeof l.as=="string"?l.as:"script",A='link[rel="modulepreload"][as="'+an(v)+'"][href="'+an(a)+'"]',M=A;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Lc(a)}if(!Zi.has(M)&&(a=p({rel:"modulepreload",href:a},l),Zi.set(M,a),h.querySelector(A)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Dd(M)))return}v=h.createElement("link"),br(v,"link",a),$n(v),h.head.appendChild(v)}}}function cz(a,l,h){Io.S(a,l,h);var v=Pc;if(v&&a){var A=hs(v).hoistableStyles,M=Rc(a);l=l||"default";var q=A.get(M);if(!q){var ie={loading:0,preload:null};if(q=v.querySelector(Nd(M)))ie.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":l},h),(h=Zi.get(M))&&z1(a,h);var pe=q=v.createElement("link");$n(pe),br(pe,"link",a),pe._p=new Promise(function(Ee,ke){pe.onload=Ee,pe.onerror=ke}),pe.addEventListener("load",function(){ie.loading|=1}),pe.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,Pp(q,l,v)}q={type:"stylesheet",instance:q,count:1,state:ie},A.set(M,q)}}}function fz(a,l){Io.X(a,l);var h=Pc;if(h&&a){var v=hs(h).hoistableScripts,A=Lc(a),M=v.get(A);M||(M=h.querySelector(Dd(A)),M||(a=p({src:a,async:!0},l),(l=Zi.get(A))&&B1(a,l),M=h.createElement("script"),$n(M),br(M,"link",a),h.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},v.set(A,M))}}function dz(a,l){Io.M(a,l);var h=Pc;if(h&&a){var v=hs(h).hoistableScripts,A=Lc(a),M=v.get(A);M||(M=h.querySelector(Dd(A)),M||(a=p({src:a,async:!0,type:"module"},l),(l=Zi.get(A))&&B1(a,l),M=h.createElement("script"),$n(M),br(M,"link",a),h.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},v.set(A,M))}}function ZE(a,l,h,v){var A=(A=fe.current)?Mp(A):null;if(!A)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(l=Rc(h.href),h=hs(A).hoistableStyles,v=h.get(l),v||(v={type:"style",instance:null,count:0,state:null},h.set(l,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){a=Rc(h.href);var M=hs(A).hoistableStyles,q=M.get(a);if(q||(A=A.ownerDocument||A,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(a,q),(M=A.querySelector(Nd(a)))&&!M._p&&(q.instance=M,q.state.loading=5),Zi.has(a)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Zi.set(a,h),M||hz(A,a,h,q.state))),l&&v===null)throw Error(r(528,""));return q}if(l&&v!==null)throw Error(r(529,""));return null;case"script":return l=h.async,h=h.src,typeof h=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Lc(h),h=hs(A).hoistableScripts,v=h.get(l),v||(v={type:"script",instance:null,count:0,state:null},h.set(l,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Rc(a){return'href="'+an(a)+'"'}function Nd(a){return'link[rel="stylesheet"]['+a+"]"}function XE(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function hz(a,l,h,v){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?v.loading=1:(l=a.createElement("link"),v.preload=l,l.addEventListener("load",function(){return v.loading|=1}),l.addEventListener("error",function(){return v.loading|=2}),br(l,"link",h),$n(l),a.head.appendChild(l))}function Lc(a){return'[src="'+an(a)+'"]'}function Dd(a){return"script[async]"+a}function QE(a,l,h){if(l.count++,l.instance===null)switch(l.type){case"style":var v=a.querySelector('style[data-href~="'+an(h.href)+'"]');if(v)return l.instance=v,$n(v),v;var A=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(a.ownerDocument||a).createElement("style"),$n(v),br(v,"style",A),Pp(v,h.precedence,a),l.instance=v;case"stylesheet":A=Rc(h.href);var M=a.querySelector(Nd(A));if(M)return l.state.loading|=4,l.instance=M,$n(M),M;v=XE(h),(A=Zi.get(A))&&z1(v,A),M=(a.ownerDocument||a).createElement("link"),$n(M);var q=M;return q._p=new Promise(function(ie,pe){q.onload=ie,q.onerror=pe}),br(M,"link",v),l.state.loading|=4,Pp(M,h.precedence,a),l.instance=M;case"script":return M=Lc(h.src),(A=a.querySelector(Dd(M)))?(l.instance=A,$n(A),A):(v=h,(A=Zi.get(M))&&(v=p({},h),B1(v,A)),a=a.ownerDocument||a,A=a.createElement("script"),$n(A),br(A,"link",v),a.head.appendChild(A),l.instance=A);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(v=l.instance,l.state.loading|=4,Pp(v,h.precedence,a));return l.instance}function Pp(a,l,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=v.length?v[v.length-1]:null,M=A,q=0;q<v.length;q++){var ie=v[q];if(ie.dataset.precedence===l)M=ie;else if(M!==A)break}M?M.parentNode.insertBefore(a,M.nextSibling):(l=h.nodeType===9?h.head:h,l.insertBefore(a,l.firstChild))}function z1(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function B1(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var Rp=null;function JE(a,l,h){if(Rp===null){var v=new Map,A=Rp=new Map;A.set(h,v)}else A=Rp,v=A.get(h),v||(v=new Map,A.set(h,v));if(v.has(a))return v;for(v.set(a,null),h=h.getElementsByTagName(a),A=0;A<h.length;A++){var M=h[A];if(!(M[Ml]||M[Fn]||a==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var q=M.getAttribute(l)||"";q=a+q;var ie=v.get(q);ie?ie.push(M):v.set(q,[M])}}return v}function eA(a,l,h){a=a.ownerDocument||a,a.head.insertBefore(h,l==="title"?a.querySelector("head > title"):null)}function mz(a,l,h){if(h===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return a=l.disabled,typeof l.precedence=="string"&&a==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function tA(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function pz(a,l,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var A=Rc(v.href),M=l.querySelector(Nd(A));if(M){l=M._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=Lp.bind(a),l.then(a,a)),h.state.loading|=4,h.instance=M,$n(M);return}M=l.ownerDocument||l,v=XE(v),(A=Zi.get(A))&&z1(v,A),M=M.createElement("link"),$n(M);var q=M;q._p=new Promise(function(ie,pe){q.onload=ie,q.onerror=pe}),br(M,"link",v),h.instance=M}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(h,l),(l=h.state.preload)&&(h.state.loading&3)===0&&(a.count++,h=Lp.bind(a),l.addEventListener("load",h),l.addEventListener("error",h))}}var F1=0;function gz(a,l){return a.stylesheets&&a.count===0&&Dp(a,a.stylesheets),0<a.count||0<a.imgCount?function(h){var v=setTimeout(function(){if(a.stylesheets&&Dp(a,a.stylesheets),a.unsuspend){var M=a.unsuspend;a.unsuspend=null,M()}},6e4+l);0<a.imgBytes&&F1===0&&(F1=62500*ZU());var A=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Dp(a,a.stylesheets),a.unsuspend)){var M=a.unsuspend;a.unsuspend=null,M()}},(a.imgBytes>F1?50:800)+l);return a.unsuspend=h,function(){a.unsuspend=null,clearTimeout(v),clearTimeout(A)}}:null}function Lp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Dp(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Np=null;function Dp(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Np=new Map,l.forEach(vz,a),Np=null,Lp.call(a))}function vz(a,l){if(!(l.state.loading&4)){var h=Np.get(a);if(h)var v=h.get(null);else{h=new Map,Np.set(a,h);for(var A=a.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<A.length;M++){var q=A[M];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(h.set(q.dataset.precedence,q),v=q)}v&&h.set(null,v)}A=l.instance,q=A.getAttribute("data-precedence"),M=h.get(q)||v,M===v&&h.set(null,A),h.set(q,A),this.count++,v=Lp.bind(this),A.addEventListener("load",v),A.addEventListener("error",v),M?M.parentNode.insertBefore(A,M.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(A,a.firstChild)),l.state.loading|=4}}var kd={$$typeof:O,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function yz(a,l,h,v,A,M,q,ie,pe){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Zn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zn(0),this.hiddenUpdates=Zn(null),this.identifierPrefix=v,this.onUncaughtError=A,this.onCaughtError=M,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pe,this.incompleteTransitions=new Map}function nA(a,l,h,v,A,M,q,ie,pe,Ee,ke,ze){return a=new yz(a,l,h,q,pe,Ee,ke,ze,ie),l=1,M===!0&&(l|=24),M=Or(3,null,null,l),a.current=M,M.stateNode=a,l=_0(),l.refCount++,a.pooledCache=l,l.refCount++,M.memoizedState={element:v,isDehydrated:h,cache:l},C0(M),a}function rA(a){return a?(a=So,a):So}function iA(a,l,h,v,A,M){A=rA(A),v.context===null?v.context=A:v.pendingContext=A,v=Rs(l),v.payload={element:h},M=M===void 0?null:M,M!==null&&(v.callback=M),h=Ls(a,v,l),h!==null&&(ii(h,a,l),md(h,a,l))}function aA(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<l?h:l}}function $1(a,l){aA(a,l),(a=a.alternate)&&aA(a,l)}function oA(a){if(a.tag===13||a.tag===31){var l=Gi(a,67108864);l!==null&&ii(l,a,67108864),$1(a,67108864)}}function sA(a){if(a.tag===13||a.tag===31){var l=bi();l=Dn(l);var h=Gi(a,l);h!==null&&ii(h,a,l),$1(a,l)}}var kp=!0;function bz(a,l,h,v){var A=Z.T;Z.T=null;var M=I.p;try{I.p=2,V1(a,l,h,v)}finally{I.p=M,Z.T=A}}function _z(a,l,h,v){var A=Z.T;Z.T=null;var M=I.p;try{I.p=8,V1(a,l,h,v)}finally{I.p=M,Z.T=A}}function V1(a,l,h,v){if(kp){var A=H1(v);if(A===null)j1(a,l,v,Ip,h),uA(a,v);else if(wz(A,a,l,h,v))v.stopPropagation();else if(uA(a,v),l&4&&-1<xz.indexOf(a)){for(;A!==null;){var M=ds(A);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var q=zi(M.pendingLanes);if(q!==0){var ie=M;for(ie.pendingLanes|=2,ie.entangledLanes|=2;q;){var pe=1<<31-yt(q);ie.entanglements[1]|=pe,q&=~pe}Xa(M),(Ft&6)===0&&(bp=_e()+500,Md(0))}}break;case 31:case 13:ie=Gi(M,2),ie!==null&&ii(ie,M,2),xp(),$1(M,2)}if(M=H1(v),M===null&&j1(a,l,v,Ip,h),M===A)break;A=M}A!==null&&v.stopPropagation()}else j1(a,l,v,null,h)}}function H1(a){return a=Dl(a),q1(a)}var Ip=null;function q1(a){if(Ip=null,a=vo(a),a!==null){var l=o(a);if(l===null)a=null;else{var h=l.tag;if(h===13){if(a=s(l),a!==null)return a;a=null}else if(h===31){if(a=u(l),a!==null)return a;a=null}else if(h===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Ip=a,null}function lA(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(De()){case Re:return 2;case Me:return 8;case $e:case Ge:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var G1=!1,Hs=null,qs=null,Gs=null,Id=new Map,Ud=new Map,Ys=[],xz="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".split(" ");function uA(a,l){switch(a){case"focusin":case"focusout":Hs=null;break;case"dragenter":case"dragleave":qs=null;break;case"mouseover":case"mouseout":Gs=null;break;case"pointerover":case"pointerout":Id.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ud.delete(l.pointerId)}}function zd(a,l,h,v,A,M){return a===null||a.nativeEvent!==M?(a={blockedOn:l,domEventName:h,eventSystemFlags:v,nativeEvent:M,targetContainers:[A]},l!==null&&(l=ds(l),l!==null&&oA(l)),a):(a.eventSystemFlags|=v,l=a.targetContainers,A!==null&&l.indexOf(A)===-1&&l.push(A),a)}function wz(a,l,h,v,A){switch(l){case"focusin":return Hs=zd(Hs,a,l,h,v,A),!0;case"dragenter":return qs=zd(qs,a,l,h,v,A),!0;case"mouseover":return Gs=zd(Gs,a,l,h,v,A),!0;case"pointerover":var M=A.pointerId;return Id.set(M,zd(Id.get(M)||null,a,l,h,v,A)),!0;case"gotpointercapture":return M=A.pointerId,Ud.set(M,zd(Ud.get(M)||null,a,l,h,v,A)),!0}return!1}function cA(a){var l=vo(a.target);if(l!==null){var h=o(l);if(h!==null){if(l=h.tag,l===13){if(l=s(h),l!==null){a.blockedOn=l,Bf(a.priority,function(){sA(h)});return}}else if(l===31){if(l=u(h),l!==null){a.blockedOn=l,Bf(a.priority,function(){sA(h)});return}}else if(l===3&&h.stateNode.current.memoizedState.isDehydrated){a.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Up(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var h=H1(a.nativeEvent);if(h===null){h=a.nativeEvent;var v=new h.constructor(h.type,h);Qu=v,h.target.dispatchEvent(v),Qu=null}else return l=ds(h),l!==null&&oA(l),a.blockedOn=h,!1;l.shift()}return!0}function fA(a,l,h){Up(a)&&h.delete(l)}function Sz(){G1=!1,Hs!==null&&Up(Hs)&&(Hs=null),qs!==null&&Up(qs)&&(qs=null),Gs!==null&&Up(Gs)&&(Gs=null),Id.forEach(fA),Ud.forEach(fA)}function zp(a,l){a.blockedOn===l&&(a.blockedOn=null,G1||(G1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Sz)))}var Bp=null;function dA(a){Bp!==a&&(Bp=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bp===a&&(Bp=null);for(var l=0;l<a.length;l+=3){var h=a[l],v=a[l+1],A=a[l+2];if(typeof v!="function"){if(q1(v||h)===null)continue;break}var M=ds(h);M!==null&&(a.splice(l,3),l-=3,H0(M,{pending:!0,data:A,method:h.method,action:v},v,A))}}))}function Nc(a){function l(pe){return zp(pe,a)}Hs!==null&&zp(Hs,a),qs!==null&&zp(qs,a),Gs!==null&&zp(Gs,a),Id.forEach(l),Ud.forEach(l);for(var h=0;h<Ys.length;h++){var v=Ys[h];v.blockedOn===a&&(v.blockedOn=null)}for(;0<Ys.length&&(h=Ys[0],h.blockedOn===null);)cA(h),h.blockedOn===null&&Ys.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var A=h[v],M=h[v+1],q=A[or]||null;if(typeof M=="function")q||dA(h);else if(q){var ie=null;if(M&&M.hasAttribute("formAction")){if(A=M,q=M[or]||null)ie=q.formAction;else if(q1(A)!==null)continue}else ie=q.action;typeof ie=="function"?h[v+1]=ie:(h.splice(v,3),v-=3),dA(h)}}}function hA(){function a(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(q){return A=q})},focusReset:"manual",scroll:"manual"})}function l(){A!==null&&(A(),A=null),v||setTimeout(h,20)}function h(){if(!v&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,A=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(h,100),function(){v=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),A!==null&&(A(),A=null)}}}function Y1(a){this._internalRoot=a}Fp.prototype.render=Y1.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var h=l.current,v=bi();iA(h,v,a,l,null,null)},Fp.prototype.unmount=Y1.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;iA(a.current,2,null,a,null,null),xp(),l[go]=null}};function Fp(a){this._internalRoot=a}Fp.prototype.unstable_scheduleHydration=function(a){if(a){var l=zf();a={blockedOn:null,target:a,priority:l};for(var h=0;h<Ys.length&&l!==0&&l<Ys[h].priority;h++);Ys.splice(h,0,a),h===0&&cA(a)}};var mA=t.version;if(mA!=="19.2.0")throw Error(r(527,mA,"19.2.0"));I.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=f(l),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var Cz={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$p.isDisabled&&$p.supportsFiber)try{dt=$p.inject(Cz),gt=$p}catch{}}return Fd.createRoot=function(a,l){if(!i(a))throw Error(r(299));var h=!1,v="",A=x4,M=w4,q=S4;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(A=l.onUncaughtError),l.onCaughtError!==void 0&&(M=l.onCaughtError),l.onRecoverableError!==void 0&&(q=l.onRecoverableError)),l=nA(a,1,!1,null,null,h,v,null,A,M,q,hA),a[go]=l.current,O1(a),new Y1(l)},Fd.hydrateRoot=function(a,l,h){if(!i(a))throw Error(r(299));var v=!1,A="",M=x4,q=w4,ie=S4,pe=null;return h!=null&&(h.unstable_strictMode===!0&&(v=!0),h.identifierPrefix!==void 0&&(A=h.identifierPrefix),h.onUncaughtError!==void 0&&(M=h.onUncaughtError),h.onCaughtError!==void 0&&(q=h.onCaughtError),h.onRecoverableError!==void 0&&(ie=h.onRecoverableError),h.formState!==void 0&&(pe=h.formState)),l=nA(a,1,!0,l,h??null,v,A,pe,M,q,ie,hA),l.context=rA(null),h=l.current,v=bi(),v=Dn(v),A=Rs(v),A.callback=null,Ls(h,A,v),h=v,l.current.lanes=h,_n(l,h),Xa(l),a[go]=l.current,O1(a),new Fp(l)},Fd.version="19.2.0",Fd}var CA;function Nz(){if(CA)return K1.exports;CA=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(),K1.exports=Lz(),K1.exports}var Dz=Nz(),C=pf();const Qc=oa(C),F2=Az({__proto__:null,default:Qc},[C]);var eb={exports:{}},tb={};/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var EA;function kz(){if(EA)return tb;EA=1;var e=pf();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,u=e.useDebugValue;return tb.useSyncExternalStoreWithSelector=function(d,f,m,p,b){var _=i(null);if(_.current===null){var w={hasValue:!1,value:null};_.current=w}else w=_.current;_=s(function(){function E(F){if(!T){if(T=!0,j=F,F=p(F),b!==void 0&&w.hasValue){var $=w.value;if(b($,F))return O=$}return O=F}if($=O,n(j,F))return $;var K=p(F);return b!==void 0&&b($,K)?(j=F,$):(j=F,O=K)}var T=!1,j,O,N=m===void 0?null:m;return[function(){return E(f())},N===null?void 0:function(){return E(N())}]},[f,m,p,b]);var x=r(d,_[0],_[1]);return o(function(){w.hasValue=!0,w.value=x},[x]),u(x),x},tb}var AA;function Iz(){return AA||(AA=1,eb.exports=kz()),eb.exports}Iz();var Uz=C.version.startsWith("19"),zz=Symbol.for(Uz?"react.transitional.element":"react.element"),Bz=Symbol.for("react.portal"),Fz=Symbol.for("react.fragment"),$z=Symbol.for("react.strict_mode"),Vz=Symbol.for("react.profiler"),Hz=Symbol.for("react.consumer"),qz=Symbol.for("react.context"),hR=Symbol.for("react.forward_ref"),Gz=Symbol.for("react.suspense"),Yz=Symbol.for("react.suspense_list"),$2=Symbol.for("react.memo"),Wz=Symbol.for("react.lazy"),Kz=hR,Zz=$2;function Xz(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case zz:switch(e=e.type,e){case Fz:case Vz:case $z:case Gz:case Yz:return e;default:switch(e=e&&e.$$typeof,e){case qz:case hR:case Wz:case $2:return e;case Hz:return e;default:return t}}case Bz:return t}}}function Qz(e){return Xz(e)===$2}function Jz(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let u=!1,d,f,m,p,b;function _(j,O){return d=j,f=O,m=e(d,f),p=t(r,f),b=n(m,p,f),u=!0,b}function w(){return m=e(d,f),t.dependsOnOwnProps&&(p=t(r,f)),b=n(m,p,f),b}function x(){return e.dependsOnOwnProps&&(m=e(d,f)),t.dependsOnOwnProps&&(p=t(r,f)),b=n(m,p,f),b}function E(){const j=e(d,f),O=!s(j,m);return m=j,O&&(b=n(m,p,f)),b}function T(j,O){const N=!o(O,f),F=!i(j,d,O,f);return d=j,f=O,N&&F?w():N?x():F?E():b}return function(O,N){return u?T(O,N):_(O,N)}}function eB(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),s=n(e,i),u=r(e,i);return Jz(o,s,u,e,i)}function tB(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function dx(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function TA(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function mR(e,t){return function(r,{displayName:i}){const o=function(u,d){return o.dependsOnOwnProps?o.mapToProps(u,d):o.mapToProps(u,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(u,d){o.mapToProps=e,o.dependsOnOwnProps=TA(e);let f=o(u,d);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=TA(f),f=o(u,d)),f},o}}function V2(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function nB(e){return e&&typeof e=="object"?dx(t=>tB(e,t)):e?typeof e=="function"?mR(e):V2(e,"mapDispatchToProps"):dx(t=>({dispatch:t}))}function rB(e){return e?typeof e=="function"?mR(e):V2(e,"mapStateToProps"):dx(()=>({}))}function iB(e,t,n){return{...n,...e,...t}}function aB(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(d,f,m){const p=e(d,f,m);return o?i(p,s)||(s=p):(o=!0,s=p),s}}}function oB(e){return e?typeof e=="function"?aB(e):V2(e,"mergeProps"):()=>iB}function sB(e){e()}function lB(){let e=null,t=null;return{clear(){e=null,t=null},notify(){sB(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var OA={notify(){},get:()=>[]};function pR(e,t){let n,r=OA,i=0,o=!1;function s(x){m();const E=r.subscribe(x);let T=!1;return()=>{T||(T=!0,E(),p())}}function u(){r.notify()}function d(){w.onStateChange&&w.onStateChange()}function f(){return o}function m(){i++,n||(n=t?t.addNestedSub(d):e.subscribe(d),r=lB())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=OA)}function b(){o||(o=!0,m())}function _(){o&&(o=!1,p())}const w={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:f,trySubscribe:b,tryUnsubscribe:_,getListeners:()=>r};return w}var uB=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cB=uB(),fB=()=>typeof navigator<"u"&&navigator.product==="ReactNative",dB=fB(),hB=()=>cB||dB?C.useLayoutEffect:C.useEffect,Ng=hB();function jA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function nb(e,t){if(jA(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!jA(e[n[i]],t[n[i]]))return!1;return!0}var mB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vB={[Kz]:gB,[Zz]:gR};function MA(e){return Qz(e)?gR:vB[e.$$typeof]||mB}var yB=Object.defineProperty,bB=Object.getOwnPropertyNames,PA=Object.getOwnPropertySymbols,_B=Object.getOwnPropertyDescriptor,xB=Object.getPrototypeOf,RA=Object.prototype;function hx(e,t){if(typeof t!="string"){if(RA){const o=xB(t);o&&o!==RA&&hx(e,o)}let n=bB(t);PA&&(n=n.concat(PA(t)));const r=MA(e),i=MA(t);for(let o=0;o<n.length;++o){const s=n[o];if(!pB[s]&&!(i&&i[s])&&!(r&&r[s])){const u=_B(t,s);try{yB(e,s,u)}catch{}}}}return e}var wB=Symbol.for("react-redux-context"),SB=typeof globalThis<"u"?globalThis:{};function CB(){if(!C.createContext)return{};const e=SB[wB]??=new Map;let t=e.get(C.createContext);return t||(t=C.createContext(null),e.set(C.createContext,t)),t}var vR=CB(),EB=[null,null];function AB(e,t,n){Ng(()=>e(...t),n)}function TB(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function OB(e,t,n,r,i,o,s,u,d,f,m){if(!e)return()=>{};let p=!1,b=null;const _=()=>{if(p||!u.current)return;const x=t.getState();let E,T;try{E=r(x,i.current)}catch(j){T=j,b=j}T||(b=null),E===o.current?s.current||f():(o.current=E,d.current=E,s.current=!0,m())};return n.onStateChange=_,n.trySubscribe(),_(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,b)throw b}}function jB(e,t){return e===t}function MB(e,t,n,{pure:r,areStatesEqual:i=jB,areOwnPropsEqual:o=nb,areStatePropsEqual:s=nb,areMergedPropsEqual:u=nb,forwardRef:d=!1,context:f=vR}={}){const m=f,p=rB(e),b=nB(t),_=oB(n),w=!!e;return E=>{const T=E.displayName||E.name||"Component",j=`Connect(${T})`,O={shouldHandleStateChanges:w,displayName:j,wrappedComponentName:T,WrappedComponent:E,initMapStateToProps:p,initMapDispatchToProps:b,initMergeProps:_,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:u};function N(K){const[Q,oe,ee]=C.useMemo(()=>{const{reactReduxForwardedRef:H,...ae}=K;return[K.context,H,ae]},[K]),J=C.useMemo(()=>{let H=m;return Q?.Consumer,H},[Q,m]),te=C.useContext(J),he=!!K.store&&!!K.store.getState&&!!K.store.dispatch,X=!!te&&!!te.store,se=he?K.store:te.store,Z=X?te.getServerState:se.getState,I=C.useMemo(()=>eB(se.dispatch,O),[se]),[k,U]=C.useMemo(()=>{if(!w)return EB;const H=pR(se,he?void 0:te.subscription),ae=H.notifyNestedSubs.bind(H);return[H,ae]},[se,he,te]),z=C.useMemo(()=>he?te:{...te,subscription:k},[he,te,k]),P=C.useRef(void 0),G=C.useRef(ee),Y=C.useRef(void 0),ne=C.useRef(!1),ue=C.useRef(!1),fe=C.useRef(void 0);Ng(()=>(ue.current=!0,()=>{ue.current=!1}),[]);const ge=C.useMemo(()=>()=>Y.current&&ee===G.current?Y.current:I(se.getState(),ee),[se,ee]),D=C.useMemo(()=>ae=>k?OB(w,se,k,I,G,P,ne,ue,Y,U,ae):()=>{},[k]);AB(TB,[G,P,ne,ee,Y,U]);let B;try{B=C.useSyncExternalStore(D,ge,Z?()=>I(Z(),ee):ge)}catch(H){throw fe.current&&(H.message+=`
The error may be correlated with this previous error:
${fe.current.stack}
`),H}Ng(()=>{fe.current=void 0,Y.current=void 0,P.current=B});const W=C.useMemo(()=>C.createElement(E,{...B,ref:oe}),[oe,E,B]);return C.useMemo(()=>w?C.createElement(J.Provider,{value:z},W):W,[J,W,z])}const $=C.memo(N);if($.WrappedComponent=E,$.displayName=N.displayName=j,d){const Q=C.forwardRef(function(ee,J){return C.createElement($,{...ee,reactReduxForwardedRef:J})});return Q.displayName=j,Q.WrappedComponent=E,hx(Q,E)}return hx($,E)}}var yR=MB;function PB(e){const{children:t,context:n,serverState:r,store:i}=e,o=C.useMemo(()=>{const d=pR(i);return{store:i,subscription:d,getServerState:r?()=>r:void 0}},[i,r]),s=C.useMemo(()=>i.getState(),[i]);Ng(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),s!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,s]);const u=n||vR;return C.createElement(u.Provider,{value:o},t)}var H2=PB;/**
* react-router v7.9.3
*
* 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 LA="popstate";function RB(e={}){function t(r,i){let{pathname:o,search:s,hash:u}=r.location;return mx("",{pathname:o,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:bh(i)}return NB(t,n,null,e)}function gn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LB(){return Math.random().toString(36).substring(2,10)}function NA(e,t){return{usr:e.state,key:e.key,idx:t}}function mx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?gf(t):t,state:n,key:t&&t.key||r||LB()}}function bh({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function gf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function NB(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,u="POP",d=null,f=m();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function m(){return(s.state||{idx:null}).idx}function p(){u="POP";let E=m(),T=E==null?null:E-f;f=E,d&&d({action:u,location:x.location,delta:T})}function b(E,T){u="PUSH";let j=mx(x.location,E,T);f=m()+1;let O=NA(j,f),N=x.createHref(j);try{s.pushState(O,"",N)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;i.location.assign(N)}o&&d&&d({action:u,location:x.location,delta:1})}function _(E,T){u="REPLACE";let j=mx(x.location,E,T);f=m();let O=NA(j,f),N=x.createHref(j);s.replaceState(O,"",N),o&&d&&d({action:u,location:x.location,delta:0})}function w(E){return DB(E)}let x={get action(){return u},get location(){return e(i,s)},listen(E){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(LA,p),d=E,()=>{i.removeEventListener(LA,p),d=null}},createHref(E){return t(i,E)},createURL:w,encodeLocation(E){let T=w(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:_,go(E){return s.go(E)}};return x}function DB(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),gn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:bh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function bR(e,t,n="/"){return kB(e,t,n,!1)}function kB(e,t,n,r){let i=typeof t=="string"?gf(t):t,o=Yo(i.pathname||"/",n);if(o==null)return null;let s=_R(e);IB(s);let u=null;for(let d=0;u==null&&d<s.length;++d){let f=WB(o);u=GB(s[d],f,r)}return u}function _R(e,t=[],n=[],r="",i=!1){let o=(s,u,d=i,f)=>{let m={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;gn(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=Ho([r,m.relativePath]),b=n.concat(m);s.children&&s.children.length>0&&(gn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),_R(s.children,t,b,p,d)),!(s.path==null&&!s.index)&&t.push({path:p,score:HB(p,s.index),routesMeta:b})};return e.forEach((s,u)=>{if(s.path===""||!s.path?.includes("?"))o(s,u);else for(let d of xR(s.path))o(s,u,!0,d)}),t}function xR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=xR(r.join("/")),u=[];return u.push(...s.map(d=>d===""?o:[o,d].join("/"))),i&&u.push(...s),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function IB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var UB=/^:[\w-]+$/,zB=3,BB=2,FB=1,$B=10,VB=-2,DA=e=>e==="*";function HB(e,t){let n=e.split("/"),r=n.length;return n.some(DA)&&(r+=VB),t&&(r+=BB),n.filter(i=>!DA(i)).reduce((i,o)=>i+(UB.test(o)?zB:o===""?FB:$B),r)}function qB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function GB(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",s=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",p=Dg({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),b=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Dg({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ho([o,p.pathname]),pathnameBase:QB(Ho([o,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(o=Ho([o,p.pathnameBase]))}return s}function Dg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=YB(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},b)=>{if(m==="*"){let w=u[b]||"";s=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const _=u[b];return p&&!_?f[m]=void 0:f[m]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:s,pattern:e}}function YB(e,t=!1,n=!0){Sa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function WB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Yo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function KB(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?gf(e):e;return{pathname:n?n.startsWith("/")?n:ZB(n,t):t,search:JB(r),hash:eF(i)}}function ZB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function rb(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function XB(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function q2(e){let t=XB(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function G2(e,t,n,r=!1){let i;typeof e=="string"?i=gf(e):(i={...e},gn(!i.pathname||!i.pathname.includes("?"),rb("?","pathname","search",i)),gn(!i.pathname||!i.pathname.includes("#"),rb("#","pathname","hash",i)),gn(!i.search||!i.search.includes("#"),rb("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;i.pathname=b.join("/")}u=p>=0?t[p]:"/"}let d=KB(i,u),f=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Ho=e=>e.join("/").replace(/\/\/+/g,"/"),QB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),JB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var wR=["POST","PUT","PATCH","DELETE"];new Set(wR);var nF=["GET",...wR];new Set(nF);var vf=C.createContext(null);vf.displayName="DataRouter";var qv=C.createContext(null);qv.displayName="DataRouterState";C.createContext(!1);var SR=C.createContext({isTransitioning:!1});SR.displayName="ViewTransition";var rF=C.createContext(new Map);rF.displayName="Fetchers";var iF=C.createContext(null);iF.displayName="Await";var Ta=C.createContext(null);Ta.displayName="Navigation";var Bh=C.createContext(null);Bh.displayName="Location";var Oa=C.createContext({outlet:null,matches:[],isDataRoute:!1});Oa.displayName="Route";var Y2=C.createContext(null);Y2.displayName="RouteError";function aF(e,{relative:t}={}){gn(Vu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Ta),{hash:i,pathname:o,search:s}=Fh(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Ho([n,o])),r.createHref({pathname:u,search:s,hash:i})}function Vu(){return C.useContext(Bh)!=null}function Er(){return gn(Vu(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Bh).location}var CR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ER(e){C.useContext(Ta).static||C.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=C.useContext(Oa);return e?yF():oF()}function oF(){gn(Vu(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(vf),{basename:t,navigator:n}=C.useContext(Ta),{matches:r}=C.useContext(Oa),{pathname:i}=Er(),o=JSON.stringify(q2(r)),s=C.useRef(!1);return ER(()=>{s.current=!0}),C.useCallback((d,f={})=>{if(Sa(s.current,CR),!s.current)return;if(typeof d=="number"){n.go(d);return}let m=G2(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ho([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,o,i,e])}C.createContext(null);function yf(){let{matches:e}=C.useContext(Oa),t=e[e.length-1];return t?t.params:{}}function Fh(e,{relative:t}={}){let{matches:n}=C.useContext(Oa),{pathname:r}=Er(),i=JSON.stringify(q2(n));return C.useMemo(()=>G2(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function sF(e,t){return AR(e,t)}function AR(e,t,n,r,i){gn(Vu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=C.useContext(Ta),{matches:s}=C.useContext(Oa),u=s[s.length-1],d=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",p=u&&u.route;{let j=p&&p.path||"";TR(f,!p||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let b=Er(),_;if(t){let j=typeof t=="string"?gf(t):t;gn(m==="/"||j.pathname?.startsWith(m),`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 "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),_=j}else _=b;let w=_.pathname||"/",x=w;if(m!=="/"){let j=m.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let E=bR(e,{pathname:x});Sa(p||E!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Sa(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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 T=dF(E&&E.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Ho([m,o.encodeLocation?o.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:Ho([m,o.encodeLocation?o.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),s,n,r,i);return t&&T?C.createElement(Bh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},T):T}function lF(){let e=vF(),t=tF(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:o},"ErrorBoundary")," or"," ",C.createElement("code",{style:o},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,s)}var uF=C.createElement(lF,null),cF=class extends C.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){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?C.createElement(Oa.Provider,{value:this.props.routeContext},C.createElement(Y2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fF({routeContext:e,match:t,children:n}){let r=C.useContext(vf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Oa.Provider,{value:e},n)}function dF(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n?.errors;if(s!=null){let f=o.findIndex(m=>m.route.id&&s?.[m.route.id]!==void 0);gn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n)for(let f=0;f<o.length;f++){let m=o[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=f),m.route.id){let{loaderData:p,errors:b}=n,_=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||_){u=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,m,p)=>{let b,_=!1,w=null,x=null;n&&(b=s&&m.route.id?s[m.route.id]:void 0,w=m.route.errorElement||uF,u&&(d<0&&p===0?(TR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,x=null):d===p&&(_=!0,x=m.route.hydrateFallbackElement||null)));let E=t.concat(o.slice(0,p+1)),T=()=>{let j;return b?j=w:_?j=x:m.route.Component?j=C.createElement(m.route.Component,null):m.route.element?j=m.route.element:j=f,C.createElement(fF,{match:m,routeContext:{outlet:f,matches:E,isDataRoute:n!=null},children:j})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?C.createElement(cF,{location:n.location,revalidation:n.revalidation,component:w,error:b,children:T(),routeContext:{outlet:null,matches:E,isDataRoute:!0},unstable_onError:r}):T()},null)}function W2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hF(e){let t=C.useContext(vf);return gn(t,W2(e)),t}function mF(e){let t=C.useContext(qv);return gn(t,W2(e)),t}function pF(e){let t=C.useContext(Oa);return gn(t,W2(e)),t}function K2(e){let t=pF(e),n=t.matches[t.matches.length-1];return gn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gF(){return K2("useRouteId")}function vF(){let e=C.useContext(Y2),t=mF("useRouteError"),n=K2("useRouteError");return e!==void 0?e:t.errors?.[n]}function yF(){let{router:e}=hF("useNavigate"),t=K2("useNavigate"),n=C.useRef(!1);return ER(()=>{n.current=!0}),C.useCallback(async(i,o={})=>{Sa(n.current,CR),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var kA={};function TR(e,t,n){!t&&!kA[e]&&(kA[e]=!0,Sa(!1,n))}C.memo(bF);function bF({routes:e,future:t,state:n,unstable_onError:r}){return AR(e,void 0,n,r,t)}function Z2({to:e,replace:t,state:n,relative:r}){gn(Vu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=C.useContext(Ta);Sa(!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}=C.useContext(Oa),{pathname:s}=Er(),u=lo(),d=G2(e,q2(o),s,r==="path"),f=JSON.stringify(d);return C.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function pt(e){gn(!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 _F({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){gn(!Vu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:i,static:o,future:{}}),[s,i,o]);typeof n=="string"&&(n=gf(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:b="default"}=n,_=C.useMemo(()=>{let w=Yo(d,s);return w==null?null:{location:{pathname:w,search:f,hash:m,state:p,key:b},navigationType:r}},[s,d,f,m,p,b,r]);return Sa(_!=null,`<Router basename="${s}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:C.createElement(Ta.Provider,{value:u},C.createElement(Bh.Provider,{children:t,value:_}))}function Gv({children:e,location:t}){return sF(px(e),t)}function px(e,t=[]){let n=[];return C.Children.forEach(e,(r,i)=>{if(!C.isValidElement(r))return;let o=[...t,i];if(r.type===C.Fragment){n.push.apply(n,px(r.props.children,o));return}gn(r.type===pt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),gn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=px(r.props.children,o)),n.push(s)}),n}var xg="get",wg="application/x-www-form-urlencoded";function Yv(e){return e!=null&&typeof e.tagName=="string"}function xF(e){return Yv(e)&&e.tagName.toLowerCase()==="button"}function wF(e){return Yv(e)&&e.tagName.toLowerCase()==="form"}function SF(e){return Yv(e)&&e.tagName.toLowerCase()==="input"}function CF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function EF(e,t){return e.button===0&&(!t||t==="_self")&&!CF(e)}var Vp=null;function AF(){if(Vp===null)try{new FormData(document.createElement("form"),0),Vp=!1}catch{Vp=!0}return Vp}var TF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ib(e){return e!=null&&!TF.has(e)?(Sa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wg}"`),null):e}function OF(e,t){let n,r,i,o,s;if(wF(e)){let u=e.getAttribute("action");r=u?Yo(u,t):null,n=e.getAttribute("method")||xg,i=ib(e.getAttribute("enctype"))||wg,o=new FormData(e)}else if(xF(e)||SF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Yo(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||xg,i=ib(e.getAttribute("formenctype"))||ib(u.getAttribute("enctype"))||wg,o=new FormData(u,e),!AF()){let{name:f,type:m,value:p}=e;if(m==="image"){let b=f?`${f}.`:"";o.append(`${b}x`,"0"),o.append(`${b}y`,"0")}else f&&o.append(f,p)}}else{if(Yv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=xg,r=null,i=wg,s=e}return o&&i==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function X2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jF(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Yo(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function MF(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function PF(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 RF(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let s=await MF(o,n);return s.links?s.links():[]}return[]}));return kF(r.flat(1).filter(PF).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function IA(e,t,n,r,i,o){let s=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return o==="assets"?t.filter((d,f)=>s(d,f)||u(d,f)):o==="data"?t.filter((d,f)=>{let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(s(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let p=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function LF(e,t,{includeHydrateFallback:n}={}){return NF(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function NF(e){return[...new Set(e)]}function DF(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function kF(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(DF(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function OR(){let e=C.useContext(vf);return X2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function IF(){let e=C.useContext(qv);return X2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Q2=C.createContext(void 0);Q2.displayName="FrameworkContext";function jR(){let e=C.useContext(Q2);return X2(e,"You must render this element inside a <HydratedRouter> element"),e}function UF(e,t){let n=C.useContext(Q2),[r,i]=C.useState(!1),[o,s]=C.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,b=C.useRef(null);C.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=T=>{T.forEach(j=>{s(j.isIntersecting)})},E=new IntersectionObserver(x,{threshold:.5});return b.current&&E.observe(b.current),()=>{E.disconnect()}}},[e]),C.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let _=()=>{i(!0)},w=()=>{i(!1),s(!1)};return n?e!=="intent"?[o,b,{}]:[o,b,{onFocus:$d(u,_),onBlur:$d(d,w),onMouseEnter:$d(f,_),onMouseLeave:$d(m,w),onTouchStart:$d(p,_)}]:[!1,b,{}]}function $d(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zF({page:e,...t}){let{router:n}=OR(),r=C.useMemo(()=>bR(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(FF,{page:e,matches:r,...t}):null}function BF(e){let{manifest:t,routeModules:n}=jR(),[r,i]=C.useState([]);return C.useEffect(()=>{let o=!1;return RF(e,t,n).then(s=>{o||i(s)}),()=>{o=!0}},[e,t,n]),r}function FF({page:e,matches:t,...n}){let r=Er(),{manifest:i,routeModules:o}=jR(),{basename:s}=OR(),{loaderData:u,matches:d}=IF(),f=C.useMemo(()=>IA(e,t,d,i,r,"data"),[e,t,d,i,r]),m=C.useMemo(()=>IA(e,t,d,i,r,"assets"),[e,t,d,i,r]),p=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,x=!1;if(t.forEach(T=>{let j=i.routes[T.route.id];!j||!j.hasLoader||(!f.some(O=>O.route.id===T.route.id)&&T.route.id in u&&o[T.route.id]?.shouldRevalidate||j.hasClientLoader?x=!0:w.add(T.route.id))}),w.size===0)return[];let E=jF(e,s,"data");return x&&w.size>0&&E.searchParams.set("_routes",t.filter(T=>w.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[s,u,r,i,f,t,e,o]),b=C.useMemo(()=>LF(m,i),[m,i]),_=BF(m);return C.createElement(C.Fragment,null,p.map(w=>C.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),b.map(w=>C.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),_.map(({key:w,link:x})=>C.createElement("link",{key:w,nonce:n.nonce,...x})))}function $F(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var MR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{MR&&(window.__reactRouterVersion="7.9.3")}catch{}function PR({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=RB({window:n,v5Compat:!0}));let i=r.current,[o,s]=C.useState({action:i.action,location:i.location}),u=C.useCallback(d=>{C.startTransition(()=>s(d))},[s]);return C.useLayoutEffect(()=>i.listen(u),[i,u]),C.createElement(_F,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var RR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nr=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:s,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...b},_){let{basename:w}=C.useContext(Ta),x=typeof f=="string"&&RR.test(f),E,T=!1;if(typeof f=="string"&&x&&(E=f,MR))try{let oe=new URL(window.location.href),ee=f.startsWith("//")?new URL(oe.protocol+f):new URL(f),J=Yo(ee.pathname,w);ee.origin===oe.origin&&J!=null?f=J+ee.search+ee.hash:T=!0}catch{Sa(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=aF(f,{relative:i}),[O,N,F]=UF(r,b),$=qF(f,{replace:s,state:u,target:d,preventScrollReset:m,relative:i,viewTransition:p});function K(oe){t&&t(oe),oe.defaultPrevented||$(oe)}let Q=C.createElement("a",{...b,...F,href:E||j,onClick:T||o?t:K,ref:$F(_,N),target:d,"data-discover":!x&&n==="render"?"true":void 0});return O&&!x?C.createElement(C.Fragment,null,Q,C.createElement(zF,{page:j})):Q});Nr.displayName="Link";var J2=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:s,viewTransition:u,children:d,...f},m){let p=Fh(s,{relative:f.relative}),b=Er(),_=C.useContext(qv),{navigator:w,basename:x}=C.useContext(Ta),E=_!=null&&ZF(p)&&u===!0,T=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,j=b.pathname,O=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(j=j.toLowerCase(),O=O?O.toLowerCase():null,T=T.toLowerCase()),O&&x&&(O=Yo(O,x)||O);const N=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let F=j===T||!i&&j.startsWith(T)&&j.charAt(N)==="/",$=O!=null&&(O===T||!i&&O.startsWith(T)&&O.charAt(T.length)==="/"),K={isActive:F,isPending:$,isTransitioning:E},Q=F?t:void 0,oe;typeof r=="function"?oe=r(K):oe=[r,F?"active":null,$?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let ee=typeof o=="function"?o(K):o;return C.createElement(Nr,{...f,"aria-current":Q,className:oe,ref:m,style:ee,to:s,viewTransition:u},typeof d=="function"?d(K):d)});J2.displayName="NavLink";var VF=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:s=xg,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...b},_)=>{let w=WF(),x=KF(u,{relative:f}),E=s.toLowerCase()==="get"?"get":"post",T=typeof u=="string"&&RR.test(u),j=O=>{if(d&&d(O),O.defaultPrevented)return;O.preventDefault();let N=O.nativeEvent.submitter,F=N?.getAttribute("formmethod")||s;w(N||O.currentTarget,{fetcherKey:t,method:F,navigate:n,replace:i,state:o,relative:f,preventScrollReset:m,viewTransition:p})};return C.createElement("form",{ref:_,method:E,action:x,onSubmit:r?d:j,...b,"data-discover":!T&&e==="render"?"true":void 0})});VF.displayName="Form";function HF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function LR(e){let t=C.useContext(vf);return gn(t,HF(e)),t}function qF(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:s}={}){let u=lo(),d=Er(),f=Fh(e,{relative:o});return C.useCallback(m=>{if(EF(m,t)){m.preventDefault();let p=n!==void 0?n:bh(d)===bh(f);u(e,{replace:p,state:r,preventScrollReset:i,relative:o,viewTransition:s})}},[d,u,f,n,r,t,e,i,o,s])}var GF=0,YF=()=>`__${String(++GF)}__`;function WF(){let{router:e}=LR("useSubmit"),{basename:t}=C.useContext(Ta),n=gF();return C.useCallback(async(r,i={})=>{let{action:o,method:s,encType:u,formData:d,body:f}=OF(r,t);if(i.navigate===!1){let m=i.fetcherKey||YF();await e.fetch(m,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function KF(e,{relative:t}={}){let{basename:n}=C.useContext(Ta),r=C.useContext(Oa);gn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Fh(e||".",{relative:t})},s=Er();if(e==null){o.search=s.search;let u=new URLSearchParams(o.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ho([n,o.pathname])),bh(o)}function ZF(e,{relative:t}={}){let n=C.useContext(SR);gn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=LR("useViewTransitionState"),i=Fh(e,{relative:t});if(!n.isTransitioning)return!1;let o=Yo(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Yo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Dg(i.pathname,s)!=null||Dg(i.pathname,o)!=null}var $h=dR();const XF="/shlink-web-client/dependabot/npm_and_yarn/shlink-2a77b0991b",kg={homepage:XF};var Ca,io=".",NR="function",DR="string",kR="__global__",ew="Provider",QF=0,tw=Array.prototype.slice,JF=function(t,n){var r=t[n];if(r===void 0&&Ca.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Wv=function(t){var n;return this.nested[t]||(n=Ca.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},IR=function(t){return t.split(io).reduce(JF,this)},e$=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var u=0,d=function(m){if(m)throw m;t[u]&&t[u++](r,d)};return d(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},t$=function(t,n){var r,i;return typeof t===NR&&(n=t,t=kR),r=t.split(io),i=r.shift(),r.length?Wv.call(this,i).middleware(r.join(io),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},n$=function(t,n){return n(t)},UA=function(t,n){return(t[n]||[]).concat(t.__global__||[])},r$=function(t,n){var r,i,o,s,u;return this.id,o=this.container,s=this.decorators,u=this.middlewares,r=t+ew,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var f=new n;return delete o[r],o[r]=f,f}},i[t]={configurable:!0,enumerable:!0,get:function(){var f=o[r],m;return f&&(m=UA(s,t).reduce(n$,f.$get(o)),delete o[r],delete o[t]),m===void 0?m:e$(UA(u,t),t,m,o)}},Object.defineProperties(o,i),this},UR=function(t,n){var r,i;return r=t.split(io),this.providerMap[t]&&r.length===1&&!this.container[t+ew]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Wv.call(this,i).provider(r.join(io),n),this):r$.call(this,i,n))},nw=function(t,n){return UR.call(this,t,function(){this.$get=n})},zR=function(t,n,r){var i=arguments.length>3?tw.call(arguments,3):[],o=this;return nw.call(this,t,function(){var u=n,d=i.map(IR,o.container);return r?new(n.bind.apply(n,[null].concat(d))):u.apply(null,d)})},i$=function(t,n){return zR.apply(this,[t,n,!0].concat(tw.call(arguments,2)))},a$=function(t,n){return zR.apply(this,[t,n,!1].concat(tw.call(arguments,2)))},BR=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},FR=function(t,n){var r=t[n];return r||(r={},BR.call(t,n,r)),r},o$=function(t,n){var r;return r=t.split(io),t=r.pop(),BR.call(r.reduce(FR,this.container),t,n),this},s$=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},l$=function(t,n){var r=t.split(io);return t=r.pop(),s$.call(r.reduce(FR,this.container),t,n),this},$R=function(t,n){var r,i;return typeof t===NR&&(n=t,t=kR),r=t.split(io),i=r.shift(),r.length?Wv.call(this,i).decorator(r.join(io),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},u$=function(t){return this.deferred.push(t),this},c$=function(t){return(t||[]).map(IR,this.container)},f$=function(t,n){return nw.call(this,t,function(i){return{instance:n.bind(n,i)}})},d$=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},rw=function(t){return Object.keys(t||this.container||{}).filter(d$)},Ig={},h$=function(t){var n;return typeof t===DR?(n=Ig[t],n||(Ig[t]=n=new Ca,n.constant("BOTTLE_NAME",t)),n):new Ca},m$=function(t){typeof t===DR?delete Ig[t]:Ig={}},VR=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},zA=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+ew]},p$=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(io);s.length>1&&s.forEach(zA,Wv.call(this,s[0])),zA.call(this,o),this.provider(o,n[o])}},this)},g$=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ca=function e(t){if(!(this instanceof e))return e.pop(t);this.id=QF++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:$R.bind(this),$register:VR.bind(this),$list:rw.bind(this)}};Ca.prototype={constant:l$,decorator:$R,defer:u$,digest:c$,factory:nw,instanceFactory:f$,list:rw,middleware:t$,provider:UR,resetProviders:p$,register:VR,resolve:g$,service:i$,serviceFactory:a$,value:o$};Ca.pop=h$;Ca.clear=m$;Ca.list=rw;Ca.config={strict:!1};const HR=Ca,v$=(e,t)=>`${e}/rest/v${t}`,y$=e=>e.dir?`${e.field}-${e.dir}`:void 0,b$=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:y$(e)}),_$=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},x$=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};let w$=class{#t;#r;#n;#o;constructor(t,n,r={}){this.#r=t,this.#n=n,this.#o=r,this.#t=3}async listShortUrls({signal:t,...n}={}){return this.#e({url:"/short-urls",query:b$(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[o,s])=>(s&&(i[o]=s),i),{});return this.#e({url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.#e({url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.#a({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return this.#e({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return this.#e({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return this.#e({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return this.#e({url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return this.#i({url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return this.#i({url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return this.#i({url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return this.#i({url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return this.#i({url:"/visits/non-orphan",query:n,signal:t})}async#i(t){return this.#e(t).then(({visits:n})=>n)}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return this.#e({method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return this.#e({method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return this.#e({url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return this.#e({url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return this.#a({url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return this.#a({url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return this.#e({url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return this.#e({url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return this.#e({url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return this.#e({url:"/mercure-info",signal:t})}async#e(t){return this.#r.jsonRequest(...this.#s(t))}async#a(t){return this.#r.emptyRequest(...this.#s(t))}#s({url:t,method:n="GET",query:r,body:i,domain:o,signal:s}){const u=x$(r??{}),d=u?`?${u}`:"",f=o?_$(this.#n.baseUrl,o):this.#n.baseUrl;return[`${v$(f,this.#t)}${t}${d}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.#n.apiKey},credentials:this.#o.requestCredentials,signal:s}]}};const qR=e=>!!e?.url&&!!e?.apiKey,ch=e=>!!e?.id,iw=e=>!!e?.version,S$=e=>!!e?.serverNotFound,C$=e=>ch(e)?e.id:"",E$=({name:e,url:t,apiKey:n,forwardCredentials:r})=>({name:e,url:t,apiKey:n,forwardCredentials:r?"true":"false"}),A$=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",T$=e=>{const{forwardCredentials:t,...n}=e;if(!A$(n))throw new Error('Server is missing required "url", "apiKey" and/or "name" properties');return{...n,forwardCredentials:t==="true"}},BA=new Map,O$=e=>typeof e=="function",j$=e=>{const{selectedServer:t}=e();if(!qR(t))throw new Error("There's no selected server or it is not found");return t},M$=e=>t=>{const{url:n,apiKey:r,forwardCredentials:i}=O$(t)?j$(t):t,o=`${r}_${n}_${i?"forward":"no-forward"}`,s=BA.get(o);if(s)return s;const u=new w$(e,{apiKey:r,baseUrl:n},{requestCredentials:i?"include":void 0});return BA.set(o,u),u},P$=e=>{e.serviceFactory("buildShlinkApiClient",M$,"HttpClient")};function GR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=GR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=GR(e))&&(r&&(r+=" "),r+=t);return r}/*!
* Font Awesome Free 7.1.0 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 2025 Fonticons, Inc.
*/var R$={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M480.1 192l7.9 0c13.3 0 24-10.7 24-24l0-144c0-9.7-5.8-18.5-14.8-22.2S477.9 .2 471 7L419.3 58.8C375 22.1 318 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1C79.2 135.5 159.3 64 256 64 300.4 64 341.2 79 373.7 104.3L327 151c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 192 344 192l136.1 0zm29.4 100.5c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-44.4 0-85.2-15-117.7-40.3L185 361c6.9-6.9 8.9-17.2 5.2-26.2S177.7 320 168 320L24 320c-13.3 0-24 10.7-24 24L0 488c0 9.7 5.8 18.5 14.8 22.2S34.1 511.8 41 505l51.8-51.8C137 489.9 194 512 256 512 385 512 491.7 416.6 509.4 292.5z"]},L$=R$,YR={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M415.9 210.5c12.2-3.3 25 2.5 30.5 13.8L465 261.9c10.3 1.4 20.4 4.2 29.9 8.1l35-23.3c10.5-7 24.4-5.6 33.3 3.3l19.2 19.2c8.9 8.9 10.3 22.9 3.3 33.3l-23.3 34.9c1.9 4.7 3.6 9.6 5 14.7 1.4 5.1 2.3 10.1 3 15.2l37.7 18.6c11.3 5.6 17.1 18.4 13.8 30.5l-7 26.2c-3.3 12.1-14.6 20.3-27.2 19.5l-42-2.7c-6.3 8.1-13.6 15.6-21.9 22l2.7 41.9c.8 12.6-7.4 24-19.5 27.2l-26.2 7c-12.2 3.3-24.9-2.5-30.5-13.8l-18.6-37.6c-10.3-1.4-20.4-4.2-29.9-8.1l-35 23.3c-10.5 7-24.4 5.6-33.3-3.3l-19.2-19.2c-8.9-8.9-10.3-22.8-3.3-33.3l23.3-35c-1.9-4.7-3.6-9.6-5-14.7s-2.3-10.2-3-15.2l-37.7-18.6c-11.3-5.6-17-18.4-13.8-30.5l7-26.2c3.3-12.1 14.6-20.3 27.2-19.5l41.9 2.7c6.3-8.1 13.6-15.6 21.9-22l-2.7-41.8c-.8-12.6 7.4-24 19.5-27.2l26.2-7zM448.4 340a44 44 0 1 0 .1 88 44 44 0 1 0 -.1-88zM224.9-45.5l26.2 7c12.1 3.3 20.3 14.7 19.5 27.2l-2.7 41.8c8.3 6.4 15.6 13.8 21.9 22l42-2.7c12.5-.8 23.9 7.4 27.2 19.5l7 26.2c3.2 12.1-2.5 24.9-13.8 30.5l-37.7 18.6c-.7 5.1-1.7 10.2-3 15.2s-3.1 10-5 14.7l23.3 35c7 10.5 5.6 24.4-3.3 33.3L307.3 262c-8.9 8.9-22.8 10.3-33.3 3.3L239 242c-9.5 3.9-19.6 6.7-29.9 8.1l-18.6 37.6c-5.6 11.3-18.4 17-30.5 13.8l-26.2-7c-12.2-3.3-20.3-14.7-19.5-27.2l2.7-41.9c-8.3-6.4-15.6-13.8-21.9-22l-42 2.7c-12.5 .8-23.9-7.4-27.2-19.5l-7-26.2c-3.2-12.1 2.5-24.9 13.8-30.5l37.7-18.6c.7-5.1 1.7-10.1 3-15.2 1.4-5.1 3-10 5-14.7L55.1 46.5c-7-10.5-5.6-24.4 3.3-33.3L77.6-6c8.9-8.9 22.8-10.3 33.3-3.3l35 23.3c9.5-3.9 19.6-6.7 29.9-8.1l18.6-37.6c5.6-11.3 18.3-17 30.5-13.8zM192.4 84a44 44 0 1 0 0 88 44 44 0 1 0 0-88z"]},N$=YR,D$={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM175 441c9.4 9.4 24.6 9.4 33.9 0l64-64c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-23 23 0-86.1c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 86.1-23-23c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64z"]},WR=D$,k$={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 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM64 240l0 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 368l0 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"]},I$=k$,U$={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},z$=U$,B$={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},gx=B$,F$={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},$$=F$,V$={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},H$={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 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"]},q$={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},G$={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 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-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},Y$={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.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 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},aw={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8-79.3 23.6-137.1 97.1-137.1 184.1 0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256 512 397.4 397.4 512 256 512S0 397.4 0 256c0-116 77.1-213.9 182.9-245.4 16.9-5 34.8 4.6 39.8 21.5z"]},W$={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},K$=W$,Z$={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM209 263c-9.4-9.4-24.6-9.4-33.9 0l-64 64c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l23-23 0 86.1c0 13.3 10.7 24 24 24s24-10.7 24-24l0-86.1 23 23c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-64-64z"]},X$=Z$,Q$={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 0L368 46.1 465.9 144 490.3 119.6c21.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.5L432 177.9 334.1 80 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"]},ow=Q$,Ug={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 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.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},KR={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M342.6-22.6c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.4-41.4 0 195.9c-18.8-10.9-40.7-17.1-64-17.1l-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 320 224 320c35.3 0 64 28.7 64 64 0 70.7 57.3 128 128 128l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-35.3 0-64-28.7-64-64l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"]},J$={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M150.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L96 141.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-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"]},eV=J$,tV={prefix:"fas",iconName:"sun",icon:[576,512,[9728],"f185","M178.2-10.1c7.4-3.1 15.8-2.2 22.5 2.2l87.8 58.2 87.8-58.2c6.7-4.4 15.1-5.2 22.5-2.2S411.4-.5 413 7.3l20.9 103.2 103.2 20.9c7.8 1.6 14.4 7 17.4 14.3s2.2 15.8-2.2 22.5l-58.2 87.8 58.2 87.8c4.4 6.7 5.2 15.1 2.2 22.5s-9.6 12.8-17.4 14.3L433.8 401.4 413 504.7c-1.6 7.8-7 14.4-14.3 17.4s-15.8 2.2-22.5-2.2l-87.8-58.2-87.8 58.2c-6.7 4.4-15.1 5.2-22.5 2.2s-12.8-9.6-14.3-17.4L143 401.4 39.7 380.5c-7.8-1.6-14.4-7-17.4-14.3s-2.2-15.8 2.2-22.5L82.7 256 24.5 168.2c-4.4-6.7-5.2-15.1-2.2-22.5s9.6-12.8 17.4-14.3L143 110.6 163.9 7.3c1.6-7.8 7-14.4 14.3-17.4zM207.6 256a80.4 80.4 0 1 1 160.8 0 80.4 80.4 0 1 1 -160.8 0zm208.8 0a128.4 128.4 0 1 0 -256.8 0 128.4 128.4 0 1 0 256.8 0z"]},nV={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 353.2c4.1-14.6 11.8-27.9 22.6-38.7l181.2-181.2 33.9-33.9c16.6 16.6 51.3 51.3 104 104l33.9 33.9-33.9 33.9-181.2 181.2c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 510.6c-8.3 2.3-17.3 0-23.4-6.2S-1.4 489.3 .9 481L36.4 353.2zm55.6-3.7c-4.4 4.7-7.6 10.4-9.3 16.6l-24.1 86.9 86.9-24.1c6.4-1.8 12.2-5.1 17-9.7L91.9 349.5zm354-146.1c-16.6-16.6-51.3-51.3-104-104L308 65.5C334.5 39 349.4 24.1 352.9 20.6 366.4 7 384.8-.6 404-.6S441.6 7 455.1 20.6l35.7 35.7C504.4 69.9 512 88.3 512 107.4s-7.6 37.6-21.2 51.1c-3.5 3.5-18.4 18.4-44.9 44.9z"]},ZR=nV,rV={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},Kv={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.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},iV={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-87-39-39c-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.2S34.1 320.2 41 327l39 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.2S177.7 512 168 512z"]},aV={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 17.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 117.3 160 488c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},oV={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.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 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"]},ju={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},sV={prefix:"fas",iconName:"house",icon:[512,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"]},lV=sV,FA={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 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 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 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"]},$A={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 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM291.9 220.1c-9.4-9.4-24.6-9.4-33.9 0l-33.9 33.9-33.9-33.9c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l33.9 33.9-33.9 33.9c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l33.9-33.9 33.9 33.9c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-33.9-33.9 33.9-33.9c9.4-9.4 9.4-24.6 0-33.9z"]},Zv={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},sw=Zv,uV=Zv,XR={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},cV={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},lw={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"]},fV={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.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 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},dV={prefix:"fas",iconName:"plug",icon:[448,512,[128268],"f1e6","M128-32c17.7 0 32 14.3 32 32l0 96 128 0 0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 64c0 95.1-69.2 174.1-160 189.3l0 66.7c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-66.7C101.2 398.1 32 319.1 32 224l0-64c-17.7 0-32-14.3-32-32S14.3 96 32 96l64 0 0-96c0-17.7 14.3-32 32-32z"]},uw={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},hV={prefix:"fas",iconName:"file-csv",icon:[576,512,[],"f6dd","M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM264 380c-24.3 0-44 19.7-44 44l0 80c0 24.3 19.7 44 44 44l16 0c24.3 0 44-19.7 44-44l0-8c0-11-9-20-20-20s-20 9-20 20l0 8c0 2.2-1.8 4-4 4l-16 0c-2.2 0-4-1.8-4-4l0-80c0-2.2 1.8-4 4-4l16 0c2.2 0 4 1.8 4 4l0 8c0 11 9 20 20 20s20-9 20-20l0-8c0-24.3-19.7-44-44-44l-16 0zm136 0c-28.7 0-52 23.3-52 52s23.3 52 52 52c6.6 0 12 5.4 12 12s-5.4 12-12 12l-32 0c-11 0-20 9-20 20s9 20 20 20l32 0c28.7 0 52-23.3 52-52s-23.3-52-52-52c-6.6 0-12-5.4-12-12s5.4-12 12-12l24 0c11 0 20-9 20-20s-9-20-20-20l-24 0zm96 0c-11 0-20 9-20 20l0 31.6c0 35.5 10.5 70.3 30.2 99.8l5.1 7.7c3.7 5.6 10 8.9 16.6 8.9s12.9-3.3 16.6-8.9l5.1-7.7c19.7-29.6 30.2-64.3 30.2-99.8l0-31.6c0-11-9-20-20-20s-20 9-20 20l0 31.6c0 19.6-4.1 38.9-12 56.7-7.9-17.8-12-37.1-12-56.7l0-31.6c0-11-9-20-20-20z"]},VA={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},mV={prefix:"fas",iconName:"grip-vertical",icon:[320,512,["grid-vertical"],"f58e","M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 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 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 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 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"]},pV={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},gV=pV,vV={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]},yV={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"]},bV={prefix:"fas",iconName:"arrow-left",icon:[512,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.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},_V={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439.5 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.2S450.2 240 440.5 240l-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 39 87-87zM72.5 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-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-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z"]},QR={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M352 0c0-17.7-14.3-32-32-32S288-17.7 288 0l0 64-96 0c-53 0-96 43-96 96l0 224c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-224c0-53-43-96-96-96l-96 0 0-64zM160 368c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zM224 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm144 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM64 224c0-17.7-14.3-32-32-32S0 206.3 0 224l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96zm544-32c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32z"]},Vh={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},xV={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},wV={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 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"]},SV=wV,JR={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]},CV={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},EV={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},AV=EV,TV={prefix:"fas",iconName:"tag",icon:[512,512,[127991],"f02b","M32.5 96l0 149.5c0 17 6.7 33.3 18.7 45.3l192 192c25 25 65.5 25 90.5 0L483.2 333.3c25-25 25-65.5 0-90.5l-192-192C279.2 38.7 263 32 246 32L96.5 32c-35.3 0-64 28.7-64 64zm112 16a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},OV={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},jV={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.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 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},MV={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"]},PV={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},RV=PV,LV={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M64 160l64 0 0-64-64 0 0 64zM0 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 416l64 0 0-64-64 0 0 64zM0 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-96zM320 96l0 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-48zM288 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 32c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm32-96a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm-32 32a32 32 0 1 1 -64 0 32 32 0 1 1 64 0z"]},NV={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM168 232l176 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-176 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},e6=NV,DV={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 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-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Xv=DV;/*!
* Font Awesome Free 7.1.0 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 2025 Fonticons, Inc.
*/function vx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kV(e){if(Array.isArray(e))return e}function IV(e){if(Array.isArray(e))return vx(e)}function UV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,t6(r.key),r)}}function BV(e,t,n){return t&&zV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sg(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=cw(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return s=d.done,d},e:function(d){u=!0,o=d},f:function(){try{s||n.return==null||n.return()}finally{if(u)throw o}}}}function xt(e,t,n){return(t=t6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $V(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,i=m}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function VV(){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 HV(){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 HA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(n),!0).forEach(function(r){xt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qv(e,t){return kV(e)||$V(e,t)||cw(e,t)||VV()}function Ea(e){return IV(e)||FV(e)||cw(e)||HV()}function qV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t6(e){var t=qV(e,"string");return typeof t=="symbol"?t:t+""}function zg(e){"@babel/helpers - typeof";return zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zg(e)}function cw(e,t){if(e){if(typeof e=="string")return vx(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vx(e,t):void 0}}var qA=function(){},fw={},n6={},r6=null,i6={mark:qA,measure:qA};try{typeof window<"u"&&(fw=window),typeof document<"u"&&(n6=document),typeof MutationObserver<"u"&&(r6=MutationObserver),typeof performance<"u"&&(i6=performance)}catch{}var GV=fw.navigator||{},GA=GV.userAgent,YA=GA===void 0?"":GA,sl=fw,ln=n6,WA=r6,Hp=i6;sl.document;var ns=!!ln.documentElement&&!!ln.head&&typeof ln.addEventListener=="function"&&typeof ln.createElement=="function",a6=~YA.indexOf("MSIE")||~YA.indexOf("Trident/"),ab,YV=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,WV=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,o6={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"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},KV={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},s6=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Sr="classic",Hh="duotone",l6="sharp",u6="sharp-duotone",c6="chisel",f6="etch",d6="jelly",h6="jelly-duo",m6="jelly-fill",p6="notdog",g6="notdog-duo",v6="slab",y6="slab-press",b6="thumbprint",_6="utility",x6="utility-duo",w6="utility-fill",S6="whiteboard",ZV="Classic",XV="Duotone",QV="Sharp",JV="Sharp Duotone",eH="Chisel",tH="Etch",nH="Jelly",rH="Jelly Duo",iH="Jelly Fill",aH="Notdog",oH="Notdog Duo",sH="Slab",lH="Slab Press",uH="Thumbprint",cH="Utility",fH="Utility Duo",dH="Utility Fill",hH="Whiteboard",C6=[Sr,Hh,l6,u6,c6,f6,d6,h6,m6,p6,g6,v6,y6,b6,_6,x6,w6,S6];ab={},xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(ab,Sr,ZV),Hh,XV),l6,QV),u6,JV),c6,eH),f6,tH),d6,nH),h6,rH),m6,iH),p6,aH),xt(xt(xt(xt(xt(xt(xt(xt(ab,g6,oH),v6,sH),y6,lH),b6,uH),_6,cH),x6,fH),w6,dH),S6,hH);var mH={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"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},pH={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},gH=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),vH={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},E6=["fak","fa-kit","fakd","fa-kit-duotone"],KA={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},yH=["kit"],bH="kit",_H="kit-duotone",xH="Kit",wH="Kit Duotone";xt(xt({},bH,xH),_H,wH);var SH={kit:{"fa-kit":"fak"}},CH={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},EH={kit:{fak:"fa-kit"}},ZA={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ob,qp={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},AH=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],TH="classic",OH="duotone",jH="sharp",MH="sharp-duotone",PH="chisel",RH="etch",LH="jelly",NH="jelly-duo",DH="jelly-fill",kH="notdog",IH="notdog-duo",UH="slab",zH="slab-press",BH="thumbprint",FH="utility",$H="utility-duo",VH="utility-fill",HH="whiteboard",qH="Classic",GH="Duotone",YH="Sharp",WH="Sharp Duotone",KH="Chisel",ZH="Etch",XH="Jelly",QH="Jelly Duo",JH="Jelly Fill",eq="Notdog",tq="Notdog Duo",nq="Slab",rq="Slab Press",iq="Thumbprint",aq="Utility",oq="Utility Duo",sq="Utility Fill",lq="Whiteboard";ob={},xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(ob,TH,qH),OH,GH),jH,YH),MH,WH),PH,KH),RH,ZH),LH,XH),NH,QH),DH,JH),kH,eq),xt(xt(xt(xt(xt(xt(xt(xt(ob,IH,tq),UH,nq),zH,rq),BH,iq),FH,aq),$H,oq),VH,sq),HH,lq);var uq="kit",cq="kit-duotone",fq="Kit",dq="Kit Duotone";xt(xt({},uq,fq),cq,dq);var hq={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"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},mq={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},yx={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"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},pq=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],A6=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(AH,pq),gq=["solid","regular","light","thin","duotone","brands","semibold"],T6=[1,2,3,4,5,6,7,8,9,10],vq=T6.concat([11,12,13,14,15,16,17,18,19,20]),yq=["aw","fw","pull-left","pull-right"],bq=[].concat(Ea(Object.keys(mq)),gq,yq,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",qp.GROUP,qp.SWAP_OPACITY,qp.PRIMARY,qp.SECONDARY]).concat(T6.map(function(e){return"".concat(e,"x")})).concat(vq.map(function(e){return"w-".concat(e)})),_q={"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"}},Wo="___FONT_AWESOME___",bx=16,O6="fa",j6="svg-inline--fa",Mu="data-fa-i2svg",_x="data-fa-pseudo-element",xq="data-fa-pseudo-element-pending",dw="data-prefix",hw="data-icon",XA="fontawesome-i2svg",wq="async",Sq=["HTML","HEAD","STYLE","SCRIPT"],M6=["::before","::after",":before",":after"],P6=function(){try{return!0}catch{return!1}}();function qh(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Sr]}})}var R6=We({},o6);R6[Sr]=We(We(We(We({},{"fa-duotone":"duotone"}),o6[Sr]),KA.kit),KA["kit-duotone"]);var Cq=qh(R6),xx=We({},vH);xx[Sr]=We(We(We(We({},{duotone:"fad"}),xx[Sr]),ZA.kit),ZA["kit-duotone"]);var QA=qh(xx),wx=We({},yx);wx[Sr]=We(We({},wx[Sr]),EH.kit);var mw=qh(wx),Sx=We({},hq);Sx[Sr]=We(We({},Sx[Sr]),SH.kit);qh(Sx);var Eq=YV,L6="fa-layers-text",Aq=WV,Tq=We({},mH);qh(Tq);var Oq=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],sb=KV,jq=[].concat(Ea(yH),Ea(bq)),fh=sl.FontAwesomeConfig||{};function Mq(e){var t=ln.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Pq(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(ln&&typeof ln.querySelector=="function"){var Rq=[["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-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Rq.forEach(function(e){var t=Qv(e,2),n=t[0],r=t[1],i=Pq(Mq(n));i!=null&&(fh[r]=i)})}var N6={styleDefault:"solid",familyDefault:Sr,cssPrefix:O6,replacementClass:j6,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};fh.familyPrefix&&(fh.cssPrefix=fh.familyPrefix);var Jc=We(We({},N6),fh);Jc.autoReplaceSvg||(Jc.observeMutations=!1);var lt={};Object.keys(N6).forEach(function(e){Object.defineProperty(lt,e,{enumerable:!0,set:function(n){Jc[e]=n,dh.forEach(function(r){return r(lt)})},get:function(){return Jc[e]}})});Object.defineProperty(lt,"familyPrefix",{enumerable:!0,set:function(t){Jc.cssPrefix=t,dh.forEach(function(n){return n(lt)})},get:function(){return Jc.cssPrefix}});sl.FontAwesomeConfig=lt;var dh=[];function Lq(e){return dh.push(e),function(){dh.splice(dh.indexOf(e),1)}}var Dc=bx,Ja={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Nq(e){if(!(!e||!ns)){var t=ln.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=ln.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return ln.head.insertBefore(t,r),e}}var Dq="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function JA(){for(var e=12,t="";e-- >0;)t+=Dq[Math.random()*62|0];return t}function bf(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function pw(e){return e.classList?bf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function D6(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function kq(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(D6(e[n]),'" ')},"").trim()}function Jv(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function gw(e){return e.size!==Ja.size||e.x!==Ja.x||e.y!==Ja.y||e.rotate!==Ja.rotate||e.flipX||e.flipY}function Iq(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)"),d={transform:"".concat(o," ").concat(s," ").concat(u)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:d,path:f}}function Uq(e){var t=e.transform,n=e.width,r=n===void 0?bx:n,i=e.height,o=i===void 0?bx:i,s="";return a6?s+="translate(".concat(t.x/Dc-r/2,"em, ").concat(t.y/Dc-o/2,"em) "):s+="translate(calc(-50% + ".concat(t.x/Dc,"em), calc(-50% + ").concat(t.y/Dc,"em)) "),s+="scale(".concat(t.size/Dc*(t.flipX?-1:1),", ").concat(t.size/Dc*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var zq=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
--fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
--fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
--fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
--fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
--fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
--fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
--fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
--fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
--fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
--fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
--fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
--fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
--fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
}
.svg-inline--fa {
box-sizing: content-box;
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
width: var(--fa-width, 1.25em);
}
.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.0714285714em;
}
.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,
.svg-inline--fa .fa-pull-start {
float: inline-start;
margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-pull-right,
.svg-inline--fa .fa-pull-end {
float: inline-end;
margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
}
.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: var(--fa-width, 1.25em);
}
.fa-layers .svg-inline--fa {
inset: 0;
margin: auto;
position: absolute;
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: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-xs {
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-sm {
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-lg {
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-xl {
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-2xl {
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-width-auto {
--fa-width: auto;
}
.fa-fw,
.fa-width-fixed {
--fa-width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-inline-start: var(--fa-li-margin, 2.5em);
padding-inline-start: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
/* Heads Up: Bordered Icons will not be supported in the future!
- This feature will be deprecated in the next major release of Font Awesome (v8)!
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
*/
/* Notes:
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
* --@{v.$css-prefix}-border-padding =
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
*/
.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.0625em);
box-sizing: var(--fa-border-box-sizing, content-box);
padding: var(--fa-border-padding, 0.1875em 0.25em);
}
.fa-pull-left,
.fa-pull-start {
float: inline-start;
margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right,
.fa-pull-end {
float: inline-end;
margin-inline-start: 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: none !important;
transition: none !important;
}
}
@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));
}
.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;
}
.svg-inline--fa.fa-inverse {
fill: var(--fa-inverse, #fff);
}
.fa-stack {
display: inline-block;
height: 2em;
line-height: 2em;
position: relative;
vertical-align: middle;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.svg-inline--fa.fa-stack-1x {
--fa-width: 1.25em;
height: 1em;
width: var(--fa-width);
}
.svg-inline--fa.fa-stack-2x {
--fa-width: 2.5em;
height: 2em;
width: var(--fa-width);
}
.fa-stack-1x,
.fa-stack-2x {
inset: 0;
margin: auto;
position: absolute;
z-index: var(--fa-stack-z-index, auto);
}`;function k6(){var e=O6,t=j6,n=lt.cssPrefix,r=lt.replacementClass,i=zq;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(u,".".concat(r))}return i}var eT=!1;function lb(){lt.autoAddCss&&!eT&&(Nq(k6()),eT=!0)}var Bq={mixout:function(){return{dom:{css:k6,insertCss:lb}}},hooks:function(){return{beforeDOMElementCreation:function(){lb()},beforeI2svg:function(){lb()}}}},Ko=sl||{};Ko[Wo]||(Ko[Wo]={});Ko[Wo].styles||(Ko[Wo].styles={});Ko[Wo].hooks||(Ko[Wo].hooks={});Ko[Wo].shims||(Ko[Wo].shims=[]);var wa=Ko[Wo],I6=[],U6=function(){ln.removeEventListener("DOMContentLoaded",U6),Bg=1,I6.map(function(t){return t()})},Bg=!1;ns&&(Bg=(ln.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ln.readyState),Bg||ln.addEventListener("DOMContentLoaded",U6));function Fq(e){ns&&(Bg?setTimeout(e,0):I6.push(e))}function Gh(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?D6(e):"<".concat(t," ").concat(kq(r),">").concat(o.map(Gh).join(""),"</").concat(t,">")}function tT(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ub=function(t,n,r,i){var o=Object.keys(t),s=o.length,u=n,d,f,m;for(r===void 0?(d=1,m=t[o[0]]):(d=0,m=r);d<s;d++)f=o[d],m=u(m,t[f],f,t);return m};function z6(e){return Ea(e).length!==1?null:e.codePointAt(0).toString(16)}function nT(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Cx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=nT(t);typeof wa.hooks.addPack=="function"&&!i?wa.hooks.addPack(e,nT(t)):wa.styles[e]=We(We({},wa.styles[e]||{}),o),e==="fas"&&Cx("fa",t)}var _h=wa.styles,$q=wa.shims,B6=Object.keys(mw),Vq=B6.reduce(function(e,t){return e[t]=Object.keys(mw[t]),e},{}),vw=null,F6={},$6={},V6={},H6={},q6={};function Hq(e){return~jq.indexOf(e)}function qq(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Hq(i)?i:null}var G6=function(){var t=function(o){return ub(_h,function(s,u,d){return s[d]=ub(u,o,{}),s},{})};F6=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var u=o[2].filter(function(d){return typeof d=="number"});u.forEach(function(d){i[d.toString(16)]=s})}return i}),$6=t(function(i,o,s){if(i[s]=s,o[2]){var u=o[2].filter(function(d){return typeof d=="string"});u.forEach(function(d){i[d]=s})}return i}),q6=t(function(i,o,s){var u=o[2];return i[s]=s,u.forEach(function(d){i[d]=s}),i});var n="far"in _h||lt.autoFetchSvg,r=ub($q,function(i,o){var s=o[0],u=o[1],d=o[2];return u==="far"&&!n&&(u="fas"),typeof s=="string"&&(i.names[s]={prefix:u,iconName:d}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:u,iconName:d}),i},{names:{},unicodes:{}});V6=r.names,H6=r.unicodes,vw=ey(lt.styleDefault,{family:lt.familyDefault})};Lq(function(e){vw=ey(e.styleDefault,{family:lt.familyDefault})});G6();function yw(e,t){return(F6[e]||{})[t]}function Gq(e,t){return($6[e]||{})[t]}function yu(e,t){return(q6[e]||{})[t]}function Y6(e){return V6[e]||{prefix:null,iconName:null}}function Yq(e){var t=H6[e],n=yw("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ll(){return vw}var W6=function(){return{prefix:null,iconName:null,rest:[]}};function Wq(e){var t=Sr,n=B6.reduce(function(r,i){return r[i]="".concat(lt.cssPrefix,"-").concat(i),r},{});return C6.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Vq[r].includes(i)}))&&(t=r)}),t}function ey(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Sr:n,i=Cq[r][e];if(r===Hh&&!e)return"fad";var o=QA[r][e]||QA[r][i],s=e in wa.styles?e:null,u=o||s||null;return u}function Kq(e){var t=[],n=null;return e.forEach(function(r){var i=qq(lt.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function rT(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var iT=A6.concat(E6);function ty(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=rT(e.filter(function(_){return iT.includes(_)})),s=rT(e.filter(function(_){return!iT.includes(_)})),u=o.filter(function(_){return i=_,!s6.includes(_)}),d=Qv(u,1),f=d[0],m=f===void 0?null:f,p=Wq(o),b=We(We({},Kq(s)),{},{prefix:ey(m,{family:p})});return We(We(We({},b),Jq({values:e,family:p,styles:_h,config:lt,canonical:b,givenPrefix:i})),Zq(r,i,b))}function Zq(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?Y6(i):{},s=yu(r,i);return i=o.iconName||s||i,r=o.prefix||r,r==="far"&&!_h.far&&_h.fas&&!lt.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Xq=C6.filter(function(e){return e!==Sr||e!==Hh}),Qq=Object.keys(yx).filter(function(e){return e!==Sr}).map(function(e){return Object.keys(yx[e])}).flat();function Jq(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,s=e.styles,u=s===void 0?{}:s,d=e.config,f=d===void 0?{}:d,m=n===Hh,p=t.includes("fa-duotone")||t.includes("fad"),b=f.familyDefault==="duotone",_=r.prefix==="fad"||r.prefix==="fa-duotone";if(!m&&(p||b||_)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Xq.includes(n)){var w=Object.keys(u).find(function(E){return Qq.includes(E)});if(w||f.autoFetchSvg){var x=gH.get(n).defaultShortPrefixId;r.prefix=x,r.iconName=yu(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=ll()||"fas"),r}var eG=function(){function e(){UV(this,e),this.definitions={}}return BV(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(u){n.definitions[u]=We(We({},n.definitions[u]||{}),s[u]),Cx(u,s[u]);var d=mw[Sr][u];d&&Cx(d,s[u]),G6()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var s=i[o],u=s.prefix,d=s.iconName,f=s.icon,m=f[2];n[u]||(n[u]={}),m.length>0&&m.forEach(function(p){typeof p=="string"&&(n[u][p]=f)}),n[u][d]=f}),n}}])}(),aT=[],$c={},qc={},tG=Object.keys(qc);function nG(e,t){var n=t.mixoutsTo;return aT=e,$c={},Object.keys(qc).forEach(function(r){tG.indexOf(r)===-1&&delete qc[r]}),aT.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),zg(i[s])==="object"&&Object.keys(i[s]).forEach(function(u){n[s]||(n[s]={}),n[s][u]=i[s][u]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){$c[s]||($c[s]=[]),$c[s].push(o[s])})}r.provides&&r.provides(qc)}),n}function Ex(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=$c[e]||[];return o.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Pu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=$c[e]||[];i.forEach(function(o){o.apply(null,n)})}function ul(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qc[e]?qc[e].apply(null,t):void 0}function Ax(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ll();if(t)return t=yu(n,t)||t,tT(K6.definitions,n,t)||tT(wa.styles,n,t)}var K6=new eG,rG=function(){lt.autoReplaceSvg=!1,lt.observeMutations=!1,Pu("noAuto")},iG={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ns?(Pu("beforeI2svg",t),ul("pseudoElements2svg",t),ul("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;lt.autoReplaceSvg===!1&&(lt.autoReplaceSvg=!0),lt.observeMutations=!0,Fq(function(){oG({autoReplaceSvgRoot:n}),Pu("watch",t)})}},aG={icon:function(t){if(t===null)return null;if(zg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:yu(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=ey(t[0]);return{prefix:r,iconName:yu(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(lt.cssPrefix,"-"))>-1||t.match(Eq))){var i=ty(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||ll(),iconName:yu(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=ll();return{prefix:o,iconName:yu(o,t)||t}}}},ki={noAuto:rG,config:lt,dom:iG,parse:aG,library:K6,findIconDefinition:Ax,toHtml:Gh},oG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ln:n;(Object.keys(wa.styles).length>0||lt.autoFetchSvg)&&ns&&lt.autoReplaceSvg&&ki.dom.i2svg({node:r})};function ny(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Gh(r)})}}),Object.defineProperty(e,"node",{get:function(){if(ns){var r=ln.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function sG(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(gw(s)&&n.found&&!r.found){var u=n.width,d=n.height,f={x:u/d/2,y:.5};i.style=Jv(We(We({},o),{},{"transform-origin":"".concat(f.x+s.x/16,"em ").concat(f.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function lG(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(lt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:We(We({},i),{},{id:s}),children:r}]}]}function uG(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function bw(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,u=e.symbol,d=e.maskId,f=e.extra,m=e.watchable,p=m===void 0?!1:m,b=r.found?r:n,_=b.width,w=b.height,x=[lt.replacementClass,o?"".concat(lt.cssPrefix,"-").concat(o):""].filter(function(F){return f.classes.indexOf(F)===-1}).filter(function(F){return F!==""||!!F}).concat(f.classes).join(" "),E={children:[],attributes:We(We({},f.attributes),{},{"data-prefix":i,"data-icon":o,class:x,role:f.attributes.role||"img",viewBox:"0 0 ".concat(_," ").concat(w)})};!uG(f.attributes)&&!f.attributes["aria-hidden"]&&(E.attributes["aria-hidden"]="true"),p&&(E.attributes[Mu]="");var T=We(We({},E),{},{prefix:i,iconName:o,main:n,mask:r,maskId:d,transform:s,symbol:u,styles:We({},f.styles)}),j=r.found&&n.found?ul("generateAbstractMask",T)||{children:[],attributes:{}}:ul("generateAbstractIcon",T)||{children:[],attributes:{}},O=j.children,N=j.attributes;return T.children=O,T.attributes=N,u?lG(T):sG(T)}function oT(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,s=e.watchable,u=s===void 0?!1:s,d=We(We({},o.attributes),{},{class:o.classes.join(" ")});u&&(d[Mu]="");var f=We({},o.styles);gw(i)&&(f.transform=Uq({transform:i,width:n,height:r}),f["-webkit-transform"]=f.transform);var m=Jv(f);m.length>0&&(d.style=m);var p=[];return p.push({tag:"span",attributes:d,children:[t]}),p}function cG(e){var t=e.content,n=e.extra,r=We(We({},n.attributes),{},{class:n.classes.join(" ")}),i=Jv(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var cb=wa.styles;function Tx(e){var t=e[0],n=e[1],r=e.slice(4),i=Qv(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(lt.cssPrefix,"-").concat(sb.GROUP)},children:[{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(sb.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(sb.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var fG={found:!1,width:512,height:512};function dG(e,t){!P6&&!lt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ox(e,t){var n=t;return t==="fa"&&lt.styleDefault!==null&&(t=ll()),new Promise(function(r,i){if(n==="fa"){var o=Y6(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&cb[t]&&cb[t][e]){var s=cb[t][e];return r(Tx(s))}dG(e,t),r(We(We({},fG),{},{icon:lt.showMissingIcons&&e?ul("missingIconAbstract")||{}:{}}))})}var sT=function(){},jx=lt.measurePerformance&&Hp&&Hp.mark&&Hp.measure?Hp:{mark:sT,measure:sT},nh='FA "7.1.0"',hG=function(t){return jx.mark("".concat(nh," ").concat(t," begins")),function(){return Z6(t)}},Z6=function(t){jx.mark("".concat(nh," ").concat(t," ends")),jx.measure("".concat(nh," ").concat(t),"".concat(nh," ").concat(t," begins"),"".concat(nh," ").concat(t," ends"))},_w={begin:hG,end:Z6},Cg=function(){};function lT(e){var t=e.getAttribute?e.getAttribute(Mu):null;return typeof t=="string"}function mG(e){var t=e.getAttribute?e.getAttribute(dw):null,n=e.getAttribute?e.getAttribute(hw):null;return t&&n}function pG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(lt.replacementClass)}function gG(){if(lt.autoReplaceSvg===!0)return Eg.replace;var e=Eg[lt.autoReplaceSvg];return e||Eg.replace}function vG(e){return ln.createElementNS("http://www.w3.org/2000/svg",e)}function yG(e){return ln.createElement(e)}function X6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?vG:yG:n;if(typeof e=="string")return ln.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(X6(s,{ceFn:r}))}),i}function bG(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Eg={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(X6(i),n)}),n.getAttribute(Mu)===null&&lt.keepOriginalSource){var r=ln.createComment(bG(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~pw(n).indexOf(lt.replacementClass))return Eg.replace(t);var i=new RegExp("".concat(lt.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(u,d){return d===lt.replacementClass||d.match(i)?u.toSvg.push(d):u.toNode.push(d),u},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(u){return Gh(u)}).join(`
`);n.setAttribute(Mu,""),n.innerHTML=s}};function uT(e){e()}function Q6(e,t){var n=typeof t=="function"?t:Cg;if(e.length===0)n();else{var r=uT;lt.mutateApproach===wq&&(r=sl.requestAnimationFrame||uT),r(function(){var i=gG(),o=_w.begin("mutate");e.map(i),o(),n()})}}var xw=!1;function J6(){xw=!0}function Mx(){xw=!1}var Fg=null;function cT(e){if(WA&&lt.observeMutations){var t=e.treeCallback,n=t===void 0?Cg:t,r=e.nodeCallback,i=r===void 0?Cg:r,o=e.pseudoElementsCallback,s=o===void 0?Cg:o,u=e.observeMutationsRoot,d=u===void 0?ln:u;Fg=new WA(function(f){if(!xw){var m=ll();bf(f).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!lT(p.addedNodes[0])&&(lt.searchPseudoElements&&s(p.target),n(p.target)),p.type==="attributes"&&p.target.parentNode&&lt.searchPseudoElements&&s([p.target],!0),p.type==="attributes"&&lT(p.target)&&~Oq.indexOf(p.attributeName))if(p.attributeName==="class"&&mG(p.target)){var b=ty(pw(p.target)),_=b.prefix,w=b.iconName;p.target.setAttribute(dw,_||m),w&&p.target.setAttribute(hw,w)}else pG(p.target)&&i(p.target)})}}),ns&&Fg.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _G(){Fg&&Fg.disconnect()}function xG(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],u=o.slice(1);return s&&u.length>0&&(r[s]=u.join(":").trim()),r},{})),n}function wG(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=ty(pw(e));return i.prefix||(i.prefix=ll()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Gq(i.prefix,e.innerText)||yw(i.prefix,z6(e.innerText))),!i.iconName&&lt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function SG(e){var t=bf(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function CG(){return{iconName:null,prefix:null,transform:Ja,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function fT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=wG(e),r=n.iconName,i=n.prefix,o=n.rest,s=SG(e),u=Ex("parseNodeAttributes",{},e),d=t.styleParser?xG(e):[];return We({iconName:r,prefix:i,transform:Ja,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:d,attributes:s}},u)}var EG=wa.styles;function eL(e){var t=lt.autoReplaceSvg==="nest"?fT(e,{styleParser:!1}):fT(e);return~t.extra.classes.indexOf(L6)?ul("generateLayersText",e,t):ul("generateSvgReplacementMutation",e,t)}function AG(){return[].concat(Ea(E6),Ea(A6))}function dT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ns)return Promise.resolve();var n=ln.documentElement.classList,r=function(p){return n.add("".concat(XA,"-").concat(p))},i=function(p){return n.remove("".concat(XA,"-").concat(p))},o=lt.autoFetchSvg?AG():s6.concat(Object.keys(EG));o.includes("fa")||o.push("fa");var s=[".".concat(L6,":not([").concat(Mu,"])")].concat(o.map(function(m){return".".concat(m,":not([").concat(Mu,"])")})).join(", ");if(s.length===0)return Promise.resolve();var u=[];try{u=bf(e.querySelectorAll(s))}catch{}if(u.length>0)r("pending"),i("complete");else return Promise.resolve();var d=_w.begin("onTree"),f=u.reduce(function(m,p){try{var b=eL(p);b&&m.push(b)}catch(_){P6||_.name==="MissingIcon"&&console.error(_)}return m},[]);return new Promise(function(m,p){Promise.all(f).then(function(b){Q6(b,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),d(),m()})}).catch(function(b){d(),p(b)})})}function TG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;eL(e).then(function(n){n&&Q6([n],t)})}function OG(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ax(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ax(i||{})),e(r,We(We({},n),{},{mask:i}))}}var jG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Ja:r,o=n.symbol,s=o===void 0?!1:o,u=n.mask,d=u===void 0?null:u,f=n.maskId,m=f===void 0?null:f,p=n.classes,b=p===void 0?[]:p,_=n.attributes,w=_===void 0?{}:_,x=n.styles,E=x===void 0?{}:x;if(t){var T=t.prefix,j=t.iconName,O=t.icon;return ny(We({type:"icon"},t),function(){return Pu("beforeDOMElementCreation",{iconDefinition:t,params:n}),bw({icons:{main:Tx(O),mask:d?Tx(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:T,iconName:j,transform:We(We({},Ja),i),symbol:s,maskId:m,extra:{attributes:w,styles:E,classes:b}})})}},MG={mixout:function(){return{icon:OG(jG)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=dT,n.nodeCallback=TG,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ln:r,o=n.callback,s=o===void 0?function(){}:o;return dT(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,s=r.transform,u=r.symbol,d=r.mask,f=r.maskId,m=r.extra;return new Promise(function(p,b){Promise.all([Ox(i,o),d.iconName?Ox(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var w=Qv(_,2),x=w[0],E=w[1];p([n,bw({icons:{main:x,mask:E},prefix:o,iconName:i,transform:s,symbol:u,maskId:f,extra:m,watchable:!0})])}).catch(b)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,u=n.styles,d=Jv(u);d.length>0&&(i.style=d);var f;return gw(s)&&(f=ul("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(f||o.icon),{children:r,attributes:i}}}},PG={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return ny({type:"layer"},function(){Pu("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(u){Array.isArray(u)?u.map(function(d){s=s.concat(d.abstract)}):s=s.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(lt.cssPrefix,"-layers")].concat(Ea(o)).join(" ")},children:s}]})}}}},RG={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,s=r.attributes,u=s===void 0?{}:s,d=r.styles,f=d===void 0?{}:d;return ny({type:"counter",content:n},function(){return Pu("beforeDOMElementCreation",{content:n,params:r}),cG({content:n.toString(),extra:{attributes:u,styles:f,classes:["".concat(lt.cssPrefix,"-layers-counter")].concat(Ea(o))}})})}}}},LG={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Ja:i,s=r.classes,u=s===void 0?[]:s,d=r.attributes,f=d===void 0?{}:d,m=r.styles,p=m===void 0?{}:m;return ny({type:"text",content:n},function(){return Pu("beforeDOMElementCreation",{content:n,params:r}),oT({content:n,transform:We(We({},Ja),o),extra:{attributes:f,styles:p,classes:["".concat(lt.cssPrefix,"-layers-text")].concat(Ea(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,s=null,u=null;if(a6){var d=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/d,u=f.height/d}return Promise.resolve([n,oT({content:n.innerHTML,width:s,height:u,transform:i,extra:o,watchable:!0})])}}},tL=new RegExp('"',"ug"),hT=[1105920,1112319],mT=We(We(We(We({},{FontAwesome:{normal:"fas",400:"fas"}}),pH),_q),CH),Px=Object.keys(mT).reduce(function(e,t){return e[t.toLowerCase()]=mT[t],e},{}),NG=Object.keys(Px).reduce(function(e,t){var n=Px[t];return e[t]=n[900]||Ea(Object.entries(n))[0][1],e},{});function DG(e){var t=e.replace(tL,"");return z6(Ea(t)[0]||"")}function kG(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(tL,""),i=r.codePointAt(0),o=i>=hT[0]&&i<=hT[1],s=r.length===2?r[0]===r[1]:!1;return o||s||t}function IG(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Px[n]||{})[i]||NG[n]}function pT(e,t){var n="".concat(xq).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=bf(e.children),s=o.filter(function($){return $.getAttribute(_x)===t})[0],u=sl.getComputedStyle(e,t),d=u.getPropertyValue("font-family"),f=d.match(Aq),m=u.getPropertyValue("font-weight"),p=u.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&p!=="none"&&p!==""){var b=u.getPropertyValue("content"),_=IG(d,m),w=DG(b),x=f[0].startsWith("FontAwesome"),E=kG(u),T=yw(_,w),j=T;if(x){var O=Yq(w);O.iconName&&O.prefix&&(T=O.iconName,_=O.prefix)}if(T&&!E&&(!s||s.getAttribute(dw)!==_||s.getAttribute(hw)!==j)){e.setAttribute(n,j),s&&e.removeChild(s);var N=CG(),F=N.extra;F.attributes[_x]=t,Ox(T,_).then(function($){var K=bw(We(We({},N),{},{icons:{main:$,mask:W6()},prefix:_,iconName:j,extra:F,watchable:!0})),Q=ln.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(Q,e.firstChild):e.appendChild(Q),Q.outerHTML=K.map(function(oe){return Gh(oe)}).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function UG(e){return Promise.all([pT(e,"::before"),pT(e,"::after")])}function zG(e){return e.parentNode!==document.head&&!~Sq.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(_x)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var BG=function(t){return!!t&&M6.some(function(n){return t.includes(n)})},FG=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(d){return d.trim()});r=r.flatMap(function(d){return d.includes("(")?d:d.split(",").map(function(f){return f.trim()})});var i=Sg(r),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;if(BG(s)){var u=M6.reduce(function(d,f){return d.replace(f,"")},s);u!==""&&u!=="*"&&n.add(u)}}}catch(d){i.e(d)}finally{i.f()}return n};function gT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ns){var n;if(t)n=e;else if(lt.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Sg(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;try{var u=Sg(s.cssRules),d;try{for(u.s();!(d=u.n()).done;){var f=d.value,m=FG(f.selectorText),p=Sg(m),b;try{for(p.s();!(b=p.n()).done;){var _=b.value;r.add(_)}}catch(x){p.e(x)}finally{p.f()}}}catch(x){u.e(x)}finally{u.f()}}catch(x){lt.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(x.message,`)
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(x){i.e(x)}finally{i.f()}if(!r.size)return;var w=Array.from(r).join(", ");try{n=e.querySelectorAll(w)}catch{}}return new Promise(function(x,E){var T=bf(n).filter(zG).map(UG),j=_w.begin("searchPseudoElements");J6(),Promise.all(T).then(function(){j(),Mx(),x()}).catch(function(){j(),Mx(),E()})})}}var $G={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=gT,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ln:r;lt.searchPseudoElements&&gT(i)}}},vT=!1,VG={mixout:function(){return{dom:{unwatch:function(){J6(),vT=!0}}}},hooks:function(){return{bootstrap:function(){cT(Ex("mutationObserverCallbacks",{}))},noAuto:function(){_G()},watch:function(n){var r=n.observeMutationsRoot;vT?Mx():cT(Ex("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},yT=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],u=o.slice(1).join("-");if(s&&u==="h")return r.flipX=!0,r;if(s&&u==="v")return r.flipY=!0,r;if(u=parseFloat(u),isNaN(u))return r;switch(s){case"grow":r.size=r.size+u;break;case"shrink":r.size=r.size-u;break;case"left":r.x=r.x-u;break;case"right":r.x=r.x+u;break;case"up":r.y=r.y-u;break;case"down":r.y=r.y+u;break;case"rotate":r.rotate=r.rotate+u;break}return r},n)},HG={mixout:function(){return{parse:{transform:function(n){return yT(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=yT(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,u={transform:"translate(".concat(o/2," 256)")},d="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),m="rotate(".concat(i.rotate," 0 0)"),p={transform:"".concat(d," ").concat(f," ").concat(m)},b={transform:"translate(".concat(s/2*-1," -256)")},_={outer:u,inner:p,path:b};return{tag:"g",attributes:We({},_.outer),children:[{tag:"g",attributes:We({},_.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:We(We({},r.icon.attributes),_.path)}]}]}}}},fb={x:0,y:0,width:"100%",height:"100%"};function bT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function qG(e){return e.tag==="g"?e.children:[e]}var GG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?ty(i.split(" ").map(function(s){return s.trim()})):W6();return o.prefix||(o.prefix=ll()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,u=n.maskId,d=n.transform,f=o.width,m=o.icon,p=s.width,b=s.icon,_=Iq({transform:d,containerWidth:p,iconWidth:f}),w={tag:"rect",attributes:We(We({},fb),{},{fill:"white"})},x=m.children?{children:m.children.map(bT)}:{},E={tag:"g",attributes:We({},_.inner),children:[bT(We({tag:m.tag,attributes:We(We({},m.attributes),_.path)},x))]},T={tag:"g",attributes:We({},_.outer),children:[E]},j="mask-".concat(u||JA()),O="clip-".concat(u||JA()),N={tag:"mask",attributes:We(We({},fb),{},{id:j,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,T]},F={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:qG(b)},N]};return r.push(F,{tag:"rect",attributes:We({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(j,")")},fb)}),{children:r,attributes:i}}}},YG={provides:function(t){var n=!1;sl.matchMedia&&(n=sl.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:We(We({},i),{},{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"})});var s=We(We({},o),{},{attributeName:"opacity"}),u={tag:"circle",attributes:We(We({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:We(We({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:We(We({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(u),r.push({tag:"path",attributes:We(We({},i),{},{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:n?[]:[{tag:"animate",attributes:We(We({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:We(We({},i),{},{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:We(We({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},WG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},KG=[Bq,MG,PG,RG,LG,$G,VG,HG,GG,YG,WG];nG(KG,{mixoutsTo:ki});ki.noAuto;var xh=ki.config;ki.library;ki.dom;var nL=ki.parse;ki.findIconDefinition;ki.toHtml;var ZG=ki.icon;ki.layer;ki.text;ki.counter;function XG(e){return e=e-0,e===e}function rL(e){return XG(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}function QG(e){return e.charAt(0).toUpperCase()+e.slice(1)}var kc=new Map,JG=1e3;function eY(e){if(kc.has(e))return kc.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const i=e.indexOf(";",n),o=i===-1?r:i,s=e.slice(n,o).trim();if(s){const u=s.indexOf(":");if(u>0){const d=s.slice(0,u).trim(),f=s.slice(u+1).trim();if(d&&f){const m=rL(d);t[m.startsWith("webkit")?QG(m):m]=f}}}n=o+1}if(kc.size===JG){const i=kc.keys().next().value;i&&kc.delete(i)}return kc.set(e,t),t}function iL(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>iL(e,f)),i=t.attributes||{},o={};for(const[f,m]of Object.entries(i))switch(!0){case f==="class":{o.className=m;break}case f==="style":{o.style=eY(String(m));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=m;break}default:o[rL(f)]=m}const{style:s,"aria-label":u,...d}=n;return s&&(o.style=o.style?{...o.style,...s}:s),u&&(o["aria-label"]=u,o["aria-hidden"]="false"),e(t.tag,{...d,...o},...r)}var tY=iL.bind(null,Qc.createElement),_T=(e,t)=>{const n=C.useId();return e||(t?n:void 0)},nY=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},rY="searchPseudoElementsFullScan"in xh?"7.0.0":"6.0.0",iY=Number.parseInt(rY)>=7,hh="fa",Uo={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},aY={left:"fa-pull-left",right:"fa-pull-right"},oY={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},sY={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},zo={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function lY(e){const t=xh.cssPrefix||xh.familyPrefix||hh;return t===hh?e:e.replace(new RegExp(`(?<=^|\\s)${hh}-`,"g"),`${t}-`)}function uY(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:s,spinPulse:u,spinReverse:d,pulse:f,fixedWidth:m,inverse:p,border:b,flip:_,size:w,rotation:x,pull:E,swapOpacity:T,rotateBy:j,widthAuto:O,className:N}=e,F=[];return N&&F.push(...N.split(" ")),t&&F.push(Uo.beat),n&&F.push(Uo.fade),r&&F.push(Uo.beatFade),i&&F.push(Uo.bounce),o&&F.push(Uo.shake),s&&F.push(Uo.spin),d&&F.push(Uo.spinReverse),u&&F.push(Uo.spinPulse),f&&F.push(Uo.pulse),m&&F.push(zo.fixedWidth),p&&F.push(zo.inverse),b&&F.push(zo.border),_===!0&&F.push(zo.flip),(_==="horizontal"||_==="both")&&F.push(zo.flipHorizontal),(_==="vertical"||_==="both")&&F.push(zo.flipVertical),w!=null&&F.push(sY[w]),x!=null&&x!==0&&F.push(oY[x]),E!=null&&F.push(aY[E]),T&&F.push(zo.swapOpacity),iY?(j&&F.push(zo.rotateBy),O&&F.push(zo.widthAuto),(xh.cssPrefix||xh.familyPrefix||hh)===hh?F:F.map(lY)):F}var cY=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function xT(e){if(e)return cY(e)?e:nL.icon(e)}function fY(e){return Object.keys(e)}var wT=new nY("FontAwesomeIcon"),aL={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},dY=new Set(Object.keys(aL)),Ye=Qc.forwardRef((e,t)=>{const n={...aL,...e},{icon:r,mask:i,symbol:o,title:s,titleId:u,maskId:d,transform:f}=n,m=_T(d,!!i),p=_T(u,!!s),b=xT(r);if(!b)return wT.error("Icon lookup is undefined",r),null;const _=uY(n),w=typeof f=="string"?nL.transform(f):f,x=xT(i),E=ZG(b,{..._.length>0&&{classes:_},...w&&{transform:w},...x&&{mask:x},symbol:o,title:s,titleId:p,maskId:m});if(!E)return wT.error("Could not find icon",b),null;const{abstract:T}=E,j={ref:t};for(const O of fY(n))dY.has(O)||(j[O]=n[O]);return tY(T[0],j)});Ye.displayName="FontAwesomeIcon";function ry(){return typeof window<"u"}function _f(e){return oL(e)?(e.nodeName||"").toLowerCase():"#document"}function Ti(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rs(e){var t;return(t=(oL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oL(e){return ry()?e instanceof Node||e instanceof Ti(e).Node:!1}function wr(e){return ry()?e instanceof Element||e instanceof Ti(e).Element:!1}function Mi(e){return ry()?e instanceof HTMLElement||e instanceof Ti(e).HTMLElement:!1}function Rx(e){return!ry()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ti(e).ShadowRoot}const hY=new Set(["inline","contents"]);function Yh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Aa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!hY.has(i)}const mY=new Set(["table","td","th"]);function pY(e){return mY.has(_f(e))}const gY=[":popover-open",":modal"];function iy(e){return gY.some(t=>{try{return e.matches(t)}catch{return!1}})}const vY=["transform","translate","scale","rotate","perspective"],yY=["transform","translate","scale","rotate","perspective","filter"],bY=["paint","layout","strict","content"];function ww(e){const t=Sw(),n=wr(e)?Aa(e):e;return vY.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||yY.some(r=>(n.willChange||"").includes(r))||bY.some(r=>(n.contain||"").includes(r))}function _Y(e){let t=cl(e);for(;Mi(t)&&!ef(t);){if(ww(t))return t;if(iy(t))return null;t=cl(t)}return null}function Sw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xY=new Set(["html","body","#document"]);function ef(e){return xY.has(_f(e))}function Aa(e){return Ti(e).getComputedStyle(e)}function ay(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cl(e){if(_f(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rx(e)&&e.host||rs(e);return Rx(t)?t.host:t}function sL(e){const t=cl(e);return ef(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mi(t)&&Yh(t)?t:sL(t)}function lL(e,t,n){var r;t===void 0&&(t=[]);const i=sL(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ti(i);return o?(Lx(s),t.concat(s,s.visualViewport||[],Yh(i)?i:[],[])):t.concat(i,lL(i,[]))}function Lx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const wY=["top","right","bottom","left"],ST=["start","end"],CT=wY.reduce((e,t)=>e.concat(t,t+"-"+ST[0],t+"-"+ST[1]),[]),wh=Math.min,Gc=Math.max,$g=Math.round,to=e=>({x:e,y:e}),SY={left:"right",right:"left",bottom:"top",top:"bottom"},CY={start:"end",end:"start"};function EY(e,t,n){return Gc(e,wh(t,n))}function Wh(e,t){return typeof e=="function"?e(t):e}function fl(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function AY(e){return e==="x"?"y":"x"}function Cw(e){return e==="y"?"height":"width"}const TY=new Set(["top","bottom"]);function bu(e){return TY.has(fl(e))?"y":"x"}function Ew(e){return AY(bu(e))}function uL(e,t,n){n===void 0&&(n=!1);const r=no(e),i=Ew(e),o=Cw(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Hg(s)),[s,Hg(s)]}function OY(e){const t=Hg(e);return[Vg(e),t,Vg(t)]}function Vg(e){return e.replace(/start|end/g,t=>CY[t])}const ET=["left","right"],AT=["right","left"],jY=["top","bottom"],MY=["bottom","top"];function PY(e,t,n){switch(e){case"top":case"bottom":return n?t?AT:ET:t?ET:AT;case"left":case"right":return t?jY:MY;default:return[]}}function RY(e,t,n,r){const i=no(e);let o=PY(fl(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Vg)))),o}function Hg(e){return e.replace(/left|right|bottom|top/g,t=>SY[t])}function LY(e){return{top:0,right:0,bottom:0,left:0,...e}}function cL(e){return typeof e!="number"?LY(e):{top:e,right:e,bottom:e,left:e}}function qg(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const NY="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function DY(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Rx(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Gp(e){return e?.ownerDocument||document}function kY(e){return Mi(e)&&e.matches(NY)}function Sh(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var IY=typeof document<"u",UY=function(){},dl=IY?C.useLayoutEffect:UY;const zY={...F2};function nl(e){const t=C.useRef(e);return dl(()=>{t.current=e}),t}const BY=zY.useInsertionEffect,FY=BY||(e=>e());function rh(e){const t=C.useRef(()=>{});return FY(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function TT(e,t,n){let{reference:r,floating:i}=e;const o=bu(t),s=Ew(t),u=Cw(s),d=fl(t),f=o==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[u]/2-i[u]/2;let _;switch(d){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:p};break;case"left":_={x:r.x-i.width,y:p};break;default:_={x:r.x,y:r.y}}switch(no(t)){case"start":_[s]-=b*(n&&f?-1:1);break;case"end":_[s]+=b*(n&&f?-1:1);break}return _}const $Y=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,u=o.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=TT(f,r,d),b=r,_={},w=0;for(let x=0;x<u.length;x++){const{name:E,fn:T}=u[x],{x:j,y:O,data:N,reset:F}=await T({x:m,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:_,rects:f,platform:s,elements:{reference:e,floating:t}});m=j??m,p=O??p,_={..._,[E]:{..._[E],...N}},F&&w<=50&&(w++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(f=F.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:m,y:p}=TT(f,b,d)),x=-1)}return{x:m,y:p,placement:b,strategy:i,middlewareData:_}};async function fL(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:b=!1,padding:_=0}=Wh(t,e),w=cL(_),E=u[b?p==="floating"?"reference":"floating":p],T=qg(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),j=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),N=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},F=qg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:j,offsetParent:O,strategy:d}):j);return{top:(T.top-F.top+w.top)/N.y,bottom:(F.bottom-T.bottom+w.bottom)/N.y,left:(T.left-F.left+w.left)/N.x,right:(F.right-T.right+w.right)/N.x}}const VY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=Wh(e,t)||{};if(f==null)return{};const p=cL(m),b={x:n,y:r},_=Ew(i),w=Cw(_),x=await s.getDimensions(f),E=_==="y",T=E?"top":"left",j=E?"bottom":"right",O=E?"clientHeight":"clientWidth",N=o.reference[w]+o.reference[_]-b[_]-o.floating[w],F=b[_]-o.reference[_],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let K=$?$[O]:0;(!K||!await(s.isElement==null?void 0:s.isElement($)))&&(K=u.floating[O]||o.floating[w]);const Q=N/2-F/2,oe=K/2-x[w]/2-1,ee=wh(p[T],oe),J=wh(p[j],oe),te=ee,he=K-x[w]-J,X=K/2-x[w]/2+Q,se=EY(te,X,he),Z=!d.arrow&&no(i)!=null&&X!==se&&o.reference[w]/2-(X<te?ee:J)-x[w]/2<0,I=Z?X<te?X-te:X-he:0;return{[_]:b[_]+I,data:{[_]:se,centerOffset:X-se-I,...Z&&{alignmentOffset:I}},reset:Z}}});function HY(e,t,n){return(e?[...n.filter(i=>no(i)===e),...n.filter(i=>no(i)!==e)]:n.filter(i=>fl(i)===i)).filter(i=>e?no(i)===e||(t?Vg(i)!==i:!1):!0)}const qY=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:s,placement:u,platform:d,elements:f}=t,{crossAxis:m=!1,alignment:p,allowedPlacements:b=CT,autoAlignment:_=!0,...w}=Wh(e,t),x=p!==void 0||b===CT?HY(p||null,_,b):b,E=await fL(t,w),T=((n=s.autoPlacement)==null?void 0:n.index)||0,j=x[T];if(j==null)return{};const O=uL(j,o,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(u!==j)return{reset:{placement:x[0]}};const N=[E[fl(j)],E[O[0]],E[O[1]]],F=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:j,overflows:N}],$=x[T+1];if($)return{data:{index:T+1,overflows:F},reset:{placement:$}};const K=F.map(ee=>{const J=no(ee.placement);return[ee.placement,J&&m?ee.overflows.slice(0,2).reduce((te,he)=>te+he,0):ee.overflows[0],ee.overflows]}).sort((ee,J)=>ee[1]-J[1]),oe=((i=K.filter(ee=>ee[2].slice(0,no(ee[0])?2:3).every(J=>J<=0))[0])==null?void 0:i[0])||K[0][0];return oe!==u?{data:{index:T+1,overflows:F},reset:{placement:oe}}:{}}}},GY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...E}=Wh(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const T=fl(i),j=bu(u),O=fl(u)===u,N=await(d.isRTL==null?void 0:d.isRTL(f.floating)),F=b||(O||!x?[Hg(u)]:OY(u)),$=w!=="none";!b&&$&&F.push(...RY(u,x,w,N));const K=[u,...F],Q=await fL(t,E),oe=[];let ee=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(Q[T]),p){const X=uL(i,s,N);oe.push(Q[X[0]],Q[X[1]])}if(ee=[...ee,{placement:i,overflows:oe}],!oe.every(X=>X<=0)){var J,te;const X=(((J=o.flip)==null?void 0:J.index)||0)+1,se=K[X];if(se&&(!(p==="alignment"?j!==bu(se):!1)||ee.every(k=>bu(k.placement)===j?k.overflows[0]>0:!0)))return{data:{index:X,overflows:ee},reset:{placement:se}};let Z=(te=ee.filter(I=>I.overflows[0]<=0).sort((I,k)=>I.overflows[1]-k.overflows[1])[0])==null?void 0:te.placement;if(!Z)switch(_){case"bestFit":{var he;const I=(he=ee.filter(k=>{if($){const U=bu(k.placement);return U===j||U==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(U=>U>0).reduce((U,z)=>U+z,0)]).sort((k,U)=>k[1]-U[1])[0])==null?void 0:he[0];I&&(Z=I);break}case"initialPlacement":Z=u;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}},YY=new Set(["left","top"]);async function WY(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=fl(n),u=no(n),d=bu(n)==="y",f=YY.has(s)?-1:1,m=o&&d?-1:1,p=Wh(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof w=="number"&&(_=u==="end"?w*-1:w),d?{x:_*m,y:b*f}:{x:b*f,y:_*m}}const KY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:u}=t,d=await WY(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:o+d.y,data:{...d,placement:s}}}}};function dL(e){const t=Aa(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Mi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=$g(n)!==o||$g(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function hL(e){return wr(e)?e:e.contextElement}function Yc(e){const t=hL(e);if(!Mi(t))return to(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=dL(t);let s=(o?$g(n.width):n.width)/r,u=(o?$g(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const ZY=to(0);function mL(e){const t=Ti(e);return!Sw()||!t.visualViewport?ZY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function XY(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ti(e)?!1:t}function Ch(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=hL(e);let s=to(1);t&&(r?wr(r)&&(s=Yc(r)):s=Yc(e));const u=XY(o,n,r)?mL(o):to(0);let d=(i.left+u.x)/s.x,f=(i.top+u.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(o){const b=Ti(o),_=r&&wr(r)?Ti(r):r;let w=b,x=Lx(w);for(;x&&r&&_!==w;){const E=Yc(x),T=x.getBoundingClientRect(),j=Aa(x),O=T.left+(x.clientLeft+parseFloat(j.paddingLeft))*E.x,N=T.top+(x.clientTop+parseFloat(j.paddingTop))*E.y;d*=E.x,f*=E.y,m*=E.x,p*=E.y,d+=O,f+=N,w=Ti(x),x=Lx(w)}}return qg({width:m,height:p,x:d,y:f})}function oy(e,t){const n=ay(e).scrollLeft;return t?t.left+n:Ch(rs(e)).left+n}function pL(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-oy(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function QY(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=rs(r),u=t?iy(t.floating):!1;if(r===s||u&&o)return n;let d={scrollLeft:0,scrollTop:0},f=to(1);const m=to(0),p=Mi(r);if((p||!p&&!o)&&((_f(r)!=="body"||Yh(s))&&(d=ay(r)),Mi(r))){const _=Ch(r);f=Yc(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const b=s&&!p&&!o?pL(s,d):to(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+b.x,y:n.y*f.y-d.scrollTop*f.y+m.y+b.y}}function JY(e){return Array.from(e.getClientRects())}function eW(e){const t=rs(e),n=ay(e),r=e.ownerDocument.body,i=Gc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Gc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+oy(e);const u=-n.scrollTop;return Aa(r).direction==="rtl"&&(s+=Gc(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:u}}const OT=25;function tW(e,t){const n=Ti(e),r=rs(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,u=0,d=0;if(i){o=i.width,s=i.height;const m=Sw();(!m||m&&t==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}const f=oy(r);if(f<=0){const m=r.ownerDocument,p=m.body,b=getComputedStyle(p),_=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-_);w<=OT&&(o-=w)}else f<=OT&&(o+=f);return{width:o,height:s,x:u,y:d}}const nW=new Set(["absolute","fixed"]);function rW(e,t){const n=Ch(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Mi(e)?Yc(e):to(1),s=e.clientWidth*o.x,u=e.clientHeight*o.y,d=i*o.x,f=r*o.y;return{width:s,height:u,x:d,y:f}}function jT(e,t,n){let r;if(t==="viewport")r=tW(e,n);else if(t==="document")r=eW(rs(e));else if(wr(t))r=rW(t,n);else{const i=mL(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qg(r)}function gL(e,t){const n=cl(e);return n===t||!wr(n)||ef(n)?!1:Aa(n).position==="fixed"||gL(n,t)}function iW(e,t){const n=t.get(e);if(n)return n;let r=lL(e,[]).filter(u=>wr(u)&&_f(u)!=="body"),i=null;const o=Aa(e).position==="fixed";let s=o?cl(e):e;for(;wr(s)&&!ef(s);){const u=Aa(s),d=ww(s);!d&&u.position==="fixed"&&(i=null),(o?!d&&!i:!d&&u.position==="static"&&!!i&&nW.has(i.position)||Yh(s)&&!d&&gL(e,s))?r=r.filter(m=>m!==s):i=u,s=cl(s)}return t.set(e,r),r}function aW(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?iy(t)?[]:iW(t,this._c):[].concat(n),r],u=s[0],d=s.reduce((f,m)=>{const p=jT(t,m,i);return f.top=Gc(p.top,f.top),f.right=wh(p.right,f.right),f.bottom=wh(p.bottom,f.bottom),f.left=Gc(p.left,f.left),f},jT(t,u,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function oW(e){const{width:t,height:n}=dL(e);return{width:t,height:n}}function sW(e,t,n){const r=Mi(t),i=rs(t),o=n==="fixed",s=Ch(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const d=to(0);function f(){d.x=oy(i)}if(r||!r&&!o)if((_f(t)!=="body"||Yh(i))&&(u=ay(t)),r){const _=Ch(t,!0,o,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&f();o&&!r&&i&&f();const m=i&&!r&&!o?pL(i,u):to(0),p=s.left+u.scrollLeft-d.x-m.x,b=s.top+u.scrollTop-d.y-m.y;return{x:p,y:b,width:s.width,height:s.height}}function db(e){return Aa(e).position==="static"}function MT(e,t){if(!Mi(e)||Aa(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rs(e)===n&&(n=n.ownerDocument.body),n}function vL(e,t){const n=Ti(e);if(iy(e))return n;if(!Mi(e)){let i=cl(e);for(;i&&!ef(i);){if(wr(i)&&!db(i))return i;i=cl(i)}return n}let r=MT(e,t);for(;r&&pY(r)&&db(r);)r=MT(r,t);return r&&ef(r)&&db(r)&&!ww(r)?n:r||_Y(e)||n}const lW=async function(e){const t=this.getOffsetParent||vL,n=this.getDimensions,r=await n(e.floating);return{reference:sW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uW(e){return Aa(e).direction==="rtl"}const cW={convertOffsetParentRelativeRectToViewportRelativeRect:QY,getDocumentElement:rs,getClippingRect:aW,getOffsetParent:vL,getElementRects:lW,getClientRects:JY,getDimensions:oW,getScale:Yc,isElement:wr,isRTL:uW},fW=KY,dW=qY,hW=GY,PT=VY,mW=(e,t,n)=>{const r=new Map,i={platform:cW,...n},o={...i.platform,_c:r};return $Y(e,t,{...i,platform:o})};var pW=typeof document<"u",gW=function(){},Ag=pW?C.useLayoutEffect:gW;function Gg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Gg(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function yL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function RT(e,t){const n=yL(e);return Math.round(t*n)/n}function hb(e){const t=C.useRef(e);return Ag(()=>{t.current=e}),t}function vW(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=C.useState(r);Gg(b,r)||_(r);const[w,x]=C.useState(null),[E,T]=C.useState(null),j=C.useCallback(k=>{k!==$.current&&($.current=k,x(k))},[]),O=C.useCallback(k=>{k!==K.current&&(K.current=k,T(k))},[]),N=o||w,F=s||E,$=C.useRef(null),K=C.useRef(null),Q=C.useRef(m),oe=d!=null,ee=hb(d),J=hb(i),te=hb(f),he=C.useCallback(()=>{if(!$.current||!K.current)return;const k={placement:t,strategy:n,middleware:b};J.current&&(k.platform=J.current),mW($.current,K.current,k).then(U=>{const z={...U,isPositioned:te.current!==!1};X.current&&!Gg(Q.current,z)&&(Q.current=z,$h.flushSync(()=>{p(z)}))})},[b,t,n,J,te]);Ag(()=>{f===!1&&Q.current.isPositioned&&(Q.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[f]);const X=C.useRef(!1);Ag(()=>(X.current=!0,()=>{X.current=!1}),[]),Ag(()=>{if(N&&($.current=N),F&&(K.current=F),N&&F){if(ee.current)return ee.current(N,F,he);he()}},[N,F,he,ee,oe]);const se=C.useMemo(()=>({reference:$,floating:K,setReference:j,setFloating:O}),[j,O]),Z=C.useMemo(()=>({reference:N,floating:F}),[N,F]),I=C.useMemo(()=>{const k={position:n,left:0,top:0};if(!Z.floating)return k;const U=RT(Z.floating,m.x),z=RT(Z.floating,m.y);return u?{...k,transform:"translate("+U+"px, "+z+"px)",...yL(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:z}},[n,u,Z.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:he,refs:se,elements:Z,floatingStyles:I}),[m,he,se,Z,I])}const yW=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?PT({element:r.current,padding:i}).fn(n):{}:r?PT({element:r,padding:i}).fn(n):{}}}},bW=(e,t)=>({...fW(e),options:[e,t]}),_W=(e,t)=>({...hW(e),options:[e,t]}),xW=(e,t)=>({...dW(e),options:[e,t]}),wW=(e,t)=>({...yW(e),options:[e,t]}),SW="data-floating-ui-focusable",LT="active",NT="selected",CW={...F2};let DT=!1,EW=0;const kT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+EW++;function AW(){const[e,t]=C.useState(()=>DT?kT():void 0);return dl(()=>{e==null&&t(kT())},[]),C.useEffect(()=>{DT=!0},[]),e}const TW=CW.useId,OW=TW||AW;function jW(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const MW=C.createContext(null),PW=C.createContext(null),bL=()=>{var e;return((e=C.useContext(MW))==null?void 0:e.id)||null},_L=()=>C.useContext(PW);function RW(e){return"data-floating-ui-"+e}function ya(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const IT=RW("safe-polygon");function mb(e,t,n){if(n&&!Sh(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function pb(e){return typeof e=="function"?e():e}function LW(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:s}=e,{enabled:u=!0,delay:d=0,handleClose:f=null,mouseOnly:m=!1,restMs:p=0,move:b=!0}=t,_=_L(),w=bL(),x=nl(f),E=nl(d),T=nl(n),j=nl(p),O=C.useRef(),N=C.useRef(-1),F=C.useRef(),$=C.useRef(-1),K=C.useRef(!0),Q=C.useRef(!1),oe=C.useRef(()=>{}),ee=C.useRef(!1),J=rh(()=>{var I;const k=(I=i.current.openEvent)==null?void 0:I.type;return k?.includes("mouse")&&k!=="mousedown"});C.useEffect(()=>{if(!u)return;function I(k){let{open:U}=k;U||(ya(N),ya($),K.current=!0,ee.current=!1)}return o.on("openchange",I),()=>{o.off("openchange",I)}},[u,o]),C.useEffect(()=>{if(!u||!x.current||!n)return;function I(U){J()&&r(!1,U,"hover")}const k=Gp(s.floating).documentElement;return k.addEventListener("mouseleave",I),()=>{k.removeEventListener("mouseleave",I)}},[s.floating,n,r,u,x,J]);const te=C.useCallback(function(I,k,U){k===void 0&&(k=!0),U===void 0&&(U="hover");const z=mb(E.current,"close",O.current);z&&!F.current?(ya(N),N.current=window.setTimeout(()=>r(!1,I,U),z)):k&&(ya(N),r(!1,I,U))},[E,r]),he=rh(()=>{oe.current(),F.current=void 0}),X=rh(()=>{if(Q.current){const I=Gp(s.floating).body;I.style.pointerEvents="",I.removeAttribute(IT),Q.current=!1}}),se=rh(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);C.useEffect(()=>{if(!u)return;function I(G){if(ya(N),K.current=!1,m&&!Sh(O.current)||pb(j.current)>0&&!mb(E.current,"open"))return;const Y=mb(E.current,"open",O.current);Y?N.current=window.setTimeout(()=>{T.current||r(!0,G,"hover")},Y):n||r(!0,G,"hover")}function k(G){if(se()){X();return}oe.current();const Y=Gp(s.floating);if(ya($),ee.current=!1,x.current&&i.current.floatingContext){n||ya(N),F.current=x.current({...i.current.floatingContext,tree:_,x:G.clientX,y:G.clientY,onClose(){X(),he(),se()||te(G,!0,"safe-polygon")}});const ue=F.current;Y.addEventListener("mousemove",ue),oe.current=()=>{Y.removeEventListener("mousemove",ue)};return}(O.current==="touch"?!DY(s.floating,G.relatedTarget):!0)&&te(G)}function U(G){se()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:_,x:G.clientX,y:G.clientY,onClose(){X(),he(),se()||te(G)}})(G))}function z(){ya(N)}function P(G){se()||te(G,!1)}if(wr(s.domReference)){const G=s.domReference,Y=s.floating;return n&&G.addEventListener("mouseleave",U),b&&G.addEventListener("mousemove",I,{once:!0}),G.addEventListener("mouseenter",I),G.addEventListener("mouseleave",k),Y&&(Y.addEventListener("mouseleave",U),Y.addEventListener("mouseenter",z),Y.addEventListener("mouseleave",P)),()=>{n&&G.removeEventListener("mouseleave",U),b&&G.removeEventListener("mousemove",I),G.removeEventListener("mouseenter",I),G.removeEventListener("mouseleave",k),Y&&(Y.removeEventListener("mouseleave",U),Y.removeEventListener("mouseenter",z),Y.removeEventListener("mouseleave",P))}}},[s,u,e,m,b,te,he,X,r,n,T,_,E,x,i,se,j]),dl(()=>{var I;if(u&&n&&(I=x.current)!=null&&(I=I.__options)!=null&&I.blockPointerEvents&&J()){Q.current=!0;const U=s.floating;if(wr(s.domReference)&&U){var k;const z=Gp(s.floating).body;z.setAttribute(IT,"");const P=s.domReference,G=_==null||(k=_.nodesRef.current.find(Y=>Y.id===w))==null||(k=k.context)==null?void 0:k.elements.floating;return G&&(G.style.pointerEvents=""),z.style.pointerEvents="none",P.style.pointerEvents="auto",U.style.pointerEvents="auto",()=>{z.style.pointerEvents="",P.style.pointerEvents="",U.style.pointerEvents=""}}}},[u,n,w,s,_,x,J]),dl(()=>{n||(O.current=void 0,ee.current=!1,he(),X())},[n,he,X]),C.useEffect(()=>()=>{he(),ya(N),ya($),X()},[u,s.domReference,he,X]);const Z=C.useMemo(()=>{function I(k){O.current=k.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(k){const{nativeEvent:U}=k;function z(){!K.current&&!T.current&&r(!0,U,"hover")}m&&!Sh(O.current)||n||pb(j.current)===0||ee.current&&k.movementX**2+k.movementY**2<2||(ya($),O.current==="touch"?z():(ee.current=!0,$.current=window.setTimeout(z,pb(j.current))))}}},[m,r,n,T,j]);return C.useMemo(()=>u?{reference:Z}:{},[u,Z])}function UT(e){return Mi(e.target)&&e.target.tagName==="BUTTON"}function NW(e){return Mi(e.target)&&e.target.tagName==="A"}function zT(e){return kY(e)}function DW(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:u="click",toggle:d=!0,ignoreMouse:f=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,b=C.useRef(),_=C.useRef(!1),w=C.useMemo(()=>({onPointerDown(x){b.current=x.pointerType},onMouseDown(x){const E=b.current;x.button===0&&u!=="click"&&(Sh(E,!0)&&f||(n&&d&&(!(i.current.openEvent&&p)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const E=b.current;if(u==="mousedown"&&b.current){b.current=void 0;return}Sh(E,!0)&&f||(n&&d&&(!(i.current.openEvent&&p)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){b.current=void 0,!(x.defaultPrevented||!m||UT(x))&&(x.key===" "&&!zT(o)&&(x.preventDefault(),_.current=!0),!NW(x)&&x.key==="Enter"&&r(!(n&&d),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!m||UT(x)||zT(o)||x.key===" "&&_.current&&(_.current=!1,r(!(n&&d),x.nativeEvent,"click"))}}),[i,o,u,f,m,r,n,p,d]);return C.useMemo(()=>s?{reference:w}:{},[s,w])}function kW(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=OW(),o=C.useRef({}),[s]=C.useState(()=>jW()),u=bL()!=null,[d,f]=C.useState(r.reference),m=rh((_,w,x)=>{o.current.openEvent=_?w:void 0,s.emit("openchange",{open:_,event:w,reason:x,nested:u}),n?.(_,w,x)}),p=C.useMemo(()=>({setPositionReference:f}),[]),b=C.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return C.useMemo(()=>({dataRef:o,open:t,onOpenChange:m,elements:b,events:s,floatingId:i,refs:p}),[t,m,b,s,i,p])}function xL(e){e===void 0&&(e={});const{nodeId:t}=e,n=kW({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=C.useState(null),[u,d]=C.useState(null),m=i?.domReference||o,p=C.useRef(null),b=_L();dl(()=>{m&&(p.current=m)},[m]);const _=vW({...e,elements:{...i,...u&&{reference:u}}}),w=C.useCallback(O=>{const N=wr(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;d(N),_.refs.setReference(N)},[_.refs]),x=C.useCallback(O=>{(wr(O)||O===null)&&(p.current=O,s(O)),(wr(_.refs.reference.current)||_.refs.reference.current===null||O!==null&&!wr(O))&&_.refs.setReference(O)},[_.refs]),E=C.useMemo(()=>({..._.refs,setReference:x,setPositionReference:w,domReference:p}),[_.refs,x,w]),T=C.useMemo(()=>({..._.elements,domReference:m}),[_.elements,m]),j=C.useMemo(()=>({..._,...r,refs:E,elements:T,nodeId:t}),[_,E,T,t,r]);return dl(()=>{r.dataRef.current.floatingContext=j;const O=b?.nodesRef.current.find(N=>N.id===t);O&&(O.context=j)}),C.useMemo(()=>({..._,context:j,refs:E,elements:T}),[_,E,T,j])}function gb(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[LT]:s,[NT]:u,...d}=e;o=d}return{...n==="floating"&&{tabIndex:-1,[SW]:""},...o,...t.map(s=>{const u=s?s[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((s,u)=>(u&&Object.entries(u).forEach(d=>{let[f,m]=d;if(!(i&&[LT,NT].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof m=="function"){var p;(p=r.get(f))==null||p.push(m),s[f]=function(){for(var b,_=arguments.length,w=new Array(_),x=0;x<_;x++)w[x]=arguments[x];return(b=r.get(f))==null?void 0:b.map(E=>E(...w)).find(E=>E!==void 0)}}}else s[f]=m}),s),{})}}function wL(e){e===void 0&&(e=[]);const t=e.map(u=>u?.reference),n=e.map(u=>u?.floating),r=e.map(u=>u?.item),i=C.useCallback(u=>gb(u,e,"reference"),t),o=C.useCallback(u=>gb(u,e,"floating"),n),s=C.useCallback(u=>gb(u,e,"item"),r);return C.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const BT=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Ic(e,t){return typeof e=="function"?e(t):e}function IW(e,t){const[n,r]=C.useState(e);return e&&!n&&r(!0),C.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function UW(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=(typeof i=="number"?i:i.close)||0,[u,d]=C.useState("unmounted"),f=IW(n,s);return!f&&u==="close"&&d("unmounted"),dl(()=>{if(r){if(n){d("initial");const m=requestAnimationFrame(()=>{$h.flushSync(()=>{d("open")})});return()=>{cancelAnimationFrame(m)}}d("close")}},[n,r]),{isMounted:f,status:u}}function zW(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:s=250}=t,u=e.placement,d=u.split("-")[0],f=C.useMemo(()=>({side:d,placement:u}),[d,u]),m=typeof s=="number",p=(m?s:s.open)||0,b=(m?s:s.close)||0,[_,w]=C.useState(()=>({...Ic(o,f),...Ic(n,f)})),{isMounted:x,status:E}=UW(e,{duration:s}),T=nl(n),j=nl(r),O=nl(i),N=nl(o);return dl(()=>{const F=Ic(T.current,f),$=Ic(O.current,f),K=Ic(N.current,f),Q=Ic(j.current,f)||Object.keys(F).reduce((oe,ee)=>(oe[ee]="",oe),{});if(E==="initial"&&w(oe=>({transitionProperty:oe.transitionProperty,...K,...F})),E==="open"&&w({transitionProperty:Object.keys(Q).map(BT).join(","),transitionDuration:p+"ms",...K,...Q}),E==="close"){const oe=$||F;w({transitionProperty:Object.keys(oe).map(BT).join(","),transitionDuration:b+"ms",...K,...oe})}},[b,O,T,j,N,p,E,f]),{isMounted:x,styles:_}}/*!
* Font Awesome Free 7.1.0 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 2025 Fonticons, Inc.
*/var SL={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M288 464L64 464c-8.8 0-16-7.2-16-16l0-224c0-8.8 7.2-16 16-16l48 0 0-48-48 0c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-48-48 0 0 48c0 8.8-7.2 16-16 16zM224 304c-8.8 0-16-7.2-16-16l0-224c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 224c0 8.8-7.2 16-16 16l-224 0zm-64-16c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L224 0c-35.3 0-64 28.7-64 64l0 224z"]},BW={prefix:"far",iconName:"image",icon:[448,512,[],"f03e","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm128 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm136 72c8.5 0 16.4 4.5 20.7 11.8l80 136c4.4 7.4 4.4 16.6 .1 24.1S352.6 384 344 384l-240 0c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l17.2 24.6 46.5-79c4.3-7.3 12.2-11.8 20.7-11.8z"]},FW={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 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},$W={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zm387.3 11.3c6.2-6.2 6.2-16.4 0-22.6l-104-104c-4.6-4.6-11.5-5.9-17.4-3.5S256 145.5 256 152l0 72-104 0c-13.3 0-24 10.7-24 24l0 16c0 13.3 10.7 24 24 24l104 0 0 72c0 6.5 3.9 12.3 9.9 14.8s12.9 1.1 17.4-3.5l104-104z"]},VW=$W;const HW=({children:e,summary:t,summaryClasses:n,...r})=>{const i=C.useRef(null),[o,s]=C.useState(!1);return C.useEffect(()=>{const u=i.current,d=()=>s(!!u?.open);return u?.addEventListener("toggle",d),()=>u?.removeEventListener("toggle",d)},[]),y.jsxs("details",{ref:i,...r,children:[y.jsx("summary",{className:Pe("focus-ring px-1 -mx-1 rounded-sm",n),children:t}),o&&y.jsx("div",{className:"mt-3 flex flex-col gap-y-3",children:e})]})},qW=C.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("px-4 py-3 rounded-t-md","bg-lm-primary dark:bg-dm-primary border-b border-lm-border dark:border-dm-border",e),...t,ref:n})),GW=C.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("p-4 bg-lm-primary dark:bg-dm-primary first:rounded-t-md","first:rounded-t-md last:rounded-b-md",e),...t,ref:n})),YW=C.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("px-4 py-3 rounded-b-md","bg-lm-primary dark:bg-dm-primary border-t border-lm-border dark:border-dm-border",e),...t,ref:n})),WW=C.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("group/card rounded-md shadow-md","border border-lm-border dark:border-dm-border bg-lm-primary dark:bg-dm-primary",e),...t,ref:n})),un=Object.assign(WW,{Body:GW,Header:qW,Footer:YW}),Pt=C.forwardRef(({bodyClassName:e,children:t,...n},r)=>{const{title:i,titleSize:o="md",...s}="title"in n?n:{...n,title:void 0,titleSize:void 0};return y.jsxs(un,{...s,ref:r,children:[i&&y.jsxs(un.Header,{children:[o==="lg"&&y.jsx("h4",{children:i}),o==="md"&&y.jsx("h5",{children:i}),o==="sm"&&y.jsx("h6",{children:i})]}),y.jsx(un.Body,{className:e,children:t})]})});function KW({id:e,items:t,onSelectItem:n,onActiveItemChange:r,renderItem:i,className:o,noItemsMessage:s="No items",anchor:u,"aria-label":d="Items",...f}){const[m,p]=C.useState(0),b=C.useCallback(_=>{if(p(_),r){const[w,x]=[...t.entries()][_];r(w,x)}},[t,r]);return C.useEffect(()=>{const _=u?.current;if(!_)return;const w=x=>{["Enter","ArrowUp","ArrowDown"].includes(x.key)&&x.preventDefault(),x.key==="ArrowDown"?b(Math.min(m+1,t.size-1)):x.key==="ArrowUp"?b(Math.max(m-1,0)):x.key==="Enter"&&n([...t.values()][m])};return _.addEventListener("keydown",w),()=>_.removeEventListener("keydown",w)},[m,u,b,t,n]),y.jsxs(un,{id:e,className:Pe("py-1 flex flex-col",o),role:"listbox","aria-orientation":"vertical","aria-label":d,...f,children:[t.size===0&&y.jsx("i",{role:"option","aria-disabled":!0,"aria-selected":!1,"data-testid":"no-items",className:"px-2 py-1",children:s}),[...t.entries()].map(([_,w],x)=>y.jsx("button",{id:`${e}_${_}`,type:"button",role:"option","aria-selected":x===m,className:Pe("px-2 py-1 text-left truncate",{"bg-lm-secondary dark:bg-dm-secondary":x===m}),tabIndex:-1,onClick:()=>n(w),onMouseOver:()=>b(x),children:i(w)},_))]})}const Kh=C.createContext(void 0),xf=C.createContext({responsive:!0,size:"md"}),ZW=({children:e,className:t})=>{const{responsive:n}=C.useContext(xf);return y.jsx(Kh.Provider,{value:{section:"head"},children:y.jsx("thead",{className:Pe({"hidden lg:table-header-group":n},t),children:e})})},XW=({children:e,className:t})=>{const{responsive:n}=C.useContext(xf);return y.jsx(Kh.Provider,{value:{section:"body"},children:y.jsx("tbody",{className:Pe({"lg:table-row-group flex flex-col gap-y-3":n},t),children:e})})},QW=({children:e,className:t})=>{const{responsive:n}=C.useContext(xf);return y.jsx(Kh.Provider,{value:{section:"footer"},children:y.jsx("tfoot",{className:Pe({"lg:table-row-group flex flex-col gap-y-3 mt-4":n},t),children:e})})},JW=({children:e,className:t,...n})=>{const r=C.useContext(Kh)?.section==="body",{responsive:i}=C.useContext(xf);return y.jsx("tr",{className:Pe("group",{"lg:table-row flex flex-col":i,"lg:border-0 border-y-2 border-lm-border dark:border-dm-border":i,"hover:bg-lm-primary dark:hover:bg-dm-primary":r,"group-[&]/card:hover:bg-lm-secondary dark:group-[&]/card:hover:bg-dm-secondary":r},t),...n,children:e})},eK=({children:e,className:t,columnName:n,type:r,...i})=>{const o=C.useContext(Kh),s=r??(o?.section!=="body"?"th":"td"),{responsive:u,size:d}=C.useContext(xf);return y.jsx(s,{"data-column":u?n:void 0,className:Pe("border-lm-border dark:border-dm-border",{"p-1":d==="sm","p-2":d==="md","p-3":d==="lg","border-b-1":!u,"block lg:table-cell not-last:border-b-1 lg:border-b-1":u,"text-left":s==="th","before:lg:hidden before:content-[attr(data-column)] before:font-bold before:mr-1":u&&s==="td"},t),...i,children:e})},tK=({header:e,footer:t,children:n,responsive:r=!0,size:i="md",...o})=>y.jsx(xf.Provider,{value:{responsive:r,size:i},children:y.jsxs("table",{className:"w-full",...o,children:[y.jsx(ZW,{children:e}),y.jsx(XW,{children:n}),t&&y.jsx(QW,{children:t})]})}),Ke=Object.assign(tK,{Row:JW,Cell:eK}),Rt=C.forwardRef(({className:e,disabled:t,variant:n="primary",size:r="md",inline:i=!1,solid:o=!1,type:s="button",...u},d)=>{const f="to"in u&&typeof u.to=="string",m=f?Nr:"button",p=f?void 0:s;return y.jsx(m,{ref:d,className:Pe({"inline-flex":i,flex:!i},"gap-2 items-center justify-center","border rounded-md no-underline","transition-colors",{"focus-ring":n==="primary","focus-ring-secondary":n==="secondary","focus-ring-danger":n==="danger"},{"px-1.5 py-1 text-sm":r==="sm","px-3 py-1.5":r==="md","px-4 py-2 text-lg":r==="lg"},{"border-lm-brand dark:border-dm-brand":n==="primary","text-lm-brand dark:text-dm-brand":n==="primary"&&!o,"border-zinc-500":n==="secondary","text-zinc-500":n==="secondary"&&!o,"border-danger":n==="danger","text-danger":n==="danger"&&!o},o&&{"text-white":!0,"bg-lm-brand dark:bg-dm-brand":n==="primary","highlight:bg-lm-brand-dark dark:highlight:bg-dm-brand-dark":n==="primary","highlight:border-lm-brand-dark dark:highlight:border-dm-brand-dark":n==="primary","bg-zinc-500":n==="secondary","highlight:bg-zinc-600 highlight:border-zinc-600":n==="secondary","bg-danger":n==="danger","highlight:bg-danger-dark highlight:border-danger-dark":n==="danger"},!t&&{"highlight:text-white":!o,"highlight:bg-lm-brand dark:highlight:bg-dm-brand":n==="primary","highlight:bg-zinc-500":n==="secondary","highlight:bg-danger":n==="danger"},{"cursor-pointer":!t,"pointer-events-none opacity-65":t},e),disabled:f?void 0:t,"aria-disabled":f?t:void 0,type:p,...u})}),CL=C.forwardRef(({className:e,onChange:t,...n},r)=>{const i=C.useCallback(o=>t?.(o.target.checked,o),[t]);return y.jsx("input",{ref:r,type:"checkbox",className:Pe("appearance-none focus-ring cursor-[inherit]","border-1 border-lm-input-border dark:border-dm-input-border","bg-lm-primary dark:bg-dm-primary checked:bg-lm-brand dark:checked:bg-dm-brand bg-no-repeat","group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input",e),onChange:i,...n})}),Aw=C.forwardRef(({className:e,...t},n)=>y.jsx(CL,{ref:n,className:Pe("rounded-sm w-4 h-4 checked:bg-(image:--tick) bg-center",e),...t})),Ru=C.forwardRef(({onClick:e,className:t,label:n="Close",size:r="lg",solid:i},o)=>y.jsx("button",{ref:o,type:"button",onClick:e,className:Pe("rounded-md focus-ring cursor-pointer",{"opacity-50 highlight:opacity-80 transition-opacity":!i},t),"aria-label":n,children:y.jsx(Ye,{icon:sw,size:r==="lg"?"xl":r==="md"?"lg":void 0})})),oi=C.forwardRef(({borderless:e=!1,size:t="md",feedback:n,variant:r="default",className:i,disabled:o,...s},u)=>y.jsx("input",{ref:u,className:Pe("outline-none",r==="default"&&["w-full",{"focus-ring":!n,"focus-ring-danger":n==="error","px-2 py-1 text-sm":t==="sm","px-3 py-1.5":t==="md","px-4 py-2 text-xl":t==="lg","rounded-md border":!e,"border-lm-input-border dark:border-dm-input-border":!e&&!n,"border-danger":!e&&n==="error","bg-lm-disabled-input dark:bg-dm-disabled-input":o,"bg-lm-primary dark:bg-dm-primary":!o,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!o}],i),disabled:o,...s})),ja=({required:e,children:t,className:n,...r})=>y.jsxs("label",{className:Pe("cursor-pointer",n),...r,children:[t,e&&y.jsx("span",{className:"text-danger ml-1","data-testid":"required-indicator",children:"*"})]}),Tw=({children:e,helpText:t,error:n,"data-testid":r})=>y.jsxs("div",{className:"flex flex-col gap-1","data-testid":r,children:[e,t&&y.jsx("small",{"data-testid":r?`${r}-help-text`:"help-text",className:"text-gray-500 dark:text-gray-400",children:t}),n&&y.jsx("span",{"data-testid":r?`${r}-error`:"error",className:"text-danger",children:n})]}),ui=C.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:o,"data-testid":s,...u},d)=>{const f=C.useId();return y.jsxs(Tw,{error:i,helpText:o,"data-testid":s,children:[y.jsx(ja,{htmlFor:f,required:n,children:e}),y.jsx(oi,{ref:d,id:f,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),nK=C.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const{flag:o,toggle:s,setToFalse:u}=Sn(),d=C.useRef(null),f=C.useCallback(({relatedTarget:m})=>{d.current?.contains(m)||u()},[d,u]);return y.jsxs("div",{className:Pe("group relative",e),ref:d,onBlurCapture:f,children:[y.jsx(oi,{ref:i,type:o?"text":"password",className:Pe({"pr-10":n!=="sm","pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),y.jsx("button",{type:"button",onClick:s,title:o?"Hide password":"Show password","aria-label":o?"Hide password":"Show password",className:Pe("absolute top-[50%] translate-y-[-50%] px-1 cursor-pointer","text-placeholder hover:text-lm-text hover:dark:text-dm-text transition-colors",{"right-1.5":n!=="sm","scale-85 right-1":n==="sm"}),tabIndex:-1,children:y.jsx(Ye,{icon:o?CV:q$})})]})}),rK=C.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:o,"data-testid":s,...u},d)=>{const f=C.useId();return y.jsxs(Tw,{error:i,helpText:o,"data-testid":s,children:[y.jsx(ja,{htmlFor:f,required:n,children:e}),y.jsx(nK,{ref:d,id:f,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),iK=C.forwardRef(({className:e,size:t="md",feedback:n,disabled:r,...i},o)=>y.jsx("select",{ref:o,className:Pe("w-full rounded-md border appearance-none pr-9","bg-(image:--chevron-down) bg-no-repeat bg-position-[right_0.75rem_center] bg-size-[16px_12px]",{"focus-ring":!n,"focus-ring-danger":n==="error","border-lm-input-border dark:border-dm-input-border":!n,"border-danger":n==="error","pl-2 py-1 text-sm":t==="sm","pl-3 py-1.5":t==="md","pl-4 py-2 text-xl":t==="lg","bg-lm-disabled-input dark:bg-dm-disabled-input":r,"bg-lm-primary dark:bg-dm-primary group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!r},e),disabled:r,...i})),Ow=C.forwardRef(({selectClassName:e,label:t,error:n,helpText:r,required:i,hiddenRequired:o,"data-testid":s,...u},d)=>{const f=C.useId();return y.jsxs(Tw,{error:n,helpText:r,"data-testid":s,children:[y.jsx(ja,{htmlFor:f,required:i,children:t}),y.jsx(iK,{ref:d,id:f,className:e,required:i||o,feedback:n?"error":void 0,...u})]})}),wf=C.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,variant:o="default",immediate:s=!1,...u},d)=>{const{setTimeout:f,clearCurrentTimeout:m}=TL(500),p=C.useCallback(b=>{!b||s?(m(),e(b)):f(()=>e(b))},[m,s,e,f]);return y.jsxs("div",{className:Pe("group relative focus-within:z-10",t),children:[o==="default"&&y.jsx(Ye,{icon:i?aw:$$,spin:i,className:Pe("absolute top-[50%] translate-y-[-50%] transition-colors","text-placeholder group-focus-within:text-lm-text dark:group-focus-within:text-dm-text",{"left-3":r!=="sm","scale-85 left-2":r==="sm"})}),y.jsx(oi,{ref:d,variant:o,type:"search",className:Pe(o==="default"&&{"pl-9":r!=="sm","pl-7":r==="sm"},n),placeholder:"Search...",onChange:b=>p(b.target.value),size:r,...u})]})});function aK({searchResults:e,onSearch:t,onSelectSearchResult:n,renderSearchResult:r,size:i="md",listboxSpan:o="full",onFocus:s,containerClassName:u,listboxClassName:d,...f},m){const p=C.useId(),[b,_]=C.useState(),w=C.useRef(null);C.useImperativeHandle(m,()=>w.current);const x=C.useMemo(()=>e?b??[...e.keys()][0]:void 0,[b,e]),E=C.useCallback(T=>{n(T),t(""),w.current.value=""},[t,n,w]);return y.jsxs("div",{className:Pe("relative",u),onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||t("")},children:[y.jsx(wf,{onChange:t,size:i,ref:w,role:"combobox","aria-autocomplete":"list","aria-expanded":!!e,"aria-controls":p,"aria-activedescendant":x?`${p}_${x}`:void 0,autoComplete:"off",autoCorrect:"off",onFocus:T=>{s?.(T),t(T.target.value)},...f}),e&&y.jsx(KW,{id:p,items:e,anchor:w,onSelectItem:E,onActiveItemChange:_,renderItem:r,className:Pe("absolute top-full mt-1 z-10",{"min-w-60":o==="auto","w-full":o==="full"},d),"aria-label":"Matching items",noItemsMessage:"No results found matching search"})]})}const oK=C.forwardRef(aK),sK=({name:e,color:t})=>y.jsxs("div",{className:"inline-flex items-center gap-2",children:[y.jsx("div",{"aria-hidden":!0,className:"w-4 h-4 rounded-full",style:{backgroundColor:t}}),e]}),lK=({tag:e,color:t,size:n,onRemove:r})=>y.jsxs("li",{className:Pe("inline-flex items-center gap-1 font-bold [&]:rounded-md",{"px-1 text-sm":n==="sm","py-0.25 px-1.5":n==="md","py-0.5 px-1.5":n==="lg"}),style:{backgroundColor:t,color:jw(t)?"#000":"#fff"},onClick:i=>i.stopPropagation(),children:[e,y.jsx(Ru,{label:`Remove ${e}`,solid:!0,size:"sm",onClick:()=>r(e)})]}),uK=/\s+/g,FT="#99a1af",$T=e=>e.trim().toLowerCase().replace(uK,"-"),cK=({tags:e,selectedTags:t=[],onTagsChange:n,getColorForTag:r,searchMode:i="startsWith",immutable:o=!1,size:s="md",disabled:u,containerClassName:d,...f})=>{const[m,p]=C.useState(),b=C.useCallback(E=>{const T=E.toLowerCase().trim();if(!T){p(void 0);return}const j=e.filter(O=>{if(t.includes(O))return!1;const N=O.toLowerCase();return i==="startsWith"?N.startsWith(T):N.includes(T)}).slice(0,5);o||j.push(`Add "${T.split(",").map($T).join(",")}" tag`),p(new Map(j.map(O=>[O,O])))},[o,i,t,e]),_=C.useCallback(E=>{const T=(E.match(/Add\s+"([^"]+)"\s+tag/)?.[1]??E).split(",").map($T);n?.([...new Set([...t,...T])])},[n,t]),w=C.useCallback(E=>n?.(t.filter(T=>T!==E)),[n,t]),x=C.useRef(null);return y.jsxs("div",{className:Pe("rounded-md flex flex-wrap gap-1","border border-lm-input-border dark:border-dm-input-border","cursor-text focus-within:focus-within-ring",{"p-0.5":s==="sm","p-1.25":s==="md","p-2":s==="lg","bg-lm-disabled-input dark:bg-dm-disabled-input":u,"bg-lm-primary dark:bg-dm-primary":!u,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!u},d),onClick:E=>{E.target!==x.current&&x.current?.focus()},children:[y.jsx("ul",{className:"m-0 p-0 flex flex-wrap gap-1",children:t.map((E,T)=>{const j=r?.(E)??FT;return y.jsx(lK,{tag:E,color:j,onRemove:w,size:s},`${E}${T}`)})}),y.jsx(oK,{variant:"unstyled",listboxSpan:"auto",containerClassName:"flex items-center",listboxClassName:"whitespace-nowrap",inputClassName:Pe("no-clear-button",{"px-1 text-sm":s==="sm","px-2 h-[26px]":s==="md","px-3 text-xl":s==="lg"}),searchResults:m,onSearch:b,onSelectSearchResult:_,renderSearchResult:E=>E.match(/Add\s+"([^"]+)"\s+tag/)?E:y.jsx(sK,{name:E,color:r?.(E)??FT}),onKeyDown:E=>{E.key==="Backspace"&&!m&&w(t[t.length-1])},size:s,disabled:u,ref:x,immediate:!0,...f})]})},fK=C.forwardRef(({className:e,...t},n)=>y.jsx(CL,{ref:n,className:Pe("rounded-full w-8 h-4","bg-(image:--circle-grey-dark) dark:bg-(image:--circle-grey-light) checked:bg-(image:--circle-white)","focus-visible:not-checked:bg-(image:--circle-blue-light)","checked:bg-right transition-[background-position]",e),...t}));function dK(e,{elementsSelector:t,focusFirstItem:n=!1,vertical:r=!0,horizontal:i=!0}){const o=C.useMemo(()=>{const d=[];return r&&d.push("ArrowDown"),i&&d.push("ArrowRight"),d},[i,r]),s=C.useMemo(()=>{const d=[];return r&&d.push("ArrowUp"),i&&d.push("ArrowLeft"),d},[i,r]),u=C.useMemo(()=>[...o,...s],[o,s]);C.useEffect(()=>{const d=e.current;if(!d)return()=>{};const f=new AbortController,m=()=>[...d.querySelectorAll(t)],p=m(),b=Math.max(p.findIndex(_=>_.dataset.selected==="true"),0);return p.forEach((_,w)=>{_.tabIndex=w===b?0:-1,n&&w===b&&_.focus()}),d.addEventListener("keydown",_=>{if(!u.includes(_.key))return;_.preventDefault();const w=m(),x=w.findIndex(T=>T.tabIndex===0),E=o.includes(_.key)?w[x+1]??w[0]:w[x-1]??w[w.length-1];w.forEach(T=>{T.tabIndex=-1}),E.tabIndex=0,E.focus()},{signal:f.signal}),()=>f.abort()},[u,e,t,n,o])}const hK=()=>{const e=lo();return C.useCallback(()=>e(-1),[e])},mK=128;function jw(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return Math.round(Math.sqrt(.299*t**2+.587*n**2+.114*r**2))>=mK}const EL=({text:e,className:t,size:n="lg",initialCopied:r=!1,navigator_:i=globalThis.navigator,...o})=>{const[s,u]=sy({initialValue:r}),d=C.useCallback(()=>i.clipboard.writeText(e).then(u),[i.clipboard,e,u]);return y.jsx("button",{type:"button",className:Pe("focus-ring rounded-sm cursor-pointer",{"text-md":n==="sm","text-lg":n==="md","text-xl":n==="lg"},t),"aria-label":`Copy ${e} to clipboard`,title:"Copy to clipboard",onClick:d,...o,children:y.jsx(Ye,{icon:s?ju:SL})})},AL=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);n[o]??=[],n[o].push(r)}else n[i]=r}),n},Mw=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},Sf=()=>{const{search:e}=Er();return C.useMemo(()=>AL(e),[e])};function TL(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=C.useRef(null),i=C.useCallback(()=>{r.current&&n(r.current)},[n]),o=C.useCallback((s,u)=>{i(),r.current=t(()=>{s(),r.current=null},u??e)},[i,e,t]);return C.useEffect(()=>i,[i]),C.useMemo(()=>({setTimeout:o,clearCurrentTimeout:i}),[i,o])}const pK=2e3,sy=({initialValue:e=!1,delay:t=pK}={},n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{setTimeout:i}=TL(t,n,r),[o,s]=C.useState(e),u=C.useRef(e),d=C.useCallback(()=>{s(!u.current),i(()=>s(u.current))},[i]);return[o,d]};function Sn(e=!1){const[t,n]=C.useState(e),r=C.useCallback(()=>n(s=>!s),[]),i=C.useCallback(()=>n(!0),[]),o=C.useCallback(()=>n(!1),[]);return{flag:t,toggle:r,setToTrue:i,setToFalse:o}}const OL=C.createContext({}),gK=({className:e,selected:t,disabled:n,onClick:r,...i})=>{const o="to"in i&&typeof i.to=="string",s=o?Nr:"button",{onItemClick:u}=C.useContext(OL);return y.jsx(s,{role:"menuitem","data-selected":t,className:Pe("flex items-center gap-2","w-full px-3 py-1.5 focus-ring","no-underline text-inherit",{"cursor-pointer":!n,"pointer-events-none opacity-50":n,"bg-lm-secondary dark:bg-dm-secondary":t&&!n,"highlight:bg-lm-secondary dark:highlight:bg-dm-secondary highlight:z-1 relative":!t&&!n},e),tabIndex:-1,disabled:o?void 0:n,"aria-disabled":o?n:void 0,type:o?void 0:"button",onClick:d=>{r?.(d),u?.()},...i})},vK=()=>y.jsx("div",{role:"separator","aria-hidden":!0,className:"border-b border-lm-border dark:border-dm-border my-2"}),yK=({children:e})=>y.jsx("div",{role:"heading","aria-level":6,"aria-hidden":!0,className:Pe("flex items-center w-full px-3 py-1.5","text-gray-500 text-sm font-semibold"),onClick:t=>t.stopPropagation(),children:e}),bK=({className:e,...t})=>y.jsx("div",{className:Pe("px-3 py-1.5",e),...t}),_K=({children:e,className:t,focusableElementsSelector:n='[role="menuitem"]:not([disabled]):not([aria-disabled])',focusFirstItem:r=!1,onItemClick:i,...o})=>{const s=C.useRef(null);return dK(s,{elementsSelector:n,focusFirstItem:r}),y.jsx(un,{ref:s,role:"menu",className:Pe("py-2 whitespace-nowrap",t),...o,children:y.jsx(OL.Provider,{value:{onItemClick:i},children:e})})},ih=Object.assign(_K,{Item:gK,Separator:vK,Title:yK,Misc:bK}),xK=({children:e,menuAlignment:t="left",buttonVariant:n="button",buttonContent:r,buttonClassName:i,buttonSize:o="md",buttonDisabled:s=!1,containerClassName:u,menuClassName:d,caretless:f,buttonLabel:m,menuOffset:p=3})=>{const[b,_]=C.useState(!1),w=C.useCallback(()=>_(!1),[]),x=C.useRef(null),{refs:E,floatingStyles:T,context:j}=xL({open:b,onOpenChange:_,placement:t==="right"?"bottom-end":"bottom-start",middleware:[_W(),bW(p)],elements:{reference:x.current}}),O=DW(j),{getReferenceProps:N,getFloatingProps:F}=wL([O]),$=C.useId(),K=C.useRef(null);return C.useEffect(()=>{const Q=K.current;if(!Q||!b)return()=>{};const oe=new AbortController;return document.body.addEventListener("click",ee=>{ee.composedPath().includes(Q)||w()},{signal:oe.signal}),()=>oe.abort()},[w,b]),y.jsxs("div",{ref:K,className:Pe("relative inline-block",u),onKeyDown:Q=>{Q.key==="Escape"&&w()},onBlur:Q=>{Q.relatedTarget&&!K.current.contains(Q.relatedTarget)&&w()},children:[y.jsxs("button",{ref:x,...N(),type:"button","aria-haspopup":!0,"aria-expanded":b,"aria-controls":$,"aria-label":m,disabled:s,className:Pe("flex items-center rounded-md focus-ring",{"justify-between":!f,"cursor-pointer":!s,"pointer-events-none opacity-50":s,"border border-lm-border dark:border-dm-border":n==="button","bg-lm-primary dark:bg-dm-primary":n==="button","group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":n==="button","text-lm-brand dark:text-dm-brand":n==="link","highlight:text-lm-brand-dark dark:highlight:text-dm-brand-dark highlight:underline":n==="link","px-1.5 py-1 text-sm":n!=="text"&&o==="sm","px-3 py-1.5":n!=="text"&&o==="md","px-4 py-2 text-lg":n!=="text"&&o==="lg","gap-x-1.5":o==="sm","gap-x-2":o!=="sm"},i),onKeyDown:Q=>{Q.key==="ArrowDown"&&(Q.preventDefault(),_(!0))},children:[r,!f&&y.jsx(Ye,{icon:JR,size:"xs",widthAuto:!0})]}),b&&y.jsx("div",{ref:E.setFloating,style:T,className:"min-w-full z-500",...F(),children:y.jsx(ih,{className:d,id:$,focusableElementsSelector:'[role="menuitem"]:not([disabled]):not([aria-disabled]),input:not([disabled]),select:not([disabled])',focusFirstItem:!0,onItemClick:w,children:e})})]})},Qe=Object.assign(xK,{Item:ih.Item,Separator:ih.Separator,Title:ih.Title,Misc:ih.Misc}),ly=C.forwardRef(({className:e,disabled:t,size:n="md",type:r="button",...i},o)=>y.jsx("button",{className:Pe("inline-flex rounded-md focus-ring","text-lm-brand dark:text-dm-brand","highlight:text-lm-brand-dark dark:highlight:text-dm-brand-dark highlight:underline",{"px-1.5 py-1 text-sm":n==="sm","px-3 py-1.5":n==="md","px-4 py-2 text-lg":n==="lg","cursor-pointer":!t,"pointer-events-none opacity-65":t},e),disabled:t,type:r,...i,ref:o})),wK=({className:e,active:t,...n})=>y.jsx("li",{role:"menuitem",className:"w-full flex","data-active":t,children:y.jsx(Nr,{className:Pe("px-2 py-3","max-md:w-full max-md:px-3 max-md:py-2","text-white no-underline highlight:opacity-100 transition-opacity",{"opacity-60":!t,"opacity-100":t},e),...n})}),SK=({containerClassName:e,buttonClassName:t,menuClassName:n,active:r,...i})=>y.jsx("li",{role:"menuitem","aria-haspopup":!0,className:"w-full flex","data-active":r,children:y.jsx(Qe,{containerClassName:Pe("max-md:w-full",e),buttonVariant:"text",buttonClassName:Pe("px-2 py-3","max-md:w-full max-md:px-3 max-md:py-2","text-white highlight:opacity-100 transition-opacity",{"opacity-60":!r,"opacity-100":r},t),menuAlignment:"right",menuOffset:-3,menuClassName:Pe("mx-2",n),...i})}),CK=({className:e,brand:t,children:n})=>{const{flag:r,toggle:i,setToFalse:o}=Sn(),s=C.useId(),u=C.useId(),{pathname:d}=Er();return C.useEffect(()=>o(),[d,o]),y.jsxs("nav",{className:Pe("w-full relative","bg-lm-main dark:bg-dm-main","flex max-md:flex-col items-center justify-between",e),children:[y.jsxs("div",{className:"w-full relative",children:[y.jsx("h4",{className:Pe("text-white px-4 py-3","max-md:w-full max-md:flex max-md:flex-col items-center"),children:t}),y.jsx(Rt,{id:u,variant:"secondary",className:Pe("absolute right-0 top-[50%] translate-y-[-50%]","md:hidden mx-2 [&]:px-2","opacity-60 highlight:opacity-100 transition-opacity","[&]:text-white [&]:border-white [&]:highlight:bg-transparent"),onClick:i,"aria-label":`${r?"Hide":"Show"} menu`,"aria-controls":s,children:y.jsx(Ye,{icon:r?Y$:fV})})]}),y.jsx("ul",{id:s,"aria-labelledby":u,role:"menu",className:Pe("m-0 p-0","max-md:w-full md:mr-2 max-md:absolute max-md:top-full z-2000","flex max-md:flex-col items-center","bg-lm-main dark:bg-dm-main",{"max-md:hidden":!r}),children:n})]})},Nx=Object.assign(CK,{MenuItem:wK,Dropdown:SK}),jL=C.createContext(null),EK=({className:e,to:t,...n})=>{const r=C.useContext(jL);return y.jsx(J2,{role:"menuitem",to:t,className:({isActive:i})=>Pe("px-4 pt-2 pb-[calc(0.5rem-3px)] border-b-3","highlight:text-lm-brand dark:highlight:text-dm-brand","font-bold text-center no-underline transition-colors","rounded-none outline-none focus-visible:inset-ring-2","focus-visible:inset-ring-lm-brand/50 dark:focus-visible:inset-ring-dm-brand/50",{"text-lm-brand dark:text-dm-brand":i,"border-b-lm-brand dark:border-b-dm-brand active":i,"border-b-transparent text-gray-500":!i,"flex-grow":r?.fill},e),...n})},AK=({children:e,className:t,fill:n})=>y.jsx(jL.Provider,{value:{fill:n},children:y.jsx(un,{role:"menubar",className:Pe("flex overflow-hidden",t),children:e})}),Qs=Object.assign(AK,{Pill:EK}),TK=new Intl.NumberFormat("en-US"),Pn=e=>TK.format(Number(e)),VT=10,OK=e=>Math.ceil(e/VT)*VT,Uc=2,Yg="...",jK=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),MK=(e,t)=>{const n=jK(Math.max(Uc,e-Uc),Math.min(t-1,e+Uc)+1);return e-Uc>Uc&&n.unshift(Yg),e+Uc<t-1&&n.push(Yg),n.unshift(1),n.push(t),n},mh=e=>e===Yg,PK=e=>mh(e)?e:Pn(e),RK=(e,t)=>mh(e)?`${e}_${t}`:`${e}`,ML=["border border-r-0 last:border-r border-lm-border dark:border-dm-border","rounded-none first:rounded-l last:rounded-r"],PL=(e=!1)=>Pe(ML,"px-3 py-2 cursor-pointer no-underline","focus-ring focus-visible:z-1",!e&&["text-lm-brand dark:text-dm-brand","bg-lm-primary dark:bg-dm-primary","highlight:bg-lm-secondary dark:highlight:bg-dm-secondary"],e&&"bg-lm-main dark:bg-dm-main text-white"),Dx=({children:e})=>y.jsx("span",{"aria-hidden":!0,className:Pe(ML,"px-3 py-2 text-gray-400"),children:e}),RL=()=>y.jsx(Dx,{children:Yg});function LK({children:e,active:t,isEllipsis:n,href:r,...i}){const o=C.useMemo(()=>PL(t),[t]);return n?y.jsx(RL,{}):y.jsx(Nr,{className:o,to:r,...i,"data-active":t,children:e})}function NK({children:e,active:t,isEllipsis:n,...r}){const i=C.useMemo(()=>PL(t),[t]);return n?y.jsx(RL,{}):y.jsx("button",{type:"button",className:i,...r,"data-active":t,children:e})}const uy=({currentPage:e,pagesCount:t,...n})=>{const r="urlForPage"in n,i=r?LK:NK,o=C.useCallback(s=>r?{href:mh(s)?void 0:n.urlForPage(s)}:{onClick:()=>!mh(s)&&n.onPageChange(s)},[r,n]);return t<2?null:y.jsxs("div",{className:"select-none flex","data-testid":"paginator",children:[e===1?y.jsx(Dx,{children:y.jsx(Ye,{size:"xs",icon:VA})}):y.jsx(i,{...o(Math.max(1,e-1)),"aria-label":"Previous",children:y.jsx(Ye,{size:"xs",icon:VA})}),MK(e,t).map((s,u)=>y.jsx(i,{active:s===e,isEllipsis:mh(s),...o(s),children:PK(s)},RK(s,u))),e===t?y.jsx(Dx,{children:y.jsx(Ye,{size:"xs",icon:Ug})}):y.jsx(i,{...o(Math.min(t,e+1)),"aria-label":"Next",children:y.jsx(Ye,{size:"xs",icon:Ug})})]})},DK=({buttonLabel:e="Options",buttonSize:t="md",...n})=>y.jsx(Qe,{buttonContent:y.jsx(Ye,{icon:K$,widthAuto:!0,className:Pe({"px-1":t==="sm"})}),caretless:!0,buttonLabel:e,buttonSize:t,...n}),nn=Object.assign(DK,{Item:Qe.Item,Separator:Qe.Separator,Title:Qe.Title,Misc:Qe.Misc}),kK=({open:e,children:t,className:n,onClose:r,...i})=>{const o=C.useRef(null);return C.useEffect(()=>{const s=document.body,u=s.style.overflow,d=s.style.paddingRight;if(e){const f=window.outerWidth-s.clientWidth,m=s.scrollHeight>s.clientHeight;s.style.overflow="hidden",m&&(s.style.paddingRight=`${f}px`),o.current?.showModal()}else o.current?.close();return()=>{s.style.overflow=u,s.style.paddingRight=d}},[e]),$h.createPortal(y.jsx("dialog",{ref:o,className:Pe("bg-transparent backdrop:bg-black/50",n),onCancel:s=>{s.preventDefault(),r()},...i,children:e&&t}),document.body)},uo=({open:e,onClose:t,variant:n="default",title:r,children:i,className:o,...s})=>{const{size:u="md",confirmText:d="Confirm",cancelText:f="Cancel",confirmDisabled:m,onConfirm:p,onClosed:b,..._}="onConfirm"in s?s:{...s},[w,x]=C.useState(e),E=C.useRef(null),T=C.useRef("cancel"),j=C.useCallback(O=>{O.preventDefault(),O.stopPropagation(),T.current="confirm",p?.()},[p]);return C.useEffect(()=>{if(e){T.current="cancel",x(!0);return}const O=E.current;if(O){delete E.current.dataset.open;let N=!1;const F=$=>{N||$.target!==O||(N=!0,x(!1),b?.(T.current))};return O.addEventListener("transitionend",F),()=>{O.removeEventListener("transitionend",F)}}},[b,e]),C.useEffect(()=>{const O=E.current;w&&O&&(O.dataset.open="")},[w]),y.jsx(kK,{open:w,onClose:t,className:Pe({"flex w-screen h-screen max-w-screen max-h-screen":w,"overflow-hidden":n==="cover"},o),..._,children:y.jsx("form",{"data-testid":"transition-container",ref:E,className:Pe("w-full m-auto p-4 sm:p-6","-translate-y-4 data-open:translate-y-0 opacity-0 data-open:opacity-100","transition-[opacity_,_translate] duration-300",n!=="cover"&&{"sm:w-sm":u==="sm","md:w-lg":u==="md","md:w-4xl":u==="lg","md:w-6xl":u==="xl"},{"h-full":n==="cover"}),onSubmit:j,children:y.jsx(un,{className:Pe("w-full",{"h-full relative overflow-auto":n==="cover"}),children:n==="cover"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Pe("px-4 py-3 absolute top-0 left-0 right-0 z-3000","flex items-center justify-between","text-white bg-linear-to-b from-black/70 to-black/10","[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"),children:[y.jsx("h5",{children:r}),y.jsx(Ru,{onClick:t,label:"Close dialog"})]}),i]}):y.jsxs(y.Fragment,{children:[y.jsxs(un.Header,{className:Pe("sticky top-0","flex items-center justify-between gap-x-2"),children:[y.jsx("h5",{className:Pe({"text-danger":n==="danger"}),children:r}),y.jsx(Ru,{onClick:t,label:"Close dialog"})]}),y.jsx(un.Body,{children:i}),p&&y.jsxs(un.Footer,{"data-testid":"footer",className:Pe("flex justify-end items-center gap-x-2","[&]:px-3 sticky bottom-0"),children:[y.jsx(ly,{onClick:t,children:f}),y.jsx(Rt,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:m,type:"submit",children:d})]})]})})})})},Zo=({className:e,children:t,loading:n=!1,variant:r="default"})=>y.jsx(Pt,{className:Pe({"[&]:border-danger":r==="error"},e),children:y.jsxs("h3",{className:Pe("text-center",{"text-gray-500 dark:text-gray-400":r==="default","text-danger":r==="error"}),children:[n&&y.jsxs(y.Fragment,{children:[y.jsx(Ye,{icon:aw,spin:!0}),y.jsx("span",{className:"ml-2",children:t??"Loading..."})]}),!n&&t]})}),$r=({variant:e,className:t,size:n="md",children:r})=>y.jsx("div",{className:Pe("rounded-md text-center",{"p-2":n==="sm","p-4":n==="md","p-6":n==="lg","[&]:text-white":e!=="warning","bg-lm-brand dark:bg-dm-brand":e==="success","bg-danger":e==="error","bg-warning text-black":e==="warning"},t),children:r}),co=({placement:e="auto"}={})=>{const t=C.useRef(null),n=(()=>{const x=[];return e==="auto"&&x.push(xW()),x.push(wW({element:t})),x})(),[r,i]=C.useState(!1),{refs:o,floatingStyles:s,context:u,middlewareData:d}=xL({placement:e==="auto"?void 0:e,open:r,onOpenChange:i,middleware:n}),f=LW(u,{delay:{open:300},move:!0}),{getFloatingProps:m,getReferenceProps:p}=wL([f]),{isMounted:b,styles:_}=zW(u,{duration:200}),w=C.useMemo(()=>{const x=u.placement.split("-")[0];return{top:"bottom",right:"left",bottom:"top",left:"right"}[x]??""},[u.placement]);return{anchor:{...p(),ref:o.setReference},tooltip:{...m(),refSetter:o.setFloating,isMounted:b,styles:{...s,..._},arrowPos:d.arrow,arrowRef:t,arrowSide:w}}},fo=({children:e,isMounted:t,styles:n,refSetter:r,arrowRef:i,arrowPos:o,arrowSide:s,...u})=>t&&y.jsx("div",{role:"tooltip","aria-live":"polite",className:Pe("z-500 max-w-64",{"pt-2.5":s==="top","pb-2.5":s==="bottom","pr-2.5":s==="right","pl-2.5":s==="left"}),ref:r,style:n,...u,children:y.jsxs("div",{className:"relative px-1.5 py-1 rounded bg-black/90 text-white text-center",children:[y.jsx("span",{className:"sr-only",children:"Tooltip: "}),e,y.jsx("div",{ref:i,className:Pe("absolute","border-l-6 border-r-6 border-b-6 border-l-transparent border-r-transparent border-b-black/90",{"rotate-180":s==="bottom","rotate-90 mr-[-3px]":s==="right","rotate-270 ml-[-3px]":s==="left"}),style:{left:o?.x,top:o?.y,[s]:`${-(i.current?.offsetWidth??0)/2}px`},"data-testid":"arrow"})]})});function LL(e){if(e.currentField!==e.newField)return"ASC";const t={ASC:"DESC",DESC:void 0};return e.currentOrderDir?t[e.currentOrderDir]:"ASC"}function Pw(e){const t=LL(e);return{field:t?e.newField:void 0,dir:t}}const NL=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),IK=e=>e.dir?`${e.field}-${e.dir}`:void 0,UK=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Zh({items:e,order:t,onChange:n,prefixed:r=!0,buttonVariant:i="button",...o}){const s=C.useCallback(d=>{const f=Pw({currentOrderDir:t.dir,currentField:t.field,newField:d});n(f)},[n,t.dir,t.field]),u=i==="button";return y.jsxs(Qe,{buttonContent:y.jsxs(y.Fragment,{children:[!u&&"Order by",u&&!t.field&&y.jsx("i",{children:"Order by..."}),u&&t.field&&y.jsxs(y.Fragment,{children:[r&&"Order by: ",e[t.field]," - ",t.dir??"DESC"]})]}),buttonVariant:i,...o,children:[Object.entries(e).map(([d,f])=>y.jsxs(Qe.Item,{selected:t.field===d,onClick:()=>s(d),className:"flex items-center justify-between gap-2",children:[f,t.field===d&&y.jsx(Ye,{icon:t.dir==="ASC"?eV:SV})]},d)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{disabled:!t.field,onClick:()=>n({}),children:y.jsx("i",{children:"Clear selection"})})]})}const zK="#4696e5",BK="rgba(70, 150, 229, 0.4)",FK="#2078CF",$K="rgba(32, 120, 207, 0.4)",Eh=()=>is()?zK:FK,VK=()=>is()?BK:$K,kx="#f77f28",HK="rgba(247, 127, 40, 0.4)",qK="white",GK="#161b22",YK=e=>document.querySelector("html")?.setAttribute("data-theme",e),is=()=>document.querySelector("html")?.getAttribute("data-theme")==="dark",Rw=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",WK=({isOpen:e,onClose:t,forceUpdate:n})=>{const{flag:r,setToTrue:i}=Sn(),o=C.useCallback(()=>{i(),n()},[n,i]);return e?y.jsxs(un,{role:"alert",className:Pe("w-[700px] max-w-[calc(100%-30px)]","fixed top-[35px] left-[50%] translate-x-[-50%] z-[1040]"),children:[y.jsxs(un.Header,{className:"flex items-center justify-between",children:[y.jsx("h5",{children:"This app has just been updated!"}),y.jsx(Ru,{onClick:t})]}),y.jsxs(un.Body,{className:"flex gap-4 items-center justify-between max-md:flex-col",children:["Restart it to enjoy the new features.",y.jsxs(Rt,{disabled:r,variant:"secondary",solid:!0,onClick:o,children:[!r&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Ye,{icon:L$})]}),r&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]}):null},DL=({children:e,title:t})=>y.jsx("div",{className:"pt-4",children:y.jsxs(Pt,{className:"p-4 w-full lg:w-[65%] m-auto",children:[y.jsx("h2",{children:t}),e]})}),kL=({to:e="/",children:t="Home"})=>y.jsxs(DL,{title:"Oops! We could not find requested route.",children:[y.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),y.jsx("br",{}),y.jsx(Rt,{inline:!0,to:e,size:"lg",children:t})]});function Ma(e){return C.useMemo(()=>e,[e])}function Pa(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const KK=async()=>{(await navigator.serviceWorker?.getRegistrations()??[]).forEach(({waiting:t})=>{t?.addEventListener("statechange",n=>{n.target?.state==="activated"&&window.location.reload()}),t?.postMessage({type:"SKIP_WAITING"})})},IL=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{const{MainHeader:o,Home:s,ShlinkWebComponentContainer:u,CreateServer:d,EditServer:f,Settings:m,ManageServers:p,ShlinkVersionsContainer:b}=Ma(IL),_=Er(),w=C.useRef(t),x=_.pathname==="/";return C.useEffect(()=>{Object.keys(w.current).length===0&&e()},[e]),C.useEffect(()=>{YK(n.ui?.theme??Rw())},[n.ui?.theme]),y.jsxs("div",{className:"h-full",children:[y.jsxs(y.Fragment,{children:[y.jsx(o,{}),y.jsxs("div",{className:"h-full pt-(--header-height)",children:[y.jsx("div",{"data-testid":"shlink-wrapper",className:Pe("min-h-full pb-[calc(var(--footer-height)+var(--footer-margin))] -mb-[calc(var(--footer-height)+var(--footer-margin))]",{"flex items-center pt-4":x}),children:y.jsxs(Gv,{children:[y.jsx(pt,{index:!0,element:y.jsx(s,{})}),y.jsx(pt,{path:"/settings",children:["","*"].map(E=>y.jsx(pt,{path:E,element:y.jsx(m,{})},E))}),y.jsx(pt,{path:"/manage-servers",element:y.jsx(p,{})}),y.jsx(pt,{path:"/server/create",element:y.jsx(d,{})}),y.jsx(pt,{path:"/server/:serverId/edit",element:y.jsx(f,{})}),y.jsx(pt,{path:"/server/:serverId",children:["","*"].map(E=>y.jsx(pt,{path:E,element:y.jsx(u,{})},E))}),y.jsx(pt,{path:"*",element:y.jsx(kL,{})})]})}),y.jsx("div",{className:"h-(--footer-height) mt-(--footer-margin) md:px-4",children:y.jsx(b,{})})]})]}),y.jsx(WK,{isOpen:r,onClose:i,forceUpdate:KK})]})},ZK=Pa(IL,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function _r(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 XK=typeof Symbol=="function"&&Symbol.observable||"@@observable",HT=XK,vb=()=>Math.random().toString(36).substring(7).split("").join("."),QK={INIT:`@@redux/INIT${vb()}`,REPLACE:`@@redux/REPLACE${vb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vb()}`},Wg=QK;function Lw(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 UL(e,t,n){if(typeof e!="function")throw new Error(_r(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(_r(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(_r(1));return n(UL)(e,t)}let r=e,i=t,o=new Map,s=o,u=0,d=!1;function f(){s===o&&(s=new Map,o.forEach((E,T)=>{s.set(T,E)}))}function m(){if(d)throw new Error(_r(3));return i}function p(E){if(typeof E!="function")throw new Error(_r(4));if(d)throw new Error(_r(5));let T=!0;f();const j=u++;return s.set(j,E),function(){if(T){if(d)throw new Error(_r(6));T=!1,f(),s.delete(j),o=null}}}function b(E){if(!Lw(E))throw new Error(_r(7));if(typeof E.type>"u")throw new Error(_r(8));if(typeof E.type!="string")throw new Error(_r(17));if(d)throw new Error(_r(9));try{d=!0,i=r(i,E)}finally{d=!1}return(o=s).forEach(j=>{j()}),E}function _(E){if(typeof E!="function")throw new Error(_r(10));r=E,b({type:Wg.REPLACE})}function w(){const E=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(_r(11));function j(){const N=T;N.next&&N.next(m())}return j(),{unsubscribe:E(j)}},[HT](){return this}}}return b({type:Wg.INIT}),{dispatch:b,subscribe:p,getState:m,replaceReducer:_,[HT]:w}}function JK(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Wg.INIT})>"u")throw new Error(_r(12));if(typeof n(void 0,{type:Wg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_r(13))})}function cy(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{JK(n)}catch(o){i=o}return function(s={},u){if(i)throw i;let d=!1;const f={};for(let m=0;m<r.length;m++){const p=r[m],b=n[p],_=s[p],w=b(_,u);if(typeof w>"u")throw u&&u.type,new Error(_r(14));f[p]=w,d=d||w!==_}return d=d||r.length!==Object.keys(s).length,d?f:s}}function Kg(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function eZ(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(_r(15))};const s={getState:i.getState,dispatch:(d,...f)=>o(d,...f)},u=e.map(d=>d(s));return o=Kg(...u)(i.dispatch),{...i,dispatch:o}}}function zL(e){return Lw(e)&&"type"in e&&typeof e.type=="string"}var BL=Symbol.for("immer-nothing"),qT=Symbol.for("immer-draftable"),Pi=Symbol.for("immer-state");function _a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tf=Object.getPrototypeOf;function Lu(e){return!!e&&!!e[Pi]}function Xo(e){return e?FL(e)||Array.isArray(e)||!!e[qT]||!!e.constructor?.[qT]||dy(e)||hy(e):!1}var tZ=Object.prototype.constructor.toString();function FL(e){if(!e||typeof e!="object")return!1;const t=tf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===tZ}function Zg(e,t){fy(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function fy(e){const t=e[Pi];return t?t.type_:Array.isArray(e)?1:dy(e)?2:hy(e)?3:0}function Ix(e,t){return fy(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $L(e,t,n){const r=fy(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function nZ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function dy(e){return e instanceof Map}function hy(e){return e instanceof Set}function hu(e){return e.copy_||e.base_}function Ux(e,t){if(dy(e))return new Map(e);if(hy(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=FL(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Pi];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],u=r[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(tf(e),r)}else{const r=tf(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Nw(e,t=!1){return my(e)||Lu(e)||!Xo(e)||(fy(e)>1&&(e.set=e.add=e.clear=e.delete=rZ),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Nw(r,!0))),e}function rZ(){_a(2)}function my(e){return Object.isFrozen(e)}var iZ={};function Nu(e){const t=iZ[e];return t||_a(0,e),t}var Ah;function VL(){return Ah}function aZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function GT(e,t){t&&(Nu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zx(e){Bx(e),e.drafts_.forEach(oZ),e.drafts_=null}function Bx(e){e===Ah&&(Ah=e.parent_)}function YT(e){return Ah=aZ(Ah,e)}function oZ(e){const t=e[Pi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function WT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Pi].modified_&&(zx(t),_a(4)),Xo(e)&&(e=Xg(t,e),t.parent_||Qg(t,e)),t.patches_&&Nu("Patches").generateReplacementPatches_(n[Pi].base_,e,t.patches_,t.inversePatches_)):e=Xg(t,n,[]),zx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==BL?e:void 0}function Xg(e,t,n){if(my(t))return t;const r=t[Pi];if(!r)return Zg(t,(i,o)=>KT(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Qg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Zg(o,(u,d)=>KT(e,r,i,u,d,n,s)),Qg(e,i,!1),n&&e.patches_&&Nu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function KT(e,t,n,r,i,o,s){if(Lu(i)){const u=o&&t&&t.type_!==3&&!Ix(t.assigned_,r)?o.concat(r):void 0,d=Xg(e,i,u);if($L(n,r,d),Lu(d))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Xo(i)&&!my(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Xg(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Qg(e,i)}}function Qg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Nw(t,n)}function sZ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:VL(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Dw;n&&(i=[r],o=Th);const{revoke:s,proxy:u}=Proxy.revocable(i,o);return r.draft_=u,r.revoke_=s,u}var Dw={get(e,t){if(t===Pi)return e;const n=hu(e);if(!Ix(n,t))return lZ(e,n,t);const r=n[t];return e.finalized_||!Xo(r)?r:r===yb(e.base_,t)?(bb(e),e.copy_[t]=$x(r,e)):r},has(e,t){return t in hu(e)},ownKeys(e){return Reflect.ownKeys(hu(e))},set(e,t,n){const r=HL(hu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=yb(hu(e),t),o=i?.[Pi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(nZ(n,i)&&(n!==void 0||Ix(e.base_,t)))return!0;bb(e),Fx(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return yb(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,bb(e),Fx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=hu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_a(11)},getPrototypeOf(e){return tf(e.base_)},setPrototypeOf(){_a(12)}},Th={};Zg(Dw,(e,t)=>{Th[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Th.deleteProperty=function(e,t){return Th.set.call(this,e,t,void 0)};Th.set=function(e,t,n){return Dw.set.call(this,e[0],t,n,e[0])};function yb(e,t){const n=e[Pi];return(n?hu(n):e)[t]}function lZ(e,t,n){const r=HL(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function HL(e,t){if(!(t in e))return;let n=tf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=tf(n)}}function Fx(e){e.modified_||(e.modified_=!0,e.parent_&&Fx(e.parent_))}function bb(e){e.copy_||(e.copy_=Ux(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uZ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(d=o,...f){return s.produce(d,m=>n.call(this,m,...f))}}typeof n!="function"&&_a(6),r!==void 0&&typeof r!="function"&&_a(7);let i;if(Xo(t)){const o=YT(this),s=$x(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?zx(o):Bx(o)}return GT(o,r),WT(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===BL&&(i=void 0),this.autoFreeze_&&Nw(i,!0),r){const o=[],s=[];Nu("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else _a(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,d=>t(d,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Xo(e)||_a(8),Lu(e)&&(e=qo(e));const t=YT(this),n=$x(e,void 0);return n[Pi].isManual_=!0,Bx(t),n}finishDraft(e,t){const n=e&&e[Pi];(!n||!n.isManual_)&&_a(9);const{scope_:r}=n;return GT(r,t),WT(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Nu("Patches").applyPatches_;return Lu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function $x(e,t){const n=dy(e)?Nu("MapSet").proxyMap_(e,t):hy(e)?Nu("MapSet").proxySet_(e,t):sZ(e,t);return(t?t.scope_:VL()).drafts_.push(n),n}function qo(e){return Lu(e)||_a(10,e),qL(e)}function qL(e){if(!Xo(e)||my(e))return e;const t=e[Pi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ux(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ux(e,!0);return Zg(n,(r,i)=>{$L(n,r,qL(i))}),t&&(t.finalized_=!1),n}var Ri=new uZ,GL=Ri.produce;Ri.produceWithPatches.bind(Ri);Ri.setAutoFreeze.bind(Ri);Ri.setUseStrictShallowCopy.bind(Ri);Ri.applyPatches.bind(Ri);Ri.createDraft.bind(Ri);Ri.finishDraft.bind(Ri);function cZ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function fZ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function dZ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var ZT=e=>Array.isArray(e)?e:[e];function hZ(e){const t=Array.isArray(e[0])?e[0]:e;return dZ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function mZ(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var pZ=class{constructor(e){this.value=e}deref(){return this.value}},gZ=typeof WeakRef<"u"?WeakRef:pZ,vZ=0,XT=1;function Yp(){return{s:vZ,v:void 0,o:null,p:null}}function YL(e,t={}){let n=Yp();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let u=n;const{length:d}=arguments;for(let p=0,b=d;p<b;p++){const _=arguments[p];if(typeof _=="function"||typeof _=="object"&&_!==null){let w=u.o;w===null&&(u.o=w=new WeakMap);const x=w.get(_);x===void 0?(u=Yp(),w.set(_,u)):u=x}else{let w=u.p;w===null&&(u.p=w=new Map);const x=w.get(_);x===void 0?(u=Yp(),w.set(_,u)):u=x}}const f=u;let m;if(u.s===XT)m=u.v;else if(m=e.apply(null,arguments),o++,r){const p=i?.deref?.()??i;p!=null&&r(p,m)&&(m=p,o!==0&&o--),i=typeof m=="object"&&m!==null||typeof m=="function"?new gZ(m):m}return f.s=XT,f.v=m,m}return s.clearCache=()=>{n=Yp(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function yZ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,u,d={},f=i.pop();typeof f=="object"&&(d=f,f=i.pop()),cZ(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const m={...n,...d},{memoize:p,memoizeOptions:b=[],argsMemoize:_=YL,argsMemoizeOptions:w=[]}=m,x=ZT(b),E=ZT(w),T=hZ(i),j=p(function(){return o++,f.apply(null,arguments)},...x),O=_(function(){s++;const F=mZ(T,arguments);return u=j.apply(null,F),u},...E);return Object.assign(O,{resultFunc:f,memoizedResultFunc:j,dependencies:T,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:_})};return Object.assign(r,{withTypes:()=>r}),r}var je=yZ(YL),bZ=Object.assign((e,t=je)=>{fZ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,u,d)=>(s[n[d]]=u,s),{}))},{withTypes:()=>bZ});function WL(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var _Z=WL(),xZ=WL,wZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kg:Kg.apply(null,arguments)},SZ=e=>e&&typeof e.match=="function";function cn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Oi(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>zL(r)&&r.type===e,n}var KL=class ah extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ah.prototype)}static get[Symbol.species](){return ah}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ah(...t[0].concat(this)):new ah(...t.concat(this))}};function QT(e){return Xo(e)?GL(e,()=>{}):e}function Wp(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function CZ(e){return typeof e=="boolean"}var EZ=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new KL;return n&&(CZ(n)?s.push(_Z):s.push(xZ(n.extraArgument))),s},AZ="RTK_autoBatch",JT=e=>t=>{setTimeout(t,e)},TZ=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:JT(10):e.type==="callback"?e.queueNotification:JT(e.timeout),f=()=>{s=!1,o&&(o=!1,u.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>i&&m(),b=r.subscribe(p);return u.add(m),()=>{b(),u.delete(m)}},dispatch(m){try{return i=!m?.meta?.[AZ],o=!i,o&&(s||(s=!0,d(f))),r.dispatch(m)}finally{i=!0}}})},OZ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new KL(e);return r&&i.push(TZ(typeof r=="object"?r:void 0)),i};function kw(e){const t=EZ(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Lw(n))d=cy(n);else throw new Error(Oi(1));let f;typeof r=="function"?f=r(t):f=t();let m=Kg;i&&(m=wZ({trace:!1,...typeof i=="object"&&i}));const p=eZ(...f),b=OZ(p);let _=typeof u=="function"?u(b):b();const w=m(..._);return UL(d,s,w)}function ZL(e){const t={},n=[];let r;const i={addCase(o,s){const u=typeof o=="string"?o:o.type;if(!u)throw new Error(Oi(28));if(u in t)throw new Error(Oi(29));return t[u]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function jZ(e){return typeof e=="function"}function MZ(e,t){let[n,r,i]=ZL(t),o;if(jZ(e))o=()=>QT(e());else{const u=QT(e);o=()=>u}function s(u=o(),d){let f=[n[d.type],...r.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return f.filter(m=>!!m).length===0&&(f=[i]),f.reduce((m,p)=>{if(p)if(Lu(m)){const _=p(m,d);return _===void 0?m:_}else{if(Xo(m))return GL(m,b=>p(b,d));{const b=p(m,d);if(b===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return m},u)}return s.getInitialState=o,s}var PZ=(e,t)=>SZ(e)?e.match(t):e(t);function RZ(...e){return t=>e.some(n=>PZ(n,t))}var LZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",XL=(e=21)=>{let t="",n=e;for(;n--;)t+=LZ[Math.random()*64|0];return t},NZ=["name","message","stack","code"],_b=class{constructor(e,t){this.payload=e,this.meta=t}_type},eO=class{constructor(e,t){this.payload=e,this.meta=t}_type},DZ=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of NZ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tO="External signal was aborted",QL=(()=>{function e(t,n,r){const i=cn(t+"/fulfilled",(d,f,m,p)=>({payload:d,meta:{...p||{},arg:m,requestId:f,requestStatus:"fulfilled"}})),o=cn(t+"/pending",(d,f,m)=>({payload:void 0,meta:{...m||{},arg:f,requestId:d,requestStatus:"pending"}})),s=cn(t+"/rejected",(d,f,m,p,b)=>({payload:p,error:(r&&r.serializeError||DZ)(d||"Rejected"),meta:{...b||{},arg:m,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function u(d,{signal:f}={}){return(m,p,b)=>{const _=r?.idGenerator?r.idGenerator(d):XL(),w=new AbortController;let x,E;function T(O){E=O,w.abort()}f&&(f.aborted?T(tO):f.addEventListener("abort",()=>T(tO),{once:!0}));const j=async function(){let O;try{let F=r?.condition?.(d,{getState:p,extra:b});if(IZ(F)&&(F=await F),F===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const $=new Promise((K,Q)=>{x=()=>{Q({name:"AbortError",message:E||"Aborted"})},w.signal.addEventListener("abort",x)});m(o(_,d,r?.getPendingMeta?.({requestId:_,arg:d},{getState:p,extra:b}))),O=await Promise.race([$,Promise.resolve(n(d,{dispatch:m,getState:p,extra:b,requestId:_,signal:w.signal,abort:T,rejectWithValue:(K,Q)=>new _b(K,Q),fulfillWithValue:(K,Q)=>new eO(K,Q)})).then(K=>{if(K instanceof _b)throw K;return K instanceof eO?i(K.payload,_,d,K.meta):i(K,_,d)})])}catch(F){O=F instanceof _b?s(null,_,d,F.payload,F.meta):s(F,_,d)}finally{x&&w.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&s.match(O)&&O.meta.condition||m(O),O}();return Object.assign(j,{abort:T,requestId:_,arg:d,unwrap(){return j.then(kZ)}})}}return Object.assign(u,{pending:o,rejected:s,fulfilled:i,settled:RZ(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function kZ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function IZ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var UZ=Symbol.for("rtk-slice-createasyncthunk");function zZ(e,t){return`${e}/${t}`}function BZ({creators:e}={}){const t=e?.asyncThunk?.[UZ];return function(r){const{name:i,reducerPath:o=i}=r;if(!i)throw new Error(Oi(11));const s=(typeof r.reducers=="function"?r.reducers($Z()):r.reducers)||{},u=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(O,N){const F=typeof O=="string"?O:O.type;if(!F)throw new Error(Oi(12));if(F in d.sliceCaseReducersByType)throw new Error(Oi(13));return d.sliceCaseReducersByType[F]=N,f},addMatcher(O,N){return d.sliceMatchers.push({matcher:O,reducer:N}),f},exposeAction(O,N){return d.actionCreators[O]=N,f},exposeCaseReducer(O,N){return d.sliceCaseReducersByName[O]=N,f}};u.forEach(O=>{const N=s[O],F={reducerName:O,type:zZ(i,O),createNotation:typeof r.reducers=="function"};HZ(N)?GZ(F,N,f,t):VZ(F,N,f)});function m(){const[O={},N=[],F=void 0]=typeof r.extraReducers=="function"?ZL(r.extraReducers):[r.extraReducers],$={...O,...d.sliceCaseReducersByType};return MZ(r.initialState,K=>{for(let Q in $)K.addCase(Q,$[Q]);for(let Q of d.sliceMatchers)K.addMatcher(Q.matcher,Q.reducer);for(let Q of N)K.addMatcher(Q.matcher,Q.reducer);F&&K.addDefaultCase(F)})}const p=O=>O,b=new Map,_=new WeakMap;let w;function x(O,N){return w||(w=m()),w(O,N)}function E(){return w||(w=m()),w.getInitialState()}function T(O,N=!1){function F(K){let Q=K[O];return typeof Q>"u"&&N&&(Q=Wp(_,F,E)),Q}function $(K=p){const Q=Wp(b,N,()=>new WeakMap);return Wp(Q,K,()=>{const oe={};for(const[ee,J]of Object.entries(r.selectors??{}))oe[ee]=FZ(J,K,()=>Wp(_,K,E),N);return oe})}return{reducerPath:O,getSelectors:$,get selectors(){return $(F)},selectSlice:F}}const j={name:i,reducer:x,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...T(o),injectInto(O,{reducerPath:N,...F}={}){const $=N??o;return O.inject({reducerPath:$,reducer:x},F),{...j,...T($,!0)}}};return j}}function FZ(e,t,n,r){function i(o,...s){let u=t(o);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var Lt=BZ();function $Z(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function VZ({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!qZ(r))throw new Error(Oi(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?cn(e,s):cn(e))}function HZ(e){return e._reducerDefinitionType==="asyncThunk"}function qZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function GZ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Oi(18));const{payloadCreator:o,fulfilled:s,pending:u,rejected:d,settled:f,options:m}=n,p=i(e,o,m);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),u&&r.addCase(p.pending,u),d&&r.addCase(p.rejected,d),f&&r.addMatcher(p.settled,f),r.exposeCaseReducer(t,{fulfilled:s||Kp,pending:u||Kp,rejected:d||Kp,settled:f||Kp})}function Kp(){}var YZ="task",JL="listener",eN="completed",Iw="cancelled",WZ=`task-${Iw}`,KZ=`task-${eN}`,Vx=`${JL}-${Iw}`,ZZ=`${JL}-${eN}`,py=class{constructor(e){this.code=e,this.message=`${YZ} ${Iw} (reason: ${e})`}name="TaskAbortError";message},Uw=(e,t)=>{if(typeof e!="function")throw new TypeError(Oi(32))},Jg=()=>{},tN=(e,t=Jg)=>(e.catch(t),e),nN=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Cu=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Eu=e=>{if(e.aborted){const{reason:t}=e;throw new py(t)}};function rN(e,t){let n=Jg;return new Promise((r,i)=>{const o=()=>i(new py(e.reason));if(e.aborted){o();return}n=nN(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Jg})}var XZ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof py?"cancelled":"rejected",error:n}}finally{t?.()}},ev=e=>t=>tN(rN(e,t).then(n=>(Eu(e),n))),iN=e=>{const t=ev(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Wc}=Object,nO={},gy="listenerMiddleware",QZ=(e,t)=>{const n=r=>nN(e,()=>Cu(r,e.reason));return(r,i)=>{Uw(r);const o=new AbortController;n(o);const s=XZ(async()=>{Eu(e),Eu(o.signal);const u=await r({pause:ev(o.signal),delay:iN(o.signal),signal:o.signal});return Eu(o.signal),u},()=>Cu(o,KZ));return i?.autoJoin&&t.push(s.catch(Jg)),{result:ev(e)(s),cancel(){Cu(o,WZ)}}}},JZ=(e,t)=>{const n=async(r,i)=>{Eu(t);let o=()=>{};const u=[new Promise((d,f)=>{let m=e({predicate:r,effect:(p,b)=>{b.unsubscribe(),d([p,b.getState(),b.getOriginalState()])}});o=()=>{m(),f()}})];i!=null&&u.push(new Promise(d=>setTimeout(d,i,null)));try{const d=await rN(t,Promise.race(u));return Eu(t),d}finally{o()}};return(r,i)=>tN(n(r,i))},aN=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=cn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Oi(21));return Uw(o),{predicate:i,type:t,effect:o}},oN=Wc(e=>{const{type:t,predicate:n,effect:r}=aN(e);return{id:XL(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Oi(22))}}},{withTypes:()=>oN}),rO=(e,t)=>{const{type:n,effect:r,predicate:i}=aN(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},Hx=e=>{e.pending.forEach(t=>{Cu(t,Vx)})},eX=e=>()=>{e.forEach(Hx),e.clear()},iO=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},sN=Wc(cn(`${gy}/add`),{withTypes:()=>sN}),tX=cn(`${gy}/removeAll`),lN=Wc(cn(`${gy}/remove`),{withTypes:()=>lN}),nX=(...e)=>{console.error(`${gy}/error`,...e)},Xh=(e={})=>{const t=new Map,{extra:n,onError:r=nX}=e;Uw(r);const i=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),p=>{m.unsubscribe(),p?.cancelActive&&Hx(m)}),o=m=>{const p=rO(t,m)??oN(m);return i(p)};Wc(o,{withTypes:()=>o});const s=m=>{const p=rO(t,m);return p&&(p.unsubscribe(),m.cancelActive&&Hx(p)),!!p};Wc(s,{withTypes:()=>s});const u=async(m,p,b,_)=>{const w=new AbortController,x=JZ(o,w.signal),E=[];try{m.pending.add(w),await Promise.resolve(m.effect(p,Wc({},b,{getOriginalState:_,condition:(T,j)=>x(T,j).then(Boolean),take:x,delay:iN(w.signal),pause:ev(w.signal),extra:n,signal:w.signal,fork:QZ(w.signal,E),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((T,j,O)=>{T!==w&&(Cu(T,Vx),O.delete(T))})},cancel:()=>{Cu(w,Vx),m.pending.delete(w)},throwIfCancelled:()=>{Eu(w.signal)}})))}catch(T){T instanceof py||iO(r,T,{raisedBy:"effect"})}finally{await Promise.all(E),Cu(w,ZZ),m.pending.delete(w)}},d=eX(t);return{middleware:m=>p=>b=>{if(!zL(b))return p(b);if(sN.match(b))return o(b.payload);if(tX.match(b)){d();return}if(lN.match(b))return s(b.payload);let _=m.getState();const w=()=>{if(_===nO)throw new Error(Oi(23));return _};let x;try{if(x=p(b),t.size>0){const E=m.getState(),T=Array.from(t.values());for(const j of T){let O=!1;try{O=j.predicate(b,E,_)}catch(N){O=!1,iO(r,N,{raisedBy:"predicate"})}O&&u(j,b,m,w)}}}finally{_=nO}return x},startListening:o,stopListening:s,clearListeners:d}};function Oi(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:rX,reducer:iX}=Lt({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:aX,resetAppUpdate:oX}=rX,sX=iX,lX=(e,t)=>{e.factory("App",ZK),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>aX),e.serviceFactory("resetAppUpdate",()=>oX)},aO={"Content-Type":"application/json"},oO=e=>e?.body?e?{...e,headers:{...e.headers??{},...aO}}:{headers:aO}:e;let uX=class{#t;constructor(t=globalThis.fetch.bind(globalThis)){this.#t=t}async jsonRequest(t,n){const r=await this.#t(t,oO(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await this.#t(t,oO(n));if(!r.ok)throw await r.json()}};function tv(e){return t=>{const{resetSelectedServer:n}=t;return C.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let cX=class extends C.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return y.jsxs(DL,{title:"Oops! This is awkward :S",children:[y.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),y.jsx("br",{}),y.jsx(Rt,{size:"lg",onClick:()=>n.reload(),children:"Take me back"})]});const{children:r}=this.props;return r}};const ji=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),fX=({id:e,name:t})=>y.jsxs(Nr,{to:`/server/${e}`,className:Pe("servers-list__server-item","flex items-center justify-between gap-x-2 px-4 py-3","rounded-none hover:bg-lm-secondary hover:dark:bg-dm-secondary","border-b last:border-0 border-lm-border dark:border-dm-border"),children:[y.jsx("span",{className:"truncate",children:t}),y.jsx(Ye,{icon:Ug})]}),uN=({servers:e,borderless:t})=>y.jsx(y.Fragment,{children:e.length>0&&y.jsx("div",{"data-testid":"list",className:Pe("w-full border-lm-border dark:border-dm-border","md:max-h-56 md:overflow-y-auto -mb-1 scroll-thin",{"border-y":!t}),children:e.map(({id:n,name:r})=>y.jsx(fX,{id:n,name:r},n))})}),cN=({color:e=Eh(),className:t})=>y.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{fill:e,children:[y.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"}),y.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"}),y.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"}),y.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"})]})}),dX=({servers:e})=>{const t=lo(),n=Object.values(e),r=n.length>0;return C.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"px-3 w-full",children:y.jsx(un,{className:"mx-auto max-w-[720px] overflow-hidden",children:y.jsxs("div",{className:"flex flex-col md:flex-row",children:[y.jsx("div",{className:"p-6 hidden md:flex items-center w-[40%]",children:y.jsx("div",{className:"w-full",children:y.jsx(cN,{})})}),y.jsxs("div",{className:"md:border-l border-lm-border dark:border-dm-border flex-grow",children:[y.jsx("h1",{className:Pe("p-4 text-center border-lm-border dark:border-dm-border",{"border-b":!r}),children:"Welcome!"}),r?y.jsx(uN,{servers:n}):y.jsxs("div",{className:"p-6 text-center flex flex-col gap-12 text-xl",children:[y.jsx("p",{children:"This application will help you manage your Shlink servers."}),y.jsx("p",{children:y.jsxs(Rt,{to:"/server/create",size:"lg",inline:!0,children:[y.jsx(Ye,{icon:Vh,widthAuto:!0})," Add a server"]})}),y.jsx("p",{children:y.jsx(ji,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"mr-2",children:"Learn more about Shlink"}),y.jsx(Ye,{icon:z$})]})})})]})]})]})})})},fN=()=>{const{ServersDropdown:e}=Ma(fN),{pathname:t}=Er(),n="/settings";return y.jsxs(Nx,{className:"[&]:fixed top-0 z-900",brand:y.jsxs(Nr,{to:"/",className:"[&]:text-white no-underline flex items-center gap-2",children:[y.jsx(cN,{className:"w-7",color:"white"})," ",y.jsx("small",{className:"font-normal",children:"Shlink"})]}),children:[y.jsxs(Nx.MenuItem,{to:n,active:t.startsWith(n),className:"flex items-center gap-1.5",children:[y.jsx(Ye,{icon:N$})," Settings"]}),y.jsx(e,{})]})},hX=Pa(fN,["ServersDropdown"]),mX=({children:e})=>{const t=Er();return C.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},dN=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),hN=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),xb=e=>Object.prototype.toString.call(e)==="[object Object]",mN=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},Cf=(e,t)=>{const n={...e};return!xb(e)||!xb(t)||Object.keys(t).forEach(r=>{xb(t[r])?n[r]=r in e&&e[r]!==void 0?Cf(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},pN=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),pX=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Kc=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},sO=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),gX=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lO=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(gX);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},uO=e=>e==="*"||e==="x"||e==="X",cO=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},vX=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],yX=(e,t)=>{if(uO(e)||uO(t))return 0;const[n,r]=vX(cO(e),cO(t));return n>r?1:n<r?-1:0},fO=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=yX(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},bX=(e,t)=>{const n=lO(e),r=lO(t),i=n.pop(),o=r.pop(),s=fO(n,r);return s!==0?s:i&&o?fO(i.split("."),o.split(".")):i||o?i?-1:1:0},qx=(e,t,n)=>{_X(n);const r=bX(e,t);return gN[n].includes(r)},gN={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},dO=Object.keys(gN),_X=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(dO.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${dO.join("|")}`)},vN=mN(e=>e,e=>{try{return qx(e,e,"=")}catch{return!1}}),yN=e=>vN(e)?`v${e}`:e,bN=(e,t="latest")=>vN(e)?e:t,xX="%_VERSION_%",wX=e=>yN(bN(e)),hO=({project:e,version:t})=>y.jsx(ji,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-gray-500",children:y.jsx("b",{children:t})}),SX=({selectedServer:e,clientVersion:t=xX})=>{const n=wX(t);return y.jsxs("small",{className:"text-gray-500",children:[iw(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(hO,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(hO,{project:"shlink-web-client",version:n})]})},CX=({selectedServer:e})=>y.jsx("div",{className:Pe("text-center",{"md:ml-(--aside-menu-width)":iw(e)}),children:y.jsx(SX,{selectedServer:e})}),zw={INVALID_ARGUMENT:"https://shlink.io/api/error/invalid-data",INVALID_SHORT_URL_DELETION:"https://shlink.io/api/error/invalid-short-url-deletion",DOMAIN_NOT_FOUND:"https://shlink.io/api/error/domain-not-found",FORBIDDEN_OPERATION:"https://shlink.io/api/error/forbidden-tag-operation",INVALID_SLUG:"https://shlink.io/api/error/non-unique-slug",INVALID_SHORTCODE:"https://shlink.io/api/error/short-url-not-found",TAG_CONFLICT:"https://shlink.io/api/error/tag-conflict",TAG_NOT_FOUND:"https://shlink.io/api/error/tag-not-found",MERCURE_NOT_CONFIGURED:"https://shlink.io/api/error/mercure-not-configured",INVALID_AUTHORIZATION:"https://shlink.io/api/error/missing-authentication",INVALID_API_KEY:"https://shlink.io/api/error/invalid-api-key",NOT_FOUND:"https://shlink.io/api/error/not-found",INVALID_URL:"https://shlink.io/api/error/invalid-url"};Object.freeze(zw);const Bw=(e,t,n=1)=>pN(n,e+1).map(t),EX=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,vu=e=>e!=null&&!EX(e),wb=e=>e||null,Gx=e=>e?"true":"false",Sb=e=>e===void 0?void 0:Gx(e),AX=e=>{if(e.length<2)return e[0]??"";const[t,...n]=e.reverse();return`${n.reverse().join(", ")} and ${t}`},mO="[&]:p-0 [&]:md:w-1/4 [&]:rounded-none",TX=({onChange:e,className:t})=>{const n=zn("qrCodes",Ef),{color:r,bgColor:i}=n;return y.jsxs(Pt,{title:"Colors",className:t,bodyClassName:"flex flex-col gap-4",children:[y.jsx(ui,{label:"Default color:",helpText:y.jsxs(y.Fragment,{children:["QR codes will initially use ",y.jsx("b",{"data-testid":"color",children:r})," color."]}),type:"color",value:r,onChange:o=>e({...n,color:o.target.value}),inputClassName:mO}),y.jsx(ui,{label:"Default background color:",helpText:y.jsxs(y.Fragment,{children:["QR codes will initially use ",y.jsx("b",{"data-testid":"bg-color",children:i})," background color."]}),type:"color",value:i,onChange:o=>e({...n,bgColor:o.target.value}),inputClassName:mO})]})},_N=({errorCorrection:e,onChange:t})=>y.jsxs(Qe,{buttonContent:e?`Error correction (${e})`:y.jsx("i",{children:"Default error correction"}),buttonClassName:"w-full",children:[y.jsxs(Qe.Item,{selected:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(Qe.Item,{selected:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(Qe.Item,{selected:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(Qe.Item,{selected:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),OX=["png","svg","webp","jpeg"],xN=({format:e,onChange:t})=>y.jsx(Qe,{buttonContent:`Format (${e})`,buttonClassName:"w-full",children:OX.map(n=>y.jsx(Qe.Item,{selected:e===n,onClick:()=>t(n),children:n},n))}),Du=({className:e,size:t,...n})=>y.jsx("span",{className:Pe("text-gray-500 dark:text-gray-400",{"text-sm":t==="sm","text-lg":t==="lg"},e),...n}),jX=({onChange:e})=>{const t=zn("qrCodes",Ef),{format:n,errorCorrection:r}=t;return y.jsxs(Pt,{title:"Format",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx(xN,{format:n,onChange:i=>e({...t,format:i})}),y.jsxs(Du,{size:"sm",children:["When downloading a QR code, it will use ",y.jsx("b",{"data-testid":"format",children:n})," format by default."]})]}),y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx(_N,{errorCorrection:r,onChange:i=>e({...t,errorCorrection:i})}),y.jsxs(Du,{size:"sm",children:["QR codes will initially have a ",y.jsx("b",{"data-testid":"error-correction",children:r})," error correction."]})]})]})},MX=({onChange:e,className:t})=>{const n=zn("qrCodes",Ef),{size:r,margin:i}=n;return y.jsxs(Pt,{title:"Size",className:t,bodyClassName:"flex flex-col gap-4",children:[y.jsx(ui,{label:"Default dimensions:",helpText:y.jsxs(y.Fragment,{children:["QR codes will be initially generated with ",y.jsxs("b",{"data-testid":"size",children:[r,"x",r,"px"]}),"."]}),type:"range",value:r,step:10,min:50,max:1e3,onChange:o=>e({...n,size:Number(o.target.value)}),inputClassName:"[&]:p-0"}),y.jsx(ui,{label:"Default margin:",helpText:y.jsxs(y.Fragment,{children:["QR codes will be initially generated with a ",y.jsxs("b",{"data-testid":"margin",children:[i,"px"]})," margin."]}),type:"range",value:i,step:1,min:0,max:100,onChange:o=>e({...n,margin:Number(o.target.value)}),inputClassName:"[&]:p-0"})]})},Qo=({children:e,helpText:t,"data-testid":n,...r})=>y.jsxs("div",{"data-testid":n,children:[y.jsxs(ja,{className:"flex items-center gap-x-2",children:[y.jsx(fK,{...r}),e]}),t&&y.jsx(Du,{size:"sm","data-testid":n?`${n}-help-text`:"help-text",className:"pl-10",children:t})]}),PX=({toggleRealTimeUpdates:e,onIntervalChange:t})=>{const{enabled:n,interval:r}=zn("realTimeUpdates",{enabled:!0});return y.jsxs(Pt,{title:"Real-time updates",className:"h-full",bodyClassName:"flex flex-col gap-y-4",children:[y.jsx(Qo,{checked:n,onChange:e,helpText:y.jsxs(y.Fragment,{children:["Real-time updates are currently being ",y.jsx("b",{children:n?"processed":"ignored"}),"."]}),children:"Enable or disable real-time updates."}),y.jsxs("div",{children:[y.jsx(ui,{label:y.jsx("span",{className:Pe({"dark:text-gray-400":!n}),children:"Real-time updates frequency (in minutes):"}),type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,onChange:({target:i})=>t(Number(i.value))}),n&&y.jsx(Du,{size:"sm",children:r?y.jsxs("span",{children:["Updates will be reflected in the UI every ",y.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},Cb=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",RX=e=>e==="includes"?y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"including"})," provided input."]}):y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"starting with"})," provided input."]}),LX=({onChange:e})=>{const t=zn("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return y.jsxs(Pt,{title:"Short URLs form",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsxs(Qo,{"data-testid":"validate-url",checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),helpText:y.jsxs(y.Fragment,{children:["The initial state of the ",y.jsx("b",{children:"Validate URL"})," checkbox will be ",y.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]}),children:["Request validation on long URLs when creating new short URLs."," ",y.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]})]}),y.jsx(Qo,{"data-testid":"forward-query",checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),helpText:y.jsxs(y.Fragment,{children:["The initial state of the ",y.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",y.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]}),children:"Make all new short URLs forward their query params to the long URL."}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx(ja,{className:"mb-1.5",children:"Tag suggestions search mode:"}),y.jsxs(Qe,{buttonContent:Cb(t.tagFilteringMode),buttonClassName:"w-full",children:[y.jsx(Qe.Item,{selected:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:Cb("startsWith")}),y.jsx(Qe.Item,{selected:t.tagFilteringMode==="includes",onClick:n("includes"),children:Cb("includes")})]}),y.jsx(Du,{size:"sm",className:"mt-0.5",children:RX(t.tagFilteringMode)})]})]})},NX={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},DX=({onChange:e,defaultOrdering:t})=>{const n=zn("shortUrlsList"),r=n?.confirmDeletions??!0;return y.jsxs(Pt,{title:"Short URLs list",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsx(Qo,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),helpText:y.jsxs(y.Fragment,{children:["When deleting a short URL, confirmation ",y.jsx("b",{children:r?"will":"won't"})," be required."]}),children:"Request confirmation before deleting a short URL."}),y.jsxs("div",{className:"flex flex-col gap-1.5",children:[y.jsx(ja,{children:"Default ordering for short URLs list:"}),y.jsx(Zh,{buttonClassName:"w-full",items:NX,order:n?.defaultOrdering??t,onChange:i=>e({defaultOrdering:!i.dir&&!i.field?void 0:i})})]})]})},kX={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},IX=({onChange:e})=>{const t=zn("tags",{});return y.jsx(Pt,{title:"Tags",className:"card",children:y.jsxs("div",{className:"flex flex-col gap-1.5",children:[y.jsx(ja,{children:"Default ordering for tags list:"}),y.jsx(Zh,{buttonClassName:"w-full",items:kX,order:t.defaultOrdering??{},onChange:n=>e({...t,defaultOrdering:!n.field&&!n.dir?void 0:n})})]})})},UX=({onChange:e,_matchMedia:t})=>{const n=zn("ui"),r=C.useMemo(()=>n?.theme??Rw(t),[n?.theme,t]);return y.jsxs(Pt,{title:"User interface",bodyClassName:"flex justify-between items-center",children:[y.jsx(Qo,{checked:r==="dark",onChange:i=>e({...n,theme:i?"dark":"light"}),children:"Use dark theme."}),y.jsx(Ye,{icon:r==="dark"?cV:tV})]})},pO={potentialBot:"Potential bot",date:"Date",country:"Country",region:"Region",city:"City",browser:"Browser",os:"OS",userAgent:"User agent",referer:"Referrer",visitedUrl:"Visited URL"},Tg={browser:["userAgent"],os:["userAgent"],userAgent:["browser","os"]};Object.freeze(Tg);const zX=({onChange:e})=>{const t=zn("visitsList"),n=C.useMemo(()=>Cf(vy,t?.columns??{}),[t?.columns]),r=C.useCallback((i,o)=>{const s={...n,[i]:o};o&&Tg[i]?.forEach(u=>{s[u]=!1}),e({columns:s})},[n,e]);return y.jsxs(Pt,{title:"Visits list",children:[y.jsx("p",{className:"mb-2",children:"Columns to show in visits table:"}),y.jsx("ul",{className:"flex flex-col gap-y-1",children:Object.entries(pO).map(([i,o])=>y.jsx("li",{children:y.jsx(Qo,{checked:n[i],onChange:s=>r(i,s),children:y.jsxs("span",{className:"inline-flex gap-2",children:[o,Tg[i]&&y.jsxs(Du,{children:["(excludes ",AX(Tg[i].map(s=>pO[s])),")"]})]})})},i))})]})},wN={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},BX=(e,t)=>!e||e==="all"?t:wN[e],FX=({onChange:e,active:t,allText:n})=>y.jsxs(Qe,{buttonContent:BX(t,n),buttonClassName:"w-full",children:[y.jsx(Qe.Item,{selected:t==="all",onClick:()=>e("all"),children:n}),y.jsx(Qe.Separator,{}),Object.entries(wN).map(([r,i])=>y.jsx(Qe.Item,{selected:t===r,onClick:()=>e(r),children:i},r))]}),gO=e=>e?.defaultInterval??"last30Days",$X=({onChange:e})=>{const t=zn("visits"),n=C.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??gO(t),...i}),[e,t]);return y.jsxs(Pt,{title:"Visits",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsx(Qo,{"data-testid":"exclude-bots",checked:!!t?.excludeBots,onChange:r=>n({excludeBots:r}),helpText:y.jsxs(y.Fragment,{children:["The visits coming from potential bots will be ",y.jsx("b",{children:t?.excludeBots?"excluded":"included"}),"."]}),children:"Exclude bots wherever possible (this options effect might depend on Shlink servers version)."}),y.jsx(Qo,{"data-testid":"compare-visits",checked:!!t?.loadPrevInterval,onChange:r=>n({loadPrevInterval:r}),helpText:y.jsxs(y.Fragment,{children:["When loading visits, previous period ",y.jsx("b",{children:t?.loadPrevInterval?"will":"won't"})," be loaded by default."]}),children:"Compare visits with previous period."}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx(ja,{className:"mb-1.5",children:"Default interval to load on visits sections:"}),y.jsx(FX,{allText:"All visits",active:gO(t),onChange:r=>n({defaultInterval:r})})]})]})},Vd=({children:e,className:t})=>y.jsx("div",{className:Pe("flex flex-col gap-4",t),children:e}),VX=({settings:e,onUpdateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=C.useCallback(d=>t?.(Cf(e,d)),[e,t]),i=C.useCallback(d=>r({realTimeUpdates:{enabled:d}}),[r]),o=C.useCallback(d=>r({realTimeUpdates:{interval:d}}),[r]),s=C.useCallback((d,f)=>r({[d]:f}),[r]),u=C.useCallback(d=>s("qrCodes",d),[s]);return y.jsxs(EN,{value:e,children:[y.jsxs(Qs,{className:"mb-4 sticky top-(--header-height) z-2",children:[y.jsx(Qs.Pill,{to:"../general",children:"General"}),y.jsx(Qs.Pill,{to:"../short-urls",children:"Short URLs"}),y.jsx(Qs.Pill,{to:"../visits",children:"Visits"}),y.jsx(Qs.Pill,{to:"../tags",children:"Tags"}),y.jsx(Qs.Pill,{to:"../qr-codes",children:"QR codes"})]}),y.jsxs(Gv,{children:[y.jsx(pt,{path:"general",element:y.jsxs(Vd,{children:[y.jsx(UX,{onChange:d=>s("ui",d)}),y.jsx(PX,{toggleRealTimeUpdates:i,onIntervalChange:o})]})}),y.jsx(pt,{path:"short-urls",element:y.jsxs(Vd,{children:[y.jsx(LX,{onChange:d=>s("shortUrlCreation",d)}),y.jsx(DX,{defaultOrdering:n,onChange:d=>s("shortUrlsList",d)})]})}),y.jsx(pt,{path:"visits",element:y.jsxs(Vd,{children:[y.jsx($X,{onChange:d=>s("visits",d)}),y.jsx(zX,{onChange:d=>s("visitsList",d)})]})}),y.jsx(pt,{path:"tags",element:y.jsx(Vd,{children:y.jsx(IX,{onChange:d=>s("tags",d)})})}),y.jsx(pt,{path:"qr-codes",element:y.jsxs(Vd,{children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx(MX,{onChange:u,className:"w-full"}),y.jsx(TX,{onChange:u,className:"w-full"})]}),y.jsx(jX,{onChange:u})]})}),y.jsx(pt,{path:"*",element:y.jsx(Z2,{replace:!0,to:"../general"})})]})]})},Ef={size:300,margin:0,color:"#000000",bgColor:"#ffffff",errorCorrection:"L",format:"png"};Object.freeze(Ef);const vy={potentialBot:!0,date:!0,country:!0,region:!1,city:!0,browser:!0,os:!0,userAgent:!1,referer:!0,visitedUrl:!0};Object.freeze(vy);const SN={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},visitsList:{columns:vy},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}},qrCodes:Ef},CN=C.createContext(SN),{Provider:EN}=CN,Fw=()=>C.useContext(CN)??SN;function zn(e,t){return Fw()[e]??t}var oh={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/var HX=oh.exports,vO;function qX(){return vO||(vO=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,u=n.ActiveXObject,d=n.EventSource,f=n.document,m=n.Promise,p=n.fetch,b=n.Response,_=n.TextDecoder,w=n.TextEncoder,x=n.AbortController;if(typeof window<"u"&&typeof f<"u"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(de){f.readyState="complete"},!1)),o==null&&u!=null&&(o=function(){return new u("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(de){function we(){}return we.prototype=de,new we}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var E=p;p=function(de,we){var Ae=we.signal;return E(de,{headers:we.headers,credentials:we.credentials,cache:we.cache}).then(function(Ne){var Ve=Ne.body.getReader();return Ae._reader=Ve,Ae._aborted&&Ae._reader.cancel(),{status:Ne.status,statusText:Ne.statusText,headers:Ne.headers,body:{getReader:function(){return Ve}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function T(){this.bitsNeeded=0,this.codePoint=0}T.prototype.decode=function(de){function we(De,Re,Me){if(Me===1)return De>=128>>Re&&De<<Re<=2047;if(Me===2)return De>=2048>>Re&&De<<Re<=55295||De>=57344>>Re&&De<<Re<=65535;if(Me===3)return De>=65536>>Re&&De<<Re<=1114111;throw new Error}function Ae(De,Re){if(De===6*1)return Re>>6>15?3:Re>31?2:1;if(De===6*2)return Re>15?3:2;if(De===6*3)return 3;throw new Error}for(var Ne=65533,Ve="",Fe=this.bitsNeeded,He=this.codePoint,be=0;be<de.length;be+=1){var _e=de[be];Fe!==0&&(_e<128||_e>191||!we(He<<6|_e&63,Fe-6,Ae(Fe,He)))&&(Fe=0,He=Ne,Ve+=String.fromCharCode(He)),Fe===0?(_e>=0&&_e<=127?(Fe=0,He=_e):_e>=192&&_e<=223?(Fe=6*1,He=_e&31):_e>=224&&_e<=239?(Fe=6*2,He=_e&15):_e>=240&&_e<=247?(Fe=6*3,He=_e&7):(Fe=0,He=Ne),Fe!==0&&!we(He,Fe,Ae(Fe,He))&&(Fe=0,He=Ne)):(Fe-=6,He=He<<6|_e&63),Fe===0&&(He<=65535?Ve+=String.fromCharCode(He):(Ve+=String.fromCharCode(55296+(He-65535-1>>10)),Ve+=String.fromCharCode(56320+(He-65535-1&1023))))}return this.bitsNeeded=Fe,this.codePoint=He,Ve};var j=function(){try{return new _().decode(new w().encode("test"),{stream:!0})==="test"}catch(de){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+de)}return!1};(_==null||w==null||!j())&&(_=T);var O=function(){};function N(de){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=de,this._sendTimeout=0,this._abort=O}N.prototype.open=function(de,we){this._abort(!0);var Ae=this,Ne=this._xhr,Ve=1,Fe=0;this._abort=function(Me){Ae._sendTimeout!==0&&(i(Ae._sendTimeout),Ae._sendTimeout=0),(Ve===1||Ve===2||Ve===3)&&(Ve=4,Ne.onload=O,Ne.onerror=O,Ne.onabort=O,Ne.onprogress=O,Ne.onreadystatechange=O,Ne.abort(),Fe!==0&&(i(Fe),Fe=0),Me||(Ae.readyState=4,Ae.onabort(null),Ae.onreadystatechange())),Ve=0};var He=function(){if(Ve===1){var Me=0,$e="",Ge=void 0;if("contentType"in Ne)Me=200,$e="OK",Ge=Ne.contentType;else try{Me=Ne.status,$e=Ne.statusText,Ge=Ne.getResponseHeader("Content-Type")}catch{Me=0,$e="",Ge=void 0}Me!==0&&(Ve=2,Ae.readyState=2,Ae.status=Me,Ae.statusText=$e,Ae._contentType=Ge,Ae.onreadystatechange())}},be=function(){if(He(),Ve===2||Ve===3){Ve=3;var Me="";try{Me=Ne.responseText}catch{}Ae.readyState=3,Ae.responseText=Me,Ae.onprogress()}},_e=function(Me,$e){if(($e==null||$e.preventDefault==null)&&($e={preventDefault:O}),be(),Ve===1||Ve===2||Ve===3){if(Ve=4,Fe!==0&&(i(Fe),Fe=0),Ae.readyState=4,Me==="load")Ae.onload($e);else if(Me==="error")Ae.onerror($e);else if(Me==="abort")Ae.onabort($e);else throw new TypeError;Ae.onreadystatechange()}},De=function(Me){Ne!=null&&(Ne.readyState===4?(!("onload"in Ne)||!("onerror"in Ne)||!("onabort"in Ne))&&_e(Ne.responseText===""?"error":"load",Me):Ne.readyState===3?"onprogress"in Ne||be():Ne.readyState===2&&He())},Re=function(){Fe=r(function(){Re()},500),Ne.readyState===3&&be()};"onload"in Ne&&(Ne.onload=function(Me){_e("load",Me)}),"onerror"in Ne&&(Ne.onerror=function(Me){_e("error",Me)}),"onabort"in Ne&&(Ne.onabort=function(Me){_e("abort",Me)}),"onprogress"in Ne&&(Ne.onprogress=be),"onreadystatechange"in Ne&&(Ne.onreadystatechange=function(Me){De(Me)}),("contentType"in Ne||!("ontimeout"in o.prototype))&&(we+=(we.indexOf("?")===-1?"?":"&")+"padding=true"),Ne.open(de,we,!0),"readyState"in Ne&&(Fe=r(function(){Re()},0))},N.prototype.abort=function(){this._abort(!1)},N.prototype.getResponseHeader=function(de){return this._contentType},N.prototype.setRequestHeader=function(de,we){var Ae=this._xhr;"setRequestHeader"in Ae&&Ae.setRequestHeader(de,we)},N.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},N.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var de=this;de._sendTimeout=r(function(){de._sendTimeout=0,de.send()},4);return}var we=this._xhr;"withCredentials"in we&&(we.withCredentials=this.withCredentials);try{we.send(void 0)}catch(Ae){throw Ae}};function F(de){return de.replace(/[A-Z]/g,function(we){return String.fromCharCode(we.charCodeAt(0)+32)})}function $(de){for(var we=Object.create(null),Ae=de.split(`\r
`),Ne=0;Ne<Ae.length;Ne+=1){var Ve=Ae[Ne],Fe=Ve.split(": "),He=Fe.shift(),be=Fe.join(": ");we[F(He)]=be}this._map=we}$.prototype.get=function(de){return this._map[F(de)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function K(){}K.prototype.open=function(de,we,Ae,Ne,Ve,Fe,He){de.open("GET",Ve);var be=0;de.onprogress=function(){var De=de.responseText,Re=De.slice(be);be+=Re.length,Ae(Re)},de.onerror=function(De){De.preventDefault(),Ne(new Error("NetworkError"))},de.onload=function(){Ne(null)},de.onabort=function(){Ne(null)},de.onreadystatechange=function(){if(de.readyState===o.HEADERS_RECEIVED){var De=de.status,Re=de.statusText,Me=de.getResponseHeader("Content-Type"),$e=de.getAllResponseHeaders();we(De,Re,Me,new $($e))}},de.withCredentials=Fe;for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&de.setRequestHeader(_e,He[_e]);return de.send(),de};function Q(de){this._headers=de}Q.prototype.get=function(de){return this._headers.get(de)};function oe(){}oe.prototype.open=function(de,we,Ae,Ne,Ve,Fe,He){var be=null,_e=new x,De=_e.signal,Re=new _;return p(Ve,{headers:He,credentials:Fe?"include":"same-origin",signal:De,cache:"no-store"}).then(function(Me){return be=Me.body.getReader(),we(Me.status,Me.statusText,Me.headers.get("Content-Type"),new Q(Me.headers)),new m(function($e,Ge){var Ze=function(){be.read().then(function(ut){if(ut.done)$e(void 0);else{var rt=Re.decode(ut.value,{stream:!0});Ae(rt),Ze()}}).catch(function(ut){Ge(ut)})};Ze()})}).catch(function(Me){if(Me.name!=="AbortError")return Me}).then(function(Me){Ne(Me)}),{abort:function(){be?.cancel(),_e.abort()}}};function ee(){this._listeners=Object.create(null)}function J(de){r(function(){throw de},0)}ee.prototype.dispatchEvent=function(de){de.target=this;var we=this._listeners[de.type];if(we!=null)for(var Ae=we.length,Ne=0;Ne<Ae;Ne+=1){var Ve=we[Ne];try{typeof Ve.handleEvent=="function"?Ve.handleEvent(de):Ve.call(this,de)}catch(Fe){J(Fe)}}},ee.prototype.addEventListener=function(de,we){de=String(de);var Ae=this._listeners,Ne=Ae[de];Ne==null&&(Ne=[],Ae[de]=Ne);for(var Ve=!1,Fe=0;Fe<Ne.length;Fe+=1)Ne[Fe]===we&&(Ve=!0);Ve||Ne.push(we)},ee.prototype.removeEventListener=function(de,we){de=String(de);var Ae=this._listeners,Ne=Ae[de];if(Ne!=null){for(var Ve=[],Fe=0;Fe<Ne.length;Fe+=1)Ne[Fe]!==we&&Ve.push(Ne[Fe]);Ve.length===0?delete Ae[de]:Ae[de]=Ve}};function te(de){this.type=de,this.target=void 0}function he(de,we){te.call(this,de),this.data=we.data,this.lastEventId=we.lastEventId}he.prototype=Object.create(te.prototype);function X(de,we){te.call(this,de),this.status=we.status,this.statusText=we.statusText,this.headers=we.headers}X.prototype=Object.create(te.prototype);function se(de,we){te.call(this,de),this.error=we.error}se.prototype=Object.create(te.prototype);var Z=-1,I=0,k=1,U=2,z=-1,P=0,G=1,Y=2,ne=3,ue=/^text\/event\-stream(;.*)?$/i,fe=1e3,ge=18e6,D=function(de,we){var Ae=de==null?we:parseInt(de,10);return Ae!==Ae&&(Ae=we),B(Ae)},B=function(de){return Math.min(Math.max(de,fe),ge)},W=function(de,we,Ae){try{typeof we=="function"&&we.call(de,Ae)}catch(Ne){J(Ne)}};function le(de,we){ee.call(this),we=we||{},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,ce(this,de,we)}function H(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var ae=p!=null&&b!=null&&"body"in b.prototype;function ce(de,we,Ae){we=String(we);var Ne=!!Ae.withCredentials,Ve=Ae.lastEventIdQueryParameterName||"lastEventId",Fe=B(1e3),He=D(Ae.heartbeatTimeout,45e3),be="",_e=Fe,De=!1,Re=0,Me=Ae.headers||{},$e=Ae.Transport,Ge=ae&&$e==null?void 0:new N($e!=null?new $e:H()),Ze=$e!=null&&typeof $e!="string"?new $e:Ge==null?new oe:new K,ut=void 0,rt=0,dt=Z,gt="",Dt="",yt="",Ui="",Kn=P,jl=0,Dr=0,mo=function(Cn,fn,Zn,_n){if(dt===I)if(Cn===200&&Zn!=null&&ue.test(Zn)){dt=k,De=Date.now(),_e=Fe,de.readyState=k;var Xn=new X("open",{status:Cn,statusText:fn,headers:_n});de.dispatchEvent(Xn),W(de,de.onopen,Xn)}else{var En="";Cn!==200?(fn&&(fn=fn.replace(/\s+/g," ")),En="EventSource's response has a status "+Cn+" "+fn+" that is not 200. Aborting the connection."):En="EventSource's response has a Content-Type specifying an unsupported type: "+(Zn==null?"-":Zn.replace(/\s+/g," "))+". Aborting the connection.",Da();var Xn=new X("error",{status:Cn,statusText:fn,headers:_n});de.dispatchEvent(Xn),W(de,de.onerror,Xn),console.error(En)}},po=function(Cn){if(dt===k){for(var fn=-1,Zn=0;Zn<Cn.length;Zn+=1){var _n=Cn.charCodeAt(Zn);(_n===10||_n===13)&&(fn=Zn)}var Xn=(fn!==-1?Ui:"")+Cn.slice(0,fn+1);Ui=(fn===-1?Ui:"")+Cn.slice(fn+1),Cn!==""&&(De=Date.now(),Re+=Cn.length);for(var En=0;En<Xn.length;En+=1){var _n=Xn.charCodeAt(En);if(Kn===z&&_n===10)Kn=P;else if(Kn===z&&(Kn=P),_n===13||_n===10){if(Kn!==P){Kn===G&&(Dr=En+1);var Gr=Xn.slice(jl,Dr-1),Yr=Xn.slice(Dr+(Dr<En&&Xn.charCodeAt(Dr)===32?1:0),En);Gr==="data"?(gt+=`
`,gt+=Yr):Gr==="id"?Dt=Yr:Gr==="event"?yt=Yr:Gr==="retry"?(Fe=D(Yr,Fe),_e=Fe):Gr==="heartbeatTimeout"&&(He=D(Yr,He),rt!==0&&(i(rt),rt=r(function(){ci()},He)))}if(Kn===P){if(gt!==""){be=Dt,yt===""&&(yt="message");var Dn=new he(yt,{data:gt.slice(1),lastEventId:Dt});if(de.dispatchEvent(Dn),yt==="open"?W(de,de.onopen,Dn):yt==="message"?W(de,de.onmessage,Dn):yt==="error"&&W(de,de.onerror,Dn),dt===U)return}gt="",yt=""}Kn=_n===13?z:P}else Kn===P&&(jl=En,Kn=G),Kn===G?_n===58&&(Dr=En+1,Kn=Y):Kn===Y&&(Kn=ne)}}},zi=function(Cn){if(dt===k||dt===I){dt=Z,rt!==0&&(i(rt),rt=0),rt=r(function(){ci()},_e),_e=B(Math.min(Fe*16,_e*2)),de.readyState=I;var fn=new se("error",{error:Cn});de.dispatchEvent(fn),W(de,de.onerror,fn),Cn!=null&&console.error(Cn)}},Da=function(){dt=U,ut!=null&&(ut.abort(),ut=void 0),rt!==0&&(i(rt),rt=0),de.readyState=U},ci=function(){if(rt=0,dt!==Z){if(!De&&ut!=null)zi(new Error("No activity within "+He+" milliseconds. "+(dt===I?"No response received.":Re+" chars received.")+" Reconnecting.")),ut!=null&&(ut.abort(),ut=void 0);else{var Cn=Math.max((De||Date.now())+He-Date.now(),1);De=!1,rt=r(function(){ci()},Cn)}return}De=!1,Re=0,rt=r(function(){ci()},He),dt=I,gt="",yt="",Dt=be,Ui="",jl=0,Dr=0,Kn=P;var fn=we;if(we.slice(0,5)!=="data:"&&we.slice(0,5)!=="blob:"&&be!==""){var Zn=we.indexOf("?");fn=Zn===-1?we:we.slice(0,Zn+1)+we.slice(Zn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Yr,Dn){return Dn===Ve?"":Yr}),fn+=(we.indexOf("?")===-1?"?":"&")+Ve+"="+encodeURIComponent(be)}var _n=de.withCredentials,Xn={};Xn.Accept="text/event-stream";var En=de.headers;if(En!=null)for(var Gr in En)Object.prototype.hasOwnProperty.call(En,Gr)&&(Xn[Gr]=En[Gr]);try{ut=Ze.open(Ge,mo,po,zi,fn,_n,Xn)}catch(Yr){throw Da(),Yr}};de.url=we,de.readyState=I,de.withCredentials=Ne,de.headers=Me,de._close=Da,ci()}le.prototype=Object.create(ee.prototype),le.prototype.CONNECTING=I,le.prototype.OPEN=k,le.prototype.CLOSED=U,le.prototype.close=function(){this._close()},le.CONNECTING=I,le.OPEN=k,le.CLOSED=U,le.prototype.withCredentials=void 0;var ve=d;o!=null&&(d==null||!("withCredentials"in d.prototype))&&(ve=le),function(de){{var we=de(t);we!==void 0&&(e.exports=we)}}(function(de){de.EventSourcePolyfill=le,de.NativeEventSource=d,de.EventSource=ve})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:HX:globalThis)}(oh,oh.exports)),oh.exports}var GX=qX();const $w=6048e5,YX=864e5,AN=6e4,Vw=36e5,Zp=43200,yO=1440,bO=Symbol.for("constructDateFrom");function Cr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bO in e?e[bO](t):e instanceof Date?new e.constructor(t):new Date(t)}function Tt(e,t){return Cr(t||e,e)}function Hw(e,t,n){const r=Tt(e,n?.in);return isNaN(t)?Cr(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function WX(e,t,n){const r=Tt(e,n?.in);if(isNaN(t))return Cr(e,NaN);if(!t)return r;const i=r.getDate(),o=Cr(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const s=o.getDate();return i>=s?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function KX(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:s=0,hours:u=0,minutes:d=0,seconds:f=0}=t,m=Tt(e,n?.in),p=i||r?WX(m,i+r*12):m,b=s||o?Hw(p,s+o*7):p,_=d+u*60,x=(f+_*60)*1e3;return Cr(e,+b+x)}let ZX={};function Qh(){return ZX}function ku(e,t){const n=Qh(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Tt(e,t?.in),o=i.getDay(),s=(o<r?7:0)+o-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Oh(e,t){return ku(e,{...t,weekStartsOn:1})}function TN(e,t){const n=Tt(e,t?.in),r=n.getFullYear(),i=Cr(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Oh(i),s=Cr(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=Oh(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function nf(e){const t=Tt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Hu(e,...t){const n=Cr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Iu(e,t){const n=Tt(e,t?.in);return n.setHours(0,0,0,0),n}function yy(e,t,n){const[r,i]=Hu(n?.in,e,t),o=Iu(r),s=Iu(i),u=+o-nf(o),d=+s-nf(s);return Math.round((u-d)/YX)}function XX(e,t){const n=TN(e,t),r=Cr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Oh(r)}function ON(e,t){let n,r=t?.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Cr.bind(null,i));const o=Tt(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),Cr(r,n||NaN)}function QX(e,t){let n,r=t?.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Cr.bind(null,i));const o=Tt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),Cr(r,n||NaN)}function Og(e,t){const n=+Tt(e)-+Tt(t);return n<0?-1:n>0?1:n}function JX(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function eQ(e){return!(!JX(e)&&typeof e!="number"||isNaN(+Tt(e)))}function nv(e,t,n){const[r,i]=Hu(n?.in,e,t),o=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return o*12+s}function tQ(e,t,n){const[r,i]=Hu(n?.in,e,t),o=ku(r,n),s=ku(i,n),u=+o-nf(o),d=+s-nf(s);return Math.round((u-d)/$w)}function jN(e,t,n){const[r,i]=Hu(n?.in,e,t),o=_O(r,i),s=Math.abs(yy(r,i));r.setDate(r.getDate()-o*s);const u=+(_O(r,i)===-o),d=o*(s-u);return d===0?0:d}function _O(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function MN(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function nQ(e,t,n){const[r,i]=Hu(n?.in,e,t),o=(+r-+i)/Vw;return MN(n?.roundingMethod)(o)}function rQ(e,t){return+Tt(e)-+Tt(t)}function rf(e,t){const n=Tt(e,t?.in);return n.setHours(23,59,59,999),n}function iQ(e,t){const n=Tt(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function aQ(e,t){const n=Tt(e,t?.in);return+rf(n,t)==+iQ(n,t)}function oQ(e,t,n){const[r,i,o]=Hu(n?.in,e,e,t),s=Og(i,o),u=Math.abs(nv(i,o));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*u);let d=Og(i,o)===-s;aQ(r)&&u===1&&Og(r,o)===1&&(d=!1);const f=s*(u-+d);return f===0?0:f}function sQ(e,t,n){const r=rQ(e,t)/1e3;return MN(n?.roundingMethod)(r)}function lQ(e,t){const n=Tt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uQ(e,t){const n=t?.weekStartsOn,r=Tt(e,t?.in),i=r.getDay(),o=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function cQ(e,t){return uQ(e,{...t,weekStartsOn:1})}const fQ={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"}},dQ=(e,t,n)=>{let r;const i=fQ[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Eb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const hQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gQ={date:Eb({formats:hQ,defaultWidth:"full"}),time:Eb({formats:mQ,defaultWidth:"full"}),dateTime:Eb({formats:pQ,defaultWidth:"full"})},vQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yQ=(e,t,n,r)=>vQ[e];function Hd(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,u=n?.width?String(n.width):s;i=e.formattingValues[u]||e.formattingValues[s]}else{const s=e.defaultWidth,u=n?.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const bQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_Q={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xQ={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"]},wQ={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"]},SQ={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"}},CQ={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"}},EQ=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},AQ={ordinalNumber:EQ,era:Hd({values:bQ,defaultWidth:"wide"}),quarter:Hd({values:_Q,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Hd({values:xQ,defaultWidth:"wide"}),day:Hd({values:wQ,defaultWidth:"wide"}),dayPeriod:Hd({values:SQ,defaultWidth:"wide",formattingValues:CQ,defaultFormattingWidth:"wide"})};function qd(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const s=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?OQ(u,p=>p.test(s)):TQ(u,p=>p.test(s));let f;f=e.valueCallback?e.valueCallback(d):d,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(s.length);return{value:f,rest:m}}}function TQ(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function OQ(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jQ(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const u=t.slice(i.length);return{value:s,rest:u}}}const MQ=/^(\d+)(th|st|nd|rd)?/i,PQ=/\d+/i,RQ={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},LQ={any:[/^b/i,/^(a|c)/i]},NQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},DQ={any:[/1/i,/2/i,/3/i,/4/i]},kQ={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},IQ={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]},UQ={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},zQ={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]},BQ={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},FQ={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}},$Q={ordinalNumber:jQ({matchPattern:MQ,parsePattern:PQ,valueCallback:e=>parseInt(e,10)}),era:qd({matchPatterns:RQ,defaultMatchWidth:"wide",parsePatterns:LQ,defaultParseWidth:"any"}),quarter:qd({matchPatterns:NQ,defaultMatchWidth:"wide",parsePatterns:DQ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qd({matchPatterns:kQ,defaultMatchWidth:"wide",parsePatterns:IQ,defaultParseWidth:"any"}),day:qd({matchPatterns:UQ,defaultMatchWidth:"wide",parsePatterns:zQ,defaultParseWidth:"any"}),dayPeriod:qd({matchPatterns:BQ,defaultMatchWidth:"any",parsePatterns:FQ,defaultParseWidth:"any"})},PN={code:"en-US",formatDistance:dQ,formatLong:gQ,formatRelative:yQ,localize:AQ,match:$Q,options:{weekStartsOn:0,firstWeekContainsDate:1}};function VQ(e,t){const n=Tt(e,t?.in);return yy(n,lQ(n))+1}function HQ(e,t){const n=Tt(e,t?.in),r=+Oh(n)-+XX(n);return Math.round(r/$w)+1}function RN(e,t){const n=Tt(e,t?.in),r=n.getFullYear(),i=Qh(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=Cr(t?.in||e,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const u=ku(s,t),d=Cr(t?.in||e,0);d.setFullYear(r,0,o),d.setHours(0,0,0,0);const f=ku(d,t);return+n>=+u?r+1:+n>=+f?r:r-1}function qQ(e,t){const n=Qh(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=RN(e,t),o=Cr(t?.in||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),ku(o,t)}function GQ(e,t){const n=Tt(e,t?.in),r=+ku(n,t)-+qQ(n,t);return Math.round(r/$w)+1}function At(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ks={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return At(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):At(n+1,2)},d(e,t){return At(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return At(e.getHours()%12||12,t.length)},H(e,t){return At(e.getHours(),t.length)},m(e,t){return At(e.getMinutes(),t.length)},s(e,t){return At(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return At(i,t.length)}},zc={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xO={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ks.y(e,t)},Y:function(e,t,n,r){const i=RN(e,r),o=i>0?i:1-i;if(t==="YY"){const s=o%100;return At(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):At(o,t.length)},R:function(e,t){const n=TN(e);return At(n,t.length)},u:function(e,t){const n=e.getFullYear();return At(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return At(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return At(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ks.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return At(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=GQ(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):At(i,t.length)},I:function(e,t,n){const r=HQ(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):At(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ks.d(e,t)},D:function(e,t,n){const r=VQ(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):At(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return At(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return At(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return At(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=zc.noon:r===0?i=zc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=zc.evening:r>=12?i=zc.afternoon:r>=4?i=zc.morning:i=zc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ks.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ks.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ks.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ks.s(e,t)},S:function(e,t){return Ks.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return SO(r);case"XXXX":case"XX":return mu(r);case"XXXXX":case"XXX":default:return mu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return SO(r);case"xxxx":case"xx":return mu(r);case"xxxxx":case"xxx":default:return mu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wO(r,":");case"OOOO":default:return"GMT"+mu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wO(r,":");case"zzzz":default:return"GMT"+mu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return At(r,t.length)},T:function(e,t,n){return At(+e,t.length)}};function wO(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+At(o,2)}function SO(e,t){return e%60===0?(e>0?"-":"+")+At(Math.abs(e)/60,2):mu(e,t)}function mu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=At(Math.trunc(r/60),2),o=At(r%60,2);return n+i+t+o}const CO=(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"})}},LN=(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"})}},YQ=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return CO(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",CO(r,t)).replace("{{time}}",LN(i,t))},WQ={p:LN,P:YQ},KQ=/^D+$/,ZQ=/^Y+$/,XQ=["D","DD","YY","YYYY"];function QQ(e){return KQ.test(e)}function JQ(e){return ZQ.test(e)}function eJ(e,t,n){const r=tJ(e,t,n);if(console.warn(r),XQ.includes(e))throw new RangeError(r)}function tJ(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nJ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rJ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iJ=/^'([^]*?)'?$/,aJ=/''/g,oJ=/[a-zA-Z]/;function rv(e,t,n){const r=Qh(),i=r.locale??PN,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=Tt(e,n?.in);if(!eQ(u))throw new RangeError("Invalid time value");let d=t.match(rJ).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=WQ[p];return b(m,i.formatLong)}return m}).join("").match(nJ).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:sJ(m)};if(xO[p])return{isToken:!0,value:m};if(p.match(oJ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const f={firstWeekContainsDate:o,weekStartsOn:s,locale:i};return d.map(m=>{if(!m.isToken)return m.value;const p=m.value;(JQ(p)||QQ(p))&&eJ(p,t,String(e));const b=xO[p[0]];return b(u,p,i.localize,f)}).join("")}function sJ(e){const t=e.match(iJ);return t?t[1].replace(aJ,"'"):e}function lJ(e,t,n){const r=Qh(),i=n?.locale??r.locale??PN,o=2520,s=Og(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[d,f]=Hu(n?.in,...s>0?[t,e]:[e,t]),m=sQ(f,d),p=(nf(f)-nf(d))/1e3,b=Math.round((m-p)/60);let _;if(b<2)return b===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",b,u);if(b<45)return i.formatDistance("xMinutes",b,u);if(b<90)return i.formatDistance("aboutXHours",1,u);if(b<yO){const w=Math.round(b/60);return i.formatDistance("aboutXHours",w,u)}else{if(b<o)return i.formatDistance("xDays",1,u);if(b<Zp){const w=Math.round(b/yO);return i.formatDistance("xDays",w,u)}else if(b<Zp*2)return _=Math.round(b/Zp),i.formatDistance("aboutXMonths",_,u)}if(_=oQ(f,d),_<12){const w=Math.round(b/Zp);return i.formatDistance("xMonths",w,u)}else{const w=_%12,x=Math.trunc(_/12);return w<3?i.formatDistance("aboutXYears",x,u):w<9?i.formatDistance("overXYears",x,u):i.formatDistance("almostXYears",x+1,u)}}function uJ(e,t){const n=Tt(e,t?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const o="-",s=":";{const u=At(n.getDate(),2),d=At(n.getMonth()+1,2);r=`${At(n.getFullYear(),4)}${o}${d}${o}${u}`}{const u=n.getTimezoneOffset();if(u!==0){const _=Math.abs(u),w=At(Math.trunc(_/60),2),x=At(_%60,2);i=`${u<0?"+":"-"}${w}:${x}`}else i="Z";const d=At(n.getHours(),2),f=At(n.getMinutes(),2),m=At(n.getSeconds(),2),p=r===""?"":"T",b=[d,f,m].join(s);r=`${r}${p}${b}${i}`}return r}function cJ(e){return Math.trunc(+Tt(e)/1e3)}function fJ(e,t){return+Tt(e)>+Tt(t)}function iv(e,t){return+Tt(e)<+Tt(t)}function Yx(e,t){return+Tt(e)==+Tt(t)}function dJ(e,t,n){const r=+Tt(e,n?.in),[i,o]=[+Tt(t.start,n?.in),+Tt(t.end,n?.in)].sort((s,u)=>s-u);return r>=i&&r<=o}function av(e,t,n){return Hw(e,-t,n)}function hl(e,t){const n=()=>Cr(t?.in,NaN),i=gJ(e);let o;if(i.date){const f=vJ(i.date,2);o=yJ(f.restDateString,f.year)}if(!o||isNaN(+o))return n();const s=+o;let u=0,d;if(i.time&&(u=bJ(i.time),isNaN(u)))return n();if(i.timezone){if(d=_J(i.timezone),isNaN(d))return n()}else{const f=new Date(s+u),m=Tt(0,t?.in);return m.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),m.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),m}return Tt(s+u+d,t?.in)}const Xp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},hJ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,mJ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,pJ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function gJ(e){const t={},n=e.split(Xp.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Xp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Xp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Xp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function vJ(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function yJ(e,t){if(t===null)return new Date(NaN);const n=e.match(hJ);if(!n)return new Date(NaN);const r=!!n[4],i=Gd(n[1]),o=Gd(n[2])-1,s=Gd(n[3]),u=Gd(n[4]),d=Gd(n[5])-1;if(r)return EJ(t,u,d)?xJ(t,u,d):new Date(NaN);{const f=new Date(0);return!SJ(t,o,s)||!CJ(t,i)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(i,s)),f)}}function Gd(e){return e?parseInt(e):1}function bJ(e){const t=e.match(mJ);if(!t)return NaN;const n=Ab(t[1]),r=Ab(t[2]),i=Ab(t[3]);return AJ(n,r,i)?n*Vw+r*AN+i*1e3:NaN}function Ab(e){return e&&parseFloat(e.replace(",","."))||0}function _J(e){if(e==="Z")return 0;const t=e.match(pJ);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return TJ(r,i)?n*(r*Vw+i*AN):NaN}function xJ(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const wJ=[31,null,31,30,31,30,31,31,30,31,30,31];function NN(e){return e%400===0||e%4===0&&e%100!==0}function SJ(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(wJ[t]||(NN(e)?29:28))}function CJ(e,t){return t>=1&&t<=(NN(e)?366:365)}function EJ(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function AJ(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function TJ(e,t){return t>=0&&t<=59}var jg={exports:{}},OJ=jg.exports,EO;function jJ(){return EO||(EO=1,function(e,t){(function(n,r){e.exports=r()})(OJ,()=>(()=>{var n={873:(s,u)=>{var d,f,m=function(){var p=function(X,se){var Z=X,I=T[se],k=null,U=0,z=null,P=[],G={},Y=function(H,ae){k=function(ce){for(var ve=new Array(ce),de=0;de<ce;de+=1){ve[de]=new Array(ce);for(var we=0;we<ce;we+=1)ve[de][we]=null}return ve}(U=4*Z+17),ne(0,0),ne(U-7,0),ne(0,U-7),fe(),ue(),D(H,ae),Z>=7&&ge(H),z==null&&(z=W(Z,I,P)),B(z,ae)},ne=function(H,ae){for(var ce=-1;ce<=7;ce+=1)if(!(H+ce<=-1||U<=H+ce))for(var ve=-1;ve<=7;ve+=1)ae+ve<=-1||U<=ae+ve||(k[H+ce][ae+ve]=0<=ce&&ce<=6&&(ve==0||ve==6)||0<=ve&&ve<=6&&(ce==0||ce==6)||2<=ce&&ce<=4&&2<=ve&&ve<=4)},ue=function(){for(var H=8;H<U-8;H+=1)k[H][6]==null&&(k[H][6]=H%2==0);for(var ae=8;ae<U-8;ae+=1)k[6][ae]==null&&(k[6][ae]=ae%2==0)},fe=function(){for(var H=j.getPatternPosition(Z),ae=0;ae<H.length;ae+=1)for(var ce=0;ce<H.length;ce+=1){var ve=H[ae],de=H[ce];if(k[ve][de]==null)for(var we=-2;we<=2;we+=1)for(var Ae=-2;Ae<=2;Ae+=1)k[ve+we][de+Ae]=we==-2||we==2||Ae==-2||Ae==2||we==0&&Ae==0}},ge=function(H){for(var ae=j.getBCHTypeNumber(Z),ce=0;ce<18;ce+=1){var ve=!H&&(ae>>ce&1)==1;k[Math.floor(ce/3)][ce%3+U-8-3]=ve}for(ce=0;ce<18;ce+=1)ve=!H&&(ae>>ce&1)==1,k[ce%3+U-8-3][Math.floor(ce/3)]=ve},D=function(H,ae){for(var ce=I<<3|ae,ve=j.getBCHTypeInfo(ce),de=0;de<15;de+=1){var we=!H&&(ve>>de&1)==1;de<6?k[de][8]=we:de<8?k[de+1][8]=we:k[U-15+de][8]=we}for(de=0;de<15;de+=1)we=!H&&(ve>>de&1)==1,de<8?k[8][U-de-1]=we:de<9?k[8][15-de-1+1]=we:k[8][15-de-1]=we;k[U-8][8]=!H},B=function(H,ae){for(var ce=-1,ve=U-1,de=7,we=0,Ae=j.getMaskFunction(ae),Ne=U-1;Ne>0;Ne-=2)for(Ne==6&&(Ne-=1);;){for(var Ve=0;Ve<2;Ve+=1)if(k[ve][Ne-Ve]==null){var Fe=!1;we<H.length&&(Fe=(H[we]>>>de&1)==1),Ae(ve,Ne-Ve)&&(Fe=!Fe),k[ve][Ne-Ve]=Fe,(de-=1)==-1&&(we+=1,de=7)}if((ve+=ce)<0||U<=ve){ve-=ce,ce=-ce;break}}},W=function(H,ae,ce){for(var ve=F.getRSBlocks(H,ae),de=$(),we=0;we<ce.length;we+=1){var Ae=ce[we];de.put(Ae.getMode(),4),de.put(Ae.getLength(),j.getLengthInBits(Ae.getMode(),H)),Ae.write(de)}var Ne=0;for(we=0;we<ve.length;we+=1)Ne+=ve[we].dataCount;if(de.getLengthInBits()>8*Ne)throw"code length overflow. ("+de.getLengthInBits()+">"+8*Ne+")";for(de.getLengthInBits()+4<=8*Ne&&de.put(0,4);de.getLengthInBits()%8!=0;)de.putBit(!1);for(;!(de.getLengthInBits()>=8*Ne||(de.put(236,8),de.getLengthInBits()>=8*Ne));)de.put(17,8);return function(Ve,Fe){for(var He=0,be=0,_e=0,De=new Array(Fe.length),Re=new Array(Fe.length),Me=0;Me<Fe.length;Me+=1){var $e=Fe[Me].dataCount,Ge=Fe[Me].totalCount-$e;be=Math.max(be,$e),_e=Math.max(_e,Ge),De[Me]=new Array($e);for(var Ze=0;Ze<De[Me].length;Ze+=1)De[Me][Ze]=255&Ve.getBuffer()[Ze+He];He+=$e;var ut=j.getErrorCorrectPolynomial(Ge),rt=N(De[Me],ut.getLength()-1).mod(ut);for(Re[Me]=new Array(ut.getLength()-1),Ze=0;Ze<Re[Me].length;Ze+=1){var dt=Ze+rt.getLength()-Re[Me].length;Re[Me][Ze]=dt>=0?rt.getAt(dt):0}}var gt=0;for(Ze=0;Ze<Fe.length;Ze+=1)gt+=Fe[Ze].totalCount;var Dt=new Array(gt),yt=0;for(Ze=0;Ze<be;Ze+=1)for(Me=0;Me<Fe.length;Me+=1)Ze<De[Me].length&&(Dt[yt]=De[Me][Ze],yt+=1);for(Ze=0;Ze<_e;Ze+=1)for(Me=0;Me<Fe.length;Me+=1)Ze<Re[Me].length&&(Dt[yt]=Re[Me][Ze],yt+=1);return Dt}(de,ve)};G.addData=function(H,ae){var ce=null;switch(ae=ae||"Byte"){case"Numeric":ce=K(H);break;case"Alphanumeric":ce=Q(H);break;case"Byte":ce=oe(H);break;case"Kanji":ce=ee(H);break;default:throw"mode:"+ae}P.push(ce),z=null},G.isDark=function(H,ae){if(H<0||U<=H||ae<0||U<=ae)throw H+","+ae;return k[H][ae]},G.getModuleCount=function(){return U},G.make=function(){if(Z<1){for(var H=1;H<40;H++){for(var ae=F.getRSBlocks(H,I),ce=$(),ve=0;ve<P.length;ve++){var de=P[ve];ce.put(de.getMode(),4),ce.put(de.getLength(),j.getLengthInBits(de.getMode(),H)),de.write(ce)}var we=0;for(ve=0;ve<ae.length;ve++)we+=ae[ve].dataCount;if(ce.getLengthInBits()<=8*we)break}Z=H}Y(!1,function(){for(var Ae=0,Ne=0,Ve=0;Ve<8;Ve+=1){Y(!0,Ve);var Fe=j.getLostPoint(G);(Ve==0||Ae>Fe)&&(Ae=Fe,Ne=Ve)}return Ne}())},G.createTableTag=function(H,ae){H=H||2;var ce="";ce+='<table style="',ce+=" border-width: 0px; border-style: none;",ce+=" border-collapse: collapse;",ce+=" padding: 0px; margin: "+(ae=ae===void 0?4*H:ae)+"px;",ce+='">',ce+="<tbody>";for(var ve=0;ve<G.getModuleCount();ve+=1){ce+="<tr>";for(var de=0;de<G.getModuleCount();de+=1)ce+='<td style="',ce+=" border-width: 0px; border-style: none;",ce+=" border-collapse: collapse;",ce+=" padding: 0px; margin: 0px;",ce+=" width: "+H+"px;",ce+=" height: "+H+"px;",ce+=" background-color: ",ce+=G.isDark(ve,de)?"#000000":"#ffffff",ce+=";",ce+='"/>';ce+="</tr>"}return(ce+="</tbody>")+"</table>"},G.createSvgTag=function(H,ae,ce,ve){var de={};typeof arguments[0]=="object"&&(H=(de=arguments[0]).cellSize,ae=de.margin,ce=de.alt,ve=de.title),H=H||2,ae=ae===void 0?4*H:ae,(ce=typeof ce=="string"?{text:ce}:ce||{}).text=ce.text||null,ce.id=ce.text?ce.id||"qrcode-description":null,(ve=typeof ve=="string"?{text:ve}:ve||{}).text=ve.text||null,ve.id=ve.text?ve.id||"qrcode-title":null;var we,Ae,Ne,Ve,Fe=G.getModuleCount()*H+2*ae,He="";for(Ve="l"+H+",0 0,"+H+" -"+H+",0 0,-"+H+"z ",He+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',He+=de.scalable?"":' width="'+Fe+'px" height="'+Fe+'px"',He+=' viewBox="0 0 '+Fe+" "+Fe+'" ',He+=' preserveAspectRatio="xMinYMin meet"',He+=ve.text||ce.text?' role="img" aria-labelledby="'+le([ve.id,ce.id].join(" ").trim())+'"':"",He+=">",He+=ve.text?'<title id="'+le(ve.id)+'">'+le(ve.text)+"</title>":"",He+=ce.text?'<description id="'+le(ce.id)+'">'+le(ce.text)+"</description>":"",He+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',He+='<path d="',Ae=0;Ae<G.getModuleCount();Ae+=1)for(Ne=Ae*H+ae,we=0;we<G.getModuleCount();we+=1)G.isDark(Ae,we)&&(He+="M"+(we*H+ae)+","+Ne+Ve);return(He+='" stroke="transparent" fill="black"/>')+"</svg>"},G.createDataURL=function(H,ae){H=H||2,ae=ae===void 0?4*H:ae;var ce=G.getModuleCount()*H+2*ae,ve=ae,de=ce-ae;return he(ce,ce,function(we,Ae){if(ve<=we&&we<de&&ve<=Ae&&Ae<de){var Ne=Math.floor((we-ve)/H),Ve=Math.floor((Ae-ve)/H);return G.isDark(Ve,Ne)?0:1}return 1})},G.createImgTag=function(H,ae,ce){H=H||2,ae=ae===void 0?4*H:ae;var ve=G.getModuleCount()*H+2*ae,de="";return de+="<img",de+=' src="',de+=G.createDataURL(H,ae),de+='"',de+=' width="',de+=ve,de+='"',de+=' height="',de+=ve,de+='"',ce&&(de+=' alt="',de+=le(ce),de+='"'),de+"/>"};var le=function(H){for(var ae="",ce=0;ce<H.length;ce+=1){var ve=H.charAt(ce);switch(ve){case"<":ae+="&lt;";break;case">":ae+="&gt;";break;case"&":ae+="&amp;";break;case'"':ae+="&quot;";break;default:ae+=ve}}return ae};return G.createASCII=function(H,ae){if((H=H||1)<2)return function(De){De=De===void 0?2:De;var Re,Me,$e,Ge,Ze,ut=1*G.getModuleCount()+2*De,rt=De,dt=ut-De,gt={"██":"█","█ ":"▀"," █":"▄"," ":" "},Dt={"██":"▀","█ ":"▀"," █":" "," ":" "},yt="";for(Re=0;Re<ut;Re+=2){for($e=Math.floor((Re-rt)/1),Ge=Math.floor((Re+1-rt)/1),Me=0;Me<ut;Me+=1)Ze="█",rt<=Me&&Me<dt&&rt<=Re&&Re<dt&&G.isDark($e,Math.floor((Me-rt)/1))&&(Ze=" "),rt<=Me&&Me<dt&&rt<=Re+1&&Re+1<dt&&G.isDark(Ge,Math.floor((Me-rt)/1))?Ze+=" ":Ze+="█",yt+=De<1&&Re+1>=dt?Dt[Ze]:gt[Ze];yt+=`
`}return ut%2&&De>0?yt.substring(0,yt.length-ut-1)+Array(ut+1).join("▀"):yt.substring(0,yt.length-1)}(ae);H-=1,ae=ae===void 0?2*H:ae;var ce,ve,de,we,Ae=G.getModuleCount()*H+2*ae,Ne=ae,Ve=Ae-ae,Fe=Array(H+1).join("██"),He=Array(H+1).join(" "),be="",_e="";for(ce=0;ce<Ae;ce+=1){for(de=Math.floor((ce-Ne)/H),_e="",ve=0;ve<Ae;ve+=1)we=1,Ne<=ve&&ve<Ve&&Ne<=ce&&ce<Ve&&G.isDark(de,Math.floor((ve-Ne)/H))&&(we=0),_e+=we?Fe:He;for(de=0;de<H;de+=1)be+=_e+`
`}return be.substring(0,be.length-1)},G.renderTo2dContext=function(H,ae){ae=ae||2;for(var ce=G.getModuleCount(),ve=0;ve<ce;ve++)for(var de=0;de<ce;de++)H.fillStyle=G.isDark(ve,de)?"black":"white",H.fillRect(ve*ae,de*ae,ae,ae)},G};p.stringToBytes=(p.stringToBytesFuncs={default:function(X){for(var se=[],Z=0;Z<X.length;Z+=1){var I=X.charCodeAt(Z);se.push(255&I)}return se}}).default,p.createStringToBytes=function(X,se){var Z=function(){for(var k=te(X),U=function(){var ue=k.read();if(ue==-1)throw"eof";return ue},z=0,P={};;){var G=k.read();if(G==-1)break;var Y=U(),ne=U()<<8|U();P[String.fromCharCode(G<<8|Y)]=ne,z+=1}if(z!=se)throw z+" != "+se;return P}(),I=63;return function(k){for(var U=[],z=0;z<k.length;z+=1){var P=k.charCodeAt(z);if(P<128)U.push(P);else{var G=Z[k.charAt(z)];typeof G=="number"?(255&G)==G?U.push(G):(U.push(G>>>8),U.push(255&G)):U.push(I)}}return U}};var b,_,w,x,E,T={L:1,M:0,Q:3,H:2},j=(b=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],_=1335,w=7973,E=function(X){for(var se=0;X!=0;)se+=1,X>>>=1;return se},(x={}).getBCHTypeInfo=function(X){for(var se=X<<10;E(se)-E(_)>=0;)se^=_<<E(se)-E(_);return 21522^(X<<10|se)},x.getBCHTypeNumber=function(X){for(var se=X<<12;E(se)-E(w)>=0;)se^=w<<E(se)-E(w);return X<<12|se},x.getPatternPosition=function(X){return b[X-1]},x.getMaskFunction=function(X){switch(X){case 0:return function(se,Z){return(se+Z)%2==0};case 1:return function(se,Z){return se%2==0};case 2:return function(se,Z){return Z%3==0};case 3:return function(se,Z){return(se+Z)%3==0};case 4:return function(se,Z){return(Math.floor(se/2)+Math.floor(Z/3))%2==0};case 5:return function(se,Z){return se*Z%2+se*Z%3==0};case 6:return function(se,Z){return(se*Z%2+se*Z%3)%2==0};case 7:return function(se,Z){return(se*Z%3+(se+Z)%2)%2==0};default:throw"bad maskPattern:"+X}},x.getErrorCorrectPolynomial=function(X){for(var se=N([1],0),Z=0;Z<X;Z+=1)se=se.multiply(N([1,O.gexp(Z)],0));return se},x.getLengthInBits=function(X,se){if(1<=se&&se<10)switch(X){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+X}else if(se<27)switch(X){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+X}else{if(!(se<41))throw"type:"+se;switch(X){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+X}}},x.getLostPoint=function(X){for(var se=X.getModuleCount(),Z=0,I=0;I<se;I+=1)for(var k=0;k<se;k+=1){for(var U=0,z=X.isDark(I,k),P=-1;P<=1;P+=1)if(!(I+P<0||se<=I+P))for(var G=-1;G<=1;G+=1)k+G<0||se<=k+G||P==0&&G==0||z==X.isDark(I+P,k+G)&&(U+=1);U>5&&(Z+=3+U-5)}for(I=0;I<se-1;I+=1)for(k=0;k<se-1;k+=1){var Y=0;X.isDark(I,k)&&(Y+=1),X.isDark(I+1,k)&&(Y+=1),X.isDark(I,k+1)&&(Y+=1),X.isDark(I+1,k+1)&&(Y+=1),Y!=0&&Y!=4||(Z+=3)}for(I=0;I<se;I+=1)for(k=0;k<se-6;k+=1)X.isDark(I,k)&&!X.isDark(I,k+1)&&X.isDark(I,k+2)&&X.isDark(I,k+3)&&X.isDark(I,k+4)&&!X.isDark(I,k+5)&&X.isDark(I,k+6)&&(Z+=40);for(k=0;k<se;k+=1)for(I=0;I<se-6;I+=1)X.isDark(I,k)&&!X.isDark(I+1,k)&&X.isDark(I+2,k)&&X.isDark(I+3,k)&&X.isDark(I+4,k)&&!X.isDark(I+5,k)&&X.isDark(I+6,k)&&(Z+=40);var ne=0;for(k=0;k<se;k+=1)for(I=0;I<se;I+=1)X.isDark(I,k)&&(ne+=1);return Z+Math.abs(100*ne/se/se-50)/5*10},x),O=function(){for(var X=new Array(256),se=new Array(256),Z=0;Z<8;Z+=1)X[Z]=1<<Z;for(Z=8;Z<256;Z+=1)X[Z]=X[Z-4]^X[Z-5]^X[Z-6]^X[Z-8];for(Z=0;Z<255;Z+=1)se[X[Z]]=Z;return{glog:function(I){if(I<1)throw"glog("+I+")";return se[I]},gexp:function(I){for(;I<0;)I+=255;for(;I>=256;)I-=255;return X[I]}}}();function N(X,se){if(X.length===void 0)throw X.length+"/"+se;var Z=function(){for(var k=0;k<X.length&&X[k]==0;)k+=1;for(var U=new Array(X.length-k+se),z=0;z<X.length-k;z+=1)U[z]=X[z+k];return U}(),I={getAt:function(k){return Z[k]},getLength:function(){return Z.length},multiply:function(k){for(var U=new Array(I.getLength()+k.getLength()-1),z=0;z<I.getLength();z+=1)for(var P=0;P<k.getLength();P+=1)U[z+P]^=O.gexp(O.glog(I.getAt(z))+O.glog(k.getAt(P)));return N(U,0)},mod:function(k){if(I.getLength()-k.getLength()<0)return I;for(var U=O.glog(I.getAt(0))-O.glog(k.getAt(0)),z=new Array(I.getLength()),P=0;P<I.getLength();P+=1)z[P]=I.getAt(P);for(P=0;P<k.getLength();P+=1)z[P]^=O.gexp(O.glog(k.getAt(P))+U);return N(z,0).mod(k)}};return I}var F=function(){var X=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],se=function(I,k){var U={};return U.totalCount=I,U.dataCount=k,U},Z={getRSBlocks:function(I,k){var U=function(ge,D){switch(D){case T.L:return X[4*(ge-1)+0];case T.M:return X[4*(ge-1)+1];case T.Q:return X[4*(ge-1)+2];case T.H:return X[4*(ge-1)+3];default:return}}(I,k);if(U===void 0)throw"bad rs block @ typeNumber:"+I+"/errorCorrectionLevel:"+k;for(var z=U.length/3,P=[],G=0;G<z;G+=1)for(var Y=U[3*G+0],ne=U[3*G+1],ue=U[3*G+2],fe=0;fe<Y;fe+=1)P.push(se(ne,ue));return P}};return Z}(),$=function(){var X=[],se=0,Z={getBuffer:function(){return X},getAt:function(I){var k=Math.floor(I/8);return(X[k]>>>7-I%8&1)==1},put:function(I,k){for(var U=0;U<k;U+=1)Z.putBit((I>>>k-U-1&1)==1)},getLengthInBits:function(){return se},putBit:function(I){var k=Math.floor(se/8);X.length<=k&&X.push(0),I&&(X[k]|=128>>>se%8),se+=1}};return Z},K=function(X){var se=X,Z={getMode:function(){return 1},getLength:function(U){return se.length},write:function(U){for(var z=se,P=0;P+2<z.length;)U.put(I(z.substring(P,P+3)),10),P+=3;P<z.length&&(z.length-P==1?U.put(I(z.substring(P,P+1)),4):z.length-P==2&&U.put(I(z.substring(P,P+2)),7))}},I=function(U){for(var z=0,P=0;P<U.length;P+=1)z=10*z+k(U.charAt(P));return z},k=function(U){if("0"<=U&&U<="9")return U.charCodeAt(0)-48;throw"illegal char :"+U};return Z},Q=function(X){var se=X,Z={getMode:function(){return 2},getLength:function(k){return se.length},write:function(k){for(var U=se,z=0;z+1<U.length;)k.put(45*I(U.charAt(z))+I(U.charAt(z+1)),11),z+=2;z<U.length&&k.put(I(U.charAt(z)),6)}},I=function(k){if("0"<=k&&k<="9")return k.charCodeAt(0)-48;if("A"<=k&&k<="Z")return k.charCodeAt(0)-65+10;switch(k){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+k}};return Z},oe=function(X){var se=p.stringToBytes(X);return{getMode:function(){return 4},getLength:function(Z){return se.length},write:function(Z){for(var I=0;I<se.length;I+=1)Z.put(se[I],8)}}},ee=function(X){var se=p.stringToBytesFuncs.SJIS;if(!se)throw"sjis not supported.";(function(){var k=se("友");if(k.length!=2||(k[0]<<8|k[1])!=38726)throw"sjis not supported."})();var Z=se(X),I={getMode:function(){return 8},getLength:function(k){return~~(Z.length/2)},write:function(k){for(var U=Z,z=0;z+1<U.length;){var P=(255&U[z])<<8|255&U[z+1];if(33088<=P&&P<=40956)P-=33088;else{if(!(57408<=P&&P<=60351))throw"illegal char at "+(z+1)+"/"+P;P-=49472}P=192*(P>>>8&255)+(255&P),k.put(P,13),z+=2}if(z<U.length)throw"illegal char at "+(z+1)}};return I},J=function(){var X=[],se={writeByte:function(Z){X.push(255&Z)},writeShort:function(Z){se.writeByte(Z),se.writeByte(Z>>>8)},writeBytes:function(Z,I,k){I=I||0,k=k||Z.length;for(var U=0;U<k;U+=1)se.writeByte(Z[U+I])},writeString:function(Z){for(var I=0;I<Z.length;I+=1)se.writeByte(Z.charCodeAt(I))},toByteArray:function(){return X},toString:function(){var Z="";Z+="[";for(var I=0;I<X.length;I+=1)I>0&&(Z+=","),Z+=X[I];return Z+"]"}};return se},te=function(X){var se=X,Z=0,I=0,k=0,U={read:function(){for(;k<8;){if(Z>=se.length){if(k==0)return-1;throw"unexpected end of file./"+k}var P=se.charAt(Z);if(Z+=1,P=="=")return k=0,-1;P.match(/^\s$/)||(I=I<<6|z(P.charCodeAt(0)),k+=6)}var G=I>>>k-8&255;return k-=8,G}},z=function(P){if(65<=P&&P<=90)return P-65;if(97<=P&&P<=122)return P-97+26;if(48<=P&&P<=57)return P-48+52;if(P==43)return 62;if(P==47)return 63;throw"c:"+P};return U},he=function(X,se,Z){for(var I=function(ne,ue){var fe=ne,ge=ue,D=new Array(ne*ue),B={setPixel:function(H,ae,ce){D[ae*fe+H]=ce},write:function(H){H.writeString("GIF87a"),H.writeShort(fe),H.writeShort(ge),H.writeByte(128),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(255),H.writeByte(255),H.writeByte(255),H.writeString(","),H.writeShort(0),H.writeShort(0),H.writeShort(fe),H.writeShort(ge),H.writeByte(0);var ae=W(2);H.writeByte(2);for(var ce=0;ae.length-ce>255;)H.writeByte(255),H.writeBytes(ae,ce,255),ce+=255;H.writeByte(ae.length-ce),H.writeBytes(ae,ce,ae.length-ce),H.writeByte(0),H.writeString(";")}},W=function(H){for(var ae=1<<H,ce=1+(1<<H),ve=H+1,de=le(),we=0;we<ae;we+=1)de.add(String.fromCharCode(we));de.add(String.fromCharCode(ae)),de.add(String.fromCharCode(ce));var Ae,Ne,Ve,Fe=J(),He=(Ae=Fe,Ne=0,Ve=0,{write:function(Re,Me){if(Re>>>Me)throw"length over";for(;Ne+Me>=8;)Ae.writeByte(255&(Re<<Ne|Ve)),Me-=8-Ne,Re>>>=8-Ne,Ve=0,Ne=0;Ve|=Re<<Ne,Ne+=Me},flush:function(){Ne>0&&Ae.writeByte(Ve)}});He.write(ae,ve);var be=0,_e=String.fromCharCode(D[be]);for(be+=1;be<D.length;){var De=String.fromCharCode(D[be]);be+=1,de.contains(_e+De)?_e+=De:(He.write(de.indexOf(_e),ve),de.size()<4095&&(de.size()==1<<ve&&(ve+=1),de.add(_e+De)),_e=De)}return He.write(de.indexOf(_e),ve),He.write(ce,ve),He.flush(),Fe.toByteArray()},le=function(){var H={},ae=0,ce={add:function(ve){if(ce.contains(ve))throw"dup key:"+ve;H[ve]=ae,ae+=1},size:function(){return ae},indexOf:function(ve){return H[ve]},contains:function(ve){return H[ve]!==void 0}};return ce};return B}(X,se),k=0;k<se;k+=1)for(var U=0;U<X;U+=1)I.setPixel(U,k,Z(U,k));var z=J();I.write(z);for(var P=function(){var ne=0,ue=0,fe=0,ge="",D={},B=function(le){ge+=String.fromCharCode(W(63&le))},W=function(le){if(!(le<0)){if(le<26)return 65+le;if(le<52)return le-26+97;if(le<62)return le-52+48;if(le==62)return 43;if(le==63)return 47}throw"n:"+le};return D.writeByte=function(le){for(ne=ne<<8|255&le,ue+=8,fe+=1;ue>=6;)B(ne>>>ue-6),ue-=6},D.flush=function(){if(ue>0&&(B(ne<<6-ue),ne=0,ue=0),fe%3!=0)for(var le=3-fe%3,H=0;H<le;H+=1)ge+="="},D.toString=function(){return ge},D}(),G=z.toByteArray(),Y=0;Y<G.length;Y+=1)P.writeByte(G[Y]);return P.flush(),"data:image/gif;base64,"+P};return p}();m.stringToBytesFuncs["UTF-8"]=function(p){return function(b){for(var _=[],w=0;w<b.length;w++){var x=b.charCodeAt(w);x<128?_.push(x):x<2048?_.push(192|x>>6,128|63&x):x<55296||x>=57344?_.push(224|x>>12,128|x>>6&63,128|63&x):(w++,x=65536+((1023&x)<<10|1023&b.charCodeAt(w)),_.push(240|x>>18,128|x>>12&63,128|x>>6&63,128|63&x))}return _}(p)},(f=typeof(d=function(){return m})=="function"?d.apply(u,[]):d)===void 0||(s.exports=f)}},r={};function i(s){var u=r[s];if(u!==void 0)return u.exports;var d=r[s]={exports:{}};return n[s](d,d.exports,i),d.exports}i.n=s=>{var u=s&&s.__esModule?()=>s.default:()=>s;return i.d(u,{a:u}),u},i.d=(s,u)=>{for(var d in u)i.o(u,d)&&!i.o(s,d)&&Object.defineProperty(s,d,{enumerable:!0,get:u[d]})},i.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u);var o={};return(()=>{i.d(o,{default:()=>se});const s=Z=>!!Z&&typeof Z=="object"&&!Array.isArray(Z);function u(Z,...I){if(!I.length)return Z;const k=I.shift();return k!==void 0&&s(Z)&&s(k)?(Z=Object.assign({},Z),Object.keys(k).forEach(U=>{const z=Z[U],P=k[U];Array.isArray(z)&&Array.isArray(P)?Z[U]=P:s(z)&&s(P)?Z[U]=u(Object.assign({},z),P):Z[U]=P}),u(Z,...I)):Z}function d(Z,I){const k=document.createElement("a");k.download=I,k.href=Z,document.body.appendChild(k),k.click(),document.body.removeChild(k)}const f={L:.07,M:.15,Q:.25,H:.3};class m{constructor({svg:I,type:k,window:U}){this._svg=I,this._type=k,this._window=U}draw(I,k,U,z){let P;switch(this._type){case"dots":P=this._drawDot;break;case"classy":P=this._drawClassy;break;case"classy-rounded":P=this._drawClassyRounded;break;case"rounded":P=this._drawRounded;break;case"extra-rounded":P=this._drawExtraRounded;break;default:P=this._drawSquare}P.call(this,{x:I,y:k,size:U,getNeighbor:z})}_rotateFigure({x:I,y:k,size:U,rotation:z=0,draw:P}){var G;const Y=I+U/2,ne=k+U/2;P(),(G=this._element)===null||G===void 0||G.setAttribute("transform",`rotate(${180*z/Math.PI},${Y},${ne})`)}_basicDot(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(U+k/2)),this._element.setAttribute("cy",String(z+k/2)),this._element.setAttribute("r",String(k/2))}}))}_basicSquare(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(U)),this._element.setAttribute("y",String(z)),this._element.setAttribute("width",String(k)),this._element.setAttribute("height",String(k))}}))}_basicSideRounded(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${U} ${z}v ${k}h `+k/2+`a ${k/2} ${k/2}, 0, 0, 0, 0 ${-k}`)}}))}_basicCornerRounded(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${U} ${z}v ${k}h ${k}v `+-k/2+`a ${k/2} ${k/2}, 0, 0, 0, ${-k/2} ${-k/2}`)}}))}_basicCornerExtraRounded(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${U} ${z}v ${k}h ${k}a ${k} ${k}, 0, 0, 0, ${-k} ${-k}`)}}))}_basicCornersRounded(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${U} ${z}v `+k/2+`a ${k/2} ${k/2}, 0, 0, 0, ${k/2} ${k/2}h `+k/2+"v "+-k/2+`a ${k/2} ${k/2}, 0, 0, 0, ${-k/2} ${-k/2}`)}}))}_drawDot({x:I,y:k,size:U}){this._basicDot({x:I,y:k,size:U,rotation:0})}_drawSquare({x:I,y:k,size:U}){this._basicSquare({x:I,y:k,size:U,rotation:0})}_drawRounded({x:I,y:k,size:U,getNeighbor:z}){const P=z?+z(-1,0):0,G=z?+z(1,0):0,Y=z?+z(0,-1):0,ne=z?+z(0,1):0,ue=P+G+Y+ne;if(ue!==0)if(ue>2||P&&G||Y&&ne)this._basicSquare({x:I,y:k,size:U,rotation:0});else{if(ue===2){let fe=0;return P&&Y?fe=Math.PI/2:Y&&G?fe=Math.PI:G&&ne&&(fe=-Math.PI/2),void this._basicCornerRounded({x:I,y:k,size:U,rotation:fe})}if(ue===1){let fe=0;return Y?fe=Math.PI/2:G?fe=Math.PI:ne&&(fe=-Math.PI/2),void this._basicSideRounded({x:I,y:k,size:U,rotation:fe})}}else this._basicDot({x:I,y:k,size:U,rotation:0})}_drawExtraRounded({x:I,y:k,size:U,getNeighbor:z}){const P=z?+z(-1,0):0,G=z?+z(1,0):0,Y=z?+z(0,-1):0,ne=z?+z(0,1):0,ue=P+G+Y+ne;if(ue!==0)if(ue>2||P&&G||Y&&ne)this._basicSquare({x:I,y:k,size:U,rotation:0});else{if(ue===2){let fe=0;return P&&Y?fe=Math.PI/2:Y&&G?fe=Math.PI:G&&ne&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:I,y:k,size:U,rotation:fe})}if(ue===1){let fe=0;return Y?fe=Math.PI/2:G?fe=Math.PI:ne&&(fe=-Math.PI/2),void this._basicSideRounded({x:I,y:k,size:U,rotation:fe})}}else this._basicDot({x:I,y:k,size:U,rotation:0})}_drawClassy({x:I,y:k,size:U,getNeighbor:z}){const P=z?+z(-1,0):0,G=z?+z(1,0):0,Y=z?+z(0,-1):0,ne=z?+z(0,1):0;P+G+Y+ne!==0?P||Y?G||ne?this._basicSquare({x:I,y:k,size:U,rotation:0}):this._basicCornerRounded({x:I,y:k,size:U,rotation:Math.PI/2}):this._basicCornerRounded({x:I,y:k,size:U,rotation:-Math.PI/2}):this._basicCornersRounded({x:I,y:k,size:U,rotation:Math.PI/2})}_drawClassyRounded({x:I,y:k,size:U,getNeighbor:z}){const P=z?+z(-1,0):0,G=z?+z(1,0):0,Y=z?+z(0,-1):0,ne=z?+z(0,1):0;P+G+Y+ne!==0?P||Y?G||ne?this._basicSquare({x:I,y:k,size:U,rotation:0}):this._basicCornerExtraRounded({x:I,y:k,size:U,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:I,y:k,size:U,rotation:-Math.PI/2}):this._basicCornersRounded({x:I,y:k,size:U,rotation:Math.PI/2})}}const p={dot:"dot",square:"square",extraRounded:"extra-rounded"},b=Object.values(p);class _{constructor({svg:I,type:k,window:U}){this._svg=I,this._type=k,this._window=U}draw(I,k,U,z){let P;switch(this._type){case p.square:P=this._drawSquare;break;case p.extraRounded:P=this._drawExtraRounded;break;default:P=this._drawDot}P.call(this,{x:I,y:k,size:U,rotation:z})}_rotateFigure({x:I,y:k,size:U,rotation:z=0,draw:P}){var G;const Y=I+U/2,ne=k+U/2;P(),(G=this._element)===null||G===void 0||G.setAttribute("transform",`rotate(${180*z/Math.PI},${Y},${ne})`)}_basicDot(I){const{size:k,x:U,y:z}=I,P=k/7;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${U+k/2} ${z}a ${k/2} ${k/2} 0 1 0 0.1 0zm 0 ${P}a ${k/2-P} ${k/2-P} 0 1 1 -0.1 0Z`)}}))}_basicSquare(I){const{size:k,x:U,y:z}=I,P=k/7;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${U} ${z}v ${k}h ${k}v `+-k+`zM ${U+P} ${z+P}h `+(k-2*P)+"v "+(k-2*P)+"h "+(2*P-k)+"z")}}))}_basicExtraRounded(I){const{size:k,x:U,y:z}=I,P=k/7;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${U} ${z+2.5*P}v `+2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*P} ${2.5*P}h `+2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*P} ${2.5*-P}v `+-2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*-P} ${2.5*-P}h `+-2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*-P} ${2.5*P}M ${U+2.5*P} ${z+P}h `+2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*P} ${1.5*P}v `+2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*-P} ${1.5*P}h `+-2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*-P} ${1.5*-P}v `+-2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*P} ${1.5*-P}`)}}))}_drawDot({x:I,y:k,size:U,rotation:z}){this._basicDot({x:I,y:k,size:U,rotation:z})}_drawSquare({x:I,y:k,size:U,rotation:z}){this._basicSquare({x:I,y:k,size:U,rotation:z})}_drawExtraRounded({x:I,y:k,size:U,rotation:z}){this._basicExtraRounded({x:I,y:k,size:U,rotation:z})}}const w={dot:"dot",square:"square"},x=Object.values(w);class E{constructor({svg:I,type:k,window:U}){this._svg=I,this._type=k,this._window=U}draw(I,k,U,z){let P;P=this._type===w.square?this._drawSquare:this._drawDot,P.call(this,{x:I,y:k,size:U,rotation:z})}_rotateFigure({x:I,y:k,size:U,rotation:z=0,draw:P}){var G;const Y=I+U/2,ne=k+U/2;P(),(G=this._element)===null||G===void 0||G.setAttribute("transform",`rotate(${180*z/Math.PI},${Y},${ne})`)}_basicDot(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(U+k/2)),this._element.setAttribute("cy",String(z+k/2)),this._element.setAttribute("r",String(k/2))}}))}_basicSquare(I){const{size:k,x:U,y:z}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(U)),this._element.setAttribute("y",String(z)),this._element.setAttribute("width",String(k)),this._element.setAttribute("height",String(k))}}))}_drawDot({x:I,y:k,size:U,rotation:z}){this._basicDot({x:I,y:k,size:U,rotation:z})}_drawSquare({x:I,y:k,size:U,rotation:z}){this._basicSquare({x:I,y:k,size:U,rotation:z})}}const T="circle",j=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],O=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class N{constructor(I,k){this._roundSize=U=>this._options.dotsOptions.roundSize?Math.floor(U):U,this._window=k,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(I.width)),this._element.setAttribute("height",String(I.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),I.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${I.width} ${I.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=I.image,this._instanceId=N.instanceCount++,this._options=I}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(I){const k=I.getModuleCount(),U=Math.min(this._options.width,this._options.height)-2*this._options.margin,z=this._options.shape===T?U/Math.sqrt(2):U,P=this._roundSize(z/k);let G={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=I,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:ne}=this._options,ue=Y.imageSize*f[ne.errorCorrectionLevel],fe=Math.floor(ue*k*k);G=function({originalHeight:ge,originalWidth:D,maxHiddenDots:B,maxHiddenAxisDots:W,dotSize:le}){const H={x:0,y:0},ae={x:0,y:0};if(ge<=0||D<=0||B<=0||le<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const ce=ge/D;return H.x=Math.floor(Math.sqrt(B/ce)),H.x<=0&&(H.x=1),W&&W<H.x&&(H.x=W),H.x%2==0&&H.x--,ae.x=H.x*le,H.y=1+2*Math.ceil((H.x*ce-1)/2),ae.y=Math.round(ae.x*ce),(H.y*H.x>B||W&&W<H.y)&&(W&&W<H.y?(H.y=W,H.y%2==0&&H.x--):H.y-=2,ae.y=H.y*le,H.x=1+2*Math.ceil((H.y/ce-1)/2),ae.x=Math.round(ae.y/ce)),{height:ae.y,width:ae.x,hideYDots:H.y,hideXDots:H.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:k-14,dotSize:P})}this.drawBackground(),this.drawDots((Y,ne)=>{var ue,fe,ge,D,B,W;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(k-G.hideYDots)/2&&Y<(k+G.hideYDots)/2&&ne>=(k-G.hideXDots)/2&&ne<(k+G.hideXDots)/2||!((ue=j[Y])===null||ue===void 0)&&ue[ne]||!((fe=j[Y-k+7])===null||fe===void 0)&&fe[ne]||!((ge=j[Y])===null||ge===void 0)&&ge[ne-k+7]||!((D=O[Y])===null||D===void 0)&&D[ne]||!((B=O[Y-k+7])===null||B===void 0)&&B[ne]||!((W=O[Y])===null||W===void 0)&&W[ne-k+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:G.width,height:G.height,count:k,dotSize:P})}drawBackground(){var I,k,U;const z=this._element,P=this._options;if(z){const G=(I=P.backgroundOptions)===null||I===void 0?void 0:I.gradient,Y=(k=P.backgroundOptions)===null||k===void 0?void 0:k.color;let ne=P.height,ue=P.width;if(G||Y){const fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((U=P.backgroundOptions)===null||U===void 0)&&U.round&&(ne=ue=Math.min(P.width,P.height),fe.setAttribute("rx",String(ne/2*P.backgroundOptions.round))),fe.setAttribute("x",String(this._roundSize((P.width-ue)/2))),fe.setAttribute("y",String(this._roundSize((P.height-ne)/2))),fe.setAttribute("width",String(ue)),fe.setAttribute("height",String(ne)),this._backgroundClipPath.appendChild(fe),this._createColor({options:G,color:Y,additionalRotation:0,x:0,y:0,height:P.height,width:P.width,name:`background-color-${this._instanceId}`})}}}drawDots(I){var k,U;if(!this._qr)throw"QR code is not defined";const z=this._options,P=this._qr.getModuleCount();if(P>z.width||P>z.height)throw"The canvas is too small.";const G=Math.min(z.width,z.height)-2*z.margin,Y=z.shape===T?G/Math.sqrt(2):G,ne=this._roundSize(Y/P),ue=this._roundSize((z.width-P*ne)/2),fe=this._roundSize((z.height-P*ne)/2),ge=new m({svg:this._element,type:z.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(k=z.dotsOptions)===null||k===void 0?void 0:k.gradient,color:z.dotsOptions.color,additionalRotation:0,x:0,y:0,height:z.height,width:z.width,name:`dot-color-${this._instanceId}`});for(let D=0;D<P;D++)for(let B=0;B<P;B++)I&&!I(D,B)||!((U=this._qr)===null||U===void 0)&&U.isDark(D,B)&&(ge.draw(ue+B*ne,fe+D*ne,ne,(W,le)=>!(B+W<0||D+le<0||B+W>=P||D+le>=P)&&!(I&&!I(D+le,B+W))&&!!this._qr&&this._qr.isDark(D+le,B+W)),ge._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ge._element));if(z.shape===T){const D=this._roundSize((G/ne-P)/2),B=P+2*D,W=ue-D*ne,le=fe-D*ne,H=[],ae=this._roundSize(B/2);for(let ce=0;ce<B;ce++){H[ce]=[];for(let ve=0;ve<B;ve++)ce>=D-1&&ce<=B-D&&ve>=D-1&&ve<=B-D||Math.sqrt((ce-ae)*(ce-ae)+(ve-ae)*(ve-ae))>ae?H[ce][ve]=0:H[ce][ve]=this._qr.isDark(ve-2*D<0?ve:ve>=P?ve-2*D:ve-D,ce-2*D<0?ce:ce>=P?ce-2*D:ce-D)?1:0}for(let ce=0;ce<B;ce++)for(let ve=0;ve<B;ve++)H[ce][ve]&&(ge.draw(W+ve*ne,le+ce*ne,ne,(de,we)=>{var Ae;return!!(!((Ae=H[ce+we])===null||Ae===void 0)&&Ae[ve+de])}),ge._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ge._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const I=this._element,k=this._options;if(!I)throw"Element code is not defined";const U=this._qr.getModuleCount(),z=Math.min(k.width,k.height)-2*k.margin,P=k.shape===T?z/Math.sqrt(2):z,G=this._roundSize(P/U),Y=7*G,ne=3*G,ue=this._roundSize((k.width-U*G)/2),fe=this._roundSize((k.height-U*G)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ge,D,B])=>{var W,le,H,ae,ce,ve,de,we,Ae,Ne,Ve,Fe,He,be;const _e=ue+ge*G*(U-7),De=fe+D*G*(U-7);let Re=this._dotsClipPath,Me=this._dotsClipPath;if((!((W=k.cornersSquareOptions)===null||W===void 0)&&W.gradient||!((le=k.cornersSquareOptions)===null||le===void 0)&&le.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${ge}-${D}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Me=Re,this._createColor({options:(H=k.cornersSquareOptions)===null||H===void 0?void 0:H.gradient,color:(ae=k.cornersSquareOptions)===null||ae===void 0?void 0:ae.color,additionalRotation:B,x:_e,y:De,height:Y,width:Y,name:`corners-square-color-${ge}-${D}-${this._instanceId}`})),((ce=k.cornersSquareOptions)===null||ce===void 0?void 0:ce.type)&&b.includes(k.cornersSquareOptions.type)){const $e=new _({svg:this._element,type:k.cornersSquareOptions.type,window:this._window});$e.draw(_e,De,Y,B),$e._element&&Re&&Re.appendChild($e._element)}else{const $e=new m({svg:this._element,type:((ve=k.cornersSquareOptions)===null||ve===void 0?void 0:ve.type)||k.dotsOptions.type,window:this._window});for(let Ge=0;Ge<j.length;Ge++)for(let Ze=0;Ze<j[Ge].length;Ze++)!((de=j[Ge])===null||de===void 0)&&de[Ze]&&($e.draw(_e+Ze*G,De+Ge*G,G,(ut,rt)=>{var dt;return!!(!((dt=j[Ge+rt])===null||dt===void 0)&&dt[Ze+ut])}),$e._element&&Re&&Re.appendChild($e._element))}if((!((we=k.cornersDotOptions)===null||we===void 0)&&we.gradient||!((Ae=k.cornersDotOptions)===null||Ae===void 0)&&Ae.color)&&(Me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Me.setAttribute("id",`clip-path-corners-dot-color-${ge}-${D}-${this._instanceId}`),this._defs.appendChild(Me),this._cornersDotClipPath=Me,this._createColor({options:(Ne=k.cornersDotOptions)===null||Ne===void 0?void 0:Ne.gradient,color:(Ve=k.cornersDotOptions)===null||Ve===void 0?void 0:Ve.color,additionalRotation:B,x:_e+2*G,y:De+2*G,height:ne,width:ne,name:`corners-dot-color-${ge}-${D}-${this._instanceId}`})),((Fe=k.cornersDotOptions)===null||Fe===void 0?void 0:Fe.type)&&x.includes(k.cornersDotOptions.type)){const $e=new E({svg:this._element,type:k.cornersDotOptions.type,window:this._window});$e.draw(_e+2*G,De+2*G,ne,B),$e._element&&Me&&Me.appendChild($e._element)}else{const $e=new m({svg:this._element,type:((He=k.cornersDotOptions)===null||He===void 0?void 0:He.type)||k.dotsOptions.type,window:this._window});for(let Ge=0;Ge<O.length;Ge++)for(let Ze=0;Ze<O[Ge].length;Ze++)!((be=O[Ge])===null||be===void 0)&&be[Ze]&&($e.draw(_e+Ze*G,De+Ge*G,G,(ut,rt)=>{var dt;return!!(!((dt=O[Ge+rt])===null||dt===void 0)&&dt[Ze+ut])}),$e._element&&Me&&Me.appendChild($e._element))}})}loadImage(){return new Promise((I,k)=>{var U;const z=this._options;if(!z.image)return k("Image is not defined");if(!((U=z.nodeCanvas)===null||U===void 0)&&U.loadImage)z.nodeCanvas.loadImage(z.image).then(P=>{var G,Y;if(this._image=P,this._options.imageOptions.saveAsBlob){const ne=(G=z.nodeCanvas)===null||G===void 0?void 0:G.createCanvas(this._image.width,this._image.height);(Y=ne?.getContext("2d"))===null||Y===void 0||Y.drawImage(P,0,0),this._imageUri=ne?.toDataURL()}I()}).catch(k);else{const P=new this._window.Image;typeof z.imageOptions.crossOrigin=="string"&&(P.crossOrigin=z.imageOptions.crossOrigin),this._image=P,P.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(G,Y){return new Promise(ne=>{const ue=new Y.XMLHttpRequest;ue.onload=function(){const fe=new Y.FileReader;fe.onloadend=function(){ne(fe.result)},fe.readAsDataURL(ue.response)},ue.open("GET",G),ue.responseType="blob",ue.send()})}(z.image||"",this._window)),I()},P.src=z.image}})}async drawImage({width:I,height:k,count:U,dotSize:z}){const P=this._options,G=this._roundSize((P.width-U*z)/2),Y=this._roundSize((P.height-U*z)/2),ne=G+this._roundSize(P.imageOptions.margin+(U*z-I)/2),ue=Y+this._roundSize(P.imageOptions.margin+(U*z-k)/2),fe=I-2*P.imageOptions.margin,ge=k-2*P.imageOptions.margin,D=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");D.setAttribute("href",this._imageUri||""),D.setAttribute("xlink:href",this._imageUri||""),D.setAttribute("x",String(ne)),D.setAttribute("y",String(ue)),D.setAttribute("width",`${fe}px`),D.setAttribute("height",`${ge}px`),this._element.appendChild(D)}_createColor({options:I,color:k,additionalRotation:U,x:z,y:P,height:G,width:Y,name:ne}){const ue=Y>G?Y:G,fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(z)),fe.setAttribute("y",String(P)),fe.setAttribute("height",String(G)),fe.setAttribute("width",String(Y)),fe.setAttribute("clip-path",`url('#clip-path-${ne}')`),I){let ge;if(I.type==="radial")ge=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ge.setAttribute("id",ne),ge.setAttribute("gradientUnits","userSpaceOnUse"),ge.setAttribute("fx",String(z+Y/2)),ge.setAttribute("fy",String(P+G/2)),ge.setAttribute("cx",String(z+Y/2)),ge.setAttribute("cy",String(P+G/2)),ge.setAttribute("r",String(ue/2));else{const D=((I.rotation||0)+U)%(2*Math.PI),B=(D+2*Math.PI)%(2*Math.PI);let W=z+Y/2,le=P+G/2,H=z+Y/2,ae=P+G/2;B>=0&&B<=.25*Math.PI||B>1.75*Math.PI&&B<=2*Math.PI?(W-=Y/2,le-=G/2*Math.tan(D),H+=Y/2,ae+=G/2*Math.tan(D)):B>.25*Math.PI&&B<=.75*Math.PI?(le-=G/2,W-=Y/2/Math.tan(D),ae+=G/2,H+=Y/2/Math.tan(D)):B>.75*Math.PI&&B<=1.25*Math.PI?(W+=Y/2,le+=G/2*Math.tan(D),H-=Y/2,ae-=G/2*Math.tan(D)):B>1.25*Math.PI&&B<=1.75*Math.PI&&(le+=G/2,W+=Y/2/Math.tan(D),ae-=G/2,H-=Y/2/Math.tan(D)),ge=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ge.setAttribute("id",ne),ge.setAttribute("gradientUnits","userSpaceOnUse"),ge.setAttribute("x1",String(Math.round(W))),ge.setAttribute("y1",String(Math.round(le))),ge.setAttribute("x2",String(Math.round(H))),ge.setAttribute("y2",String(Math.round(ae)))}I.colorStops.forEach(({offset:D,color:B})=>{const W=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");W.setAttribute("offset",100*D+"%"),W.setAttribute("stop-color",B),ge.appendChild(W)}),fe.setAttribute("fill",`url('#${ne}')`),this._defs.appendChild(ge)}else k&&fe.setAttribute("fill",k);this._element.appendChild(fe)}}N.instanceCount=0;const F=N,$="canvas",K={};for(let Z=0;Z<=40;Z++)K[Z]=Z;const Q={type:$,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:K[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function oe(Z){const I=Object.assign({},Z);if(!I.colorStops||!I.colorStops.length)throw"Field 'colorStops' is required in gradient";return I.rotation?I.rotation=Number(I.rotation):I.rotation=0,I.colorStops=I.colorStops.map(k=>Object.assign(Object.assign({},k),{offset:Number(k.offset)})),I}function ee(Z){const I=Object.assign({},Z);return I.width=Number(I.width),I.height=Number(I.height),I.margin=Number(I.margin),I.imageOptions=Object.assign(Object.assign({},I.imageOptions),{hideBackgroundDots:!!I.imageOptions.hideBackgroundDots,imageSize:Number(I.imageOptions.imageSize),margin:Number(I.imageOptions.margin)}),I.margin>Math.min(I.width,I.height)&&(I.margin=Math.min(I.width,I.height)),I.dotsOptions=Object.assign({},I.dotsOptions),I.dotsOptions.gradient&&(I.dotsOptions.gradient=oe(I.dotsOptions.gradient)),I.cornersSquareOptions&&(I.cornersSquareOptions=Object.assign({},I.cornersSquareOptions),I.cornersSquareOptions.gradient&&(I.cornersSquareOptions.gradient=oe(I.cornersSquareOptions.gradient))),I.cornersDotOptions&&(I.cornersDotOptions=Object.assign({},I.cornersDotOptions),I.cornersDotOptions.gradient&&(I.cornersDotOptions.gradient=oe(I.cornersDotOptions.gradient))),I.backgroundOptions&&(I.backgroundOptions=Object.assign({},I.backgroundOptions),I.backgroundOptions.gradient&&(I.backgroundOptions.gradient=oe(I.backgroundOptions.gradient))),I}var J=i(873),te=i.n(J);function he(Z){if(!Z)throw new Error("Extension must be defined");Z[0]==="."&&(Z=Z.substring(1));const I={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[Z.toLowerCase()];if(!I)throw new Error(`Extension "${Z}" is not supported`);return I}class X{constructor(I){I?.jsdom?this._window=new I.jsdom("",{resources:"usable"}).window:this._window=window,this._options=I?ee(u(Q,I)):Q,this.update()}static _clearContainer(I){I&&(I.innerHTML="")}_setupSvg(){if(!this._qr)return;const I=new F(this._options,this._window);this._svg=I.getElement(),this._svgDrawingPromise=I.drawQR(this._qr).then(()=>{var k;this._svg&&((k=this._extension)===null||k===void 0||k.call(this,I.getElement(),this._options))})}_setupCanvas(){var I,k;this._qr&&(!((I=this._options.nodeCanvas)===null||I===void 0)&&I.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(k=this._svgDrawingPromise)===null||k===void 0?void 0:k.then(()=>{var U;if(!this._svg)return;const z=this._svg,P=new this._window.XMLSerializer().serializeToString(z),G=btoa(P),Y=`data:${he("svg")};base64,${G}`;if(!((U=this._options.nodeCanvas)===null||U===void 0)&&U.loadImage)return this._options.nodeCanvas.loadImage(Y).then(ne=>{var ue,fe;ne.width=this._options.width,ne.height=this._options.height,(fe=(ue=this._nodeCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||fe===void 0||fe.drawImage(ne,0,0)});{const ne=new this._window.Image;return new Promise(ue=>{ne.onload=()=>{var fe,ge;(ge=(fe=this._domCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||ge===void 0||ge.drawImage(ne,0,0),ue()},ne.src=Y})}}))}async _getElement(I="png"){if(!this._qr)throw"QR code is empty";return I.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(I){X._clearContainer(this._container),this._options=I?ee(u(this._options,I)):this._options,this._options.data&&(this._qr=te()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(k){switch(!0){case/^[0-9]*$/.test(k):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(k):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===$?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(I){if(I){if(typeof I.appendChild!="function")throw"Container should be a single DOM node";this._options.type===$?this._domCanvas&&I.appendChild(this._domCanvas):this._svg&&I.appendChild(this._svg),this._container=I}}applyExtension(I){if(!I)throw"Extension function should be defined.";this._extension=I,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(I="png"){if(!this._qr)throw"QR code is empty";const k=await this._getElement(I),U=he(I);if(!k)return null;if(I.toLowerCase()==="svg"){const z=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(k)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(z):new Blob([z],{type:U})}return new Promise(z=>{const P=k;if("toBuffer"in P)if(U==="image/png")z(P.toBuffer(U));else if(U==="image/jpeg")z(P.toBuffer(U));else{if(U!=="application/pdf")throw Error("Unsupported extension");z(P.toBuffer(U))}else"toBlob"in P&&P.toBlob(z,U,1)})}async download(I){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let k="png",U="qr";typeof I=="string"?(k=I,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof I=="object"&&I!==null&&(I.name&&(U=I.name),I.extension&&(k=I.extension));const z=await this._getElement(k);if(z)if(k.toLowerCase()==="svg"){let P=new XMLSerializer().serializeToString(z);P=`<?xml version="1.0" standalone="no"?>\r
`+P,d(`data:${he(k)};charset=utf-8,${encodeURIComponent(P)}`,`${U}.svg`)}else d(z.toDataURL(he(k)),`${U}.${k}`)}}const se=X})(),o.default})())}(jg)),jg.exports}var MJ=jJ();const PJ=oa(MJ);/*!
* Font Awesome Free 7.1.0 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 2025 Fonticons, Inc.
*/var RJ={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M319.1 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.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.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.9zM262.5 104.5c27.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"]},LJ={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.5 253.9a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm-265.1 0a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm273.7-96.5l47.9-83c.8-1.1 1.3-2.4 1.5-3.8s.2-2.7-.1-4.1-.9-2.6-1.7-3.7-1.8-2-3-2.7-2.5-1.1-3.9-1.3-2.7 0-4 .4-2.5 1.1-3.6 1.9-1.9 2-2.5 3.2l-48.5 84.1c-38.8-17.4-80.8-26.4-123.3-26.4s-84.5 9-123.3 26.4L116.2 64.4c-.6-1.2-1.5-2.3-2.5-3.2s-2.3-1.5-3.6-1.9-2.7-.5-4-.4-2.7 .6-3.9 1.3-2.2 1.6-3 2.7-1.4 2.4-1.7 3.7-.3 2.7-.1 4.1 .8 2.6 1.5 3.8l47.9 83C64.5 202.2 8.2 285.5 0 384l576 0c-8.2-98.5-64.5-181.8-146.9-226.6z"]};const NJ="Left",DJ="Right",kJ="Up",IJ="Down",Vc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Wx={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},AO="mousemove",TO="mouseup",UJ="touchend",zJ="touchmove",BJ="touchstart";function FJ(e,t,n,r){return e>t?n>0?DJ:NJ:r>0?IJ:kJ}function OO(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function $J(e,t){const n=m=>{const p="touches"in m;p&&m.touches.length>1||e((b,_)=>{_.trackMouse&&!p&&(document.addEventListener(AO,r),document.addEventListener(TO,s));const{clientX:w,clientY:x}=p?m.touches[0]:m,E=OO([w,x],_.rotationAngle);return _.onTouchStartOrOnMouseDown&&_.onTouchStartOrOnMouseDown({event:m}),Object.assign(Object.assign(Object.assign({},b),Wx),{initial:E.slice(),xy:E,start:m.timeStamp||0})})},r=m=>{e((p,b)=>{const _="touches"in m;if(_&&m.touches.length>1)return p;if(m.timeStamp-p.start>b.swipeDuration)return p.swiping?Object.assign(Object.assign({},p),{swiping:!1}):p;const{clientX:w,clientY:x}=_?m.touches[0]:m,[E,T]=OO([w,x],b.rotationAngle),j=E-p.xy[0],O=T-p.xy[1],N=Math.abs(j),F=Math.abs(O),$=(m.timeStamp||0)-p.start,K=Math.sqrt(N*N+F*F)/($||1),Q=[j/($||1),O/($||1)],oe=FJ(N,F,j,O),ee=typeof b.delta=="number"?b.delta:b.delta[oe.toLowerCase()]||Vc.delta;if(N<ee&&F<ee&&!p.swiping)return p;const J={absX:N,absY:F,deltaX:j,deltaY:O,dir:oe,event:m,first:p.first,initial:p.initial,velocity:K,vxvy:Q};J.first&&b.onSwipeStart&&b.onSwipeStart(J),b.onSwiping&&b.onSwiping(J);let te=!1;return(b.onSwiping||b.onSwiped||b[`onSwiped${oe}`])&&(te=!0),te&&b.preventScrollOnSwipe&&b.trackTouch&&m.cancelable&&m.preventDefault(),Object.assign(Object.assign({},p),{first:!1,eventData:J,swiping:!0})})},i=m=>{e((p,b)=>{let _;if(p.swiping&&p.eventData){if(m.timeStamp-p.start<b.swipeDuration){_=Object.assign(Object.assign({},p.eventData),{event:m}),b.onSwiped&&b.onSwiped(_);const w=b[`onSwiped${_.dir}`];w&&w(_)}}else b.onTap&&b.onTap({event:m});return b.onTouchEndOrOnMouseUp&&b.onTouchEndOrOnMouseUp({event:m}),Object.assign(Object.assign(Object.assign({},p),Wx),{eventData:_})})},o=()=>{document.removeEventListener(AO,r),document.removeEventListener(TO,s)},s=m=>{o(),i(m)},u=(m,p)=>{let b=()=>{};if(m&&m.addEventListener){const _=Object.assign(Object.assign({},Vc.touchEventOptions),p.touchEventOptions),w=[[BJ,n,_],[zJ,r,Object.assign(Object.assign({},_),p.preventScrollOnSwipe?{passive:!1}:{})],[UJ,i,_]];w.forEach(([x,E,T])=>m.addEventListener(x,E,T)),b=()=>w.forEach(([x,E])=>m.removeEventListener(x,E))}return b},f={ref:m=>{m!==null&&e((p,b)=>{if(p.el===m)return p;const _={};return p.el&&p.el!==m&&p.cleanUpTouch&&(p.cleanUpTouch(),_.cleanUpTouch=void 0),b.trackTouch&&m&&(_.cleanUpTouch=u(m,b)),Object.assign(Object.assign(Object.assign({},p),{el:m}),_)})}};return t.trackMouse&&(f.onMouseDown=n),[f,u]}function VJ(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function HJ(e){const{trackMouse:t}=e,n=C.useRef(Object.assign({},Wx)),r=C.useRef(Object.assign({},Vc)),i=C.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Vc),e);let o;for(o in Vc)r.current[o]===void 0&&(r.current[o]=Vc[o]);const[s,u]=C.useMemo(()=>$J(d=>n.current=d(n.current,r.current),{trackMouse:t}),[t]);return n.current=VJ(n.current,r.current,i.current,u),s}function Tb(e){return e==null?"":`${e}`}function qJ(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function qw(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function GJ(e={stringFormatter:qw()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function YJ(e={stringFormatter:qw()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const WJ=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function KJ(e){var t,n,r;const i=[];let o;for(;o=WJ.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function jO(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:KJ(t);let i=e;for(const o of r)if(i=i?.[o],i===void 0)return n;return i}function DN(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Kx(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var MO;(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"})(MO||(MO={}));class ZJ{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||qw(),i=YJ({stringFormatter:r}),o={header:r,undefined:Tb,boolean:Tb,number:qJ(),bigint:Tb,string:r,symbol:GJ({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>jO(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:s=>jO(s,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i},u=r.value;return{label:o,value(d){const f=u(d,s);return f===void 0?i:f}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Kx(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(DN,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Kx(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class kN extends ZJ{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,u)=>(Object.keys(u).forEach(d=>{s.includes(d)||s.push(d)}),s),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(DN,[])}processData(t){return Kx(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var cr;(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"})(cr||(cr={}));cr.QUOTATION_MARK+"",cr.QUOTATION_MARK,cr.REVERSE_SOLIDUS+"",cr.REVERSE_SOLIDUS,cr.SOLIDUS+"",cr.SOLIDUS,cr.LATIN_SMALL_LETTER_B+"",cr.BACKSPACE,cr.LATIN_SMALL_LETTER_F+"",cr.FORM_FEED,cr.LATIN_SMALL_LETTER_N+"",cr.NEWLINE,cr.LATIN_SMALL_LETTER_R+"",cr.CARRIAGE_RETURN,cr.LATIN_SMALL_LETTER_T+"",cr.TAB;var PO;(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"})(PO||(PO={}));var RO;(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"})(RO||(RO={}));var LO;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(LO||(LO={}));var NO;(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"})(NO||(NO={}));var Ob={},jb={},DO;function XJ(){return DO||(DO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t}(jb)),jb}var Mb={},kO;function IN(){return kO||(kO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t}(Mb)),Mb}var Pb={},IO;function Gw(){return IO||(IO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t}(Pb)),Pb}var Rb={},Lb={},UO;function QJ(){return UO||(UO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t}(Lb)),Lb}var zO;function Yw(){return zO||(zO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QJ(),n=Gw();function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],s=i.length;if(s===0)return o;let u=0,d="",f="",m=!1;for(i.charCodeAt(0)===46&&(o.push(""),u++);u<s;){const p=i[u];f?p==="\\"&&u+1<s?(u++,d+=i[u]):p===f?f="":d+=p:m?p==='"'||p==="'"?f=p:p==="]"?(m=!1,o.push(d),d=""):d+=p:p==="["?(m=!0,d&&(o.push(d),d="")):p==="."?d&&(o.push(d),d=""):d+=p,u++}return d&&o.push(d),o}e.toPath=r}(Rb)),Rb}var BO;function Ww(){return BO||(BO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XJ(),n=IN(),r=Gw(),i=Yw();function o(u,d,f){if(u==null)return f;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return f;const m=u[d];return m===void 0?n.isDeepKey(d)?o(u,i.toPath(d),f):f:m}case"number":case"symbol":{typeof d=="number"&&(d=r.toKey(d));const m=u[d];return m===void 0?f:m}default:{if(Array.isArray(d))return s(u,d,f);if(Object.is(d?.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return f;const m=u[d];return m===void 0?f:m}}}function s(u,d,f){if(d.length===0)return f;let m=u;for(let p=0;p<d.length;p++){if(m==null||t.isUnsafeProperty(d[p]))return f;m=m[d[p]]}return m===void 0?f:m}e.get=o}(Ob)),Ob}var Nb,FO;function JJ(){return FO||(FO=1,Nb=Ww().get),Nb}var eee=JJ();const Uu=oa(eee);var Db={exports:{}},Vt={};/** @license React v16.13.1
* 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 $O;function tee(){if($O)return Vt;$O=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function O(F){if(typeof F=="object"&&F!==null){var $=F.$$typeof;switch($){case t:switch(F=F.type,F){case d:case f:case r:case o:case i:case p:return F;default:switch(F=F&&F.$$typeof,F){case u:case m:case w:case _:case s:return F;default:return $}}case n:return $}}}function N(F){return O(F)===f}return Vt.AsyncMode=d,Vt.ConcurrentMode=f,Vt.ContextConsumer=u,Vt.ContextProvider=s,Vt.Element=t,Vt.ForwardRef=m,Vt.Fragment=r,Vt.Lazy=w,Vt.Memo=_,Vt.Portal=n,Vt.Profiler=o,Vt.StrictMode=i,Vt.Suspense=p,Vt.isAsyncMode=function(F){return N(F)||O(F)===d},Vt.isConcurrentMode=N,Vt.isContextConsumer=function(F){return O(F)===u},Vt.isContextProvider=function(F){return O(F)===s},Vt.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===t},Vt.isForwardRef=function(F){return O(F)===m},Vt.isFragment=function(F){return O(F)===r},Vt.isLazy=function(F){return O(F)===w},Vt.isMemo=function(F){return O(F)===_},Vt.isPortal=function(F){return O(F)===n},Vt.isProfiler=function(F){return O(F)===o},Vt.isStrictMode=function(F){return O(F)===i},Vt.isSuspense=function(F){return O(F)===p},Vt.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===r||F===f||F===o||F===i||F===p||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===w||F.$$typeof===_||F.$$typeof===s||F.$$typeof===u||F.$$typeof===m||F.$$typeof===E||F.$$typeof===T||F.$$typeof===j||F.$$typeof===x)},Vt.typeOf=O,Vt}var VO;function nee(){return VO||(VO=1,Db.exports=tee()),Db.exports}var ree=nee(),dr=e=>e===0?0:e>0?1:-1,Li=e=>typeof e=="number"&&e!=+e,_u=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,st=e=>(typeof e=="number"||e instanceof Number)&&!Li(e),si=e=>st(e)||typeof e=="string",iee=0,jh=e=>{var t=++iee;return"".concat(e||"").concat(t)},Lr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!st(t)&&typeof t!="string")return r;var o;if(_u(t)){if(n==null)return r;var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Li(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},UN=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function Mn(e,t,n){return st(e)&&st(t)?e+n*(t-e):t}function zN(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Uu(r,t))===n)}var vn=e=>e===null||typeof e>"u",Jh=e=>vn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),aee=["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"];function Kw(e){if(typeof e!="string")return!1;var t=aee;return t.includes(e)}var oee=["viewBox","children"],HO=["points","pathLength"],kb={svg:oee,polygon:HO,polyline:HO},Zw=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(C.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Kw(i)&&(r[i]=o=>n[i](n,o))}),r},see=(e,t,n)=>r=>(e(t,n,r),null),by=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Kw(i)&&typeof o=="function"&&(r||(r={}),r[i]=see(o,t,n))}),r},lee=["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"];function BN(e){if(typeof e!="string")return!1;var t=lee;return t.includes(e)}function ho(e){var t=Object.entries(e).filter(n=>{var[r]=n;return BN(r)});return Object.fromEntries(t)}var qO=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",GO=null,Ib=null,FN=e=>{if(e===GO&&Array.isArray(Ib))return Ib;var t=[];return C.Children.forEach(e,n=>{vn(n)||(ree.isFragment(n)?t=t.concat(FN(n.props.children)):t.push(n))}),Ib=t,GO=e,t};function Xw(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>qO(i)):r=[qO(t)],FN(e).forEach(i=>{var o=Uu(i,"type.displayName")||Uu(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var $N=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,uee=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&kb?.[r])!==null&&i!==void 0?i:[],s=t.startsWith("data-"),u=typeof e!="function"&&(!!r&&o.includes(t)||BN(t)),d=!!n&&Kw(t);return s||u||d},yn=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(C.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var s;uee((s=r)===null||s===void 0?void 0:s[o],o,t,n)&&(i[o]=r[o])}),i},cee=["children","width","height","viewBox","className","style","title","desc"];function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zx.apply(null,arguments)}function fee(e,t){if(e==null)return{};var n,r,i=dee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var VN=C.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:s,style:u,title:d,desc:f}=e,m=fee(e,cee),p=o||{width:r,height:i,x:0,y:0},b=Pe("recharts-surface",s);return C.createElement("svg",Zx({},yn(m,!0,"svg"),{className:b,width:r,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),C.createElement("title",null,d),C.createElement("desc",null,f),n)}),hee=["children","className"];function Xx(){return Xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xx.apply(null,arguments)}function mee(e,t){if(e==null)return{};var n,r,i=pee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var hr=C.forwardRef((e,t)=>{var{children:n,className:r}=e,i=mee(e,hee),o=Pe("recharts-layer",r);return C.createElement("g",Xx({className:o},yn(i,!0),{ref:t}),n)}),gee=C.createContext(null);function tn(e){return function(){return e}}const HN=Math.cos,ov=Math.sin,Ra=Math.sqrt,sv=Math.PI,_y=2*sv,Qx=Math.PI,Jx=2*Qx,pu=1e-6,vee=Jx-pu;function qN(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function yee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qN;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class bee{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?qN:yee(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,u=this._y1,d=r-t,f=i-n,m=s-t,p=u-n,b=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>pu)if(!(Math.abs(p*d-f*m)>pu)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let _=r-s,w=i-u,x=d*d+f*f,E=_*_+w*w,T=Math.sqrt(x),j=Math.sqrt(b),O=o*Math.tan((Qx-Math.acos((x+b-E)/(2*T*j)))/2),N=O/j,F=O/T;Math.abs(N-1)>pu&&this._append`L${t+N*m},${n+N*p}`,this._append`A${o},${o},0,0,${+(p*_>m*w)},${this._x1=t+F*d},${this._y1=n+F*f}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),d=r*Math.sin(i),f=t+u,m=n+d,p=1^s,b=s?i-o:o-i;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>pu||Math.abs(this._y1-m)>pu)&&this._append`L${f},${m}`,r&&(b<0&&(b=b%Jx+Jx),b>vee?this._append`A${r},${r},0,1,${p},${t-u},${n-d}A${r},${r},0,1,${p},${this._x1=f},${this._y1=m}`:b>pu&&this._append`A${r},${r},0,${+(b>=Qx)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Qw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new bee(t)}function Jw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GN(e){this._context=e}GN.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 xy(e){return new GN(e)}function YN(e){return e[0]}function WN(e){return e[1]}function KN(e,t){var n=tn(!0),r=null,i=xy,o=null,s=Qw(u);e=typeof e=="function"?e:e===void 0?YN:tn(e),t=typeof t=="function"?t:t===void 0?WN:tn(t);function u(d){var f,m=(d=Jw(d)).length,p,b=!1,_;for(r==null&&(o=i(_=s())),f=0;f<=m;++f)!(f<m&&n(p=d[f],f,d))===b&&((b=!b)?o.lineStart():o.lineEnd()),b&&o.point(+e(p,f,d),+t(p,f,d));if(_)return o=null,_+""||null}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:tn(+d),u):e},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:tn(+d),u):t},u.defined=function(d){return arguments.length?(n=typeof d=="function"?d:tn(!!d),u):n},u.curve=function(d){return arguments.length?(i=d,r!=null&&(o=i(r)),u):i},u.context=function(d){return arguments.length?(d==null?r=o=null:o=i(r=d),u):r},u}function Qp(e,t,n){var r=null,i=tn(!0),o=null,s=xy,u=null,d=Qw(f);e=typeof e=="function"?e:e===void 0?YN:tn(+e),t=typeof t=="function"?t:tn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WN:tn(+n);function f(p){var b,_,w,x=(p=Jw(p)).length,E,T=!1,j,O=new Array(x),N=new Array(x);for(o==null&&(u=s(j=d())),b=0;b<=x;++b){if(!(b<x&&i(E=p[b],b,p))===T)if(T=!T)_=b,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),w=b-1;w>=_;--w)u.point(O[w],N[w]);u.lineEnd(),u.areaEnd()}T&&(O[b]=+e(E,b,p),N[b]=+t(E,b,p),u.point(r?+r(E,b,p):O[b],n?+n(E,b,p):N[b]))}if(j)return u=null,j+""||null}function m(){return KN().defined(i).curve(s).context(o)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:tn(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:tn(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:tn(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:tn(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:tn(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:tn(+p),f):n},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(n)},f.lineX1=function(){return m().x(r).y(t)},f.defined=function(p){return arguments.length?(i=typeof p=="function"?p:tn(!!p),f):i},f.curve=function(p){return arguments.length?(s=p,o!=null&&(u=s(o)),f):s},f.context=function(p){return arguments.length?(p==null?o=u=null:u=s(o=p),f):o},f}class ZN{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function _ee(e){return new ZN(e,!0)}function xee(e){return new ZN(e,!1)}const eS={draw(e,t){const n=Ra(t/sv);e.moveTo(n,0),e.arc(0,0,n,0,_y)}},wee={draw(e,t){const n=Ra(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},XN=Ra(1/3),See=XN*2,Cee={draw(e,t){const n=Ra(t/See),r=n*XN;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Eee={draw(e,t){const n=Ra(t),r=-n/2;e.rect(r,r,n,n)}},Aee=.8908130915292852,QN=ov(sv/10)/ov(7*sv/10),Tee=ov(_y/10)*QN,Oee=-HN(_y/10)*QN,jee={draw(e,t){const n=Ra(t*Aee),r=Tee*n,i=Oee*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=_y*o/5,u=HN(s),d=ov(s);e.lineTo(d*n,-u*n),e.lineTo(u*r-d*i,d*r+u*i)}e.closePath()}},Ub=Ra(3),Mee={draw(e,t){const n=-Ra(t/(Ub*3));e.moveTo(0,n*2),e.lineTo(-Ub*n,-n),e.lineTo(Ub*n,-n),e.closePath()}},Xi=-.5,Qi=Ra(3)/2,e2=1/Ra(12),Pee=(e2/2+1)*3,Ree={draw(e,t){const n=Ra(t/Pee),r=n/2,i=n*e2,o=r,s=n*e2+n,u=-o,d=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(u,d),e.lineTo(Xi*r-Qi*i,Qi*r+Xi*i),e.lineTo(Xi*o-Qi*s,Qi*o+Xi*s),e.lineTo(Xi*u-Qi*d,Qi*u+Xi*d),e.lineTo(Xi*r+Qi*i,Xi*i-Qi*r),e.lineTo(Xi*o+Qi*s,Xi*s-Qi*o),e.lineTo(Xi*u+Qi*d,Xi*d-Qi*u),e.closePath()}};function Lee(e,t){let n=null,r=Qw(i);e=typeof e=="function"?e:tn(e||eS),t=typeof t=="function"?t:tn(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:tn(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:tn(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function lv(){}function uv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function JN(e){this._context=e}JN.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:uv(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:uv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nee(e){return new JN(e)}function eD(e){this._context=e}eD.prototype={areaStart:lv,areaEnd:lv,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:uv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dee(e){return new eD(e)}function tD(e){this._context=e}tD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:uv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kee(e){return new tD(e)}function nD(e){this._context=e}nD.prototype={areaStart:lv,areaEnd:lv,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 Iee(e){return new nD(e)}function YO(e){return e<0?-1:1}function WO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(YO(o)+YO(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function KO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function zb(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,i+u*t,o-u,s-u*n,o,s)}function cv(e){this._context=e}cv.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:zb(this,this._t0,KO(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,zb(this,KO(this,n=WO(this,e,t)),n);break;default:zb(this,this._t0,n=WO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rD(e){this._context=new iD(e)}(rD.prototype=Object.create(cv.prototype)).point=function(e,t){cv.prototype.point.call(this,t,e)};function iD(e){this._context=e}iD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Uee(e){return new cv(e)}function zee(e){return new rD(e)}function aD(e){this._context=e}aD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ZO(e),i=ZO(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function ZO(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Bee(e){return new aD(e)}function wy(e,t){this._context=e,this._t=t}wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Fee(e){return new wy(e,.5)}function $ee(e){return new wy(e,0)}function Vee(e){return new wy(e,1)}function af(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,u=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<u;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function t2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Hee(e,t){return e[t]}function qee(e){const t=[];return t.key=e,t}function Gee(){var e=tn([]),t=t2,n=af,r=Hee;function i(o){var s=Array.from(e.apply(this,arguments),qee),u,d=s.length,f=-1,m;for(const p of o)for(u=0,++f;u<d;++u)(s[u][f]=[0,+r(p,s[u].key,f,o)]).data=p;for(u=0,m=Jw(t(s));u<d;++u)s[m[u]].index=u;return n(s,m),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:tn(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:tn(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?t2:typeof o=="function"?o:tn(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??af,i):n},i}function Yee(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}af(e,t)}}function Wee(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,u=0;s<i;++s)u+=e[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}af(e,t)}}function Kee(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var u=0,d=0,f=0;u<s;++u){for(var m=e[t[u]],p=m[r][1]||0,b=m[r-1][1]||0,_=(p-b)/2,w=0;w<u;++w){var x=e[t[w]],E=x[r][1]||0,T=x[r-1][1]||0;_+=E-T}d+=p,f+=_*p}i[r-1][1]+=i[r-1][0]=n,d&&(n-=f/d)}i[r-1][1]+=i[r-1][0]=n,af(e,t)}}var Zee=["type","size","sizeType"];function n2(){return n2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n2.apply(null,arguments)}function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(n),!0).forEach(function(r){Xee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xee(e,t,n){return(t=Qee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qee(e){var t=Jee(e,"string");return typeof t=="symbol"?t:t+""}function Jee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ete(e,t){if(e==null)return{};var n,r,i=tte(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var oD={symbolCircle:eS,symbolCross:wee,symbolDiamond:Cee,symbolSquare:Eee,symbolStar:jee,symbolTriangle:Mee,symbolWye:Ree},nte=Math.PI/180,rte=e=>{var t="symbol".concat(Jh(e));return oD[t]||eS},ite=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*nte;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},ate=(e,t)=>{oD["symbol".concat(Jh(e))]=t},sD=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=ete(e,Zee),o=QO(QO({},i),{},{type:t,size:n,sizeType:r}),s="circle";typeof t=="string"&&(s=t);var u=()=>{var b=rte(s),_=Lee().type(b).size(ite(n,r,s));return _()},{className:d,cx:f,cy:m}=o,p=yn(o,!0);return f===+f&&m===+m&&n===+n?C.createElement("path",n2({},p,{className:Pe("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(m,")"),d:u()})):null};sD.registerSymbol=ate;var Bb={},Fb={},JO;function ote(){return JO||(JO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const s=n[o],u=r(s);i.has(u)||i.set(u,s)}return Array.from(i.values())}e.uniqBy=t}(Fb)),Fb}var $b={},ej;function lD(){return ej||(ej=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t}($b)),$b}var Vb={},Hb={},qb={},tj;function ste(){return tj||(tj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t}(qb)),qb}var nj;function tS(){return nj||(nj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ste();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n}(Hb)),Hb}var Gb={},rj;function lte(){return rj||(rj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t}(Gb)),Gb}var ij;function ute(){return ij||(ij=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tS(),n=lte();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r}(Vb)),Vb}var Yb={},Wb={},aj;function cte(){return aj||(aj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ww();function n(r){return function(i){return t.get(i,r)}}e.property=n}(Wb)),Wb}var Kb={},Zb={},Xb={},Qb={},oj;function uD(){return oj||(oj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t}(Qb)),Qb}var Jb={},sj;function cD(){return sj||(sj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t}(Jb)),Jb}var e_={},lj;function fD(){return lj||(lj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t}(e_)),e_}var uj;function fte(){return uj||(uj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nS(),n=uD(),r=cD(),i=fD();function o(p,b,_){return typeof _!="function"?t.isMatch(p,b):s(p,b,function w(x,E,T,j,O,N){const F=_(x,E,T,j,O,N);return F!==void 0?!!F:s(x,E,w,N)},new Map)}function s(p,b,_,w){if(b===p)return!0;switch(typeof b){case"object":return u(p,b,_,w);case"function":return Object.keys(b).length>0?s(p,{...b},_,w):i.eq(p,b);default:return n.isObject(p)?typeof b=="string"?b==="":!0:i.eq(p,b)}}function u(p,b,_,w){if(b==null)return!0;if(Array.isArray(b))return f(p,b,_,w);if(b instanceof Map)return d(p,b,_,w);if(b instanceof Set)return m(p,b,_,w);const x=Object.keys(b);if(p==null)return x.length===0;if(x.length===0)return!0;if(w&&w.has(b))return w.get(b)===p;w&&w.set(b,p);try{for(let E=0;E<x.length;E++){const T=x[E];if(!r.isPrimitive(p)&&!(T in p)||b[T]===void 0&&p[T]!==void 0||b[T]===null&&p[T]!==null||!_(p[T],b[T],T,p,b,w))return!1}return!0}finally{w&&w.delete(b)}}function d(p,b,_,w){if(b.size===0)return!0;if(!(p instanceof Map))return!1;for(const[x,E]of b.entries()){const T=p.get(x);if(_(T,E,x,p,b,w)===!1)return!1}return!0}function f(p,b,_,w){if(b.length===0)return!0;if(!Array.isArray(p))return!1;const x=new Set;for(let E=0;E<b.length;E++){const T=b[E];let j=!1;for(let O=0;O<p.length;O++){if(x.has(O))continue;const N=p[O];let F=!1;if(_(N,T,E,p,b,w)&&(F=!0),F){x.add(O),j=!0;break}}if(!j)return!1}return!0}function m(p,b,_,w){return b.size===0?!0:p instanceof Set?f([...p],[...b],_,w):!1}e.isMatchWith=o,e.isSetMatch=m}(Xb)),Xb}var cj;function nS(){return cj||(cj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fte();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n}(Zb)),Zb}var t_={},n_={},r_={},fj;function dte(){return fj||(fj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t}(r_)),r_}var i_={},dj;function dD(){return dj||(dj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t}(i_)),i_}var a_={},hj;function hD(){return hj||(hj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",s="[object Symbol]",u="[object Date]",d="[object Map]",f="[object Set]",m="[object Array]",p="[object Function]",b="[object ArrayBuffer]",_="[object Object]",w="[object Error]",x="[object DataView]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",j="[object Uint16Array]",O="[object Uint32Array]",N="[object BigUint64Array]",F="[object Int8Array]",$="[object Int16Array]",K="[object Int32Array]",Q="[object BigInt64Array]",oe="[object Float32Array]",ee="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=b,e.arrayTag=m,e.bigInt64ArrayTag=Q,e.bigUint64ArrayTag=N,e.booleanTag=i,e.dataViewTag=x,e.dateTag=u,e.errorTag=w,e.float32ArrayTag=oe,e.float64ArrayTag=ee,e.functionTag=p,e.int16ArrayTag=$,e.int32ArrayTag=K,e.int8ArrayTag=F,e.mapTag=d,e.numberTag=r,e.objectTag=_,e.regexpTag=t,e.setTag=f,e.stringTag=n,e.symbolTag=s,e.uint16ArrayTag=j,e.uint32ArrayTag=O,e.uint8ArrayTag=E,e.uint8ClampedArrayTag=T}(a_)),a_}var o_={},mj;function hte(){return mj||(mj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t}(o_)),o_}var pj;function mD(){return pj||(pj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dte(),n=dD(),r=hD(),i=cD(),o=hte();function s(m,p){return u(m,void 0,m,new Map,p)}function u(m,p,b,_=new Map,w=void 0){const x=w?.(m,p,b,_);if(x!==void 0)return x;if(i.isPrimitive(m))return m;if(_.has(m))return _.get(m);if(Array.isArray(m)){const E=new Array(m.length);_.set(m,E);for(let T=0;T<m.length;T++)E[T]=u(m[T],T,b,_,w);return Object.hasOwn(m,"index")&&(E.index=m.index),Object.hasOwn(m,"input")&&(E.input=m.input),E}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const E=new RegExp(m.source,m.flags);return E.lastIndex=m.lastIndex,E}if(m instanceof Map){const E=new Map;_.set(m,E);for(const[T,j]of m)E.set(T,u(j,T,b,_,w));return E}if(m instanceof Set){const E=new Set;_.set(m,E);for(const T of m)E.add(u(T,void 0,b,_,w));return E}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const E=new(Object.getPrototypeOf(m)).constructor(m.length);_.set(m,E);for(let T=0;T<m.length;T++)E[T]=u(m[T],T,b,_,w);return E}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const E=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return _.set(m,E),d(E,m,b,_,w),E}if(typeof File<"u"&&m instanceof File){const E=new File([m],m.name,{type:m.type});return _.set(m,E),d(E,m,b,_,w),E}if(typeof Blob<"u"&&m instanceof Blob){const E=new Blob([m],{type:m.type});return _.set(m,E),d(E,m,b,_,w),E}if(m instanceof Error){const E=new m.constructor;return _.set(m,E),E.message=m.message,E.name=m.name,E.stack=m.stack,E.cause=m.cause,d(E,m,b,_,w),E}if(m instanceof Boolean){const E=new Boolean(m.valueOf());return _.set(m,E),d(E,m,b,_,w),E}if(m instanceof Number){const E=new Number(m.valueOf());return _.set(m,E),d(E,m,b,_,w),E}if(m instanceof String){const E=new String(m.valueOf());return _.set(m,E),d(E,m,b,_,w),E}if(typeof m=="object"&&f(m)){const E=Object.create(Object.getPrototypeOf(m));return _.set(m,E),d(E,m,b,_,w),E}return m}function d(m,p,b=m,_,w){const x=[...Object.keys(p),...t.getSymbols(p)];for(let E=0;E<x.length;E++){const T=x[E],j=Object.getOwnPropertyDescriptor(m,T);(j==null||j.writable)&&(m[T]=u(p[T],T,b,_,w))}}function f(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=u,e.copyProperties=d}(n_)),n_}var gj;function mte(){return gj||(gj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mD();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n}(t_)),t_}var vj;function pte(){return vj||(vj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nS(),n=mte();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r}(Kb)),Kb}var s_={},l_={},u_={},yj;function gte(){return yj||(yj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mD(),n=hD();function r(i,o){return t.cloneDeepWith(i,(s,u,d,f)=>{const m=o?.(s,u,d,f);if(m!==void 0)return m;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}})}e.cloneDeepWith=r}(u_)),u_}var bj;function vte(){return bj||(bj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gte();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n}(l_)),l_}var c_={},f_={},_j;function pD(){return _j||(_j=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n}(f_)),f_}var d_={},xj;function yte(){return xj||(xj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dD();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n}(d_)),d_}var wj;function bte(){return wj||(wj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IN(),n=pD(),r=yte(),i=Yw();function o(s,u){let d;if(Array.isArray(u)?d=u:typeof u=="string"&&t.isDeepKey(u)&&s?.[u]==null?d=i.toPath(u):d=[u],d.length===0)return!1;let f=s;for(let m=0;m<d.length;m++){const p=d[m];if((f==null||!Object.hasOwn(f,p))&&!((Array.isArray(f)||r.isArguments(f))&&n.isIndex(p)&&p<f.length))return!1;f=f[p]}return!0}e.has=o}(c_)),c_}var Sj;function _te(){return Sj||(Sj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nS(),n=Gw(),r=vte(),i=Ww(),o=bte();function s(u,d){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return d=r.cloneDeep(d),function(f){const m=i.get(f,u);return m===void 0?o.has(f,u):d===void 0?m===void 0:t.isMatch(m,d)}}e.matchesProperty=s}(s_)),s_}var Cj;function xte(){return Cj||(Cj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lD(),n=cte(),r=pte(),i=_te();function o(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):r.matches(s);case"string":case"symbol":case"number":return n.property(s)}}e.iteratee=o}(Yb)),Yb}var Ej;function wte(){return Ej||(Ej=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ote(),n=lD(),r=ute(),i=xte();function o(s,u=n.identity){return r.isArrayLikeObject(s)?t.uniqBy(Array.from(s),i.iteratee(u)):[]}e.uniqBy=o}(Bb)),Bb}var h_,Aj;function Ste(){return Aj||(Aj=1,h_=wte().uniqBy),h_}var Cte=Ste();const Tj=oa(Cte);function Ete(e,t,n){return t===!0?Tj(e,n):typeof t=="function"?Tj(e,t):e}var m_={exports:{}},p_={},g_={exports:{}},v_={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Oj;function Ate(){if(Oj)return v_;Oj=1;var e=pf();function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function u(p,b){var _=b(),w=r({inst:{value:_,getSnapshot:b}}),x=w[0].inst,E=w[1];return o(function(){x.value=_,x.getSnapshot=b,d(x)&&E({inst:x})},[p,_,b]),i(function(){return d(x)&&E({inst:x}),p(function(){d(x)&&E({inst:x})})},[p]),s(_),_}function d(p){var b=p.getSnapshot;p=p.value;try{var _=b();return!n(p,_)}catch{return!0}}function f(p,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return v_.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,v_}var jj;function Tte(){return jj||(jj=1,g_.exports=Ate()),g_.exports}/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Mj;function Ote(){if(Mj)return p_;Mj=1;var e=pf(),t=Tte();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,u=e.useMemo,d=e.useDebugValue;return p_.useSyncExternalStoreWithSelector=function(f,m,p,b,_){var w=o(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function T($){if(!j){if(j=!0,O=$,$=b($),_!==void 0&&x.hasValue){var K=x.value;if(_(K,$))return N=K}return N=$}if(K=N,r(O,$))return K;var Q=b($);return _!==void 0&&_(K,Q)?(O=$,K):(O=$,N=Q)}var j=!1,O,N,F=p===void 0?null:p;return[function(){return T(m())},F===null?void 0:function(){return T(F())}]},[m,p,b,_]);var E=i(f,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=E},[E]),d(E),E},p_}var Pj;function jte(){return Pj||(Pj=1,m_.exports=Ote()),m_.exports}var Mte=jte(),rS=C.createContext(null),Pte=e=>e,Rn=()=>{var e=C.useContext(rS);return e?e.store.dispatch:Pte},Mg=()=>{},Rte=()=>Mg,Lte=(e,t)=>e===t;function tt(e){var t=C.useContext(rS);return Mte.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Rte,t?t.store.getState:Mg,t?t.store.getState:Mg,t?e:Mg,Lte)}var y_={},b_={},__={},Rj;function Nte(){return Rj||(Rj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const s=t(r),u=t(i);if(s===u&&s===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?u-s:s-u}return 0};e.compareValues=n}(__)),__}var x_={},w_={},Lj;function gD(){return Lj||(Lj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(w_)),w_}var Nj;function Dte(){return Nj||(Nj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gD(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||s!=null&&Object.hasOwn(s,o)}e.isKey=i}(x_)),x_}var Dj;function kte(){return Dj||(Dj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nte(),n=Dte(),r=Yw();function i(o,s,u,d){if(o==null)return[];u=d?void 0:u,Array.isArray(o)||(o=Object.values(o)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(_=>String(_));const f=(_,w)=>{let x=_;for(let E=0;E<w.length&&x!=null;++E)x=x[w[E]];return x},m=(_,w)=>w==null||_==null?w:typeof _=="object"&&"key"in _?Object.hasOwn(w,_.key)?w[_.key]:f(w,_.path):typeof _=="function"?_(w):Array.isArray(_)?f(w,_):typeof w=="object"?w[_]:w,p=s.map(_=>(Array.isArray(_)&&_.length===1&&(_=_[0]),_==null||typeof _=="function"||Array.isArray(_)||n.isKey(_)?_:{key:_,path:r.toPath(_)}));return o.map(_=>({original:_,criteria:p.map(w=>m(w,_))})).slice().sort((_,w)=>{for(let x=0;x<p.length;x++){const E=t.compareValues(_.criteria[x],w.criteria[x],u[x]);if(E!==0)return E}return 0}).map(_=>_.original)}e.orderBy=i}(b_)),b_}var S_={},kj;function Ite(){return kj||(kj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),s=(u,d)=>{for(let f=0;f<u.length;f++){const m=u[f];Array.isArray(m)&&d<o?s(m,d+1):i.push(m)}};return s(n,0),i}e.flatten=t}(S_)),S_}var C_={},Ij;function vD(){return Ij||(Ij=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pD(),n=tS(),r=uD(),i=fD();function o(s,u,d){return r.isObject(d)&&(typeof u=="number"&&n.isArrayLike(d)&&t.isIndex(u)&&u<d.length||typeof u=="string"&&u in d)?i.eq(d[u],s):!1}e.isIterateeCall=o}(C_)),C_}var Uj;function Ute(){return Uj||(Uj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kte(),n=Ite(),r=vD();function i(o,...s){const u=s.length;return u>1&&r.isIterateeCall(o,s[0],s[1])?s=[]:u>2&&r.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(o,n.flatten(s),["asc"])}e.sortBy=i}(y_)),y_}var E_,zj;function zte(){return zj||(zj=1,E_=Ute().sortBy),E_}var Bte=zte();const Sy=oa(Bte);var yD=e=>e.legend.settings,Fte=e=>e.legend.size,$te=e=>e.legend.payload;je([$te,yD],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Sy(r,n):r});var Jp=1;function Vte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=C.useState({height:0,left:0,top:0,width:0}),r=C.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),s={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(s.height-t.height)>Jp||Math.abs(s.left-t.left)>Jp||Math.abs(s.top-t.top)>Jp||Math.abs(s.width-t.width)>Jp)&&n({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}var Hte={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},bD=Lt({name:"chartLayout",initialState:Hte,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:qte,setLayout:Gte,setChartSize:Yte,setScale:Wte}=bD.actions,Kte=bD.reducer;function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bj(Object(n),!0).forEach(function(r){Zte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zte(e,t,n){return(t=Xte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xte(e){var t=Qte(e,"string");return typeof t=="symbol"?t:t+""}function Qte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fv=Math.PI/180,Jte=e=>e*180/Math.PI,Yn=(e,t,n,r)=>({x:e+Math.cos(-fv*r)*n,y:t+Math.sin(-fv*r)*n}),_D=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},ene=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},tne=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,s=ene({x:n,y:r},{x:i,y:o});if(s<=0)return{radius:s,angle:0};var u=(n-i)/s,d=Math.acos(u);return r>o&&(d=2*Math.PI-d),{radius:s,angle:Jte(d),angleInRadian:d}},nne=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},rne=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return e+s*360},ine=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:o}=tne({x:n,y:r},t),{innerRadius:s,outerRadius:u}=t;if(i<s||i>u||i===0)return null;var{startAngle:d,endAngle:f}=nne(t),m=o,p;if(d<=f){for(;m>f;)m-=360;for(;m<d;)m+=360;p=m>=d&&m<=f}else{for(;m>d;)m-=360;for(;m<f;)m+=360;p=m>=f&&m<=d}return p?Fj(Fj({},t),{},{radius:i,angle:rne(m,t)}):null};function xD(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function $j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$j(Object(n),!0).forEach(function(r){ane(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$j(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ane(e,t,n){return(t=one(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function one(e){var t=sne(e,"string");return typeof t=="symbol"?t:t+""}function sne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rn(e,t,n){return vn(e)||vn(t)?n:si(t)?Uu(e,t,n):typeof t=="function"?t(e):n}var lne=(e,t,n,r,i)=>{var o,s=-1,u=(o=t?.length)!==null&&o!==void 0?o:0;if(u<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var d=0;d<u;d++){var f=d>0?n[d-1].coordinate:n[u-1].coordinate,m=n[d].coordinate,p=d>=u-1?n[0].coordinate:n[d+1].coordinate,b=void 0;if(dr(m-f)!==dr(p-m)){var _=[];if(dr(p-m)===dr(i[1]-i[0])){b=p;var w=m+i[1]-i[0];_[0]=Math.min(w,(w+f)/2),_[1]=Math.max(w,(w+f)/2)}else{b=f;var x=p+i[1]-i[0];_[0]=Math.min(m,(x+m)/2),_[1]=Math.max(m,(x+m)/2)}var E=[Math.min(m,(b+m)/2),Math.max(m,(b+m)/2)];if(e>E[0]&&e<=E[1]||e>=_[0]&&e<=_[1]){({index:s}=n[d]);break}}else{var T=Math.min(f,p),j=Math.max(f,p);if(e>(T+m)/2&&e<=(j+m)/2){({index:s}=n[d]);break}}}else if(t){for(var O=0;O<u;O++)if(O===0&&e<=(t[O].coordinate+t[O+1].coordinate)/2||O>0&&O<u-1&&e>(t[O].coordinate+t[O-1].coordinate)/2&&e<=(t[O].coordinate+t[O+1].coordinate)/2||O===u-1&&e>(t[O].coordinate+t[O-1].coordinate)/2){({index:s}=t[O]);break}}return s},une=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:s,layout:u}=t;if((u==="vertical"||u==="horizontal"&&s==="middle")&&o!=="center"&&st(e[o]))return ea(ea({},e),{},{[o]:e[o]+(r||0)});if((u==="horizontal"||u==="vertical"&&o==="center")&&s!=="middle"&&st(e[s]))return ea(ea({},e),{},{[s]:e[s]+(i||0)})}return e},Sl=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",wD=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,o,s=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(o=!0),u.coordinate));return i||s.push(t),o||s.push(n),s},SD=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:s,realScaleType:u,isCategorical:d,categoricalDomain:f,tickCount:m,ticks:p,niceTicks:b,axisType:_}=e;if(!s)return null;var w=u==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,x=i==="category"&&s.bandwidth?s.bandwidth()/w:0;if(x=_==="angleAxis"&&o&&o.length>=2?dr(o[0]-o[1])*2*x:x,p||b){var E=(p||b||[]).map((T,j)=>{var O=r?r.indexOf(T):T;return{coordinate:s(O)+x,value:T,offset:x,index:j}});return E.filter(T=>!Li(T.coordinate))}return d&&f?f.map((T,j)=>({coordinate:s(T)+x,value:T,index:j,offset:x})):s.ticks&&m!=null?s.ticks(m).map((T,j)=>({coordinate:s(T)+x,value:T,offset:x,index:j})):s.domain().map((T,j)=>({coordinate:s(T)+x,value:r?r[T]:T,index:j,offset:x}))},Vj=1e-4,cne=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-Vj,o=Math.max(r[0],r[1])+Vj,s=e(t[0]),u=e(t[n-1]);(s<i||s>o||u<i||u>o)&&e.domain([t[0],t[n-1]])}},fne=(e,t)=>{if(!t||t.length!==2||!st(t[0])||!st(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!st(e[0])||e[0]<n)&&(i[0]=n),(!st(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},dne=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,s=0;s<t;++s){var u=Li(e[s][n][1])?e[s][n][0]:e[s][n][1];u>=0?(e[s][n][0]=i,e[s][n][1]=i+u,i=e[s][n][1]):(e[s][n][0]=o,e[s][n][1]=o+u,o=e[s][n][1])}},hne=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var s=Li(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},mne={sign:dne,expand:Yee,none:af,silhouette:Wee,wiggle:Kee,positive:hne},pne=(e,t,n)=>{var r=mne[n],i=Gee().keys(t).value((o,s)=>+rn(o,s,0)).order(t2).offset(r);return i(e)};function gne(e){return e==null?void 0:String(e)}function Hj(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!vn(i[t.dataKey])){var u=zN(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var d=rn(i,vn(s)?t.dataKey:s);return vn(d)?null:t.scale(d)}var qj=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:s}=e;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var u=rn(o,t.dataKey,t.scale.domain()[s]);return vn(u)?null:t.scale(u)-i/2+r},vne=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},yne=e=>{var t=e.flat(2).filter(st);return[Math.min(...t),Math.max(...t)]},bne=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],_ne=(e,t,n)=>{if(e!=null)return bne(Object.keys(e).reduce((r,i)=>{var o=e[i],{stackedData:s}=o,u=s.reduce((d,f)=>{var m=xD(f,t,n),p=yne(m);return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},Gj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Mh=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Sy(t,m=>m.coordinate),o=1/0,s=1,u=i.length;s<u;s++){var d=i[s],f=i[s-1];o=Math.min((d.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0};function Wj(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return ea(ea({},t),{},{dataKey:n,payload:r,value:i,name:o})}function Af(e,t){if(e)return String(e);if(typeof t=="string")return t}function xne(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var o=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return o?{x:e,y:t}:null}return r?ine({x:e,y:t},r):null}var wne=(e,t,n,r)=>{var i=t.find(f=>f&&f.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,{radius:s}=r;return ea(ea(ea({},r),Yn(r.cx,r.cy,s,o)),{},{angle:o,radius:s})}var u=i.coordinate,{angle:d}=r;return ea(ea(ea({},r),Yn(r.cx,r.cy,u,d)),{},{angle:d,radius:u})}return{x:0,y:0}},Sne=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,as=e=>e.layout.width,os=e=>e.layout.height,Cne=e=>e.layout.scale,CD=e=>e.layout.margin,Cy=je(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ey=je(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ED="data-recharts-item-index",AD="data-recharts-item-data-key",em=60;function Kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kj(Object(n),!0).forEach(function(r){Ene(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ene(e,t,n){return(t=Ane(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ane(e){var t=Tne(e,"string");return typeof t=="symbol"?t:t+""}function Tne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var One=e=>e.brush.height;function jne(e){var t=Ey(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:em;return n+i}return n},0)}function Mne(e){var t=Ey(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:em;return n+i}return n},0)}function Pne(e){var t=Cy(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function Rne(e){var t=Cy(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var rr=je([as,os,CD,One,jne,Mne,Pne,Rne,yD,Fte],(e,t,n,r,i,o,s,u,d,f)=>{var m={left:(n.left||0)+i,right:(n.right||0)+o},p={top:(n.top||0)+s,bottom:(n.bottom||0)+u},b=eg(eg({},p),m),_=b.bottom;b.bottom+=r,b=une(b,d,f);var w=e-b.left-b.right,x=t-b.top-b.bottom;return eg(eg({brushBottom:_},b),{},{width:Math.max(w,0),height:Math.max(x,0)})}),Lne=je(rr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),iS=je(as,os,(e,t)=>({x:0,y:0,width:e,height:t})),Nne=C.createContext(null),qr=()=>C.useContext(Nne)!=null,Ay=e=>e.brush,Ty=je([Ay,rr,CD],(e,t,n)=>({height:e.height,x:st(e.x)?e.x:t.left,y:st(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:st(e.width)?e.width:t.width})),aS=()=>{var e,t=qr(),n=tt(Lne),r=tt(Ty),i=(e=tt(Ay))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},Dne={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},TD=()=>{var e;return(e=tt(rr))!==null&&e!==void 0?e:Dne},OD=()=>tt(as),jD=()=>tt(os),Nt=e=>e.layout.layoutType,Oy=()=>tt(Nt),kne={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},MD=Lt({name:"legend",initialState:kne,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=qo(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:wxe,setLegendSettings:Sxe,addLegendPayload:PD,removeLegendPayload:RD}=MD.actions,Ine=MD.reducer;function r2(){return r2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r2.apply(null,arguments)}function Zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function A_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zj(Object(n),!0).forEach(function(r){Une(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Une(e,t,n){return(t=zne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zne(e){var t=Bne(e,"string");return typeof t=="symbol"?t:t+""}function Bne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fne(e){return Array.isArray(e)&&si(e[0])&&si(e[1])?e.join(" ~ "):e}var $ne=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:s,itemSorter:u,wrapperClassName:d,labelClassName:f,label:m,labelFormatter:p,accessibilityLayer:b=!1}=e,_=()=>{if(o&&o.length){var F={padding:0,margin:0},$=(u?Sy(o,u):o).map((K,Q)=>{if(K.type==="none")return null;var oe=K.formatter||s||Fne,{value:ee,name:J}=K,te=ee,he=J;if(oe){var X=oe(ee,J,K,Q,o);if(Array.isArray(X))[te,he]=X;else if(X!=null)te=X;else return null}var se=A_({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},r);return C.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Q),style:se},si(he)?C.createElement("span",{className:"recharts-tooltip-item-name"},he):null,si(he)?C.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,C.createElement("span",{className:"recharts-tooltip-item-value"},te),C.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return C.createElement("ul",{className:"recharts-tooltip-item-list",style:F},$)}return null},w=A_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),x=A_({margin:0},i),E=!vn(m),T=E?m:"",j=Pe("recharts-default-tooltip",d),O=Pe("recharts-tooltip-label",f);E&&p&&o!==void 0&&o!==null&&(T=p(m,o));var N=b?{role:"status","aria-live":"assertive"}:{};return C.createElement("div",r2({className:j,style:w},N),C.createElement("p",{className:O,style:x},C.isValidElement(T)?T:"".concat(T)),_())},Yd="recharts-tooltip-wrapper",Vne={visibility:"hidden"};function Hne(e){var{coordinate:t,translateX:n,translateY:r}=e;return Pe(Yd,{["".concat(Yd,"-right")]:st(n)&&t&&st(t.x)&&n>=t.x,["".concat(Yd,"-left")]:st(n)&&t&&st(t.x)&&n<t.x,["".concat(Yd,"-bottom")]:st(r)&&t&&st(t.y)&&r>=t.y,["".concat(Yd,"-top")]:st(r)&&t&&st(t.y)&&r<t.y})}function Xj(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:o,reverseDirection:s,tooltipDimension:u,viewBox:d,viewBoxDimension:f}=e;if(o&&st(o[r]))return o[r];var m=n[r]-u-(i>0?i:0),p=n[r]+i;if(t[r])return s[r]?m:p;var b=d[r];if(b==null)return 0;if(s[r]){var _=m,w=b;return _<w?Math.max(p,b):Math.max(m,b)}if(f==null)return 0;var x=p+u,E=b+f;return x>E?Math.max(m,b):Math.max(p,b)}function qne(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Gne(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:o,tooltipBox:s,useTranslate3d:u,viewBox:d}=e,f,m,p;return s.height>0&&s.width>0&&n?(m=Xj({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),p=Xj({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),f=qne({translateX:m,translateY:p,useTranslate3d:u})):f=Vne,{cssProperties:f,cssClasses:Hne({translateX:m,translateY:p,coordinate:n})}}function Qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qj(Object(n),!0).forEach(function(r){i2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i2(e,t,n){return(t=Yne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yne(e){var t=Wne(e,"string");return typeof t=="symbol"?t:t+""}function Wne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Kne extends C.PureComponent{constructor(){super(...arguments),i2(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),i2(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:o,coordinate:s,hasPayload:u,isAnimationActive:d,offset:f,position:m,reverseDirection:p,useTranslate3d:b,viewBox:_,wrapperStyle:w,lastBoundingBox:x,innerRef:E,hasPortalFromProps:T}=this.props,{cssClasses:j,cssProperties:O}=Gne({allowEscapeViewBox:n,coordinate:s,offsetTopLeft:f,position:m,reverseDirection:p,tooltipBox:{height:x.height,width:x.width},useTranslate3d:b,viewBox:_}),N=T?{}:tg(tg({transition:d&&t?"transform ".concat(r,"ms ").concat(i):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),F=tg(tg({},N),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},w);return C.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:j,style:F,ref:E},o)}}var Zne=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Cl={devToolsEnabled:!1,isSsr:Zne()},LD=()=>tt(e=>e.rootProps.accessibilityLayer);function Ni(e){return Number.isFinite(e)}function of(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function a2(){return a2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a2.apply(null,arguments)}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function e5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jj(Object(n),!0).forEach(function(r){Xne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xne(e,t,n){return(t=Qne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qne(e){var t=Jne(e,"string");return typeof t=="symbol"?t:t+""}function Jne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t5={curveBasisClosed:Dee,curveBasisOpen:kee,curveBasis:Nee,curveBumpX:_ee,curveBumpY:xee,curveLinearClosed:Iee,curveLinear:xy,curveMonotoneX:Uee,curveMonotoneY:zee,curveNatural:Bee,curveStep:Fee,curveStepAfter:Vee,curveStepBefore:$ee},ng=e=>Ni(e.x)&&Ni(e.y),Wd=e=>e.x,Kd=e=>e.y,ere=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Jh(e));return(n==="curveMonotone"||n==="curveBump")&&t?t5["".concat(n).concat(t==="vertical"?"Y":"X")]:t5[n]||xy},tre=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,s=ere(t,i),u=o?n.filter(ng):n,d;if(Array.isArray(r)){var f=o?r.filter(p=>ng(p)):r,m=u.map((p,b)=>e5(e5({},p),{},{base:f[b]}));return i==="vertical"?d=Qp().y(Kd).x1(Wd).x0(p=>p.base.x):d=Qp().x(Wd).y1(Kd).y0(p=>p.base.y),d.defined(ng).curve(s),d(m)}return i==="vertical"&&st(r)?d=Qp().y(Kd).x1(Wd).x0(r):st(r)?d=Qp().x(Wd).y1(Kd).y0(r):d=KN().x(Wd).y(Kd),d.defined(ng).curve(s),d(u)},oS=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var o=n&&n.length?tre(e):r;return C.createElement("path",a2({},ho(e),Zw(e),{className:Pe("recharts-curve",t),d:o===null?void 0:o,ref:i}))},nre=["x","y","top","left","width","height","className"];function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o2.apply(null,arguments)}function n5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n5(Object(n),!0).forEach(function(r){ire(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ire(e,t,n){return(t=are(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function are(e){var t=ore(e,"string");return typeof t=="symbol"?t:t+""}function ore(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sre(e,t){if(e==null)return{};var n,r,i=lre(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lre(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ure=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),cre=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:s=0,className:u}=e,d=sre(e,nre),f=rre({x:t,y:n,top:r,left:i,width:o,height:s},d);return!st(t)||!st(n)||!st(o)||!st(s)||!st(r)||!st(i)?null:C.createElement("path",o2({},yn(f,!0),{className:Pe("recharts-cross",u),d:ure(t,n,o,s,r,i)}))};function fre(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function r5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(n),!0).forEach(function(r){hre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hre(e,t,n){return(t=mre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mre(e){var t=pre(e,"string");return typeof t=="symbol"?t:t+""}function pre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ar(e,t){var n=dre({},e),r=t,i=Object.keys(t),o=i.reduce((s,u)=>(s[u]===void 0&&r[u]!==void 0&&(s[u]=r[u]),s),n);return o}function gre(){}function i5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i5(Object(n),!0).forEach(function(r){vre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vre(e,t,n){return(t=yre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yre(e){var t=bre(e,"string");return typeof t=="symbol"?t:t+""}function bre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _re=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),ND=(e,t,n)=>e.map(r=>"".concat(_re(r)," ").concat(t,"ms ").concat(n)).join(","),xre=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Ph=(e,t)=>Object.keys(t).reduce((n,r)=>a5(a5({},n),{},{[r]:e(r,t[r])}),{});function o5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o5(Object(n),!0).forEach(function(r){wre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wre(e,t,n){return(t=Sre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sre(e){var t=Cre(e,"string");return typeof t=="symbol"?t:t+""}function Cre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dv=(e,t,n)=>e+(t-e)*n,s2=e=>{var{from:t,to:n}=e;return t!==n},DD=(e,t,n)=>{var r=Ph((i,o)=>{if(s2(o)){var[s,u]=e(o.from,o.to,o.velocity);return xr(xr({},o),{},{from:s,velocity:u})}return o},t);return n<1?Ph((i,o)=>s2(o)?xr(xr({},o),{},{velocity:dv(o.velocity,r[i].velocity,n),from:dv(o.from,r[i].from,n)}):o,t):DD(e,r,n-1)};function Ere(e,t,n,r,i,o){var s,u=r.reduce((b,_)=>xr(xr({},b),{},{[_]:{from:e[_],velocity:0,to:t[_]}}),{}),d=()=>Ph((b,_)=>_.from,u),f=()=>!Object.values(u).filter(s2).length,m=null,p=b=>{s||(s=b);var _=b-s,w=_/n.dt;u=DD(n,u,w),i(xr(xr(xr({},e),t),d())),s=b,f()||(m=o.setTimeout(p))};return()=>(m=o.setTimeout(p),()=>{m()})}function Are(e,t,n,r,i,o,s){var u=null,d=i.reduce((p,b)=>xr(xr({},p),{},{[b]:[e[b],t[b]]}),{}),f,m=p=>{f||(f=p);var b=(p-f)/r,_=Ph((x,E)=>dv(...E,n(b)),d);if(o(xr(xr(xr({},e),t),_)),b<1)u=s.setTimeout(m);else{var w=Ph((x,E)=>dv(...E,n(1)),d);o(xr(xr(xr({},e),t),w))}};return()=>(u=s.setTimeout(m),()=>{u()})}const Tre=(e,t,n,r,i,o)=>{var s=xre(e,t);return n.isStepper===!0?Ere(e,t,n,s,i,o):Are(e,t,n,r,s,i,o)};var hv=1e-4,kD=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],ID=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),s5=(e,t)=>n=>{var r=kD(e,t);return ID(r,n)},Ore=(e,t)=>n=>{var r=kD(e,t),i=[...r.map((o,s)=>o*s).slice(1),0];return ID(i,n)},l5=function(){for(var t,n,r,i,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];if(s.length===1)switch(s[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var d=s[0].split("(");d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4&&([t,r,n,i]=d[1].split(")")[0].split(",").map(w=>parseFloat(w)))}}else s.length===4&&([t,r,n,i]=s);var f=s5(t,n),m=s5(r,i),p=Ore(t,n),b=w=>w>1?1:w<0?0:w,_=w=>{for(var x=w>1?1:w,E=x,T=0;T<8;++T){var j=f(E)-x,O=p(E);if(Math.abs(j-x)<hv||O<hv)return m(E);E=b(E-j/O)}return m(E)};return _.isStepper=!1,_},jre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(s,u,d)=>{var f=-(s-u)*n,m=d*r,p=d+(f-m)*i/1e3,b=d*i/1e3+s;return Math.abs(b-u)<hv&&Math.abs(p)<hv?[u,0]:[b,p]};return o.isStepper=!0,o.dt=i,o},Mre=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return l5(e);case"spring":return jre();default:if(e.split("(")[0]==="cubic-bezier")return l5(e)}return typeof e=="function"?e:null};function Pre(e){var t,n=()=>null,r=!1,i=null,o=s=>{if(!r){if(Array.isArray(s)){if(!s.length)return;var u=s,[d,...f]=u;if(typeof d=="number"){i=e.setTimeout(o.bind(null,f),d);return}o(d),i=e.setTimeout(o.bind(null,f));return}typeof s=="string"&&(t=s,n(t)),typeof s=="object"&&(t=s,n(t)),typeof s=="function"&&s()}};return{stop:()=>{r=!0},start:s=>{r=!1,i&&(i(),i=null),o(s)},subscribe:s=>(n=s,()=>{n=()=>null}),getTimeoutController:()=>e}}class Rre{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=s=>{s-r>=n?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{cancelAnimationFrame(i)}}}function Lre(){return Pre(new Rre)}var Nre=C.createContext(Lre);function Dre(e,t){var n=C.useContext(Nre);return C.useMemo(()=>t??n(e),[e,t,n])}var kre={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},u5={t:0},T_={t:1};function tm(e){var t=Ar(e,kre),{isActive:n,canBegin:r,duration:i,easing:o,begin:s,onAnimationEnd:u,onAnimationStart:d,children:f}=t,m=Dre(t.animationId,t.animationManager),[p,b]=C.useState(n?u5:T_),_=C.useRef(null);return C.useEffect(()=>{n||b(T_)},[n]),C.useEffect(()=>{if(!n||!r)return gre;var w=Tre(u5,T_,Mre(o),i,b,m.getTimeoutController()),x=()=>{_.current=w()};return m.start([d,s,x,i,u]),()=>{m.stop(),_.current&&_.current(),u()}},[n,r,i,o,s,d,u,m]),f(p.t)}function nm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=C.useRef(jh(t)),r=C.useRef(e);return r.current!==e&&(n.current=jh(t),r.current=e),n.current}function c5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c5(Object(n),!0).forEach(function(r){Ire(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ire(e,t,n){return(t=Ure(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ure(e){var t=zre(e,"string");return typeof t=="symbol"?t:t+""}function zre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mv.apply(null,arguments)}var d5=(e,t,n,r,i)=>{var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,d=r>=0&&n>=0||r<0&&n<0?1:0,f;if(o>0&&i instanceof Array){for(var m=[0,0,0,0],p=0,b=4;p<b;p++)m[p]=i[p]>o?o:i[p];f="M".concat(e,",").concat(t+s*m[0]),m[0]>0&&(f+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(d,",").concat(e+u*m[0],",").concat(t)),f+="L ".concat(e+n-u*m[1],",").concat(t),m[1]>0&&(f+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(d,`,
`).concat(e+n,",").concat(t+s*m[1])),f+="L ".concat(e+n,",").concat(t+r-s*m[2]),m[2]>0&&(f+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(d,`,
`).concat(e+n-u*m[2],",").concat(t+r)),f+="L ".concat(e+u*m[3],",").concat(t+r),m[3]>0&&(f+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(d,`,
`).concat(e,",").concat(t+r-s*m[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var _=Math.min(o,i);f="M ".concat(e,",").concat(t+s*_,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+u*_,",").concat(t,`
L `).concat(e+n-u*_,",").concat(t,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+n,",").concat(t+s*_,`
L `).concat(e+n,",").concat(t+r-s*_,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+n-u*_,",").concat(t+r,`
L `).concat(e+u*_,",").concat(t+r,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e,",").concat(t+r-s*_," Z")}else f="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return f},Bre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sS=e=>{var t=Ar(e,Bre),n=C.useRef(null),[r,i]=C.useState(-1);C.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var X=n.current.getTotalLength();X&&i(X)}catch{}},[]);var{x:o,y:s,width:u,height:d,radius:f,className:m}=t,{animationEasing:p,animationDuration:b,animationBegin:_,isAnimationActive:w,isUpdateAnimationActive:x}=t,E=C.useRef(u),T=C.useRef(d),j=C.useRef(o),O=C.useRef(s),N=C.useMemo(()=>({x:o,y:s,width:u,height:d,radius:f}),[o,s,u,d,f]),F=nm(N,"rectangle-");if(o!==+o||s!==+s||u!==+u||d!==+d||u===0||d===0)return null;var $=Pe("recharts-rectangle",m);if(!x)return C.createElement("path",mv({},yn(t,!0),{className:$,d:d5(o,s,u,d,f)}));var K=E.current,Q=T.current,oe=j.current,ee=O.current,J="0px ".concat(r===-1?1:r,"px"),te="".concat(r,"px 0px"),he=ND(["strokeDasharray"],b,typeof p=="string"?p:void 0);return C.createElement(tm,{animationId:F,key:F,canBegin:r>0,duration:b,easing:p,isActive:x,begin:_},X=>{var se=Mn(K,u,X),Z=Mn(Q,d,X),I=Mn(oe,o,X),k=Mn(ee,s,X);n.current&&(E.current=se,T.current=Z,j.current=I,O.current=k);var U;return w?X>0?U={transition:he,strokeDasharray:te}:U={strokeDasharray:J}:U={strokeDasharray:te},C.createElement("path",mv({},yn(t,!0),{className:$,d:d5(I,k,se,Z,f),ref:n,style:f5(f5({},U),t.style)}))})};function UD(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,s=Yn(t,n,r,i),u=Yn(t,n,r,o);return{points:[s,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function l2(){return l2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l2.apply(null,arguments)}var Fre=(e,t)=>{var n=dr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},rg=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:s,cornerRadius:u,cornerIsExternal:d}=e,f=u*(s?1:-1)+r,m=Math.asin(u/f)/fv,p=d?i:i+o*m,b=Yn(t,n,f,p),_=Yn(t,n,r,p),w=d?i-o*m:i,x=Yn(t,n,f*Math.cos(m*fv),w);return{center:b,circleTangency:_,lineTangency:x,theta:m}},zD=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:s}=e,u=Fre(o,s),d=o+u,f=Yn(t,n,i,o),m=Yn(t,n,i,d),p="M ".concat(f.x,",").concat(f.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(u)>180),",").concat(+(o>d),`,
`).concat(m.x,",").concat(m.y,`
`);if(r>0){var b=Yn(t,n,r,o),_=Yn(t,n,r,d);p+="L ".concat(_.x,",").concat(_.y,`
A `).concat(r,",").concat(r,`,0,
`).concat(+(Math.abs(u)>180),",").concat(+(o<=d),`,
`).concat(b.x,",").concat(b.y," Z")}else p+="L ".concat(t,",").concat(n," Z");return p},$re=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}=e,m=dr(f-d),{circleTangency:p,lineTangency:b,theta:_}=rg({cx:t,cy:n,radius:i,angle:d,sign:m,cornerRadius:o,cornerIsExternal:u}),{circleTangency:w,lineTangency:x,theta:E}=rg({cx:t,cy:n,radius:i,angle:f,sign:-m,cornerRadius:o,cornerIsExternal:u}),T=u?Math.abs(d-f):Math.abs(d-f)-_-E;if(T<0)return s?"M ".concat(b.x,",").concat(b.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):zD({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:d,endAngle:f});var j="M ".concat(b.x,",").concat(b.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(p.x,",").concat(p.y,`
A`).concat(i,",").concat(i,",0,").concat(+(T>180),",").concat(+(m<0),",").concat(w.x,",").concat(w.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
`);if(r>0){var{circleTangency:O,lineTangency:N,theta:F}=rg({cx:t,cy:n,radius:r,angle:d,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),{circleTangency:$,lineTangency:K,theta:Q}=rg({cx:t,cy:n,radius:r,angle:f,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),oe=u?Math.abs(d-f):Math.abs(d-f)-F-Q;if(oe<0&&o===0)return"".concat(j,"L").concat(t,",").concat(n,"Z");j+="L".concat(K.x,",").concat(K.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat($.x,",").concat($.y,`
A`).concat(r,",").concat(r,",0,").concat(+(oe>180),",").concat(+(m>0),",").concat(O.x,",").concat(O.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(N.x,",").concat(N.y,"Z")}else j+="L".concat(t,",").concat(n,"Z");return j},Vre={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},BD=e=>{var t=Ar(e,Vre),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:s,forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m,className:p}=t;if(o<i||f===m)return null;var b=Pe("recharts-sector",p),_=o-i,w=Lr(s,_,0,!0),x;return w>0&&Math.abs(f-m)<360?x=$re({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(w,_/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m}):x=zD({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:m}),C.createElement("path",l2({},yn(t,!0),{className:b,d:x}))};function Hre(e,t,n){var r,i,o,s;if(e==="horizontal")r=t.x,o=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:u,cy:d,innerRadius:f,outerRadius:m,angle:p}=t,b=Yn(u,d,f,p),_=Yn(u,d,m,p);r=b.x,i=b.y,o=_.x,s=_.y}else return UD(t);return[{x:r,y:i},{x:o,y:s}]}var O_={},j_={},M_={},h5;function qre(){return h5||(h5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gD();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(M_)),M_}var m5;function Gre(){return m5||(m5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qre();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(j_)),j_}var p5;function Yre(){return p5||(p5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vD(),n=Gre();function r(i,o,s){s&&typeof s!="number"&&t.isIterateeCall(i,o,s)&&(o=s=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),s=s===void 0?i<o?1:-1:n.toFinite(s);const u=Math.max(Math.ceil((o-i)/(s||1)),0),d=new Array(u);for(let f=0;f<u;f++)d[f]=i,i+=s;return d}e.range=r}(O_)),O_}var P_,g5;function Wre(){return g5||(g5=1,P_=Yre().range),P_}var Kre=Wre();const FD=oa(Kre);function il(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zre(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lS(e){let t,n,r;e.length!==2?(t=il,n=(u,d)=>il(e(u),d),r=(u,d)=>e(u)-d):(t=e===il||e===Zre?e:Xre,n=e,r=e);function i(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<0?f=p+1:m=p}while(f<m)}return f}function o(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<=0?f=p+1:m=p}while(f<m)}return f}function s(u,d,f=0,m=u.length){const p=i(u,d,f,m-1);return p>f&&r(u[p-1],d)>-r(u[p],d)?p-1:p}return{left:i,center:s,right:o}}function Xre(){return 0}function $D(e){return e===null?NaN:+e}function*Qre(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Jre=lS(il),rm=Jre.right;lS($D).center;class v5 extends Map{constructor(t,n=nie){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(y5(this,t))}has(t){return super.has(y5(this,t))}set(t,n){return super.set(eie(this,t),n)}delete(t){return super.delete(tie(this,t))}}function y5({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function eie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tie({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function nie(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rie(e=il){if(e===il)return VD;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function VD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const iie=Math.sqrt(50),aie=Math.sqrt(10),oie=Math.sqrt(2);function pv(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=iie?10:o>=aie?5:o>=oie?2:1;let u,d,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(e*f),d=Math.round(t*f),u/f<e&&++u,d/f>t&&--d,f=-f):(f=Math.pow(10,i)*s,u=Math.round(e/f),d=Math.round(t/f),u*f<e&&++u,d*f>t&&--d),d<u&&.5<=n&&n<2?pv(e,t,n*2):[u,d,f]}function u2(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?pv(t,e,n):pv(e,t,n);if(!(o>=i))return[];const u=o-i+1,d=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)d[f]=(o-f)/-s;else for(let f=0;f<u;++f)d[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)d[f]=(i+f)/-s;else for(let f=0;f<u;++f)d[f]=(i+f)*s;return d}function c2(e,t,n){return t=+t,e=+e,n=+n,pv(e,t,n)[2]}function f2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?c2(t,e,n):c2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function b5(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function _5(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function HD(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?VD:rie(i);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,m=Math.log(d),p=.5*Math.exp(2*m/3),b=.5*Math.sqrt(m*p*(d-p)/d)*(f-d/2<0?-1:1),_=Math.max(n,Math.floor(t-f*p/d+b)),w=Math.min(r,Math.floor(t+(d-f)*p/d+b));HD(e,t,_,w,i)}const o=e[t];let s=n,u=r;for(Zd(e,n,t),i(e[r],o)>0&&Zd(e,n,r);s<u;){for(Zd(e,s,u),++s,--u;i(e[s],o)<0;)++s;for(;i(e[u],o)>0;)--u}i(e[n],o)===0?Zd(e,n,u):(++u,Zd(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Zd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function sie(e,t,n){if(e=Float64Array.from(Qre(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return _5(e);if(t>=1)return b5(e);var r,i=(r-1)*t,o=Math.floor(i),s=b5(HD(e,o).subarray(0,o+1)),u=_5(e.subarray(o+1));return s+(u-s)*(i-o)}}function lie(e,t,n=$D){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e),u=+n(e[o+1],o+1,e);return s+(u-s)*(i-o)}}function uie(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function sa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ss(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 d2=Symbol("implicit");function uS(){var e=new v5,t=[],n=[],r=d2;function i(o){let s=e.get(o);if(s===void 0){if(r!==d2)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new v5;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return uS(t,n).unknown(r)},sa.apply(i,arguments),i}function cS(){var e=uS().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,u=!1,d=0,f=0,m=.5;delete e.unknown;function p(){var b=t().length,_=i<r,w=_?i:r,x=_?r:i;o=(x-w)/Math.max(1,b-d+f*2),u&&(o=Math.floor(o)),w+=(x-w-o*(b-d))*m,s=o*(1-d),u&&(w=Math.round(w),s=Math.round(s));var E=uie(b).map(function(T){return w+o*T});return n(_?E.reverse():E)}return e.domain=function(b){return arguments.length?(t(b),p()):t()},e.range=function(b){return arguments.length?([r,i]=b,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(b){return[r,i]=b,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(b){return arguments.length?(u=!!b,p()):u},e.padding=function(b){return arguments.length?(d=Math.min(1,f=+b),p()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),p()):d},e.paddingOuter=function(b){return arguments.length?(f=+b,p()):f},e.align=function(b){return arguments.length?(m=Math.max(0,Math.min(1,b)),p()):m},e.copy=function(){return cS(t(),[r,i]).round(u).paddingInner(d).paddingOuter(f).align(m)},sa.apply(p(),arguments)}function qD(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qD(t())},e}function cie(){return qD(cS.apply(null,arguments).paddingInner(1))}function fS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function GD(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function im(){}var Rh=.7,gv=1/Rh,Zc="\\s*([+-]?\\d+)\\s*",Lh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ro="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fie=/^#([0-9a-f]{3,8})$/,die=new RegExp(`^rgb\\(${Zc},${Zc},${Zc}\\)$`),hie=new RegExp(`^rgb\\(${ro},${ro},${ro}\\)$`),mie=new RegExp(`^rgba\\(${Zc},${Zc},${Zc},${Lh}\\)$`),pie=new RegExp(`^rgba\\(${ro},${ro},${ro},${Lh}\\)$`),gie=new RegExp(`^hsl\\(${Lh},${ro},${ro}\\)$`),vie=new RegExp(`^hsla\\(${Lh},${ro},${ro},${Lh}\\)$`),x5={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};fS(im,Nh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:w5,formatHex:w5,formatHex8:yie,formatHsl:bie,formatRgb:S5,toString:S5});function w5(){return this.rgb().formatHex()}function yie(){return this.rgb().formatHex8()}function bie(){return YD(this).formatHsl()}function S5(){return this.rgb().formatRgb()}function Nh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?C5(t):n===3?new li(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ig(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ig(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=die.exec(e))?new li(t[1],t[2],t[3],1):(t=hie.exec(e))?new li(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mie.exec(e))?ig(t[1],t[2],t[3],t[4]):(t=pie.exec(e))?ig(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=gie.exec(e))?T5(t[1],t[2]/100,t[3]/100,1):(t=vie.exec(e))?T5(t[1],t[2]/100,t[3]/100,t[4]):x5.hasOwnProperty(e)?C5(x5[e]):e==="transparent"?new li(NaN,NaN,NaN,0):null}function C5(e){return new li(e>>16&255,e>>8&255,e&255,1)}function ig(e,t,n,r){return r<=0&&(e=t=n=NaN),new li(e,t,n,r)}function _ie(e){return e instanceof im||(e=Nh(e)),e?(e=e.rgb(),new li(e.r,e.g,e.b,e.opacity)):new li}function h2(e,t,n,r){return arguments.length===1?_ie(e):new li(e,t,n,r??1)}function li(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}fS(li,h2,GD(im,{brighter(e){return e=e==null?gv:Math.pow(gv,e),new li(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rh:Math.pow(Rh,e),new li(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new li(Au(this.r),Au(this.g),Au(this.b),vv(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:E5,formatHex:E5,formatHex8:xie,formatRgb:A5,toString:A5}));function E5(){return`#${xu(this.r)}${xu(this.g)}${xu(this.b)}`}function xie(){return`#${xu(this.r)}${xu(this.g)}${xu(this.b)}${xu((isNaN(this.opacity)?1:this.opacity)*255)}`}function A5(){const e=vv(this.opacity);return`${e===1?"rgb(":"rgba("}${Au(this.r)}, ${Au(this.g)}, ${Au(this.b)}${e===1?")":`, ${e})`}`}function vv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Au(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xu(e){return e=Au(e),(e<16?"0":"")+e.toString(16)}function T5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xa(e,t,n,r)}function YD(e){if(e instanceof xa)return new xa(e.h,e.s,e.l,e.opacity);if(e instanceof im||(e=Nh(e)),!e)return new xa;if(e instanceof xa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,u=o-i,d=(o+i)/2;return u?(t===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-t)/u+2:s=(t-n)/u+4,u/=d<.5?o+i:2-o-i,s*=60):u=d>0&&d<1?0:s,new xa(s,u,d,e.opacity)}function wie(e,t,n,r){return arguments.length===1?YD(e):new xa(e,t,n,r??1)}function xa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fS(xa,wie,GD(im,{brighter(e){return e=e==null?gv:Math.pow(gv,e),new xa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rh:Math.pow(Rh,e),new xa(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new li(R_(e>=240?e-240:e+120,i,r),R_(e,i,r),R_(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new xa(O5(this.h),ag(this.s),ag(this.l),vv(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=vv(this.opacity);return`${e===1?"hsl(":"hsla("}${O5(this.h)}, ${ag(this.s)*100}%, ${ag(this.l)*100}%${e===1?")":`, ${e})`}`}}));function O5(e){return e=(e||0)%360,e<0?e+360:e}function ag(e){return Math.max(0,Math.min(1,e||0))}function R_(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const dS=e=>()=>e;function Sie(e,t){return function(n){return e+n*t}}function Cie(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Eie(e){return(e=+e)==1?WD:function(t,n){return n-t?Cie(t,n,e):dS(isNaN(t)?n:t)}}function WD(e,t){var n=t-e;return n?Sie(e,n):dS(isNaN(e)?t:e)}const j5=function e(t){var n=Eie(t);function r(i,o){var s=n((i=h2(i)).r,(o=h2(o)).r),u=n(i.g,o.g),d=n(i.b,o.b),f=WD(i.opacity,o.opacity);return function(m){return i.r=s(m),i.g=u(m),i.b=d(m),i.opacity=f(m),i+""}}return r.gamma=e,r}(1);function Aie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Tie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Oie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Tf(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(u){for(s=0;s<r;++s)o[s]=i[s](u);return o}}function jie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Mie(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Tf(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var m2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L_=new RegExp(m2.source,"g");function Pie(e){return function(){return e}}function Rie(e){return function(t){return e(t)+""}}function Lie(e,t){var n=m2.lastIndex=L_.lastIndex=0,r,i,o,s=-1,u=[],d=[];for(e=e+"",t=t+"";(r=m2.exec(e))&&(i=L_.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,d.push({i:s,x:yv(r,i)})),n=L_.lastIndex;return n<t.length&&(o=t.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?d[0]?Rie(d[0].x):Pie(t):(t=d.length,function(f){for(var m=0,p;m<t;++m)u[(p=d[m]).i]=p.x(f);return u.join("")})}function Tf(e,t){var n=typeof t,r;return t==null||n==="boolean"?dS(t):(n==="number"?yv:n==="string"?(r=Nh(t))?(t=r,j5):Lie:t instanceof Nh?j5:t instanceof Date?jie:Tie(t)?Aie:Array.isArray(t)?Oie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Mie:yv)(e,t)}function hS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Nie(e,t){t===void 0&&(t=e,e=Tf);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[u](s-u)}}function Die(e){return function(){return e}}function bv(e){return+e}var M5=[0,1];function Fr(e){return e}function p2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Die(isNaN(t)?NaN:.5)}function kie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Iie(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=p2(i,r),o=n(s,o)):(r=p2(r,i),o=n(o,s)),function(u){return o(r(u))}}function Uie(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=p2(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(u){var d=rm(e,u,1,r)-1;return o[d](i[d](u))}}function am(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function jy(){var e=M5,t=M5,n=Tf,r,i,o,s=Fr,u,d,f;function m(){var b=Math.min(e.length,t.length);return s!==Fr&&(s=kie(e[0],e[b-1])),u=b>2?Uie:Iie,d=f=null,p}function p(b){return b==null||isNaN(b=+b)?o:(d||(d=u(e.map(r),t,n)))(r(s(b)))}return p.invert=function(b){return s(i((f||(f=u(t,e.map(r),yv)))(b)))},p.domain=function(b){return arguments.length?(e=Array.from(b,bv),m()):e.slice()},p.range=function(b){return arguments.length?(t=Array.from(b),m()):t.slice()},p.rangeRound=function(b){return t=Array.from(b),n=hS,m()},p.clamp=function(b){return arguments.length?(s=b?!0:Fr,m()):s!==Fr},p.interpolate=function(b){return arguments.length?(n=b,m()):n},p.unknown=function(b){return arguments.length?(o=b,p):o},function(b,_){return r=b,i=_,m()}}function mS(){return jy()(Fr,Fr)}function zie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _v(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function sf(e){return e=_v(Math.abs(e)),e?e[1]:NaN}function Bie(e,t){return function(n,r){for(var i=n.length,o=[],s=0,u=e[0],d=0;i>0&&u>0&&(d+u+1>r&&(u=Math.max(1,r-d)),o.push(n.substring(i-=u,i+u)),!((d+=u+1)>r));)u=e[s=(s+1)%e.length];return o.reverse().join(t)}}function Fie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var $ie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Dh(e){if(!(t=$ie.exec(e)))throw new Error("invalid format: "+e);var t;return new pS({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]})}Dh.prototype=pS.prototype;function pS(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+""}pS.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 Vie(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var KD;function Hie(e,t){var n=_v(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(KD=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+_v(e,Math.max(0,t+o-1))[0]}function P5(e,t){var n=_v(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const R5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zie,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)=>P5(e*100,t),r:P5,s:Hie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function L5(e){return e}var N5=Array.prototype.map,D5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qie(e){var t=e.grouping===void 0||e.thousands===void 0?L5:Bie(N5.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?L5:Fie(N5.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(p){p=Dh(p);var b=p.fill,_=p.align,w=p.sign,x=p.symbol,E=p.zero,T=p.width,j=p.comma,O=p.precision,N=p.trim,F=p.type;F==="n"?(j=!0,F="g"):R5[F]||(O===void 0&&(O=12),N=!0,F="g"),(E||b==="0"&&_==="=")&&(E=!0,b="0",_="=");var $=x==="$"?n:x==="#"&&/[boxX]/.test(F)?"0"+F.toLowerCase():"",K=x==="$"?r:/[%p]/.test(F)?s:"",Q=R5[F],oe=/[defgprs%]/.test(F);O=O===void 0?6:/[gprs]/.test(F)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function ee(J){var te=$,he=K,X,se,Z;if(F==="c")he=Q(J)+he,J="";else{J=+J;var I=J<0||1/J<0;if(J=isNaN(J)?d:Q(Math.abs(J),O),N&&(J=Vie(J)),I&&+J==0&&w!=="+"&&(I=!1),te=(I?w==="("?w:u:w==="-"||w==="("?"":w)+te,he=(F==="s"?D5[8+KD/3]:"")+he+(I&&w==="("?")":""),oe){for(X=-1,se=J.length;++X<se;)if(Z=J.charCodeAt(X),48>Z||Z>57){he=(Z===46?i+J.slice(X+1):J.slice(X))+he,J=J.slice(0,X);break}}}j&&!E&&(J=t(J,1/0));var k=te.length+J.length+he.length,U=k<T?new Array(T-k+1).join(b):"";switch(j&&E&&(J=t(U+J,U.length?T-he.length:1/0),U=""),_){case"<":J=te+J+he+U;break;case"=":J=te+U+J+he;break;case"^":J=U.slice(0,k=U.length>>1)+te+J+he+U.slice(k);break;default:J=U+te+J+he;break}return o(J)}return ee.toString=function(){return p+""},ee}function m(p,b){var _=f((p=Dh(p),p.type="f",p)),w=Math.max(-8,Math.min(8,Math.floor(sf(b)/3)))*3,x=Math.pow(10,-w),E=D5[8+w/3];return function(T){return _(x*T)+E}}return{format:f,formatPrefix:m}}var og,gS,ZD;Gie({thousands:",",grouping:[3],currency:["$",""]});function Gie(e){return og=qie(e),gS=og.format,ZD=og.formatPrefix,og}function Yie(e){return Math.max(0,-sf(Math.abs(e)))}function Wie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(sf(t)/3)))*3-sf(Math.abs(e)))}function Kie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sf(t)-sf(e))+1}function XD(e,t,n,r){var i=f2(e,t,n),o;switch(r=Dh(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Wie(i,s))&&(r.precision=o),ZD(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Kie(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Yie(i))&&(r.precision=o-(r.type==="%")*2);break}}return gS(r)}function El(e){var t=e.domain;return e.ticks=function(n){var r=t();return u2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return XD(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],u=r[o],d,f,m=10;for(u<s&&(f=s,s=u,u=f,f=i,i=o,o=f);m-- >0;){if(f=c2(s,u,n),f===d)return r[i]=s,r[o]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;d=f}return e},e}function QD(){var e=mS();return e.copy=function(){return am(e,QD())},sa.apply(e,arguments),El(e)}function JD(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,bv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return JD(e).unknown(t)},e=arguments.length?Array.from(e,bv):[0,1],El(n)}function ek(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function k5(e){return Math.log(e)}function I5(e){return Math.exp(e)}function Zie(e){return-Math.log(-e)}function Xie(e){return-Math.exp(-e)}function Qie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Jie(e){return e===10?Qie:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eae(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 U5(e){return(t,n)=>-e(-t,n)}function vS(e){const t=e(k5,I5),n=t.domain;let r=10,i,o;function s(){return i=eae(r),o=Jie(r),n()[0]<0?(i=U5(i),o=U5(o),e(Zie,Xie)):e(k5,I5),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const d=n();let f=d[0],m=d[d.length-1];const p=m<f;p&&([f,m]=[m,f]);let b=i(f),_=i(m),w,x;const E=u==null?10:+u;let T=[];if(!(r%1)&&_-b<E){if(b=Math.floor(b),_=Math.ceil(_),f>0){for(;b<=_;++b)for(w=1;w<r;++w)if(x=b<0?w/o(-b):w*o(b),!(x<f)){if(x>m)break;T.push(x)}}else for(;b<=_;++b)for(w=r-1;w>=1;--w)if(x=b>0?w/o(-b):w*o(b),!(x<f)){if(x>m)break;T.push(x)}T.length*2<E&&(T=u2(f,m,E))}else T=u2(b,_,Math.min(_-b,E)).map(o);return p?T.reverse():T},t.tickFormat=(u,d)=>{if(u==null&&(u=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Dh(d)).precision==null&&(d.trim=!0),d=gS(d)),u===1/0)return d;const f=Math.max(1,r*u/t.ticks().length);return m=>{let p=m/o(Math.round(i(m)));return p*r<r-.5&&(p*=r),p<=f?d(m):""}},t.nice=()=>n(ek(n(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),t}function tk(){const e=vS(jy()).domain([1,10]);return e.copy=()=>am(e,tk()).base(e.base()),sa.apply(e,arguments),e}function z5(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function B5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function yS(e){var t=1,n=e(z5(t),B5(t));return n.constant=function(r){return arguments.length?e(z5(t=+r),B5(t)):t},El(n)}function nk(){var e=yS(jy());return e.copy=function(){return am(e,nk()).constant(e.constant())},sa.apply(e,arguments)}function F5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function tae(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function nae(e){return e<0?-e*e:e*e}function bS(e){var t=e(Fr,Fr),n=1;function r(){return n===1?e(Fr,Fr):n===.5?e(tae,nae):e(F5(n),F5(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},El(t)}function _S(){var e=bS(jy());return e.copy=function(){return am(e,_S()).exponent(e.exponent())},sa.apply(e,arguments),e}function rae(){return _S.apply(null,arguments).exponent(.5)}function $5(e){return Math.sign(e)*e*e}function iae(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rk(){var e=mS(),t=[0,1],n=!1,r;function i(o){var s=iae(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert($5(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,bv)).map($5)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return rk(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},sa.apply(i,arguments),El(i)}function ik(){var e=[],t=[],n=[],r;function i(){var s=0,u=Math.max(1,t.length);for(n=new Array(u-1);++s<u;)n[s-1]=lie(e,s/u);return o}function o(s){return s==null||isNaN(s=+s)?r:t[rm(n,s)]}return o.invertExtent=function(s){var u=t.indexOf(s);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let u of s)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(il),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return ik().domain(e).range(t).unknown(r)},sa.apply(o,arguments)}function ak(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(d){return d!=null&&d<=d?i[rm(r,d,0,n)]:o}function u(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return s}return s.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,u()):[e,t]},s.range=function(d){return arguments.length?(n=(i=Array.from(d)).length-1,u()):i.slice()},s.invertExtent=function(d){var f=i.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(d){return arguments.length&&(o=d),s},s.thresholds=function(){return r.slice()},s.copy=function(){return ak().domain([e,t]).range(i).unknown(o)},sa.apply(El(s),arguments)}function ok(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[rm(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ok().domain(e).range(t).unknown(n)},sa.apply(i,arguments)}const N_=new Date,D_=new Date;function ir(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),u=i.ceil(o);return o-s<u-o?s:u},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,u)=>{const d=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return d;let f;do d.push(f=new Date(+o)),t(o,u),e(o);while(f<o&&o<s);return d},i.filter=o=>ir(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!o(s););else for(;--u>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(N_.setTime(+o),D_.setTime(+s),e(N_),e(D_),Math.floor(n(N_,D_))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const xv=ir(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ir(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):xv);xv.range;const $o=1e3,na=$o*60,Vo=na*60,Jo=Vo*24,xS=Jo*7,V5=Jo*30,k_=Jo*365,wu=ir(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$o)},(e,t)=>(t-e)/$o,e=>e.getUTCSeconds());wu.range;const wS=ir(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getMinutes());wS.range;const SS=ir(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getUTCMinutes());SS.range;const CS=ir(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o-e.getMinutes()*na)},(e,t)=>{e.setTime(+e+t*Vo)},(e,t)=>(t-e)/Vo,e=>e.getHours());CS.range;const ES=ir(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vo)},(e,t)=>(t-e)/Vo,e=>e.getUTCHours());ES.range;const om=ir(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*na)/Jo,e=>e.getDate()-1);om.range;const My=ir(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Jo,e=>e.getUTCDate()-1);My.range;const sk=ir(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Jo,e=>Math.floor(e/Jo));sk.range;function qu(e){return ir(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*na)/xS)}const Py=qu(0),wv=qu(1),aae=qu(2),oae=qu(3),lf=qu(4),sae=qu(5),lae=qu(6);Py.range;wv.range;aae.range;oae.range;lf.range;sae.range;lae.range;function Gu(e){return ir(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/xS)}const Ry=Gu(0),Sv=Gu(1),uae=Gu(2),cae=Gu(3),uf=Gu(4),fae=Gu(5),dae=Gu(6);Ry.range;Sv.range;uae.range;cae.range;uf.range;fae.range;dae.range;const AS=ir(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());AS.range;const TS=ir(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());TS.range;const es=ir(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());es.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ir(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});es.range;const ts=ir(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());ts.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ir(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ts.range;function lk(e,t,n,r,i,o){const s=[[wu,1,$o],[wu,5,5*$o],[wu,15,15*$o],[wu,30,30*$o],[o,1,na],[o,5,5*na],[o,15,15*na],[o,30,30*na],[i,1,Vo],[i,3,3*Vo],[i,6,6*Vo],[i,12,12*Vo],[r,1,Jo],[r,2,2*Jo],[n,1,xS],[t,1,V5],[t,3,3*V5],[e,1,k_]];function u(f,m,p){const b=m<f;b&&([f,m]=[m,f]);const _=p&&typeof p.range=="function"?p:d(f,m,p),w=_?_.range(f,+m+1):[];return b?w.reverse():w}function d(f,m,p){const b=Math.abs(m-f)/p,_=lS(([,,E])=>E).right(s,b);if(_===s.length)return e.every(f2(f/k_,m/k_,p));if(_===0)return xv.every(Math.max(f2(f,m,p),1));const[w,x]=s[b/s[_-1][2]<s[_][2]/b?_-1:_];return w.every(x)}return[u,d]}const[hae,mae]=lk(ts,TS,Ry,sk,ES,SS),[pae,gae]=lk(es,AS,Py,om,CS,wS);function I_(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 U_(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 Xd(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function vae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,u=e.months,d=e.shortMonths,f=Qd(i),m=Jd(i),p=Qd(o),b=Jd(o),_=Qd(s),w=Jd(s),x=Qd(u),E=Jd(u),T=Qd(d),j=Jd(d),O={a:I,A:k,b:U,B:z,c:null,d:K5,e:K5,f:Bae,g:Zae,G:Qae,H:Iae,I:Uae,j:zae,L:uk,m:Fae,M:$ae,p:P,q:G,Q:Q5,s:J5,S:Vae,u:Hae,U:qae,V:Gae,w:Yae,W:Wae,x:null,X:null,y:Kae,Y:Xae,Z:Jae,"%":X5},N={a:Y,A:ne,b:ue,B:fe,c:null,d:Z5,e:Z5,f:roe,g:hoe,G:poe,H:eoe,I:toe,j:noe,L:fk,m:ioe,M:aoe,p:ge,q:D,Q:Q5,s:J5,S:ooe,u:soe,U:loe,V:uoe,w:coe,W:foe,x:null,X:null,y:doe,Y:moe,Z:goe,"%":X5},F={a:ee,A:J,b:te,B:he,c:X,d:Y5,e:Y5,f:Lae,g:G5,G:q5,H:W5,I:W5,j:jae,L:Rae,m:Oae,M:Mae,p:oe,q:Tae,Q:Dae,s:kae,S:Pae,u:wae,U:Sae,V:Cae,w:xae,W:Eae,x:se,X:Z,y:G5,Y:q5,Z:Aae,"%":Nae};O.x=$(n,O),O.X=$(r,O),O.c=$(t,O),N.x=$(n,N),N.X=$(r,N),N.c=$(t,N);function $(B,W){return function(le){var H=[],ae=-1,ce=0,ve=B.length,de,we,Ae;for(le instanceof Date||(le=new Date(+le));++ae<ve;)B.charCodeAt(ae)===37&&(H.push(B.slice(ce,ae)),(we=H5[de=B.charAt(++ae)])!=null?de=B.charAt(++ae):we=de==="e"?" ":"0",(Ae=W[de])&&(de=Ae(le,we)),H.push(de),ce=ae+1);return H.push(B.slice(ce,ae)),H.join("")}}function K(B,W){return function(le){var H=Xd(1900,void 0,1),ae=Q(H,B,le+="",0),ce,ve;if(ae!=le.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(W&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(ce=U_(Xd(H.y,0,1)),ve=ce.getUTCDay(),ce=ve>4||ve===0?Sv.ceil(ce):Sv(ce),ce=My.offset(ce,(H.V-1)*7),H.y=ce.getUTCFullYear(),H.m=ce.getUTCMonth(),H.d=ce.getUTCDate()+(H.w+6)%7):(ce=I_(Xd(H.y,0,1)),ve=ce.getDay(),ce=ve>4||ve===0?wv.ceil(ce):wv(ce),ce=om.offset(ce,(H.V-1)*7),H.y=ce.getFullYear(),H.m=ce.getMonth(),H.d=ce.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),ve="Z"in H?U_(Xd(H.y,0,1)).getUTCDay():I_(Xd(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(ve+5)%7:H.w+H.U*7-(ve+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,U_(H)):I_(H)}}function Q(B,W,le,H){for(var ae=0,ce=W.length,ve=le.length,de,we;ae<ce;){if(H>=ve)return-1;if(de=W.charCodeAt(ae++),de===37){if(de=W.charAt(ae++),we=F[de in H5?W.charAt(ae++):de],!we||(H=we(B,le,H))<0)return-1}else if(de!=le.charCodeAt(H++))return-1}return H}function oe(B,W,le){var H=f.exec(W.slice(le));return H?(B.p=m.get(H[0].toLowerCase()),le+H[0].length):-1}function ee(B,W,le){var H=_.exec(W.slice(le));return H?(B.w=w.get(H[0].toLowerCase()),le+H[0].length):-1}function J(B,W,le){var H=p.exec(W.slice(le));return H?(B.w=b.get(H[0].toLowerCase()),le+H[0].length):-1}function te(B,W,le){var H=T.exec(W.slice(le));return H?(B.m=j.get(H[0].toLowerCase()),le+H[0].length):-1}function he(B,W,le){var H=x.exec(W.slice(le));return H?(B.m=E.get(H[0].toLowerCase()),le+H[0].length):-1}function X(B,W,le){return Q(B,t,W,le)}function se(B,W,le){return Q(B,n,W,le)}function Z(B,W,le){return Q(B,r,W,le)}function I(B){return s[B.getDay()]}function k(B){return o[B.getDay()]}function U(B){return d[B.getMonth()]}function z(B){return u[B.getMonth()]}function P(B){return i[+(B.getHours()>=12)]}function G(B){return 1+~~(B.getMonth()/3)}function Y(B){return s[B.getUTCDay()]}function ne(B){return o[B.getUTCDay()]}function ue(B){return d[B.getUTCMonth()]}function fe(B){return u[B.getUTCMonth()]}function ge(B){return i[+(B.getUTCHours()>=12)]}function D(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var W=$(B+="",O);return W.toString=function(){return B},W},parse:function(B){var W=K(B+="",!1);return W.toString=function(){return B},W},utcFormat:function(B){var W=$(B+="",N);return W.toString=function(){return B},W},utcParse:function(B){var W=K(B+="",!0);return W.toString=function(){return B},W}}}var H5={"-":"",_:" ",0:"0"},mr=/^\s*\d+/,yae=/^%/,bae=/[\\^$*+?|[\]().{}]/g;function Bt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function _ae(e){return e.replace(bae,"\\$&")}function Qd(e){return new RegExp("^(?:"+e.map(_ae).join("|")+")","i")}function Jd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function xae(e,t,n){var r=mr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wae(e,t,n){var r=mr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Sae(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Cae(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Eae(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function q5(e,t,n){var r=mr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function G5(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Aae(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Tae(e,t,n){var r=mr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Oae(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Y5(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jae(e,t,n){var r=mr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function W5(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Mae(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Pae(e,t,n){var r=mr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Rae(e,t,n){var r=mr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Lae(e,t,n){var r=mr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nae(e,t,n){var r=yae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dae(e,t,n){var r=mr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function kae(e,t,n){var r=mr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function K5(e,t){return Bt(e.getDate(),t,2)}function Iae(e,t){return Bt(e.getHours(),t,2)}function Uae(e,t){return Bt(e.getHours()%12||12,t,2)}function zae(e,t){return Bt(1+om.count(es(e),e),t,3)}function uk(e,t){return Bt(e.getMilliseconds(),t,3)}function Bae(e,t){return uk(e,t)+"000"}function Fae(e,t){return Bt(e.getMonth()+1,t,2)}function $ae(e,t){return Bt(e.getMinutes(),t,2)}function Vae(e,t){return Bt(e.getSeconds(),t,2)}function Hae(e){var t=e.getDay();return t===0?7:t}function qae(e,t){return Bt(Py.count(es(e)-1,e),t,2)}function ck(e){var t=e.getDay();return t>=4||t===0?lf(e):lf.ceil(e)}function Gae(e,t){return e=ck(e),Bt(lf.count(es(e),e)+(es(e).getDay()===4),t,2)}function Yae(e){return e.getDay()}function Wae(e,t){return Bt(wv.count(es(e)-1,e),t,2)}function Kae(e,t){return Bt(e.getFullYear()%100,t,2)}function Zae(e,t){return e=ck(e),Bt(e.getFullYear()%100,t,2)}function Xae(e,t){return Bt(e.getFullYear()%1e4,t,4)}function Qae(e,t){var n=e.getDay();return e=n>=4||n===0?lf(e):lf.ceil(e),Bt(e.getFullYear()%1e4,t,4)}function Jae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Bt(t/60|0,"0",2)+Bt(t%60,"0",2)}function Z5(e,t){return Bt(e.getUTCDate(),t,2)}function eoe(e,t){return Bt(e.getUTCHours(),t,2)}function toe(e,t){return Bt(e.getUTCHours()%12||12,t,2)}function noe(e,t){return Bt(1+My.count(ts(e),e),t,3)}function fk(e,t){return Bt(e.getUTCMilliseconds(),t,3)}function roe(e,t){return fk(e,t)+"000"}function ioe(e,t){return Bt(e.getUTCMonth()+1,t,2)}function aoe(e,t){return Bt(e.getUTCMinutes(),t,2)}function ooe(e,t){return Bt(e.getUTCSeconds(),t,2)}function soe(e){var t=e.getUTCDay();return t===0?7:t}function loe(e,t){return Bt(Ry.count(ts(e)-1,e),t,2)}function dk(e){var t=e.getUTCDay();return t>=4||t===0?uf(e):uf.ceil(e)}function uoe(e,t){return e=dk(e),Bt(uf.count(ts(e),e)+(ts(e).getUTCDay()===4),t,2)}function coe(e){return e.getUTCDay()}function foe(e,t){return Bt(Sv.count(ts(e)-1,e),t,2)}function doe(e,t){return Bt(e.getUTCFullYear()%100,t,2)}function hoe(e,t){return e=dk(e),Bt(e.getUTCFullYear()%100,t,2)}function moe(e,t){return Bt(e.getUTCFullYear()%1e4,t,4)}function poe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?uf(e):uf.ceil(e),Bt(e.getUTCFullYear()%1e4,t,4)}function goe(){return"+0000"}function X5(){return"%"}function Q5(e){return+e}function J5(e){return Math.floor(+e/1e3)}var Bc,hk,mk;voe({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 voe(e){return Bc=vae(e),hk=Bc.format,Bc.parse,mk=Bc.utcFormat,Bc.utcParse,Bc}function yoe(e){return new Date(e)}function boe(e){return e instanceof Date?+e:+new Date(+e)}function OS(e,t,n,r,i,o,s,u,d,f){var m=mS(),p=m.invert,b=m.domain,_=f(".%L"),w=f(":%S"),x=f("%I:%M"),E=f("%I %p"),T=f("%a %d"),j=f("%b %d"),O=f("%B"),N=f("%Y");function F($){return(d($)<$?_:u($)<$?w:s($)<$?x:o($)<$?E:r($)<$?i($)<$?T:j:n($)<$?O:N)($)}return m.invert=function($){return new Date(p($))},m.domain=function($){return arguments.length?b(Array.from($,boe)):b().map(yoe)},m.ticks=function($){var K=b();return e(K[0],K[K.length-1],$??10)},m.tickFormat=function($,K){return K==null?F:f(K)},m.nice=function($){var K=b();return(!$||typeof $.range!="function")&&($=t(K[0],K[K.length-1],$??10)),$?b(ek(K,$)):m},m.copy=function(){return am(m,OS(e,t,n,r,i,o,s,u,d,f))},m}function _oe(){return sa.apply(OS(pae,gae,es,AS,Py,om,CS,wS,wu,hk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xoe(){return sa.apply(OS(hae,mae,ts,TS,Ry,My,ES,SS,wu,mk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ly(){var e=0,t=1,n,r,i,o,s=Fr,u=!1,d;function f(p){return p==null||isNaN(p=+p)?d:s(i===0?.5:(p=(o(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(s=p,f):s};function m(p){return function(b){var _,w;return arguments.length?([_,w]=b,s=p(_,w),f):[s(0),s(1)]}}return f.range=m(Tf),f.rangeRound=m(hS),f.unknown=function(p){return arguments.length?(d=p,f):d},function(p){return o=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),f}}function Al(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function pk(){var e=El(Ly()(Fr));return e.copy=function(){return Al(e,pk())},ss.apply(e,arguments)}function gk(){var e=vS(Ly()).domain([1,10]);return e.copy=function(){return Al(e,gk()).base(e.base())},ss.apply(e,arguments)}function vk(){var e=yS(Ly());return e.copy=function(){return Al(e,vk()).constant(e.constant())},ss.apply(e,arguments)}function jS(){var e=bS(Ly());return e.copy=function(){return Al(e,jS()).exponent(e.exponent())},ss.apply(e,arguments)}function woe(){return jS.apply(null,arguments).exponent(.5)}function yk(){var e=[],t=Fr;function n(r){if(r!=null&&!isNaN(r=+r))return t((rm(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(il),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>sie(e,o/r))},n.copy=function(){return yk(t).domain(e)},ss.apply(n,arguments)}function Ny(){var e=0,t=.5,n=1,r=1,i,o,s,u,d,f=Fr,m,p=!1,b;function _(x){return isNaN(x=+x)?b:(x=.5+((x=+m(x))-o)*(r*x<r*o?u:d),f(p?Math.max(0,Math.min(1,x)):x))}_.domain=function(x){return arguments.length?([e,t,n]=x,i=m(e=+e),o=m(t=+t),s=m(n=+n),u=i===o?0:.5/(o-i),d=o===s?0:.5/(s-o),r=o<i?-1:1,_):[e,t,n]},_.clamp=function(x){return arguments.length?(p=!!x,_):p},_.interpolator=function(x){return arguments.length?(f=x,_):f};function w(x){return function(E){var T,j,O;return arguments.length?([T,j,O]=E,f=Nie(x,[T,j,O]),_):[f(0),f(.5),f(1)]}}return _.range=w(Tf),_.rangeRound=w(hS),_.unknown=function(x){return arguments.length?(b=x,_):b},function(x){return m=x,i=x(e),o=x(t),s=x(n),u=i===o?0:.5/(o-i),d=o===s?0:.5/(s-o),r=o<i?-1:1,_}}function bk(){var e=El(Ny()(Fr));return e.copy=function(){return Al(e,bk())},ss.apply(e,arguments)}function _k(){var e=vS(Ny()).domain([.1,1,10]);return e.copy=function(){return Al(e,_k()).base(e.base())},ss.apply(e,arguments)}function xk(){var e=yS(Ny());return e.copy=function(){return Al(e,xk()).constant(e.constant())},ss.apply(e,arguments)}function MS(){var e=bS(Ny());return e.copy=function(){return Al(e,MS()).exponent(e.exponent())},ss.apply(e,arguments)}function Soe(){return MS.apply(null,arguments).exponent(.5)}const sh=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cS,scaleDiverging:bk,scaleDivergingLog:_k,scaleDivergingPow:MS,scaleDivergingSqrt:Soe,scaleDivergingSymlog:xk,scaleIdentity:JD,scaleImplicit:d2,scaleLinear:QD,scaleLog:tk,scaleOrdinal:uS,scalePoint:cie,scalePow:_S,scaleQuantile:ik,scaleQuantize:ak,scaleRadial:rk,scaleSequential:pk,scaleSequentialLog:gk,scaleSequentialPow:jS,scaleSequentialQuantile:yk,scaleSequentialSqrt:woe,scaleSequentialSymlog:vk,scaleSqrt:rae,scaleSymlog:nk,scaleThreshold:ok,scaleTime:_oe,scaleUtc:xoe,tickFormat:XD},Symbol.toStringTag,{value:"Module"}));var Tl=e=>e.chartData,PS=je([Tl],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Dy=(e,t,n,r)=>r?PS(e):Tl(e);function cf(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Ni(t)&&Ni(n))return!0}return!1}function eM(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Coe(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(Ni(n))i=n;else if(typeof n=="function")return;if(Ni(r))o=r;else if(typeof r=="function")return;var s=[i,o];if(cf(s))return s}}function Eoe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(cf(r))return eM(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,s,u;if(i==="auto")t!=null&&(s=Math.min(...t));else if(st(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[0]))}catch{}else if(typeof i=="string"&&Gj.test(i)){var d=Gj.exec(i);if(d==null||t==null)s=void 0;else{var f=+d[1];s=t[0]-f}}else s=t?.[0];if(o==="auto")t!=null&&(u=Math.max(...t));else if(st(o))u=o;else if(typeof o=="function")try{t!=null&&(u=o(t?.[1]))}catch{}else if(typeof o=="string"&&Yj.test(o)){var m=Yj.exec(o);if(m==null||t==null)u=void 0;else{var p=+m[1];u=t[1]+p}}else u=t?.[1];var b=[s,u];if(cf(b))return t==null?b:eM(b,t,n)}}}var Of=1e9,Aoe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},LS,pn=!0,ia="[DecimalError] ",Tu=ia+"Invalid argument: ",RS=ia+"Exponent out of range: ",jf=Math.floor,gu=Math.pow,Toe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ei,fr=1e7,sn=7,wk=9007199254740991,Cv=jf(wk/sn),Je={};Je.absoluteValue=Je.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Je.comparedTo=Je.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Je.decimalPlaces=Je.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*sn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Je.dividedBy=Je.div=function(e){return Go(this,new this.constructor(e))};Je.dividedToIntegerBy=Je.idiv=function(e){var t=this,n=t.constructor;return en(Go(t,new n(e),0,1),n.precision)};Je.equals=Je.eq=function(e){return!this.cmp(e)};Je.exponent=function(){return Wn(this)};Je.greaterThan=Je.gt=function(e){return this.cmp(e)>0};Je.greaterThanOrEqualTo=Je.gte=function(e){return this.cmp(e)>=0};Je.isInteger=Je.isint=function(){return this.e>this.d.length-2};Je.isNegative=Je.isneg=function(){return this.s<0};Je.isPositive=Je.ispos=function(){return this.s>0};Je.isZero=function(){return this.s===0};Je.lessThan=Je.lt=function(e){return this.cmp(e)<0};Je.lessThanOrEqualTo=Je.lte=function(e){return this.cmp(e)<1};Je.logarithm=Je.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ei))throw Error(ia+"NaN");if(n.s<1)throw Error(ia+(n.s?"NaN":"-Infinity"));return n.eq(Ei)?new r(0):(pn=!1,t=Go(kh(n,o),kh(e,o),o),pn=!0,en(t,i))};Je.minus=Je.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ek(t,e):Sk(t,(e.s=-e.s,e))};Je.modulo=Je.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ia+"NaN");return n.s?(pn=!1,t=Go(n,e,0,1).times(e),pn=!0,n.minus(t)):en(new r(n),i)};Je.naturalExponential=Je.exp=function(){return Ck(this)};Je.naturalLogarithm=Je.ln=function(){return kh(this)};Je.negated=Je.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Je.plus=Je.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sk(t,e):Ek(t,(e.s=-e.s,e))};Je.precision=Je.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Tu+e);if(t=Wn(i)+1,r=i.d.length-1,n=r*sn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Je.squareRoot=Je.sqrt=function(){var e,t,n,r,i,o,s,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(ia+"NaN")}for(e=Wn(u),pn=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=eo(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=jf((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(i.toString()),n=d.precision,i=s=n+3;;)if(o=r,r=o.plus(Go(u,o,s+2)).times(.5),eo(o.d).slice(0,s)===(t=eo(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(en(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if(t!="9999")break;s+=4}return pn=!0,en(r,n)};Je.times=Je.mul=function(e){var t,n,r,i,o,s,u,d,f,m=this,p=m.constructor,b=m.d,_=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,d=b.length,f=_.length,d<f&&(o=b,b=_,_=o,s=d,d=f,f=s),o=[],s=d+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=d+r;i>r;)u=o[i]+_[r]*b[i-r-1]+t,o[i--]=u%fr|0,t=u/fr|0;o[i]=(o[i]+t)%fr|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,pn?en(e,p.precision):e};Je.toDecimalPlaces=Je.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ao(e,0,Of),t===void 0?t=r.rounding:ao(t,0,8),en(n,e+Wn(n)+1,t))};Je.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=zu(r,!0):(ao(e,0,Of),t===void 0?t=i.rounding:ao(t,0,8),r=en(new i(r),e+1,t),n=zu(r,!0,e+1)),n};Je.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?zu(i):(ao(e,0,Of),t===void 0?t=o.rounding:ao(t,0,8),r=en(new o(i),e+Wn(i)+1,t),n=zu(r.abs(),!1,e+Wn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Je.toInteger=Je.toint=function(){var e=this,t=e.constructor;return en(new t(e),Wn(e)+1,t.rounding)};Je.toNumber=function(){return+this};Je.toPower=Je.pow=function(e){var t,n,r,i,o,s,u=this,d=u.constructor,f=12,m=+(e=new d(e));if(!e.s)return new d(Ei);if(u=new d(u),!u.s){if(e.s<1)throw Error(ia+"Infinity");return u}if(u.eq(Ei))return u;if(r=d.precision,e.eq(Ei))return en(u,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=u.s,s){if((n=m<0?-m:m)<=wk){for(i=new d(Ei),t=Math.ceil(r/sn+4),pn=!1;n%2&&(i=i.times(u),nM(i.d,t)),n=jf(n/2),n!==0;)u=u.times(u),nM(u.d,t);return pn=!0,e.s<0?new d(Ei).div(i):en(i,r)}}else if(o<0)throw Error(ia+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,pn=!1,i=e.times(kh(u,r+f)),pn=!0,i=Ck(i),i.s=o,i};Je.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Wn(i),r=zu(i,n<=o.toExpNeg||n>=o.toExpPos)):(ao(e,1,Of),t===void 0?t=o.rounding:ao(t,0,8),i=en(new o(i),e,t),n=Wn(i),r=zu(i,e<=n||n<=o.toExpNeg,e)),r};Je.toSignificantDigits=Je.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ao(e,1,Of),t===void 0?t=r.rounding:ao(t,0,8)),en(new r(n),e,t)};Je.toString=Je.valueOf=Je.val=Je.toJSON=Je[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Wn(e),n=e.constructor;return zu(e,t<=n.toExpNeg||t>=n.toExpPos)};function Sk(e,t){var n,r,i,o,s,u,d,f,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),pn?en(t,p):t;if(d=e.d,f=t.d,s=e.e,i=t.e,d=d.slice(),o=s-i,o){for(o<0?(r=d,o=-o,u=f.length):(r=f,i=s,u=d.length),s=Math.ceil(p/sn),u=s>u?s+1:u+1,o>u&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(u=d.length,o=f.length,u-o<0&&(o=u,r=f,f=d,d=r),n=0;o;)n=(d[--o]=d[o]+f[o]+n)/fr|0,d[o]%=fr;for(n&&(d.unshift(n),++i),u=d.length;d[--u]==0;)d.pop();return t.d=d,t.e=i,pn?en(t,p):t}function ao(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Tu+e)}function eo(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=sn-r.length,n&&(o+=Js(n)),o+=r;s=e[t],r=s+"",n=sn-r.length,n&&(o+=Js(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var Go=function(){function e(r,i){var o,s=0,u=r.length;for(r=r.slice();u--;)o=r[u]*i+s,r[u]=o%fr|0,s=o/fr|0;return s&&r.unshift(s),r}function t(r,i,o,s){var u,d;if(o!=s)d=o>s?1:-1;else for(u=d=0;u<o;u++)if(r[u]!=i[u]){d=r[u]>i[u]?1:-1;break}return d}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*fr+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var u,d,f,m,p,b,_,w,x,E,T,j,O,N,F,$,K,Q,oe=r.constructor,ee=r.s==i.s?1:-1,J=r.d,te=i.d;if(!r.s)return new oe(r);if(!i.s)throw Error(ia+"Division by zero");for(d=r.e-i.e,K=te.length,F=J.length,_=new oe(ee),w=_.d=[],f=0;te[f]==(J[f]||0);)++f;if(te[f]>(J[f]||0)&&--d,o==null?j=o=oe.precision:s?j=o+(Wn(r)-Wn(i))+1:j=o,j<0)return new oe(0);if(j=j/sn+2|0,f=0,K==1)for(m=0,te=te[0],j++;(f<F||m)&&j--;f++)O=m*fr+(J[f]||0),w[f]=O/te|0,m=O%te|0;else{for(m=fr/(te[0]+1)|0,m>1&&(te=e(te,m),J=e(J,m),K=te.length,F=J.length),N=K,x=J.slice(0,K),E=x.length;E<K;)x[E++]=0;Q=te.slice(),Q.unshift(0),$=te[0],te[1]>=fr/2&&++$;do m=0,u=t(te,x,K,E),u<0?(T=x[0],K!=E&&(T=T*fr+(x[1]||0)),m=T/$|0,m>1?(m>=fr&&(m=fr-1),p=e(te,m),b=p.length,E=x.length,u=t(p,x,b,E),u==1&&(m--,n(p,K<b?Q:te,b))):(m==0&&(u=m=1),p=te.slice()),b=p.length,b<E&&p.unshift(0),n(x,p,E),u==-1&&(E=x.length,u=t(te,x,K,E),u<1&&(m++,n(x,K<E?Q:te,E))),E=x.length):u===0&&(m++,x=[0]),w[f++]=m,u&&x[0]?x[E++]=J[N]||0:(x=[J[N]],E=1);while((N++<F||x[0]!==void 0)&&j--)}return w[0]||w.shift(),_.e=d,en(_,s?o+Wn(_)+1:o)}}();function Ck(e,t){var n,r,i,o,s,u,d=0,f=0,m=e.constructor,p=m.precision;if(Wn(e)>16)throw Error(RS+Wn(e));if(!e.s)return new m(Ei);for(pn=!1,u=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(gu(2,f))/Math.LN10*2+5|0,u+=r,n=i=o=new m(Ei),m.precision=u;;){if(i=en(i.times(e),u),n=n.times(++d),s=o.plus(Go(i,n,u)),eo(s.d).slice(0,u)===eo(o.d).slice(0,u)){for(;f--;)o=en(o.times(o),u);return m.precision=p,t==null?(pn=!0,en(o,p)):o}o=s}}function Wn(e){for(var t=e.e*sn,n=e.d[0];n>=10;n/=10)t++;return t}function z_(e,t,n){if(t>e.LN10.sd())throw pn=!0,n&&(e.precision=n),Error(ia+"LN10 precision limit exceeded");return en(new e(e.LN10),t)}function Js(e){for(var t="";e--;)t+="0";return t}function kh(e,t){var n,r,i,o,s,u,d,f,m,p=1,b=10,_=e,w=_.d,x=_.constructor,E=x.precision;if(_.s<1)throw Error(ia+(_.s?"NaN":"-Infinity"));if(_.eq(Ei))return new x(0);if(t==null?(pn=!1,f=E):f=t,_.eq(10))return t==null&&(pn=!0),z_(x,f);if(f+=b,x.precision=f,n=eo(w),r=n.charAt(0),o=Wn(_),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)_=_.times(e),n=eo(_.d),r=n.charAt(0),p++;o=Wn(_),r>1?(_=new x("0."+n),o++):_=new x(r+"."+n.slice(1))}else return d=z_(x,f+2,E).times(o+""),_=kh(new x(r+"."+n.slice(1)),f-b).plus(d),x.precision=E,t==null?(pn=!0,en(_,E)):_;for(u=s=_=Go(_.minus(Ei),_.plus(Ei),f),m=en(_.times(_),f),i=3;;){if(s=en(s.times(m),f),d=u.plus(Go(s,new x(i),f)),eo(d.d).slice(0,f)===eo(u.d).slice(0,f))return u=u.times(2),o!==0&&(u=u.plus(z_(x,f+2,E).times(o+""))),u=Go(u,new x(p),f),x.precision=E,t==null?(pn=!0,en(u,E)):u;u=d,i+=2}}function tM(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=jf(n/sn),e.d=[],r=(n+1)%sn,n<0&&(r+=sn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=sn;r<i;)e.d.push(+t.slice(r,r+=sn));t=t.slice(r),r=sn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),pn&&(e.e>Cv||e.e<-Cv))throw Error(RS+n)}else e.s=0,e.e=0,e.d=[0];return e}function en(e,t,n){var r,i,o,s,u,d,f,m,p=e.d;for(s=1,o=p[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=sn,i=t,f=p[m=0];else{if(m=Math.ceil((r+1)/sn),o=p.length,m>=o)return e;for(f=o=p[m],s=1;o>=10;o/=10)s++;r%=sn,i=r-sn+s}if(n!==void 0&&(o=gu(10,s-i-1),u=f/o%10|0,d=t<0||p[m+1]!==void 0||f%o,d=n<4?(u||d)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||d||n==6&&(r>0?i>0?f/gu(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return d?(o=Wn(e),p.length=1,t=t-o-1,p[0]=gu(10,(sn-t%sn)%sn),e.e=jf(-t/sn)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,o=1,m--):(p.length=m+1,o=gu(10,sn-r),p[m]=i>0?(f/gu(10,s-i)%gu(10,i)|0)*o:0),d)for(;;)if(m==0){(p[0]+=o)==fr&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=fr)break;p[m--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(pn&&(e.e>Cv||e.e<-Cv))throw Error(RS+Wn(e));return e}function Ek(e,t){var n,r,i,o,s,u,d,f,m,p,b=e.constructor,_=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),pn?en(t,_):t;if(d=e.d,p=t.d,r=t.e,f=e.e,d=d.slice(),s=f-r,s){for(m=s<0,m?(n=d,s=-s,u=p.length):(n=p,r=f,u=d.length),i=Math.max(Math.ceil(_/sn),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=d.length,u=p.length,m=i<u,m&&(u=i),i=0;i<u;i++)if(d[i]!=p[i]){m=d[i]<p[i];break}s=0}for(m&&(n=d,d=p,p=n,t.s=-t.s),u=d.length,i=p.length-u;i>0;--i)d[u++]=0;for(i=p.length;i>s;){if(d[--i]<p[i]){for(o=i;o&&d[--o]===0;)d[o]=fr-1;--d[o],d[i]+=fr}d[i]-=p[i]}for(;d[--u]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,pn?en(t,_):t):new b(0)}function zu(e,t,n){var r,i=Wn(e),o=eo(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Js(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Js(-i-1)+o,n&&(r=n-s)>0&&(o+=Js(r))):i>=s?(o+=Js(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Js(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Js(r))),e.s<0?"-"+o:o}function nM(e,t){if(e.length>t)return e.length=t,!0}function Ak(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Tu+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return tM(s,o.toString())}else if(typeof o!="string")throw Error(Tu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Toe.test(o))tM(s,o);else throw Error(Tu+o)}if(i.prototype=Je,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=Ak,i.config=i.set=Ooe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Ooe(e){if(!e||typeof e!="object")throw Error(ia+"Object expected");var t,n,r,i=["precision",1,Of,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(jf(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Tu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Tu+n+": "+r);return this}var LS=Ak(Aoe);Ei=new LS(1);const Gt=LS;var joe=e=>e,Tk={},Ok=e=>e===Tk,rM=e=>function t(){return arguments.length===0||arguments.length===1&&Ok(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},jk=(e,t)=>e===1?t:rM(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(s=>s!==Tk).length;return o>=e?t(...r):jk(e-o,rM(function(){for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];var f=r.map(m=>Ok(m)?u.shift():m);return t(...f,...u)}))}),ky=e=>jk(e.length,e),g2=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Moe=ky((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Poe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return joe;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce((u,d)=>d(u),o(...arguments))}},v2=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),Mk=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((s,u)=>{var d;return s===((d=t)===null||d===void 0?void 0:d[u])})||(t=i,n=e(...i)),n}};function Pk(e){var t;return e===0?t=1:t=Math.floor(new Gt(e).abs().log(10).toNumber())+1,t}function Rk(e,t,n){for(var r=new Gt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}ky((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});ky((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});ky((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var Lk=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},Nk=(e,t,n)=>{if(e.lte(0))return new Gt(0);var r=Pk(e.toNumber()),i=new Gt(10).pow(r),o=e.div(i),s=r!==1?.05:.1,u=new Gt(Math.ceil(o.div(s).toNumber())).add(n).mul(s),d=u.mul(i);return t?new Gt(d.toNumber()):new Gt(Math.ceil(d.toNumber()))},Roe=(e,t,n)=>{var r=new Gt(1),i=new Gt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Gt(10).pow(Pk(e)-1),i=new Gt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Gt(Math.floor(e)))}else e===0?i=new Gt(Math.floor((t-1)/2)):n||(i=new Gt(Math.floor(e)));var s=Math.floor((t-1)/2),u=Poe(Moe(d=>i.add(new Gt(d-s).mul(r)).toNumber()),g2);return u(0,t)},Dk=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Gt(0),tickMin:new Gt(0),tickMax:new Gt(0)};var s=Nk(new Gt(n).sub(t).div(r-1),i,o),u;t<=0&&n>=0?u=new Gt(0):(u=new Gt(t).add(n).div(2),u=u.sub(new Gt(u).mod(s)));var d=Math.ceil(u.sub(t).div(s).toNumber()),f=Math.ceil(new Gt(n).sub(u).div(s).toNumber()),m=d+f+1;return m>r?Dk(t,n,r,i,o+1):(m<r&&(f=n>0?f+(r-m):f,d=n>0?d:d+(r-m)),{step:s,tickMin:u.sub(new Gt(d).mul(s)),tickMax:u.add(new Gt(f).mul(s))})};function Loe(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),[s,u]=Lk([t,n]);if(s===-1/0||u===1/0){var d=u===1/0?[s,...g2(0,r-1).map(()=>1/0)]:[...g2(0,r-1).map(()=>-1/0),u];return t>n?v2(d):d}if(s===u)return Roe(s,r,i);var{step:f,tickMin:m,tickMax:p}=Dk(s,u,o,i,0),b=Rk(m,p.add(new Gt(.1).mul(f)),f);return t>n?v2(b):b}function Noe(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,s]=Lk([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var u=Math.max(t,2),d=Nk(new Gt(s).sub(o).div(u-1),i,0),f=[...Rk(new Gt(o),new Gt(s),d),s];return i===!1&&(f=f.map(m=>Math.round(m))),n>r?v2(f):f}var Doe=Mk(Loe),koe=Mk(Noe),kk=e=>e.rootProps.maxBarSize,Ioe=e=>e.rootProps.barGap,Ik=e=>e.rootProps.barCategoryGap,Uoe=e=>e.rootProps.barSize,sm=e=>e.rootProps.stackOffset,NS=e=>e.options.chartName,DS=e=>e.rootProps.syncId,Uk=e=>e.rootProps.syncMethod,kS=e=>e.options.eventEmitter,Bo={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Si={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Iy=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},zoe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Bo.angleAxisId,includeHidden:!1,name:void 0,reversed:Bo.reversed,scale:Bo.scale,tick:Bo.tick,tickCount:void 0,ticks:void 0,type:Bo.type,unit:void 0},Boe={allowDataOverflow:Si.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Si.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Si.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Si.scale,tick:Si.tick,tickCount:Si.tickCount,ticks:void 0,type:Si.type,unit:void 0},Foe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Bo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Bo.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Bo.scale,tick:Bo.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},$oe={allowDataOverflow:Si.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Si.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Si.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Si.scale,tick:Si.tick,tickCount:Si.tickCount,ticks:void 0,type:"category",unit:void 0},IS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Foe:zoe,US=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?$oe:Boe,Uy=e=>e.polarOptions,zS=je([as,os,rr],_D),zk=je([Uy,zS],(e,t)=>{if(e!=null)return Lr(e.innerRadius,t,0)}),Bk=je([Uy,zS],(e,t)=>{if(e!=null)return Lr(e.outerRadius,t,t*.8)}),Voe=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Fk=je([Uy],Voe);je([IS,Fk],Iy);var $k=je([zS,zk,Bk],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});je([US,$k],Iy);var Vk=je([Nt,Uy,zk,Bk,as,os],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:s,cy:u,startAngle:d,endAngle:f}=t;return{cx:Lr(s,i,i/2),cy:Lr(u,o,o/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:f,clockWise:!1}}}),bn=(e,t)=>t,lm=(e,t,n)=>n;function BS(e){return e?.id}var ar=e=>{var t=Nt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Mf=e=>e.tooltip.settings.axisId,pr=e=>{var t=ar(e),n=Mf(e);return um(e,t,n)},Hk=je([pr],e=>e?.dataKey);function qk(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=n,s=new Map;return e.forEach(u=>{var d,f=(d=u.data)!==null&&d!==void 0?d:r;if(!(f==null||f.length===0)){var m=BS(u);f.forEach((p,b)=>{var _=o==null||i?b:String(rn(p,o,null)),w=rn(p,u.dataKey,0),x;s.has(_)?x=s.get(_):x={},Object.assign(x,{[m]:w}),s.set(_,x)})}}),Array.from(s.values())}function zy(e){return e.stackId!=null&&e.dataKey!=null}function iM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iM(Object(n),!0).forEach(function(r){Hoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hoe(e,t,n){return(t=qoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qoe(e){var t=Goe(e,"string");return typeof t=="symbol"?t:t+""}function Goe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y2=[0,"auto"],xi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Gk=(e,t)=>e.cartesianAxis.xAxis[t],ls=(e,t)=>{var n=Gk(e,t);return n??xi},wi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:y2,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:em},Yk=(e,t)=>e.cartesianAxis.yAxis[t],us=(e,t)=>{var n=Yk(e,t);return n??wi},Yoe={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},FS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Yoe},Bn=(e,t,n)=>{switch(t){case"xAxis":return ls(e,n);case"yAxis":return us(e,n);case"zAxis":return FS(e,n);case"angleAxis":return IS(e,n);case"radiusAxis":return US(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Woe=(e,t,n)=>{switch(t){case"xAxis":return ls(e,n);case"yAxis":return us(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},um=(e,t,n)=>{switch(t){case"xAxis":return ls(e,n);case"yAxis":return us(e,n);case"angleAxis":return IS(e,n);case"radiusAxis":return US(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Wk=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function $S(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var By=e=>e.graphicalItems.cartesianItems,Koe=je([bn,lm],$S),VS=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),cm=je([By,Bn,Koe],VS),Kk=je([cm],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(zy)),Zk=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Xk=je([cm],Zk),HS=e=>e.map(t=>t.data).filter(Boolean).flat(1),Zoe=je([cm],HS),qS=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},GS=je([Zoe,Dy],qS),YS=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:rn(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:rn(i,r)}))):e.map(r=>({value:r})),Fy=je([GS,Bn,cm],YS);function Qk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Yu(e){return e.filter(t=>si(t)||t instanceof Date).map(Number).filter(t=>Li(t)===!1)}function Xoe(e,t,n){return!n||typeof t!="number"||Li(t)?[]:n.length?Yu(n.flatMap(r=>{var i=rn(e,r.dataKey),o,s;if(Array.isArray(i)?[o,s]=i:o=s=i,!(!Ni(o)||!Ni(s)))return[t-o,t+s]})):[]}var Qoe=je([Kk,Dy,pr],qk),Jk=(e,t,n)=>{var r={},i=t.reduce((o,s)=>(s.stackId==null||(o[s.stackId]==null&&(o[s.stackId]=[]),o[s.stackId].push(s)),o),r);return Object.fromEntries(Object.entries(i).map(o=>{var[s,u]=o,d=u.map(BS);return[s,{stackedData:pne(e,d,n),graphicalItems:u}]}))},b2=je([Qoe,Kk,sm],Jk),e8=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var o=_ne(e,r,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Joe=je([b2,Tl,bn],e8),t8=(e,t,n,r,i)=>n.length>0?e.flatMap(o=>n.flatMap(s=>{var u,d,f=(u=r[s.id])===null||u===void 0?void 0:u.filter(p=>Qk(i,p)),m=rn(o,(d=t.dataKey)!==null&&d!==void 0?d:s.dataKey);return{value:m,errorDomain:Xoe(o,m,f)}})).filter(Boolean):t?.dataKey!=null?e.map(o=>({value:rn(o,t.dataKey),errorDomain:[]})):e.map(o=>({value:o,errorDomain:[]})),$y=e=>e.errorBars,n8=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Qk(n,r));je([Xk,$y,bn],n8);var ese=je([GS,Bn,Xk,$y,bn],t8);function tse(e){var{value:t}=e;if(si(t)||t instanceof Date)return t}var aM=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Yu(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},nse=(e,t,n)=>{var r=e.map(tse).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&UN(r))?FD(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},WS=e=>{var t;if(e==null||!("domain"in e))return y2;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Yu(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:y2},Av=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),s=Math.min(...o),u=Math.max(...o);return[s,u]}},r8=e=>e.referenceElements.dots,Pf=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),rse=je([r8,bn,lm],Pf),i8=e=>e.referenceElements.areas,ise=je([i8,bn,lm],Pf),a8=e=>e.referenceElements.lines,ase=je([a8,bn,lm],Pf),o8=(e,t)=>{var n=Yu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},ose=je(rse,bn,o8),s8=(e,t)=>{var n=Yu(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},sse=je([ise,bn],s8),l8=(e,t)=>{var n=Yu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},lse=je(ase,bn,l8),use=je(ose,lse,sse,(e,t,n)=>Av(e,n,t)),u8=je([Bn],WS),KS=(e,t,n,r,i,o,s)=>{var u=Coe(t,e.allowDataOverflow);if(u!=null)return u;var d=o==="vertical"&&s==="xAxis"||o==="horizontal"&&s==="yAxis",f=d?Av(n,i,aM(r)):Av(i,aM(r));return Eoe(t,f,e.allowDataOverflow)},cse=je([Bn,u8,Joe,ese,use,Nt,bn],KS),fse=[0,1],ZS=(e,t,n,r,i,o,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var{dataKey:u,type:d}=e,f=Sl(t,o);return f&&u==null?FD(0,n.length):d==="category"?nse(r,e,f):i==="expand"?fse:s}},XS=je([Bn,Nt,GS,Fy,sm,bn,cse],ZS),c8=(e,t,n,r,i)=>{if(e!=null){var{scale:o,type:s}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":s==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":s==="category"?"band":"linear";if(typeof o=="string"){var u="scale".concat(Jh(o));return u in sh?u:"point"}}},Rf=je([Bn,Nt,Wk,NS,bn],c8);function dse(e){if(e!=null){if(e in sh)return sh[e]();var t="scale".concat(Jh(e));if(t in sh)return sh[t]()}}function QS(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=dse(t);if(i!=null){var o=i.domain(n).range(r);return cne(o),o}}}var JS=(e,t,n)=>{var r=WS(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&cf(e))return Doe(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&cf(e))return koe(e,t.tickCount,t.allowDecimals)}},eC=je([XS,um,Rf],JS),tC=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&cf(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],s=t[1],u=n[n.length-1];return[Math.min(i,o),Math.max(s,u)]}return t},hse=je([Bn,XS,eC,bn],tC),mse=je(Fy,Bn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Yu(e.map(u=>u.value))).sort((u,d)=>u-d);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var o=0;o<r.length-1;o++){var s=r[o+1]-r[o];n=Math.min(n,s)}return n/i}}),f8=je(mse,Nt,Ik,rr,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!Ni(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var s=Lr(n,e*o),u=e*o/2;return u-s-(u-s)/o*s}return 0}),pse=(e,t)=>{var n=ls(e,t);return n==null||typeof n.padding!="string"?0:f8(e,"xAxis",t,n.padding)},gse=(e,t)=>{var n=us(e,t);return n==null||typeof n.padding!="string"?0:f8(e,"yAxis",t,n.padding)},vse=je(ls,pse,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),yse=je(us,gse,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),bse=je([rr,vse,Ty,Ay,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),_se=je([rr,Nt,yse,Ty,Ay,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:s}=i;return o?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),fm=(e,t,n,r)=>{var i;switch(t){case"xAxis":return bse(e,n,r);case"yAxis":return _se(e,n,r);case"zAxis":return(i=FS(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Fk(e);case"radiusAxis":return $k(e,n);default:return}},d8=je([Bn,fm],Iy),ml=je([Bn,Rf,hse,d8],QS);je([cm,$y,bn],n8);function h8(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Vy=(e,t)=>t,Hy=(e,t,n)=>n,xse=je(Cy,Vy,Hy,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(h8)),wse=je(Ey,Vy,Hy,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(h8)),m8=(e,t)=>({width:e.width,height:t.height}),Sse=(e,t)=>{var n=typeof t.width=="number"?t.width:em;return{width:n,height:e.height}},p8=je(rr,ls,m8),Cse=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Ese=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},Ase=je(os,rr,xse,Vy,Hy,(e,t,n,r,i)=>{var o={},s;return n.forEach(u=>{var d=m8(t,u);s==null&&(s=Cse(t,r,e));var f=r==="top"&&!i||r==="bottom"&&i;o[u.id]=s-Number(f)*d.height,s+=(f?-1:1)*d.height}),o}),Tse=je(as,rr,wse,Vy,Hy,(e,t,n,r,i)=>{var o={},s;return n.forEach(u=>{var d=Sse(t,u);s==null&&(s=Ese(t,r,e));var f=r==="left"&&!i||r==="right"&&i;o[u.id]=s-Number(f)*d.width,s+=(f?-1:1)*d.width}),o}),Ose=(e,t)=>{var n=ls(e,t);if(n!=null)return Ase(e,n.orientation,n.mirror)},jse=je([rr,ls,Ose,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Mse=(e,t)=>{var n=us(e,t);if(n!=null)return Tse(e,n.orientation,n.mirror)},Pse=je([rr,us,Mse,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),g8=je(rr,us,(e,t)=>{var n=typeof t.width=="number"?t.width:em;return{width:n,height:e.height}}),oM=(e,t,n)=>{switch(t){case"xAxis":return p8(e,n).width;case"yAxis":return g8(e,n).height;default:return}},v8=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:s}=n,u=Sl(e,r),d=t.map(f=>f.value);if(s&&u&&o==="category"&&i&&UN(d))return d}},nC=je([Nt,Fy,Bn,bn],v8),y8=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,s=Sl(e,r);if(s&&(i==="number"||o!=="auto"))return t.map(u=>u.value)}},rC=je([Nt,Fy,um,bn],y8),sM=je([Nt,Woe,Rf,ml,nC,rC,fm,eC,bn],(e,t,n,r,i,o,s,u,d)=>{if(t==null)return null;var f=Sl(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:o,duplicateDomain:i,isCategorical:f,niceTicks:u,range:s,realScaleType:n,scale:r}}),Rse=(e,t,n,r,i,o,s,u,d)=>{if(!(t==null||r==null)){var f=Sl(e,d),{type:m,ticks:p,tickCount:b}=t,_=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,w=m==="category"&&r.bandwidth?r.bandwidth()/_:0;w=d==="angleAxis"&&o!=null&&o.length>=2?dr(o[0]-o[1])*2*w:w;var x=p||i;if(x){var E=x.map((T,j)=>{var O=s?s.indexOf(T):T;return{index:j,coordinate:r(O)+w,value:T,offset:w}});return E.filter(T=>!Li(T.coordinate))}return f&&u?u.map((T,j)=>({coordinate:r(T)+w,value:T,index:j,offset:w})):r.ticks?r.ticks(b).map(T=>({coordinate:r(T)+w,value:T,offset:w})):r.domain().map((T,j)=>({coordinate:r(T)+w,value:s?s[T]:T,index:j,offset:w}))}},b8=je([Nt,um,Rf,ml,eC,fm,nC,rC,bn],Rse),Lse=(e,t,n,r,i,o,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=Sl(e,s),{tickCount:d}=t,f=0;return f=s==="angleAxis"&&r?.length>=2?dr(r[0]-r[1])*2*f:f,u&&o?o.map((m,p)=>({coordinate:n(m)+f,value:m,index:p,offset:f})):n.ticks?n.ticks(d).map(m=>({coordinate:n(m)+f,value:m,offset:f})):n.domain().map((m,p)=>({coordinate:n(m)+f,value:i?i[m]:m,index:p,offset:f}))}},pl=je([Nt,um,ml,fm,nC,rC,bn],Lse),gl=je(Bn,ml,(e,t)=>{if(!(e==null||t==null))return Ev(Ev({},e),{},{scale:t})}),Nse=je([Bn,Rf,XS,d8],QS);je((e,t,n)=>FS(e,n),Nse,(e,t)=>{if(!(e==null||t==null))return Ev(Ev({},e),{},{scale:t})});var Dse=je([Nt,Cy,Ey],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),_8=e=>e.options.defaultTooltipEventType,x8=e=>e.options.validateTooltipEventTypes;function w8(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function iC(e,t){var n=_8(e),r=x8(e);return w8(t,n,r)}function kse(e){return tt(t=>iC(t,e))}var S8=(e,t)=>{var n,r=Number(t);if(!(Li(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Ise=e=>e.tooltip.settings,tl={active:!1,index:null,dataKey:void 0,coordinate:void 0},Use={itemInteraction:{click:tl,hover:tl},axisInteraction:{click:tl,hover:tl},keyboardInteraction:tl,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},C8=Lt({name:"tooltip",initialState:Use,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=qo(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:zse,removeTooltipEntrySettings:Bse,setTooltipSettingsState:Fse,setActiveMouseOverItemIndex:E8,mouseLeaveItem:$se,mouseLeaveChart:A8,setActiveClickItemIndex:Vse,setMouseOverAxisIndex:T8,setMouseClickAxisIndex:Hse,setSyncInteraction:_2,setKeyboardInteraction:x2}=C8.actions,qse=C8.reducer;function lM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lM(Object(n),!0).forEach(function(r){Gse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gse(e,t,n){return(t=Yse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yse(e){var t=Wse(e,"string");return typeof t=="symbol"?t:t+""}function Wse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kse(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Zse(e){return e.index!=null}var O8=(e,t,n,r)=>{if(t==null)return tl;var i=Kse(e,t,n);if(i==null)return tl;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(Zse(i)){if(o)return sg(sg({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return sg(sg({},tl),{},{coordinate:i.coordinate})},aC=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!Ni(r))return n;var i=0,o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(i,Math.min(r,o)))},j8=(e,t,n,r,i,o,s,u)=>{if(!(o==null||u==null)){var d=s[0],f=d==null?void 0:u(d.positions,o);if(f!=null)return f;var m=i?.[Number(o)];if(m)switch(n){case"horizontal":return{x:m.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:m.coordinate}}}},M8=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var s;return((s=o.settings)===null||s===void 0?void 0:s.dataKey)===i})},dm=e=>e.options.tooltipPayloadSearcher,Lf=e=>e.tooltip;function uM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uM(Object(n),!0).forEach(function(r){Xse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xse(e,t,n){return(t=Qse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qse(e){var t=Jse(e,"string");return typeof t=="symbol"?t:t+""}function Jse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ele(e,t){return e??t}var P8=(e,t,n,r,i,o,s)=>{if(!(t==null||o==null)){var{chartData:u,computedData:d,dataStartIndex:f,dataEndIndex:m}=n,p=[];return e.reduce((b,_)=>{var w,{dataDefinedOnItem:x,settings:E}=_,T=ele(x,u),j=Array.isArray(T)?xD(T,f,m):T,O=(w=E?.dataKey)!==null&&w!==void 0?w:r,N=E?.nameKey,F;if(r&&Array.isArray(j)&&!Array.isArray(j[0])&&s==="axis"?F=zN(j,r,i):F=o(j,t,d,N),Array.isArray(F))F.forEach(K=>{var Q=cM(cM({},E),{},{name:K.name,unit:K.unit,color:void 0,fill:void 0});b.push(Wj({tooltipEntrySettings:Q,dataKey:K.dataKey,payload:K.payload,value:rn(K.payload,K.dataKey),name:K.name}))});else{var $;b.push(Wj({tooltipEntrySettings:E,dataKey:O,payload:F,value:rn(F,O),name:($=rn(F,N))!==null&&$!==void 0?$:E?.name}))}return b},p)}},oC=je([pr,Nt,Wk,NS,ar],c8),tle=je([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),nle=je([ar,Mf],$S),hm=je([tle,pr,nle],VS),rle=je([hm],e=>e.filter(zy)),ile=je([hm],HS),Nf=je([ile,Tl],qS),ale=je([rle,Tl,pr],qk),sC=je([Nf,pr,hm],YS),ole=je([pr],WS),sle=je([hm],e=>e.filter(zy)),lle=je([ale,sle,sm],Jk),ule=je([lle,Tl,ar],e8),cle=je([hm],Zk),fle=je([Nf,pr,cle,$y,ar],t8),dle=je([r8,ar,Mf],Pf),hle=je([dle,ar],o8),mle=je([i8,ar,Mf],Pf),ple=je([mle,ar],s8),gle=je([a8,ar,Mf],Pf),vle=je([gle,ar],l8),yle=je([hle,vle,ple],Av),ble=je([pr,ole,ule,fle,yle,Nt,ar],KS),R8=je([pr,Nt,Nf,sC,sm,ar,ble],ZS),_le=je([R8,pr,oC],JS),xle=je([pr,R8,_le,ar],tC),L8=e=>{var t=ar(e),n=Mf(e),r=!1;return fm(e,t,n,r)},N8=je([pr,L8],Iy),D8=je([pr,oC,xle,N8],QS),wle=je([Nt,sC,pr,ar],v8),Sle=je([Nt,sC,pr,ar],y8),Cle=(e,t,n,r,i,o,s,u)=>{if(t){var{type:d}=t,f=Sl(e,u);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=d==="category"&&r.bandwidth?r.bandwidth()/m:0;return p=u==="angleAxis"&&i!=null&&i?.length>=2?dr(i[0]-i[1])*2*p:p,f&&s?s.map((b,_)=>({coordinate:r(b)+p,value:b,index:_,offset:p})):r.domain().map((b,_)=>({coordinate:r(b)+p,value:o?o[b]:b,index:_,offset:p}))}}},cs=je([Nt,pr,oC,D8,L8,wle,Sle,ar],Cle),lC=je([_8,x8,Ise],(e,t,n)=>w8(n.shared,e,t)),k8=e=>e.tooltip.settings.trigger,uC=e=>e.tooltip.settings.defaultIndex,qy=je([Lf,lC,k8,uC],O8),vl=je([qy,Nf],aC),I8=je([cs,vl],S8),U8=je([qy],e=>{if(e)return e.dataKey}),z8=je([Lf,lC,k8,uC],M8),Ele=je([as,os,Nt,rr,cs,uC,z8,dm],j8),Ale=je([qy,Ele],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Tle=je([qy],e=>e.active),Ole=je([z8,vl,Tl,Hk,I8,dm,lC],P8),jle=je([Ole],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){Mle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mle(e,t,n){return(t=Ple(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ple(e){var t=Rle(e,"string");return typeof t=="symbol"?t:t+""}function Rle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lle=()=>tt(pr),Nle=()=>{var e=Lle(),t=tt(cs),n=tt(D8);return Mh(dM(dM({},e),{},{scale:n}),t)},Dle=()=>tt(NS),cC=(e,t)=>t,B8=(e,t,n)=>n,fC=(e,t,n,r)=>r,kle=je(cs,e=>Sy(e,t=>t.coordinate)),dC=je([Lf,cC,B8,fC],O8),F8=je([dC,Nf],aC),Ile=(e,t,n)=>{if(t!=null){var r=Lf(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},$8=je([Lf,cC,B8,fC],M8),Tv=je([as,os,Nt,rr,cs,fC,$8,dm],j8),Ule=je([dC,Tv],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),V8=je(cs,F8,S8),zle=je([$8,F8,Tl,Hk,V8,dm,cC],P8),Ble=je([dC],e=>({isActive:e.active,activeIndex:e.index})),Fle=(e,t,n,r,i,o,s,u)=>{if(!(!e||!t||!r||!i||!o)){var d=xne(e.chartX,e.chartY,t,n,u);if(d){var f=Sne(d,t),m=lne(f,s,o,r,i),p=wne(t,o,m,d);return{activeIndex:String(m),activeCoordinate:p}}}};function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(null,arguments)}function hM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hM(Object(n),!0).forEach(function(r){$le(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $le(e,t,n){return(t=Vle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vle(e){var t=Hle(e,"string");return typeof t=="symbol"?t:t+""}function Hle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qle(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:o,layout:s,cursor:u,tooltipEventType:d,chartName:f}=e,m=t,p=n,b=r;if(!u||!m||f!=="ScatterChart"&&d!=="axis")return null;var _,w;if(f==="ScatterChart")_=m,w=cre;else if(f==="BarChart")_=fre(s,m,i,o),w=sS;else if(s==="radial"){var{cx:x,cy:E,radius:T,startAngle:j,endAngle:O}=UD(m);_={cx:x,cy:E,startAngle:j,endAngle:O,innerRadius:T,outerRadius:T},w=BD}else _={points:Hre(s,m,i)},w=oS;var N=typeof u=="object"&&"className"in u?u.className:void 0,F=lg(lg(lg(lg({stroke:"#ccc",pointerEvents:"none"},i),_),yn(u,!1)),{},{payload:p,payloadIndex:b,className:Pe("recharts-tooltip-cursor",N)});return C.isValidElement(u)?C.cloneElement(u,F):C.createElement(w,F)}function Gle(e){var t=Nle(),n=TD(),r=Oy(),i=Dle();return C.createElement(qle,w2({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var H8=C.createContext(null),Yle=()=>C.useContext(H8),B_={exports:{}},mM;function Wle(){return mM||(mM=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(d,f,m){this.fn=d,this.context=f,this.once=m||!1}function o(d,f,m,p,b){if(typeof m!="function")throw new TypeError("The listener must be a function");var _=new i(m,p||d,b),w=n?n+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],_]:d._events[w].push(_):(d._events[w]=_,d._eventsCount++),d}function s(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)t.call(m,p)&&f.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},u.prototype.listeners=function(f){var m=n?n+f:f,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var b=0,_=p.length,w=new Array(_);b<_;b++)w[b]=p[b].fn;return w},u.prototype.listenerCount=function(f){var m=n?n+f:f,p=this._events[m];return p?p.fn?1:p.length:0},u.prototype.emit=function(f,m,p,b,_,w){var x=n?n+f:f;if(!this._events[x])return!1;var E=this._events[x],T=arguments.length,j,O;if(E.fn){switch(E.once&&this.removeListener(f,E.fn,void 0,!0),T){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,m),!0;case 3:return E.fn.call(E.context,m,p),!0;case 4:return E.fn.call(E.context,m,p,b),!0;case 5:return E.fn.call(E.context,m,p,b,_),!0;case 6:return E.fn.call(E.context,m,p,b,_,w),!0}for(O=1,j=new Array(T-1);O<T;O++)j[O-1]=arguments[O];E.fn.apply(E.context,j)}else{var N=E.length,F;for(O=0;O<N;O++)switch(E[O].once&&this.removeListener(f,E[O].fn,void 0,!0),T){case 1:E[O].fn.call(E[O].context);break;case 2:E[O].fn.call(E[O].context,m);break;case 3:E[O].fn.call(E[O].context,m,p);break;case 4:E[O].fn.call(E[O].context,m,p,b);break;default:if(!j)for(F=1,j=new Array(T-1);F<T;F++)j[F-1]=arguments[F];E[O].fn.apply(E[O].context,j)}}return!0},u.prototype.on=function(f,m,p){return o(this,f,m,p,!1)},u.prototype.once=function(f,m,p){return o(this,f,m,p,!0)},u.prototype.removeListener=function(f,m,p,b){var _=n?n+f:f;if(!this._events[_])return this;if(!m)return s(this,_),this;var w=this._events[_];if(w.fn)w.fn===m&&(!b||w.once)&&(!p||w.context===p)&&s(this,_);else{for(var x=0,E=[],T=w.length;x<T;x++)(w[x].fn!==m||b&&!w[x].once||p&&w[x].context!==p)&&E.push(w[x]);E.length?this._events[_]=E.length===1?E[0]:E:s(this,_)}return this},u.prototype.removeAllListeners=function(f){var m;return f?(m=n?n+f:f,this._events[m]&&s(this,m)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u}(B_)),B_.exports}var Kle=Wle();const Zle=oa(Kle);var Ih=new Zle,S2="recharts.syncEvent.tooltip",pM="recharts.syncEvent.brush";function hC(e,t){if(t){var n=Number.parseInt(t,10);if(!Li(n))return e?.[n]}}var Xle={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},q8=Lt({name:"options",initialState:Xle,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Qle=q8.reducer,{createEventEmitter:Jle}=q8.actions;function eue(e){return e.tooltip.syncInteraction}var tue={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},G8=Lt({name:"chartData",initialState:tue,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:gM,setDataStartEndIndexes:nue,setComputedData:Cxe}=G8.actions,rue=G8.reducer,iue=["x","y"];function vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vM(Object(n),!0).forEach(function(r){aue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aue(e,t,n){return(t=oue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oue(e){var t=sue(e,"string");return typeof t=="symbol"?t:t+""}function sue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lue(e,t){if(e==null)return{};var n,r,i=uue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Y8=()=>{};function cue(){var e=tt(DS),t=tt(kS),n=Rn(),r=tt(Uk),i=tt(cs),o=Oy(),s=aS(),u=tt(d=>d.rootProps.className);C.useEffect(()=>{if(e==null)return Y8;var d=(f,m,p)=>{if(t!==p&&e===f){if(r==="index"){var b;if(s&&m!==null&&m!==void 0&&(b=m.payload)!==null&&b!==void 0&&b.coordinate){var _=m.payload.coordinate,{x:w,y:x}=_,E=lue(_,iue),T=fu(fu(fu({},E),typeof w=="number"&&{x:Math.max(s.x,Math.min(w,s.x+s.width))}),typeof x=="number"&&{y:Math.max(s.y,Math.min(x,s.y+s.height))}),j=fu(fu({},m),{},{payload:fu(fu({},m.payload),{},{coordinate:T})});n(j)}else n(m);return}if(i!=null){var O;if(typeof r=="function"){var N={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},F=r(i,N);O=i[F]}else r==="value"&&(O=i.find(he=>String(he.value)===m.payload.label));var{coordinate:$}=m.payload;if(O==null||m.payload.active===!1||$==null||s==null){n(_2({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:K,y:Q}=$,oe=Math.min(K,s.x+s.width),ee=Math.min(Q,s.y+s.height),J={x:o==="horizontal"?O.coordinate:oe,y:o==="horizontal"?ee:O.coordinate},te=_2({active:m.payload.active,coordinate:J,dataKey:m.payload.dataKey,index:String(O.index),label:m.payload.label});n(te)}}};return Ih.on(S2,d),()=>{Ih.off(S2,d)}},[u,n,t,e,r,i,o,s])}function fue(){var e=tt(DS),t=tt(kS),n=Rn();C.useEffect(()=>{if(e==null)return Y8;var r=(i,o,s)=>{t!==s&&e===i&&n(nue(o))};return Ih.on(pM,r),()=>{Ih.off(pM,r)}},[n,t,e])}function due(){var e=Rn();C.useEffect(()=>{e(Jle())},[e]),cue(),fue()}function hue(e,t,n,r,i,o){var s=tt(b=>Ile(b,e,t)),u=tt(kS),d=tt(DS),f=tt(Uk),m=tt(eue),p=m?.active;C.useEffect(()=>{if(!p&&d!=null&&u!=null){var b=_2({active:o,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r});Ih.emit(S2,d,b,u)}},[p,n,s,i,r,u,d,f,o])}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){mue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mue(e,t,n){return(t=pue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pue(e){var t=gue(e,"string");return typeof t=="symbol"?t:t+""}function gue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vue(e){return e.dataKey}function yue(e,t){return C.isValidElement(e)?C.cloneElement(e,t):typeof e=="function"?C.createElement(e,t):C.createElement($ne,t)}var _M=[],bue={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Cl.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function mC(e){var t=Ar(e,bue),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:o,content:s,filterNull:u,isAnimationActive:d,offset:f,payloadUniqBy:m,position:p,reverseDirection:b,useTranslate3d:_,wrapperStyle:w,cursor:x,shared:E,trigger:T,defaultIndex:j,portal:O,axisId:N}=t,F=Rn(),$=typeof j=="number"?String(j):j;C.useEffect(()=>{F(Fse({shared:E,trigger:T,axisId:N,active:n,defaultIndex:$}))},[F,E,T,N,n,$]);var K=aS(),Q=LD(),oe=kse(E),{activeIndex:ee,isActive:J}=tt(ue=>Ble(ue,oe,T,$)),te=tt(ue=>zle(ue,oe,T,$)),he=tt(ue=>V8(ue,oe,T,$)),X=tt(ue=>Ule(ue,oe,T,$)),se=te,Z=Yle(),I=n??J,[k,U]=Vte([se,I]),z=oe==="axis"?he:void 0;hue(oe,T,X,z,ee,I);var P=O??Z;if(P==null)return null;var G=se??_M;I||(G=_M),u&&G.length&&(G=Ete(se.filter(ue=>ue.value!=null&&(ue.hide!==!0||t.includeHidden)),m,vue));var Y=G.length>0,ne=C.createElement(Kne,{allowEscapeViewBox:r,animationDuration:i,animationEasing:o,isAnimationActive:d,active:I,coordinate:X,hasPayload:Y,offset:f,position:p,reverseDirection:b,useTranslate3d:_,viewBox:K,wrapperStyle:w,lastBoundingBox:k,innerRef:U,hasPortalFromProps:!!O},yue(s,bM(bM({},t),{},{payload:G,label:z,active:I,coordinate:X,accessibilityLayer:Q})));return C.createElement(C.Fragment,null,$h.createPortal(ne,P),I&&C.createElement(Gle,{cursor:x,tooltipEventType:oe,coordinate:X,payload:se,index:ee}))}var F_={},$_={},V_={},xM;function _ue(){return xM||(xM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let s,u=null;const d=o!=null&&o.includes("leading"),f=o==null||o.includes("trailing"),m=()=>{u!==null&&(n.apply(s,u),s=void 0,u=null)},p=()=>{f&&m(),x()};let b=null;const _=()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,p()},r)},w=()=>{b!==null&&(clearTimeout(b),b=null)},x=()=>{w(),s=void 0,u=null},E=()=>{m()},T=function(...j){if(i?.aborted)return;s=this,u=j;const O=b==null;_(),d&&O&&m()};return T.schedule=_,T.cancel=x,T.flush=E,i?.addEventListener("abort",x,{once:!0}),T}e.debounce=t}(V_)),V_}var wM;function xue(){return wM||(wM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_ue();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:s=!1,trailing:u=!0,maxWait:d}=o,f=Array(2);s&&(f[0]="leading"),u&&(f[1]="trailing");let m,p=null;const b=t.debounce(function(...x){m=r.apply(this,x),p=null},i,{edges:f}),_=function(...x){return d!=null&&(p===null&&(p=Date.now()),Date.now()-p>=d)?(m=r.apply(this,x),p=Date.now(),b.cancel(),b.schedule(),m):(b.apply(this,x),m)},w=()=>(b.flush(),m);return _.cancel=b.cancel,_.flush=w,_}e.debounce=n}($_)),$_}var SM;function wue(){return SM||(SM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xue();function n(r,i=0,o={}){const{leading:s=!0,trailing:u=!0}=o;return t.debounce(r,i,{leading:s,maxWait:i,trailing:u})}e.throttle=n}(F_)),F_}var H_,CM;function Sue(){return CM||(CM=1,H_=wue().throttle),H_}var Cue=Sue();const Eue=oa(Cue);var ph=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){Aue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aue(e,t,n){return(t=Tue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tue(e){var t=Oue(e,"string");return typeof t=="symbol"?t:t+""}function Oue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jue=C.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:o="100%",minWidth:s=0,minHeight:u,maxHeight:d,children:f,debounce:m=0,id:p,className:b,onResize:_,style:w={}}=e,x=C.useRef(null),E=C.useRef();E.current=_,C.useImperativeHandle(t,()=>x.current);var[T,j]=C.useState({containerWidth:r.width,containerHeight:r.height}),O=C.useCallback((F,$)=>{j(K=>{var Q=Math.round(F),oe=Math.round($);return K.containerWidth===Q&&K.containerHeight===oe?K:{containerWidth:Q,containerHeight:oe}})},[]);C.useEffect(()=>{var F=oe=>{var ee,{width:J,height:te}=oe[0].contentRect;O(J,te),(ee=E.current)===null||ee===void 0||ee.call(E,J,te)};m>0&&(F=Eue(F,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(F),{width:K,height:Q}=x.current.getBoundingClientRect();return O(K,Q),$.observe(x.current),()=>{$.disconnect()}},[O,m]);var N=C.useMemo(()=>{var{containerWidth:F,containerHeight:$}=T;if(F<0||$<0)return null;ph(_u(i)||_u(o),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,i,o),ph(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=_u(i)?F:i,Q=_u(o)?$:o;return n&&n>0&&(K?Q=K/n:Q&&(K=Q*n),d&&Q>d&&(Q=d)),ph(K>0||Q>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.`,K,Q,i,o,s,u,n),C.Children.map(f,oe=>C.cloneElement(oe,{width:K,height:Q,style:q_({width:K,height:Q},oe.props.style)}))},[n,f,o,d,u,s,T,i]);return C.createElement("div",{id:p?"".concat(p):void 0,className:Pe("recharts-responsive-container",b),style:q_(q_({},w),{},{width:i,height:o,minWidth:s,minHeight:u,maxHeight:d}),ref:x},C.createElement("div",{style:{width:0,height:0,overflow:"visible"}},N))}),al=e=>null;al.displayName="Cell";function Mue(e,t,n){return(t=Pue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pue(e){var t=Rue(e,"string");return typeof t=="symbol"?t:t+""}function Rue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Lue{constructor(t){Mue(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function AM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AM(Object(n),!0).forEach(function(r){Due(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Due(e,t,n){return(t=kue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kue(e){var t=Iue(e,"string");return typeof t=="symbol"?t:t+""}function Iue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uue={cacheSize:2e3,enableCache:!0},W8=Nue({},Uue),TM=new Lue(W8.cacheSize),zue={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},OM="recharts_measurement_span";function Bue(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",s=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(s,"|").concat(u)}var jM=(e,t)=>{try{var n=document.getElementById(OM);n||(n=document.createElement("span"),n.setAttribute("id",OM),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,zue,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},gh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Cl.isSsr)return{width:0,height:0};if(!W8.enableCache)return jM(t,n);var r=Bue(t,n),i=TM.get(r);if(i)return i;var o=jM(t,n);return TM.set(r,o),o},MM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fue=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,$ue=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,K8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Vue=Object.keys(K8),Hc="NaN";function Hue(e,t){return e*K8[t]}class ai{static parse(t){var n,[,r,i]=(n=$ue.exec(t))!==null&&n!==void 0?n:[];return new ai(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Li(t)&&(this.unit=""),n!==""&&!Fue.test(n)&&(this.num=NaN,this.unit=""),Vue.includes(n)&&(this.num=Hue(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new ai(NaN,""):new ai(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ai(NaN,""):new ai(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ai(NaN,""):new ai(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ai(NaN,""):new ai(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Li(this.num)}}function Z8(e){if(e.includes(Hc))return Hc;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=MM.exec(t))!==null&&n!==void 0?n:[],s=ai.parse(r??""),u=ai.parse(o??""),d=i==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Hc;t=t.replace(MM,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,m,p,b]=(f=PM.exec(t))!==null&&f!==void 0?f:[],_=ai.parse(m??""),w=ai.parse(b??""),x=p==="+"?_.add(w):_.subtract(w);if(x.isNaN())return Hc;t=t.replace(PM,x.toString())}return t}var RM=/\(([^()]*)\)/;function que(e){for(var t=e,n;(n=RM.exec(t))!=null;){var[,r]=n;t=t.replace(RM,Z8(r))}return t}function Gue(e){var t=e.replace(/\s+/g,"");return t=que(t),t=Z8(t),t}function Yue(e){try{return Gue(e)}catch{return Hc}}function G_(e){var t=Yue(e.slice(5,-1));return t===Hc?"":t}var Wue=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Kue=["dx","dy","angle","className","breakAll"];function C2(){return C2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C2.apply(null,arguments)}function LM(e,t){if(e==null)return{};var n,r,i=Zue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var X8=/[ \f\n\r\t\v\u2028\u2029]+/,Q8=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];vn(t)||(n?i=t.toString().split(""):i=t.toString().split(X8));var o=i.map(u=>({word:u,width:gh(u,r).width})),s=n?0:gh(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Xue=(e,t,n,r,i)=>{var{maxLines:o,children:s,style:u,breakAll:d}=e,f=st(o),m=s,p=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce((te,he)=>{var{word:X,width:se}=he,Z=te[te.length-1];if(Z&&(r==null||i||Z.width+se+n<Number(r)))Z.words.push(X),Z.width+=se+n;else{var I={words:[X],width:se};te.push(I)}return te},[])},b=p(t),_=ee=>ee.reduce((J,te)=>J.width>te.width?J:te);if(!f||i)return b;var w=b.length>o||_(b).width>Number(r);if(!w)return b;for(var x="…",E=ee=>{var J=m.slice(0,ee),te=Q8({breakAll:d,style:u,children:J+x}).wordsWithComputedWidth,he=p(te),X=he.length>o||_(he).width>Number(r);return[X,he]},T=0,j=m.length-1,O=0,N;T<=j&&O<=m.length-1;){var F=Math.floor((T+j)/2),$=F-1,[K,Q]=E($),[oe]=E(F);if(!K&&!oe&&(T=F+1),K&&oe&&(j=F-1),!K&&oe){N=Q;break}O++}return N||b},NM=e=>{var t=vn(e)?[]:e.toString().split(X8);return[{words:t}]},Que=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:s}=e;if((t||n)&&!Cl.isSsr){var u,d,f=Q8({breakAll:o,children:r,style:i});if(f){var{wordsWithComputedWidth:m,spaceWidth:p}=f;u=m,d=p}else return NM(r);return Xue({breakAll:o,children:r,maxLines:s,style:i},u,d,t,n)}return NM(r)},DM="#808080",Gy=C.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:o="0.71em",scaleToFit:s=!1,textAnchor:u="start",verticalAnchor:d="end",fill:f=DM}=e,m=LM(e,Wue),p=C.useMemo(()=>Que({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),{dx:b,dy:_,angle:w,className:x,breakAll:E}=m,T=LM(m,Kue);if(!si(n)||!si(r)||p.length===0)return null;var j=n+(st(b)?b:0),O=r+(st(_)?_:0),N;switch(d){case"start":N=G_("calc(".concat(o,")"));break;case"middle":N=G_("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:N=G_("calc(".concat(p.length-1," * -").concat(i,")"));break}var F=[];if(s){var $=p[0].width,{width:K}=m;F.push("scale(".concat(st(K)?K/$:1,")"))}return w&&F.push("rotate(".concat(w,", ").concat(j,", ").concat(O,")")),F.length&&(T.transform=F.join(" ")),C.createElement("text",C2({},yn(T,!0),{ref:t,x:j,y:O,className:Pe("recharts-text",x),textAnchor:u,fill:f.includes("url")?DM:f}),p.map((Q,oe)=>{var ee=Q.words.join(E?"":" ");return C.createElement("tspan",{x:j,dy:oe===0?N:i,key:"".concat(ee,"-").concat(oe)},ee)}))});Gy.displayName="Text";var Jue=["labelRef"];function ece(e,t){if(e==null)return{};var n,r,i=tce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){nce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nce(e,t,n){return(t=rce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rce(e){var t=ice(e,"string");return typeof t=="symbol"?t:t+""}function ice(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fo.apply(null,arguments)}var J8=C.createContext(null),e7=e=>{var{x:t,y:n,width:r,height:i,children:o}=e,s=C.useMemo(()=>({x:t,y:n,width:r,height:i}),[t,n,r,i]);return C.createElement(J8.Provider,{value:s},o)},t7=()=>{var e=C.useContext(J8),t=aS();return e||t},ace=C.createContext(null),oce=()=>{var e=C.useContext(ace),t=tt(Vk);return e||t},sce=e=>{var{value:t,formatter:n}=e,r=vn(e.children)?t:e.children;return typeof n=="function"?n(r):r},pC=e=>e!=null&&typeof e=="function",lce=(e,t)=>{var n=dr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},uce=(e,t,n,r,i)=>{var{offset:o,className:s}=e,{cx:u,cy:d,innerRadius:f,outerRadius:m,startAngle:p,endAngle:b,clockWise:_}=i,w=(f+m)/2,x=lce(p,b),E=x>=0?1:-1,T,j;switch(t){case"insideStart":T=p+E*o,j=_;break;case"insideEnd":T=b-E*o,j=!_;break;case"end":T=b+E*o,j=_;break;default:throw new Error("Unsupported position ".concat(t))}j=x<=0?j:!j;var O=Yn(u,d,w,T),N=Yn(u,d,w,T+(j?1:-1)*359),F="M".concat(O.x,",").concat(O.y,`
A`).concat(w,",").concat(w,",0,1,").concat(j?0:1,`,
`).concat(N.x,",").concat(N.y),$=vn(e.id)?jh("recharts-radial-line-"):e.id;return C.createElement("text",Fo({},r,{dominantBaseline:"central",className:Pe("recharts-radial-bar-label",s)}),C.createElement("defs",null,C.createElement("path",{id:$,d:F})),C.createElement("textPath",{xlinkHref:"#".concat($)},n))},cce=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:u,endAngle:d}=e,f=(u+d)/2;if(n==="outside"){var{x:m,y:p}=Yn(r,i,s+t,f);return{x:m,y:p,textAnchor:m>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var b=(o+s)/2,{x:_,y:w}=Yn(r,i,b,f);return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},n7=e=>"cx"in e&&st(e.cx),fce=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,o;n!=null&&!n7(n)&&(o=n);var{x:s,y:u,width:d,height:f}=t,m=f>=0?1:-1,p=m*r,b=m>0?"end":"start",_=m>0?"start":"end",w=d>=0?1:-1,x=w*r,E=w>0?"end":"start",T=w>0?"start":"end";if(i==="top"){var j={x:s+d/2,y:u-m*r,textAnchor:"middle",verticalAnchor:b};return Un(Un({},j),o?{height:Math.max(u-o.y,0),width:d}:{})}if(i==="bottom"){var O={x:s+d/2,y:u+f+p,textAnchor:"middle",verticalAnchor:_};return Un(Un({},O),o?{height:Math.max(o.y+o.height-(u+f),0),width:d}:{})}if(i==="left"){var N={x:s-x,y:u+f/2,textAnchor:E,verticalAnchor:"middle"};return Un(Un({},N),o?{width:Math.max(N.x-o.x,0),height:f}:{})}if(i==="right"){var F={x:s+d+x,y:u+f/2,textAnchor:T,verticalAnchor:"middle"};return Un(Un({},F),o?{width:Math.max(o.x+o.width-F.x,0),height:f}:{})}var $=o?{width:d,height:f}:{};return i==="insideLeft"?Un({x:s+x,y:u+f/2,textAnchor:T,verticalAnchor:"middle"},$):i==="insideRight"?Un({x:s+d-x,y:u+f/2,textAnchor:E,verticalAnchor:"middle"},$):i==="insideTop"?Un({x:s+d/2,y:u+p,textAnchor:"middle",verticalAnchor:_},$):i==="insideBottom"?Un({x:s+d/2,y:u+f-p,textAnchor:"middle",verticalAnchor:b},$):i==="insideTopLeft"?Un({x:s+x,y:u+p,textAnchor:T,verticalAnchor:_},$):i==="insideTopRight"?Un({x:s+d-x,y:u+p,textAnchor:E,verticalAnchor:_},$):i==="insideBottomLeft"?Un({x:s+x,y:u+f-p,textAnchor:T,verticalAnchor:b},$):i==="insideBottomRight"?Un({x:s+d-x,y:u+f-p,textAnchor:E,verticalAnchor:b},$):i&&typeof i=="object"&&(st(i.x)||_u(i.x))&&(st(i.y)||_u(i.y))?Un({x:s+Lr(i.x,d),y:u+Lr(i.y,f),textAnchor:"end",verticalAnchor:"end"},$):Un({x:s+d/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},$)},dce={offset:5};function el(e){var t=Ar(e,dce),{viewBox:n,position:r,value:i,children:o,content:s,className:u="",textBreakAll:d,labelRef:f}=t,m=oce(),p=t7(),b=r==="center"?p:m??p,_=n||b;if(!_||vn(i)&&vn(o)&&!C.isValidElement(s)&&typeof s!="function")return null;var w=Un(Un({},t),{},{viewBox:_});if(C.isValidElement(s)){var{labelRef:x}=w,E=ece(w,Jue);return C.cloneElement(s,E)}var T;if(typeof s=="function"){if(T=C.createElement(s,w),C.isValidElement(T))return T}else T=sce(t);var j=n7(_),O=yn(t,!0);if(j&&(r==="insideStart"||r==="insideEnd"||r==="end"))return uce(t,r,T,O,_);var N=j?cce(_,t.offset,t.position):fce(t,_);return C.createElement(Gy,Fo({ref:f,className:Pe("recharts-label",u)},O,N,{breakAll:d}),T)}el.displayName="Label";var hce=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?C.createElement(el,Fo({key:"label-implicit"},r)):si(e)?C.createElement(el,Fo({key:"label-implicit",value:e},r)):C.isValidElement(e)?e.type===el?C.cloneElement(e,Un({key:"label-implicit"},r)):C.createElement(el,Fo({key:"label-implicit",content:e},r)):pC(e)?C.createElement(el,Fo({key:"label-implicit",content:e},r)):e&&typeof e=="object"?C.createElement(el,Fo({},e,{key:"label-implicit"},r)):null};function r7(e){var{label:t}=e,n=t7();return hce(t,n)||null}var Y_={},W_={},IM;function mce(){return IM||(IM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}(W_)),W_}var K_={},UM;function pce(){return UM||(UM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(K_)),K_}var zM;function gce(){return zM||(zM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mce(),n=pce(),r=tS();function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i}(Y_)),Y_}var Z_,BM;function vce(){return BM||(BM=1,Z_=gce().last),Z_}var yce=vce();const bce=oa(yce);var _ce=["valueAccessor"],xce=["dataKey","clockWise","id","textBreakAll"];function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(null,arguments)}function FM(e,t){if(e==null)return{};var n,r,i=wce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Sce=e=>Array.isArray(e.value)?bce(e.value):e.value,i7=C.createContext(void 0),a7=i7.Provider,o7=C.createContext(void 0),Cce=o7.Provider;function Ece(){return C.useContext(i7)}function Ace(){return C.useContext(o7)}function Pg(e){var{valueAccessor:t=Sce}=e,n=FM(e,_ce),{dataKey:r,clockWise:i,id:o,textBreakAll:s}=n,u=FM(n,xce),d=Ece(),f=Ace(),m=d||f;return!m||!m.length?null:C.createElement(hr,{className:"recharts-label-list"},m.map((p,b)=>{var _,w=vn(r)?t(p,b):rn(p&&p.payload,r),x=vn(o)?{}:{id:"".concat(o,"-").concat(b)};return C.createElement(el,Ov({},yn(p,!0),u,x,{fill:(_=n.fill)!==null&&_!==void 0?_:p.fill,parentViewBox:p.parentViewBox,value:w,textBreakAll:s,viewBox:p.viewBox,key:"label-".concat(b),index:b}))}))}Pg.displayName="LabelList";function gC(e){var{label:t}=e;return t?t===!0?C.createElement(Pg,{key:"labelList-implicit"}):C.isValidElement(t)||pC(t)?C.createElement(Pg,{key:"labelList-implicit",content:t}):typeof t=="object"?C.createElement(Pg,Ov({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function E2(){return E2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(null,arguments)}var s7=e=>{var{cx:t,cy:n,r,className:i}=e,o=Pe("recharts-dot",i);return t===+t&&n===+n&&r===+r?C.createElement("circle",E2({},ho(e),Zw(e),{className:o,cx:t,cy:n,r})):null},l7=e=>e.graphicalItems.polarItems,Tce=je([bn,lm],$S),vC=je([l7,Bn,Tce],VS),Oce=je([vC],HS),yC=je([Oce,PS],qS),jce=je([yC,Bn,vC],YS),Mce=je([yC,Bn,vC],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,s=rn(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:rn(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),$M=()=>{},Pce=je([Bn,u8,$M,Mce,$M,Nt,bn],KS),u7=je([Bn,Nt,yC,jce,sm,bn,Pce],ZS),Rce=je([u7,Bn,Rf],JS);je([Bn,u7,Rce,bn],tC);var Lce={radiusAxis:{},angleAxis:{}},c7=Lt({name:"polarAxis",initialState:Lce,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Exe,removeRadiusAxis:Axe,addAngleAxis:Txe,removeAngleAxis:Oxe}=c7.actions,Nce=c7.reducer;function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){Dce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dce(e,t,n){return(t=kce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kce(e){var t=Ice(e,"string");return typeof t=="symbol"?t:t+""}function Ice(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uce=(e,t)=>t,bC=je([l7,Uce],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),zce=[],_C=(e,t,n)=>n?.length===0?zce:n,f7=je([PS,bC,_C],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>HM(HM({},t.presentationProps),o.props))),i!=null)return i}}),Bce=je([f7,bC,_C],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,s=rn(r,t.nameKey,t.name),u;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?u=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?u=r.fill:u=t.fill,{value:Af(s,t.dataKey),color:u,payload:r,type:t.legendType}})}),Fce=je([f7,bC,_C,rr],(e,t,n,r)=>{if(!(t==null||e==null))return Ufe({offset:r,pieSettings:t,displayedData:e,cells:n})}),X_={},qM;function $ce(){return qM||(qM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(X_)),X_}var Q_,GM;function Vce(){return GM||(GM=1,Q_=$ce().isPlainObject),Q_}var Hce=Vce();const qce=oa(Hce);function YM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YM(Object(n),!0).forEach(function(r){Gce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gce(e,t,n){return(t=Yce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yce(e){var t=Wce(e,"string");return typeof t=="symbol"?t:t+""}function Wce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jv.apply(null,arguments)}var KM=(e,t,n,r,i)=>{var o=n-r,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+n,",").concat(t),s+="L ".concat(e+n-o/2,",").concat(t+i),s+="L ".concat(e+n-o/2-r,",").concat(t+i),s+="L ".concat(e,",").concat(t," Z"),s},Kce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Zce=e=>{var t=Ar(e,Kce),{x:n,y:r,upperWidth:i,lowerWidth:o,height:s,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:m,isUpdateAnimationActive:p}=t,b=C.useRef(),[_,w]=C.useState(-1),x=C.useRef(i),E=C.useRef(o),T=C.useRef(s),j=C.useRef(n),O=C.useRef(r),N=nm(e,"trapezoid-");if(C.useEffect(()=>{if(b.current&&b.current.getTotalLength)try{var X=b.current.getTotalLength();X&&w(X)}catch{}},[]),n!==+n||r!==+r||i!==+i||o!==+o||s!==+s||i===0&&o===0||s===0)return null;var F=Pe("recharts-trapezoid",u);if(!p)return C.createElement("g",null,C.createElement("path",jv({},yn(t,!0),{className:F,d:KM(n,r,i,o,s)})));var $=x.current,K=E.current,Q=T.current,oe=j.current,ee=O.current,J="0px ".concat(_===-1?1:_,"px"),te="".concat(_,"px 0px"),he=ND(["strokeDasharray"],f,d);return C.createElement(tm,{animationId:N,key:N,canBegin:_>0,duration:f,easing:d,isActive:p,begin:m},X=>{var se=Mn($,i,X),Z=Mn(K,o,X),I=Mn(Q,s,X),k=Mn(oe,n,X),U=Mn(ee,r,X);b.current&&(x.current=se,E.current=Z,T.current=I,j.current=k,O.current=U);var z=X>0?{transition:he,strokeDasharray:te}:{strokeDasharray:J};return C.createElement("path",jv({},yn(t,!0),{className:F,d:KM(k,U,se,Z,I),ref:b,style:WM(WM({},z),t.style)}))})},Xce=["option","shapeType","propTransformer","activeClassName","isActive"];function Qce(e,t){if(e==null)return{};var n,r,i=Jce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ZM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZM(Object(n),!0).forEach(function(r){efe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function efe(e,t,n){return(t=tfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tfe(e){var t=nfe(e,"string");return typeof t=="symbol"?t:t+""}function nfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rfe(e,t){return Mv(Mv({},t),e)}function ife(e,t){return e==="symbols"}function XM(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return C.createElement(sS,n);case"trapezoid":return C.createElement(Zce,n);case"sector":return C.createElement(BD,n);case"symbols":if(ife(t))return C.createElement(sD,n);break;default:return null}}function afe(e){return C.isValidElement(e)?e.props:e}function d7(e){var{option:t,shapeType:n,propTransformer:r=rfe,activeClassName:i="recharts-active-shape",isActive:o}=e,s=Qce(e,Xce),u;if(C.isValidElement(t))u=C.cloneElement(t,Mv(Mv({},s),afe(t)));else if(typeof t=="function")u=t(s);else if(qce(t)&&typeof t!="boolean"){var d=r(t,s);u=C.createElement(XM,{shapeType:n,elementProps:d})}else{var f=s;u=C.createElement(XM,{shapeType:n,elementProps:f})}return o?C.createElement(hr,{className:i},u):u}var xC=(e,t)=>{var n=Rn();return(r,i)=>o=>{e?.(r,i,o),n(E8({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},wC=e=>{var t=Rn();return(n,r)=>i=>{e?.(n,r,i),t($se())}},SC=(e,t)=>{var n=Rn();return(r,i)=>o=>{e?.(r,i,o),n(Vse({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function CC(e){var{fn:t,args:n}=e,r=Rn(),i=qr();return C.useEffect(()=>{if(!i){var o=t(n);return r(zse(o)),()=>{r(Bse(o))}}},[t,n,r,i]),null}var h7=()=>{};function m7(e){var{legendPayload:t}=e,n=Rn(),r=qr();return C.useEffect(()=>r?h7:(n(PD(t)),()=>{n(RD(t))}),[n,r,t]),null}function ofe(e){var{legendPayload:t}=e,n=Rn(),r=tt(Nt);return C.useEffect(()=>r!=="centric"&&r!=="radial"?h7:(n(PD(t)),()=>{n(RD(t))}),[n,r,t]),null}var J_,sfe=()=>{var[e]=C.useState(()=>jh("uid-"));return e},lfe=(J_=F2.useId)!==null&&J_!==void 0?J_:sfe;function ufe(e,t){var n=lfe();return t||(e?"".concat(e,"-").concat(n):n)}var cfe=C.createContext(void 0),EC=e=>{var{id:t,type:n,children:r}=e,i=ufe("recharts-".concat(n),t);return C.createElement(cfe.Provider,{value:i},r(i))},ffe={cartesianItems:[],polarItems:[]},p7=Lt({name:"graphicalItems",initialState:ffe,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=qo(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=qo(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=qo(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:dfe,replaceCartesianGraphicalItem:hfe,removeCartesianGraphicalItem:mfe,addPolarGraphicalItem:pfe,removePolarGraphicalItem:gfe}=p7.actions,vfe=p7.reducer;function g7(e){var t=Rn(),n=C.useRef(null);return C.useEffect(()=>{n.current===null?t(dfe(e)):n.current!==e&&t(hfe({prev:n.current,next:e})),n.current=e},[t,e]),C.useEffect(()=>()=>{n.current&&(t(mfe(n.current)),n.current=null)},[t]),null}function yfe(e){var t=Rn();return C.useEffect(()=>(t(pfe(e)),()=>{t(gfe(e))}),[t,e]),null}var bfe=["onMouseEnter","onClick","onMouseLeave"],_fe=["id"],xfe=["id"];function AC(e,t){if(e==null)return{};var n,r,i=wfe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(n),!0).forEach(function(r){Sfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sfe(e,t,n){return(t=Cfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cfe(e){var t=Efe(e,"string");return typeof t=="symbol"?t:t+""}function Efe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(null,arguments)}function Afe(e){var t=C.useMemo(()=>Xw(e.children,al),[e.children]),n=tt(r=>Bce(r,e.id,t));return n==null?null:C.createElement(ofe,{legendPayload:n})}function Tfe(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:o,fill:s,name:u,hide:d,tooltipType:f}=e;return{dataDefinedOnItem:r.map(m=>m.tooltipPayload),positions:r.map(m=>m.tooltipPosition),settings:{stroke:i,strokeWidth:o,fill:s,dataKey:t,nameKey:n,name:Af(u,t),hide:d,type:f,color:s,unit:""}}}var Ofe=(e,t)=>e>t?"start":e<t?"end":"middle",jfe=(e,t,n)=>Lr(typeof t=="function"?t(e):t,n,n*.8),Mfe=(e,t,n)=>{var{top:r,left:i,width:o,height:s}=t,u=_D(o,s),d=i+Lr(e.cx,o,o/2),f=r+Lr(e.cy,s,s/2),m=Lr(e.innerRadius,u,0),p=jfe(n,e.outerRadius,u),b=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:d,cy:f,innerRadius:m,outerRadius:p,maxRadius:b}},Pfe=(e,t)=>{var n=dr(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function Rfe(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var Lfe=(e,t)=>{if(C.isValidElement(e))return C.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Pe("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return C.createElement(oS,yl({},t,{type:"linear",className:n}))},Nfe=(e,t,n)=>{if(C.isValidElement(e))return C.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),C.isValidElement(r)))return r;var i=Pe("recharts-pie-label-text",Rfe(e));return C.createElement(Gy,yl({},t,{alignmentBaseline:"middle",className:i}),r)};function Dfe(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:o,dataKey:s}=n;if(!r||!i||!t)return null;var u=ho(n),d=yn(i,!1),f=yn(o,!1),m=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,p=t.map((b,_)=>{var w=(b.startAngle+b.endAngle)/2,x=Yn(b.cx,b.cy,b.outerRadius+m,w),E=mn(mn(mn(mn({},u),b),{},{stroke:"none"},d),{},{index:_,textAnchor:Ofe(x.x,b.cx)},x),T=mn(mn(mn(mn({},u),b),{},{fill:"none",stroke:b.fill},f),{},{index:_,points:[Yn(b.cx,b.cy,b.outerRadius,w),x],key:"line"});return C.createElement(hr,{key:"label-".concat(b.startAngle,"-").concat(b.endAngle,"-").concat(b.midAngle,"-").concat(_)},o&&Lfe(o,T),Nfe(i,E,rn(b,s)))});return C.createElement(hr,{className:"recharts-pie-labels"},p)}function kfe(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i=="object"&&i!=null&&"position"in i?C.createElement(gC,{label:i}):C.createElement(Dfe,{sectors:t,props:n,showLabels:r})}function Ife(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i}=e,o=tt(vl),{onMouseEnter:s,onClick:u,onMouseLeave:d}=i,f=AC(i,bfe),m=xC(s,i.dataKey),p=wC(d),b=SC(u,i.dataKey);return t==null||t.length===0?null:C.createElement(C.Fragment,null,t.map((_,w)=>{if(_?.startAngle===0&&_?.endAngle===0&&t.length!==1)return null;var x=n&&String(w)===o,E=o?r:null,T=x?n:E,j=mn(mn({},_),{},{stroke:_.stroke,tabIndex:-1,[ED]:w,[AD]:i.dataKey});return C.createElement(hr,yl({tabIndex:-1,className:"recharts-pie-sector"},by(f,_,w),{onMouseEnter:m(_,w),onMouseLeave:p(_,w),onClick:b(_,w),key:"sector-".concat(_?.startAngle,"-").concat(_?.endAngle,"-").concat(_.midAngle,"-").concat(w)}),C.createElement(d7,yl({option:T,isActive:x,shapeType:"sector"},j)))}))}function Ufe(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:o}=e,{cornerRadius:s,startAngle:u,endAngle:d,dataKey:f,nameKey:m,tooltipType:p}=n,b=Math.abs(n.minAngle),_=Pfe(u,d),w=Math.abs(_),x=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,E=r.filter($=>rn($,f,0)!==0).length,T=(w>=360?E:E-1)*x,j=w-E*b-T,O=r.reduce(($,K)=>{var Q=rn(K,f,0);return $+(st(Q)?Q:0)},0),N;if(O>0){var F;N=r.map(($,K)=>{var Q=rn($,f,0),oe=rn($,m,K),ee=Mfe(n,o,$),J=(st(Q)?Q:0)/O,te,he=mn(mn({},$),i&&i[K]&&i[K].props);K?te=F.endAngle+dr(_)*x*(Q!==0?1:0):te=u;var X=te+dr(_)*((Q!==0?b:0)+J*j),se=(te+X)/2,Z=(ee.innerRadius+ee.outerRadius)/2,I=[{name:oe,value:Q,payload:he,dataKey:f,type:p}],k=Yn(ee.cx,ee.cy,Z,se);return F=mn(mn(mn(mn({},n.presentationProps),{},{percent:J,cornerRadius:s,name:oe,tooltipPayload:I,midAngle:se,middleRadius:Z,tooltipPosition:k},he),ee),{},{value:Q,startAngle:te,endAngle:X,payload:he,paddingAngle:dr(_)*x}),F})}return N}function zfe(e){var{showLabels:t,sectors:n,children:r}=e,i=C.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return C.createElement(Cce,{value:t?i:void 0},r)}function Bfe(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:u,activeShape:d,inactiveShape:f,onAnimationStart:m,onAnimationEnd:p}=t,b=nm(t,"recharts-pie-"),_=n.current,[w,x]=C.useState(!1),E=C.useCallback(()=>{typeof p=="function"&&p(),x(!1)},[p]),T=C.useCallback(()=>{typeof m=="function"&&m(),x(!0)},[m]);return C.createElement(zfe,{showLabels:!w,sectors:r},C.createElement(tm,{animationId:b,begin:o,duration:s,isActive:i,easing:u,onAnimationStart:T,onAnimationEnd:E,key:b},j=>{var O=[],N=r&&r[0],F=N?.startAngle;return r?.forEach(($,K)=>{var Q=_&&_[K],oe=K>0?Uu($,"paddingAngle",0):0;if(Q){var ee=Mn(Q.endAngle-Q.startAngle,$.endAngle-$.startAngle,j),J=mn(mn({},$),{},{startAngle:F+oe,endAngle:F+ee+oe});O.push(J),F=J.endAngle}else{var{endAngle:te,startAngle:he}=$,X=Mn(0,te-he,j),se=mn(mn({},$),{},{startAngle:F+oe,endAngle:F+X+oe});O.push(se),F=se.endAngle}}),n.current=O,C.createElement(hr,null,C.createElement(Ife,{sectors:O,activeShape:d,inactiveShape:f,allOtherPieProps:t}))}),C.createElement(kfe,{showLabels:!w,sectors:r,props:t}),t.children)}var Ffe={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Cl.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function $fe(e){var{id:t}=e,n=AC(e,_fe),{hide:r,className:i,rootTabIndex:o}=e,s=C.useMemo(()=>Xw(e.children,al),[e.children]),u=tt(m=>Fce(m,t,s)),d=C.useRef(null),f=Pe("recharts-pie",i);return r||u==null?(d.current=null,C.createElement(hr,{tabIndex:o,className:f})):C.createElement(C.Fragment,null,C.createElement(CC,{fn:Tfe,args:mn(mn({},e),{},{sectors:u})}),C.createElement(hr,{tabIndex:o,className:f},C.createElement(Bfe,{props:mn(mn({},n),{},{sectors:u}),previousSectorsRef:d})))}function A2(e){var t=Ar(e,Ffe),{id:n}=t,r=AC(t,xfe),i=ho(r);return C.createElement(EC,{id:n,type:"pie"},o=>C.createElement(C.Fragment,null,C.createElement(yfe,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),C.createElement(Afe,yl({},r,{id:o})),C.createElement($fe,yl({},r,{id:o}))))}A2.displayName="Pie";function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JM(Object(n),!0).forEach(function(r){Vfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vfe(e,t,n){return(t=Hfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hfe(e){var t=qfe(e,"string");return typeof t=="symbol"?t:t+""}function qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gfe={xAxis:{},yAxis:{},zAxis:{}},v7=Lt({name:"cartesianAxis",initialState:Gfe,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=eP(eP({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:Yfe,removeXAxis:Wfe,addYAxis:Kfe,removeYAxis:Zfe,addZAxis:jxe,removeZAxis:Mxe,updateYAxisWidth:Xfe}=v7.actions,Qfe=v7.reducer,Jfe=je([rr],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),ede=je([Jfe,as,os],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),TC=()=>tt(ede),tde=()=>tt(jle);function tP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(n),!0).forEach(function(r){nde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nde(e,t,n){return(t=rde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rde(e){var t=ide(e,"string");return typeof t=="symbol"?t:t+""}function ide(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ade=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=nP(nP({index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},yn(i,!1)),Zw(i)),u;return C.isValidElement(i)?u=C.cloneElement(i,s):typeof i=="function"?u=i(s):u=C.createElement(s7,s),C.createElement(hr,{className:"recharts-active-dot"},u)};function ode(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,o=tt(vl),s=tde();if(t==null||s==null)return null;var u=t.find(d=>s.includes(d.payload));return vn(u)?null:ade({point:u,childIndex:Number(o),mainColor:n,dataKey:i,activeDot:r})}var sde="Invariant failed";function lde(e,t){throw new Error(sde)}var ude=["x","y"];function T2(){return T2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T2.apply(null,arguments)}function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(n),!0).forEach(function(r){cde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cde(e,t,n){return(t=fde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fde(e){var t=dde(e,"string");return typeof t=="symbol"?t:t+""}function dde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hde(e,t){if(e==null)return{};var n,r,i=mde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pde(e,t){var{x:n,y:r}=e,i=hde(e,ude),o="".concat(n),s=parseInt(o,10),u="".concat(r),d=parseInt(u,10),f="".concat(t.height||i.height),m=parseInt(f,10),p="".concat(t.width||i.width),b=parseInt(p,10);return eh(eh(eh(eh(eh({},t),i),s?{x:s}:{}),d?{y:d}:{}),{},{height:m,width:b,name:t.name,radius:t.radius})}function OC(e){return C.createElement(d7,T2({shapeType:"rectangle",propTransformer:pde,activeClassName:"recharts-active-bar"},e))}var gde=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(st(t))return t;var o=st(r)||vn(r);return o?t(r,i):(o||lde(),n)}},vde={},y7=Lt({name:"errorBars",initialState:vde,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:Pxe,replaceErrorBar:Rxe,removeErrorBar:Lxe}=y7.actions,yde=y7.reducer,bde=["children"];function _de(e,t){if(e==null)return{};var n,r,i=xde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wde={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Sde=C.createContext(wde);function b7(e){var{children:t}=e,n=_de(e,bde);return C.createElement(Sde.Provider,{value:n},t)}function jC(e,t){var n,r,i=tt(f=>ls(f,e)),o=tt(f=>us(f,t)),s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:xi.allowDataOverflow,u=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:wi.allowDataOverflow,d=s||u;return{needClip:d,needClipX:s,needClipY:u}}function _7(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=TC(),{needClipX:o,needClipY:s,needClip:u}=jC(t,n);if(!u)return null;var{x:d,y:f,width:m,height:p}=i;return C.createElement("clipPath",{id:"clipPath-".concat(r)},C.createElement("rect",{x:o?d:d-m/2,y:s?f:f-p/2,width:o?m:m*2,height:s?p:p*2}))}var Cde=["onMouseEnter","onMouseLeave","onClick"],Ede=["value","background","tooltipPosition"],Ade=["id"],Tde=["onMouseEnter","onClick","onMouseLeave"];function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bl.apply(null,arguments)}function iP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(n),!0).forEach(function(r){Ode(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ode(e,t,n){return(t=jde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jde(e){var t=Mde(e,"string");return typeof t=="symbol"?t:t+""}function Mde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pv(e,t){if(e==null)return{};var n,r,i=Pde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rde=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:Af(n,t),payload:e}]};function Lde(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Af(o,t),hide:s,type:e.tooltipType,color:e.fill,unit:u}}}function Nde(e){var t=tt(vl),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:s,onMouseLeave:u,onClick:d}=o,f=Pv(o,Cde),m=xC(s,r),p=wC(u),b=SC(d,r);if(!i||n==null)return null;var _=yn(i,!1);return C.createElement(C.Fragment,null,n.map((w,x)=>{var{value:E,background:T,tooltipPosition:j}=w,O=Pv(w,Ede);if(!T)return null;var N=m(w,x),F=p(w,x),$=b(w,x),K=Br(Br(Br(Br(Br({option:i,isActive:String(x)===t},O),{},{fill:"#eee"},T),_),by(f,w,x)),{},{onMouseEnter:N,onMouseLeave:F,onClick:$,dataKey:r,index:x,className:"recharts-bar-background-rectangle"});return C.createElement(OC,bl({key:"background-bar-".concat(K.index)},K))}))}function Dde(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(o=>{var s={x:o.x,y:o.y,width:o.width,height:o.height};return Br(Br({},s),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:s,fill:o.fill})});return C.createElement(a7,{value:t?i:void 0},n)}function kde(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:o,dataKey:s}=e,u=tt(vl),d=tt(U8),f=n&&String(o)===u&&(d==null||s===d),m=f?n:t;return C.createElement(OC,bl({},r,i,{isActive:f,option:m,index:o,dataKey:s}))}function Ide(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:o}=e;return C.createElement(OC,bl({},n,r,{isActive:!1,option:t,index:i,dataKey:o}))}function Ude(e){var{data:t,props:n}=e,r=ho(n),{id:i}=r,o=Pv(r,Ade),{shape:s,dataKey:u,activeBar:d}=n,{onMouseEnter:f,onClick:m,onMouseLeave:p}=n,b=Pv(n,Tde),_=xC(f,u),w=wC(p),x=SC(m,u);return t?C.createElement(C.Fragment,null,t.map((E,T)=>C.createElement(hr,bl({className:"recharts-bar-rectangle"},by(b,E,T),{onMouseEnter:_(E,T),onMouseLeave:w(E,T),onClick:x(E,T),key:"rectangle-".concat(E?.x,"-").concat(E?.y,"-").concat(E?.value,"-").concat(T)}),d?C.createElement(kde,{shape:s,activeBar:d,baseProps:o,entry:E,index:T,dataKey:u}):C.createElement(Ide,{shape:s,baseProps:o,entry:E,index:T,dataKey:u})))):null}function zde(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:s,animationDuration:u,animationEasing:d,onAnimationEnd:f,onAnimationStart:m}=t,p=n.current,b=nm(t,"recharts-bar-"),[_,w]=C.useState(!1),x=!_,E=C.useCallback(()=>{typeof f=="function"&&f(),w(!1)},[f]),T=C.useCallback(()=>{typeof m=="function"&&m(),w(!0)},[m]);return C.createElement(Dde,{showLabels:x,rects:r},C.createElement(tm,{animationId:b,begin:s,duration:u,isActive:o,easing:d,onAnimationEnd:E,onAnimationStart:T,key:b},j=>{var O=j===1?r:r?.map((N,F)=>{var $=p&&p[F];if($)return Br(Br({},N),{},{x:Mn($.x,N.x,j),y:Mn($.y,N.y,j),width:Mn($.width,N.width,j),height:Mn($.height,N.height,j)});if(i==="horizontal"){var K=Mn(0,N.height,j);return Br(Br({},N),{},{y:N.y+N.height-K,height:K})}var Q=Mn(0,N.width,j);return Br(Br({},N),{},{width:Q})});return j>0&&(n.current=O??null),O==null?null:C.createElement(hr,null,C.createElement(Ude,{props:t,data:O}))}),C.createElement(gC,{label:t.label}),t.children)}function Bde(e){var t=C.useRef(null);return C.createElement(zde,{previousRectanglesRef:t,props:e})}var x7=0,Fde=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:rn(e,t)}};class $de extends C.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:s,needClip:u,background:d,id:f}=this.props;if(t||n==null)return null;var m=Pe("recharts-bar",i),p=f;return C.createElement(hr,{className:m,id:f},u&&C.createElement("defs",null,C.createElement(_7,{clipPathId:p,xAxisId:o,yAxisId:s})),C.createElement(hr,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},C.createElement(Nde,{data:n,dataKey:r,background:d,allOtherBarProps:this.props}),C.createElement(Bde,this.props)))}}var Vde={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Cl.isSsr,legendType:"rect",minPointSize:x7,xAxisId:0,yAxisId:0};function Hde(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m}=e,{needClip:p}=jC(t,n),b=Oy(),_=qr(),w=Xw(e.children,al),x=tt(j=>yhe(j,t,n,_,e.id,w));if(b!=="vertical"&&b!=="horizontal")return null;var E,T=x?.[0];return T==null||T.height==null||T.width==null?E=0:E=b==="vertical"?T.height/2:T.width/2,C.createElement(b7,{xAxisId:t,yAxisId:n,data:x,dataPointFormatter:Fde,errorBarOffset:E},C.createElement($de,bl({},e,{layout:b,needClip:p,data:x,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m})))}function qde(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:s,yAxis:u,xAxisTicks:d,yAxisTicks:f,stackedData:m,displayedData:p,offset:b,cells:_,parentViewBox:w}=e,x=t==="horizontal"?u:s,E=m?x.scale.domain():null,T=vne({numericAxis:x});return p.map((j,O)=>{var N,F,$,K,Q,oe;m?N=fne(m[O],E):(N=rn(j,n),Array.isArray(N)||(N=[T,N]));var ee=gde(r,x7)(N[1],O);if(t==="horizontal"){var J,[te,he]=[u.scale(N[0]),u.scale(N[1])];F=qj({axis:s,ticks:d,bandSize:o,offset:i.offset,entry:j,index:O}),$=(J=he??te)!==null&&J!==void 0?J:void 0,K=i.size;var X=te-he;if(Q=Li(X)?0:X,oe={x:F,y:b.top,width:K,height:b.height},Math.abs(ee)>0&&Math.abs(Q)<Math.abs(ee)){var se=dr(Q||ee)*(Math.abs(ee)-Math.abs(Q));$-=se,Q+=se}}else{var[Z,I]=[s.scale(N[0]),s.scale(N[1])];if(F=Z,$=qj({axis:u,ticks:f,bandSize:o,offset:i.offset,entry:j,index:O}),K=I-Z,Q=i.size,oe={x:b.left,y:$,width:b.width,height:Q},Math.abs(ee)>0&&Math.abs(K)<Math.abs(ee)){var k=dr(K||ee)*(Math.abs(ee)-Math.abs(K));K+=k}}if(F==null||$==null||K==null||Q==null)return null;var U=Br(Br({},j),{},{x:F,y:$,width:K,height:Q,value:m?N:N[1],payload:j,background:oe,tooltipPosition:{x:F+K/2,y:$+Q/2},parentViewBox:w},_&&_[O]&&_[O].props);return U}).filter(Boolean)}function Gde(e){var t=Ar(e,Vde),n=qr();return C.createElement(EC,{id:t.id,type:"bar"},r=>C.createElement(C.Fragment,null,C.createElement(m7,{legendPayload:Rde(t)}),C.createElement(CC,{fn:Lde,args:t}),C.createElement(g7,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:gne(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),C.createElement(Hde,bl({},t,{id:r}))))}var Rg=C.memo(Gde);Rg.displayName="Bar";function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){Yde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yde(e,t,n){return(t=Wde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wde(e){var t=Kde(e,"string");return typeof t=="symbol"?t:t+""}function Kde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zde=(e,t)=>t,Xde=(e,t,n)=>n,Qde=(e,t,n,r)=>r,Jde=(e,t,n,r,i)=>i,mm=je([By,Jde],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),ehe=je([mm],e=>e?.maxBarSize),the=(e,t,n,r,i,o)=>o,oP=(e,t,n)=>{var r=n??e;if(!vn(r))return Lr(r,t,0)},nhe=je([Nt,By,Zde,Xde,Qde],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),rhe=(e,t,n,r)=>{var i=Nt(e);return i==="horizontal"?b2(e,"yAxis",n,r):b2(e,"xAxis",t,r)},ihe=(e,t,n)=>{var r=Nt(e);return r==="horizontal"?oM(e,"xAxis",t):oM(e,"yAxis",n)},ahe=(e,t,n)=>{var r={},i=e.filter(zy),o=e.filter(f=>f.stackId==null),s=i.reduce((f,m)=>(f[m.stackId]||(f[m.stackId]=[]),f[m.stackId].push(m),f),r),u=Object.entries(s).map(f=>{var[m,p]=f,b=p.map(w=>w.dataKey),_=oP(t,n,p[0].barSize);return{stackId:m,dataKeys:b,barSize:_}}),d=o.map(f=>{var m=[f.dataKey].filter(b=>b!=null),p=oP(t,n,f.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...u,...d]},ohe=je([nhe,Uoe,ihe],ahe),she=(e,t,n,r,i)=>{var o,s,u=mm(e,t,n,r,i);if(u!=null){var d=Nt(e),f=kk(e),{maxBarSize:m}=u,p=vn(m)?f:m,b,_;return d==="horizontal"?(b=gl(e,"xAxis",t,r),_=pl(e,"xAxis",t,r)):(b=gl(e,"yAxis",n,r),_=pl(e,"yAxis",n,r)),(o=(s=Mh(b,_,!0))!==null&&s!==void 0?s:p)!==null&&o!==void 0?o:0}},w7=(e,t,n,r)=>{var i=Nt(e),o,s;return i==="horizontal"?(o=gl(e,"xAxis",t,r),s=pl(e,"xAxis",t,r)):(o=gl(e,"yAxis",n,r),s=pl(e,"yAxis",n,r)),Mh(o,s)};function lhe(e,t,n,r,i){var o=r.length;if(!(o<1)){var s=Lr(e,n,0,!0),u,d=[];if(Ni(r[0].barSize)){var f=!1,m=n/o,p=r.reduce((T,j)=>T+(j.barSize||0),0);p+=(o-1)*s,p>=n&&(p-=(o-1)*s,s=0),p>=n&&m>0&&(f=!0,m*=.9,p=o*m);var b=(n-p)/2>>0,_={offset:b-s,size:0};u=r.reduce((T,j)=>{var O,N={stackId:j.stackId,dataKeys:j.dataKeys,position:{offset:_.offset+_.size+s,size:f?m:(O=j.barSize)!==null&&O!==void 0?O:0}},F=[...T,N];return _=F[F.length-1].position,F},d)}else{var w=Lr(t,n,0,!0);n-2*w-(o-1)*s<=0&&(s=0);var x=(n-2*w-(o-1)*s)/o;x>1&&(x>>=0);var E=Ni(i)?Math.min(x,i):x;u=r.reduce((T,j,O)=>[...T,{stackId:j.stackId,dataKeys:j.dataKeys,position:{offset:w+(x+s)*O+(x-E)/2,size:E}}],d)}return u}}var uhe=(e,t,n,r,i,o,s)=>{var u=vn(s)?t:s,d=lhe(n,r,i!==o?i:o,e,u);return i!==o&&d!=null&&(d=d.map(f=>ug(ug({},f),{},{position:ug(ug({},f.position),{},{offset:f.position.offset-i/2})}))),d},che=je([ohe,kk,Ioe,Ik,she,w7,ehe],uhe),fhe=(e,t,n,r)=>gl(e,"xAxis",t,r),dhe=(e,t,n,r)=>gl(e,"yAxis",n,r),hhe=(e,t,n,r)=>pl(e,"xAxis",t,r),mhe=(e,t,n,r)=>pl(e,"yAxis",n,r),phe=je([che,mm],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),ghe=(e,t)=>{var n=BS(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(s=>s.key===n)}}}},vhe=je([rhe,mm],ghe),yhe=je([rr,iS,fhe,dhe,hhe,mhe,phe,Nt,Dy,w7,vhe,mm,the],(e,t,n,r,i,o,s,u,d,f,m,p,b)=>{var{chartData:_,dataStartIndex:w,dataEndIndex:x}=d;if(!(p==null||s==null||t==null||u!=="horizontal"&&u!=="vertical"||n==null||r==null||i==null||o==null||f==null)){var{data:E}=p,T;if(E!=null&&E.length>0?T=E:T=_?.slice(w,x+1),T!=null)return qde({layout:u,barSettings:p,pos:s,parentViewBox:t,bandSize:f,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:m,displayedData:T,offset:e,cells:b})}}),S7=e=>{var{chartData:t}=e,n=Rn(),r=qr();return C.useEffect(()=>r?()=>{}:(n(gM(t)),()=>{n(gM(void 0))}),[t,n,r]),null},sP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},C7=Lt({name:"brush",initialState:sP,reducers:{setBrushSettings(e,t){return t.payload==null?sP:t.payload}}}),{setBrushSettings:Nxe}=C7.actions,bhe=C7.reducer;function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){E7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E7(e,t,n){return(t=_he(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _he(e){var t=xhe(e,"string");return typeof t=="symbol"?t:t+""}function xhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var whe=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}};class Yy{static create(t){return new Yy(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}E7(Yy,"EPS",1e-4);var She=e=>{var t=Object.keys(e).reduce((n,r)=>cg(cg({},n),{},{[r]:Yy.create(e[r])}),{});return cg(cg({},t),{},{apply(n){var{bandAware:r,position:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.fromEntries(Object.entries(n).map(o=>{var[s,u]=o;return[s,t[s].apply(u,{bandAware:r,position:i})]}))},isInRange(n){return Object.keys(n).every(r=>t[r].isInRange(n[r]))}})};function Che(e){return(e%180+180)%180}var Ehe=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Che(i),s=o*Math.PI/180,u=Math.atan(r/n),d=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(d)},Ahe={dots:[],areas:[],lines:[]},A7=Lt({name:"referenceElements",initialState:Ahe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=qo(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=qo(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=qo(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:Dxe,removeDot:kxe,addArea:The,removeArea:Ohe,addLine:Ixe,removeLine:Uxe}=A7.actions,jhe=A7.reducer,T7=C.createContext(void 0),Mhe=e=>{var{children:t}=e,[n]=C.useState("".concat(jh("recharts"),"-clip")),r=TC();if(r==null)return null;var{x:i,y:o,width:s,height:u}=r;return C.createElement(T7.Provider,{value:n},C.createElement("defs",null,C.createElement("clipPath",{id:n},C.createElement("rect",{x:i,y:o,height:u,width:s}))),t)},Phe=()=>C.useContext(T7);function uP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){MC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MC(e,t,n){return(t=Rhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rhe(e){var t=Lhe(e,"string");return typeof t=="symbol"?t:t+""}function Lhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O2.apply(null,arguments)}var Nhe=(e,t,n,r,i,o,s)=>{var{x1:u,x2:d,y1:f,y2:m}=s;if(i==null||o==null)return null;var p=She({x:i,y:o}),b={x:e?p.x.apply(u,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(f,{position:"start"}):p.y.rangeMin},_={x:t?p.x.apply(d,{position:"end"}):p.x.rangeMax,y:r?p.y.apply(m,{position:"end"}):p.y.rangeMax};return s.ifOverflow==="discard"&&(!p.isInRange(b)||!p.isInRange(_))?null:whe(b,_)},Dhe=(e,t)=>{var n;return C.isValidElement(e)?n=C.cloneElement(e,t):typeof e=="function"?n=e(t):n=C.createElement(sS,O2({},t,{className:"recharts-reference-area-rect"})),n};function khe(e){var t=Rn();return C.useEffect(()=>(t(The(e)),()=>{t(Ohe(e))})),null}function Ihe(e){var{x1:t,x2:n,y1:r,y2:i,className:o,shape:s,xAxisId:u,yAxisId:d}=e,f=Phe(),m=qr(),p=tt(N=>ml(N,"xAxis",u,m)),b=tt(N=>ml(N,"yAxis",d,m));if(p==null||!b==null)return null;var _=si(t),w=si(n),x=si(r),E=si(i);if(!_&&!w&&!x&&!E&&!s)return null;var T=Nhe(_,w,x,E,p,b,e);if(!T&&!s)return null;var j=e.ifOverflow==="hidden",O=j?"url(#".concat(f,")"):void 0;return C.createElement(hr,{className:Pe("recharts-reference-area",o)},Dhe(s,cP(cP({clipPath:O},yn(e,!0)),T)),C.createElement(e7,T,C.createElement(r7,{label:e.label}),e.children))}function Uhe(e){return C.createElement(C.Fragment,null,C.createElement(khe,{yAxisId:e.yAxisId,xAxisId:e.xAxisId,ifOverflow:e.ifOverflow,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}),C.createElement(Ihe,e))}class PC extends C.Component{render(){return C.createElement(Uhe,this.props)}}MC(PC,"displayName","ReferenceArea");MC(PC,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});function ff(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function O7(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function zhe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Ehe(r,n)}function Bhe(e,t,n){var r=n==="width",{x:i,y:o,width:s,height:u}=e;return t===1?{start:r?i:o,end:r?i+s:o+u}:{start:r?i+s:o+u,end:r?i:o}}function Rv(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Fhe(e,t){return O7(e,t+1)}function $he(e,t,n,r,i){for(var o=(r||[]).slice(),{start:s,end:u}=t,d=0,f=1,m=s,p=function(){var w=r?.[d];if(w===void 0)return{v:O7(r,f)};var x=d,E,T=()=>(E===void 0&&(E=n(w,x)),E),j=w.coordinate,O=d===0||Rv(e,j,T,m,u);O||(d=0,m=s,f+=1),O&&(m=j+e*(T()/2+i),d+=f)},b;f<=o.length;)if(b=p(),b)return b.v;return[]}function fP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fP(Object(n),!0).forEach(function(r){Vhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vhe(e,t,n){return(t=Hhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hhe(e){var t=qhe(e,"string");return typeof t=="symbol"?t:t+""}function qhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ghe(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,{start:u}=t,{end:d}=t,f=function(b){var _=o[b],w,x=()=>(w===void 0&&(w=n(_,b)),w);if(b===s-1){var E=e*(_.coordinate+e*x()/2-d);o[b]=_=Mr(Mr({},_),{},{tickCoord:E>0?_.coordinate-E*e:_.coordinate})}else o[b]=_=Mr(Mr({},_),{},{tickCoord:_.coordinate});var T=Rv(e,_.tickCoord,x,u,d);T&&(d=_.tickCoord-e*(x()/2+i),o[b]=Mr(Mr({},_),{},{isShow:!0}))},m=s-1;m>=0;m--)f(m);return o}function Yhe(e,t,n,r,i,o){var s=(r||[]).slice(),u=s.length,{start:d,end:f}=t;if(o){var m=r[u-1],p=n(m,u-1),b=e*(m.coordinate+e*p/2-f);s[u-1]=m=Mr(Mr({},m),{},{tickCoord:b>0?m.coordinate-b*e:m.coordinate});var _=Rv(e,m.tickCoord,()=>p,d,f);_&&(f=m.tickCoord-e*(p/2+i),s[u-1]=Mr(Mr({},m),{},{isShow:!0}))}for(var w=o?u-1:u,x=function(j){var O=s[j],N,F=()=>(N===void 0&&(N=n(O,j)),N);if(j===0){var $=e*(O.coordinate-e*F()/2-d);s[j]=O=Mr(Mr({},O),{},{tickCoord:$<0?O.coordinate-$*e:O.coordinate})}else s[j]=O=Mr(Mr({},O),{},{tickCoord:O.coordinate});var K=Rv(e,O.tickCoord,F,d,f);K&&(d=O.tickCoord+e*(F()/2+i),s[j]=Mr(Mr({},O),{},{isShow:!0}))},E=0;E<w;E++)x(E);return s}function RC(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:s,orientation:u,interval:d,tickFormatter:f,unit:m,angle:p}=e;if(!i||!i.length||!r)return[];if(st(d)||Cl.isSsr){var b;return(b=Fhe(i,st(d)?d:0))!==null&&b!==void 0?b:[]}var _=[],w=u==="top"||u==="bottom"?"width":"height",x=m&&w==="width"?gh(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},E=(O,N)=>{var F=typeof f=="function"?f(O.value,N):O.value;return w==="width"?zhe(gh(F,{fontSize:t,letterSpacing:n}),x,p):gh(F,{fontSize:t,letterSpacing:n})[w]},T=i.length>=2?dr(i[1].coordinate-i[0].coordinate):1,j=Bhe(o,T,w);return d==="equidistantPreserveStart"?$he(T,j,E,i,s):(d==="preserveStart"||d==="preserveStartEnd"?_=Yhe(T,j,E,i,s,d==="preserveStartEnd"):_=Ghe(T,j,E,i,s),_.filter(O=>O.isShow))}var Whe=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,s=0;if(t){t.forEach(m=>{if(m){var p=m.getBoundingClientRect();p.width>s&&(s=p.width)}});var u=n?n.getBoundingClientRect().width:0,d=i+o,f=s+d+u+(n?r:0);return Math.round(f)}return 0},Khe=["axisLine","width","height","className","hide","ticks"],Zhe=["viewBox"],Xhe=["viewBox"];function j2(e,t){if(e==null)return{};var n,r,i=Qhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Qhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu.apply(null,arguments)}function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){Jhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jhe(e,t,n){return(t=eme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eme(e){var t=tme(e,"string");return typeof t=="symbol"?t:t+""}function tme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LC={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"};function nme(e){var{x:t,y:n,width:r,height:i,orientation:o,mirror:s,axisLine:u,otherSvgProps:d}=e;if(!u)return null;var f=tr(tr(tr({},d),yn(u,!1)),{},{fill:"none"});if(o==="top"||o==="bottom"){var m=+(o==="top"&&!s||o==="bottom"&&s);f=tr(tr({},f),{},{x1:t,y1:n+m*i,x2:t+r,y2:n+m*i})}else{var p=+(o==="left"&&!s||o==="right"&&s);f=tr(tr({},f),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return C.createElement("line",Bu({},f,{className:Pe("recharts-cartesian-axis-line",Uu(u,"className"))}))}function rme(e,t,n,r,i,o,s,u,d){var f,m,p,b,_,w,x=u?-1:1,E=e.tickSize||s,T=st(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":f=m=e.coordinate,b=n+ +!u*i,p=b-x*E,w=p-x*d,_=T;break;case"left":p=b=e.coordinate,m=t+ +!u*r,f=m-x*E,_=f-x*d,w=T;break;case"right":p=b=e.coordinate,m=t+ +u*r,f=m+x*E,_=f+x*d,w=T;break;default:f=m=e.coordinate,b=n+ +u*i,p=b+x*E,w=p+x*d,_=T;break}return{line:{x1:f,y1:p,x2:m,y2:b},tick:{x:_,y:w}}}function ime(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function ame(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function ome(e){var{option:t,tickProps:n,value:r}=e,i,o=Pe(n.className,"recharts-cartesian-axis-tick-value");if(C.isValidElement(t))i=C.cloneElement(t,tr(tr({},n),{},{className:o}));else if(typeof t=="function")i=t(tr(tr({},n),{},{className:o}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Pe(s,t?.className)),i=C.createElement(Gy,Bu({},n,{className:s}),r)}return i}function sme(e){var{ticks:t=[],tick:n,tickLine:r,stroke:i,tickFormatter:o,unit:s,padding:u,tickTextProps:d,orientation:f,mirror:m,x:p,y:b,width:_,height:w,tickSize:x,tickMargin:E,fontSize:T,letterSpacing:j,getTicksConfig:O,events:N}=e,F=RC(tr(tr({},O),{},{ticks:t}),T,j),$=ime(f,m),K=ame(f,m),Q=ho(O),oe=yn(n,!1),ee=tr(tr({},Q),{},{fill:"none"},yn(r,!1)),J=F.map((te,he)=>{var{line:X,tick:se}=rme(te,p,b,_,w,f,x,m,E),Z=tr(tr(tr(tr({textAnchor:$,verticalAnchor:K},Q),{},{stroke:"none",fill:i},oe),se),{},{index:he,payload:te,visibleTicksCount:F.length,tickFormatter:o,padding:u},d);return C.createElement(hr,Bu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(te.value,"-").concat(te.coordinate,"-").concat(te.tickCoord)},by(N,te,he)),r&&C.createElement("line",Bu({},ee,X,{className:Pe("recharts-cartesian-axis-tick-line",Uu(r,"className"))})),n&&C.createElement(ome,{option:n,tickProps:Z,value:"".concat(typeof o=="function"?o(te.value,he):te.value).concat(s||"")}))});return J.length>0?C.createElement("g",{className:"recharts-cartesian-axis-ticks"},J):null}var lme=C.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:o,hide:s,ticks:u}=e,d=j2(e,Khe),[f,m]=C.useState(""),[p,b]=C.useState(""),_=C.useRef([]);C.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var x;return Whe({ticks:_.current,label:(x=e.labelRef)===null||x===void 0?void 0:x.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=C.useCallback(x=>{if(x){var E=x.getElementsByClassName("recharts-cartesian-axis-tick-value");_.current=Array.from(E);var T=E[0];if(T){var j=window.getComputedStyle(T),O=j.fontSize,N=j.letterSpacing;(O!==f||N!==p)&&(m(O),b(N))}}},[f,p]);return s||r!=null&&r<=0||i!=null&&i<=0?null:C.createElement(hr,{className:Pe("recharts-cartesian-axis",o),ref:w},C.createElement(nme,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:ho(e)}),C.createElement(sme,{ticks:u,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:f,letterSpacing:p,getTicksConfig:e,events:d}),C.createElement(e7,{x:e.x,y:e.y,width:e.width,height:e.height},C.createElement(r7,{label:e.label}),e.children))}),ume=C.memo(lme,(e,t)=>{var{viewBox:n}=e,r=j2(e,Zhe),{viewBox:i}=t,o=j2(t,Xhe);return ff(n,i)&&ff(r,o)}),NC=C.forwardRef((e,t)=>{var n=Ar(e,LC);return C.createElement(ume,Bu({},n,{ref:t}))});NC.displayName="CartesianAxis";var cme=["x1","y1","x2","y2","key"],fme=["offset"],dme=["xAxisId","yAxisId"],hme=["xAxisId","yAxisId"];function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){mme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mme(e,t,n){return(t=pme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pme(e){var t=gme(e,"string");return typeof t=="symbol"?t:t+""}function gme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(null,arguments)}function Lv(e,t){if(e==null)return{};var n,r,i=vme(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var yme=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:s,ry:u}=e;return C.createElement("rect",{x:r,y:i,ry:u,width:o,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function j7(e,t){var n;if(C.isValidElement(e))n=C.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:o,y2:s,key:u}=t,d=Lv(t,cme),f=ho(d),{offset:m}=f,p=Lv(f,fme);n=C.createElement("line",Su({},p,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:u}))}return n}function bme(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:s}=e,u=Lv(e,dme),d=i.map((f,m)=>{var p=Pr(Pr({},u),{},{x1:t,y1:f,x2:t+n,y2:f,key:"line-".concat(m),index:m});return j7(r,p)});return C.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function _me(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:s}=e,u=Lv(e,hme),d=i.map((f,m)=>{var p=Pr(Pr({},u),{},{x1:f,y1:t,x2:f,y2:t+n,key:"line-".concat(m),index:m});return j7(r,p)});return C.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function xme(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:s,horizontalPoints:u,horizontal:d=!0}=e;if(!d||!t||!t.length)return null;var f=u.map(p=>Math.round(p+i-i)).sort((p,b)=>p-b);i!==f[0]&&f.unshift(0);var m=f.map((p,b)=>{var _=!f[b+1],w=_?i+s-p:f[b+1]-p;if(w<=0)return null;var x=b%t.length;return C.createElement("rect",{key:"react-".concat(b),y:p,x:r,height:w,width:o,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return C.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function wme(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:s,height:u,verticalPoints:d}=e;if(!t||!n||!n.length)return null;var f=d.map(p=>Math.round(p+i-i)).sort((p,b)=>p-b);i!==f[0]&&f.unshift(0);var m=f.map((p,b)=>{var _=!f[b+1],w=_?i+s-p:f[b+1]-p;if(w<=0)return null;var x=b%n.length;return C.createElement("rect",{key:"react-".concat(b),x:p,y:o,width:w,height:u,stroke:"none",fill:n[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return C.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Sme=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return wD(RC(Pr(Pr(Pr({},LC),n),{},{ticks:SD(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},Cme=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return wD(RC(Pr(Pr(Pr({},LC),n),{},{ticks:SD(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},Eme={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function DC(e){var t=OD(),n=jD(),r=TD(),i=Pr(Pr({},Ar(e,Eme)),{},{x:st(e.x)?e.x:r.left,y:st(e.y)?e.y:r.top,width:st(e.width)?e.width:r.width,height:st(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:s,x:u,y:d,width:f,height:m,syncWithTicks:p,horizontalValues:b,verticalValues:_}=i,w=qr(),x=tt(oe=>sM(oe,"xAxis",o,w)),E=tt(oe=>sM(oe,"yAxis",s,w));if(!st(f)||f<=0||!st(m)||m<=0||!st(u)||u!==+u||!st(d)||d!==+d)return null;var T=i.verticalCoordinatesGenerator||Sme,j=i.horizontalCoordinatesGenerator||Cme,{horizontalPoints:O,verticalPoints:N}=i;if((!O||!O.length)&&typeof j=="function"){var F=b&&b.length,$=j({yAxis:E?Pr(Pr({},E),{},{ticks:F?b:E.ticks}):void 0,width:t,height:n,offset:r},F?!0:p);ph(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(O=$)}if((!N||!N.length)&&typeof T=="function"){var K=_&&_.length,Q=T({xAxis:x?Pr(Pr({},x),{},{ticks:K?_:x.ticks}):void 0,width:t,height:n,offset:r},K?!0:p);ph(Array.isArray(Q),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof Q,"]")),Array.isArray(Q)&&(N=Q)}return C.createElement("g",{className:"recharts-cartesian-grid"},C.createElement(yme,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),C.createElement(xme,Su({},i,{horizontalPoints:O})),C.createElement(wme,Su({},i,{verticalPoints:N})),C.createElement(bme,Su({},i,{offset:r,horizontalPoints:O,xAxis:x,yAxis:E})),C.createElement(_me,Su({},i,{offset:r,verticalPoints:N,xAxis:x,yAxis:E})))}DC.displayName="CartesianGrid";var M7=(e,t,n,r)=>gl(e,"xAxis",t,r),P7=(e,t,n,r)=>pl(e,"xAxis",t,r),R7=(e,t,n,r)=>gl(e,"yAxis",n,r),L7=(e,t,n,r)=>pl(e,"yAxis",n,r),Ame=je([Nt,M7,R7,P7,L7],(e,t,n,r,i)=>Sl(e,"xAxis")?Mh(t,r,!1):Mh(n,i,!1)),Tme=(e,t,n,r,i)=>i;function Ome(e){return e.type==="line"}var jme=je([By,Tme],(e,t)=>e.filter(Ome).find(n=>n.id===t)),Mme=je([Nt,M7,R7,P7,L7,jme,Ame,Dy],(e,t,n,r,i,o,s,u)=>{var{chartData:d,dataStartIndex:f,dataEndIndex:m}=u;if(!(o==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{dataKey:p,data:b}=o,_;if(b!=null&&b.length>0?_=b:_=d?.slice(f,m+1),_!=null)return Qme({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:p,bandSize:s,displayedData:_})}}),Pme=["id"],Rme=["type","layout","connectNulls","needClip"],Lme=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function mP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mP(Object(n),!0).forEach(function(r){Nme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nme(e,t,n){return(t=Dme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dme(e){var t=kme(e,"string");return typeof t=="symbol"?t:t+""}function kme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kC(e,t){if(e==null)return{};var n,r,i=Ime(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ime(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fu.apply(null,arguments)}var Ume=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:Af(n,t),payload:e}]};function zme(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:s,hide:u,unit:d}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Af(s,t),hide:u,type:e.tooltipType,color:e.stroke,unit:d}}}var N7=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function Bme(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var Fme=(e,t,n)=>{var r=n.reduce((p,b)=>p+b);if(!r)return N7(t,e);for(var i=Math.floor(e/r),o=e%r,s=t-e,u=[],d=0,f=0;d<n.length;f+=n[d],++d)if(f+n[d]>o){u=[...n.slice(0,d),o-f];break}var m=u.length%2===0?[0,s]:[s];return[...Bme(n,i),...u,...m].map(p=>"".concat(p,"px")).join(", ")};function $me(e,t){var n;if(C.isValidElement(e))n=C.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Pe("recharts-line-dot",typeof e!="boolean"?e.className:"");n=C.createElement(s7,Fu({},t,{className:r}))}return n}function Vme(e,t){return e==null?!1:t?!0:e.length===1}function Hme(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:o,needClip:s}=r;if(!Vme(n,i))return null;var{id:u}=r,d=kC(r,Pme),f=$N(i),m=ho(d),p=yn(i,!0),b=n.map((w,x)=>{var E=Ci(Ci(Ci({key:"dot-".concat(x),r:3},m),p),{},{index:x,cx:w.x,cy:w.y,dataKey:o,value:w.value,payload:w.payload,points:n});return $me(i,E)}),_={clipPath:s?"url(#clipPath-".concat(f?"":"dots-").concat(t,")"):void 0};return C.createElement(hr,Fu({className:"recharts-line-dots",key:"dots"},_),b)}function qme(e){var{showLabels:t,children:n,points:r}=e,i=C.useMemo(()=>r?.map(o=>{var s={x:o.x,y:o.y,width:0,height:0};return Ci(Ci({},s),{},{value:o.value,payload:o.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[r]);return C.createElement(a7,{value:t?i:null},n)}function pP(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:o}=e,{type:s,layout:u,connectNulls:d,needClip:f}=o,m=kC(o,Rme),p=Ci(Ci({},yn(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:f?"url(#clipPath-".concat(t,")"):void 0,points:r,type:s,layout:u,connectNulls:d,strokeDasharray:i??o.strokeDasharray});return C.createElement(C.Fragment,null,r?.length>1&&C.createElement(oS,Fu({},p,{pathRef:n})),C.createElement(Hme,{points:r,clipPathId:t,props:o}))}function Gme(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Yme(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:s,strokeDasharray:u,isAnimationActive:d,animationBegin:f,animationDuration:m,animationEasing:p,animateNewValues:b,width:_,height:w,onAnimationEnd:x,onAnimationStart:E}=n,T=i.current,j=nm(n,"recharts-line-"),[O,N]=C.useState(!1),F=!O,$=C.useCallback(()=>{typeof x=="function"&&x(),N(!1)},[x]),K=C.useCallback(()=>{typeof E=="function"&&E(),N(!0)},[E]),Q=Gme(r.current),oe=o.current;return C.createElement(qme,{points:s,showLabels:F},n.children,C.createElement(tm,{animationId:j,begin:f,duration:m,isActive:d,easing:p,onAnimationEnd:$,onAnimationStart:K,key:j},ee=>{var J=Mn(oe,Q+oe,ee),te=Math.min(J,Q),he;if(d)if(u){var X="".concat(u).split(/[,\s]+/gim).map(I=>parseFloat(I));he=Fme(te,Q,X)}else he=N7(Q,te);else he=u==null?void 0:String(u);if(T){var se=T.length/s.length,Z=ee===1?s:s.map((I,k)=>{var U=Math.floor(k*se);if(T[U]){var z=T[U];return Ci(Ci({},I),{},{x:Mn(z.x,I.x,ee),y:Mn(z.y,I.y,ee)})}return b?Ci(Ci({},I),{},{x:Mn(_*2,I.x,ee),y:Mn(w/2,I.y,ee)}):Ci(Ci({},I),{},{x:I.x,y:I.y})});return i.current=Z,C.createElement(pP,{props:n,points:Z,clipPathId:t,pathRef:r,strokeDasharray:he})}return ee>0&&Q>0&&(i.current=s,o.current=te),C.createElement(pP,{props:n,points:s,clipPathId:t,pathRef:r,strokeDasharray:he})}),C.createElement(gC,{label:n.label}))}function Wme(e){var{clipPathId:t,props:n}=e,r=C.useRef(null),i=C.useRef(0),o=C.useRef(null);return C.createElement(Yme,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:o})}var Kme=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:rn(e.payload,t)});class Zme extends C.Component{render(){var t,{hide:n,dot:r,points:i,className:o,xAxisId:s,yAxisId:u,top:d,left:f,width:m,height:p,id:b,needClip:_}=this.props;if(n)return null;var w=Pe("recharts-line",o),x=b,{r:E=3,strokeWidth:T=2}=(t=yn(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},j=$N(r),O=E*2+T;return C.createElement(C.Fragment,null,C.createElement(hr,{className:w},_&&C.createElement("defs",null,C.createElement(_7,{clipPathId:x,xAxisId:s,yAxisId:u}),!j&&C.createElement("clipPath",{id:"clipPath-dots-".concat(x)},C.createElement("rect",{x:f-O/2,y:d-O/2,width:m+O,height:p+O}))),C.createElement(b7,{xAxisId:s,yAxisId:u,data:i,dataPointFormatter:Kme,errorBarOffset:0},C.createElement(Wme,{props:this.props,clipPathId:x}))),C.createElement(ode,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var D7={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Cl.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function Xme(e){var t=Ar(e,D7),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,connectNulls:u,dot:d,hide:f,isAnimationActive:m,label:p,legendType:b,xAxisId:_,yAxisId:w,id:x}=t,E=kC(t,Lme),{needClip:T}=jC(_,w),j=TC(),O=Oy(),N=qr(),F=tt(ee=>Mme(ee,_,w,N,x));if(O!=="horizontal"&&O!=="vertical"||F==null||j==null)return null;var{height:$,width:K,x:Q,y:oe}=j;return C.createElement(Zme,Fu({},E,{id:x,connectNulls:u,dot:d,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,isAnimationActive:m,hide:f,label:p,legendType:b,xAxisId:_,yAxisId:w,points:F,layout:O,height:$,width:K,left:Q,top:oe,needClip:T}))}function Qme(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,dataKey:s,bandSize:u,displayedData:d}=e;return d.map((f,m)=>{var p=rn(f,s);if(t==="horizontal"){var b=Hj({axis:n,ticks:i,bandSize:u,entry:f,index:m}),_=vn(p)?null:r.scale(p);return{x:b,y:_,value:p,payload:f}}var w=vn(p)?null:n.scale(p),x=Hj({axis:r,ticks:o,bandSize:u,entry:f,index:m});return w==null||x==null?null:{x:w,y:x,value:p,payload:f}}).filter(Boolean)}function Jme(e){var t=Ar(e,D7),n=qr();return C.createElement(EC,{id:t.id,type:"line"},r=>C.createElement(C.Fragment,null,C.createElement(m7,{legendPayload:Ume(t)}),C.createElement(CC,{fn:zme,args:t}),C.createElement(g7,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),C.createElement(Xme,Fu({},t,{id:r}))))}var k7=C.memo(Jme);k7.displayName="Line";var epe=["dangerouslySetInnerHTML","ticks"],tpe=["id"],npe=["domain"],rpe=["domain"];function M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M2.apply(null,arguments)}function Nv(e,t){if(e==null)return{};var n,r,i=ipe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ipe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ape(e){var t=Rn();return C.useEffect(()=>(t(Yfe(e)),()=>{t(Wfe(e))}),[e,t]),null}var ope=e=>{var{xAxisId:t,className:n}=e,r=tt(iS),i=qr(),o="xAxis",s=tt(E=>ml(E,o,t,i)),u=tt(E=>b8(E,o,t,i)),d=tt(E=>p8(E,t)),f=tt(E=>jse(E,t)),m=tt(E=>Gk(E,t));if(d==null||f==null||m==null)return null;var{dangerouslySetInnerHTML:p,ticks:b}=e,_=Nv(e,epe),{id:w}=m,x=Nv(m,tpe);return C.createElement(NC,M2({},_,x,{scale:s,x:f.x,y:f.y,width:d.width,height:d.height,className:Pe("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:u}))},spe={allowDataOverflow:xi.allowDataOverflow,allowDecimals:xi.allowDecimals,allowDuplicatedCategory:xi.allowDuplicatedCategory,height:xi.height,hide:!1,mirror:xi.mirror,orientation:xi.orientation,padding:xi.padding,reversed:xi.reversed,scale:xi.scale,tickCount:xi.tickCount,type:xi.type,xAxisId:0},lpe=e=>{var t,n,r,i,o,s=Ar(e,spe);return C.createElement(C.Fragment,null,C.createElement(ape,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.xAxisId,scale:s.scale,type:s.type,padding:s.padding,allowDataOverflow:s.allowDataOverflow,domain:s.domain,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,includeHidden:(n=s.includeHidden)!==null&&n!==void 0?n:!1,reversed:s.reversed,ticks:s.ticks,height:s.height,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(r=s.angle)!==null&&r!==void 0?r:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(o=s.tick)!==null&&o!==void 0?o:!0,tickFormatter:s.tickFormatter}),C.createElement(ope,s))},upe=(e,t)=>{var{domain:n}=e,r=Nv(e,npe),{domain:i}=t,o=Nv(t,rpe);return ff(r,o)?Array.isArray(n)&&n.length===2&&Array.isArray(i)&&i.length===2?n[0]===i[0]&&n[1]===i[1]:ff({domain:n},{domain:i}):!1},IC=C.memo(lpe,upe);IC.displayName="XAxis";var cpe=["dangerouslySetInnerHTML","ticks"],fpe=["id"],dpe=["domain"],hpe=["domain"];function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P2.apply(null,arguments)}function Dv(e,t){if(e==null)return{};var n,r,i=mpe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ppe(e){var t=Rn();return C.useEffect(()=>(t(Kfe(e)),()=>{t(Zfe(e))}),[e,t]),null}var gpe=e=>{var{yAxisId:t,className:n,width:r,label:i}=e,o=C.useRef(null),s=C.useRef(null),u=tt(iS),d=qr(),f=Rn(),m="yAxis",p=tt(F=>ml(F,m,t,d)),b=tt(F=>g8(F,t)),_=tt(F=>Pse(F,t)),w=tt(F=>b8(F,m,t,d)),x=tt(F=>Yk(F,t));if(C.useLayoutEffect(()=>{if(!(r!=="auto"||!b||pC(i)||C.isValidElement(i)||x==null)){var F=o.current;if(F){var $=F.getCalculatedWidth();Math.round(b.width)!==Math.round($)&&f(Xfe({id:t,width:$}))}}},[w,b,f,i,t,r,x]),b==null||_==null||x==null)return null;var{dangerouslySetInnerHTML:E,ticks:T}=e,j=Dv(e,cpe),{id:O}=x,N=Dv(x,fpe);return C.createElement(NC,P2({},j,N,{ref:o,labelRef:s,scale:p,x:_.x,y:_.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:b.width,height:b.height,className:Pe("recharts-".concat(m," ").concat(m),n),viewBox:u,ticks:w}))},vpe={allowDataOverflow:wi.allowDataOverflow,allowDecimals:wi.allowDecimals,allowDuplicatedCategory:wi.allowDuplicatedCategory,hide:!1,mirror:wi.mirror,orientation:wi.orientation,padding:wi.padding,reversed:wi.reversed,scale:wi.scale,tickCount:wi.tickCount,type:wi.type,width:wi.width,yAxisId:0},ype=e=>{var t,n,r,i,o,s=Ar(e,vpe);return C.createElement(C.Fragment,null,C.createElement(ppe,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.yAxisId,scale:s.scale,type:s.type,domain:s.domain,allowDataOverflow:s.allowDataOverflow,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,padding:s.padding,includeHidden:(n=s.includeHidden)!==null&&n!==void 0?n:!1,reversed:s.reversed,ticks:s.ticks,width:s.width,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(r=s.angle)!==null&&r!==void 0?r:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(o=s.tick)!==null&&o!==void 0?o:!0,tickFormatter:s.tickFormatter}),C.createElement(gpe,s))},bpe=(e,t)=>{var{domain:n}=e,r=Dv(e,dpe),{domain:i}=t,o=Dv(t,hpe);return ff(r,o)?Array.isArray(n)&&n.length===2&&Array.isArray(i)&&i.length===2?n[0]===i[0]&&n[1]===i[1]:ff({domain:n},{domain:i}):!1},UC=C.memo(ype,bpe);UC.displayName="YAxis";var _pe=(e,t)=>t,zC=je([_pe,Nt,Vk,ar,N8,cs,kle,rr],Fle),BC=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},I7=cn("mouseClick"),U7=Xh();U7.startListening({actionCreator:I7,effect:(e,t)=>{var n=e.payload,r=zC(t.getState(),BC(n));r?.activeIndex!=null&&t.dispatch(Hse({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var R2=cn("mouseMove"),z7=Xh();z7.startListening({actionCreator:R2,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=iC(r,r.tooltip.settings.shared),o=zC(r,BC(n));i==="axis"&&(o?.activeIndex!=null?t.dispatch(T8({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(A8()))}});var gP={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},B7=Lt({name:"rootProps",initialState:gP,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:gP.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),xpe=B7.reducer,{updateOptions:wpe}=B7.actions,F7=Lt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Spe}=F7.actions,Cpe=F7.reducer,$7=cn("keyDown"),V7=cn("focus"),FC=Xh();FC.startListening({actionCreator:$7,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var s=Number(aC(i,Nf(n))),u=cs(n);if(o==="Enter"){var d=Tv(n,"axis","hover",String(i.index));t.dispatch(x2({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:d}));return}var f=Dse(n),m=f==="left-to-right"?1:-1,p=o==="ArrowRight"?1:-1,b=s+p*m;if(!(u==null||b>=u.length||b<0)){var _=Tv(n,"axis","hover",String(b));t.dispatch(x2({active:!0,activeIndex:b.toString(),activeDataKey:void 0,activeCoordinate:_}))}}}}});FC.startListening({actionCreator:V7,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",s=Tv(n,"axis","hover",String(o));t.dispatch(x2({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:s}))}}}});var Ji=cn("externalEvent"),H7=Xh();H7.startListening({actionCreator:Ji,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:Ale(n),activeDataKey:U8(n),activeIndex:vl(n),activeLabel:I8(n),activeTooltipIndex:vl(n),isTooltipActive:Tle(n)};e.payload.handler(r,e.payload.reactEvent)}}});var Epe=je([Lf],e=>e.tooltipItemPayloads),Ape=je([Epe,dm,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(u=>u.settings.dataKey===r);if(i!=null){var{positions:o}=i;if(o!=null){var s=t(o,n);return s}}}),q7=cn("touchMove"),G7=Xh();G7.startListening({actionCreator:q7,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=iC(r,r.tooltip.settings.shared);if(i==="axis"){var o=zC(r,BC({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));o?.activeIndex!=null&&t.dispatch(T8({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var s,u=n.touches[0],d=document.elementFromPoint(u.clientX,u.clientY);if(!d||!d.getAttribute)return;var f=d.getAttribute(ED),m=(s=d.getAttribute(AD))!==null&&s!==void 0?s:void 0,p=Ape(t.getState(),f,m);t.dispatch(E8({activeDataKey:m,activeIndex:f,activeCoordinate:p}))}}});var Tpe=cy({brush:bhe,cartesianAxis:Qfe,chartData:rue,errorBars:yde,graphicalItems:vfe,layout:Kte,legend:Ine,options:Qle,polarAxis:Nce,polarOptions:Cpe,referenceElements:jhe,rootProps:xpe,tooltip:qse}),Ope=function(t){return kw({reducer:Tpe,preloadedState:t,middleware:n=>n({serializableCheck:!1}).concat([U7.middleware,z7.middleware,FC.middleware,H7.middleware,G7.middleware]),devTools:Cl.devToolsEnabled})};function Y7(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=qr(),o=C.useRef(null);if(i)return n;o.current==null&&(o.current=Ope(t));var s=rS;return C.createElement(H2,{context:s,store:o.current},n)}function W7(e){var{layout:t,width:n,height:r,margin:i}=e,o=Rn(),s=qr();return C.useEffect(()=>{s||(o(Gte(t)),o(Yte({width:n,height:r})),o(qte(i)))},[o,s,t,n,r,i]),null}function K7(e){var t=Rn();return C.useEffect(()=>{t(wpe(e))},[t,e]),null}var jpe=["children"];function Mpe(e,t){if(e==null)return{};var n,r,i=Ppe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ppe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(null,arguments)}var Rpe={width:"100%",height:"100%"},Lpe=C.forwardRef((e,t)=>{var n=OD(),r=jD(),i=LD();if(!of(n)||!of(r))return null;var{children:o,otherAttributes:s,title:u,desc:d}=e,f,m;return typeof s.tabIndex=="number"?f=s.tabIndex:f=i?0:void 0,typeof s.role=="string"?m=s.role:m=i?"application":void 0,C.createElement(VN,kv({},s,{title:u,desc:d,role:m,tabIndex:f,width:n,height:r,style:Rpe,ref:t}),o)}),Npe=e=>{var{children:t}=e,n=tt(Ty);if(!n)return null;var{width:r,height:i,y:o,x:s}=n;return C.createElement(VN,{width:r,height:i,x:s,y:o},t)},vP=C.forwardRef((e,t)=>{var{children:n}=e,r=Mpe(e,jpe),i=qr();return i?C.createElement(Npe,null,n):C.createElement(Lpe,kv({ref:t},r),n)});function Dpe(){var e=Rn(),[t,n]=C.useState(null),r=tt(Cne);return C.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;Ni(o)&&o!==r&&e(Wte(o))}},[t,e,r]),n}function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){Ipe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ipe(e,t,n){return(t=Upe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Upe(e){var t=zpe(e,"string");return typeof t=="symbol"?t:t+""}function zpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bpe=C.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:s,onDoubleClick:u,onMouseDown:d,onMouseEnter:f,onMouseLeave:m,onMouseMove:p,onMouseUp:b,onTouchEnd:_,onTouchMove:w,onTouchStart:x,style:E,width:T}=e,j=Rn(),[O,N]=C.useState(null),[F,$]=C.useState(null);due();var K=Dpe(),Q=C.useCallback(G=>{K(G),typeof t=="function"&&t(G),N(G),$(G)},[K,t,N,$]),oe=C.useCallback(G=>{j(I7(G)),j(Ji({handler:o,reactEvent:G}))},[j,o]),ee=C.useCallback(G=>{j(R2(G)),j(Ji({handler:f,reactEvent:G}))},[j,f]),J=C.useCallback(G=>{j(A8()),j(Ji({handler:m,reactEvent:G}))},[j,m]),te=C.useCallback(G=>{j(R2(G)),j(Ji({handler:p,reactEvent:G}))},[j,p]),he=C.useCallback(()=>{j(V7())},[j]),X=C.useCallback(G=>{j($7(G.key))},[j]),se=C.useCallback(G=>{j(Ji({handler:s,reactEvent:G}))},[j,s]),Z=C.useCallback(G=>{j(Ji({handler:u,reactEvent:G}))},[j,u]),I=C.useCallback(G=>{j(Ji({handler:d,reactEvent:G}))},[j,d]),k=C.useCallback(G=>{j(Ji({handler:b,reactEvent:G}))},[j,b]),U=C.useCallback(G=>{j(Ji({handler:x,reactEvent:G}))},[j,x]),z=C.useCallback(G=>{j(q7(G)),j(Ji({handler:w,reactEvent:G}))},[j,w]),P=C.useCallback(G=>{j(Ji({handler:_,reactEvent:G}))},[j,_]);return C.createElement(H8.Provider,{value:O},C.createElement(gee.Provider,{value:F},C.createElement("div",{className:Pe("recharts-wrapper",r),style:kpe({position:"relative",cursor:"default",width:T,height:i},E),onClick:oe,onContextMenu:se,onDoubleClick:Z,onFocus:he,onKeyDown:X,onMouseDown:I,onMouseEnter:ee,onMouseLeave:J,onMouseMove:te,onMouseUp:k,onTouchEnd:P,onTouchMove:z,onTouchStart:U,ref:Q},n)))}),Fpe=["children","className","width","height","style","compact","title","desc"];function $pe(e,t){if(e==null)return{};var n,r,i=Vpe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Z7=C.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:o,style:s,compact:u,title:d,desc:f}=e,m=$pe(e,Fpe),p=ho(m);return u?C.createElement(vP,{otherAttributes:p,title:d,desc:f},n):C.createElement(Bpe,{className:r,style:s,width:i,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},C.createElement(vP,{otherAttributes:p,title:d,desc:f,ref:t},C.createElement(Mhe,null,n)))}),Hpe=["width","height"];function L2(){return L2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L2.apply(null,arguments)}function qpe(e,t){if(e==null)return{};var n,r,i=Gpe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ype={top:5,right:5,bottom:5,left:5},Wpe={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Ype,reverseStackOrder:!1,syncMethod:"index"},X7=C.forwardRef(function(t,n){var r,i=Ar(t.categoricalChartProps,Wpe),{width:o,height:s}=i,u=qpe(i,Hpe);if(!of(o)||!of(s))return null;var{chartName:d,defaultTooltipEventType:f,validateTooltipEventTypes:m,tooltipPayloadSearcher:p,categoricalChartProps:b}=t,_={chartName:d,defaultTooltipEventType:f,validateTooltipEventTypes:m,tooltipPayloadSearcher:p,eventEmitter:void 0};return C.createElement(Y7,{preloadedState:{options:_},reduxStoreName:(r=b.id)!==null&&r!==void 0?r:d},C.createElement(S7,{chartData:b.data}),C.createElement(W7,{width:o,height:s,layout:i.layout,margin:i.margin}),C.createElement(K7,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),C.createElement(Z7,L2({},u,{width:o,height:s,ref:n})))}),Kpe=["axis"],Zpe=C.forwardRef((e,t)=>C.createElement(X7,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Kpe,tooltipPayloadSearcher:hC,categoricalChartProps:e,ref:t}));function Xpe(e){var t=Rn();return C.useEffect(()=>{t(Spe(e))},[t,e]),null}var Qpe=["width","height","layout"];function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N2.apply(null,arguments)}function Jpe(e,t){if(e==null)return{};var n,r,i=ege(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ege(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var tge={top:5,right:5,bottom:5,left:5},nge={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:tge,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},rge=C.forwardRef(function(t,n){var r,i=Ar(t.categoricalChartProps,nge),{width:o,height:s,layout:u}=i,d=Jpe(i,Qpe);if(!of(o)||!of(s))return null;var{chartName:f,defaultTooltipEventType:m,validateTooltipEventTypes:p,tooltipPayloadSearcher:b}=t,_={chartName:f,defaultTooltipEventType:m,validateTooltipEventTypes:p,tooltipPayloadSearcher:b,eventEmitter:void 0};return C.createElement(Y7,{preloadedState:{options:_},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:f},C.createElement(S7,{chartData:i.data}),C.createElement(W7,{width:o,height:s,layout:u,margin:i.margin}),C.createElement(K7,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),C.createElement(Xpe,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),C.createElement(Z7,N2({width:o,height:s},d,{ref:n})))}),ige=["item"],age={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},oge=C.forwardRef((e,t)=>{var n=Ar(e,age);return C.createElement(rge,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:ige,tooltipPayloadSearcher:hC,categoricalChartProps:n,ref:t})}),sge=["axis"],lge=C.forwardRef((e,t)=>C.createElement(X7,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:sge,tooltipPayloadSearcher:hC,categoricalChartProps:e,ref:t}));function Q7(e,t){const n=C.useRef(t);C.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const uge=1;function cge(e){return Object.freeze({__version:uge,map:e})}function fge(e,t){return Object.freeze({...e,...t})}const $C=C.createContext(null);function J7(){const e=C.use($C);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function dge(e){function t(n,r){const{instance:i,context:o}=e(n).current;C.useImperativeHandle(r,()=>i);const{children:s}=n;return s==null?null:Qc.createElement($C,{value:o},s)}return C.forwardRef(t)}function hge(e){function t(n,r){const[i,o]=C.useState(!1),{instance:s}=e(n,o).current;C.useImperativeHandle(r,()=>s),C.useEffect(function(){i&&s.update()},[s,i,n.children]);const u=s._contentNode;return u?$h.createPortal(n.children,u):null}return C.forwardRef(t)}function mge(e){function t(n,r){const{instance:i}=e(n).current;return C.useImperativeHandle(r,()=>i),null}return C.forwardRef(t)}function eI(e,t){const n=C.useRef(void 0);C.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function VC(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function pge(e,t){return function(r,i){const o=J7(),s=e(VC(r,o),o);return Q7(o.map,r.attribution),eI(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var lh={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 gge=lh.exports,bP;function vge(){return bP||(bP=1,function(e,t){(function(n,r){r(t)})(gge,function(n){var r="1.9.4";function i(c){var g,S,R,V;for(S=1,R=arguments.length;S<R;S++){V=arguments[S];for(g in V)c[g]=V[g]}return c}var o=Object.create||function(){function c(){}return function(g){return c.prototype=g,new c}}();function s(c,g){var S=Array.prototype.slice;if(c.bind)return c.bind.apply(c,S.call(arguments,1));var R=S.call(arguments,2);return function(){return c.apply(g,R.length?R.concat(S.call(arguments)):arguments)}}var u=0;function d(c){return"_leaflet_id"in c||(c._leaflet_id=++u),c._leaflet_id}function f(c,g,S){var R,V,re,me;return me=function(){R=!1,V&&(re.apply(S,V),V=!1)},re=function(){R?V=arguments:(c.apply(S,arguments),setTimeout(me,g),R=!0)},re}function m(c,g,S){var R=g[1],V=g[0],re=R-V;return c===R&&S?c:((c-V)%re+re)%re+V}function p(){return!1}function b(c,g){if(g===!1)return c;var S=Math.pow(10,g===void 0?6:g);return Math.round(c*S)/S}function _(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function w(c){return _(c).split(/\s+/)}function x(c,g){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var S in g)c.options[S]=g[S];return c.options}function E(c,g,S){var R=[];for(var V in c)R.push(encodeURIComponent(S?V.toUpperCase():V)+"="+encodeURIComponent(c[V]));return(!g||g.indexOf("?")===-1?"?":"&")+R.join("&")}var T=/\{ *([\w_ -]+) *\}/g;function j(c,g){return c.replace(T,function(S,R){var V=g[R];if(V===void 0)throw new Error("No value provided for variable "+S);return typeof V=="function"&&(V=V(g)),V})}var O=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function N(c,g){for(var S=0;S<c.length;S++)if(c[S]===g)return S;return-1}var F="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function $(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var K=0;function Q(c){var g=+new Date,S=Math.max(0,16-(g-K));return K=g+S,window.setTimeout(c,S)}var oe=window.requestAnimationFrame||$("RequestAnimationFrame")||Q,ee=window.cancelAnimationFrame||$("CancelAnimationFrame")||$("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function J(c,g,S){if(S&&oe===Q)c.call(g);else return oe.call(window,s(c,g))}function te(c){c&&ee.call(window,c)}var he={__proto__:null,extend:i,create:o,bind:s,get lastId(){return u},stamp:d,throttle:f,wrapNum:m,falseFn:p,formatNum:b,trim:_,splitWords:w,setOptions:x,getParamString:E,template:j,isArray:O,indexOf:N,emptyImageUrl:F,requestFn:oe,cancelFn:ee,requestAnimFrame:J,cancelAnimFrame:te};function X(){}X.extend=function(c){var g=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},S=g.__super__=this.prototype,R=o(S);R.constructor=g,g.prototype=R;for(var V in this)Object.prototype.hasOwnProperty.call(this,V)&&V!=="prototype"&&V!=="__super__"&&(g[V]=this[V]);return c.statics&&i(g,c.statics),c.includes&&(se(c.includes),i.apply(null,[R].concat(c.includes))),i(R,c),delete R.statics,delete R.includes,R.options&&(R.options=S.options?o(S.options):{},i(R.options,c.options)),R._initHooks=[],R.callInitHooks=function(){if(!this._initHooksCalled){S.callInitHooks&&S.callInitHooks.call(this),this._initHooksCalled=!0;for(var re=0,me=R._initHooks.length;re<me;re++)R._initHooks[re].call(this)}},g},X.include=function(c){var g=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=g,this.mergeOptions(c.options)),this},X.mergeOptions=function(c){return i(this.prototype.options,c),this},X.addInitHook=function(c){var g=Array.prototype.slice.call(arguments,1),S=typeof c=="function"?c:function(){this[c].apply(this,g)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(S),this};function se(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=O(c)?c:[c];for(var g=0;g<c.length;g++)c[g]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Z={on:function(c,g,S){if(typeof c=="object")for(var R in c)this._on(R,c[R],g);else{c=w(c);for(var V=0,re=c.length;V<re;V++)this._on(c[V],g,S)}return this},off:function(c,g,S){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var R in c)this._off(R,c[R],g);else{c=w(c);for(var V=arguments.length===1,re=0,me=c.length;re<me;re++)V?this._off(c[re]):this._off(c[re],g,S)}return this},_on:function(c,g,S,R){if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}if(this._listens(c,g,S)===!1){S===this&&(S=void 0);var V={fn:g,ctx:S};R&&(V.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(V)}},_off:function(c,g,S){var R,V,re;if(this._events&&(R=this._events[c],!!R)){if(arguments.length===1){if(this._firingCount)for(V=0,re=R.length;V<re;V++)R[V].fn=p;delete this._events[c];return}if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}var me=this._listens(c,g,S);if(me!==!1){var Se=R[me];this._firingCount&&(Se.fn=p,this._events[c]=R=R.slice()),R.splice(me,1)}}},fire:function(c,g,S){if(!this.listens(c,S))return this;var R=i({},g,{type:c,target:this,sourceTarget:g&&g.sourceTarget||this});if(this._events){var V=this._events[c];if(V){this._firingCount=this._firingCount+1||1;for(var re=0,me=V.length;re<me;re++){var Se=V[re],Te=Se.fn;Se.once&&this.off(c,Te,Se.ctx),Te.call(Se.ctx||this,R)}this._firingCount--}}return S&&this._propagateEvent(R),this},listens:function(c,g,S,R){typeof c!="string"&&console.warn('"string" type argument expected');var V=g;typeof g!="function"&&(R=!!g,V=void 0,S=void 0);var re=this._events&&this._events[c];if(re&&re.length&&this._listens(c,V,S)!==!1)return!0;if(R){for(var me in this._eventParents)if(this._eventParents[me].listens(c,g,S,R))return!0}return!1},_listens:function(c,g,S){if(!this._events)return!1;var R=this._events[c]||[];if(!g)return!!R.length;S===this&&(S=void 0);for(var V=0,re=R.length;V<re;V++)if(R[V].fn===g&&R[V].ctx===S)return V;return!1},once:function(c,g,S){if(typeof c=="object")for(var R in c)this._on(R,c[R],g,!0);else{c=w(c);for(var V=0,re=c.length;V<re;V++)this._on(c[V],g,S,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[d(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[d(c)],this},_propagateEvent:function(c){for(var g in this._eventParents)this._eventParents[g].fire(c.type,i({layer:c.target,propagatedFrom:c.target},c),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var I=X.extend(Z);function k(c,g,S){this.x=S?Math.round(c):c,this.y=S?Math.round(g):g}var U=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};k.prototype={clone:function(){return new k(this.x,this.y)},add:function(c){return this.clone()._add(z(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(z(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new k(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new k(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=U(this.x),this.y=U(this.y),this},distanceTo:function(c){c=z(c);var g=c.x-this.x,S=c.y-this.y;return Math.sqrt(g*g+S*S)},equals:function(c){return c=z(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=z(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}};function z(c,g,S){return c instanceof k?c:O(c)?new k(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new k(c.x,c.y):new k(c,g,S)}function P(c,g){if(c)for(var S=g?[c,g]:c,R=0,V=S.length;R<V;R++)this.extend(S[R])}P.prototype={extend:function(c){var g,S;if(!c)return this;if(c instanceof k||typeof c[0]=="number"||"x"in c)g=S=z(c);else if(c=G(c),g=c.min,S=c.max,!g||!S)return this;return!this.min&&!this.max?(this.min=g.clone(),this.max=S.clone()):(this.min.x=Math.min(g.x,this.min.x),this.max.x=Math.max(S.x,this.max.x),this.min.y=Math.min(g.y,this.min.y),this.max.y=Math.max(S.y,this.max.y)),this},getCenter:function(c){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(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(c){var g,S;return typeof c[0]=="number"||c instanceof k?c=z(c):c=G(c),c instanceof P?(g=c.min,S=c.max):g=S=c,g.x>=this.min.x&&S.x<=this.max.x&&g.y>=this.min.y&&S.y<=this.max.y},intersects:function(c){c=G(c);var g=this.min,S=this.max,R=c.min,V=c.max,re=V.x>=g.x&&R.x<=S.x,me=V.y>=g.y&&R.y<=S.y;return re&&me},overlaps:function(c){c=G(c);var g=this.min,S=this.max,R=c.min,V=c.max,re=V.x>g.x&&R.x<S.x,me=V.y>g.y&&R.y<S.y;return re&&me},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var g=this.min,S=this.max,R=Math.abs(g.x-S.x)*c,V=Math.abs(g.y-S.y)*c;return G(z(g.x-R,g.y-V),z(S.x+R,S.y+V))},equals:function(c){return c?(c=G(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function G(c,g){return!c||c instanceof P?c:new P(c,g)}function Y(c,g){if(c)for(var S=g?[c,g]:c,R=0,V=S.length;R<V;R++)this.extend(S[R])}Y.prototype={extend:function(c){var g=this._southWest,S=this._northEast,R,V;if(c instanceof ue)R=c,V=c;else if(c instanceof Y){if(R=c._southWest,V=c._northEast,!R||!V)return this}else return c?this.extend(fe(c)||ne(c)):this;return!g&&!S?(this._southWest=new ue(R.lat,R.lng),this._northEast=new ue(V.lat,V.lng)):(g.lat=Math.min(R.lat,g.lat),g.lng=Math.min(R.lng,g.lng),S.lat=Math.max(V.lat,S.lat),S.lng=Math.max(V.lng,S.lng)),this},pad:function(c){var g=this._southWest,S=this._northEast,R=Math.abs(g.lat-S.lat)*c,V=Math.abs(g.lng-S.lng)*c;return new Y(new ue(g.lat-R,g.lng-V),new ue(S.lat+R,S.lng+V))},getCenter:function(){return new ue((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 ue(this.getNorth(),this.getWest())},getSouthEast:function(){return new ue(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(c){typeof c[0]=="number"||c instanceof ue||"lat"in c?c=fe(c):c=ne(c);var g=this._southWest,S=this._northEast,R,V;return c instanceof Y?(R=c.getSouthWest(),V=c.getNorthEast()):R=V=c,R.lat>=g.lat&&V.lat<=S.lat&&R.lng>=g.lng&&V.lng<=S.lng},intersects:function(c){c=ne(c);var g=this._southWest,S=this._northEast,R=c.getSouthWest(),V=c.getNorthEast(),re=V.lat>=g.lat&&R.lat<=S.lat,me=V.lng>=g.lng&&R.lng<=S.lng;return re&&me},overlaps:function(c){c=ne(c);var g=this._southWest,S=this._northEast,R=c.getSouthWest(),V=c.getNorthEast(),re=V.lat>g.lat&&R.lat<S.lat,me=V.lng>g.lng&&R.lng<S.lng;return re&&me},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,g){return c?(c=ne(c),this._southWest.equals(c.getSouthWest(),g)&&this._northEast.equals(c.getNorthEast(),g)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ne(c,g){return c instanceof Y?c:new Y(c,g)}function ue(c,g,S){if(isNaN(c)||isNaN(g))throw new Error("Invalid LatLng object: ("+c+", "+g+")");this.lat=+c,this.lng=+g,S!==void 0&&(this.alt=+S)}ue.prototype={equals:function(c,g){if(!c)return!1;c=fe(c);var S=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return S<=(g===void 0?1e-9:g)},toString:function(c){return"LatLng("+b(this.lat,c)+", "+b(this.lng,c)+")"},distanceTo:function(c){return D.distance(this,fe(c))},wrap:function(){return D.wrapLatLng(this)},toBounds:function(c){var g=180*c/40075017,S=g/Math.cos(Math.PI/180*this.lat);return ne([this.lat-g,this.lng-S],[this.lat+g,this.lng+S])},clone:function(){return new ue(this.lat,this.lng,this.alt)}};function fe(c,g,S){return c instanceof ue?c:O(c)&&typeof c[0]!="object"?c.length===3?new ue(c[0],c[1],c[2]):c.length===2?new ue(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new ue(c.lat,"lng"in c?c.lng:c.lon,c.alt):g===void 0?null:new ue(c,g,S)}var ge={latLngToPoint:function(c,g){var S=this.projection.project(c),R=this.scale(g);return this.transformation._transform(S,R)},pointToLatLng:function(c,g){var S=this.scale(g),R=this.transformation.untransform(c,S);return this.projection.unproject(R)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var g=this.projection.bounds,S=this.scale(c),R=this.transformation.transform(g.min,S),V=this.transformation.transform(g.max,S);return new P(R,V)},infinite:!1,wrapLatLng:function(c){var g=this.wrapLng?m(c.lng,this.wrapLng,!0):c.lng,S=this.wrapLat?m(c.lat,this.wrapLat,!0):c.lat,R=c.alt;return new ue(S,g,R)},wrapLatLngBounds:function(c){var g=c.getCenter(),S=this.wrapLatLng(g),R=g.lat-S.lat,V=g.lng-S.lng;if(R===0&&V===0)return c;var re=c.getSouthWest(),me=c.getNorthEast(),Se=new ue(re.lat-R,re.lng-V),Te=new ue(me.lat-R,me.lng-V);return new Y(Se,Te)}},D=i({},ge,{wrapLng:[-180,180],R:6371e3,distance:function(c,g){var S=Math.PI/180,R=c.lat*S,V=g.lat*S,re=Math.sin((g.lat-c.lat)*S/2),me=Math.sin((g.lng-c.lng)*S/2),Se=re*re+Math.cos(R)*Math.cos(V)*me*me,Te=2*Math.atan2(Math.sqrt(Se),Math.sqrt(1-Se));return this.R*Te}}),B=6378137,W={R:B,MAX_LATITUDE:85.0511287798,project:function(c){var g=Math.PI/180,S=this.MAX_LATITUDE,R=Math.max(Math.min(S,c.lat),-S),V=Math.sin(R*g);return new k(this.R*c.lng*g,this.R*Math.log((1+V)/(1-V))/2)},unproject:function(c){var g=180/Math.PI;return new ue((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*g,c.x*g/this.R)},bounds:function(){var c=B*Math.PI;return new P([-c,-c],[c,c])}()};function le(c,g,S,R){if(O(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=g,this._c=S,this._d=R}le.prototype={transform:function(c,g){return this._transform(c.clone(),g)},_transform:function(c,g){return g=g||1,c.x=g*(this._a*c.x+this._b),c.y=g*(this._c*c.y+this._d),c},untransform:function(c,g){return g=g||1,new k((c.x/g-this._b)/this._a,(c.y/g-this._d)/this._c)}};function H(c,g,S,R){return new le(c,g,S,R)}var ae=i({},D,{code:"EPSG:3857",projection:W,transformation:function(){var c=.5/(Math.PI*W.R);return H(c,.5,-c,.5)}()}),ce=i({},ae,{code:"EPSG:900913"});function ve(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function de(c,g){var S="",R,V,re,me,Se,Te;for(R=0,re=c.length;R<re;R++){for(Se=c[R],V=0,me=Se.length;V<me;V++)Te=Se[V],S+=(V?"L":"M")+Te.x+" "+Te.y;S+=g?it.svg?"z":"x":""}return S||"M0 0"}var we=document.documentElement.style,Ae="ActiveXObject"in window,Ne=Ae&&!document.addEventListener,Ve="msLaunchUri"in navigator&&!("documentMode"in document),Fe=Dn("webkit"),He=Dn("android"),be=Dn("android 2")||Dn("android 3"),_e=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),De=He&&Dn("Google")&&_e<537&&!("AudioNode"in window),Re=!!window.opera,Me=!Ve&&Dn("chrome"),$e=Dn("gecko")&&!Fe&&!Re&&!Ae,Ge=!Me&&Dn("safari"),Ze=Dn("phantom"),ut="OTransition"in we,rt=navigator.platform.indexOf("Win")===0,dt=Ae&&"transition"in we,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!be,Dt="MozPerspective"in we,yt=!window.L_DISABLE_3D&&(dt||gt||Dt)&&!ut&&!Ze,Ui=typeof orientation<"u"||Dn("mobile"),Kn=Ui&&Fe,jl=Ui&&gt,Dr=!window.PointerEvent&&window.MSPointerEvent,mo=!!(window.PointerEvent||Dr),po="ontouchstart"in window||!!window.TouchEvent,zi=!window.L_NO_TOUCH&&(po||mo),Da=Ui&&Re,ci=Ui&&$e,Cn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,fn=function(){var c=!1;try{var g=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",p,g),window.removeEventListener("testPassiveEventSupport",p,g)}catch{}return c}(),Zn=function(){return!!document.createElement("canvas").getContext}(),_n=!!(document.createElementNS&&ve("svg").createSVGRect),Xn=!!_n&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),En=!_n&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var g=c.firstChild;return g.style.behavior="url(#default#VML)",g&&typeof g.adj=="object"}catch{return!1}}(),Gr=navigator.platform.indexOf("Mac")===0,Yr=navigator.platform.indexOf("Linux")===0;function Dn(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var it={ie:Ae,ielt9:Ne,edge:Ve,webkit:Fe,android:He,android23:be,androidStock:De,opera:Re,chrome:Me,gecko:$e,safari:Ge,phantom:Ze,opera12:ut,win:rt,ie3d:dt,webkit3d:gt,gecko3d:Dt,any3d:yt,mobile:Ui,mobileWebkit:Kn,mobileWebkit3d:jl,msPointer:Dr,pointer:mo,touch:zi,touchNative:po,mobileOpera:Da,mobileGecko:ci,retina:Cn,passiveEvents:fn,canvas:Zn,svg:_n,vml:En,inlineSvg:Xn,mac:Gr,linux:Yr},zf=it.msPointer?"MSPointerDown":"pointerdown",Bf=it.msPointer?"MSPointerMove":"pointermove",la=it.msPointer?"MSPointerUp":"pointerup",Fn=it.msPointer?"MSPointerCancel":"pointercancel",or={touchstart:zf,touchmove:Bf,touchend:la,touchcancel:Fn},go={touchstart:hs,touchmove:Ia,touchend:Ia,touchcancel:Ia},ka={},wm=!1;function r0(c,g,S){return g==="touchstart"&&ds(),go[g]?(S=go[g].bind(this,S),c.addEventListener(or[g],S,!1),S):(console.warn("wrong event specified:",g),p)}function Sm(c,g,S){if(!or[g]){console.warn("wrong event specified:",g);return}c.removeEventListener(or[g],S,!1)}function Ml(c){ka[c.pointerId]=c}function Ff(c){ka[c.pointerId]&&(ka[c.pointerId]=c)}function vo(c){delete ka[c.pointerId]}function ds(){wm||(document.addEventListener(zf,Ml,!0),document.addEventListener(Bf,Ff,!0),document.addEventListener(la,vo,!0),document.addEventListener(Fn,vo,!0),wm=!0)}function Ia(c,g){if(g.pointerType!==(g.MSPOINTER_TYPE_MOUSE||"mouse")){g.touches=[];for(var S in ka)g.touches.push(ka[S]);g.changedTouches=[g],c(g)}}function hs(c,g){g.MSPOINTER_TYPE_TOUCH&&g.pointerType===g.MSPOINTER_TYPE_TOUCH&&An(g),Ia(c,g)}function $n(c){var g={},S,R;for(R in c)S=c[R],g[R]=S&&S.bind?S.bind(c):S;return c=g,g.type="dblclick",g.detail=2,g.isTrusted=!1,g._simulated=!0,g}var Cm=200;function Em(c,g){c.addEventListener("dblclick",g);var S=0,R;function V(re){if(re.detail!==1){R=re.detail;return}if(!(re.pointerType==="mouse"||re.sourceCapabilities&&!re.sourceCapabilities.firesTouchEvents)){var me=Il(re);if(!(me.some(function(Te){return Te instanceof HTMLLabelElement&&Te.attributes.for})&&!me.some(function(Te){return Te instanceof HTMLInputElement||Te instanceof HTMLSelectElement}))){var Se=Date.now();Se-S<=Cm?(R++,R===2&&g($n(re))):R=1,S=Se}}}return c.addEventListener("click",V),{dblclick:g,simDblclick:V}}function yo(c,g){c.removeEventListener("dblclick",g.dblclick),c.removeEventListener("click",g.simDblclick)}var Ua=Ll(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Pl=Ll(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$f=Pl==="webkitTransition"||Pl==="OTransition"?Pl+"End":"transitionend";function Vf(c){return typeof c=="string"?document.getElementById(c):c}function Rl(c,g){var S=c.style[g]||c.currentStyle&&c.currentStyle[g];if((!S||S==="auto")&&document.defaultView){var R=document.defaultView.getComputedStyle(c,null);S=R?R[g]:null}return S==="auto"?null:S}function wt(c,g,S){var R=document.createElement(c);return R.className=g||"",S&&S.appendChild(R),R}function Yt(c){var g=c.parentNode;g&&g.removeChild(c)}function Wr(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function Qn(c){var g=c.parentNode;g&&g.lastChild!==c&&g.appendChild(c)}function bo(c){var g=c.parentNode;g&&g.firstChild!==c&&g.insertBefore(c,g.firstChild)}function Hf(c,g){if(c.classList!==void 0)return c.classList.contains(g);var S=Ku(c);return S.length>0&&new RegExp("(^|\\s)"+g+"(\\s|$)").test(S)}function ht(c,g){if(c.classList!==void 0)for(var S=w(g),R=0,V=S.length;R<V;R++)c.classList.add(S[R]);else if(!Hf(c,g)){var re=Ku(c);ms(c,(re?re+" ":"")+g)}}function dn(c,g){c.classList!==void 0?c.classList.remove(g):ms(c,_((" "+Ku(c)+" ").replace(" "+g+" "," ")))}function ms(c,g){c.className.baseVal===void 0?c.className=g:c.className.baseVal=g}function Ku(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function an(c,g){"opacity"in c.style?c.style.opacity=g:"filter"in c.style&&qf(c,g)}function qf(c,g){var S=!1,R="DXImageTransform.Microsoft.Alpha";try{S=c.filters.item(R)}catch{if(g===1)return}g=Math.round(g*100),S?(S.Enabled=g!==100,S.Opacity=g):c.style.filter+=" progid:"+R+"(opacity="+g+")"}function Ll(c){for(var g=document.documentElement.style,S=0;S<c.length;S++)if(c[S]in g)return c[S];return!1}function ua(c,g,S){var R=g||new k(0,0);c.style[Ua]=(it.ie3d?"translate("+R.x+"px,"+R.y+"px)":"translate3d("+R.x+"px,"+R.y+"px,0)")+(S?" scale("+S+")":"")}function Qt(c,g){c._leaflet_pos=g,it.any3d?ua(c,g):(c.style.left=g.x+"px",c.style.top=g.y+"px")}function za(c){return c._leaflet_pos||new k(0,0)}var ps,Bi,Gf;if("onselectstart"in document)ps=function(){ft(window,"selectstart",An)},Bi=function(){$t(window,"selectstart",An)};else{var gs=Ll(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ps=function(){if(gs){var c=document.documentElement.style;Gf=c[gs],c[gs]="none"}},Bi=function(){gs&&(document.documentElement.style[gs]=Gf,Gf=void 0)}}function Zu(){ft(window,"dragstart",An)}function Nl(){$t(window,"dragstart",An)}var Xu,Yf;function vs(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(Kr(),Xu=c,Yf=c.style.outlineStyle,c.style.outlineStyle="none",ft(window,"keydown",Kr))}function Kr(){Xu&&(Xu.style.outlineStyle=Yf,Xu=void 0,Yf=void 0,$t(window,"keydown",Kr))}function Qu(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function Dl(c){var g=c.getBoundingClientRect();return{x:g.width/c.offsetWidth||1,y:g.height/c.offsetHeight||1,boundingClientRect:g}}var ys={__proto__:null,TRANSFORM:Ua,TRANSITION:Pl,TRANSITION_END:$f,get:Vf,getStyle:Rl,create:wt,remove:Yt,empty:Wr,toFront:Qn,toBack:bo,hasClass:Hf,addClass:ht,removeClass:dn,setClass:ms,getClass:Ku,setOpacity:an,testProp:Ll,setTransform:ua,setPosition:Qt,getPosition:za,get disableTextSelection(){return ps},get enableTextSelection(){return Bi},disableImageDrag:Zu,enableImageDrag:Nl,preventOutline:vs,restoreOutline:Kr,getSizedParentNode:Qu,getScale:Dl};function ft(c,g,S,R){if(g&&typeof g=="object")for(var V in g)di(c,V,g[V],S);else{g=w(g);for(var re=0,me=g.length;re<me;re++)di(c,g[re],S,R)}return this}var fi="_leaflet_events";function $t(c,g,S,R){if(arguments.length===1)Wf(c),delete c[fi];else if(g&&typeof g=="object")for(var V in g)kl(c,V,g[V],S);else if(g=w(g),arguments.length===2)Wf(c,function(Se){return N(g,Se)!==-1});else for(var re=0,me=g.length;re<me;re++)kl(c,g[re],S,R);return this}function Wf(c,g){for(var S in c[fi]){var R=S.split(/\d/)[0];(!g||g(R))&&kl(c,R,null,null,S)}}var _o={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function di(c,g,S,R){var V=g+d(S)+(R?"_"+d(R):"");if(c[fi]&&c[fi][V])return this;var re=function(Se){return S.call(R||c,Se||window.event)},me=re;!it.touchNative&&it.pointer&&g.indexOf("touch")===0?re=r0(c,g,re):it.touch&&g==="dblclick"?re=Em(c,re):"addEventListener"in c?g==="touchstart"||g==="touchmove"||g==="wheel"||g==="mousewheel"?c.addEventListener(_o[g]||g,re,it.passiveEvents?{passive:!1}:!1):g==="mouseenter"||g==="mouseleave"?(re=function(Se){Se=Se||window.event,ca(c,Se)&&me(Se)},c.addEventListener(_o[g],re,!1)):c.addEventListener(g,me,!1):c.attachEvent("on"+g,re),c[fi]=c[fi]||{},c[fi][V]=re}function kl(c,g,S,R,V){V=V||g+d(S)+(R?"_"+d(R):"");var re=c[fi]&&c[fi][V];if(!re)return this;!it.touchNative&&it.pointer&&g.indexOf("touch")===0?Sm(c,g,re):it.touch&&g==="dblclick"?yo(c,re):"removeEventListener"in c?c.removeEventListener(_o[g]||g,re,!1):c.detachEvent("on"+g,re),c[fi][V]=null}function hi(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function Fi(c){return di(c,"wheel",hi),this}function xo(c){return ft(c,"mousedown touchstart dblclick contextmenu",hi),c._leaflet_disable_click=!0,this}function An(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function Ba(c){return An(c),hi(c),this}function Il(c){if(c.composedPath)return c.composedPath();for(var g=[],S=c.target;S;)g.push(S),S=S.parentNode;return g}function Ul(c,g){if(!g)return new k(c.clientX,c.clientY);var S=Dl(g),R=S.boundingClientRect;return new k((c.clientX-R.left)/S.x-g.clientLeft,(c.clientY-R.top)/S.y-g.clientTop)}var Am=it.linux&&it.chrome?window.devicePixelRatio:it.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function gr(c){return it.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/Am:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function ca(c,g){var S=g.relatedTarget;if(!S)return!0;try{for(;S&&S!==c;)S=S.parentNode}catch{return!1}return S!==c}var Ju={__proto__:null,on:ft,off:$t,stopPropagation:hi,disableScrollPropagation:Fi,disableClickPropagation:xo,preventDefault:An,stop:Ba,getPropagationPath:Il,getMousePosition:Ul,getWheelDelta:gr,isExternalTarget:ca,addListener:ft,removeListener:$t},bs=I.extend({run:function(c,g,S,R){this.stop(),this._el=c,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(R||.5,.2),this._startPos=za(c),this._offset=g.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=J(this._animate,this),this._step()},_step:function(c){var g=+new Date-this._startTime,S=this._duration*1e3;g<S?this._runFrame(this._easeOut(g/S),c):(this._runFrame(1),this._complete())},_runFrame:function(c,g){var S=this._startPos.add(this._offset.multiplyBy(c));g&&S._round(),Qt(this._el,S),this.fire("step")},_complete:function(){te(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),Ot=I.extend({options:{crs:ae,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(c,g){g=x(this,g),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),g.maxBounds&&this.setMaxBounds(g.maxBounds),g.zoom!==void 0&&(this._zoom=this._limitZoom(g.zoom)),g.center&&g.zoom!==void 0&&this.setView(fe(g.center),g.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Pl&&it.any3d&&!it.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ft(this._proxy,$f,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,g,S){if(g=g===void 0?this._zoom:this._limitZoom(g),c=this._limitCenter(fe(c),g,this.options.maxBounds),S=S||{},this._stop(),this._loaded&&!S.reset&&S!==!0){S.animate!==void 0&&(S.zoom=i({animate:S.animate},S.zoom),S.pan=i({animate:S.animate,duration:S.duration},S.pan));var R=this._zoom!==g?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,g,S.zoom):this._tryAnimatedPan(c,S.pan);if(R)return clearTimeout(this._sizeTimer),this}return this._resetView(c,g,S.pan&&S.pan.noMoveStart),this},setZoom:function(c,g){return this._loaded?this.setView(this.getCenter(),c,{zoom:g}):(this._zoom=c,this)},zoomIn:function(c,g){return c=c||(it.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,g)},zoomOut:function(c,g){return c=c||(it.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,g)},setZoomAround:function(c,g,S){var R=this.getZoomScale(g),V=this.getSize().divideBy(2),re=c instanceof k?c:this.latLngToContainerPoint(c),me=re.subtract(V).multiplyBy(1-1/R),Se=this.containerPointToLatLng(V.add(me));return this.setView(Se,g,{zoom:S})},_getBoundsCenterZoom:function(c,g){g=g||{},c=c.getBounds?c.getBounds():ne(c);var S=z(g.paddingTopLeft||g.padding||[0,0]),R=z(g.paddingBottomRight||g.padding||[0,0]),V=this.getBoundsZoom(c,!1,S.add(R));if(V=typeof g.maxZoom=="number"?Math.min(g.maxZoom,V):V,V===1/0)return{center:c.getCenter(),zoom:V};var re=R.subtract(S).divideBy(2),me=this.project(c.getSouthWest(),V),Se=this.project(c.getNorthEast(),V),Te=this.unproject(me.add(Se).divideBy(2).add(re),V);return{center:Te,zoom:V}},fitBounds:function(c,g){if(c=ne(c),!c.isValid())throw new Error("Bounds are not valid.");var S=this._getBoundsCenterZoom(c,g);return this.setView(S.center,S.zoom,g)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,g){return this.setView(c,this._zoom,{pan:g})},panBy:function(c,g){if(c=z(c).round(),g=g||{},!c.x&&!c.y)return this.fire("moveend");if(g.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new bs,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),g.noMoveStart||this.fire("movestart"),g.animate!==!1){ht(this._mapPane,"leaflet-pan-anim");var S=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,S,g.duration||.25,g.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,g,S){if(S=S||{},S.animate===!1||!it.any3d)return this.setView(c,g,S);this._stop();var R=this.project(this.getCenter()),V=this.project(c),re=this.getSize(),me=this._zoom;c=fe(c),g=g===void 0?me:g;var Se=Math.max(re.x,re.y),Te=Se*this.getZoomScale(me,g),Ue=V.distanceTo(R)||1,Xe=1.42,at=Xe*Xe;function bt(xn){var ma=xn?-1:1,Eo=xn?Te:Se,ud=Te*Te-Se*Se+ma*at*at*Ue*Ue,eu=2*Eo*at*Ue,tu=ud/eu,Ka=Math.sqrt(tu*tu+1)-tu,pa=Ka<1e-9?-18:Math.log(Ka);return pa}function Jn(xn){return(Math.exp(xn)-Math.exp(-xn))/2}function Tn(xn){return(Math.exp(xn)+Math.exp(-xn))/2}function Ir(xn){return Jn(xn)/Tn(xn)}var kt=bt(0);function It(xn){return Se*(Tn(kt)/Tn(kt+Xe*xn))}function St(xn){return Se*(Tn(kt)*Ir(kt+Xe*xn)-Jn(kt))/at}function Ya(xn){return 1-Math.pow(1-xn,1.5)}var Jr=Date.now(),hc=(bt(1)-kt)/Xe,Wa=S.duration?1e3*S.duration:1e3*hc*.8;function ld(){var xn=(Date.now()-Jr)/Wa,ma=Ya(xn)*hc;xn<=1?(this._flyToFrame=J(ld,this),this._move(this.unproject(R.add(V.subtract(R).multiplyBy(St(ma)/Ue)),me),this.getScaleZoom(Se/It(ma),me),{flyTo:!0})):this._move(c,g)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),ld.call(this),this},flyToBounds:function(c,g){var S=this._getBoundsCenterZoom(c,g);return this.flyTo(S.center,S.zoom,g)},setMaxBounds:function(c){return c=ne(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var g=this.options.minZoom;return this.options.minZoom=c,this._loaded&&g!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var g=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&g!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,g){this._enforcingBounds=!0;var S=this.getCenter(),R=this._limitCenter(S,this._zoom,ne(c));return S.equals(R)||this.panTo(R,g),this._enforcingBounds=!1,this},panInside:function(c,g){g=g||{};var S=z(g.paddingTopLeft||g.padding||[0,0]),R=z(g.paddingBottomRight||g.padding||[0,0]),V=this.project(this.getCenter()),re=this.project(c),me=this.getPixelBounds(),Se=G([me.min.add(S),me.max.subtract(R)]),Te=Se.getSize();if(!Se.contains(re)){this._enforcingBounds=!0;var Ue=re.subtract(Se.getCenter()),Xe=Se.extend(re).getSize().subtract(Te);V.x+=Ue.x<0?-Xe.x:Xe.x,V.y+=Ue.y<0?-Xe.y:Xe.y,this.panTo(this.unproject(V),g),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var g=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),R=g.divideBy(2).round(),V=S.divideBy(2).round(),re=R.subtract(V);return!re.x&&!re.y?this:(c.animate&&c.pan?this.panBy(re):(c.pan&&this._rawPanBy(re),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:g,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var g=s(this._handleGeolocationResponse,this),S=s(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(g,S,c):navigator.geolocation.getCurrentPosition(g,S,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var g=c.code,S=c.message||(g===1?"permission denied":g===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:g,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var g=c.coords.latitude,S=c.coords.longitude,R=new ue(g,S),V=R.toBounds(c.coords.accuracy*2),re=this._locateOptions;if(re.setView){var me=this.getBoundsZoom(V);this.setView(R,re.maxZoom?Math.min(me,re.maxZoom):me)}var Se={latlng:R,bounds:V,timestamp:c.timestamp};for(var Te in c.coords)typeof c.coords[Te]=="number"&&(Se[Te]=c.coords[Te]);this.fire("locationfound",Se)}},addHandler:function(c,g){if(!g)return this;var S=this[c]=new g(this);return this._handlers.push(S),this.options[c]&&S.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Yt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(te(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)Yt(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,g){var S="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),R=wt("div",S,g||this._mapPane);return c&&(this._panes[c]=R),R},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),g=this.unproject(c.getBottomLeft()),S=this.unproject(c.getTopRight());return new Y(g,S)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,g,S){c=ne(c),S=z(S||[0,0]);var R=this.getZoom()||0,V=this.getMinZoom(),re=this.getMaxZoom(),me=c.getNorthWest(),Se=c.getSouthEast(),Te=this.getSize().subtract(S),Ue=G(this.project(Se,R),this.project(me,R)).getSize(),Xe=it.any3d?this.options.zoomSnap:1,at=Te.x/Ue.x,bt=Te.y/Ue.y,Jn=g?Math.max(at,bt):Math.min(at,bt);return R=this.getScaleZoom(Jn,R),Xe&&(R=Math.round(R/(Xe/100))*(Xe/100),R=g?Math.ceil(R/Xe)*Xe:Math.floor(R/Xe)*Xe),Math.max(V,Math.min(re,R))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,g){var S=this._getTopLeftPoint(c,g);return new P(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,g){var S=this.options.crs;return g=g===void 0?this._zoom:g,S.scale(c)/S.scale(g)},getScaleZoom:function(c,g){var S=this.options.crs;g=g===void 0?this._zoom:g;var R=S.zoom(c*S.scale(g));return isNaN(R)?1/0:R},project:function(c,g){return g=g===void 0?this._zoom:g,this.options.crs.latLngToPoint(fe(c),g)},unproject:function(c,g){return g=g===void 0?this._zoom:g,this.options.crs.pointToLatLng(z(c),g)},layerPointToLatLng:function(c){var g=z(c).add(this.getPixelOrigin());return this.unproject(g)},latLngToLayerPoint:function(c){var g=this.project(fe(c))._round();return g._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(fe(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(ne(c))},distance:function(c,g){return this.options.crs.distance(fe(c),fe(g))},containerPointToLayerPoint:function(c){return z(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return z(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var g=this.containerPointToLayerPoint(z(c));return this.layerPointToLatLng(g)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(fe(c)))},mouseEventToContainerPoint:function(c){return Ul(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var g=this._container=Vf(c);if(g){if(g._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ft(g,"scroll",this._onScroll,this),this._containerId=d(g)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&it.any3d,ht(c,"leaflet-container"+(it.touch?" leaflet-touch":"")+(it.retina?" leaflet-retina":"")+(it.ielt9?" leaflet-oldie":"")+(it.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var g=Rl(c,"position");g!=="absolute"&&g!=="relative"&&g!=="fixed"&&g!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Qt(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ht(c.markerPane,"leaflet-zoom-hide"),ht(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,g,S){Qt(this._mapPane,new k(0,0));var R=!this._loaded;this._loaded=!0,g=this._limitZoom(g),this.fire("viewprereset");var V=this._zoom!==g;this._moveStart(V,S)._move(c,g)._moveEnd(V),this.fire("viewreset"),R&&this.fire("load")},_moveStart:function(c,g){return c&&this.fire("zoomstart"),g||this.fire("movestart"),this},_move:function(c,g,S,R){g===void 0&&(g=this._zoom);var V=this._zoom!==g;return this._zoom=g,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),R?S&&S.pinch&&this.fire("zoom",S):((V||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return te(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){Qt(this._mapPane,this._getMapPanePos().subtract(c))},_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(c){this._targets={},this._targets[d(this._container)]=this;var g=c?$t:ft;g(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&g(window,"resize",this._onResize,this),it.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){te(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,g){for(var S=[],R,V=g==="mouseout"||g==="mouseover",re=c.target||c.srcElement,me=!1;re;){if(R=this._targets[d(re)],R&&(g==="click"||g==="preclick")&&this._draggableMoved(R)){me=!0;break}if(R&&R.listens(g,!0)&&(V&&!ca(re,c)||(S.push(R),V))||re===this._container)break;re=re.parentNode}return!S.length&&!me&&!V&&this.listens(g,!0)&&(S=[this]),S},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var g=c.target||c.srcElement;if(!(!this._loaded||g._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(g))){var S=c.type;S==="mousedown"&&vs(g),this._fireDOMEvent(c,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,g,S){if(c.type==="click"){var R=i({},c);R.type="preclick",this._fireDOMEvent(R,R.type,S)}var V=this._findEventTargets(c,g);if(S){for(var re=[],me=0;me<S.length;me++)S[me].listens(g,!0)&&re.push(S[me]);V=re.concat(V)}if(V.length){g==="contextmenu"&&An(c);var Se=V[0],Te={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var Ue=Se.getLatLng&&(!Se._radius||Se._radius<=10);Te.containerPoint=Ue?this.latLngToContainerPoint(Se.getLatLng()):this.mouseEventToContainerPoint(c),Te.layerPoint=this.containerPointToLayerPoint(Te.containerPoint),Te.latlng=Ue?Se.getLatLng():this.layerPointToLatLng(Te.layerPoint)}for(me=0;me<V.length;me++)if(V[me].fire(g,Te,!0),Te.originalEvent._stopped||V[me].options.bubblingMouseEvents===!1&&N(this._mouseEvents,g)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,g=this._handlers.length;c<g;c++)this._handlers[c].disable()},whenReady:function(c,g){return this._loaded?c.call(g||this,{target:this}):this.on("load",c,g),this},_getMapPanePos:function(){return za(this._mapPane)||new k(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,g){var S=c&&g!==void 0?this._getNewPixelOrigin(c,g):this.getPixelOrigin();return S.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,g){var S=this.getSize()._divideBy(2);return this.project(c,g)._subtract(S)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,g,S){var R=this._getNewPixelOrigin(S,g);return this.project(c,g)._subtract(R)},_latLngBoundsToNewLayerBounds:function(c,g,S){var R=this._getNewPixelOrigin(S,g);return G([this.project(c.getSouthWest(),g)._subtract(R),this.project(c.getNorthWest(),g)._subtract(R),this.project(c.getSouthEast(),g)._subtract(R),this.project(c.getNorthEast(),g)._subtract(R)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,g,S){if(!S)return c;var R=this.project(c,g),V=this.getSize().divideBy(2),re=new P(R.subtract(V),R.add(V)),me=this._getBoundsOffset(re,S,g);return Math.abs(me.x)<=1&&Math.abs(me.y)<=1?c:this.unproject(R.add(me),g)},_limitOffset:function(c,g){if(!g)return c;var S=this.getPixelBounds(),R=new P(S.min.add(c),S.max.add(c));return c.add(this._getBoundsOffset(R,g))},_getBoundsOffset:function(c,g,S){var R=G(this.project(g.getNorthEast(),S),this.project(g.getSouthWest(),S)),V=R.min.subtract(c.min),re=R.max.subtract(c.max),me=this._rebound(V.x,-re.x),Se=this._rebound(V.y,-re.y);return new k(me,Se)},_rebound:function(c,g){return c+g>0?Math.round(c-g)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(g))},_limitZoom:function(c){var g=this.getMinZoom(),S=this.getMaxZoom(),R=it.any3d?this.options.zoomSnap:1;return R&&(c=Math.round(c/R)*R),Math.max(g,Math.min(S,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){dn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,g){var S=this._getCenterOffset(c)._trunc();return(g&&g.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,g),!0)},_createAnimProxy:function(){var c=this._proxy=wt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(g){var S=Ua,R=this._proxy.style[S];ua(this._proxy,this.project(g.center,g.zoom),this.getZoomScale(g.zoom,1)),R===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Yt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),g=this.getZoom();ua(this._proxy,this.project(c,g),this.getZoomScale(g,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,g,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(g-this._zoom)>this.options.zoomAnimationThreshold)return!1;var R=this.getZoomScale(g),V=this._getCenterOffset(c)._divideBy(1-1/R);return S.animate!==!0&&!this.getSize().contains(V)?!1:(J(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(c,g,!0)},this),!0)},_animateZoom:function(c,g,S,R){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=g,ht(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:g,noUpdate:R}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&dn(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 Kf(c,g){return new Ot(c,g)}var kr=X.extend({options:{position:"topright"},initialize:function(c){x(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var g=this._map;return g&&g.removeControl(this),this.options.position=c,g&&g.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var g=this._container=this.onAdd(c),S=this.getPosition(),R=c._controlCorners[S];return ht(g,"leaflet-control"),S.indexOf("bottom")!==-1?R.insertBefore(g,R.firstChild):R.appendChild(g),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Yt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),fa=function(c){return new kr(c)};Ot.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},g="leaflet-",S=this._controlContainer=wt("div",g+"control-container",this._container);function R(V,re){var me=g+V+" "+g+re;c[V+re]=wt("div",me,S)}R("top","left"),R("top","right"),R("bottom","left"),R("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)Yt(this._controlCorners[c]);Yt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var zl=kr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,g,S,R){return S<R?-1:R<S?1:0}},initialize:function(c,g,S){x(this,S),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var R in c)this._addLayer(c[R],R);for(R in g)this._addLayer(g[R],R,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var g=0;g<this._layers.length;g++)this._layers[g].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return kr.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,g){return this._addLayer(c,g),this._map?this._update():this},addOverlay:function(c,g){return this._addLayer(c,g,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var g=this._getLayer(d(c));return g&&this._layers.splice(this._layers.indexOf(g),1),this._map?this._update():this},expand:function(){ht(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(ht(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):dn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return dn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",g=this._container=wt("div",c),S=this.options.collapsed;g.setAttribute("aria-haspopup",!0),xo(g),Fi(g);var R=this._section=wt("section",c+"-list");S&&(this._map.on("click",this.collapse,this),ft(g,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var V=this._layersLink=wt("a",c+"-toggle",g);V.href="#",V.title="Layers",V.setAttribute("role","button"),ft(V,{keydown:function(re){re.keyCode===13&&this._expandSafely()},click:function(re){An(re),this._expandSafely()}},this),S||this.expand(),this._baseLayersList=wt("div",c+"-base",R),this._separator=wt("div",c+"-separator",R),this._overlaysList=wt("div",c+"-overlays",R),g.appendChild(R)},_getLayer:function(c){for(var g=0;g<this._layers.length;g++)if(this._layers[g]&&d(this._layers[g].layer)===c)return this._layers[g]},_addLayer:function(c,g,S){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:g,overlay:S}),this.options.sortLayers&&this._layers.sort(s(function(R,V){return this.options.sortFunction(R.layer,V.layer,R.name,V.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Wr(this._baseLayersList),Wr(this._overlaysList),this._layerControlInputs=[];var c,g,S,R,V=0;for(S=0;S<this._layers.length;S++)R=this._layers[S],this._addItem(R),g=g||R.overlay,c=c||!R.overlay,V+=R.overlay?0:1;return this.options.hideSingleBase&&(c=c&&V>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=g&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var g=this._getLayer(d(c.target)),S=g.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;S&&this._map.fire(S,g)},_createRadioElement:function(c,g){var S='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(g?' checked="checked"':"")+"/>",R=document.createElement("div");return R.innerHTML=S,R.firstChild},_addItem:function(c){var g=document.createElement("label"),S=this._map.hasLayer(c.layer),R;c.overlay?(R=document.createElement("input"),R.type="checkbox",R.className="leaflet-control-layers-selector",R.defaultChecked=S):R=this._createRadioElement("leaflet-base-layers_"+d(this),S),this._layerControlInputs.push(R),R.layerId=d(c.layer),ft(R,"click",this._onInputClick,this);var V=document.createElement("span");V.innerHTML=" "+c.name;var re=document.createElement("span");g.appendChild(re),re.appendChild(R),re.appendChild(V);var me=c.overlay?this._overlaysList:this._baseLayersList;return me.appendChild(g),this._checkDisabledLayers(),g},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,g,S,R=[],V=[];this._handlingClick=!0;for(var re=c.length-1;re>=0;re--)g=c[re],S=this._getLayer(g.layerId).layer,g.checked?R.push(S):g.checked||V.push(S);for(re=0;re<V.length;re++)this._map.hasLayer(V[re])&&this._map.removeLayer(V[re]);for(re=0;re<R.length;re++)this._map.hasLayer(R[re])||this._map.addLayer(R[re]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,g,S,R=this._map.getZoom(),V=c.length-1;V>=0;V--)g=c[V],S=this._getLayer(g.layerId).layer,g.disabled=S.options.minZoom!==void 0&&R<S.options.minZoom||S.options.maxZoom!==void 0&&R>S.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,ft(c,"click",An),this.expand();var g=this;setTimeout(function(){$t(c,"click",An),g._preventClick=!1})}}),Tm=function(c,g,S){return new zl(c,g,S)},Zf=kr.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(c){var g="leaflet-control-zoom",S=wt("div",g+" leaflet-bar"),R=this.options;return this._zoomInButton=this._createButton(R.zoomInText,R.zoomInTitle,g+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(R.zoomOutText,R.zoomOutTitle,g+"-out",S,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(c){c.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(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,g,S,R,V){var re=wt("a",S,R);return re.innerHTML=c,re.href="#",re.title=g,re.setAttribute("role","button"),re.setAttribute("aria-label",g),xo(re),ft(re,"click",Ba),ft(re,"click",V,this),ft(re,"click",this._refocusOnMap,this),re},_updateDisabled:function(){var c=this._map,g="leaflet-disabled";dn(this._zoomInButton,g),dn(this._zoomOutButton,g),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(ht(this._zoomOutButton,g),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(ht(this._zoomInButton,g),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ot.mergeOptions({zoomControl:!0}),Ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Zf,this.addControl(this.zoomControl))});var i0=function(c){return new Zf(c)},Om=kr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var g="leaflet-control-scale",S=wt("div",g),R=this.options;return this._addScales(R,g+"-line",S),c.on(R.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),S},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,g,S){c.metric&&(this._mScale=wt("div",g,S)),c.imperial&&(this._iScale=wt("div",g,S))},_update:function(){var c=this._map,g=c.getSize().y/2,S=c.distance(c.containerPointToLatLng([0,g]),c.containerPointToLatLng([this.options.maxWidth,g]));this._updateScales(S)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var g=this._getRoundNum(c),S=g<1e3?g+" m":g/1e3+" km";this._updateScale(this._mScale,S,g/c)},_updateImperial:function(c){var g=c*3.2808399,S,R,V;g>5280?(S=g/5280,R=this._getRoundNum(S),this._updateScale(this._iScale,R+" mi",R/S)):(V=this._getRoundNum(g),this._updateScale(this._iScale,V+" ft",V/g))},_updateScale:function(c,g,S){c.style.width=Math.round(this.options.maxWidth*S)+"px",c.innerHTML=g},_getRoundNum:function(c){var g=Math.pow(10,(Math.floor(c)+"").length-1),S=c/g;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,g*S}}),Xf=function(c){return new Om(c)},a0='<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>',Qf=kr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(it.inlineSvg?a0+" ":"")+"Leaflet</a>"},initialize:function(c){x(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=wt("div","leaflet-control-attribution"),xo(this._container);for(var g in c._layers)c._layers[g].getAttribution&&this.addAttribution(c._layers[g].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var g in this._attributions)this._attributions[g]&&c.push(g);var S=[];this.options.prefix&&S.push(this.options.prefix),c.length&&S.push(c.join(", ")),this._container.innerHTML=S.join(' <span aria-hidden="true">|</span> ')}}});Ot.mergeOptions({attributionControl:!0}),Ot.addInitHook(function(){this.options.attributionControl&&new Qf().addTo(this)});var o0=function(c){return new Qf(c)};kr.Layers=zl,kr.Zoom=Zf,kr.Scale=Om,kr.Attribution=Qf,fa.layers=Tm,fa.zoom=i0,fa.scale=Xf,fa.attribution=o0;var $i=X.extend({initialize:function(c){this._map=c},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}});$i.addTo=function(c,g){return c.addHandler(g,this),this};var s0={Events:Z},Jf=it.touch?"touchstart mousedown":"mousedown",Fa=I.extend({options:{clickTolerance:3},initialize:function(c,g,S,R){x(this,R),this._element=c,this._dragStartTarget=g||c,this._preventOutline=S},enable:function(){this._enabled||(ft(this._dragStartTarget,Jf,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Fa._dragging===this&&this.finishDrag(!0),$t(this._dragStartTarget,Jf,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!Hf(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){Fa._dragging===this&&this.finishDrag();return}if(!(Fa._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(Fa._dragging=this,this._preventOutline&&vs(this._element),Zu(),ps(),!this._moving)){this.fire("down");var g=c.touches?c.touches[0]:c,S=Qu(this._element);this._startPoint=new k(g.clientX,g.clientY),this._startPos=za(this._element),this._parentScale=Dl(S);var R=c.type==="mousedown";ft(document,R?"mousemove":"touchmove",this._onMove,this),ft(document,R?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var g=c.touches&&c.touches.length===1?c.touches[0]:c,S=new k(g.clientX,g.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)<this.options.clickTolerance||(S.x/=this._parentScale.x,S.y/=this._parentScale.y,An(c),this._moved||(this.fire("dragstart"),this._moved=!0,ht(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ht(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(S),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),Qt(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){dn(document.body,"leaflet-dragging"),this._lastTarget&&(dn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),$t(document,"mousemove touchmove",this._onMove,this),$t(document,"mouseup touchend touchcancel",this._onUp,this),Nl(),Bi();var g=this._moved&&this._moving;this._moving=!1,Fa._dragging=!1,g&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function jm(c,g,S){var R,V=[1,4,2,8],re,me,Se,Te,Ue,Xe,at,bt;for(re=0,Xe=c.length;re<Xe;re++)c[re]._code=wo(c[re],g);for(Se=0;Se<4;Se++){for(at=V[Se],R=[],re=0,Xe=c.length,me=Xe-1;re<Xe;me=re++)Te=c[re],Ue=c[me],Te._code&at?Ue._code&at||(bt=ec(Ue,Te,at,g,S),bt._code=wo(bt,g),R.push(bt)):(Ue._code&at&&(bt=ec(Ue,Te,at,g,S),bt._code=wo(bt,g),R.push(bt)),R.push(Te));c=R}return c}function Mm(c,g){var S,R,V,re,me,Se,Te,Ue,Xe;if(!c||c.length===0)throw new Error("latlngs not passed");Zr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var at=fe([0,0]),bt=ne(c),Jn=bt.getNorthWest().distanceTo(bt.getSouthWest())*bt.getNorthEast().distanceTo(bt.getNorthWest());Jn<1700&&(at=ed(c));var Tn=c.length,Ir=[];for(S=0;S<Tn;S++){var kt=fe(c[S]);Ir.push(g.project(fe([kt.lat-at.lat,kt.lng-at.lng])))}for(Se=Te=Ue=0,S=0,R=Tn-1;S<Tn;R=S++)V=Ir[S],re=Ir[R],me=V.y*re.x-re.y*V.x,Te+=(V.x+re.x)*me,Ue+=(V.y+re.y)*me,Se+=me*3;Se===0?Xe=Ir[0]:Xe=[Te/Se,Ue/Se];var It=g.unproject(z(Xe));return fe([It.lat+at.lat,It.lng+at.lng])}function ed(c){for(var g=0,S=0,R=0,V=0;V<c.length;V++){var re=fe(c[V]);g+=re.lat,S+=re.lng,R++}return fe([g/R,S/R])}var td={__proto__:null,clipPolygon:jm,polygonCenter:Mm,centroid:ed};function Pm(c,g){if(!g||!c.length)return c.slice();var S=g*g;return c=u0(c,S),c=Lm(c,S),c}function Rm(c,g,S){return Math.sqrt(Bl(c,g,S,!0))}function l0(c,g,S){return Bl(c,g,S)}function Lm(c,g){var S=c.length,R=typeof Uint8Array<"u"?Uint8Array:Array,V=new R(S);V[0]=V[S-1]=1,nd(c,V,g,0,S-1);var re,me=[];for(re=0;re<S;re++)V[re]&&me.push(c[re]);return me}function nd(c,g,S,R,V){var re=0,me,Se,Te;for(Se=R+1;Se<=V-1;Se++)Te=Bl(c[Se],c[R],c[V],!0),Te>re&&(me=Se,re=Te);re>S&&(g[me]=1,nd(c,g,S,R,me),nd(c,g,S,me,V))}function u0(c,g){for(var S=[c[0]],R=1,V=0,re=c.length;R<re;R++)c0(c[R],c[V])>g&&(S.push(c[R]),V=R);return V<re-1&&S.push(c[re-1]),S}var Nm;function Dm(c,g,S,R,V){var re=R?Nm:wo(c,S),me=wo(g,S),Se,Te,Ue;for(Nm=me;;){if(!(re|me))return[c,g];if(re&me)return!1;Se=re||me,Te=ec(c,g,Se,S,V),Ue=wo(Te,S),Se===re?(c=Te,re=Ue):(g=Te,me=Ue)}}function ec(c,g,S,R,V){var re=g.x-c.x,me=g.y-c.y,Se=R.min,Te=R.max,Ue,Xe;return S&8?(Ue=c.x+re*(Te.y-c.y)/me,Xe=Te.y):S&4?(Ue=c.x+re*(Se.y-c.y)/me,Xe=Se.y):S&2?(Ue=Te.x,Xe=c.y+me*(Te.x-c.x)/re):S&1&&(Ue=Se.x,Xe=c.y+me*(Se.x-c.x)/re),new k(Ue,Xe,V)}function wo(c,g){var S=0;return c.x<g.min.x?S|=1:c.x>g.max.x&&(S|=2),c.y<g.min.y?S|=4:c.y>g.max.y&&(S|=8),S}function c0(c,g){var S=g.x-c.x,R=g.y-c.y;return S*S+R*R}function Bl(c,g,S,R){var V=g.x,re=g.y,me=S.x-V,Se=S.y-re,Te=me*me+Se*Se,Ue;return Te>0&&(Ue=((c.x-V)*me+(c.y-re)*Se)/Te,Ue>1?(V=S.x,re=S.y):Ue>0&&(V+=me*Ue,re+=Se*Ue)),me=c.x-V,Se=c.y-re,R?me*me+Se*Se:new k(V,re)}function Zr(c){return!O(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function tc(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zr(c)}function _s(c,g){var S,R,V,re,me,Se,Te,Ue;if(!c||c.length===0)throw new Error("latlngs not passed");Zr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Xe=fe([0,0]),at=ne(c),bt=at.getNorthWest().distanceTo(at.getSouthWest())*at.getNorthEast().distanceTo(at.getNorthWest());bt<1700&&(Xe=ed(c));var Jn=c.length,Tn=[];for(S=0;S<Jn;S++){var Ir=fe(c[S]);Tn.push(g.project(fe([Ir.lat-Xe.lat,Ir.lng-Xe.lng])))}for(S=0,R=0;S<Jn-1;S++)R+=Tn[S].distanceTo(Tn[S+1])/2;if(R===0)Ue=Tn[0];else for(S=0,re=0;S<Jn-1;S++)if(me=Tn[S],Se=Tn[S+1],V=me.distanceTo(Se),re+=V,re>R){Te=(re-R)/V,Ue=[Se.x-Te*(Se.x-me.x),Se.y-Te*(Se.y-me.y)];break}var kt=g.unproject(z(Ue));return fe([kt.lat+Xe.lat,kt.lng+Xe.lng])}var f0={__proto__:null,simplify:Pm,pointToSegmentDistance:Rm,closestPointOnSegment:l0,clipSegment:Dm,_getEdgeIntersection:ec,_getBitCode:wo,_sqClosestPointOnSegment:Bl,isFlat:Zr,_flat:tc,polylineCenter:_s},nc={project:function(c){return new k(c.lng,c.lat)},unproject:function(c){return new ue(c.y,c.x)},bounds:new P([-180,-90],[180,90])},rc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new P([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var g=Math.PI/180,S=this.R,R=c.lat*g,V=this.R_MINOR/S,re=Math.sqrt(1-V*V),me=re*Math.sin(R),Se=Math.tan(Math.PI/4-R/2)/Math.pow((1-me)/(1+me),re/2);return R=-S*Math.log(Math.max(Se,1e-10)),new k(c.lng*g*S,R)},unproject:function(c){for(var g=180/Math.PI,S=this.R,R=this.R_MINOR/S,V=Math.sqrt(1-R*R),re=Math.exp(-c.y/S),me=Math.PI/2-2*Math.atan(re),Se=0,Te=.1,Ue;Se<15&&Math.abs(Te)>1e-7;Se++)Ue=V*Math.sin(me),Ue=Math.pow((1-Ue)/(1+Ue),V/2),Te=Math.PI/2-2*Math.atan(re*Ue)-me,me+=Te;return new ue(me*g,c.x*g/S)}},km={__proto__:null,LonLat:nc,Mercator:rc,SphericalMercator:W},Im=i({},D,{code:"EPSG:3395",projection:rc,transformation:function(){var c=.5/(Math.PI*rc.R);return H(c,.5,-c,.5)}()}),rd=i({},D,{code:"EPSG:4326",projection:nc,transformation:H(1/180,1,-1/180,.5)}),xs=i({},ge,{projection:nc,transformation:H(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,g){var S=g.lng-c.lng,R=g.lat-c.lat;return Math.sqrt(S*S+R*R)},infinite:!0});ge.Earth=D,ge.EPSG3395=Im,ge.EPSG3857=ae,ge.EPSG900913=ce,ge.EPSG4326=rd,ge.Simple=xs;var mi=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[d(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[d(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var g=c.target;if(g.hasLayer(this)){if(this._map=g,this._zoomAnimated=g._zoomAnimated,this.getEvents){var S=this.getEvents();g.on(S,this),this.once("remove",function(){g.off(S,this)},this)}this.onAdd(g),this.fire("add"),g.fire("layeradd",{layer:this})}}});Ot.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var g=d(c);return this._layers[g]?this:(this._layers[g]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var g=d(c);return this._layers[g]?(this._loaded&&c.onRemove(this),delete this._layers[g],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return d(c)in this._layers},eachLayer:function(c,g){for(var S in this._layers)c.call(g,this._layers[S]);return this},_addLayers:function(c){c=c?O(c)?c:[c]:[];for(var g=0,S=c.length;g<S;g++)this.addLayer(c[g])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[d(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var g=d(c);this._zoomBoundLayers[g]&&(delete this._zoomBoundLayers[g],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,g=-1/0,S=this._getZoomSpan();for(var R in this._zoomBoundLayers){var V=this._zoomBoundLayers[R].options;c=V.minZoom===void 0?c:Math.min(c,V.minZoom),g=V.maxZoom===void 0?g:Math.max(g,V.maxZoom)}this._layersMaxZoom=g===-1/0?void 0:g,this._layersMinZoom=c===1/0?void 0:c,S!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ws=mi.extend({initialize:function(c,g){x(this,g),this._layers={};var S,R;if(c)for(S=0,R=c.length;S<R;S++)this.addLayer(c[S])},addLayer:function(c){var g=this.getLayerId(c);return this._layers[g]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var g=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[g]&&this._map.removeLayer(this._layers[g]),delete this._layers[g],this},hasLayer:function(c){var g=typeof c=="number"?c:this.getLayerId(c);return g in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var g=Array.prototype.slice.call(arguments,1),S,R;for(S in this._layers)R=this._layers[S],R[c]&&R[c].apply(R,g);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,g){for(var S in this._layers)c.call(g,this._layers[S]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return d(c)}}),d0=function(c,g){return new ws(c,g)},Vi=ws.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),ws.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),ws.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new Y;for(var g in this._layers){var S=this._layers[g];c.extend(S.getBounds?S.getBounds():S.getLatLng())}return c}}),Um=function(c,g){return new Vi(c,g)},Hi=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){x(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,g){var S=this._getIconUrl(c);if(!S){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var R=this._createImg(S,g&&g.tagName==="IMG"?g:null);return this._setIconStyles(R,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(R.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),R},_setIconStyles:function(c,g){var S=this.options,R=S[g+"Size"];typeof R=="number"&&(R=[R,R]);var V=z(R),re=z(g==="shadow"&&S.shadowAnchor||S.iconAnchor||V&&V.divideBy(2,!0));c.className="leaflet-marker-"+g+" "+(S.className||""),re&&(c.style.marginLeft=-re.x+"px",c.style.marginTop=-re.y+"px"),V&&(c.style.width=V.x+"px",c.style.height=V.y+"px")},_createImg:function(c,g){return g=g||document.createElement("img"),g.src=c,g},_getIconUrl:function(c){return it.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function Fl(c){return new Hi(c)}var $l=Hi.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(c){return typeof $l.imagePath!="string"&&($l.imagePath=this._detectIconPath()),(this.options.imagePath||$l.imagePath)+Hi.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var g=function(S,R,V){var re=R.exec(S);return re&&re[V]};return c=g(c,/^url\((['"])?(.+)\1\)$/,2),c&&g(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=wt("div","leaflet-default-icon-path",document.body),g=Rl(c,"background-image")||Rl(c,"backgroundImage");if(document.body.removeChild(c),g=this._stripUrl(g),g)return g;var S=document.querySelector('link[href$="leaflet.css"]');return S?S.href.substring(0,S.href.length-11-1):""}}),Vl=$i.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new Fa(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ht(c,"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&&dn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var g=this._marker,S=g._map,R=this._marker.options.autoPanSpeed,V=this._marker.options.autoPanPadding,re=za(g._icon),me=S.getPixelBounds(),Se=S.getPixelOrigin(),Te=G(me.min._subtract(Se).add(V),me.max._subtract(Se).subtract(V));if(!Te.contains(re)){var Ue=z((Math.max(Te.max.x,re.x)-Te.max.x)/(me.max.x-Te.max.x)-(Math.min(Te.min.x,re.x)-Te.min.x)/(me.min.x-Te.min.x),(Math.max(Te.max.y,re.y)-Te.max.y)/(me.max.y-Te.max.y)-(Math.min(Te.min.y,re.y)-Te.min.y)/(me.min.y-Te.min.y)).multiplyBy(R);S.panBy(Ue,{animate:!1}),this._draggable._newPos._add(Ue),this._draggable._startPos._add(Ue),Qt(g._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=J(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(te(this._panRequest),this._panRequest=J(this._adjustPan.bind(this,c)))},_onDrag:function(c){var g=this._marker,S=g._shadow,R=za(g._icon),V=g._map.layerPointToLatLng(R);S&&Qt(S,R),g._latlng=V,c.latlng=V,c.oldLatLng=this._oldLatLng,g.fire("move",c).fire("drag",c)},_onDragEnd:function(c){te(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Hl=mi.extend({options:{icon:new $l,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(c,g){x(this,g),this._latlng=fe(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.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(c){var g=this._latlng;return this._latlng=fe(c),this.update(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,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 c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,g="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),S=c.icon.createIcon(this._icon),R=!1;S!==this._icon&&(this._icon&&this._removeIcon(),R=!0,c.title&&(S.title=c.title),S.tagName==="IMG"&&(S.alt=c.alt||"")),ht(S,g),c.keyboard&&(S.tabIndex="0",S.setAttribute("role","button")),this._icon=S,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ft(S,"focus",this._panOnFocus,this);var V=c.icon.createShadow(this._shadow),re=!1;V!==this._shadow&&(this._removeShadow(),re=!0),V&&(ht(V,g),V.alt=""),this._shadow=V,c.opacity<1&&this._updateOpacity(),R&&this.getPane().appendChild(this._icon),this._initInteraction(),V&&re&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$t(this._icon,"focus",this._panOnFocus,this),Yt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Yt(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&Qt(this._icon,c),this._shadow&&Qt(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(g)},_initInteraction:function(){if(this.options.interactive&&(ht(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Vl)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Vl(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&an(this._icon,c),this._shadow&&an(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var g=this.options.icon.options,S=g.iconSize?z(g.iconSize):z(0,0),R=g.iconAnchor?z(g.iconAnchor):z(0,0);c.panInside(this._latlng,{paddingTopLeft:R,paddingBottomRight:S.subtract(R)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function zm(c,g){return new Hl(c,g)}var qi=mi.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(c){this._renderer=c.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(c){return x(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"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)}}),Ss=qi.extend({options:{fill:!0,radius:10},initialize:function(c,g){x(this,g),this._latlng=fe(c),this._radius=this.options.radius},setLatLng:function(c){var g=this._latlng;return this._latlng=fe(c),this.redraw(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var g=c&&c.radius||this._radius;return qi.prototype.setStyle.call(this,c),this.setRadius(g),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,g=this._radiusY||c,S=this._clickTolerance(),R=[c+S,g+S];this._pxBounds=new P(this._point.subtract(R),this._point.add(R))},_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(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Bm(c,g){return new Ss(c,g)}var ic=Ss.extend({initialize:function(c,g,S){if(typeof g=="number"&&(g=i({},S,{radius:g})),x(this,g),this._latlng=fe(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new Y(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:qi.prototype.setStyle,_project:function(){var c=this._latlng.lng,g=this._latlng.lat,S=this._map,R=S.options.crs;if(R.distance===D.distance){var V=Math.PI/180,re=this._mRadius/D.R/V,me=S.project([g+re,c]),Se=S.project([g-re,c]),Te=me.add(Se).divideBy(2),Ue=S.unproject(Te).lat,Xe=Math.acos((Math.cos(re*V)-Math.sin(g*V)*Math.sin(Ue*V))/(Math.cos(g*V)*Math.cos(Ue*V)))/V;(isNaN(Xe)||Xe===0)&&(Xe=re/Math.cos(Math.PI/180*g)),this._point=Te.subtract(S.getPixelOrigin()),this._radius=isNaN(Xe)?0:Te.x-S.project([Ue,c-Xe]).x,this._radiusY=Te.y-me.y}else{var at=R.unproject(R.project(this._latlng).subtract([this._mRadius,0]));this._point=S.latLngToLayerPoint(this._latlng),this._radius=this._point.x-S.latLngToLayerPoint(at).x}this._updateBounds()}});function Fm(c,g,S){return new ic(c,g,S)}var da=qi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,g){x(this,g),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var g=1/0,S=null,R=Bl,V,re,me=0,Se=this._parts.length;me<Se;me++)for(var Te=this._parts[me],Ue=1,Xe=Te.length;Ue<Xe;Ue++){V=Te[Ue-1],re=Te[Ue];var at=R(c,V,re,!0);at<g&&(g=at,S=R(c,V,re))}return S&&(S.distance=Math.sqrt(g)),S},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _s(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,g){return g=g||this._defaultShape(),c=fe(c),g.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new Y,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return Zr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var g=[],S=Zr(c),R=0,V=c.length;R<V;R++)S?(g[R]=fe(c[R]),this._bounds.extend(g[R])):g[R]=this._convertLatLngs(c[R]);return g},_project:function(){var c=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),g=new k(c,c);this._rawPxBounds&&(this._pxBounds=new P([this._rawPxBounds.min.subtract(g),this._rawPxBounds.max.add(g)]))},_projectLatlngs:function(c,g,S){var R=c[0]instanceof ue,V=c.length,re,me;if(R){for(me=[],re=0;re<V;re++)me[re]=this._map.latLngToLayerPoint(c[re]),S.extend(me[re]);g.push(me)}else for(re=0;re<V;re++)this._projectLatlngs(c[re],g,S)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var g=this._parts,S,R,V,re,me,Se,Te;for(S=0,V=0,re=this._rings.length;S<re;S++)for(Te=this._rings[S],R=0,me=Te.length;R<me-1;R++)Se=Dm(Te[R],Te[R+1],c,R,!0),Se&&(g[V]=g[V]||[],g[V].push(Se[0]),(Se[1]!==Te[R+1]||R===me-2)&&(g[V].push(Se[1]),V++))}},_simplifyPoints:function(){for(var c=this._parts,g=this.options.smoothFactor,S=0,R=c.length;S<R;S++)c[S]=Pm(c[S],g)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,g){var S,R,V,re,me,Se,Te=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(S=0,re=this._parts.length;S<re;S++)for(Se=this._parts[S],R=0,me=Se.length,V=me-1;R<me;V=R++)if(!(!g&&R===0)&&Rm(c,Se[V],Se[R])<=Te)return!0;return!1}});function h0(c,g){return new da(c,g)}da._flat=tc;var Cs=da.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Mm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var g=da.prototype._convertLatLngs.call(this,c),S=g.length;return S>=2&&g[0]instanceof ue&&g[0].equals(g[S-1])&&g.pop(),g},_setLatLngs:function(c){da.prototype._setLatLngs.call(this,c),Zr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,g=this.options.weight,S=new k(g,g);if(c=new P(c.min.subtract(S),c.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var R=0,V=this._rings.length,re;R<V;R++)re=jm(this._rings[R],c,!0),re.length&&this._parts.push(re)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var g=!1,S,R,V,re,me,Se,Te,Ue;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(re=0,Te=this._parts.length;re<Te;re++)for(S=this._parts[re],me=0,Ue=S.length,Se=Ue-1;me<Ue;Se=me++)R=S[me],V=S[Se],R.y>c.y!=V.y>c.y&&c.x<(V.x-R.x)*(c.y-R.y)/(V.y-R.y)+R.x&&(g=!g);return g||da.prototype._containsPoint.call(this,c,!0)}});function m0(c,g){return new Cs(c,g)}var ha=Vi.extend({initialize:function(c,g){x(this,g),this._layers={},c&&this.addData(c)},addData:function(c){var g=O(c)?c:c.features,S,R,V;if(g){for(S=0,R=g.length;S<R;S++)V=g[S],(V.geometries||V.geometry||V.features||V.coordinates)&&this.addData(V);return this}var re=this.options;if(re.filter&&!re.filter(c))return this;var me=sr(c,re);return me?(me.feature=sc(c),me.defaultOptions=me.options,this.resetStyle(me),re.onEachFeature&&re.onEachFeature(c,me),this.addLayer(me)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=i({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(g){this._setLayerStyle(g,c)},this)},_setLayerStyle:function(c,g){c.setStyle&&(typeof g=="function"&&(g=g(c.feature)),c.setStyle(g))}});function sr(c,g){var S=c.type==="Feature"?c.geometry:c,R=S?S.coordinates:null,V=[],re=g&&g.pointToLayer,me=g&&g.coordsToLatLng||ac,Se,Te,Ue,Xe;if(!R&&!S)return null;switch(S.type){case"Point":return Se=me(R),Es(re,c,Se,g);case"MultiPoint":for(Ue=0,Xe=R.length;Ue<Xe;Ue++)Se=me(R[Ue]),V.push(Es(re,c,Se,g));return new Vi(V);case"LineString":case"MultiLineString":return Te=ql(R,S.type==="LineString"?0:1,me),new da(Te,g);case"Polygon":case"MultiPolygon":return Te=ql(R,S.type==="Polygon"?1:2,me),new Cs(Te,g);case"GeometryCollection":for(Ue=0,Xe=S.geometries.length;Ue<Xe;Ue++){var at=sr({geometry:S.geometries[Ue],type:"Feature",properties:c.properties},g);at&&V.push(at)}return new Vi(V);case"FeatureCollection":for(Ue=0,Xe=S.features.length;Ue<Xe;Ue++){var bt=sr(S.features[Ue],g);bt&&V.push(bt)}return new Vi(V);default:throw new Error("Invalid GeoJSON object.")}}function Es(c,g,S,R){return c?c(g,S):new Hl(S,R&&R.markersInheritOptions&&R)}function ac(c){return new ue(c[1],c[0],c[2])}function ql(c,g,S){for(var R=[],V=0,re=c.length,me;V<re;V++)me=g?ql(c[V],g-1,S):(S||ac)(c[V]),R.push(me);return R}function oc(c,g){return c=fe(c),c.alt!==void 0?[b(c.lng,g),b(c.lat,g),b(c.alt,g)]:[b(c.lng,g),b(c.lat,g)]}function Gl(c,g,S,R){for(var V=[],re=0,me=c.length;re<me;re++)V.push(g?Gl(c[re],Zr(c[re])?0:g-1,S,R):oc(c[re],R));return!g&&S&&V.length>0&&V.push(V[0].slice()),V}function $a(c,g){return c.feature?i({},c.feature,{geometry:g}):sc(g)}function sc(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var Va={toGeoJSON:function(c){return $a(this,{type:"Point",coordinates:oc(this.getLatLng(),c)})}};Hl.include(Va),ic.include(Va),Ss.include(Va),da.include({toGeoJSON:function(c){var g=!Zr(this._latlngs),S=Gl(this._latlngs,g?1:0,!1,c);return $a(this,{type:(g?"Multi":"")+"LineString",coordinates:S})}}),Cs.include({toGeoJSON:function(c){var g=!Zr(this._latlngs),S=g&&!Zr(this._latlngs[0]),R=Gl(this._latlngs,S?2:g?1:0,!0,c);return g||(R=[R]),$a(this,{type:(S?"Multi":"")+"Polygon",coordinates:R})}}),ws.include({toMultiPoint:function(c){var g=[];return this.eachLayer(function(S){g.push(S.toGeoJSON(c).geometry.coordinates)}),$a(this,{type:"MultiPoint",coordinates:g})},toGeoJSON:function(c){var g=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(g==="MultiPoint")return this.toMultiPoint(c);var S=g==="GeometryCollection",R=[];return this.eachLayer(function(V){if(V.toGeoJSON){var re=V.toGeoJSON(c);if(S)R.push(re.geometry);else{var me=sc(re);me.type==="FeatureCollection"?R.push.apply(R,me.features):R.push(me)}}}),S?$a(this,{geometries:R,type:"GeometryCollection"}):{type:"FeatureCollection",features:R}}});function lc(c,g){return new ha(c,g)}var Yl=lc,As=mi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,g,S){this._url=c,this._bounds=ne(g),x(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ht(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Yt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&Qn(this._image),this},bringToBack:function(){return this._map&&bo(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=ne(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",g=this._image=c?this._url:wt("img");if(ht(g,"leaflet-image-layer"),this._zoomAnimated&&ht(g,"leaflet-zoom-animated"),this.options.className&&ht(g,this.options.className),g.onselectstart=p,g.onmousemove=p,g.onload=s(this.fire,this,"load"),g.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=g.src;return}g.src=this._url,g.alt=this.options.alt},_animateZoom:function(c){var g=this._map.getZoomScale(c.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;ua(this._image,S,g)},_reset:function(){var c=this._image,g=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=g.getSize();Qt(c,g.min),c.style.width=S.x+"px",c.style.height=S.y+"px"},_updateOpacity:function(){an(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 c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),$m=function(c,g,S){return new As(c,g,S)},Ha=As.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",g=this._image=c?this._url:wt("video");if(ht(g,"leaflet-image-layer"),this._zoomAnimated&&ht(g,"leaflet-zoom-animated"),this.options.className&&ht(g,this.options.className),g.onselectstart=p,g.onmousemove=p,g.onloadeddata=s(this.fire,this,"load"),c){for(var S=g.getElementsByTagName("source"),R=[],V=0;V<S.length;V++)R.push(S[V].src);this._url=S.length>0?R:[g.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(g.style,"objectFit")&&(g.style.objectFit="fill"),g.autoplay=!!this.options.autoplay,g.loop=!!this.options.loop,g.muted=!!this.options.muted,g.playsInline=!!this.options.playsInline;for(var re=0;re<this._url.length;re++){var me=wt("source");me.src=this._url[re],g.appendChild(me)}}});function Ts(c,g,S){return new Ha(c,g,S)}var uc=As.extend({_initImage:function(){var c=this._image=this._url;ht(c,"leaflet-image-layer"),this._zoomAnimated&&ht(c,"leaflet-zoom-animated"),this.options.className&&ht(c,this.options.className),c.onselectstart=p,c.onmousemove=p}});function Vm(c,g,S){return new uc(c,g,S)}var lr=mi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,g){c&&(c instanceof ue||O(c))?(this._latlng=fe(c),x(this,g)):(x(this,c),this._source=g),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&an(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&an(this._container,1),this.bringToFront(),this.options.interactive&&(ht(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(an(this._container,0),this._removeTimeout=setTimeout(s(Yt,void 0,this._container),200)):Yt(this._container),this.options.interactive&&(dn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=fe(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,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 c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Qn(this._container),this},bringToBack:function(){return this._map&&bo(this._container),this},_prepareOpen:function(c){var g=this._source;if(!g._map)return!1;if(g instanceof Vi){g=null;var S=this._source._layers;for(var R in S)if(S[R]._map){g=S[R];break}if(!g)return!1;this._source=g}if(!c)if(g.getCenter)c=g.getCenter();else if(g.getLatLng)c=g.getLatLng();else if(g.getBounds)c=g.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,g=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof g=="string")c.innerHTML=g;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(g)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),g=z(this.options.offset),S=this._getAnchor();this._zoomAnimated?Qt(this._container,c.add(S)):g=g.add(c).add(S);var R=this._containerBottom=-g.y,V=this._containerLeft=-Math.round(this._containerWidth/2)+g.x;this._container.style.bottom=R+"px",this._container.style.left=V+"px"}},_getAnchor:function(){return[0,0]}});Ot.include({_initOverlay:function(c,g,S,R){var V=g;return V instanceof c||(V=new c(R).setContent(g)),S&&V.setLatLng(S),V}}),mi.include({_initOverlay:function(c,g,S,R){var V=S;return V instanceof c?(x(V,R),V._source=this):(V=g&&!R?g:new c(R,this),V.setContent(S)),V}});var Wl=lr.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(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,lr.prototype.openOn.call(this,c)},onAdd:function(c){lr.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof qi||this._source.on("preclick",hi))},onRemove:function(c){lr.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof qi||this._source.off("preclick",hi))},getEvents:function(){var c=lr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",g=this._container=wt("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),S=this._wrapper=wt("div",c+"-content-wrapper",g);if(this._contentNode=wt("div",c+"-content",S),xo(g),Fi(this._contentNode),ft(g,"contextmenu",hi),this._tipContainer=wt("div",c+"-tip-container",g),this._tip=wt("div",c+"-tip",this._tipContainer),this.options.closeButton){var R=this._closeButton=wt("a",c+"-close-button",g);R.setAttribute("role","button"),R.setAttribute("aria-label","Close popup"),R.href="#close",R.innerHTML='<span aria-hidden="true">&#215;</span>',ft(R,"click",function(V){An(V),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,g=c.style;g.width="",g.whiteSpace="nowrap";var S=c.offsetWidth;S=Math.min(S,this.options.maxWidth),S=Math.max(S,this.options.minWidth),g.width=S+1+"px",g.whiteSpace="",g.height="";var R=c.offsetHeight,V=this.options.maxHeight,re="leaflet-popup-scrolled";V&&R>V?(g.height=V+"px",ht(c,re)):dn(c,re),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),S=this._getAnchor();Qt(this._container,g.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,g=parseInt(Rl(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+g,R=this._containerWidth,V=new k(this._containerLeft,-S-this._containerBottom);V._add(za(this._container));var re=c.layerPointToContainerPoint(V),me=z(this.options.autoPanPadding),Se=z(this.options.autoPanPaddingTopLeft||me),Te=z(this.options.autoPanPaddingBottomRight||me),Ue=c.getSize(),Xe=0,at=0;re.x+R+Te.x>Ue.x&&(Xe=re.x+R-Ue.x+Te.x),re.x-Xe-Se.x<0&&(Xe=re.x-Se.x),re.y+S+Te.y>Ue.y&&(at=re.y+S-Ue.y+Te.y),re.y-at-Se.y<0&&(at=re.y-Se.y),(Xe||at)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Xe,at]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Hm=function(c,g){return new Wl(c,g)};Ot.mergeOptions({closePopupOnClick:!0}),Ot.include({openPopup:function(c,g,S){return this._initOverlay(Wl,c,g,S).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),mi.include({bindPopup:function(c,g){return this._popup=this._initOverlay(Wl,this._popup,c,g),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(c){return this._popup&&(this instanceof Vi||(this._popup._source=this),this._popup._prepareOpen(c||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(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){Ba(c);var g=c.layer||c.target;if(this._popup._source===g&&!(g instanceof qi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=g,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Kl=lr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){lr.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){lr.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=lr.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",g=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wt("div",g),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var g,S,R=this._map,V=this._container,re=R.latLngToContainerPoint(R.getCenter()),me=R.layerPointToContainerPoint(c),Se=this.options.direction,Te=V.offsetWidth,Ue=V.offsetHeight,Xe=z(this.options.offset),at=this._getAnchor();Se==="top"?(g=Te/2,S=Ue):Se==="bottom"?(g=Te/2,S=0):Se==="center"?(g=Te/2,S=Ue/2):Se==="right"?(g=0,S=Ue/2):Se==="left"?(g=Te,S=Ue/2):me.x<re.x?(Se="right",g=0,S=Ue/2):(Se="left",g=Te+(Xe.x+at.x)*2,S=Ue/2),c=c.subtract(z(g,S,!0)).add(Xe).add(at),dn(V,"leaflet-tooltip-right"),dn(V,"leaflet-tooltip-left"),dn(V,"leaflet-tooltip-top"),dn(V,"leaflet-tooltip-bottom"),ht(V,"leaflet-tooltip-"+Se),Qt(V,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&an(this._container,c)},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(g)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),p0=function(c,g){return new Kl(c,g)};Ot.include({openTooltip:function(c,g,S){return this._initOverlay(Kl,c,g,S).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),mi.include({bindTooltip:function(c,g){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Kl,this._tooltip,c,g),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(c){if(!(!c&&this._tooltipHandlersAdded)){var g=c?"off":"on",S={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?S.add=this._openTooltip:(S.mouseover=this._openTooltip,S.mouseout=this.closeTooltip,S.click=this._openTooltip,this._map?this._addFocusListeners():S.add=this._addFocusListeners),this._tooltip.options.sticky&&(S.mousemove=this._moveTooltip),this[g](S),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof Vi||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(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(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var g=typeof c.getElement=="function"&&c.getElement();g&&(ft(g,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),ft(g,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var g=typeof c.getElement=="function"&&c.getElement();g&&g.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var g=this;this._map.once("moveend",function(){g._openOnceFlag=!1,g._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var g=c.latlng,S,R;this._tooltip.options.sticky&&c.originalEvent&&(S=this._map.mouseEventToContainerPoint(c.originalEvent),R=this._map.containerPointToLayerPoint(S),g=this._map.layerPointToLatLng(R)),this._tooltip.setLatLng(g)}});var qm=Hi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var g=c&&c.tagName==="DIV"?c:document.createElement("div"),S=this.options;if(S.html instanceof Element?(Wr(g),g.appendChild(S.html)):g.innerHTML=S.html!==!1?S.html:"",S.bgPos){var R=z(S.bgPos);g.style.backgroundPosition=-R.x+"px "+-R.y+"px"}return this._setIconStyles(g,"icon"),g},createShadow:function(){return null}});function g0(c){return new qm(c)}Hi.Default=$l;var Os=mi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:it.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(c){x(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),Yt(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Qn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(bo(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof k?c:new k(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var g=this.getPane().children,S=-c(-1/0,1/0),R=0,V=g.length,re;R<V;R++)re=g[R].style.zIndex,g[R]!==this._container&&re&&(S=c(S,+re));isFinite(S)&&(this.options.zIndex=S+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!it.ielt9){an(this._container,this.options.opacity);var c=+new Date,g=!1,S=!1;for(var R in this._tiles){var V=this._tiles[R];if(!(!V.current||!V.loaded)){var re=Math.min(1,(c-V.loaded)/200);an(V.el,re),re<1?g=!0:(V.active?S=!0:this._onOpaqueTile(V),V.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),g&&(te(this._fadeFrame),this._fadeFrame=J(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 c=this._tileZoom,g=this.options.maxZoom;if(c!==void 0){for(var S in this._levels)S=Number(S),this._levels[S].el.children.length||S===c?(this._levels[S].el.style.zIndex=g-Math.abs(c-S),this._onUpdateLevel(S)):(Yt(this._levels[S].el),this._removeTilesAtZoom(S),this._onRemoveLevel(S),delete this._levels[S]);var R=this._levels[c],V=this._map;return R||(R=this._levels[c]={},R.el=wt("div","leaflet-tile-container leaflet-zoom-animated",this._container),R.el.style.zIndex=g,R.origin=V.project(V.unproject(V.getPixelOrigin()),c).round(),R.zoom=c,this._setZoomTransform(R,V.getCenter(),V.getZoom()),p(R.el.offsetWidth),this._onCreateLevel(R)),this._level=R,R}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var c,g,S=this._map.getZoom();if(S>this.options.maxZoom||S<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)g=this._tiles[c],g.retain=g.current;for(c in this._tiles)if(g=this._tiles[c],g.current&&!g.active){var R=g.coords;this._retainParent(R.x,R.y,R.z,R.z-5)||this._retainChildren(R.x,R.y,R.z,R.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var g in this._tiles)this._tiles[g].coords.z===c&&this._removeTile(g)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)Yt(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,g,S,R){var V=Math.floor(c/2),re=Math.floor(g/2),me=S-1,Se=new k(+V,+re);Se.z=+me;var Te=this._tileCoordsToKey(Se),Ue=this._tiles[Te];return Ue&&Ue.active?(Ue.retain=!0,!0):(Ue&&Ue.loaded&&(Ue.retain=!0),me>R?this._retainParent(V,re,me,R):!1)},_retainChildren:function(c,g,S,R){for(var V=2*c;V<2*c+2;V++)for(var re=2*g;re<2*g+2;re++){var me=new k(V,re);me.z=S+1;var Se=this._tileCoordsToKey(me),Te=this._tiles[Se];if(Te&&Te.active){Te.retain=!0;continue}else Te&&Te.loaded&&(Te.retain=!0);S+1<R&&this._retainChildren(V,re,S+1,R)}},_resetView:function(c){var g=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),g,g)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var g=this.options;return g.minNativeZoom!==void 0&&c<g.minNativeZoom?g.minNativeZoom:g.maxNativeZoom!==void 0&&g.maxNativeZoom<c?g.maxNativeZoom:c},_setView:function(c,g,S,R){var V=Math.round(g);this.options.maxZoom!==void 0&&V>this.options.maxZoom||this.options.minZoom!==void 0&&V<this.options.minZoom?V=void 0:V=this._clampZoom(V);var re=this.options.updateWhenZooming&&V!==this._tileZoom;(!R||re)&&(this._tileZoom=V,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),V!==void 0&&this._update(c),S||this._pruneTiles(),this._noPrune=!!S),this._setZoomTransforms(c,g)},_setZoomTransforms:function(c,g){for(var S in this._levels)this._setZoomTransform(this._levels[S],c,g)},_setZoomTransform:function(c,g,S){var R=this._map.getZoomScale(S,c.zoom),V=c.origin.multiplyBy(R).subtract(this._map._getNewPixelOrigin(g,S)).round();it.any3d?ua(c.el,V,R):Qt(c.el,V)},_resetGrid:function(){var c=this._map,g=c.options.crs,S=this._tileSize=this.getTileSize(),R=this._tileZoom,V=this._map.getPixelWorldBounds(this._tileZoom);V&&(this._globalTileRange=this._pxBoundsToTileRange(V)),this._wrapX=g.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,g.wrapLng[0]],R).x/S.x),Math.ceil(c.project([0,g.wrapLng[1]],R).x/S.y)],this._wrapY=g.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([g.wrapLat[0],0],R).y/S.x),Math.ceil(c.project([g.wrapLat[1],0],R).y/S.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var g=this._map,S=g._animatingZoom?Math.max(g._animateToZoom,g.getZoom()):g.getZoom(),R=g.getZoomScale(S,this._tileZoom),V=g.project(c,this._tileZoom).floor(),re=g.getSize().divideBy(R*2);return new P(V.subtract(re),V.add(re))},_update:function(c){var g=this._map;if(g){var S=this._clampZoom(g.getZoom());if(c===void 0&&(c=g.getCenter()),this._tileZoom!==void 0){var R=this._getTiledPixelBounds(c),V=this._pxBoundsToTileRange(R),re=V.getCenter(),me=[],Se=this.options.keepBuffer,Te=new P(V.getBottomLeft().subtract([Se,-Se]),V.getTopRight().add([Se,-Se]));if(!(isFinite(V.min.x)&&isFinite(V.min.y)&&isFinite(V.max.x)&&isFinite(V.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ue in this._tiles){var Xe=this._tiles[Ue].coords;(Xe.z!==this._tileZoom||!Te.contains(new k(Xe.x,Xe.y)))&&(this._tiles[Ue].current=!1)}if(Math.abs(S-this._tileZoom)>1){this._setView(c,S);return}for(var at=V.min.y;at<=V.max.y;at++)for(var bt=V.min.x;bt<=V.max.x;bt++){var Jn=new k(bt,at);if(Jn.z=this._tileZoom,!!this._isValidTile(Jn)){var Tn=this._tiles[this._tileCoordsToKey(Jn)];Tn?Tn.current=!0:me.push(Jn)}}if(me.sort(function(kt,It){return kt.distanceTo(re)-It.distanceTo(re)}),me.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ir=document.createDocumentFragment();for(bt=0;bt<me.length;bt++)this._addTile(me[bt],Ir);this._level.el.appendChild(Ir)}}}},_isValidTile:function(c){var g=this._map.options.crs;if(!g.infinite){var S=this._globalTileRange;if(!g.wrapLng&&(c.x<S.min.x||c.x>S.max.x)||!g.wrapLat&&(c.y<S.min.y||c.y>S.max.y))return!1}if(!this.options.bounds)return!0;var R=this._tileCoordsToBounds(c);return ne(this.options.bounds).overlaps(R)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var g=this._map,S=this.getTileSize(),R=c.scaleBy(S),V=R.add(S),re=g.unproject(R,c.z),me=g.unproject(V,c.z);return[re,me]},_tileCoordsToBounds:function(c){var g=this._tileCoordsToNwSe(c),S=new Y(g[0],g[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var g=c.split(":"),S=new k(+g[0],+g[1]);return S.z=+g[2],S},_removeTile:function(c){var g=this._tiles[c];g&&(Yt(g.el),delete this._tiles[c],this.fire("tileunload",{tile:g.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){ht(c,"leaflet-tile");var g=this.getTileSize();c.style.width=g.x+"px",c.style.height=g.y+"px",c.onselectstart=p,c.onmousemove=p,it.ielt9&&this.options.opacity<1&&an(c,this.options.opacity)},_addTile:function(c,g){var S=this._getTilePos(c),R=this._tileCoordsToKey(c),V=this.createTile(this._wrapCoords(c),s(this._tileReady,this,c));this._initTile(V),this.createTile.length<2&&J(s(this._tileReady,this,c,null,V)),Qt(V,S),this._tiles[R]={el:V,coords:c,current:!0},g.appendChild(V),this.fire("tileloadstart",{tile:V,coords:c})},_tileReady:function(c,g,S){g&&this.fire("tileerror",{error:g,tile:S,coords:c});var R=this._tileCoordsToKey(c);S=this._tiles[R],S&&(S.loaded=+new Date,this._map._fadeAnimated?(an(S.el,0),te(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),g||(ht(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),it.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var g=new k(this._wrapX?m(c.x,this._wrapX):c.x,this._wrapY?m(c.y,this._wrapY):c.y);return g.z=c.z,g},_pxBoundsToTileRange:function(c){var g=this.getTileSize();return new P(c.min.unscaleBy(g).floor(),c.max.unscaleBy(g).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function Gm(c){return new Os(c)}var qa=Os.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,g){this._url=c,g=x(this,g),g.detectRetina&&it.retina&&g.maxZoom>0?(g.tileSize=Math.floor(g.tileSize/2),g.zoomReverse?(g.zoomOffset--,g.minZoom=Math.min(g.maxZoom,g.minZoom+1)):(g.zoomOffset++,g.maxZoom=Math.max(g.minZoom,g.maxZoom-1)),g.minZoom=Math.max(0,g.minZoom)):g.zoomReverse?g.minZoom=Math.min(g.maxZoom,g.minZoom):g.maxZoom=Math.max(g.minZoom,g.maxZoom),typeof g.subdomains=="string"&&(g.subdomains=g.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,g){return this._url===c&&g===void 0&&(g=!0),this._url=c,g||this.redraw(),this},createTile:function(c,g){var S=document.createElement("img");return ft(S,"load",s(this._tileOnLoad,this,g,S)),ft(S,"error",s(this._tileOnError,this,g,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(c),S},getTileUrl:function(c){var g={r:it.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-c.y;this.options.tms&&(g.y=S),g["-y"]=S}return j(this._url,i(g,this.options))},_tileOnLoad:function(c,g){it.ielt9?setTimeout(s(c,this,null,g),0):c(null,g)},_tileOnError:function(c,g,S){var R=this.options.errorTileUrl;R&&g.getAttribute("src")!==R&&(g.src=R),c(S,g)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,g=this.options.maxZoom,S=this.options.zoomReverse,R=this.options.zoomOffset;return S&&(c=g-c),c+R},_getSubdomain:function(c){var g=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[g]},_abortLoading:function(){var c,g;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(g=this._tiles[c].el,g.onload=p,g.onerror=p,!g.complete)){g.src=F;var S=this._tiles[c].coords;Yt(g),delete this._tiles[c],this.fire("tileabort",{tile:g,coords:S})}},_removeTile:function(c){var g=this._tiles[c];if(g)return g.el.setAttribute("src",F),Os.prototype._removeTile.call(this,c)},_tileReady:function(c,g,S){if(!(!this._map||S&&S.getAttribute("src")===F))return Os.prototype._tileReady.call(this,c,g,S)}});function Xr(c,g){return new qa(c,g)}var Zl=qa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,g){this._url=c;var S=i({},this.defaultWmsParams);for(var R in g)R in this.options||(S[R]=g[R]);g=x(this,g);var V=g.detectRetina&&it.retina?2:1,re=this.getTileSize();S.width=re.x*V,S.height=re.y*V,this.wmsParams=S},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var g=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[g]=this._crs.code,qa.prototype.onAdd.call(this,c)},getTileUrl:function(c){var g=this._tileCoordsToNwSe(c),S=this._crs,R=G(S.project(g[0]),S.project(g[1])),V=R.min,re=R.max,me=(this._wmsVersion>=1.3&&this._crs===rd?[V.y,V.x,re.y,re.x]:[V.x,V.y,re.x,re.y]).join(","),Se=qa.prototype.getTileUrl.call(this,c);return Se+E(this.wmsParams,Se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+me},setParams:function(c,g){return i(this.wmsParams,c),g||this.redraw(),this}});function Qr(c,g){return new Zl(c,g)}qa.WMS=Zl,Xr.wms=Qr;var Tr=mi.extend({options:{padding:.1},initialize:function(c){x(this,c),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ht(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 c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,g){var S=this._map.getZoomScale(g,this._zoom),R=this._map.getSize().multiplyBy(.5+this.options.padding),V=this._map.project(this._center,g),re=R.multiplyBy(-S).add(V).subtract(this._map._getNewPixelOrigin(c,g));it.any3d?ua(this._container,re,S):Qt(this._container,re)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,g=this._map.getSize(),S=this._map.containerPointToLayerPoint(g.multiplyBy(-c)).round();this._bounds=new P(S,S.add(g.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cc=Tr.extend({options:{tolerance:0},getEvents:function(){var c=Tr.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Tr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");ft(c,"mousemove",this._onMouseMove,this),ft(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ft(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){te(this._redrawRequest),delete this._ctx,Yt(this._container),$t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var g in this._layers)c=this._layers[g],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Tr.prototype._update.call(this);var c=this._bounds,g=this._container,S=c.getSize(),R=it.retina?2:1;Qt(g,c.min),g.width=R*S.x,g.height=R*S.y,g.style.width=S.x+"px",g.style.height=S.y+"px",it.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){Tr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[d(c)]=c;var g=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=g),this._drawLast=g,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var g=c._order,S=g.next,R=g.prev;S?S.prev=R:this._drawLast=R,R?R.next=S:this._drawFirst=S,delete c._order,delete this._layers[d(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var g=c.options.dashArray.split(/[, ]+/),S=[],R,V;for(V=0;V<g.length;V++){if(R=Number(g[V]),isNaN(R))return;S.push(R)}c.options._dashArray=S}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||J(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var g=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(c._pxBounds.min.subtract([g,g])),this._redrawBounds.extend(c._pxBounds.max.add([g,g]))}},_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 c=this._redrawBounds;if(c){var g=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,g.x,g.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 c,g=this._redrawBounds;if(this._ctx.save(),g){var S=g.getSize();this._ctx.beginPath(),this._ctx.rect(g.min.x,g.min.y,S.x,S.y),this._ctx.clip()}this._drawing=!0;for(var R=this._drawFirst;R;R=R.next)c=R.layer,(!g||c._pxBounds&&c._pxBounds.intersects(g))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,g){if(this._drawing){var S,R,V,re,me=c._parts,Se=me.length,Te=this._ctx;if(Se){for(Te.beginPath(),S=0;S<Se;S++){for(R=0,V=me[S].length;R<V;R++)re=me[S][R],Te[R?"lineTo":"moveTo"](re.x,re.y);g&&Te.closePath()}this._fillStroke(Te,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var g=c._point,S=this._ctx,R=Math.max(Math.round(c._radius),1),V=(Math.max(Math.round(c._radiusY),1)||R)/R;V!==1&&(S.save(),S.scale(1,V)),S.beginPath(),S.arc(g.x,g.y/V,R,0,Math.PI*2,!1),V!==1&&S.restore(),this._fillStroke(S,c)}},_fillStroke:function(c,g){var S=g.options;S.fill&&(c.globalAlpha=S.fillOpacity,c.fillStyle=S.fillColor||S.color,c.fill(S.fillRule||"evenodd")),S.stroke&&S.weight!==0&&(c.setLineDash&&c.setLineDash(g.options&&g.options._dashArray||[]),c.globalAlpha=S.opacity,c.lineWidth=S.weight,c.strokeStyle=S.color,c.lineCap=S.lineCap,c.lineJoin=S.lineJoin,c.stroke())},_onClick:function(c){for(var g=this._map.mouseEventToLayerPoint(c),S,R,V=this._drawFirst;V;V=V.next)S=V.layer,S.options.interactive&&S._containsPoint(g)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(S))&&(R=S);this._fireEvent(R?[R]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var g=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,g)}},_handleMouseOut:function(c){var g=this._hoveredLayer;g&&(dn(this._container,"leaflet-interactive"),this._fireEvent([g],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,g){if(!this._mouseHoverThrottled){for(var S,R,V=this._drawFirst;V;V=V.next)S=V.layer,S.options.interactive&&S._containsPoint(g)&&(R=S);R!==this._hoveredLayer&&(this._handleMouseOut(c),R&&(ht(this._container,"leaflet-interactive"),this._fireEvent([R],c,"mouseover"),this._hoveredLayer=R)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,g,S){this._map._fireDOMEvent(g,S||g.type,c)},_bringToFront:function(c){var g=c._order;if(g){var S=g.next,R=g.prev;if(S)S.prev=R;else return;R?R.next=S:S&&(this._drawFirst=S),g.prev=this._drawLast,this._drawLast.next=g,g.next=null,this._drawLast=g,this._requestRedraw(c)}},_bringToBack:function(c){var g=c._order;if(g){var S=g.next,R=g.prev;if(R)R.next=S;else return;S?S.prev=R:R&&(this._drawLast=R),g.prev=null,g.next=this._drawFirst,this._drawFirst.prev=g,this._drawFirst=g,this._requestRedraw(c)}}});function Xl(c){return it.canvas?new cc(c):null}var Ga=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),id={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Tr.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var g=c._container=Ga("shape");ht(g,"leaflet-vml-shape "+(this.options.className||"")),g.coordsize="1 1",c._path=Ga("path"),g.appendChild(c._path),this._updateStyle(c),this._layers[d(c)]=c},_addPath:function(c){var g=c._container;this._container.appendChild(g),c.options.interactive&&c.addInteractiveTarget(g)},_removePath:function(c){var g=c._container;Yt(g),c.removeInteractiveTarget(g),delete this._layers[d(c)]},_updateStyle:function(c){var g=c._stroke,S=c._fill,R=c.options,V=c._container;V.stroked=!!R.stroke,V.filled=!!R.fill,R.stroke?(g||(g=c._stroke=Ga("stroke")),V.appendChild(g),g.weight=R.weight+"px",g.color=R.color,g.opacity=R.opacity,R.dashArray?g.dashStyle=O(R.dashArray)?R.dashArray.join(" "):R.dashArray.replace(/( *, *)/g," "):g.dashStyle="",g.endcap=R.lineCap.replace("butt","flat"),g.joinstyle=R.lineJoin):g&&(V.removeChild(g),c._stroke=null),R.fill?(S||(S=c._fill=Ga("fill")),V.appendChild(S),S.color=R.fillColor||R.color,S.opacity=R.fillOpacity):S&&(V.removeChild(S),c._fill=null)},_updateCircle:function(c){var g=c._point.round(),S=Math.round(c._radius),R=Math.round(c._radiusY||S);this._setPath(c,c._empty()?"M0 0":"AL "+g.x+","+g.y+" "+S+","+R+" 0,"+65535*360)},_setPath:function(c,g){c._path.v=g},_bringToFront:function(c){Qn(c._container)},_bringToBack:function(c){bo(c._container)}},Gi=it.vml?Ga:ve,js=Tr.extend({_initContainer:function(){this._container=Gi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Gi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Yt(this._container),$t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Tr.prototype._update.call(this);var c=this._bounds,g=c.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(g))&&(this._svgSize=g,S.setAttribute("width",g.x),S.setAttribute("height",g.y)),Qt(S,c.min),S.setAttribute("viewBox",[c.min.x,c.min.y,g.x,g.y].join(" ")),this.fire("update")}},_initPath:function(c){var g=c._path=Gi("path");c.options.className&&ht(g,c.options.className),c.options.interactive&&ht(g,"leaflet-interactive"),this._updateStyle(c),this._layers[d(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){Yt(c._path),c.removeInteractiveTarget(c._path),delete this._layers[d(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var g=c._path,S=c.options;g&&(S.stroke?(g.setAttribute("stroke",S.color),g.setAttribute("stroke-opacity",S.opacity),g.setAttribute("stroke-width",S.weight),g.setAttribute("stroke-linecap",S.lineCap),g.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?g.setAttribute("stroke-dasharray",S.dashArray):g.removeAttribute("stroke-dasharray"),S.dashOffset?g.setAttribute("stroke-dashoffset",S.dashOffset):g.removeAttribute("stroke-dashoffset")):g.setAttribute("stroke","none"),S.fill?(g.setAttribute("fill",S.fillColor||S.color),g.setAttribute("fill-opacity",S.fillOpacity),g.setAttribute("fill-rule",S.fillRule||"evenodd")):g.setAttribute("fill","none"))},_updatePoly:function(c,g){this._setPath(c,de(c._parts,g))},_updateCircle:function(c){var g=c._point,S=Math.max(Math.round(c._radius),1),R=Math.max(Math.round(c._radiusY),1)||S,V="a"+S+","+R+" 0 1,0 ",re=c._empty()?"M0 0":"M"+(g.x-S)+","+g.y+V+S*2+",0 "+V+-S*2+",0 ";this._setPath(c,re)},_setPath:function(c,g){c._path.setAttribute("d",g)},_bringToFront:function(c){Qn(c._path)},_bringToBack:function(c){bo(c._path)}});it.vml&&js.include(id);function Ql(c){return it.svg||it.vml?new js(c):null}Ot.include({getRenderer:function(c){var g=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return g||(g=this._renderer=this._createRenderer()),this.hasLayer(g)||this.addLayer(g),g},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var g=this._paneRenderers[c];return g===void 0&&(g=this._createRenderer({pane:c}),this._paneRenderers[c]=g),g},_createRenderer:function(c){return this.options.preferCanvas&&Xl(c)||Ql(c)}});var So=Cs.extend({initialize:function(c,g){Cs.prototype.initialize.call(this,this._boundsToLatLngs(c),g)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=ne(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function v0(c,g){return new So(c,g)}js.create=Gi,js.pointsToPath=de,ha.geometryToLayer=sr,ha.coordsToLatLng=ac,ha.coordsToLatLngs=ql,ha.latLngToCoords=oc,ha.latLngsToCoords=Gl,ha.getFeature=$a,ha.asFeature=sc,Ot.mergeOptions({boxZoom:!0});var Or=$i.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){ft(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){$t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Yt(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(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ps(),Zu(),this._startPoint=this._map.mouseEventToContainerPoint(c),ft(document,{contextmenu:Ba,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=wt("div","leaflet-zoom-box",this._container),ht(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var g=new P(this._point,this._startPoint),S=g.getSize();Qt(this._box,g.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(Yt(this._box),dn(this._container,"leaflet-crosshair")),Bi(),Nl(),$t(document,{contextmenu:Ba,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var g=new Y(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(g).fire("boxzoomend",{boxZoomBounds:g})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ot.addInitHook("addHandler","boxZoom",Or),Ot.mergeOptions({doubleClickZoom:!0});var fc=$i.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var g=this._map,S=g.getZoom(),R=g.options.zoomDelta,V=c.originalEvent.shiftKey?S-R:S+R;g.options.doubleClickZoom==="center"?g.setZoom(V):g.setZoomAround(c.containerPoint,V)}});Ot.addInitHook("addHandler","doubleClickZoom",fc),Ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Yi=$i.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new Fa(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}ht(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){dn(this._map._container,"leaflet-grab"),dn(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 c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var g=ne(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(g.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(g.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var g=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(g),this._prunePositions(g)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),g=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=g.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,g){return c-(c-g)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),g=this._offsetLimit;c.x<g.min.x&&(c.x=this._viscousLimit(c.x,g.min.x)),c.y<g.min.y&&(c.y=this._viscousLimit(c.y,g.min.y)),c.x>g.max.x&&(c.x=this._viscousLimit(c.x,g.max.x)),c.y>g.max.y&&(c.y=this._viscousLimit(c.y,g.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,g=Math.round(c/2),S=this._initialWorldOffset,R=this._draggable._newPos.x,V=(R-g+S)%c+g-S,re=(R+g+S)%c-g-S,me=Math.abs(V+S)<Math.abs(re+S)?V:re;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=me},_onDragEnd:function(c){var g=this._map,S=g.options,R=!S.inertia||c.noInertia||this._times.length<2;if(g.fire("dragend",c),R)g.fire("moveend");else{this._prunePositions(+new Date);var V=this._lastPos.subtract(this._positions[0]),re=(this._lastTime-this._times[0])/1e3,me=S.easeLinearity,Se=V.multiplyBy(me/re),Te=Se.distanceTo([0,0]),Ue=Math.min(S.inertiaMaxSpeed,Te),Xe=Se.multiplyBy(Ue/Te),at=Ue/(S.inertiaDeceleration*me),bt=Xe.multiplyBy(-at/2).round();!bt.x&&!bt.y?g.fire("moveend"):(bt=g._limitOffset(bt,g.options.maxBounds),J(function(){g.panBy(bt,{duration:at,easeLinearity:me,noMoveStart:!0,animate:!0})}))}}});Ot.addInitHook("addHandler","dragging",Yi),Ot.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ad=$i.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),ft(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),$t(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 c=document.body,g=document.documentElement,S=c.scrollTop||g.scrollTop,R=c.scrollLeft||g.scrollLeft;this._map._container.focus(),window.scrollTo(R,S)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var g=this._panKeys={},S=this.keyCodes,R,V;for(R=0,V=S.left.length;R<V;R++)g[S.left[R]]=[-1*c,0];for(R=0,V=S.right.length;R<V;R++)g[S.right[R]]=[c,0];for(R=0,V=S.down.length;R<V;R++)g[S.down[R]]=[0,c];for(R=0,V=S.up.length;R<V;R++)g[S.up[R]]=[0,-1*c]},_setZoomDelta:function(c){var g=this._zoomKeys={},S=this.keyCodes,R,V;for(R=0,V=S.zoomIn.length;R<V;R++)g[S.zoomIn[R]]=c;for(R=0,V=S.zoomOut.length;R<V;R++)g[S.zoomOut[R]]=-c},_addHooks:function(){ft(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){$t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var g=c.keyCode,S=this._map,R;if(g in this._panKeys){if(!S._panAnim||!S._panAnim._inProgress)if(R=this._panKeys[g],c.shiftKey&&(R=z(R).multiplyBy(3)),S.options.maxBounds&&(R=S._limitOffset(z(R),S.options.maxBounds)),S.options.worldCopyJump){var V=S.wrapLatLng(S.unproject(S.project(S.getCenter()).add(R)));S.panTo(V)}else S.panBy(R)}else if(g in this._zoomKeys)S.setZoom(S.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[g]);else if(g===27&&S._popup&&S._popup.options.closeOnEscapeKey)S.closePopup();else return;Ba(c)}}});Ot.addInitHook("addHandler","keyboard",ad),Ot.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Jl=$i.extend({addHooks:function(){ft(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){$t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var g=gr(c),S=this._map.options.wheelDebounceTime;this._delta+=g,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var R=Math.max(S-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),R),Ba(c)},_performZoom:function(){var c=this._map,g=c.getZoom(),S=this._map.options.zoomSnap||0;c._stop();var R=this._delta/(this._map.options.wheelPxPerZoomLevel*4),V=4*Math.log(2/(1+Math.exp(-Math.abs(R))))/Math.LN2,re=S?Math.ceil(V/S)*S:V,me=c._limitZoom(g+(this._delta>0?re:-re))-g;this._delta=0,this._startTime=null,me&&(c.options.scrollWheelZoom==="center"?c.setZoom(g+me):c.setZoomAround(this._lastMousePos,g+me))}});Ot.addInitHook("addHandler","scrollWheelZoom",Jl);var Co=600;Ot.mergeOptions({tapHold:it.touchNative&&it.safari&&it.mobile,tapTolerance:15});var dc=$i.extend({addHooks:function(){ft(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){$t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var g=c.touches[0];this._startPos=this._newPos=new k(g.clientX,g.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(ft(document,"touchend",An),ft(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",g))},this),Co),ft(document,"touchend touchcancel contextmenu",this._cancel,this),ft(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){$t(document,"touchend",An),$t(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),$t(document,"touchend touchcancel contextmenu",this._cancel,this),$t(document,"touchmove",this._onMove,this)},_onMove:function(c){var g=c.touches[0];this._newPos=new k(g.clientX,g.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,g){var S=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:g.screenX,screenY:g.screenY,clientX:g.clientX,clientY:g.clientY});S._simulated=!0,g.target.dispatchEvent(S)}});Ot.addInitHook("addHandler","tapHold",dc),Ot.mergeOptions({touchZoom:it.touch,bounceAtZoomLimits:!0});var od=$i.extend({addHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),ft(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){dn(this._map._container,"leaflet-touch-zoom"),$t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var g=this._map;if(!(!c.touches||c.touches.length!==2||g._animatingZoom||this._zooming)){var S=g.mouseEventToContainerPoint(c.touches[0]),R=g.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=g.getSize()._divideBy(2),this._startLatLng=g.containerPointToLatLng(this._centerPoint),g.options.touchZoom!=="center"&&(this._pinchStartLatLng=g.containerPointToLatLng(S.add(R)._divideBy(2))),this._startDist=S.distanceTo(R),this._startZoom=g.getZoom(),this._moved=!1,this._zooming=!0,g._stop(),ft(document,"touchmove",this._onTouchMove,this),ft(document,"touchend touchcancel",this._onTouchEnd,this),An(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var g=this._map,S=g.mouseEventToContainerPoint(c.touches[0]),R=g.mouseEventToContainerPoint(c.touches[1]),V=S.distanceTo(R)/this._startDist;if(this._zoom=g.getScaleZoom(V,this._startZoom),!g.options.bounceAtZoomLimits&&(this._zoom<g.getMinZoom()&&V<1||this._zoom>g.getMaxZoom()&&V>1)&&(this._zoom=g._limitZoom(this._zoom)),g.options.touchZoom==="center"){if(this._center=this._startLatLng,V===1)return}else{var re=S._add(R)._divideBy(2)._subtract(this._centerPoint);if(V===1&&re.x===0&&re.y===0)return;this._center=g.unproject(g.project(this._pinchStartLatLng,this._zoom).subtract(re),this._zoom)}this._moved||(g._moveStart(!0,!1),this._moved=!0),te(this._animRequest);var me=s(g._move,g,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(me,this,!0),An(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,te(this._animRequest),$t(document,"touchmove",this._onTouchMove,this),$t(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))}});Ot.addInitHook("addHandler","touchZoom",od),Ot.BoxZoom=Or,Ot.DoubleClickZoom=fc,Ot.Drag=Yi,Ot.Keyboard=ad,Ot.ScrollWheelZoom=Jl,Ot.TapHold=dc,Ot.TouchZoom=od,n.Bounds=P,n.Browser=it,n.CRS=ge,n.Canvas=cc,n.Circle=ic,n.CircleMarker=Ss,n.Class=X,n.Control=kr,n.DivIcon=qm,n.DivOverlay=lr,n.DomEvent=Ju,n.DomUtil=ys,n.Draggable=Fa,n.Evented=I,n.FeatureGroup=Vi,n.GeoJSON=ha,n.GridLayer=Os,n.Handler=$i,n.Icon=Hi,n.ImageOverlay=As,n.LatLng=ue,n.LatLngBounds=Y,n.Layer=mi,n.LayerGroup=ws,n.LineUtil=f0,n.Map=Ot,n.Marker=Hl,n.Mixin=s0,n.Path=qi,n.Point=k,n.PolyUtil=td,n.Polygon=Cs,n.Polyline=da,n.Popup=Wl,n.PosAnimation=bs,n.Projection=km,n.Rectangle=So,n.Renderer=Tr,n.SVG=js,n.SVGOverlay=uc,n.TileLayer=qa,n.Tooltip=Kl,n.Transformation=le,n.Util=he,n.VideoOverlay=Ha,n.bind=s,n.bounds=G,n.canvas=Xl,n.circle=Fm,n.circleMarker=Bm,n.control=fa,n.divIcon=g0,n.extend=i,n.featureGroup=Um,n.geoJSON=lc,n.geoJson=Yl,n.gridLayer=Gm,n.icon=Fl,n.imageOverlay=$m,n.latLng=fe,n.latLngBounds=ne,n.layerGroup=d0,n.map=Kf,n.marker=zm,n.point=z,n.polygon=m0,n.polyline=h0,n.popup=Hm,n.rectangle=v0,n.setOptions=x,n.stamp=d,n.svg=Ql,n.svgOverlay=Vm,n.tileLayer=Xr,n.tooltip=p0,n.transformation=H,n.version=r,n.videoOverlay=Ts;var sd=window.L;n.noConflict=function(){return window.L=sd,this},window.L=n})}(lh,lh.exports)),lh.exports}var pm=vge();const _P=oa(pm);function HC(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function qC(e,t){return t==null?function(r,i){const o=C.useRef(void 0);return o.current||(o.current=e(r,i)),o}:function(r,i){const o=C.useRef(void 0);o.current||(o.current=e(r,i));const s=C.useRef(r),{instance:u}=o.current;return C.useEffect(function(){s.current!==r&&(t(u,r,s.current),s.current=r)},[u,r,t]),o}}function yge(e,t){C.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function tI(e){return function(n){const r=J7(),i=e(VC(n,r),r);return Q7(r.map,n.attribution),eI(i.current,n.eventHandlers),yge(i.current,r),i}}function bge(e,t){const n=qC(e,t),r=tI(n);return dge(r)}function _ge(e,t){const n=qC(e),r=pge(n,t);return hge(r)}function xge(e,t){const n=qC(e,t),r=tI(n);return mge(r)}function wge(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function Sge({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:u,whenReady:d,zoom:f,...m},p){const[b]=C.useState({className:i,id:o,style:u}),[_,w]=C.useState(null),x=C.useRef(void 0);C.useImperativeHandle(p,()=>_?.map??null,[_]);const E=C.useCallback(j=>{if(j!==null&&!x.current){const O=new pm.Map(j,m);x.current=O,n!=null&&f!=null?O.setView(n,f):e!=null&&O.fitBounds(e,t),d!=null&&O.whenReady(d),w(cge(O))}},[]);C.useEffect(()=>()=>{_?.map.remove()},[_]);const T=_?Qc.createElement($C,{value:_},r):s??null;return Qc.createElement("div",{...b,ref:E},T)}const Cge=C.forwardRef(Sge),Ege=bge(function({position:t,...n},r){const i=new pm.Marker(t,n);return HC(i,fge(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),Age=_ge(function(t,n){const r=new pm.Popup(t,n.overlayContainer);return HC(r,n)},function(t,n,{position:r},i){C.useEffect(function(){const{instance:s}=t;function u(f){f.popup===s&&(s.update(),i(!0))}function d(f){f.popup===s&&i(!1)}return n.map.on({popupopen:u,popupclose:d}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){n.map.off({popupopen:u,popupclose:d}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),Tge=xge(function({url:t,...n},r){const i=new pm.TileLayer(t,VC(n,r));return HC(i,r)},function(t,n,r){wge(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),Oge={"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","Pale Moon":"pale_moon",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"},nI={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",pale_moon:"Pale Moon",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"},wn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv",bot:"bot"},zr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Zs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Be{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=Be.getVersionPrecision(t),o=Be.getVersionPrecision(n);let s=Math.max(i,o),u=0;const d=Be.map([t,n],f=>{const m=s-Be.getVersionPrecision(f),p=f+new Array(m+1).join(".0");return Be.map(p.split("."),b=>new Array(20-b.length).join("0")+b).reverse()});for(r&&(u=s-Math.min(i,o)),s-=1;s>=u;){if(d[0][s]>d[1][s])return 1;if(d[0][s]===d[1][s]){if(s===u)return 0;s-=1}else if(d[0][s]<d[1][s])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(d=>{r[d]=s[d]})}return t}static getBrowserAlias(t){return Oge[t]}static getBrowserTypeByAlias(t){return nI[t]||""}}const Xt=/version\/(\d+(\.?_?\d+)+)/i,jge=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Be.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/PaleMoon/i],describe(e){const t={name:"Pale Moon"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Be.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Be.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Be.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Be.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Be.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Be.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Be.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Be.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Be.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Be.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Be.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Be.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Be.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Be.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Be.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Be.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Be.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Be.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Be.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Be.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Be.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Be.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Be.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Be.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Be.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Be.getFirstMatch(i,e),version:Be.getSecondMatch(i,e)}}}],Mge=[{test:[/Roku\/DVP/],describe(e){const t=Be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:zr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:zr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Be.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Be.getWindowsVersionName(t);return{name:zr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:zr.iOS},n=Be.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Be.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Be.getMacOSVersionName(t),r={name:zr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Be.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:zr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Be.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Be.getAndroidVersionName(t),r={name:zr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Be.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:zr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Be.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Be.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Be.getFirstMatch(/\bbb(\d+)/i,e);return{name:zr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:zr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:zr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:zr.Linux}}},{test:[/CrOS/],describe(){return{name:zr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:zr.PlayStation4,version:t}}}],Pge=[{test:[/googlebot/i],describe(){return{type:wn.bot,vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Be.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:wn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:wn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:wn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:wn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:wn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:wn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:wn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Be.getFirstMatch(/(ipod|iphone)/i,e);return{type:wn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:wn.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(e){const t=Be.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),n={type:wn.mobile,vendor:"Nokia"};return t&&(n.model=t),n}},{test:[/[^-]mobi/i],describe(){return{type:wn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:wn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:wn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:wn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:wn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:wn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:wn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:wn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:wn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:wn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:wn.tv}}}],Rge=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Zs.Blink};const n=Be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Zs.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Zs.Trident},n=Be.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Zs.Presto},n=Be.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Zs.Gecko},n=Be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Zs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Zs.WebKit},n=Be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class xP{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Be.find(jge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Be.find(Mge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Be.find(Pge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Be.find(Rge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Be.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(u=>{const d=t[u];typeof d=="string"?(i[u]=d,o+=1):typeof d=="object"&&(n[u]=d,r+=1)}),r>0){const u=Object.keys(n),d=Be.find(u,m=>this.isOS(m));if(d){const m=this.satisfies(n[d]);if(m!==void 0)return m}const f=Be.find(u,m=>this.isPlatform(m));if(f){const m=this.satisfies(n[f]);if(m!==void 0)return m}}if(o>0){const u=Object.keys(i),d=Be.find(u,f=>this.isBrowser(f,!0));if(d!==void 0)return this.compareVersion(i[d])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Be.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(Be.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class Lge{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new xP(t,n)}static parse(t){return new xP(t).getResult()}static get BROWSER_MAP(){return nI}static get ENGINE_MAP(){return Zs}static get OS_MAP(){return zr}static get PLATFORMS_MAP(){return wn}}const Nge=e=>e?.type===zw.INVALID_ARGUMENT,Dge=e=>e?.type===zw.INVALID_SHORT_URL_DELETION,kge=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Ii=e=>kge(e)?e:void 0,GC=e=>"error"in e,oo=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[e?.detail??t,Nge(e)&&y.jsxs("p",{children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),rI=C.createContext(""),Ige=rI.Provider,fs=()=>C.useContext(rI),iI=C.createContext(void 0),{Provider:YC}=iI,Wy=()=>C.useContext(iI),Uge=5,WC=()=>{const[e,t]=C.useState([]),n=C.useMemo(()=>e.length>=Uge,[e.length]),r=C.useCallback(u=>!n&&t(d=>[...d,u]),[n]),i=C.useCallback(u=>!n&&e.every(d=>d.name!==u),[e,n]),o=C.useCallback(u=>t(d=>d.filter(f=>f!==u)),[]),s=C.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:s,canAddItemWithName:i}},KC=({className:e,type:t})=>{const n=fs(),r=Wy(),i=C.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(d=>d.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:s,removeItemToCompare:u}=r;return y.jsx("div",{className:Pe("sticky top-(--header-height) z-10",e),children:y.jsxs(Pt,{bodyClassName:"flex flex-col lg:flex-row gap-4 items-center",children:[y.jsx("ul",{className:"flex flex-wrap gap-1 grow items-center",children:o.map((d,f)=>y.jsxs("li",{className:Pe("flex items-center gap-1 text-sm font-bold text-white py-0.5 px-1.5 rounded",{"bg-gray-500":!d.style?.backgroundColor}),style:d.style,children:[d.name,y.jsx(Ru,{label:`Remove ${d.name}`,className:"text-xs",onClick:()=>u(d)})]},`${d.name}_${f}`))}),y.jsxs("div",{className:"flex gap-2 max-lg:w-full",children:[y.jsxs(Rt,{className:"grow whitespace-nowrap",disabled:o.length<2,to:o.length>1?`${n}/${t}/compare-visits?${t}=${i}`:void 0,children:[y.jsx(Ye,{icon:Kv}),"Compare (",o.length,"/5)",y.jsx(Ye,{icon:Ug})]}),y.jsx(Rt,{"aria-label":"Close compare",variant:"secondary",onClick:s,children:y.jsx(Ye,{icon:sw})})]})]})})},zge=(e,{maxVersion:t,minVersion:n})=>{const r=!n||qx(e,n,">=");return(!t||qx(e,t,"<="))&&r},aI={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},urlValidation:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"},advancedQueryRedirectConditions:{minVersion:"4.5.0"},desktopDeviceTypes:{minVersion:"4.5.0"}};Object.freeze(aI);const Qa=(e,t)=>zge(t==="latest"?"999.99.99":t,aI[e]),oI=e=>({deviceLongUrls:Qa("deviceLongUrls",e),shortUrlVisitsDeletion:Qa("shortUrlVisitsDeletion",e),orphanVisitsDeletion:Qa("orphanVisitsDeletion",e),shortUrlRedirectRules:Qa("shortUrlRedirectRules",e),urlValidation:Qa("urlValidation",e),ipRedirectCondition:Qa("ipRedirectCondition",e),geolocationRedirectCondition:Qa("geolocationRedirectCondition",e),filterShortUrlsByDomain:Qa("filterShortUrlsByDomain",e),advancedQueryRedirectConditions:Qa("advancedQueryRedirectConditions",e),desktopDeviceTypes:Qa("advancedQueryRedirectConditions",e)}),sI=C.createContext(oI("0.0.0")),Bge=sI.Provider,Fge=e=>C.useMemo(()=>oI(e),[e]),ra=e=>C.useContext(sI)[e],df="DEFAULT",ex=({children:e,onChange:t,infoTitle:n,...r})=>y.jsx(ui,{...r,onChange:i=>t(i.target.value),label:y.jsxs(y.Fragment,{children:[y.jsx(Ye,{className:"mr-1.5",icon:Xv,title:n}),e]}),type:"url",placeholder:"No redirect"}),$ge=({isOpen:e,onClose:t,domain:n,editDomainRedirects:r})=>{const[i,o]=C.useState(n.redirects?.baseUrlRedirect??""),[s,u]=C.useState(n.redirects?.regular404Redirect??""),[d,f]=C.useState(n.redirects?.invalidShortUrlRedirect??""),[m,p]=C.useState(!1),b=C.useCallback(async()=>{p(!0);try{await r({domain:n.domain,redirects:{baseUrlRedirect:wb(i),regular404Redirect:wb(s),invalidShortUrlRedirect:wb(d)}}),t()}finally{p(!1)}},[r,n.domain,i,s,d,t]);return y.jsx(uo,{title:`Edit redirects for ${n.domain}`,open:e,onClose:t,onConfirm:b,confirmText:m?"Saving...":"Save",confirmDisabled:m,children:y.jsxs("div",{className:"flex flex-col gap-y-3",children:[y.jsx(ex,{value:i,onChange:o,infoTitle:`Visitors accessing the base url, as in https://${n.domain}/, will be redirected to this URL.`,children:"Base URL"}),y.jsx(ex,{value:s,onChange:u,infoTitle:`Visitors accessing a url not matching a short URL pattern, as in https://${n.domain}/???/[...], will be redirected to this URL.`,children:"Regular 404"}),y.jsx(ex,{value:d,onChange:f,infoTitle:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL.",children:"Invalid short URL"})]})})},Vge=({domain:e,editDomainRedirects:t})=>{const{flag:n,setToTrue:r,setToFalse:i}=Sn(),o=fs(),s=Wy(),u=ra("filterShortUrlsByDomain");return y.jsxs(y.Fragment,{children:[y.jsxs(nn,{menuAlignment:"right",children:[y.jsxs(nn.Item,{className:"gap-1.5",to:`${o}/domain/${e.domain}${e.isDefault?`_${df}`:""}/visits`,children:[y.jsx(Ye,{icon:uw})," Visit stats"]}),y.jsxs(nn.Item,{className:"gap-1.5",disabled:!s||!s.canAddItemWithName(e.domain),onClick:()=>s?.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Ye,{icon:Kv})," Compare visits"]}),u&&y.jsxs(nn.Item,{className:"gap-1.5",to:`${o}/list-short-urls/1?domain=${e.isDefault?df:e.domain}`,children:[y.jsx(Ye,{icon:lw})," Short URLs"]}),y.jsx(nn.Separator,{}),y.jsxs(nn.Item,{onClick:r,className:"gap-1.5",children:[y.jsx(Ye,{icon:ow})," Edit redirects"]})]}),y.jsx($ge,{domain:e,isOpen:n,onClose:i,editDomainRedirects:t})]})},Hge=({status:e})=>{const{anchor:t,tooltip:n}=co();return e==="validating"?y.jsx(Ye,{icon:aw,spin:!0}):y.jsxs("span",{...t,children:[y.jsx(Ye,{icon:e==="valid"?ju:uV,className:Pe({"text-danger":e!=="valid"})}),y.jsx(fo,{...n,children:e==="valid"?y.jsxs(y.Fragment,{children:["Congratulations!",y.jsx("br",{}),"This domain is properly configured."]}):y.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",y.jsx("br",{}),"Check the ",y.jsx(ji,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},tx=({fallback:e})=>y.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:[!e&&y.jsx("small",{children:"No redirect"}),e&&y.jsxs(y.Fragment,{children:[e," ",y.jsx("small",{children:"(as fallback)"})]})]}),qge=()=>{const{anchor:e,tooltip:t}=co();return y.jsxs(y.Fragment,{children:[y.jsx(Ye,{...e,icon:RV,className:"text-lm-brand dark:text-dm-brand","data-testid":"default-domain-icon"}),y.jsx(fo,{...t,children:"Default domain foo"})]})},Gge=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:s,status:u}=e;return C.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs(Ke.Row,{className:"relative",children:[y.jsx(Ke.Cell,{columnName:"Is default domain:",children:o&&y.jsx(qge,{})}),y.jsx(Ke.Cell,{columnName:"Domain:",children:y.jsx("b",{children:i})}),y.jsx(Ke.Cell,{columnName:"Base path redirect:",children:s?.baseUrlRedirect??y.jsx(tx,{fallback:r?.baseUrlRedirect})}),y.jsx(Ke.Cell,{columnName:"Regular 404 redirect:",children:s?.regular404Redirect??y.jsx(tx,{fallback:r?.regular404Redirect})}),y.jsx(Ke.Cell,{columnName:"Invalid short URL redirect:",children:s?.invalidShortUrlRedirect??y.jsx(tx,{fallback:r?.invalidShortUrlRedirect})}),y.jsx(Ke.Cell,{className:"lg:text-center max-lg:border-none",columnName:"Status:",children:y.jsx(Hge,{status:u})}),y.jsx(Ke.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:y.jsx(Vge,{domain:e,editDomainRedirects:t})})]})},wP=[{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}],Yge=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{const{filteredDomains:i,defaultRedirects:o,loading:s,error:u,errorData:d}=e,f=o??i.find(({isDefault:p})=>p)?.redirects,m=WC();return s?y.jsx(Zo,{loading:!0}):y.jsx(YC,{value:m,children:y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsx(wf,{onChange:t}),y.jsx(KC,{type:"domains"}),u&&y.jsx($r,{variant:"error",children:y.jsx(oo,{errorData:d,fallbackMessage:"Error loading domains :("})}),!u&&y.jsx(Pt,{className:"card",children:y.jsxs(Ke,{header:y.jsx(Ke.Row,{children:wP.map((p,b)=>y.jsx(Ke.Cell,{children:y.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},b))}),children:[i.length<1&&y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:wP.length,className:"text-center",children:"No results found"})}),i.map(p=>y.jsx(Gge,{domain:p,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:f},p.domain))]})})]})})},nr=(e,t)=>QL(e,t,{serializeError:n=>n}),Wge="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",Kge=e=>nr(Wge,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),fg="shlink/domainsList",dg={domains:[],filteredDomains:[],loading:!1,error:!1},SP=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},CP=(e,t)=>n=>n.domain!==e?n:{...n,status:t},Zge=(e,t,n)=>{const r=nr(`${fg}/listDomains`,async()=>{const{data:u,defaultRedirects:d}=await e().listDomains();return{domains:u.map(f=>({...f,status:"validating"})),defaultRedirects:d}}),i=nr(`${fg}/checkDomainHealth`,async u=>{try{const{status:d}=await e().health({domain:u});return{domain:u,status:d==="pass"?"valid":"invalid"}}catch{return{domain:u,status:"invalid"}}}),o=cn(`${fg}/filterDomains`),{reducer:s}=Lt({name:fg,initialState:dg,reducers:{},extraReducers:u=>{u.addCase(r.pending,()=>({...dg,loading:!0})),u.addCase(r.rejected,(d,{error:f})=>({...dg,error:!0,errorData:Ii(f)})),u.addCase(r.fulfilled,(d,{payload:f})=>({...dg,...f,filteredDomains:f.domains})),u.addCase(i.fulfilled,({domains:d,filteredDomains:f,...m},{payload:p})=>({...m,domains:d.map(CP(p.domain,p.status)),filteredDomains:f.map(CP(p.domain,p.status))})),u.addCase(o,(d,{payload:f})=>({...d,filteredDomains:d.domains.filter(({domain:m})=>m.toLowerCase().match(f.toLowerCase()))})),u.addCase(t.fulfilled,(d,{payload:f})=>({...d,domains:d.domains.map(SP(f)),filteredDomains:d.filteredDomains.map(SP(f))})),u.addCase(n.fulfilled,(d,{payload:f})=>{f.domain===null||d.domains.some(m=>m.domain===f.domain)||d.domains.push({domain:f.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:s,listDomains:r,checkDomainHealth:i,filterDomains:o}},Xge=(e,t)=>{e.serviceFactory("ManageDomains",()=>Yge),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",Zge,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",Kge,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},EP="shlink/mercure",Qge={loading:!0,error:!1},Jge=e=>{const t=nr(`${EP}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Lt({name:EP,initialState:Qge,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},eve=e=>{e.serviceFactory("mercureInfoReducerCreator",Jge,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Ln(e){return C.useMemo(()=>e,[e])}function Nn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const tve=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:u}=e;if(s||u||!i)return;const d=({data:p})=>n(JSON.parse(p)),f=({status:p})=>p===401&&r(),m=t.map(p=>{const b=new URL(i);b.searchParams.append("topic",p);const _=new GX.EventSourcePolyfill(b,{headers:{Authorization:`Bearer ${o}`}});return _.onmessage=d,_.onerror=f,_});return()=>m.forEach(p=>p.close())};function La(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,u=yf();return C.useEffect(()=>{const{interval:d}=s,f=_=>d?n.add(_):i([_]),m=t(u),p=tve(s,m,f,o);if(!d)return p;const b=setInterval(()=>{i([...n]),n.clear()},d*1e3*60);return()=>{clearInterval(b),p?.()}},[i,o,s,u]),y.jsx(e,{...r})}}class aa{static visits="https://shlink.io/new-visit";static orphanVisits="https://shlink.io/new-orphan-visit";static shortUrlVisits=t=>`https://shlink.io/new-visit/${t}`}const Df=cn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),vh=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,nve=(e,t)=>!e.domain&&t===df?!0:e.domain===t,rve=(e,t)=>{const n=t?.validateUrls??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},lI=e=>e.replaceAll("/","__"),ZC=e=>e.replaceAll("__","/"),XC=({domain:e,shortCode:t})=>`${e??df}__${lI(t)}`,uI=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===df?null:t,shortCode:ZC(n)}},QC="shlink/shortUrlDeletion",AP={shortCode:"",loading:!1,deleted:!1,error:!1},ive=e=>nr(`${QC}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),cI=cn(`${QC}/shortUrlDeleted`),ave=e=>{const{actions:t,reducer:n}=Lt({name:QC,initialState:AP,reducers:{resetDeleteShortUrl:()=>AP},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:Ii(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},fI="shlink/shortUrlsList",dI=5,ove={loading:!0,error:!1},sve=e=>nr(`${fI}/listShortUrls`,t=>e().listShortUrls(t??{})),lve=(e,t,n)=>Lt({name:fI,initialState:ove,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,dI-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>{const{shortCode:u,domain:d}=o;return vh(s,u,d)?o:s}))}),r.addCase(cI,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(s=>!vh(s,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Df,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>o.createdVisits.findLast(({shortUrl:u})=>u&&vh(s,u.shortCode,u.domain))?.shortUrl??s))})}}),D2=({children:e,title:t,link:n,tooltip:r})=>{const{anchor:i,tooltip:o}=co({placement:"bottom"});return y.jsxs(y.Fragment,{children:[y.jsx(Nr,{to:n,className:"no-underline text-inherit",...i,children:y.jsxs(Pt,{className:Pe("text-center border-t-3 border-t-lm-main dark:border-t-dm-main relative"),children:[y.jsx(Ye,{icon:VW,size:"3x",className:"absolute right-[5px] bottom-[5px] opacity-10 -rotate-45"}),y.jsx("div",{role:"heading","aria-level":5,className:"text-xl uppercase text-placeholder font-bold mb-2",children:t}),y.jsx("div",{className:"text-4xl font-semibold",children:e})]})}),r&&y.jsx(fo,{...o,children:r})]})},TP=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(D2,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("b",{"data-testid":"tooltip-amount",children:Pn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Pn(t&&n.nonBots!==void 0?n.nonBots:n.total)}),OP=({children:e,titleLinkText:t,titleLink:n,title:r})=>y.jsxs(un,{className:"card",children:[y.jsxs(un.Header,{className:"flex justify-between items-center",children:[y.jsx("span",{className:"sm:hidden",children:r}),y.jsx("h5",{className:"hidden sm:inline",children:r}),y.jsxs(Nr,{to:n,children:[t," »"]})]}),y.jsx(un.Body,{children:e})]}),hI=La(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:s}=Ln(hI),{loading:u,shortUrls:d}=e,{loading:f}=n,{loading:m,nonOrphanVisits:p,orphanVisits:b}=i,_=fs(),w=lo(),x=zn("visits");return C.useEffect(()=>{t({itemsPerPage:dI,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-4 gap-4",children:[y.jsx(TP,{title:"Visits",link:`${_}/non-orphan-visits`,excludeBots:x?.excludeBots??!1,loading:m,visitsSummary:p}),y.jsx(TP,{title:"Orphan visits",link:`${_}/orphan-visits`,excludeBots:x?.excludeBots??!1,loading:m,visitsSummary:b}),y.jsx(D2,{title:"Short URLs",link:`${_}/list-short-urls/1`,children:u?"Loading...":Pn(d?.pagination.totalItems??0)}),y.jsx(D2,{title:"Tags",link:`${_}/manage-tags`,children:f?"Loading...":Pn(n.tags.length)})]}),y.jsx(OP,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${_}/create-short-url`,children:y.jsx(s,{basicMode:!0})}),y.jsx(OP,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${_}/list-short-urls/1`,children:y.jsx(o,{shortUrlsList:e,onTagClick:E=>w(`${_}/list-short-urls/1?tags=${encodeURIComponent(E)}`)})})]})},()=>[aa.visits,aa.orphanVisits]),uve=Nn(hI,["ShortUrlsTable","CreateShortUrl"]);function cve(e,t){e.factory("Overview",uve),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const mI="shlink/setShortUrlRedirectRules",jP={saving:!1,saved:!1,error:!1},fve=e=>nr(`${mI}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),dve=e=>{const{reducer:t,actions:n}=Lt({name:mI,initialState:jP,reducers:{resetSetRules:()=>jP},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Ii(s)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},pI="shlink/getShortUrlRedirectRules",hve={loading:!0,error:!1},mve=e=>nr(`${pI}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),pve=e=>Lt({name:pI,initialState:hve,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function Vr(e){e.preventDefault()}function Ol(e){e.stopPropagation()}function gI(){const e=new Map;return[function(t,n){e.get(t)&&e.get(t).forEach(r=>{r(n)})},function(t,n){const r=e.get(t)??[];r.push(n),e.set(t,r)}]}var[vI,yI]=gI();function gve(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function Uh(e,t,n=!0,r=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"&&e!==null&&t!==null){if(e instanceof Map||e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return gve(e,t);if(e===null||t===null)return!1;const i=e,o=t;if(Object.keys(i).length!==Object.keys(o).length)return!1;for(const s of r)if((s in i||s in o)&&i[s]!==o[s])return!1;for(const s in i)if(!(s in o)||i[s]!==o[s]&&!n||n&&!Uh(i[s],o[s],n,r))return!1;return!0}return!1}function bI(e){return e.split(" ").filter(t=>t)}function kf(e){return{x:e.clientX,y:e.clientY}}Array();var JC=typeof window<"u",Rr=new WeakMap,so=new WeakMap;function _I(){if(!JC)return!1;if("userAgentData"in navigator)return navigator.userAgentData.mobile===!0;const e=navigator.userAgent,t=/android|iphone|ipod/i.test(e),n=/iPad/.test(e)||e.includes("Macintosh")&&navigator.maxTouchPoints>1;return t||n}var vve={affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:yI,emit:vI,originalZIndex:void 0,pointerSelection:!1,preventEnter:!1,rootUserSelect:void 0,nodePointerdown:void 0,longPress:!1,scrolling:!1,longPressTimeout:void 0,remapJustFinished:!1,selectedNodes:[],selectedParent:void 0,preventSynthDrag:!1,pointerDown:void 0,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0},qe=vve,_l=!1,MP,nx;function yve(){qe.scrollDebounceTimeout&&clearTimeout(qe.scrollDebounceTimeout),qe.longPressTimeout&&clearTimeout(qe.longPressTimeout),qe.frameIdX!==void 0&&cancelAnimationFrame(qe.frameIdX),qe.frameIdY!==void 0&&cancelAnimationFrame(qe.frameIdY),qe={affectedNodes:[],coordinates:{x:0,y:0},on:yI,emit:vI,currentTargetValue:void 0,originalZIndex:void 0,pointerId:void 0,preventEnter:!1,remapJustFinished:!1,selectedNodes:[],nodePointerdown:void 0,rootUserSelect:void 0,preventSynthDrag:!1,scrolling:!1,selectedParent:void 0,pointerSelection:!1,synthScrollDirection:void 0,draggedNodeDisplay:void 0,synthDragScrolling:!1,longPress:!1,pointerDown:void 0,longPressTimeout:void 0,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0}}function xI(e){return Object.assign(qe,e),e.initialParent.data.emit("dragStarted",qe),_l=!1,qe.emit("dragStarted",qe),qe}function bve(){qe.activeState&&$u(qe.activeState.parent,void 0,qe),qe.selectedState&&Ou(qe.selectedState.nodes,qe.selectedState.parent,qe),qe.selectedState=qe.activeState=void 0}function _ve(){if(qe.pointerDown&&(qe.pointerDown.node.el.draggable=!0),qe.pointerDown=void 0,!Di(qe))return;const e=qe.currentParent.data.config;Di(qe)&&e.handleEnd(qe)}function xve(e){e.key==="Escape"&&(qe.selectedState&&Ou(qe.selectedState.nodes,qe.selectedState.parent,qe),qe.activeState&&$u(qe.activeState.parent,void 0,qe),qe.selectedState=qe.activeState=void 0)}function wve(e){if(!Hr(qe))return;_l=!0;const t=qe.initialParent.data.config.handleEnd;t(qe)}function Sve(e){if(!Hr(qe))return;Vr(e);const{x:t,y:n}=kf(e);Hr(qe)&&Xy({x:t,y:n},e,qe)}function Cve(e){if(!qe.pointerDown||!qe.pointerDown.validated)return;const t=qe.pointerDown.parent.data.config;if(!(e.pointerType==="mouse"&&!_I()))if(Di(qe))Di(qe)&&PP(e,qe);else{if(Vr(e),t.longPress&&!qe.longPress){clearTimeout(qe.longPressTimeout),qe.longPress=!1;return}const n=t.draggedNodes(qe.pointerDown);t.dragstartClasses(qe.pointerDown.node,n,t,!0);const r=qe.pointerDown.node.el.getBoundingClientRect(),i=Jve(qe.pointerDown.node,qe.pointerDown.parent,e,qe,n,r);PP(e,i,!0)}}function Eve({parent:e,getValues:t,setValues:n,config:r={}}){if(!JC)return;MP||(MP=Iv(document,{dragover:Sve,pointerdown:bve,pointerup:_ve,keydown:xve,drop:wve,pointermove:Cve,pointercancel:_i(r.handlePointercancel),touchmove:u=>{Hr(qe)&&u.cancelable&&Vr(u)},contextmenu:u=>{Di(qe)&&Vr(u)}})),SI(e);const[i,o]=gI(),s={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:Uve,dragstartClasses:$ve,handleNodeKeydown:Hve,handleDragstart:Bve,handleNodeDragover:tye,handleParentDragover:nye,handleNodeDrop:Gve,handleNodeFocus:Yve,handleNodeBlur:Wve,handlePointercancel:Zve,handleEnd:Xve,handleDragend:Kve,handleParentFocus:Tve,handleNodePointerup:Qve,handleNodePointerover:qve,handleParentPointerover:rye,handleParentScroll:zve,handleNodePointerdown:Fve,handleNodeDragenter:aye,handleNodeDragleave:oye,handleParentDrop:jve,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:Ave,performTransfer:Ove,root:r.root??document,setupNode:Pve,setupNodeRemap:CI,reapplyDragClasses:Rve,tearDownNode:Nve,tearDownNodeRemap:Lve,remapFinished:kve,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:o,emit:i};new MutationObserver(Dve).observe(e,{childList:!0}),Rr.set(e,s),r.plugins?.forEach(u=>{u(e)?.tearDown?.()}),r.plugins?.forEach(u=>{u(e)?.tearDown?.()}),r.plugins?.forEach(u=>{u(e)?.setup?.()}),Mve(e,s),Ky(e,!0)}function wI(e,t,n,r,i,o){const{x:s,y:u}=kf(n),d=e.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:s,y:u},draggedNode:{el:e.el,data:e.data},draggedNodes:r,incomingDirection:void 0,initialIndex:e.data.index,initialParent:{el:t.el,data:t.data},currentParent:{el:t.el,data:t.data},longPress:t.data.config.longPress??!1,longPressTimeout:void 0,currentTargetValue:e.data.value,scrollEls:[],startLeft:i||s-(d?.left??0),startTop:o||u-(d?.top??0),targetIndex:e.data.index,transferred:!1}}function Ave({parent:e,draggedNodes:t,targetNodes:n}){Ky(e.el);const r=t.map(d=>d.data.value),i=hf(e.el,e.data),o=t[0].data.index,s=[...e.data.enabledNodes],u=[...i.filter(d=>!r.some(f=>Uh(d,f)))];u.splice(n[0].data.index,0,...r),"draggedNode"in qe&&(qe.currentTargetValue=n[0].data.value),k2(e.el,e.data,[...u]),e.data.config.onSort&&e.data.config.onSort({parent:{el:e.el,data:e.data},previousValues:[...i],previousNodes:[...s],nodes:[...e.data.enabledNodes],values:[...u],draggedNodes:t,previousPosition:o,position:n[0].data.index,targetNodes:n,state:qe})}function $u(e,t,n){if(!t){n.activeState=void 0;return}n.activeState={node:t,parent:e}}function Ou(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);ol(e.map(o=>o.el),r);for(const o of i){o.el.setAttribute("aria-selected","false");const s=n.selectedState.nodes.findIndex(u=>u.el===o.el);s!==-1&&n.selectedState.nodes.splice(s,1)}}function hg(e,t,n,r,i=!1){r.pointerSelection=i;for(const o of t)o.el.setAttribute("aria-selected","true"),Xc([o.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e},$u(e,n,r)}function Tve(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?$u(e.targetData.parent,n,t):t.selectedState||$u(e.targetData.parent,n,t))}function Ove({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:o,state:s}){Ky(n.el);const u=r.map(b=>b.data.value),d=[...hf(e.el,e.data).filter(b=>!u.some(_=>Uh(b,_)))],f=hf(t.el,t.data),m=n.el===t.el&&t.data.config.sortable===!1;let p;o.length?(m?p=i:t.data.config.sortable===!1?p=t.data.enabledNodes.length:p=o[0].data.index,f.splice(p,0,...u)):(p=m?i:t.data.enabledNodes.length,f.splice(p,0,...u)),k2(e.el,e.data,d),k2(t.el,t.data,f),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:p,state:s,targetNodes:o}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:p,state:s,targetNodes:o||[]})}function hf(e,t){return[...t.getValues(e)]}function k2(e,t,n){t.setValues(n,e)}function jve(e,t){Ol(e.e),_l=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function SI(e){const t=Rr.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function Hr(e){return"draggedNode"in e&&!!e.draggedNode}function Di(e){return"synthDragging"in e&&!!e.synthDragging}function Mve(e,t){t.abortControllers.mainParent=Iv(e,{dragover:mg(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:mg(t.config.handleParentScroll),drop:mg(t.config.handleParentDrop),hasNestedParent:n=>{const r=Rr.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:mg(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=Iv(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!Qy(r)){console.warn("No draggable item found from external drag handle callback");return}const i=so.get(r);if(!i)return;const o=r.parentNode;if(!(o instanceof HTMLElement))return;const s=Rr.get(o);s&&(qe.pointerDown={parent:{el:o,data:s},node:{el:r,data:i},validated:!0},r.draggable=!0)}}))}function Pve(e){const t=e.parent.data.config;e.node.data.abortControllers.mainNode=Iv(e.node.el,{keydown:_i(t.handleNodeKeydown),dragstart:_i(t.handleDragstart),dragover:_i(t.handleNodeDragover),dragenter:_i(t.handleNodeDragenter),dragleave:_i(t.handleNodeDragleave),dragend:_i(t.handleDragend),drop:_i(t.handleNodeDrop),focus:_i(t.handleNodeFocus),blur:_i(t.handleNodeBlur),pointerup:_i(t.handleNodePointerup),pointercancel:_i(t.handlePointercancel),pointerdown:_i(t.handleNodePointerdown),handleNodePointerover:t.handleNodePointerover,touchmove:n=>{Hr(qe)&&n.cancelable&&Vr(n)},contextmenu:n=>{Di(qe)&&Vr(n)}}),e.node.el.draggable=!0,t.reapplyDragClasses(e.node.el,e.parent.data),e.parent.data.config.plugins?.forEach(n=>{n(e.parent.el)?.setupNode?.(e)})}function CI(e){so.set(e.node.el,e.node.data),e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.setupNodeRemap?.(e)})}function Rve(e,t){if(!Hr(qe))return;const n=Di(qe)?t.config.synthDropZoneClass:t.config.dropZoneClass;qe.draggedNode.el===e&&Xc([e],n,!0)}function Lve(e){e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.tearDownNodeRemap?.(e)})}function Nve(e){e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.tearDownNode?.(e)}),e.node.el.draggable=!1,e.node.data?.abortControllers?.mainNode&&e.node.data?.abortControllers?.mainNode.abort()}function Dve(e){if(e.length===1&&e[0].addedNodes.length===1&&!(e[0].addedNodes[0]instanceof HTMLElement))return;const t=e[0].target;!(t instanceof HTMLElement)||!Rr.get(t)||Ky(t)}function Ky(e,t){const n=Rr.get(e);if(!n)return;n.privateClasses=Array.from(e.classList);const r=[],i=n.config;for(let u=0;u<e.children.length;u++){const d=e.children[u];if(!Qy(d)||d.id==="dnd-dragged-node-clone")continue;const f=so.get(d);(t||!f)&&i.tearDownNode({parent:{el:e,data:n},node:{el:d,data:f}}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(d))&&r.push(d)}if(r.length!==n.getValues(e).length&&!i.disabled){console.warn("The number of draggable items defined in the parent element does not match the number of values. This may cause unexpected behavior.");return}const o=n.getValues(e),s=[];for(let u=0;u<r.length;u++){const d=r[u],f=so.get(d);if(i.draggableValue&&!i.draggableValue(o[u]))continue;const m=Object.assign(f??{privateClasses:[],abortControllers:{}},{value:o[u],index:u});if(!Hr(qe)&&qe.activeState&&Uh(qe.activeState.node.data.value,m.value)&&$u({data:n,el:e},{el:d,data:m},qe),Hr(qe)&&Uh(qe.draggedNode.data.value,m.value)){qe.draggedNode.data=m,qe.draggedNode.el=d;const p=qe.draggedNodes.find(b=>b.data.value===m.value);p&&(p.el=d)}s.push({el:d,data:m}),(t||!f)&&i.setupNode({parent:{el:e,data:n},node:{el:d,data:m}}),CI({parent:{el:e,data:n},node:{el:d,data:m}})}Rr.set(e,{...n,enabledNodes:s}),i.remapFinished(n),n.config.plugins?.forEach(u=>{u(e)?.remapFinished?.()})}function kve(){qe.remapJustFinished=!0,"draggedNode"in qe&&(qe.affectedNodes=[])}function Ive(e){return!!e.targetData.parent.data.config.nativeDrag}function Uve(e){if(e.parent.data.config.multiDrag){if(qe.selectedState)return[e.node,...qe.selectedState?.nodes.filter(t=>t.el!==e.node.el)]}else return[e.node];return[]}function zve(e){Hr(qe)&&(qe.emit("scrollStarted",qe),!Di(qe)&&(qe.preventEnter=!0,nx&&clearTimeout(nx),nx=setTimeout(()=>{qe.preventEnter=!1,qe.emit("scrollEnded",qe)},100)))}function Bve(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!Ive(e)||!EI({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){Vr(e.e);return}let r=n.draggedNodes({parent:e.targetData.parent,node:e.targetData.node});r.length===0&&(r=[e.targetData.node]),n.dragstartClasses(e.targetData.node,r,n);const i=Vve(e,r);if(n.onDragstart){const o={parent:e.targetData.parent,values:hf(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i};n.onDragstart(o)}}function Fve(e,t){if(Ol(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},!EI({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown.validated=!0,eye(e,t,e.targetData.node);const n=e.targetData.parent.data;let r=[e.targetData.node];const i=e.e.ctrlKey||e.e.metaKey,o=e.e.shiftKey,s=e.targetData.node;if(i&&n.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(u=>u.el===s.el)===-1?r=[...t.selectedState.nodes,s]:r=t.selectedState.nodes.filter(u=>u.el!==s.el):r=[s],hg(e.targetData.parent,r,e.targetData.node,t,!0);return}if(o&&n.config.multiDrag){const u=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){Ou(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let d=0;d<=s.data.index;d++)r.push(u[d])}else{const[d,f]=t.activeState.node.data.index<e.targetData.node.data.index?[t.activeState.node.data.index,e.targetData.node.data.index]:[e.targetData.node.data.index,t.activeState.node.data.index];r=u.slice(d,f+1)}else for(let d=0;d<=s.data.index;d++)r.push(u[d]);hg(e.targetData.parent,r,e.targetData.node,t,!0);return}t.selectedState?.nodes?.length?t.selectedState.nodes.findIndex(u=>u.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?Ou(t.selectedState.nodes,e.targetData.parent,t):n.config.multiDrag&&_I()?r.push(...t.selectedState.nodes):Ou(t.selectedState.nodes,e.targetData.parent,t),hg(e.targetData.parent,r,e.targetData.node,t,!0)):hg(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function $ve(e,t,n,r=!1){Xc(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{ol(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),Xc(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),Xc(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),ol(t.map(i=>i.el),n.selectedClass)})}function Vve(e,t){Ol(e.e);const n=xI(wI(e.targetData.node,e.targetData.parent,e.e,t));if(e.e.dataTransfer){const r=e.targetData.parent.data.config;e.e.dataTransfer.dropEffect=r.dragDropEffect,e.e.dataTransfer.effectAllowed=r.dragEffectAllowed;let i;if(e.e.dataTransfer.setData("text/plain",""),r.dragImage)i=r.dragImage(e,t);else{if(!r.multiDrag||t.length===1)return e.targetData.node.el.style.zIndex="9999",e.targetData.node.el.style.boxSizing="border-box",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY),n.originalZIndex=e.targetData.node.el.style.zIndex,n;{const o=document.createElement("div");o.setAttribute("id","dnd-dragged-node-clone"),o.setAttribute("popover","manual");for(const u of t){const d=u.el.cloneNode(!0);d.id=u.el.id+"-clone",d.style.pointerEvents="none",o.appendChild(d)}const{width:s}=t[0].el.getBoundingClientRect();Object.assign(o.style,{display:"flex",flexDirection:"column",width:`${s}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px",boxSizing:"border-box",background:"transparent",overflow:"hidden"}),e.targetData.parent.el.appendChild(o),o.showPopover(),o.getBoundingClientRect(),i=o,e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY)}}setTimeout(()=>{i?.remove()})}return n}function EI({x:e,y:t,node:n,config:r}){if(r.externalDragHandle)return!1;if(!r.dragHandle)return!0;const i=n.el.querySelectorAll(r.dragHandle);if(!i)return!1;const o=r.root.elementFromPoint(e,t);if(!o)return!1;for(const s of Array.from(i))if(o===s||s.contains(o))return!0;return!1}function Hve(e){}function qve(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?TI(e.detail,e.detail.state):Zy(e.detail,e.detail.state)}function Gve(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(Ol(e.e),_l=!0,n.handleEnd(t))}function Yve(e){e.e.target!==e.e.currentTarget&&qe.pointerDown&&(qe.pointerDown.node.el.draggable=!1)}function Wve(e){e.e.target!==e.e.currentTarget&&qe.pointerDown&&(qe.pointerDown.node.el.draggable=!0)}function Kve(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(Vr(e.e),Ol(e.e),_l){_l=!1;return}n.handleEnd(t)}}function Zve(e,t){if(!Di(t))return;if(Vr(e.e),_l){_l=!1;return}const n=Rr.get(t.initialParent.el)?.config;n?.onDragend&&n.onDragend({parent:t.currentParent,values:hf(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),n?.handleEnd(t)}function Xve(e){e.draggedNode&&(e.draggedNode.el.draggable=!0);const t=e.draggedNodes.map(m=>m.el),n=e.initialParent.data,r=Di(e),i=Rr.get(e.initialParent.el)?.config,o=r?i?.synthDropZoneClass:i?.dropZoneClass,s=n?.config?.longPressClass,u=r?n?.config?.synthDragPlaceholderClass:n?.config?.dragPlaceholderClass,d=e.originalZIndex;Di(e)&&(e.clonedDraggedNode&&e.clonedDraggedNode.remove(),e.longPressTimeout&&clearTimeout(e.longPressTimeout)),I2(e),e.lastScrollDirectionX=void 0,e.lastScrollDirectionY=void 0,e.preventEnter=!1,e.scrollDebounceTimeout&&(clearTimeout(e.scrollDebounceTimeout),e.scrollDebounceTimeout=void 0),d!==void 0&&e.draggedNode&&(e.draggedNode.el.style.zIndex=d),requestAnimationFrame(()=>{ol(t,o),ol(t,s),ol(t,u)}),Ou(e.draggedNodes,e.currentParent,e),$u(e.currentParent,void 0,e);const f={...e};i?.onDragend?.({parent:f.currentParent,values:hf(f.currentParent.el,f.currentParent.data),draggedNode:f.draggedNode,draggedNodes:f.draggedNodes,state:f}),e.emit("dragEnded",f),yve()}function Qve(e,t){Ol(e.e),!t.pointerSelection&&t.selectedState&&Ou(t.selectedState.nodes,e.targetData.parent,t);const n=e.targetData.parent.data.config;t.pointerSelection=!1,"longPressTimeout"in t&&t.longPressTimeout&&clearTimeout(t.longPressTimeout),t.longPress=!1,ol(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),Hr(t)&&n.handleEnd(t)}function Jve(e,t,n,r,i,o){const s=t.data.config;let u,d;const f=["display","flexDirection","alignItems","justifyContent","padding","paddingTop","margin","marginTop","marginBottom","marginLeft","marginRight","paddingBottom","paddingLeft","paddingRight","border","borderRadius","background","backgroundColor","boxShadow","font","color","lineHeight","gap","width","height","boxSizing","overflow"],m=(_,w)=>{const x=window.getComputedStyle(_);f.forEach(E=>{w.style[E]=x[E]})},p=(_,w={})=>{Object.assign(_.style,{position:"absolute",zIndex:"9999",pointerEvents:"none",willChange:"transform",boxSizing:"border-box",opacity:"0",overflow:"hidden",width:`${o.width}px`,height:`${o.height}px`,...w})};if(s.synthDragImage)d=s.synthDragImage(e,t,n,i),u=d.dragImage,u.setAttribute("popover","manual"),p(u);else if(!s.multiDrag||i.length===1)u=e.el.cloneNode(!0),m(e.el,u),u.setAttribute("popover","manual"),p(u);else{const _=document.createElement("div");_.setAttribute("popover","manual"),i.forEach(w=>{const x=w.el.cloneNode(!0);m(w.el,x),x.style.pointerEvents="none",x.style.margin="0",_.append(x)}),_.style.display="flex",_.style.flexDirection="column",_.style.padding="0",_.style.margin="0",_.style.position="absolute",_.style.zIndex="9999",_.style.pointerEvents="none",u=_}u.id="dnd-dragged-node-clone",t.el.appendChild(u),u.showPopover();const b={clonedDraggedEls:[],clonedDraggedNode:u,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:document.scrollingElement?.scrollWidth,rootScrollHeight:document.scrollingElement?.scrollHeight};return xI({...wI(e,t,n,i,d?.offsetX,d?.offsetY),...b})}function eye(e,t,n){const r=e.targetData.parent.data.config;t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&Xc([n.el],r.longPressClass),Vr(e.e))},r.longPressDuration||1e3)}function I2(e,t=!0,n=!0){t&&(e.frameIdX!==void 0&&(cancelAnimationFrame(e.frameIdX),e.frameIdX=void 0),e.lastScrollDirectionX=void 0),n&&(e.frameIdY!==void 0&&(cancelAnimationFrame(e.frameIdY),e.frameIdY=void 0),e.lastScrollDirectionY=void 0),!e.frameIdX&&!e.frameIdY&&(e.preventEnter=!1)}function AI(e,t=!1){const{x:n,y:r}=e.coordinates,i=e.startLeft??0,o=e.startTop??0,s=window.scrollX??0,u=window.scrollY??0,d=n-i+s,f=r-o+u;e.clonedDraggedNode.style.transform=`translate3d(${d}px, ${f}px, 0px)`,t&&(e.clonedDraggedNode.style.opacity="1",ol(e.draggedNodes.map(m=>m.el),e.initialParent.data.config?.longPressClass))}function PP(e,t,n=!1){const r=kf(e);t.coordinates.x=r.x,t.coordinates.y=r.y,AI(t,n),t.scrollDebounceTimeout&&(clearTimeout(t.scrollDebounceTimeout),t.scrollDebounceTimeout=void 0),t.scrollDebounceTimeout=setTimeout(()=>{Di(t)&&Xy(t.coordinates,e,t)},16);const i=cye(r);if(!i){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const o={e,targetData:i,state:t};"node"in i?i.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:o})):i.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:o}))}function tye(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;const{x:n,y:r}=kf(e.e);t.coordinates.y=r,t.coordinates.x=n,Vr(e.e),Ol(e.e),Hr(t)&&Xy({x:n,y:r},e.e,t),e.targetData.parent.el===t.currentParent?.el?TI(e,t):Zy(e,t)}function nye(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;Vr(e.e),Ol(e.e);const{x:n,y:r}=kf(e.e);Hr(t)&&Xy({x:n,y:r},e.e,t),Zy(e,t)}function rye(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&Zy(e.detail,e.detail.state)}function iye({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,state:i}){if(t.el===e.el)return!1;const o=t.data.config;if(r[0].el.contains(t.el)||o.dropZone===!1)return!1;const s=n.data.config;return o.accepts?o.accepts(t,n,e,i):!(!o.group||o.group!==s.group)}function aye(e,t){Vr(e.e)}function oye(e,t){Vr(e.e)}function sye(e,t,n,r){if(t.affectedNodes.map(m=>m.data.value).includes(e.targetData.node.data.value))return!1;if(t.remapJustFinished)return t.remapJustFinished=!1,(e.targetData.node.data.value===t.currentTargetValue||t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))&&(t.currentTargetValue=e.targetData.node.data.value),!1;if(t.preventEnter)return!1;if(t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))return t.currentTargetValue=void 0,!1;if(e.targetData.node.data.value===t.currentTargetValue||e.targetData.parent.el!==t.currentParent?.el||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const i=e.targetData.node.el.getBoundingClientRect(),o=t.draggedNode.el.getBoundingClientRect(),s=i.y-o.y,u=i.x-o.x;let d;Math.abs(s)>Math.abs(u)?d=s>0?"above":"below":d=u>0?"left":"right";const f=t.currentParent.data.config.threshold;switch(d){case"left":if(n>i.x+i.width*f.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<i.x+i.width*(1-f.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>i.y+i.height*f.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<i.y+i.height*(1-f.vertical))return t.incomingDirection="below",!0;break}return!1}function TI(e,t){const{x:n,y:r}=kf(e.e);if(!sye(e,t,n,r))return;const i=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(o=>i[0]<=o.data.index&&o.data.index<=i[1]&&o.el!==t.draggedNode.el),e.targetData.parent.data.config.performSort({parent:e.targetData.parent,draggedNodes:t.draggedNodes,targetNodes:[e.targetData.node]})}function _i(e){function t(n){const r=so.get(n);if(!r)return;const i=Rr.get(n.parentNode);if(i)return{node:{el:n,data:r},parent:{el:n.parentNode,data:i}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},qe)}}function Zy(e,t){Vr(e.e),iye({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,state:t})&&(e.targetData.parent.data.config.performTransfer({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,initialIndex:t.initialIndex,state:t,targetNodes:"node"in e.targetData?[e.targetData.node]:[]}),t.currentParent=e.targetData.parent,t.transferred=!0)}function mg(e){function t(n){const r=Rr.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},qe)}}function Xc(e,t,n=!1){function r(i,o){so.set(i,o)}for(const i of e){const o=so.get(i),s=lye(i,t,o,n);s&&r(i,s)}}function lye(e,t,n,r=!1){if(!t)return;const i=bI(t);if(!i.length)return;if(!n){e.classList.add(...i);return}const o=[];for(const s of i)e.classList.contains(s)?e.classList.contains(s)&&r===!1&&o.push(s):e.classList.add(s);return n.privateClasses=o,n}function ol(e,t){if(!t)return;const n=bI(t);if(n.length)for(const r of e){if(!Qy(r)){r.classList.remove(...n);continue}const i=so.get(r)||Rr.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function RP(e,t,n,r,i){const o=i.axis==="x",s=e===document.scrollingElement,u=o?"scrollLeft":"scrollTop",d=o?"clientWidth":"clientHeight",f=o?"offsetWidth":"offsetHeight",m=o?"scrollWidth":"scrollHeight",p=o?t.clientX:t.clientY,b=o?r.left:r.top,_=o?n.overflowX:n.overflowY;if(s){const w=e[u],x=e[d],E=w>0,T=w+x<(o?i.state.rootScrollWidth||0:e[m]);return o?{left:E&&p<x*.075,right:T&&p>x*(1-.075)}:{up:E&&p<x*.075,down:T&&p>x*(1-.075)}}if((_==="auto"||_==="scroll")&&e!==document.body&&e!==document.documentElement){const w=e[m],x=e[f],E=e[u],T=E>0,j=E<w-x;return o?{left:T&&p<b+x*.075,right:j&&p>b+x*(1-.075)}:{up:T&&p<b+x*.075,down:j&&p>b+x*(1-.075)}}return o?{left:!1,right:!1}:{up:!1,down:!1}}function uye(e,t,n,r){if(!Hr(n)||!n.draggedNode)return;n.preventEnter=!0;const i=r.axis==="x",o=r.direction==="positive"?1:-1,s=20,u=i?"lastScrollDirectionX":"lastScrollDirectionY",d=i?"frameIdX":"frameIdY";n[d]!==void 0&&(cancelAnimationFrame(n[d]),n[d]=void 0),n[u]=r.direction;const f=()=>{if(!Hr(n)||!n.draggedNode){n[d]!==void 0&&(cancelAnimationFrame(n[d]),n[d]=void 0);return}const m=i?"scrollLeft":"scrollTop",p=i?"clientWidth":"clientHeight",b=i?"scrollWidth":"scrollHeight",_=e[m],w=e[p],x=e[b];if(!(o>0?_+w<x:_>0)){n[d]=void 0,n[u]=void 0;return}e[m]+=s*o,Di(n)&&AI(n),n[d]=requestAnimationFrame(f)};n[d]=requestAnimationFrame(f)}function LP(e,t,n){const r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}function Xy(e,t,n){if(!Hr(n)||!n.draggedNode)return;I2(n);const{x:r,y:i}=e;let o=!1;const s=(d,f,m)=>{uye(m,t,n,{axis:d,direction:f}),o=!0},u=d=>{const f=window.getComputedStyle(d),m=d.getBoundingClientRect(),p=RP(d,t,f,m,{axis:"x",state:n}),b=RP(d,t,f,m,{axis:"y"});(p.left||p.right)&&(n.lastScrollContainerX=d,s("x",p.right?"positive":"negative",d)),(b.up||b.down)&&(n.lastScrollContainerY=d,s("y",b.down?"positive":"negative",d))};if(n.lastScrollContainerX&&LP(n.lastScrollContainerX,r,i)&&u(n.lastScrollContainerX),!o&&n.lastScrollContainerY&&LP(n.lastScrollContainerY,r,i)&&u(n.lastScrollContainerY),!o){let d=document.elementFromPoint(r,i);for(;d&&!(o&&n.lastScrollContainerX&&n.lastScrollContainerY);)d instanceof HTMLElement&&u(d),d=d.parentElement}if(!o){const d=document.scrollingElement;d instanceof HTMLElement&&u(d)}o||I2(n)}function cye(e){let t=document.elementFromPoint(e.x,e.y);if(!Qy(t))return;let n,r=!0;for(;t&&r;){if(so.has(t)||Rr.has(t)){r=!1,n=Rr.has(t);break}t=t.parentNode}if(n){const i=Rr.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=so.get(t);if(!i)return;const o=Rr.get(t.parentNode);return o?{node:{el:t,data:i},parent:{el:t.parentNode,data:o}}:void 0}}function Qy(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Iv(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1,capture:r==="focus"||r==="blur"})}return n}function fye(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 dye(e,t){const n=fye(e);n&&t(n)}var Uv=new WeakMap;function hye(e){const t=Uv.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function mye(e,t){const n=Uv.get(t);n&&n[1](e),Uv.set(t,[e,n[1]])}function pye(e,t){return n=>{Uv.set(n,t),Eve({parent:n,getValues:hye,setValues:mye,config:e})}}function NP(e){JC&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;dye(n,pye(i,r))}))}function gye(e,t={}){const n=C.useRef(null),[r,i]=C.useState(e);function o(s={}){NP({parent:n,state:[r,i],...s})}return C.useEffect(()=>{NP({parent:n,state:[r,i],...t})},[r]),C.useEffect(()=>()=>{n.current&&SI(n.current)},[]),[n,r,i,o]}const Jy=()=>{const e=lo(),t=fs(),n=Sf(),r=C.useMemo(()=>{const{orderBy:o,tags:s,excludeBots:u,excludeMaxVisitsReached:d,excludePastValidUntil:f,...m}=n,p=o?UK(o):void 0,b=s?.split(",")??[];return{...m,orderBy:p,tags:b,excludeBots:u!==void 0?u==="true":void 0,excludeMaxVisitsReached:d!==void 0?d==="true":void 0,excludePastValidUntil:f!==void 0?f==="true":void 0}},[n]),i=C.useCallback(o=>{const s={...r,...o},{orderBy:u,tags:d,excludeBots:f,excludeMaxVisitsReached:m,excludePastValidUntil:p,...b}=s,_={...b,orderBy:u&&IK(u),tags:d.length>0?d.join(","):void 0,excludeBots:Sb(f),excludeMaxVisitsReached:Sb(m),excludePastValidUntil:Sb(p)},w=Mw(_),x=w?`?${w}`:"";e(`${t}/list-short-urls/1${x}`)},[r,e,t]);return[r,i]},e3=()=>{const{domain:e}=Sf(),{shortCode:t=""}=yf();return C.useMemo(()=>({shortCode:ZC(t),domain:e}),[e,t])},e0=()=>{const e=hK();return y.jsx(ly,{size:"lg",className:"[&]:p-1 mr-4",onClick:e,"aria-label":"Go back",children:y.jsx(Ye,{icon:bV})})},vye={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"},yye=({deviceType:e,onDeviceTypeChange:t})=>{const n=ra("desktopDeviceTypes"),r=C.useMemo(()=>{const i={android:"Android",ios:"iOS"};return n&&(i.mobile="Any mobile device",i.windows="Windows",i.macos="MacOS",i.linux="Linux",i.chromeos="ChromeOS"),i.desktop="Any desktop device",i},[n]);return y.jsxs(Ow,{label:"Device type:",value:e??void 0,onChange:i=>t(i.target.value),hiddenRequired:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select type -"}),Object.entries(r).map(([i,o])=>y.jsx("option",{value:i,children:o},i))]})},t3=({value:e,onValueChange:t,label:n,placeholder:r})=>y.jsx(ui,{label:`${n}:`,value:e??"",onChange:i=>t(i.target.value),placeholder:r,hiddenRequired:!0}),bye=({language:e,onLanguageChange:t})=>y.jsx(t3,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),rx=({name:e,value:t,onNameChange:n,onValueChange:r})=>y.jsxs(y.Fragment,{children:[y.jsx(ui,{label:"Param name:",value:e??"",onChange:i=>n(i.target.value),placeholder:"hello",hiddenRequired:!0}),typeof t=="string"&&y.jsx(ui,{label:"Param value:",value:t,onChange:i=>r(i.target.value),placeholder:"world",hiddenRequired:!0})]}),_ye=({ipAddress:e,onIpAddressChange:t})=>y.jsx(t3,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),xye=({countryCode:e,onCountryCodeChange:t})=>y.jsxs(Ow,{label:"Country:",value:e??void 0,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select country -"}),Object.entries(vye).map(([n,r])=>y.jsx("option",{value:n,children:r},n))]}),wye=({cityName:e,onCityNameChange:t})=>y.jsx(t3,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),Sye=({condition:e,onConditionChange:t,onDelete:n})=>{const r=C.useCallback(m=>t({type:m,matchValue:null,matchKey:null}),[t]),i=C.useCallback(m=>t({...e,matchValue:m}),[e,t]),o=C.useCallback(m=>t({...e,matchKey:m}),[e,t]),s=ra("ipRedirectCondition"),u=ra("geolocationRedirectCondition"),d=ra("advancedQueryRedirectConditions"),f=C.useMemo(()=>{const m={device:"Device type",language:"Language","query-param":"Query param"};return d&&(m["any-value-query-param"]="Any value query param",m["valueless-query-param"]="Valueless query param"),s&&(m["ip-address"]="IP address"),u&&(m["geolocation-country-code"]="Country (geolocation)",m["geolocation-city-name"]="City name (geolocation)"),m},[d,u,s]);return y.jsxs("div",{className:Pe("flex flex-col gap-2","border border-lm-border dark:border-dm-border","rounded-md relative p-4 h-full"),children:[y.jsxs("div",{children:[y.jsx(Rt,{variant:"secondary","aria-label":"Remove condition",onClick:n,className:Pe("absolute -top-3.5 -right-3.5 [&]:px-2","[&]:rounded-full bg-lm-primary dark:bg-dm-primary"),children:y.jsx(Ye,{icon:Zv,widthAuto:!0})}),y.jsx(Ow,{label:"Type:",value:e.type,onChange:m=>r(m.target.value),hiddenRequired:!0,children:Object.entries(f).map(([m,p])=>y.jsx("option",{value:m,children:p},m))})]}),e.type==="device"&&y.jsx(yye,{deviceType:e.matchValue,onDeviceTypeChange:i}),e.type==="language"&&y.jsx(bye,{language:e.matchValue,onLanguageChange:i}),e.type==="query-param"&&y.jsx(rx,{name:e.matchKey,value:e.matchValue??"",onNameChange:o,onValueChange:i}),e.type==="any-value-query-param"&&y.jsx(rx,{name:e.matchKey,onNameChange:o,onValueChange:i}),e.type==="valueless-query-param"&&y.jsx(rx,{name:e.matchKey,onNameChange:o,onValueChange:i}),e.type==="ip-address"&&y.jsx(_ye,{ipAddress:e.matchValue,onIpAddressChange:i}),e.type==="geolocation-country-code"&&y.jsx(xye,{countryCode:e.matchValue,onCountryCodeChange:i}),e.type==="geolocation-city-name"&&y.jsx(wye,{cityName:e.matchValue,onCityNameChange:i})]})},OI=({isOpen:e,onClose:t,onSave:n,initialData:r})=>{const[i,o]=C.useState(r??{longUrl:"",conditions:[]}),s=C.useCallback(()=>{i&&n(i),t()},[n,i,t]),u=C.useCallback(()=>o(({longUrl:b,conditions:_})=>({longUrl:b,conditions:[..._,{type:"device",matchValue:null,matchKey:null}]})),[]),d=C.useCallback((b,_)=>o(({longUrl:w,conditions:x})=>{const E=[...x];return E[b]=_,{longUrl:w,conditions:E}}),[]),f=C.useCallback(b=>o(({longUrl:_,conditions:w})=>{const x=[...w];return x.splice(b,1),{longUrl:_,conditions:x}}),[]),m=C.useRef(null),p=C.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return C.useEffect(()=>{const b=new MutationObserver(()=>{m.current&&e&&(m.current.focus(),b.disconnect())});return b.observe(document.body,{childList:!0,subtree:!0}),()=>b.disconnect()},[e]),y.jsxs(uo,{size:"xl",title:"Redirect rule",open:e,onClose:t,onClosed:p,onConfirm:s,confirmDisabled:i.conditions.length===0,confirmText:"Confirm",children:[y.jsx(ui,{label:"Long URL:",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(_=>({..._,longUrl:b.target.value})),hiddenRequired:!0,ref:m}),y.jsx("hr",{}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("b",{children:"Conditions:"}),y.jsx(Rt,{className:"[&]:px-1.5",variant:"secondary","aria-label":"Add condition",onClick:u,children:y.jsx(Ye,{icon:Vh})})]}),i.conditions.length===0&&y.jsx("div",{className:"text-center",children:y.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&y.jsx("div",{className:"pr-3 mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.conditions.map((b,_)=>y.jsx(Sye,{condition:b,onConditionChange:w=>d(_,w),onDelete:()=>f(_)},`${_}_${b.type}`))})]})},Cye=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:s})=>{const{flag:u,setToTrue:d,setToFalse:f}=Sn();return y.jsxs(Pt,{children:[y.jsxs("div",{className:"flex align-center gap-4",children:[y.jsx("div",{className:"flex flex-col my-auto hidden md:block cursor-grab drag-n-drop-handler",children:y.jsx(Ye,{icon:mV})}),y.jsxs("div",{className:"flex flex-col my-auto",children:[y.jsx(Rt,{variant:"secondary","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"[&]:px-2 rounded-b-none mb-[-1px]",children:y.jsx(Ye,{icon:aV})}),y.jsx(Rt,{variant:"secondary","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"[&]:px-2 rounded-t-none",children:y.jsx(Ye,{icon:jV})})]}),y.jsxs("div",{className:"grow",children:[y.jsxs("div",{className:"mb-2",children:[y.jsx("b",{children:"Long URL:"})," ",y.jsx(ji,{href:n.longUrl,"data-testid":"rule-long-url"})]}),y.jsxs("div",{className:"flex flex-col lg:flex-row gap-2",children:[y.jsx("b",{children:"Conditions:"}),n.conditions.map((m,p)=>y.jsxs("div",{className:"rounded-sm bg-gray-600 px-1 text-white",children:[m.type==="device"&&y.jsxs(y.Fragment,{children:["Device is ",m.matchValue]}),m.type==="language"&&y.jsxs(y.Fragment,{children:[m.matchValue," language is accepted"]}),m.type==="query-param"&&y.jsxs(y.Fragment,{children:["Query string contains ",m.matchKey,"=",m.matchValue]}),m.type==="ip-address"&&y.jsxs(y.Fragment,{children:["IP address matches ",m.matchValue]}),m.type==="geolocation-country-code"&&y.jsxs(y.Fragment,{children:["Country code is ",m.matchValue]}),m.type==="geolocation-city-name"&&y.jsxs(y.Fragment,{children:["City name is ",m.matchValue]})]},`${m.type}_${p}`))]})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-1 my-auto",children:[y.jsx(Rt,{className:"[&]:px-1.5",variant:"secondary","aria-label":`Edit rule with priority ${e}`,onClick:d,children:y.jsx(Ye,{icon:ZR})}),y.jsx(Rt,{className:"[&]:px-2",variant:"danger","aria-label":`Delete rule with priority ${e}`,onClick:r,children:y.jsx(Ye,{icon:oV})})]})]}),y.jsx(OI,{onSave:s,isOpen:u,onClose:f,initialData:n})]})},Eye=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:s})=>{const u=e3(),{shortUrls:d}=r,f=u&&d?.get(u),[m,p,b]=gye([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:_,saved:w,errorData:x}=o,{flag:E,setToFalse:T,setToTrue:j}=Sn(),O=C.useCallback(ee=>b((J=[])=>[...J,ee]),[b]),N=C.useCallback(ee=>b((J=[])=>{const te=[...J];return te.splice(ee,1),te}),[b]),F=C.useCallback((ee,J)=>b((te=[])=>{const he=[...te];return he[ee]=J,he}),[b]),$=C.useCallback((ee,J)=>b((te=[])=>{if(!te[J])return te;const he=[...te],X=he[J];return he[J]=he[ee],he[ee]=X,he}),[b]),K=C.useCallback(ee=>$(ee,ee-1),[$]),Q=C.useCallback(ee=>$(ee,ee+1),[$]),oe=C.useCallback(ee=>{ee.preventDefault(),p&&i({shortUrl:u,data:{redirectRules:p}})},[u,p,i]);return C.useEffect(()=>(t(u),n([u]),s),[t,n,u,s]),C.useEffect(()=>{e.redirectRules&&b(e.redirectRules)},[b,e.redirectRules]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("header",{children:y.jsxs(Pt,{children:[y.jsxs("h2",{className:"sm:flex justify-between items-center",children:[y.jsx(e0,{}),y.jsxs("div",{className:"text-center grow",children:[r.loading&&y.jsx(y.Fragment,{children:"Loading..."}),!r.loading&&y.jsxs("small",{children:["Redirect rules for ",y.jsx(ji,{href:f?.shortUrl??""})]})]})]}),y.jsx("hr",{}),y.jsxs("div",{children:[y.jsx("p",{children:"Configure dynamic conditions that will be checked at runtime."}),y.jsxs("p",{children:["If no conditions match, visitors will be redirected to: ",y.jsx(ji,{href:e.defaultLongUrl??""})]})]})]})}),y.jsx("div",{children:y.jsxs(Rt,{onClick:j,children:[y.jsx(Ye,{icon:Vh})," Add rule"]})}),y.jsxs("form",{onSubmit:oe,children:[e.loading&&y.jsx(Zo,{loading:!0}),p.length===0&&!e.loading&&y.jsx(Pt,{className:"text-center",children:y.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),y.jsx("div",{className:"flex flex-col gap-2",ref:m,children:p.map((ee,J)=>y.jsx(Cye,{redirectRule:ee,priority:J+1,isLast:J===p.length-1,onDelete:()=>N(J),onMoveUp:()=>K(J),onMoveDown:()=>Q(J),onUpdate:te=>F(J,te)},`${ee.longUrl}_${J}`))}),y.jsx("div",{className:"text-center mt-4",children:y.jsx(Rt,{type:"submit",inline:!0,className:"max-md:w-full",disabled:_,"data-testid":"save-button",children:_?"Saving...":"Save rules"})})]}),x&&y.jsx($r,{variant:"error",children:y.jsx(oo,{errorData:x,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),w&&y.jsx($r,{variant:"success",children:"Redirect rules properly saved."}),y.jsx(OI,{isOpen:E,onClose:T,onSave:O})]})},Aye=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>Eye),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",mve,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",fve,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",pve,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",dve,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},Tye=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{error:r,saved:i}=e;if(C.useEffect(()=>{t()},[t]),r)return y.jsxs($r,{variant:"error",className:"mt-4 relative",children:[n&&y.jsx("div",{className:"absolute right-1.5 top-1.5","data-testid":"error-close-button",children:y.jsx(Ru,{onClick:t})}),y.jsx(oo,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!i)return null;const{shortUrl:o}=e.result;return y.jsxs($r,{variant:"success",className:"mt-4 relative",children:[n&&y.jsx("div",{className:"absolute right-1.5 top-1.5","data-testid":"success-close-button",children:y.jsx(Ru,{onClick:t})}),y.jsxs("div",{className:"flex items-center justify-center gap-1",children:[y.jsxs("span",{children:[y.jsx("b",{children:"Great!"})," The short URL is ",y.jsx("b",{children:o})]}),y.jsx(EL,{text:o})]})]})},Oye=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:e?.validateUrls??!1,forwardQuery:e?.forwardQuery??!0}),jI=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i}=Ln(jI),o=zn("shortUrlCreation"),s=C.useMemo(()=>Oye(o),[o]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async u=>(n(),e(u))}),y.jsx(Tye,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},jye=Nn(jI,["ShortUrlForm"]),MI=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Ln(MI),o=e3(),{loading:s,error:u,errorData:d,shortUrls:f}=e,m=o&&f?.get(o),{saving:p,saved:b,error:_,errorData:w}=n,x=zn("shortUrlCreation"),E=C.useMemo(()=>rve(m,x),[m,x]);return C.useEffect(()=>{o&&t([o])},[t,o]),s?y.jsx(Zo,{loading:!0}):u?y.jsx($r,{variant:"error",children:y.jsx(oo,{errorData:d,fallbackMessage:"An error occurred while loading short URL detail :("})}):y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsx("header",{children:y.jsx(Pt,{children:y.jsxs("h2",{className:"sm:flex items-center",children:[y.jsx(e0,{}),y.jsx("div",{className:"text-center grow",children:y.jsxs("small",{children:["Edit ",y.jsx(ji,{href:m?.shortUrl??""})]})})]})})}),y.jsx(i,{initialState:E,saving:p,onSave:async T=>{m&&r({...m,data:T})}}),b&&_&&y.jsx($r,{variant:"error",children:y.jsx(oo,{errorData:w,fallbackMessage:"An error occurred while updating short URL :("})}),b&&!_&&y.jsx($r,{variant:"success",children:"Short URL properly edited."})]})},Mye=Nn(MI,["ShortUrlForm"]),ix="delete",Pye=({shortUrl:e,onClose:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[u,d]=C.useState("");C.useEffect(()=>i,[i]);const{loading:f,error:m,deleted:p,errorData:b}=r,_=C.useCallback(()=>{i(),t()},[i,t]),w=C.useCallback(()=>o(e).then(x=>!GC(x)&&t()),[o,e,t]);return y.jsx(uo,{open:n,title:"Delete short URL",variant:"danger",confirmText:f?"Deleting...":"Delete",confirmDisabled:u!==ix||f,onConfirm:w,onClose:_,onClosed:()=>p&&s(e),children:y.jsxs("div",{className:"flex flex-col gap-y-2",children:[y.jsxs("p",{children:[y.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),y.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),y.jsx(ui,{label:y.jsxs(y.Fragment,{children:["Type ",y.jsx("b",{children:ix})," to confirm deletion."]}),type:"text",placeholder:ix,value:u,onChange:x=>d(x.target.value),onKeyDown:x=>x.key==="Enter"&&w()}),m&&y.jsx($r,{variant:Dge(b)?"warning":"error",size:"sm",className:"mt-2",children:y.jsx(oo,{errorData:b,fallbackMessage:"Something went wrong while deleting the URL :("})})]})})},PI=({amount:e=0,loading:t=!1,...n})=>y.jsxs(Rt,{...n,disabled:t,solid:!is(),children:[y.jsx(Ye,{icon:hV})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",Pn(e),")"]})]}),DP=20,RI=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Ln(RI),[{tags:r,search:i,startDate:o,endDate:s,orderBy:u,tagsMode:d}]=Jy(),{flag:f,setToTrue:m,setToFalse:p}=Sn(),b=C.useCallback(async()=>{const _=e/DP,w=async(E=1)=>{const{data:T}=await t().listShortUrls({page:`${E}`,tags:r,searchTerm:i,startDate:o,endDate:s,orderBy:u,tagsMode:d,itemsPerPage:DP});return E>=_?T:T.concat(await w(E+1))};m();const x=await w();n.exportShortUrls(x.map(E=>{const{hostname:T,pathname:j}=new URL(E.shortUrl),O=j.substring(1);return{createdAt:E.dateCreated,domain:T,shortCode:O,shortUrl:E.shortUrl,longUrl:E.longUrl,title:E.title??"",tags:E.tags.join("|"),visits:E?.visitsSummary?.total??E.visitsCount??0}})),p()},[e,t,s,u,n,i,o,m,p,r,d]);return y.jsx(PI,{loading:f,className:"max-lg:w-full",amount:e,onClick:b})},Rye=Nn(RI,["apiClientFactory","ReportExporter"]),Lye="yyyy-MM-dd",LI="yyyy-MM-dd HH:mm",xl=()=>new Date,n3=e=>typeof e!="string",r3=(e,t)=>!e||!n3(e)?e:t?rv(e,t):uJ(e),wl=e=>r3(e,void 0),rl=e=>r3(e,Lye),zh=e=>r3(e,LI),Ai=e=>n3(e)?e:hl(e),gm=(e,t,n)=>{const r=Ai(e),i=t&&Ai(t),o=n&&Ai(n);if(i&&o)try{return dJ(r,{start:i,end:o})}catch{return!1}return i?Yx(r,i)||fJ(r,i):o?Yx(r,o)||iv(r,o):!0},du=(e,t)=>Yx(e,t)||iv(e,t),zv=({date:e,format:t=LI,relative:n=!1})=>{const r=n3(e)?e:hl(e);return y.jsx("time",{dateTime:`${cJ(r)}000`,children:n?`${lJ(xl(),r)} ago`:rv(r,t)})},NI=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${lI(t)}/${r}${i}`},DI=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=fs();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx(Nr,{to:NI(o,e,t),...i,children:r})},Nye=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,u=r?.total??n??0;return i&&u>=i?{icon:xV,className:"text-danger",description:`This short URL cannot be currently visited because it has reached the maximum amount of ${i} visit${i>1?"s":""}`}:s&&iv(Ai(s),xl())?{icon:$A,className:"text-danger",description:`This short URL cannot be visited since ${zh(Ai(s))}`}:o&&iv(xl(),Ai(o))?{icon:$A,className:"text-warning",description:`This short URL will start working on ${zh(Ai(o))}`}:{icon:ju,className:"text-lm-brand dark:text-dm-brand",description:"This short URL can be visited normally"}},Dye=({shortUrl:e})=>{const{icon:t,className:n,description:r}=C.useMemo(()=>Nye(e),[e]);return y.jsx("span",{className:"cursor-help",title:r,children:y.jsx(Ye,{icon:t,className:n})})},kI=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{anchor:i,tooltip:o}=co(),{maxVisits:s,validSince:u,validUntil:d}=t?.meta??{},f=!!s||!!u||!!d,m=y.jsx(DI,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:Pe("inline-block transition-all duration-300",{"scale-150":n}),children:Pn(e)})});return f?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"whitespace-nowrap",children:[m,y.jsxs("small",{className:"cursor-help",...i,children:[s&&y.jsxs(y.Fragment,{children:[" / ",Pn(s)]}),y.jsx("sup",{className:"ml-1",children:y.jsx(Ye,{icon:Xv})})]})]}),y.jsx(fo,{...o,children:y.jsxs("ul",{className:"flex flex-col gap-y-2",children:[s&&y.jsxs("li",{children:["This short URL will not accept more than ",y.jsx("b",{children:Pn(s)})," visit",s===1?"":"s","."]}),u&&y.jsxs("li",{children:["This short URL will not accept visits before ",y.jsx("b",{className:"whitespace-nowrap",children:zh(Ai(u))}),"."]}),d&&y.jsxs("li",{children:["This short URL will not accept visits after ",y.jsx("b",{className:"whitespace-nowrap",children:zh(Ai(d))}),"."]})]})})]}):m},mf=({className:e,...t})=>y.jsx("button",{type:"button",className:Pe("rounded-sm focus-ring cursor-pointer",e),...t}),kye=e=>!!e.onClose,Iye=e=>!!e.onClick,i3=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=Iye(e),s=kye(e),u=o?mf:"span",d=C.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(u,{className:Pe("inline-flex items-center gap-1","font-bold [&]:rounded-md",{"text-sm px-1.5 py-0.5":!s,"py-1 px-2":s,"cursor-pointer":o},r),style:d,onClick:o?e.onClick:void 0,"data-testid":"tag",children:[n??t,s&&y.jsx(mf,{"aria-label":`Remove ${t}`,className:"p-0 text-lg leading-5.5",onClick:e.onClose,children:y.jsx(Ye,{icon:sw,size:"sm"})})]})},Uye=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?y.jsx("i",{className:"whitespace-nowrap",children:y.jsx("small",{children:"No tags"})}):y.jsx("div",{className:"inline-flex flex-wrap gap-1 items-center",children:e.map(r=>y.jsx(i3,{text:r,colorGenerator:n,onClick:()=>t?.(r)},r))}),II=({shortUrl:e,onTagClick:t})=>{const{ShortUrlsRowMenu:n,ColorGenerator:r,useTimeoutToggle:i}=Ln(II),[o,s]=i({initialValue:!1,delay:500}),u=C.useRef(!0),[{excludeBots:d}]=Jy(),f=zn("visits"),m=d??f?.excludeBots;return C.useEffect(()=>{u.current||s(),u.current=!1},[e.visitsSummary?.total,e.visitsSummary?.nonBots,e.visitsCount,s]),y.jsxs(Ke.Row,{className:"relative",children:[y.jsx(Ke.Cell,{className:"whitespace-nowrap",columnName:"Created at:",children:y.jsx(zv,{date:e.dateCreated})}),y.jsx(Ke.Cell,{columnName:"Short URL:",children:y.jsxs("span",{className:"lg:whitespace-nowrap inline-flex items-center gap-x-2",children:[y.jsx(ji,{href:e.shortUrl,className:"max-md:break-all lg:truncate max-w-72"}),y.jsx(EL,{text:e.shortUrl})]})}),y.jsx(Ke.Cell,{className:"break-all",columnName:`${e.title?"Title":"Long URL"}:`,children:y.jsx(ji,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx(Ke.Cell,{className:"break-all [&]:lg:hidden",columnName:"Long URL:",children:y.jsx(ji,{href:e.longUrl})}),y.jsx(Ke.Cell,{columnName:"Tags:",children:y.jsx(Uye,{tags:e.tags,colorGenerator:r,onTagClick:t})}),y.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Visits:",children:y.jsx(kI,{visitsCount:(m?e.visitsSummary?.nonBots:e.visitsSummary?.total)??e.visitsCount??0,shortUrl:e,active:o,asLink:!0})}),y.jsx(Ke.Cell,{columnName:"Status:",className:"max-lg:border-none",children:y.jsxs("div",{className:"inline-flex gap-2",children:[y.jsx(Dye,{shortUrl:e}),e.hasRedirectRules&&y.jsx(DI,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:y.jsx(Ye,{icon:KR})})]})}),y.jsx(Ke.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:y.jsx(n,{shortUrl:e})})]})},zye=Nn(II,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),UI=C.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>y.jsxs("div",{className:Pe("relative rounded w-12",r),style:{backgroundColor:t,borderColor:t},children:[y.jsx(oi,{className:"w-full h-full cursor-pointer relative z-1 opacity-0",type:"color",value:t,onChange:o=>n(o.target.value),ref:i,name:e,"aria-label":e.replace("-"," ")}),y.jsx(Ye,{icon:H$,className:"absolute top-1/2 left-1/2 -translate-1/2",style:{color:jw(t.substring(1))?"#000":"#fff"}})]})),kP=({color:e,onChange:t,name:n})=>{const r=C.useRef(null);return y.jsxs("div",{className:"flex",children:[y.jsx(UI,{name:`${n}-picker`,color:e,onChange:t,className:"rounded-r-none",ref:r}),y.jsx(oi,{readOnly:!0,value:e,onClick:()=>r.current?.click(),"aria-label":n,"data-testid":"text-input",className:"grow rounded-l-none"})]})};function Bye(e){switch(e){case"L":return 1;case"M":return .5;default:return .3}}const Fye=C.forwardRef(({data:e,color:t="#000000",bgColor:n="#ffffff",margin:r=0,errorCorrection:i="L",size:o=300,drawType:s="canvas",logo:u},d)=>{const f=C.useRef(null),m=C.useRef(new PJ),p=C.useCallback((_,w)=>m.current.download({name:_,extension:w}),[]),b=C.useCallback(_=>new Promise((w,x)=>{const E=m.current.getRawData(_),T=new FileReader;T.onload=()=>{const{result:j}=T;j&&w(j.toString())},T.onerror=x,E.then(j=>{j instanceof Blob?T.readAsDataURL(j):x(new Error("QR code image blob not available"))})}),[]);return C.useImperativeHandle(d,()=>({download:p,getDataUri:b}),[p,b]),C.useEffect(()=>{const _=f.current;m.current.append(_)},[]),C.useEffect(()=>{m.current.update({type:s,data:e,width:o+r,height:o+r,margin:r,dotsOptions:{color:t},backgroundOptions:{color:n},qrOptions:{errorCorrectionLevel:i},imageOptions:{margin:5,imageSize:Bye(i)},image:u})},[n,t,e,s,i,u,r,o]),y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"#qr-code-canvas-container canvas { max-width: 100% }"}}),y.jsx("div",{ref:f,id:"qr-code-canvas-container"})]})}),$ye=async({text:e,onCopy:t},n=navigator)=>{const r=typeof e=="string"?e:await e;return n.clipboard?.writeText(r).then(()=>t?.({text:r,copied:!0})).catch(()=>t?.({text:r,copied:!1}))},IP=({name:e,value:t,step:n,min:r,max:i,onChange:o})=>{const s=C.useId();return y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsxs("label",{htmlFor:s,className:"capitalize",children:[e,": ",t,"px"]}),y.jsx("input",{id:s,type:"range",value:t,step:n,min:r,max:i,onChange:u=>o(Number(u.target.value))})]})},Vye=({shortUrl:{shortUrl:e,shortCode:t},onClose:n,isOpen:r,qrDrawType:i})=>{const o=zn("qrCodes",Ef),[{size:s,margin:u,color:d,bgColor:f,errorCorrection:m,format:p},b]=C.useState(o),_=C.useCallback(Q=>b(oe=>({...oe,...Q})),[]),w=C.useRef(null),[x,E]=C.useState(),T=C.useCallback(Q=>{const oe=Q.target.files?.[0];oe&&E({url:URL.createObjectURL(new Blob([oe],{type:oe.type})),name:oe.name})},[]),j=C.useRef(null),O=C.useCallback(()=>j.current?.download(`${t}-qr-code`,p),[p,t]),[N,F]=sy({}),$=C.useCallback(()=>{const Q=j.current?.getDataUri(p)??"";return $ye({text:Q,onCopy:F})},[p,F]),K=C.useCallback(()=>{b(o),E(void 0)},[o]);return y.jsx(uo,{size:"lg",open:r,onClose:n,title:y.jsxs(y.Fragment,{children:["QR code for ",y.jsx(ji,{href:e})]}),onClosed:K,children:y.jsxs("div",{className:"flex flex-col-reverse lg:flex-row gap-4",children:[y.jsx("div",{className:"grow flex items-center justify-around",children:y.jsxs("div",{className:"flex flex-col gap-1 items-center","data-testid":"qr-code-container",children:[y.jsx(Fye,{ref:j,data:e,size:s,margin:u,errorCorrection:m,color:d,bgColor:f,logo:x?.url,drawType:i}),y.jsxs("div",{className:"italic",children:["Preview (",s+u,"x",s+u,")"]})]})}),y.jsxs("div",{className:"flex flex-col gap-2 lg:w-64",children:[y.jsx(IP,{name:"size",value:s,onChange:Q=>_({size:Q}),step:10,min:50,max:1e3}),y.jsx(IP,{name:"margin",value:u,onChange:Q=>_({margin:Q}),step:1,min:0,max:100}),y.jsx(_N,{errorCorrection:m,onChange:Q=>_({errorCorrection:Q})}),y.jsx(kP,{name:"color",color:d,onChange:Q=>_({color:Q})}),y.jsx(kP,{name:"background",color:f,onChange:Q=>_({bgColor:Q})}),!x&&y.jsxs(y.Fragment,{children:[y.jsxs(Rt,{variant:"secondary",onClick:()=>w.current?.click(),children:[y.jsx(Ye,{icon:BW}),"Select logo"]}),y.jsx("input",{ref:w,type:"file",accept:"image/*","aria-hidden":!0,tabIndex:-1,className:"hidden",onChange:T,"data-testid":"logo-input"})]}),x&&y.jsxs(Rt,{variant:"secondary",onClick:()=>E(void 0),children:[y.jsx(Ye,{icon:Zv}),y.jsxs("div",{className:"truncate",children:["Clear logo (",x.name,")"]})]}),y.jsx("div",{className:"my-auto",children:y.jsx("hr",{className:"my-2"})}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(xN,{format:p,onChange:Q=>_({format:Q})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Rt,{onClick:$,"aria-label":"Copy data URI",title:"Copy data URI",className:"h-full",children:y.jsx(Ye,{icon:N?ju:SL})}),y.jsxs(Rt,{solid:!0,onClick:O,className:"grow",children:["Download ",y.jsx(Ye,{icon:WR})]})]})]})]})]})})},zI=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r}=Ln(zI),{flag:i,setToTrue:o,setToFalse:s}=Sn(),{flag:u,setToTrue:d,setToFalse:f}=Sn(),m=Wy(),p=ra("shortUrlRedirectRules"),{confirmDeletions:b=!0}=zn("shortUrlsList",{}),_=C.useCallback(async()=>{const E=await t(e);GC(E)||n(e)},[t,e,n]),w=fs(),x=C.useCallback(E=>NI(w,e,E),[w,e]);return y.jsxs(y.Fragment,{children:[y.jsxs(nn,{menuAlignment:"right",children:[y.jsxs(nn.Item,{to:x("visits"),className:"gap-1.5",children:[y.jsx(Ye,{icon:uw})," Visit stats"]}),m&&y.jsxs(y.Fragment,{children:[y.jsxs(nn.Item,{className:"gap-1.5",disabled:!m.canAddItemWithName(e.shortUrl),onClick:()=>m.addItemToCompare({name:e.shortUrl,query:XC(e)}),children:[y.jsx(Ye,{icon:Kv})," Compare visits"]}),y.jsx(nn.Separator,{})]}),y.jsxs(nn.Item,{to:x("edit"),className:"gap-1.5",children:[y.jsx(Ye,{icon:ow})," Edit short URL"]}),p&&y.jsxs(nn.Item,{to:x("redirect-rules"),className:"gap-1.5",children:[y.jsx(Ye,{icon:KR})," Manage redirect rules"]}),y.jsxs(nn.Item,{onClick:o,className:"gap-1.5",children:[y.jsx(Ye,{icon:LV})," QR code"]}),y.jsx(nn.Separator,{}),y.jsxs(nn.Item,{className:"[&]:text-danger gap-1.5",onClick:b?d:_,children:[y.jsx(Ye,{icon:e6})," Delete short URL"]})]}),y.jsx(Vye,{shortUrl:e,isOpen:i,onClose:s}),y.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:u,onClose:f})]})},Hye=Nn(zI,["DeleteShortUrlModal"]),BI="shlink/shortUrlCreation",UP={saving:!1,saved:!1,error:!1},qye=e=>nr(`${BI}/createShortUrl`,t=>e().createShortUrl(t)),Gye=e=>{const{reducer:t,actions:n}=Lt({name:BI,initialState:UP,reducers:{resetCreateShortUrl:()=>UP},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Ii(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},FI="shlink/shortUrlEdition",Yye={saving:!1,saved:!1,error:!1},Wye=e=>nr(`${FI}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),Kye=e=>Lt({name:FI,initialState:Yye,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),zP="shlink/shortUrlsDetails",BP={loading:!1,error:!1},Zye=e=>{const t=nr(`${zP}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),s=await Promise.all(r.map(async u=>{const{shortCode:d,domain:f}=u,m=o?.shortUrls?.data.find(p=>vh(p,d,f));return[u,m??await e().getShortUrl({shortCode:d,domain:f})]}));return new Map(s)}),{reducer:n}=Lt({name:zP,initialState:BP,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Ii(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...BP,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},Xye=({domains:e,value:t,onChange:n})=>{const{flag:r,setToTrue:i,setToFalse:o}=Sn(),s=!t,u=C.useCallback(()=>{n(""),o()},[n,o]),d=C.useCallback(()=>{n(""),i()},[n,i]);return r?y.jsxs("div",{className:"flex",children:[y.jsx(oi,{value:t??"",placeholder:"Domain",onChange:f=>n(f.target.value),className:"flex-grow rounded-r-none [&]:border-r-0"}),y.jsx(Rt,{variant:"secondary",type:"button",className:"rounded-l-none","aria-label":"Back to domains list",title:"Existing domains",onClick:u,children:y.jsx(Ye,{icon:AV})})]}):y.jsxs(Qe,{buttonContent:s?"Domain":`Domain: ${t}`,buttonClassName:Pe("w-full",{"text-placeholder":s}),children:[e.map(({domain:f,isDefault:m})=>y.jsxs(Qe.Item,{selected:(t===f||m)&&s,onClick:()=>n(f),className:"flex justify-between items-center",children:[f,m&&y.jsx(Du,{children:"default"})]},f)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{onClick:d,children:y.jsx("i",{children:"New domain"})})]})},ax=({icon:e,className:t,...n})=>{const r=C.useRef(null);return y.jsxs("div",{className:"relative",children:[y.jsx(oi,{className:Pe("pr-11",t),ref:r,...n}),y.jsx(Ye,{icon:e,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer",onClick:()=>r.current?.focus()})]})},Qye=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const s=C.useCallback(({target:d})=>{if(!d.value){r?.(null);return}r?.(Ai(d.value))},[r]),u=C.useMemo(()=>i?zh:rl,[i]);return y.jsx(oi,{...o,type:i?"datetime-local":"date",value:u(n)??"",max:u(t)??void 0,min:u(e)??void 0,onChange:s})},Bv=({label:e,id:t,...n})=>{const r=C.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),y.jsx(Qye,{id:t??r,...n})]})},Jye=({className:e,placement:t,children:n})=>{const{anchor:r,tooltip:i}=co({placement:t});return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,...r,"data-placement":t,"data-testid":"tooltip-anchor",children:y.jsx(Ye,{icon:Xv})}),y.jsx(fo,{...i,children:n})]})},ox=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("div",{className:"flex items-center gap-x-2",children:[y.jsxs(ja,{className:"inline-flex items-center gap-x-1.5",children:[y.jsx(Aw,{checked:n,onChange:r}),e]}),y.jsx(Jye,{placement:"right",children:t})]}),e0e=e=>y.jsx(uo,{...e,title:"Info",size:"lg",children:y.jsxs("div",{className:"flex flex-col gap-y-2",children:[y.jsxs("p",{children:["When the ",y.jsx("b",{children:y.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),y.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),y.jsxs("ul",{className:"list-disc pl-5",children:[y.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."}),y.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.",y.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),y.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"})]})]})}),t0e=()=>{const{flag:e,setToFalse:t,setToTrue:n}=Sn();return y.jsxs(y.Fragment,{children:[y.jsx(mf,{title:"What does this mean?",onClick:n,children:y.jsx(Ye,{icon:Xv})}),y.jsx(e0e,{open:e,onClose:t})]})},pg=e=>typeof e=="string"?hl(e):e,n0e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,$I=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:o})=>{const{TagsSelector:s}=Ln($I),[u,d]=C.useState(r),f=n0e(u),m=ra("deviceLongUrls"),p=ra("urlValidation"),b=p||f,_=C.useCallback(()=>d(r),[r]),w=C.useCallback((O,N)=>vu(O)?O:vu(N)?null:void 0,[]),x=C.useCallback((O,N)=>d(({deviceLongUrls:F={},...$})=>({...$,deviceLongUrls:{...F,[O]:w(N,r.deviceLongUrls?.[O])}})),[r.deviceLongUrls,w]),E=C.useCallback(O=>d(N=>({...N,tags:O})),[]),T=C.useCallback(async O=>(O.preventDefault(),n(u).then(N=>f&&!GC(N)&&_()).catch(()=>{})),[f,n,_,u]),j=C.useMemo(()=>y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(oi,{size:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:u.longUrl,onChange:O=>d(N=>({...N,longUrl:O.target.value}))}),y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[e&&f&&y.jsx("div",{className:"w-full lg:w-1/2",children:y.jsx(oi,{size:"lg",placeholder:"Custom slug",value:u.customSlug??"",onChange:O=>d(N=>({...N,customSlug:O.target.value}))})}),y.jsx("div",{className:Pe("w-full",{"lg:w-1/2":e}),children:y.jsx(s,{tags:i.tags,selectedTags:u.tags??[],onChange:E})})]})]}),[s,e,E,f,u,i.tags]);return y.jsxs("form",{name:"shortUrlForm",onSubmit:T,className:"flex flex-col gap-4",children:[e&&j,!e&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("div",{className:Pe({"sm:w-1/2":m,"w-full":!m}),children:y.jsx(Pt,{title:"Main options",className:"card",children:j})}),m&&y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Device-specific long URLs",bodyClassName:"flex flex-col gap-y-4",className:"card",children:[y.jsx(ax,{type:"url",icon:LJ,placeholder:"Android-specific redirection",value:u.deviceLongUrls?.android??"",onChange:({target:O})=>x("android",O.value)}),y.jsx(ax,{type:"url",icon:RJ,placeholder:"iOS-specific redirection",value:u.deviceLongUrls?.ios??"",onChange:({target:O})=>x("ios",O.value)}),y.jsx(ax,{type:"url",icon:OV,placeholder:"Desktop-specific redirection",value:u.deviceLongUrls?.desktop??"",onChange:({target:O})=>x("desktop",O.value)})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Customize the short URL",bodyClassName:"flex flex-col gap-4",className:"card h-full",children:[y.jsx(oi,{placeholder:"Title",value:u.title??"",onChange:({target:O})=>d(N=>({...N,title:w(O.value,r.title)}))}),f&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx("div",{className:"lg:w-1/2",children:y.jsx(oi,{placeholder:"Custom slug",value:u.customSlug??"",onChange:O=>d(N=>({...N,customSlug:O.target.value})),disabled:vu(u.shortCodeLength)})}),y.jsx("div",{className:"lg:w-1/2",children:y.jsx(oi,{type:"number",placeholder:"Short code length",value:u.shortCodeLength??"",onChange:O=>d(N=>({...N,shortCodeLength:O.target.value})),min:4,disabled:vu(u.customSlug)})})]}),y.jsx(Xye,{value:u.domain,onChange:O=>d(N=>({...N,domain:O})),domains:o.domains})]})]})}),y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Limit access to the short URL",className:"card h-full",bodyClassName:"flex flex-col gap-y-4",children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx("div",{className:"lg:w-1/2",children:y.jsx(Bv,{label:"Enabled since",withTime:!0,maxDate:u.validUntil?pg(u.validUntil):void 0,value:u.validSince?pg(u.validSince):null,onChange:O=>d(N=>({...N,validSince:wl(O)}))})}),y.jsx("div",{className:"lg:w-1/2",children:y.jsx(Bv,{label:"Enabled until",withTime:!0,minDate:u.validSince?pg(u.validSince):void 0,value:u.validUntil?pg(u.validUntil):null,onChange:O=>d(N=>({...N,validUntil:wl(O)}))})})]}),y.jsx(ui,{label:"Maximum visits allowed:",type:"number",min:1,placeholder:"25...",value:u.maxVisits??"",onChange:O=>d(N=>({...N,maxVisits:vu(O.target.value)?Number(O.target.value):null}))})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[b&&y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Extra checks",className:"h-full",children:[p&&y.jsx(ox,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:u.validateUrl,onChange:O=>d(N=>({...N,validateUrl:O})),children:"Validate URL"}),f&&y.jsxs("p",{className:"inline-flex items-center gap-x-2",children:[y.jsxs(ja,{className:"inline-flex items-center gap-x-1.5",children:[y.jsx(Aw,{checked:u.findIfExists,onChange:O=>d(N=>({...N,findIfExists:O}))}),"Use existing URL if found"]}),y.jsx(t0e,{})]})]})}),y.jsx("div",{className:Pe("w-full",{"sm:w-1/2":b}),children:y.jsxs(Pt,{title:"Configure behavior",children:[y.jsx(ox,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:u.crawlable,onChange:O=>d(N=>({...N,crawlable:O})),children:"Make it crawlable"}),y.jsx(ox,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:u.forwardQuery,onChange:O=>d(N=>({...N,forwardQuery:O})),children:"Forward query params on redirect"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(Rt,{type:"submit",inline:!0,solid:!0,disabled:t||!u.longUrl,className:"max-md:w-full",children:t?"Saving...":"Save"})})]})},r0e=Nn($I,["TagsSelector"]),i0e=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-y-3 gap-x-4",children:[y.jsx("div",{className:"flex flex-col",children:y.jsx(Bv,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"flex flex-col",children:y.jsx(Bv,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&rf(o))})})]}),t0="all",VI={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[t0]:void 0},HI=Object.keys(VI),a0e=e=>!e||!e.startDate&&!e.endDate,Fv=e=>typeof e=="string"&&HI.includes(e),o0e=HI.filter(e=>e!==t0),FP=e=>e?Ai(e):null,qI=(e,t)=>({startDate:FP(e),endDate:FP(t)}),s0e=e=>{if(!(!e||a0e(e)))return e.startDate&&!e.endDate?`Since ${rl(e.startDate)}`:!e.startDate&&e.endDate?`Until ${rl(e.endDate)}`:`${rl(e.startDate)} - ${rl(e.endDate)}`},$P=e=>{if(!(!e||e===t0))return Fv(e)?VI[e]:s0e(e)},ta=e=>Iu(av(xl(),e)),Fc=e=>({startDate:e,endDate:rf(xl())}),GI=e=>[[()=>e==="today",()=>Fc(Iu(xl()))],[()=>e==="yesterday",()=>({startDate:ta(1),endDate:rf(av(xl(),1))})],[()=>e==="last7Days",()=>Fc(ta(7))],[()=>e==="last30Days",()=>Fc(ta(30))],[()=>e==="last90Days",()=>Fc(ta(90))],[()=>e==="last180Days",()=>Fc(ta(180))],[()=>e==="last365Days",()=>Fc(ta(365))]].find(([t])=>t())?.[1]()??{},l0e=e=>{const t=Ai(e);return[[()=>du(Iu(xl()),t),"today"],[()=>du(ta(1),t),"yesterday"],[()=>du(ta(7),t),"last7Days"],[()=>du(ta(30),t),"last30Days"],[()=>du(ta(90),t),"last90Days"],[()=>du(ta(180),t),"last180Days"],[()=>du(ta(365),t),"last365Days"]].find(([n])=>n())?.[1]??t0},YI=e=>Fv(e)?GI(e):e,WI=e=>!!(e&&e.startDate),u0e=({startDate:e,endDate:t})=>{const n=jN(rf(t??new Date),Iu(e))+1,r=av(Iu(e),n),i=av(rf(e),1);return{startDate:r,endDate:i}},c0e=e=>{if(WI(e))return jN(e.endDate??new Date,e.startDate)},a3=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=C.useMemo(()=>$P(t)??n,[t,n]),[o,s]=C.useMemo(()=>Fv(t)?[void 0,t]:[t,void 0],[t]),u=C.useCallback(d=>{Fv(d)?e(GI(d),d):e(d)},[e]);return y.jsxs(Qe,{buttonDisabled:r,buttonContent:i,containerClassName:"[&]:block",buttonClassName:"w-full",children:[y.jsx(Qe.Item,{selected:s==="all",onClick:()=>u("all"),children:n}),y.jsx(Qe.Separator,{}),o0e.map(d=>y.jsx(Qe.Item,{selected:s===d,onClick:()=>u(d),children:$P(d)},d)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Misc,{children:y.jsx(i0e,{...o,onStartDateChange:d=>u({...o,startDate:d}),onEndDateChange:d=>u({...o,endDate:d})})})]})},f0e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},d0e=({onChange:e,selected:t={},domains:n})=>{const r=ra("filterShortUrlsByDomain"),{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1,domain:u}=t,d=C.useCallback(m=>e({...t,...m}),[e,t]),f=C.useCallback(m=>d({[m]:!t?.[m]}),[d,t]);return y.jsxs(Qe,{buttonContent:"Filters",buttonClassName:"w-full",menuAlignment:"right",children:[y.jsx(Qe.Title,{children:"Visits:"}),y.jsx(Qe.Item,{selected:i,onClick:()=>f("excludeBots"),children:"Ignore visits from bots"}),y.jsx(Qe.Separator,{}),y.jsx(Qe.Title,{children:"Short URLs:"}),y.jsx(Qe.Item,{selected:o,onClick:()=>f("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(Qe.Item,{selected:s,onClick:()=>f("excludePastValidUntil"),children:"Exclude enabled in the past"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Qe.Separator,{}),y.jsxs(Qe.Title,{children:["Domain: ",!n&&y.jsx("i",{children:"loading..."})]}),n?.map(m=>{const p=m.isDefault?df:m.domain,b=u===p;return y.jsx(Qe.Item,{selected:b,onClick:()=>d({domain:b?void 0:p}),children:m.domain},m.domain)})]}),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{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:"italic",children:"Reset to defaults"})]})},KI=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:s,TagsSelector:u}=Ln(KI),[{search:d,tags:f,startDate:m,endDate:p,excludeBots:b,excludeMaxVisitsReached:_,excludePastValidUntil:w,domain:x,tagsMode:E="any"},T]=Jy(),j=zn("visits"),[O,N]=C.useState(),F=C.useCallback(({startDate:J,endDate:te},he)=>{T({startDate:wl(J)??void 0,endDate:wl(te)??void 0}),N(he)},[T]),$=C.useCallback(J=>T({search:J||void 0}),[T]),K=C.useCallback(J=>T({tags:J}),[T]),Q=C.useCallback(()=>T({tagsMode:E==="any"?"all":"any"}),[E,T]),{anchor:oe,tooltip:ee}=co({placement:"left"});return y.jsxs("div",{className:Pe("flex flex-col gap-y-4",e),children:[y.jsx(wf,{defaultValue:d,onChange:$}),y.jsxs("div",{className:"flex w-full",children:[y.jsx("div",{className:"flex-grow",children:y.jsx(u,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:f,onChange:K,containerClassName:Pe(f.length>1&&"[&]:rounded-r-none")})}),f.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(Rt,{variant:"secondary",onClick:Q,"aria-label":"Change tags mode",className:"[&]:border-l-none [&]:rounded-l-none",...oe,children:y.jsx(Ye,{className:"text-2xl",icon:E==="all"?XR:TV})}),y.jsx(fo,{...ee,children:E==="all"?y.jsxs(y.Fragment,{children:["With ",y.jsx("b",{children:"all"})," the tags"]}):y.jsxs(y.Fragment,{children:["With ",y.jsx("b",{children:"any"})," of the tags"]})})]})]}),y.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-y-4",children:[y.jsxs("div",{className:"lg:w-2/3 xl:w-1/2 inline-flex flex-col md:flex-row gap-4",children:[y.jsx("div",{className:"grow",children:y.jsx(a3,{defaultText:"All short URLs",dateRangeOrInterval:O??qI(m,p),onDatesChange:F})}),y.jsx(d0e,{selected:{excludeBots:b??j?.excludeBots,excludeMaxVisitsReached:_,excludePastValidUntil:w,domain:x},onChange:T,domains:o.loading?void 0:o.domains})]}),y.jsxs("div",{className:"lg:w-1/3 xl:w-1/2 inline-flex gap-3",children:[y.jsx("div",{className:"max-lg:w-1/2 lg:hidden",children:y.jsx(Zh,{containerClassName:"[&]:block",buttonClassName:"w-full",prefixed:!1,items:f0e,order:n,onChange:({field:J,dir:te})=>r(J,te)})}),y.jsx("div",{className:"max-lg:w-1/2",children:y.jsx(s,{amount:t})})]})]})]})},h0e=Nn(KI,["ExportShortUrlsBtn","TagsSelector"]);function yh({currentOrder:e,field:t,className:n="ml-1"}){return!e.dir||e.field!==t?null:y.jsx(Ye,{icon:e.dir==="ASC"?vV:JR,className:n})}const m0e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=fs(),o=C.useCallback(s=>`${i}/list-short-urls/${s}${t}`,[t,i]);return r<=1?y.jsx("div",{"data-testid":"empty-gap",className:"pb-4"}):y.jsx("div",{"data-testid":"short-urls-paginator",className:Pe("sticky bottom-0 py-4 -mx-0.5","flex justify-around","bg-lm-primary dark:bg-dm-primary","border-t border-lm-border dark:border-dm-border"),children:y.jsx(uy,{urlForPage:o,currentPage:n,pagesCount:r})})},p0e={field:"dateCreated",dir:"DESC"},ZI=La(({listShortUrls:e,shortUrlsList:t})=>{const{ShortUrlsTable:n,ShortUrlsFilteringBar:r}=Ln(ZI),{page:i}=yf(),o=Er(),[{tags:s,search:u,startDate:d,endDate:f,orderBy:m,tagsMode:p,excludeBots:b,excludePastValidUntil:_,excludeMaxVisitsReached:w,domain:x},E]=Jy(),T=Fw(),[j,O]=C.useState(m??T.shortUrlsList?.defaultOrdering??p0e),{pagination:N}=t?.shortUrls??{},F=C.useMemo(()=>b??T.visits?.excludeBots,[b,T.visits?.excludeBots]),$=C.useCallback((te,he)=>{E({orderBy:{field:te,dir:he}}),O({field:te,dir:he})},[E]),K=te=>()=>$(te,LL({currentOrderDir:j.dir,currentField:j.field,newField:te})),Q=te=>y.jsx(yh,{currentOrder:j,field:te}),oe=C.useCallback(te=>E({tags:[...new Set([...s,te])]}),[s,E]),ee=C.useCallback(({field:te,dir:he})=>F&&te==="visits"?{field:"nonBotVisits",dir:he}:{field:te,dir:he},[F]),J=WC();return C.useEffect(()=>{e({page:i,searchTerm:u,tags:s,startDate:d,endDate:f,orderBy:ee(j),tagsMode:p,excludePastValidUntil:_,excludeMaxVisitsReached:w,domain:x})},[e,ee,i,u,s,d,f,j,p,_,w,x]),y.jsxs(YC,{value:J,children:[y.jsx(r,{shortUrlsAmount:t.shortUrls?.pagination.totalItems,order:j,handleOrderBy:$,className:"mb-4"}),y.jsx(KC,{type:"short-urls",className:"mb-4"}),y.jsxs(Pt,{bodyClassName:Pe({"pb-0":!t.loading}),children:[y.jsx(n,{shortUrlsList:t,orderByColumn:K,renderOrderIcon:Q,onTagClick:oe}),!t.loading&&y.jsx(m0e,{paginator:N,currentQueryString:o.search})]})]})},()=>[aa.visits]),g0e=Nn(ZI,["ShortUrlsTable","ShortUrlsFilteringBar"]),sx=({children:e,danger:t})=>y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:6,className:Pe("text-center",{"text-danger font-bold":t}),children:e})}),v0e=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:o}=e;return r?y.jsx(sx,{danger:!0,children:"Something went wrong while loading short URLs :("}):i?y.jsx(sx,{children:"Loading..."}):!o||o.data.length===0?y.jsx(sx,{children:"No results found"}):o?.data.map(s=>y.jsx(n,{shortUrl:s,onTagClick:t},s.shortUrl))},XI=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r})=>{const{ShortUrlsRow:i}=Ln(XI),o=Pe({"cursor-pointer":!!e});return y.jsx(Ke,{className:"mb-[-1px] w-full",header:y.jsxs(Ke.Row,{children:[y.jsxs(Ke.Cell,{className:o,onClick:e?.("dateCreated"),children:["Created at ",t?.("dateCreated")]}),y.jsxs(Ke.Cell,{className:o,onClick:e?.("shortCode"),children:["Short URL ",t?.("shortCode")]}),y.jsxs(Ke.Cell,{children:[y.jsxs(mf,{className:Pe("p-0",o),onClick:e?.("title"),children:["Title ",t?.("title")]}),"  /  ",y.jsxs(mf,{className:Pe("p-0",o),onClick:e?.("longUrl"),children:[y.jsx("span",{className:"whitespace-nowrap",children:"Long URL"})," ",t?.("longUrl")]})]}),y.jsx(Ke.Cell,{children:"Tags"}),y.jsx(Ke.Cell,{className:o,onClick:e?.("visits"),children:y.jsxs("span",{className:"whitespace-nowrap",children:["Visits ",t?.("visits")]})}),y.jsx(Ke.Cell,{colSpan:2,"aria-hidden":!0})]}),children:y.jsx(v0e,{ShortUrlsRow:i,shortUrlsList:n,onTagClick:r})})},y0e=Nn(XI,["ShortUrlsRow"]),b0e=(e,t)=>{e.factory("ShortUrlsList",g0e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",y0e),e.factory("ShortUrlsRow",zye),e.factory("ShortUrlsRowMenu",Hye),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",r0e),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",jye),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Mye),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Pye),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("ExportShortUrlsBtn",Rye),e.factory("ShortUrlsFilteringBar",h0e),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",lve,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Gye,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Kye,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",ave,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",Zye,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",sve,"apiClientFactory"),e.serviceFactory("createShortUrl",qye,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",ive,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>cI),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",Wye,"apiClientFactory")},_0e=({tag:e,onClose:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:u,deleted:d,errorData:f}=i;return y.jsxs(uo,{title:"Delete tag",variant:"danger",open:n,onClose:t,onClosed:()=>d&&o(e),onConfirm:async()=>{await r(e),t()},confirmText:s?"Deleting tag...":"Delete tag",confirmDisabled:s,children:["Are you sure you want to delete tag ",y.jsx("b",{children:e}),"?",u&&y.jsx($r,{variant:"error",size:"sm",className:"mt-2",children:y.jsx(oo,{errorData:f,fallbackMessage:"Something went wrong while deleting the tag :("})})]})},QI=({tag:e,editTag:t,onClose:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:s}=Ln(QI),[u,d]=C.useState(e),[f,m]=C.useState(s.getColorForKey(e)),{editing:p,error:b,edited:_,errorData:w}=o,x=C.useCallback(async()=>{await t({oldName:e,newName:u,color:f}),n()},[f,t,u,n,e]),E=C.useCallback(()=>_&&r({oldName:e,newName:u,color:f}),[f,_,u,e,r]);return y.jsxs(uo,{title:"Edit tag",open:i,onClose:n,onClosed:E,onConfirm:x,confirmText:p?"Saving...":"Save",confirmDisabled:p,children:[y.jsxs("div",{className:"flex",children:[y.jsx(UI,{color:f,onChange:m,className:"rounded-r-none",name:"tag-color"}),y.jsx(oi,{className:"grow [&]:rounded-l-none",value:u,placeholder:"Tag",required:!0,onChange:({target:T})=>d(T.value)})]}),b&&y.jsx($r,{variant:"error",size:"sm",className:"mt-2",children:y.jsx(oo,{errorData:w,fallbackMessage:"Something went wrong while editing the tag :("})})]})},x0e=Nn(QI,["ColorGenerator"]),JI=({onChange:e,placeholder:t,...n})=>{const{ColorGenerator:r}=Ln(JI),i=zn("shortUrlCreation")?.tagFilteringMode??"startsWith";return y.jsx(cK,{...n,onTagsChange:e,getColorForTag:o=>r.getColorForKey(o),size:"lg",placeholder:t??"Add tags to the URL",searchMode:i})},w0e=Nn(JI,["ColorGenerator"]),U2="shlink/tagDelete",S0e={deleting:!1,deleted:!1,error:!1},e9=cn(`${U2}/tagDeleted`),C0e=e=>{const t=nr(`${U2}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Lt({name:U2,initialState:S0e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Ii(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},o3="shlink/tagEdit",E0e={editing:!1,edited:!1,error:!1},t9=cn(`${o3}/tagEdited`),A0e=(e,t)=>nr(`${o3}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag({oldName:n,newName:r}),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),T0e=e=>Lt({name:o3,initialState:E0e,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),s3="shlink/tagsList",lx={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},VP=(e,t)=>n=>n===e?t:n,HP=(e,t)=>e.filter(n=>n!==t),O0e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:s}=i,u=n[r];return{...n,[r]:{...u,visitsSummary:u.visitsSummary&&{total:u.visitsSummary.total+o+s,bots:u.visitsSummary.bots+o,nonBots:u.visitsSummary.nonBots+s},visitsCount:(u.visitsCount??0)+o+s}}},{...t}),j0e=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n?.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),M0e=e=>nr(`${s3}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...o})=>(r[i]=o,r),{});return{tags:Object.keys(n),stats:n}}),n9=cn(`${s3}/filterTags`),P0e=(e,t)=>Lt({name:s3,initialState:lx,reducers:{},extraReducers:n=>{n.addCase(n9,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...lx,error:!0,errorData:Ii(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...lx,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(e9,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:HP(r,s),filteredTags:HP(i,s)})),n.addCase(t9,({tags:r,filteredTags:i,stats:o,...s},{payload:u})=>({...s,stats:{...o,[u.newName]:o[u.oldName]},tags:r.map(VP(u.oldName,u.newName)).sort(),filteredTags:i.map(VP(u.oldName,u.newName)).sort()})),n.addCase(Df,(r,{payload:i})=>({...r,stats:O0e(j0e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),R0e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},r9=La(({filterTags:e,tagsList:t})=>{const{TagsTable:n}=Ln(r9),r=Fw(),[i,o]=C.useState(r.tags?.defaultOrdering??{}),s=C.useMemo(()=>{const d=t.filteredTags.map(f=>{const m=t.stats[f],p=(r.visits?.excludeBots?m?.visitsSummary?.nonBots:m?.visitsSummary?.total)??m?.visitsCount??0;return{tag:f,visits:p,shortUrls:m?.shortUrlsCount??0}});return NL(d,i)},[i,r.visits?.excludeBots,t.filteredTags,t.stats]),u=WC();return t.loading?y.jsx(Zo,{loading:!0}):t.error?y.jsx($r,{variant:"error",children:y.jsx(oo,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsx(YC,{value:u,children:y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(wf,{onChange:e}),y.jsx("div",{className:"flex flex-col lg:flex-row lg:justify-end",children:y.jsx("div",{className:"lg:w-1/2",children:y.jsx(Zh,{containerClassName:"[&]:block",buttonClassName:"w-full",items:R0e,order:i,onChange:o})})}),y.jsx(KC,{type:"tags"}),y.jsx(n,{sortedTags:s,currentOrder:i,orderByColumn:d=>()=>o(Pw({currentField:i.field,currentOrderDir:i.dir,newField:d}))})]})})},()=>[aa.visits]),L0e=Nn(r9,["TagsTable"]),N0e=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o?.contains("visits-table"))||document.querySelector(".modal")||r()};return HJ({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},D0e=(e,t)=>{const[n,r]=C.useState(t),i=C.useCallback(o=>{const{location:s,history:u}=window,d=AL(s.search);d[e]=o,u.pushState(null,"",`${s.pathname}?${Mw(d)}`),r(o)},[e]);return[n,i]},l3=e=>{const t=Sf();return C.useMemo(()=>t[e]?.split(",").filter(Boolean)??[],[e,t])},k0e=(e,t)=>{const n=C.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=C.useState(n());return C.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},I0e=(e,t,n)=>{C.useEffect(()=>{if(!n)return()=>{};const r=new AbortController;return document.addEventListener("keydown",i=>i.key===e&&t(),{signal:r.signal}),()=>r.abort()},[n,t,e])},U0e=20,i9=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Ln(i9),i=C.useRef(!0),{page:o=1}=Sf(),[s,u]=D0e("page",Number(o)),d=C.useCallback(_=>{u(_),scrollTo(0,0)},[u]),f=Kc(e,U0e),m=f.length>1,p=f[s-1]??[];C.useEffect(()=>{i.current||d(1),i.current=!1},[d,e]);const b="cursor-pointer top-(--header-height) sticky-cell";return y.jsxs(Pt,{bodyClassName:m?"pb-1":"",children:[y.jsxs(Ke,{header:y.jsxs(Ke.Row,{children:[y.jsxs(Ke.Cell,{onClick:t("tag"),className:b,children:["Tag ",y.jsx(yh,{currentOrder:n,field:"tag"})]}),y.jsxs(Ke.Cell,{onClick:t("shortUrls"),className:`lg:text-right ${b}`,children:["Short URLs ",y.jsx(yh,{currentOrder:n,field:"shortUrls"})]}),y.jsxs(Ke.Cell,{onClick:t("visits"),className:`lg:text-right ${b}`,children:["Visits ",y.jsx(yh,{currentOrder:n,field:"visits"})]}),y.jsx(Ke.Cell,{className:b,children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[p.length===0&&y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:4,className:"text-center",children:"No tags found"})}),p.map(_=>y.jsx(r,{tag:_},_.tag))]}),m&&y.jsx("div",{className:Pe("sticky bottom-0 py-4 -mx-0.5","flex justify-around","bg-lm-primary dark:bg-dm-primary","border-t border-lm-border dark:border-dm-border"),"data-testid":"tags-paginator",children:y.jsx(uy,{pagesCount:f.length,currentPage:s,onPageChange:d})})]},s)},z0e=Nn(i9,["TagsTableRow"]),u3=({color:e,testId:t})=>y.jsx("div",{"data-testid":t,style:{backgroundColor:e},className:Pe("inline-block w-[20px] h-[20px] rounded-full","align-[-4px] mr-1.5")}),B0e=({tag:e,colorGenerator:t})=>y.jsx(u3,{color:t.getColorForKey(e)}),a9=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Ln(a9),{flag:i,setToFalse:o,setToTrue:s}=Sn(),{flag:u,setToFalse:d,setToTrue:f}=Sn(),m=fs(),p=Wy();return y.jsxs(Ke.Row,{className:"max-lg:relative",children:[y.jsxs(Ke.Cell,{columnName:"Tag",children:[y.jsx(B0e,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Short URLs",children:y.jsx(Nr,{to:`${m}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Pn(e.shortUrls)})}),y.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Visits",children:y.jsx(Nr,{to:`${m}/tag/${e.tag}/visits`,children:Pn(e.visits)})}),y.jsx(Ke.Cell,{className:"lg:text-right max-lg:absolute max-lg:top-1.25 max-lg:right-0 max-lg:p-0",children:y.jsxs(nn,{menuAlignment:"right",children:[y.jsxs(nn.Item,{onClick:f,className:"gap-1.5",children:[y.jsx(Ye,{icon:ZR})," Edit"]}),y.jsxs(nn.Item,{className:"gap-1.5",disabled:!p||!p.canAddItemWithName(e.tag),onClick:()=>p?.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Ye,{icon:Kv})," Compare visits"]}),y.jsx(nn.Separator,{}),y.jsxs(nn.Item,{className:"[&]:text-danger gap-1.5",onClick:s,children:[y.jsx(Ye,{icon:G$})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,onClose:d,isOpen:u}),y.jsx(t,{tag:e.tag,onClose:o,isOpen:i})]})},F0e=Nn(a9,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),$0e=(e,t)=>{e.factory("TagsSelector",w0e),e.serviceFactory("DeleteTagConfirmModal",()=>_0e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",x0e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",F0e),e.factory("TagsTable",z0e),e.factory("TagsList",L0e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",T0e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",C0e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",P0e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",M0e,"apiClientFactory"),e.serviceFactory("filterTags",()=>n9),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>e9),e.serviceFactory("editTag",A0e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>t9)},V0e=new kN,H0e=e=>V0e.parse(e),q0e=6,qP="0123456789ABCDEF";function G0e(){return`#${Bw(q0e,()=>qP[Math.floor(Math.random()*qP.length)]).join("")}`}const GP=e=>e.toLowerCase().trim();class Y0e{constructor(t){this.storage=t,this.colors=this.storage?.getTagColors()??{},this.lights={}}colors;lights;getColorForKey(t){const n=GP(t);return this.colors[n]||this.setColorForKey(n,G0e())}setColorForKey(t,n){const r=GP(t);return this.colors[r]=n,this.storage?.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=jw(n)),this.lights[n]}}const o9=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},W0e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);o9(e,i,n)};class K0e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);o9(this.window,i,n)}}class Z0e{constructor(t,n){this.window=t,this.jsonToCsv=n}exportVisits=(t,n)=>{n.length&&this.exportCsv(t,n)};exportShortUrls=t=>{t.length&&this.exportCsv("short_urls.csv",t)};exportCsv=(t,n)=>{const r=this.jsonToCsv(n);W0e(this.window,r,t)}}function X0e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",K0e,"fetch","window"),e.service("ColorGenerator",Y0e,"TagColorsStorage"),e.constant("jsonToCsv",H0e),e.service("ReportExporter",Z0e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>sy)}const vm=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(Pt,{children:[y.jsxs("h2",{className:"flex justify-between items-center",children:[y.jsx(e0,{}),y.jsx("span",{className:"text-center hidden sm:block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:Pe("px-3 py-1.5 rounded-md ml-3","font-bold text-white text-2xl","bg-lm-main dark:bg-dm-main"),"data-testid":"badge",children:["Visits:"," ",y.jsx(kI,{visitsCount:e.length,shortUrl:t})]})]}),y.jsx("h3",{className:"text-center block sm:hidden mt-3",children:y.jsx("small",{children:r})}),n&&y.jsx("div",{className:"md:mt-3",children:n})]})}),c3=({children:e,className:t})=>y.jsx("div",{className:Pe("flex justify-between items-center",t),children:e}),s9=({title:e,footer:t,children:n})=>y.jsxs(un,{role:"document",children:[y.jsx(un.Header,{children:e}),y.jsx(un.Body,{children:n}),t&&y.jsx(un.Footer,{className:"sticky bottom-0",children:t})]}),l9=C.createContext(null),{Provider:zxe}=l9,f3=e=>{const t=C.useContext(l9)??void 0,n=C.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?C.Fragment:jue,dimensions:t,wrapperDimensions:n}},u9={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},Q0e={marginBottom:"5px",fontWeight:"bold"},c9={contentStyle:u9,labelStyle:Q0e,itemStyle:{padding:0}},YP=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],f9=e=>YP[e%YP.length],$v=()=>is()?"#46e587":"#1DAA58",J0e=()=>is()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",e1e=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"space-y-1",children:e.map(({name:n,color:r,value:i},o)=>y.jsxs("li",{className:"flex items-center",children:[y.jsx(u3,{color:r,testId:`color-bullet-${o}`}),y.jsxs("small",{className:"truncate grow","data-testid":`name-${o}`,children:[n,t&&y.jsxs("b",{children:[" (",Pn(i),")"]})]})]},n))}),WP=e=>C.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:f9(r)})),[e]),t1e=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=WP(e),i=WP(t),o=i.length>0,s=is()?GK:qK,{ChartWrapper:u,dimensions:d,wrapperDimensions:f}=f3(300);return y.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-y-4",children:[y.jsx("div",{className:"md:flex-7",children:y.jsx("div",{style:f,children:y.jsx(u,{children:y.jsxs(oge,{...d,children:[y.jsx(mC,{formatter:Pn,contentStyle:u9,itemStyle:{color:"white"}}),y.jsx(A2,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:o?"65%":"50%",animationBegin:0,children:r.map((m,p)=>y.jsx(al,{fill:m.color,stroke:s},`${m.name}-${p}`))}),o&&y.jsx(A2,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:$v()})]})})})}),y.jsx("div",{className:"md:flex-5",children:y.jsx(e1e,{chartData:r,showNumbers:n})})]})},KP=({title:e,...t})=>{const{flag:n,toggle:r}=Sn();return y.jsx(s9,{title:y.jsxs(c3,{children:[e,y.jsx(Qo,{checked:n,onChange:r,children:"Show numbers"})]}),children:y.jsx(t1e,{...t,showNumbersInLegend:n})})},n1e=C.forwardRef(({visitsGroups:e},t)=>{const n=C.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:y.jsx("ul",{className:"mt-2 flex flex-wrap justify-center gap-4",ref:t,children:n.map(([r,i],o)=>y.jsxs("li",{className:"inline",children:[y.jsx(u3,{color:d9(i)}),y.jsxs("strong",{children:[r," (",Pn(i.length),")"]})]},`${r}${o}`))})}),r1e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},i1e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},a1e={hourly:nQ,daily:yy,weekly:tQ,monthly:nv},d3={hourly:e=>rv(e,"yyyy-MM-dd HH:00"),daily:e=>rl(e),weekly(e){const t=rl(Oh(e)),n=rl(cQ(e));return`${t} - ${n}`},monthly:e=>rv(e,"yyyy-MM")},o1e=e=>{const t=Object.values(e).filter(o=>o.length>0);if(t.length===0)return"monthly";const n=new Date,r=t.map(o=>hl(o[o.length-1].date)),i=ON(r);return[[()=>yy(n,i)<=2,"hourly"],[()=>nv(n,i)<=1,"daily"],[()=>nv(n,i)<=6,"weekly"]].find(([o])=>o())?.[1]??"monthly"},s1e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=dN(t[r],i=>d3[e](hl(i.date))),n),{}),l1e=(e,t)=>t.reduce((n,r)=>{const i=d3[e](hl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),u1e=(e,t)=>{const n=Object.values(t).filter(m=>m.length>0).map(m=>[...m].reverse());if(n.length===0)return[];const r=a1e[e],i=d3[e],o=i1e[e],s=n.flat(),u=hl(s[0].date),d=hl(s[s.length-1].date),f=r(d,u)||1;return[{formattedDate:i(u),date:u},...Bw(f,m=>{const p=KX(u,o(m));return{formattedDate:i(p),date:p}})]},d9=e=>{if(e.color)return e.color;const t={main:Eh(),highlighted:kx,previous:$v()};return e.type?t[e.type]:Eh()},ZP=(e,t)=>C.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),c1e=(e,t,n)=>{const r=ZP(e,"main"),i=ZP(e,"highlighted"),o=C.useMemo(()=>n?l1e(t,r):{},[n,t,r]),s=C.useCallback((u,{payload:d})=>{const f=o[d.formattedDate]??[];n?.(f===i?[]:f)},[o,i,n]);return n&&{cursor:"pointer",onClick:s}},h9=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,o]=C.useState(o1e(e)),s=k0e(767,n??window.matchMedia),u=C.useMemo(()=>{const J=s1e(i,e),te=Object.keys(J);return u1e(i,e).map(({formattedDate:he,date:X})=>({date:X,formattedDate:he,...te.reduce((se,Z)=>(se[Z]=J[Z][he]??0,se),{})}))},[i,e]),d=c1e(e,i,t),{flag:f,toggle:m,setToFalse:p}=Sn(),b=C.useId(),_=C.useRef(null),[w,x]=C.useState(s?300:400);C.useLayoutEffect(()=>{if(!f)return x(s?300:400),()=>{};const J=new ResizeObserver(()=>{const te=window.innerHeight,{height:he}=_.current.getBoundingClientRect();x(te-he-98)});return J.observe(_.current),()=>J.disconnect()},[f,s,_]),I0e("Escape",p,f);const{ChartWrapper:E,dimensions:T,wrapperDimensions:j}=f3(w),[O,N]=C.useState(),[F,$]=C.useState(),K=C.useCallback(()=>{N(void 0),$(void 0)},[]),Q=C.useCallback((J,te)=>{const he=J.activeIndex&&u[J.activeIndex];te.button===0&&he&&N(he)},[u]),oe=C.useCallback(J=>{const te=J.activeIndex&&u[J.activeIndex];O&&te&&$(te)},[u,O]),ee=C.useCallback(()=>{if(!O||!F){K();return}const J=[O.date,F.date],te=QX(J),he=ON(J);K(),r({startDate:te,endDate:he})},[r,K,F,O]);return y.jsxs(un,{className:Pe({"fixed top-0 bottom-0 left-0 right-0 z-1030":f}),"data-testid":"line-chart-card",children:[y.jsxs(un.Header,{role:"heading","aria-level":4,className:"flex justify-between items-center",children:["Visits over time",y.jsxs("div",{className:"flex content-center gap-1",children:[y.jsx(ly,{"aria-label":f?"Collapse":"Expand","aria-expanded":f,"aria-controls":b,size:"sm",onClick:m,children:y.jsx(Ye,{icon:f?_V:iV})}),y.jsx(Qe,{buttonContent:"Group by",buttonSize:"sm",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",menuClassName:"w-40",children:Object.entries(r1e).map(([J,te])=>y.jsx(Qe.Item,{selected:i===J,onClick:()=>o(J),children:te},J))})]})]}),y.jsxs(un.Body,{id:b,children:[y.jsx(E,{...j,children:y.jsxs(Zpe,{className:"select-none",data:u,...T,onMouseDown:Q,onMouseMove:oe,onMouseUp:ee,children:[y.jsx(IC,{dataKey:"formattedDate"}),y.jsx(UC,{tickFormatter:Pn,yAxisId:"1"}),y.jsx(mC,{formatter:Pn,...c9}),y.jsx(DC,{strokeOpacity:is()?.1:.9}),Object.entries(e).map(([J,te])=>te.length>0&&y.jsx(k7,{yAxisId:"1",dataKey:J,type:"monotone",stroke:d9(te),strokeWidth:2,activeDot:te.type==="previous"?void 0:d,strokeDasharray:te.type==="previous"?"8 3":void 0},J)),O&&F&&y.jsx(PC,{yAxisId:"1",x1:O.formattedDate,x2:F.formattedDate})]})}),y.jsx(n1e,{visitsGroups:e,ref:_})]})]})},f1e=({ranges:e,value:t,setValue:n})=>y.jsxs(Qe,{buttonContent:"Paginate",buttonVariant:"link",buttonClassName:"[&]:p-0",buttonSize:"sm",menuAlignment:"right",children:[e.map(r=>y.jsxs(Qe.Item,{selected:r===t,onClick:()=>n(r),children:[y.jsx("b",{children:r})," items per page"]},r)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{disabled:t===1/0,onClick:()=>n(1/0),children:y.jsx("i",{children:"Clear pagination"})})]}),XP=e=>typeof e!="string"||e.startsWith("hidden_"),d1e=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o})=>{const s=C.useMemo(()=>Object.entries(e).map(([p,b])=>{const _=n?.[p]??0,w=t?.[p]??0,x=XP(p);return{name:p,amount:Math.max(b,w),nonHighlightedAmount:x?null:b-_,highlightedAmount:x?null:_,prevAmount:x?null:w}}),[e,t,n]),u=C.useMemo(()=>{const p=s.reduce((b,{name:_})=>b>_.length?b:_.length,0);return Math.min(150,p*7)},[s]),{ChartWrapper:d,dimensions:f,wrapperDimensions:m}=f3(Math.max(300,s.length*(t?44:22)));return y.jsx(d,{...m,children:y.jsxs(lge,{layout:"vertical",data:s,barCategoryGap:3,...f,children:[y.jsx(IC,{type:"number",dataKey:"amount",tickFormatter:Pn,domain:i?[0,i]:void 0}),y.jsx(UC,{type:"category",dataKey:"name",width:u,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>XP(p)?"":p}),y.jsx(DC,{strokeOpacity:is()?.05:.9}),y.jsx(mC,{filterNull:!0,...c9,formatter:(p,b)=>[Pn(p),b==="highlightedAmount"?r:b==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),y.jsx(Rg,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:Eh(),onClick:({name:p})=>p&&o?.(p),children:s.map(p=>y.jsx(al,{fill:VK(),stroke:Eh(),strokeWidth:2},p.name))}),n&&y.jsx(Rg,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:kx,onClick:({name:p})=>p&&o?.(p),children:s.map(p=>y.jsx(al,{fill:HK,stroke:kx,strokeWidth:2},p.name))}),t&&y.jsx(Rg,{dataKey:"prevAmount",fill:$v(),children:s.map(p=>y.jsx(al,{fill:J0e(),stroke:$v(),strokeWidth:2},p.name))})]})})},h1e=e=>typeof e=="string"?e.toLowerCase():e,m1e=([e])=>e,p1e=([,e])=>e,gg=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:s=!0,...u})=>{const[d,f]=C.useState({}),[m,p]=C.useState(1),[b,_]=C.useState(50),w=C.useCallback((Q,oe)=>{const ee=Object.entries(Q),J=d.field?pX(ee,([te,he])=>h1e(d.field===Object.keys(oe)[0]?te:he)):ee;return!d.dir||d.dir==="ASC"?J:[...J].reverse()},[d.dir,d.field]),x=C.useCallback(Q=>{const oe=Q[m-1];if(m<Q.length)return oe;const ee=Q[0].length;return[...oe,...Bw(ee-oe.length,J=>[`hidden_${J}`,0])]},[m]),E=C.useCallback(Q=>y.jsx(uy,{currentPage:m,pagesCount:Q,onPageChange:p}),[m]),T=C.useCallback((Q,oe,ee,J)=>{const te=w(Q,oe),he=te.map(m1e),X=ee&&Object.entries({...sO(he,he.map(()=>0)),...ee}),se=J&&Object.entries({...sO(he,he.map(()=>0)),...J});if(te.length<=b)return{currentPageStats:Object.fromEntries(te),currentPageHighlightedStats:X&&Object.fromEntries(X),currentPagePrevStats:se&&Object.fromEntries(se)};const Z=Kc(te,b),I=X&&Kc(X,b),k=se&&Kc(se,b);return{currentPageStats:Object.fromEntries(x(Z)),currentPageHighlightedStats:I&&Object.fromEntries(x(I)),currentPagePrevStats:k&&Object.fromEntries(x(k)),pagination:E(Z.length),max:OK(Math.max(...te.map(p1e)))}},[x,w,b,E]),{currentPageStats:j,currentPagePrevStats:O,currentPageHighlightedStats:N,pagination:F,max:$}=C.useMemo(()=>T(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[T,n,t,i,e]),K=C.useMemo(()=>Object.keys(j),[j]);return y.jsx(s9,{title:y.jsxs(c3,{children:[r,y.jsxs("div",{className:"flex items-center gap-3",children:[o?.(F?K:void 0),s&&Object.keys(e).length>50&&y.jsx(f1e,{ranges:[50,100,200,500],value:b,setValue:Q=>{_(Q),p(1)}}),y.jsx(Zh,{buttonVariant:"link",menuAlignment:"right",buttonSize:"sm",buttonClassName:"[&]:p-0",items:i,order:d,onChange:Q=>{f(Q),p(1)}})]})]}),footer:F&&y.jsx("div",{className:"flex justify-around items-center","data-testid":"chart-paginator",children:F}),children:y.jsx(d1e,{stats:j,prevStats:O,highlightedStats:N,max:$,...u})})},h3=e=>e.type!==void 0,g1e=e=>e.type!==void 0,v1e=e=>{const t=hN(e,n=>h3(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},m9=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:s})=>o&&vh(o,t,n)&&gm(s.date,i,r)),p9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&nve(i,t)&&gm(o.date,r,n)),g9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i?.tags.includes(t)&&gm(o.date,r,n)),vg=(e,t)=>dN(e,n=>n[t]),y1e=e=>{const t=(e?.startDate&&wl(e?.startDate))??void 0,n=(e?.endDate&&wl(e?.endDate))??void 0;return{startDate:t,endDate:n}},z2=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=y1e(t),i=e?.excludeBots||void 0;return{startDate:n,endDate:r,excludeBots:i}},b1e=e=>WI(e.dateRange),_1e=({dateRange:e,...t})=>({...t,dateRange:u0e(e)}),QP=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&wl(t[e])||""},v9=()=>{const e=lo(),t=Sf(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:s,...u}=t,d=C.useMemo(()=>({dateRange:n!=null||r!=null?qI(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:s!==void 0?s==="true":void 0}),[r,o,s,i,n]),f=C.useCallback(m=>{const{dateRange:p,visitsFilter:b={},loadPrevInterval:_}=Cf(d,m),{excludeBots:w,orphanVisitsType:x}=b,E={...u,startDate:QP("startDate",p),endDate:QP("endDate",p),excludeBots:w===void 0?void 0:Gx(w),orphanVisitsType:x,loadPrevInterval:_===void 0?void 0:Gx(_)},T=Mw(E),j=T?`?${T}`:"";e(j,{replace:!0,relative:"route"})},[d,e,u]);return[d,f]},x1e=()=>y.jsx(Tge,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),w1e=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},y9=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(uo,{open:t,onClose:e,title:n,variant:"cover",children:y.jsxs(Cge,{...w1e(r),className:"h-full w-full",children:[y.jsx(x1e,{}),r.map(({cityName:i,latLong:o,count:s},u)=>y.jsx(Ege,{position:o,children:y.jsxs(Age,{children:[y.jsx("b",{children:s})," visit",s>1?"s":""," from ",y.jsx("b",{children:i})]})},u))]})}),S1e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const{flag:r,setToTrue:i,setToFalse:o}=Sn(),[s,u]=C.useState([]),d=C.useCallback(f=>{u(f?n.filter(f):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(ly,{onClick:()=>d(),"aria-label":"Show in map",title:"Show in map",className:"[&]:p-0",children:y.jsx(Ye,{icon:gx})}),t&&y.jsxs(Qe,{buttonContent:y.jsx(Ye,{icon:gx,title:"Show in map"}),buttonLabel:"Show in map",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",caretless:!0,children:[y.jsx(Qe.Item,{onClick:()=>d(),children:"Show all locations"}),y.jsx(Qe.Item,{onClick:()=>d(({cityName:f})=>t.includes(f)),children:"Show locations in current page"})]}),y.jsx(y9,{toggle:o,isOpen:r,title:e,locations:s})]})},b9=({onChange:e,selected:t={},isOrphanVisits:n=!1,withPrevInterval:r=!1,disabled:i})=>{const{orphanVisitsType:o,excludeBots:s=!1,loadPrevInterval:u=!1}=t,d=p=>({selected:o===p,onClick:()=>e({...t,orphanVisitsType:p===o?void 0:p})}),f=C.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),m=C.useCallback(()=>e({...t,loadPrevInterval:!u}),[u,e,t]);return y.jsxs(Qe,{buttonDisabled:i,buttonContent:"More",buttonClassName:"w-full",menuAlignment:"right",children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(Qe.Item,{selected:u,onClick:m,children:"Compare with previous period"}),y.jsx(Qe.Separator,{})]}),y.jsx(Qe.Title,{children:"Bots:"}),y.jsx(Qe.Item,{selected:s,onClick:f,children:"Exclude potential bots"}),n&&y.jsxs(y.Fragment,{children:[y.jsx(Qe.Separator,{}),y.jsx(Qe.Title,{children:"Orphan visits type:"}),y.jsx(Qe.Item,{...d("base_url"),children:"Base URL"}),y.jsx(Qe.Item,{...d("invalid_short_url"),children:"Invalid short URL"}),y.jsx(Qe.Item,{...d("regular_404"),children:"Regular 404"})]}),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{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:y.jsx("i",{children:"Reset to defaults"})})]})},C1e=({className:e,value:t,...n})=>{const r=Math.min(100,Math.max(0,t));return y.jsx("div",{className:Pe("flex h-4 bg-gray-100 overflow-hidden rounded-md",e),...n,children:y.jsx("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r,className:"bg-lm-brand dark:bg-dm-brand transition-[width]",style:{width:`${r}%`}})})},_9=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(Zo,{loading:!0}),t&&r!==null&&y.jsxs(Zo,{loading:!0,children:["This is going to take a while... :S",y.jsx(C1e,{value:r,className:"mt-4"})]}),n&&y.jsx($r,{variant:"error",children:y.jsx(oo,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Lg=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(Zo,{children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),E1e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,{flag:r,setToTrue:i}=Sn();return y.jsx(Pt,{title:y.jsx("span",{className:"text-danger font-bold text-base",children:"Danger zone"}),children:y.jsxs(c3,{children:[y.jsxs("dl",{className:"m-0 mr-3",children:[y.jsx("dt",{children:"Delete visits."}),y.jsxs("dd",{className:"m-0",children:["This will delete ",y.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&y.jsx(Rt,{variant:"danger",solid:!0,className:"whitespace-nowrap",onClick:i,children:"Delete visits"}),r&&y.jsxs(Rt,{solid:!0,variant:"danger",disabled:n,className:"whitespace-nowrap",onClick:t,autoFocus:!0,children:[!n&&y.jsx(y.Fragment,{children:"Click again to confirm"}),n&&y.jsx(y.Fragment,{children:"Deleting..."})]})]})})},yg="Others",A1e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],T1e=e=>{if(!vu(e))return{browser:yg,os:yg};const{browser:{name:t},os:{name:n}}=Lge.parse(e);return{os:n??yg,browser:t&&A1e.includes(t)?t:yg}},O1e=e=>vu(e)?e.split("/")[e.includes("://")?2:0]?.split(":")[0]??"":"Direct",x9=(e,t)=>e[t]!==void 0,JP=e=>typeof e=="number"?e:e?parseFloat(e):0,j1e=(e,{os:t})=>{e[t]=(e[t]||0)+1},M1e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},P1e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},w9=e=>(t,n)=>{const r=x9(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},R1e=w9("country"),L1e=w9("city"),N1e=(e,t)=>{if(!x9(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[JP(r),JP(i)]};o.count+=1,e[n]=o},D1e=(e,t)=>{if(!g1e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},B2=e=>e.reduce((t,n)=>(j1e(t.os,n),M1e(t.browsers,n),P1e(t.referrers,n),R1e(t.countries,n),L1e(t.cities,n),N1e(t.citiesForMap,n),D1e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Vv=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:s}=t;return{date:r,potentialBot:s,userAgent:n,...T1e(n),referer:O1e(i),country:o?.countryName||"Unknown",region:o?.regionName||"Unknown",city:o?.cityName||"Unknown",latitude:o?.latitude,longitude:o?.longitude,visitedUrl:t.visitedUrl,type:h3(t)?t.type:void 0}}),k1e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Vv,processStatsFromVisits:B2},Symbol.toStringTag,{value:"Module"})),uh=20,I1e=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...s},u,d)=>{const f=d?o:`${r} ${i}`;return`${e} ${t} ${n} ${f} ${s.visitedUrl}`.toLowerCase().includes(u.toLowerCase())},U1e=(e,t,n)=>t.filter(r=>I1e(r,e,n)),z1e=(e,t)=>NL(t,e),B1e=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?U1e(t,e,r):[...e],o=z1e(n,i),s=o.length;return{visitsGroups:Kc(o,uh),total:s}},ba="cursor-pointer md:sticky-cell-separated md:top-[calc(var(--header-height)+41px)]",F1e=()=>{const{anchor:e,tooltip:t}=co({placement:"right"});return y.jsxs(y.Fragment,{children:[y.jsx(Ye,{icon:QR,...e}),y.jsx(fo,{...t,children:"Potentially a visit from a bot or crawler"})]})},$1e=({visits:e,selectedVisits:t=[],setSelectedVisits:n})=>{const[r,i]=C.useState(),o=C.useCallback(N=>{i(N),b(1),n([])},[n]),[s,u]=C.useState({}),d=zn("visitsList"),f=C.useMemo(()=>Cf(vy,d?.columns??{}),[d?.columns]),m=C.useMemo(()=>B1e({visits:e,searchTerm:r,order:s,searchInRawUserAgent:f.userAgent}),[e,r,s,f.userAgent]),[p,b]=C.useState(1),_=p*uh,w=_-uh,x=C.useMemo(()=>f.visitedUrl?m.visitsGroups.length===0||!!m.visitsGroups[p-1]?.[0]?.visitedUrl:!1,[f.visitedUrl,p,m.visitsGroups]),E=6+Number(x)+(f.userAgent?1:2),T=m.total>0,j=N=>u(Pw({currentField:s.field,currentOrderDir:s.dir,newField:N})),O=N=>y.jsx(yh,{currentOrder:s,field:N,className:"float-right mt-[5px] ml-[5px]"});return y.jsx(Pt,{bodyClassName:"[&]:p-0 [&]:pb-1",title:"Visits list",children:y.jsxs(Ke,{responsive:!1,size:"sm",className:"w-full relative overflow-y-hidden bg-lm-primary dark:bg-dm-primary",header:y.jsxs(y.Fragment,{children:[y.jsxs(Ke.Row,{children:[y.jsxs(Ke.Cell,{className:Pe(ba,"[&]:text-center"),onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:[y.jsx("span",{className:"sr-only",children:"Is selected"}),y.jsx(Ye,{icon:ju,className:Pe({"text-lm-brand dark:text-dm-brand":t.length>0})})]}),f.potentialBot&&y.jsxs(Ke.Cell,{className:Pe(ba,"[&]:text-center"),onClick:()=>j("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Ye,{icon:QR}),O("potentialBot")]}),f.date&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("date"),children:["Date",O("date")]}),f.country&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("country"),children:["Country",O("country")]}),f.region&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("region"),children:["Region",O("region")]}),f.city&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("city"),children:["City",O("city")]}),f.userAgent&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("userAgent"),children:["User agent",O("userAgent")]}),f.browser&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("browser"),children:["Browser",O("browser")]}),f.browser&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("os"),children:["OS",O("os")]}),f.referer&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("referer"),children:["Referrer",O("referer")]}),x&&y.jsxs(Ke.Cell,{className:ba,onClick:()=>j("visitedUrl"),children:["Visited URL",O("visitedUrl")]})]}),y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:E,className:"[&]:p-0",children:y.jsx(wf,{size:"md",borderless:!0,onChange:o})})})]}),footer:m.total>uh?y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{type:"td",colSpan:E,className:"md:sticky-cell-separated bottom-0",children:y.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 p-1",children:[y.jsx(uy,{pagesCount:Math.ceil(m.total/uh),currentPage:p,onPageChange:b}),y.jsxs("div",{children:["Visits ",y.jsx("b",{children:Pn(w+1)})," to"," ",y.jsx("b",{children:Pn(Math.min(_,m.total))})," of"," ",y.jsx("b",{children:Pn(m.total)})]})]})})}):void 0,children:[!T&&y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:E,className:"text-center",children:"There are no visits matching current filter"})}),m.visitsGroups[p-1]?.map((N,F)=>{const $=t.includes(N);return y.jsxs(Ke.Row,{className:Pe("cursor-pointer",$&&["bg-lm-table-highlight hover:[&]:bg-lm-table-highlight","dark:bg-dm-table-highlight dark:hover:[&]:bg-dm-table-highlight"]),onClick:()=>n($?t.filter(K=>K!==N):[...t,N]),children:[y.jsx(Ke.Cell,{className:"text-center",children:$&&y.jsx(Ye,{icon:ju,className:"text-lm-brand dark:text-dm-brand"})}),f.potentialBot&&y.jsx(Ke.Cell,{className:"text-center",children:N.potentialBot&&y.jsx(F1e,{})}),f.date&&y.jsx(Ke.Cell,{children:y.jsx(zv,{date:N.date})}),f.country&&y.jsx(Ke.Cell,{children:N.country}),f.region&&y.jsx(Ke.Cell,{children:N.region}),f.city&&y.jsx(Ke.Cell,{children:N.city}),f.userAgent&&y.jsx(Ke.Cell,{children:N.userAgent}),f.browser&&y.jsx(Ke.Cell,{children:N.browser}),f.os&&y.jsx(Ke.Cell,{children:N.os}),f.referer&&y.jsx(Ke.Cell,{children:N.referer}),x&&y.jsx(Ke.Cell,{children:N.visitedUrl??""})]},F)})]})})},Xs={byTime:{title:"By time",subPath:"by-time",icon:I$},byContext:{title:"By context",subPath:"by-context",icon:uw},byLocation:{title:"By location",subPath:"by-location",icon:gx},list:{title:"List",subPath:"list",icon:lw},options:{title:"Options",subPath:"options",icon:YR,shouldRender:({deletion:e})=>!!e}};Object.freeze(Xs);const ux=({display:e})=>e&&y.jsx("div",{className:"mx-auto w-3/4",children:y.jsx(Pt,{children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Ye,{icon:gV,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),ym=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:s,isOrphanVisits:u=!1}=e,{visits:d,prevVisits:f,loading:m,errorData:p,fallbackInterval:b}=n,[{dateRange:_,visitsFilter:w,loadPrevInterval:x},E]=v9(),T=zn("visits"),[j,O]=C.useState(),N=C.useCallback(({startDate:W,endDate:le},H)=>{E({dateRange:{startDate:W??void 0,endDate:le??void 0}}),O(H)},[E]),[F,$]=C.useState(b??T?.defaultInterval??"last30Days"),[K,Q]=C.useState([]),[oe,ee]=C.useState(),J=C.useRef(!0),{search:te}=Er(),he=C.useCallback(W=>W?`../${W}${te}`:te,[te]),X=C.useMemo(()=>Vv(d),[d]),se=C.useMemo(()=>f&&Vv(f),[f]),{os:Z,browsers:I,referrers:k,countries:U,cities:z,citiesForMap:P,visitedUrls:G}=C.useMemo(()=>B2(X),[X]),Y=C.useMemo(()=>B2(se??[]),[se]),ne=C.useMemo(()=>Object.fromEntries([["Visits",Object.assign(X,{type:"main"})],se&&["Previous period",Object.assign(se,{type:"previous"})],K.length>0&&[oe??"Selected",Object.assign(K,{type:"highlighted"})]].filter(Boolean)),[oe,K,se,X]),ue=C.useMemo(()=>({...w,excludeBots:w.excludeBots??T?.excludeBots,loadPrevInterval:x??T?.loadPrevInterval}),[x,w,T?.excludeBots,T?.loadPrevInterval]),fe=C.useMemo(()=>Object.values(P),[P]),ge=C.useRef(void 0),D=C.useCallback(W=>{ge.current=void 0,Q(W)},[]),B=C.useCallback((W,le)=>{const H=`${W}_${le}`;ge.current===H?(Q([]),ee(void 0),ge.current=void 0):(Q(X.filter(ae=>ae[W]===le)),ee(le),ge.current=H)},[X]);return C.useEffect(()=>i,[i]),C.useEffect(()=>{const W=_??YI(F),{loadPrevInterval:le,...H}=ue,ae={doIntervalFallback:J.current,loadPrevInterval:le};r({dateRange:W,filter:H},ae),D([]),J.current=!1},[F,_,r,ue,D]),C.useEffect(()=>{b&&F===(T?.defaultInterval??"last30Days")&&$(b)},[F,b,T?.defaultInterval]),y.jsxs("div",{className:"flex flex-col gap-y-4",children:[t,y.jsxs("section",{className:"flex flex-col lg:flex-row-reverse gap-4",children:[y.jsxs("div",{className:"lg:flex-3 flex flex-col md:flex-row gap-x-2 gap-y-4",children:[y.jsx("div",{className:"grow",children:y.jsx(a3,{disabled:m,dateRangeOrInterval:j??_??F,defaultText:"All visits",onDatesChange:N})}),y.jsx(b9,{disabled:m,isOrphanVisits:u,withPrevInterval:!0,selected:ue,onChange:({loadPrevInterval:W,...le})=>E({visitsFilter:le,loadPrevInterval:W})})]}),y.jsx("div",{className:"lg:flex-2 xl:flex-3 flex gap-2",children:d.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(PI,{className:"max-lg:w-full",amount:X.length,onClick:()=>s(X)}),y.jsxs(Rt,{variant:"secondary",solid:K.length>0&&!is(),disabled:K.length===0,className:"max-lg:w-full",onClick:()=>D([]),children:["Clear selection ",K.length>0&&y.jsxs(y.Fragment,{children:["(",Pn(K.length),")"]})]})]})})]}),y.jsxs("section",{className:"flex flex-col gap-4",children:[y.jsx(_9,{info:n}),!m&&!p&&y.jsxs(y.Fragment,{children:[y.jsx(Qs,{fill:!0,className:"sticky top-(--header-height) z-2",children:Object.values(Xs).map(({title:W,icon:le,subPath:H,shouldRender:ae},ce)=>!ae||ae(e)?y.jsxs(Qs.Pill,{to:he(H),replace:!0,children:[y.jsx(Ye,{icon:le}),y.jsx("span",{className:"ml-2 max-lg:sr-only",children:W})]},ce):void 0).filter(Boolean)}),y.jsxs(Gv,{children:[y.jsx(pt,{path:Xs.byTime.subPath,element:y.jsxs(Lg,{showFallback:d.length===0,children:[y.jsx("div",{"data-testid":"line-chart-container",children:y.jsx(h9,{visitsGroups:ne,setSelectedVisits:D,onDateRangeChange:N})}),y.jsx(ux,{display:!!ue.loadPrevInterval&&!f})]})}),y.jsx(pt,{path:Xs.byContext.subPath,element:y.jsxs(Lg,{showFallback:d.length===0,children:[y.jsxs("div",{className:Pe("grid grid-cols-1 gap-4",{"lg:grid-cols-2":u,"xl:grid-cols-3":!u}),children:[y.jsx(KP,{title:"Operating systems",stats:Z,prevStats:Y.os}),y.jsx(KP,{title:"Browsers",stats:I,prevStats:Y.browsers}),y.jsx(gg,{title:"Referrers",withPagination:!1,stats:k,prevStats:Y.referrers,highlightedStats:vg(K,"referer"),highlightedLabel:oe,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:W=>B("referer",W)}),u&&y.jsx(gg,{title:"Visited URLs",stats:G,prevStats:Y.visitedUrls,highlightedStats:vg(K,"visitedUrl"),highlightedLabel:oe,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:W=>B("visitedUrl",W)})]}),y.jsx(ux,{display:!!ue.loadPrevInterval&&!f})]})}),y.jsx(pt,{path:Xs.byLocation.subPath,element:y.jsxs(Lg,{showFallback:d.length===0,children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[y.jsx(gg,{title:"Countries",stats:U,prevStats:Y.countries,highlightedStats:vg(K,"country"),highlightedLabel:oe,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:W=>B("country",W)}),y.jsx(gg,{title:"Cities",stats:z,prevStats:Y.cities,highlightedStats:vg(K,"city"),highlightedLabel:oe,extraHeaderContent:W=>fe.length>0&&y.jsx(S1e,{modalTitle:"Cities",locations:fe,activeCities:W}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:W=>B("city",W)})]}),y.jsx(ux,{display:!!ue.loadPrevInterval&&!f})]})}),y.jsx(pt,{path:Xs.list.subPath,element:y.jsx($1e,{visits:X,selectedVisits:K,setSelectedVisits:D})}),o&&y.jsx(pt,{path:Xs.options.subPath,element:y.jsx(E1e,{...o})}),y.jsx(pt,{path:"*",element:y.jsx(Z2,{replace:!0,to:he(Xs.byTime.subPath)})})]})]})]})]})},S9=La(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Ln(S9),{domain:i=""}=yf(),[o,s=o]=i.split("_"),u=C.useCallback((f,m)=>e({domain:s,options:m,params:f}),[s,e]),d=C.useCallback(f=>r.exportVisits(`domain_${o}_visits.csv`,f),[o,r]);return y.jsx(ym,{getVisits:u,cancelGetVisits:n,visitsInfo:t,exportCsv:d,children:y.jsx(vm,{visits:t.visits,title:`"${o}" visits`})})},()=>[aa.visits]),V1e=Nn(S9,["ReportExporter"]),C9=La(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Ln(C9),i=C.useCallback(s=>r.exportVisits("non_orphan_visits.csv",s),[r]),o=C.useCallback((s,u)=>e({options:u,params:s}),[e]);return y.jsx(ym,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(vm,{title:"Non-orphan visits",visits:t.visits})})},()=>[aa.visits]),H1e=Nn(C9,["ReportExporter"]),E9=La(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=ra("orphanVisitsDeletion"),{ReportExporter:s}=Ln(E9),u=C.useCallback(m=>s.exportVisits("orphan_visits.csv",m),[s]),d=C.useCallback((m,p)=>e({options:p,params:m,orphanVisitsType:m.filter?.orphanVisitsType}),[e]),f=C.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return y.jsx(ym,{getVisits:d,cancelGetVisits:n,visitsInfo:t,exportCsv:u,deletion:f,isOrphanVisits:!0,children:y.jsx(vm,{title:"Orphan visits",visits:t.visits})})},()=>[aa.orphanVisits]),q1e=Nn(E9,["ReportExporter"]),eR=5e3,G1e=2,Y1e=4,W1e=({currentPage:e,pagesCount:t})=>e>=t,K1e=(e,t)=>t*100/e,A9=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(s,u)=>Promise.all(u.map(async d=>e({...s,page:d,itemsPerPage:eR}).then(({data:f})=>f))).then(d=>d.flat()),o=async(s,u,d=0)=>{if(t())return[];const f=await i(s,u[d]);return n(K1e(u.length,d+1)),d<u.length-1?f.concat(await o(s,u,d+1)):f};return async s=>{const{pagination:u,data:d}=await e({...s,page:1,itemsPerPage:eR});if(W1e(u))return d;const f=pN(G1e,u.pagesCount+1),m=Kc(f,r);return u.pagesCount-1>r&&n(0),d.concat(await o(s,m))}},bm=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),_m=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=cn(`${e}/progressChanged`),i=cn(`${e}/fallbackToInterval`),o=nr(e,async(s,{getState:u,dispatch:d})=>{const{params:f,options:m}=s,{visitsLoader:p,lastVisitLoader:b}=t(s),_=c0e(f.dateRange),w=z2(f),x=m.loadPrevInterval&&b1e(f)?z2(_1e(f)):void 0,E=Y1e/(x?2:1),T=x?{main:0,prev:0}:{main:0},j=(K,Q)=>{T[K]=Q;const oe=Object.values(T),ee=oe.reduce((J,te)=>J+te,0);d(r(ee/oe.length))},O=A9({visitsLoader:p,shouldCancel:()=>n(u),progressChanged:K=>j("main",K),batchSize:E}),[N,F,$]=await Promise.all([O(w),b(f.filter?.excludeBots),x?O(x).then(K=>K.map(Q=>{if(_===void 0)return Q;const{date:oe,...ee}=Q,J=Hw(Ai(oe),_);return{...ee,date:wl(J)}})):Promise.resolve(void 0)]);return!N.length&&F&&d(i(l0e(F.date))),{...s,visits:N,prevVisits:$}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},xm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:s,fulfilled:u,progressChanged:d,fallbackToInterval:f}=t,{reducer:m,actions:p}=Lt({name:e,initialState:n,reducers:{cancelGetVisits:_=>({..._,cancelLoad:!0})},extraReducers:_=>{_.addCase(o,()=>({...n,loading:!0})),_.addCase(s,(w,{error:x})=>({...n,errorData:Ii(x)??null})),_.addCase(u,(w,{payload:x})=>({...w,...x,loading:!1,progress:null,errorData:null})),_.addCase(d,(w,{payload:x})=>({...w,progress:x})),_.addCase(f,(w,{payload:x})=>({...w,fallbackInterval:x})),_.addCase(Df,(w,{payload:x})=>{const{visits:E}=w,T=r(w,x.createdVisits).map(({visit:j})=>j);return T.length?{...w,visits:[...T,...E]}:w}),i?.(_)}}),{cancelGetVisits:b}=p;return{reducer:m,cancelGetVisits:b}},T9="shlink/domainVisits",Z1e={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},X1e=e=>_m({typePrefix:`${T9}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=u=>r.getDomainVisits(t,u),s=bm(i,u=>r.getDomainVisits(t,u));return{visitsLoader:o,lastVisitLoader:s}},shouldCancel:t=>t().domainVisits.cancelLoad}),Q1e=e=>xm({name:T9,initialState:Z1e,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>p9(r,t,n?.dateRange)}),O9="shlink/orphanVisits",J1e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},ebe=e=>_m({typePrefix:`${O9}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async s=>n.getNonOrphanVisits(s),o=bm(r,s=>n.getNonOrphanVisits(s));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),tbe=e=>xm({name:O9,initialState:J1e,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=t?.dateRange??{};return n.filter(({visit:o})=>gm(o.date,r,i))}}),j9="shlink/orphanVisits",nbe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},rbe=(e,t)=>!t||t===e.type,ibe=({data:e,...t},n)=>{const r=e.filter(i=>h3(i)&&rbe(i,n));return{...t,data:r}},abe=e=>_m({typePrefix:`${j9}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async u=>r.getOrphanVisits({...u,type:t}).then(d=>ibe(d,t)),s=bm(i,u=>r.getOrphanVisits(u));return{visitsLoader:o,lastVisitLoader:s}},shouldCancel:t=>t().orphanVisits.cancelLoad}),obe=(e,t)=>xm({name:j9,initialState:nbe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=n?.dateRange??{};return r.filter(({visit:s,shortUrl:u})=>!u&&gm(s.date,i,o))}}),M9="shlink/orphanVisitsDeletion",tR={deletedVisits:0,deleting:!1,error:!1},sbe=e=>nr(`${M9}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),lbe=e=>Lt({name:M9,initialState:tR,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...tR,deletedVisits:i}})}}),P9="shlink/shortUrlVisits",ube={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},cbe=e=>_m({typePrefix:`${P9}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,s=d=>i.getShortUrlVisits({shortCode:t,domain:n},d),u=bm(o,d=>i.getShortUrlVisits({shortCode:t,domain:n},d));return{visitsLoader:s,lastVisitLoader:u}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),fbe=(e,t)=>xm({name:P9,initialState:ube,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>m9(o,{shortCode:n,domain:r},i?.dateRange)}),R9="shlink/shortUrlVisitsDeletion",nR={shortCode:"",deletedVisits:0,deleting:!1,error:!1},dbe=e=>nr(`${R9}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),hbe=e=>Lt({name:R9,initialState:nR,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:s}=r;return{...nR,shortCode:i,domain:o,deletedVisits:s}})}}),L9="shlink/tagVisits",mbe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},pbe=e=>_m({typePrefix:`${L9}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=u=>r.getTagVisits(t,u),s=bm(i,async u=>r.getTagVisits(t,u));return{visitsLoader:o,lastVisitLoader:s}},shouldCancel:t=>t().tagVisits.cancelLoad}),gbe=e=>xm({name:L9,initialState:mbe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>g9(r,t,n?.dateRange)}),N9="shlink/visitsOverview",bg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},rR=e=>e.filter(({visit:t})=>t.potentialBot).length,vbe=e=>nr(`${N9}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:t?.total??n,nonBots:t?.nonBots,bots:t?.bots},orphanVisits:{total:r?.total??i,nonBots:r?.nonBots,bots:r?.bots}}))),ybe=e=>Lt({name:N9,initialState:bg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...bg,loading:!0})),t.addCase(e.rejected,()=>({...bg,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...bg,...r})),t.addCase(Df,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:u}=v1e(o.createdVisits),d=s.length,f=rR(s),m=d-f,p=u.length,b=rR(u),_=p-b;return{...i,nonOrphanVisits:{total:n.total+d,bots:n.bots&&n.bots+f,nonBots:n.nonBots&&n.nonBots+m},orphanVisits:{total:r.total+p,bots:r.bots&&r.bots+b,nonBots:r.nonBots&&r.nonBots+_}}})}}),bbe=({shortUrl:e})=>{const{anchor:t,tooltip:n}=co({placement:"bottom"});return e?y.jsxs("span",{children:[y.jsx("b",{className:"cursor-default",...t,children:y.jsx(zv,{date:e.dateCreated,relative:!0})}),y.jsx(fo,{...n,children:y.jsx(zv,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."})},_be=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=e?.shortUrl??"",o=e?.longUrl??"",s=e?.title;return y.jsxs(vm,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(ji,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",y.jsx(bbe,{shortUrl:e})]}),y.jsxs("div",{"data-testid":"long-url-container",children:[`${s?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(ji,{href:o,children:s??o})]})]})},D9=La(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:s})=>{const u=ra("shortUrlVisitsDeletion"),{ReportExporter:d}=Ln(D9),f=e3(),m=C.useMemo(()=>n.shortUrls?.get(f),[f,n.shortUrls]),p=C.useCallback((w,x)=>r({...f,options:x,params:w}),[r,f]),b=C.useCallback(w=>d.exportVisits(`short-url_${m?.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,w),[d,m?.shortUrl]),_=C.useMemo(()=>u?{deleteVisits:()=>o(f),visitsDeletion:t}:void 0,[o,f,t,u]);return C.useEffect(()=>{i([f])},[f,i]),y.jsx(ym,{getVisits:p,cancelGetVisits:s,visitsInfo:e,exportCsv:b,deletion:_,children:y.jsx(_be,{shortUrl:m,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[aa.shortUrlVisits(ZC(e.shortCode))]:[]),xbe=Nn(D9,["ReportExporter"]),wbe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(vm,{title:y.jsxs("span",{className:"flex items-center justify-center",children:[y.jsx("span",{className:"mr-2",children:"Visits for"}),y.jsx(i3,{text:r,colorGenerator:t})]}),visits:n})},k9=La(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Ln(k9),{tag:o=""}=yf(),s=C.useCallback((d,f)=>e({tag:o,params:d,options:f}),[e,o]),u=C.useCallback(d=>i.exportVisits(`tag_${o}_visits.csv`,d),[i,o]);return y.jsx(ym,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:u,children:y.jsx(wbe,{tagVisits:t,colorGenerator:r})})},()=>[aa.visits]),Sbe=Nn(k9,["ColorGenerator","ReportExporter"]),m3=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:s}=r,u=zn("visits"),d=C.useMemo(()=>Object.keys(s).reduce((j,O,N)=>(j[O]=Object.assign(Vv(s[O]),{color:t?.[O]??f9(N)}),j),{}),[t,s]),f=C.useMemo(()=>Object.values(s).every(j=>j.length===0),[s]),[{dateRange:m,visitsFilter:p},b]=v9(),[_,w]=C.useState(),x=C.useCallback(({startDate:j,endDate:O},N)=>{b({dateRange:{startDate:j??void 0,endDate:O??void 0}}),w(N)},[b]),[E]=C.useState(()=>m??u?.defaultInterval??"last30Days"),T=C.useMemo(()=>({...p,excludeBots:p.excludeBots??u?.excludeBots}),[p,u?.excludeBots]);return C.useEffect(()=>{const j=m??YI(E);return n({params:{dateRange:j,filter:T}}),i},[i,m,n,E,T]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs(Pt,{bodyClassName:"flex items-center",children:[y.jsx(e0,{}),y.jsx("h3",{className:"grow text-center",children:e})]}),y.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-4",children:[y.jsxs("div",{className:"lg:flex-3 flex flex-col md:flex-row gap-x-2 gap-y-4",children:[y.jsx("div",{className:"grow",children:y.jsx(a3,{disabled:o,defaultText:"All visits",dateRangeOrInterval:_??m??E,onDatesChange:x})}),y.jsx(b9,{disabled:o,selected:T,onChange:({orphanVisitsType:j,excludeBots:O})=>b({visitsFilter:{orphanVisitsType:j,excludeBots:O}})})]}),y.jsx("div",{className:"hidden lg:block lg:flex-2 xl:flex-3"})]}),y.jsx(_9,{info:r}),!o&&y.jsx(Lg,{showFallback:f,children:y.jsx(h9,{visitsGroups:d,onDateRangeChange:x})})]})},Cbe=La(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=l3("domains"),i=C.useCallback(o=>e({...o,domains:r}),[r,e]);return y.jsx(m3,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[aa.visits]),Ebe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(d=>[d,0])),s=(d,f)=>{o[d]=f;const m=Object.values(o),p=m.reduce((b,_)=>b+_,0);n(p/m.length)},u=Object.entries(e).map(([d,f])=>[d,A9({visitsLoader:f,batchSize:i,shouldCancel:t,progressChanged:m=>s(d,m)})]);return async d=>{const f=await Promise.all(u.map(async([m,p])=>{const b=await p(d);return[m,b]}));return Object.fromEntries(f)}},p3=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=cn(`${e}/progressChanged`),i=nr(e,async(o,{getState:s,dispatch:u})=>{const d=t(o),f=await Ebe({visitsLoaders:d,shouldCancel:()=>n(s),progressChanged:m=>u(r(m))})(z2(o.params));return{...o,visitsGroups:f}});return Object.assign(i,{progressChanged:r})},g3=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:s,progressChanged:u}=t,{reducer:d,actions:f}=Lt({name:e,initialState:n,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...n,loading:!0})),p.addCase(o,(b,{error:_})=>({...n,errorData:Ii(_)??null})),p.addCase(s,(b,{payload:_})=>({...b,..._,loading:!1,progress:null,errorData:null})),p.addCase(u,(b,{payload:_})=>({...b,progress:_})),p.addCase(Df,(b,{payload:_})=>{const{visitsGroups:w,...x}=b,E=Object.keys(w).map(j=>{const O=r({...x,groupKey:j},_.createdVisits).map(({visit:N})=>N);return[j,[...O,...w[j]]]}),T=Object.fromEntries(E);return{...x,visitsGroups:T}})}}),{cancelGetVisits:m}=f;return{reducer:d,cancelGetVisits:m}},I9="shlink/domainVisitsComparison",Abe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Tbe=e=>p3({typePrefix:`${I9}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),Obe=e=>g3({name:I9,initialState:Abe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>p9(r,t,n?.dateRange)}),U9="shlink/shortUrlVisitsComparison",jbe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Mbe=e=>p3({typePrefix:`${U9}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[XC(i),o=>n.getShortUrlVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),Pbe=e=>g3({name:U9,initialState:jbe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>m9(r,uI(t),n?.dateRange)}),z9="shlink/tagVisitsComparison",Rbe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Lbe=e=>p3({typePrefix:`${z9}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),Nbe=e=>g3({name:z9,initialState:Rbe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>g9(r,t,n?.dateRange)}),Dbe=La(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=l3("short-urls"),s=C.useMemo(()=>o.map(uI),[o]),u=C.useCallback(m=>e({...m,shortUrls:s}),[e,s]),d=C.useMemo(()=>[...r.shortUrls?.values()??[]],[r.shortUrls]),f=C.useMemo(()=>{const{visitsGroups:m,loading:p,...b}=t,_=d.reduce((w,x)=>(w[x.shortUrl]=m[XC(x)]??[],w),{});return{...b,visitsGroups:_,loading:p||r.loading}},[t,r.loading,d]);return C.useEffect(()=>{s.length>0&&i(s)},[i,s]),y.jsx(m3,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${d.length} short URLs`}),getVisitsForComparison:u,visitsComparisonInfo:f,cancelGetVisitsComparison:n})},()=>[aa.visits]),B9=La(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Ln(B9),i=l3("tags"),o=C.useCallback(d=>e({...d,tags:i}),[e,i]),{visitsGroups:s}=t,u=C.useMemo(()=>Object.keys(s).reduce((d,f)=>(d[f]=r.getColorForKey(f),d),{}),[r,s]);return y.jsx(m3,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(d=>y.jsx(i3,{colorGenerator:r,text:d},d))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:u})},()=>[aa.visits]),kbe=Nn(B9,["ColorGenerator"]),Ibe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>y9),e.factory("ShortUrlVisits",xbe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",Sbe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",kbe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>Cbe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>Dbe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",V1e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",q1e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",H1e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>k1e),e.serviceFactory("getShortUrlVisits",cbe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",Mbe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",dbe,"apiClientFactory"),e.serviceFactory("getTagVisits",pbe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",Lbe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",X1e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",Tbe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",abe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",sbe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",ebe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Df),e.serviceFactory("loadVisitsOverview",vbe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",ybe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Q1e,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",tbe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",obe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",lbe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",fbe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",hbe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",gbe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",Nbe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",Obe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",Pbe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},th=({children:e,to:t,active:n,...r})=>y.jsx(J2,{...r,className:({isActive:i})=>Pe("flex items-center gap-2","no-underline rounded-none px-5 py-2.5",{"text-white bg-lm-main dark:bg-dm-main":i||n,"highlight:bg-lm-secondary highlight:dark:bg-dm-secondary":!i&&!n}),to:t,children:e}),Ube=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Er(),r=i=>`${e}${i}`;return y.jsx("aside",{className:Pe("w-(--aside-menu-width) bg-lm-primary dark:bg-dm-primary","pt-[15px] md:pt-[30px] pb-[10px]","fixed! bottom-0 top-(--header-height) z-890 transition-[left] duration-300","shadow-aside-menu-mobile md:shadow-aside-menu",{"left-0":t,"max-md:left-[calc(-1*(var(--aside-menu-width)+35px))]":!t}),children:y.jsxs("nav",{className:"flex flex-col h-full",children:[y.jsxs(th,{to:r("/overview"),children:[y.jsx(Ye,{icon:lV}),"Overview"]}),y.jsxs(th,{to:r("/list-short-urls/1"),active:n.match("/list-short-urls")!==null,children:[y.jsx(Ye,{icon:lw}),"List short URLs"]}),y.jsxs(th,{to:r("/create-short-url"),children:[y.jsx(Ye,{icon:rV,flip:"horizontal"}),"Create short URL"]}),y.jsxs(th,{to:r("/manage-tags"),children:[y.jsx(Ye,{icon:XR}),"Manage tags"]}),y.jsxs(th,{to:r("/manage-domains"),children:[y.jsx(Ye,{icon:yV}),"Manage domains"]})]})})},F9=C.createContext(void 0),v3=()=>C.useContext(F9),$9=({children:e})=>{const t=v3(),{flag:n,toggle:r,setToTrue:i,setToFalse:o}=Sn(),s=t??{sidebarVisible:n,toggleSidebar:r,showSidebar:i,hideSidebar:o};return y.jsx(F9.Provider,{value:s,children:e})},V9=({className:e,...t})=>{const n=v3();if(!n)throw new Error("ShlinkSidebarToggleButton has to be used inside a ShlinkSidebarVisibilityProvider");const{sidebarVisible:r,toggleSidebar:i}=n;return y.jsx(mf,{"aria-label":"Toggle sidebar",className:Pe("md:hidden transition-colors",{"text-white/50":!r,"text-white":r},e),onClick:i,...t,children:y.jsx(Ye,{icon:MV,size:"xl"})})},H9=({createNotFound:e,autoToggleButton:t})=>{const{TagsList:n,ShortUrlsList:r,CreateShortUrl:i,ShortUrlVisits:o,TagVisits:s,DomainVisits:u,OrphanVisits:d,NonOrphanVisits:f,Overview:m,EditShortUrl:p,ManageDomains:b,TagVisitsComparison:_,DomainVisitsComparison:w,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:E}=Ln(H9),T=Er(),j=fs(),{sidebarVisible:O,showSidebar:N,hideSidebar:F}=v3();C.useEffect(()=>F(),[T,F]);const $=N0e(N,F),K=ra("shortUrlRedirectRules");return y.jsxs(y.Fragment,{children:[t&&y.jsx(V9,{className:"fixed top-4 left-3 z-1035"}),y.jsx("div",{...$,className:"h-full",children:y.jsxs("div",{className:"h-full",children:[y.jsx(Ube,{routePrefix:j,showOnMobile:O}),y.jsx("div",{className:"min-h-full pt-[20px] md:pt-[30px] md:pl-(--aside-menu-width)",onPointerDown:F,children:y.jsx("div",{className:"container mx-auto px-3",children:y.jsxs(Gv,{children:[y.jsx(pt,{index:!0,element:y.jsx(Z2,{replace:!0,to:"overview"})}),y.jsx(pt,{path:"/overview",element:y.jsx(m,{})}),y.jsx(pt,{path:"/list-short-urls/:page",element:y.jsx(r,{})}),y.jsx(pt,{path:"/create-short-url",element:y.jsx(i,{})}),y.jsx(pt,{path:"/short-code/:shortCode/visits",children:["","*"].map(Q=>y.jsx(pt,{path:Q,element:y.jsx(o,{})},Q))}),y.jsx(pt,{path:"/short-code/:shortCode/edit",element:y.jsx(p,{})}),K&&y.jsx(pt,{path:"/short-code/:shortCode/redirect-rules",element:y.jsx(E,{})}),y.jsx(pt,{path:"/short-urls/compare-visits",element:y.jsx(x,{})}),y.jsx(pt,{path:"/tag/:tag/visits",children:["","*"].map(Q=>y.jsx(pt,{path:Q,element:y.jsx(s,{})},Q))}),y.jsx(pt,{path:"/tags/compare-visits",element:y.jsx(_,{})}),y.jsx(pt,{path:"/domain/:domain/visits",children:["","*"].map(Q=>y.jsx(pt,{path:Q,element:y.jsx(u,{})},Q))}),y.jsx(pt,{path:"/orphan-visits",children:["","*"].map(Q=>y.jsx(pt,{path:Q,element:y.jsx(d,{})},Q))}),y.jsx(pt,{path:"/non-orphan-visits",children:["","*"].map(Q=>y.jsx(pt,{path:Q,element:y.jsx(f,{})},Q))}),y.jsx(pt,{path:"/manage-tags",element:y.jsx(n,{})}),y.jsx(pt,{path:"/manage-domains",element:y.jsx(b,{})}),y.jsx(pt,{path:"/domains/compare-visits",element:y.jsx(w,{})}),e&&y.jsx(pt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},zbe=Nn(H9,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),Bbe=e=>kw({devTools:!1,reducer:cy({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})}),Fbe=e=>{e.factory("Main",zbe),e.factory("store",Bbe)},Na=new HR,{container:$be}=Na,Vbe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Hbe=(e,t)=>(...n)=>e[t](...n),qbe=(e,t)=>({...e,[t]:Hbe($be,t)}),If=(e,t=[])=>yR(e?Vbe(e):null,t.reduce(qbe,{}));Fbe(Na);b0e(Na,If);$0e(Na,If);Ibe(Na,If);eve(Na);Xge(Na,If);cve(Na,If);X0e(Na);Aye(Na,If);let iR;const Gbe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:s,autoSidebarToggle:u=!0})=>{const d=Fge(t),f=C.useRef(void 0),[m,p]=C.useState(),b=Vu(),_=C.useMemo(()=>b?C.Fragment:PR,[b]);return C.useEffect(()=>{iR=n,e.value("apiClientFactory",()=>iR),s&&e.value("TagColorsStorage",s);const{Main:w,store:x,loadMercureInfo:E,listTags:T,listDomains:j}=e.container;f.current=y.jsx(w,{createNotFound:o,autoToggleButton:u}),p(x),x.dispatch(E(r)),x.dispatch(T()),x.dispatch(j())},[n,u,o,r,s]),m?y.jsx(H2,{store:m,children:y.jsx(EN,{value:r??{},children:y.jsx(Bge,{value:d,children:y.jsx($9,{children:y.jsx(Ige,{value:i,children:y.jsx(_,{children:f.current})})})})})}):y.jsx(y.Fragment,{})},Ybe="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=",Wbe="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==",Kbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Zbe=()=>{delete _P.Icon.Default.prototype._getIconUrl,_P.Icon.Default.mergeOptions({iconRetinaUrl:Wbe,iconUrl:Ybe,shadowUrl:Kbe})};Zbe();const Xbe=Gbe(Na),Uf=({children:e,className:t})=>y.jsx("div",{className:Pe("container mx-auto p-5 pt-8 max-md:p-3 max-md:py-4",t),children:e});function q9(e){const t=n=>{const{ServerError:r}=Ma(t),i=yf(),{selectServer:o,selectedServer:s}=n;return C.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),s?S$(s)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(Uf,{children:y.jsx(Zo,{loading:!0})})};return t}const G9=q9(C.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ServerError:i}=Ma(G9);if(!iw(e))return y.jsx(i,{});const o=`/server/${e.id}`;return y.jsxs($9,{children:[y.jsx(V9,{className:"fixed top-3.5 left-3 z-901"}),y.jsx(Xbe,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:o,tagColorsStorage:r,createNotFound:s=>y.jsx(kL,{to:`${o}${s}`,children:"List short URLs"}),autoSidebarToggle:!1})]})})),Qbe=Pa(G9,["buildShlinkApiClient","TagColorsStorage","ServerError"]),Jbe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",uX,"fetch"),e.serviceFactory("ScrollToTop",()=>mX),e.factory("MainHeader",hX),e.serviceFactory("Home",()=>dX),e.decorator("Home",tv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.factory("ShlinkWebComponentContainer",Qbe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>CX),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>cX)},Y9=()=>{const e=lo();return C.useCallback(()=>e(-1),[e])};function e_e(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function t_e(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const n_e=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function r_e(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=hN(t,o=>n_e(n,o)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function Hv(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const o=e_e(i);let s=o,u=1;for(;n.has(s);)s=`${o}-${u}`,u++;r.push({...i,id:s}),n.add(s)}),r}const W9=({open:e,duplicatedServers:t,onClose:n,onConfirm:r})=>{const i=t.length>1;return y.jsxs(uo,{size:"lg",title:`Duplicated server${i?"s":""}`,open:e,onClose:n,onConfirm:r,confirmText:`Save duplicate${i?"s":""}`,cancelText:i?"Ignore duplicates":"Discard",children:[y.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),y.jsx("ul",{className:"list-disc mt-4",children:t.map(({url:o,apiKey:s},u)=>i?y.jsxs("li",{children:[y.jsx("b",{children:o})," - ",y.jsx("b",{children:s})]},u):y.jsxs(C.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:o})]}),y.jsxs("li",{children:["API key: ",y.jsx("b",{children:s})]})]},u))}),y.jsxs("span",{children:[i?"Do you want to save duplicated servers":"Do you want to save this server","?"]})]})},i_e=e=>C.useCallback(t=>{t.preventDefault(),e(t)},[e]),K9=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=C.useState(t?.name??""),[s,u]=C.useState(t?.url??""),[d,f]=C.useState(t?.apiKey??""),{flag:m,toggle:p}=Sn(t?.forwardCredentials??!1),b=i_e(()=>e({name:i,url:s,apiKey:d,forwardCredentials:m}));return y.jsxs("form",{name:"serverForm",onSubmit:b,children:[y.jsxs(Pt,{className:"mb-4",bodyClassName:"flex flex-col gap-y-3",title:r,children:[y.jsx(ui,{label:"Name",value:i,onChange:_=>o(_.target.value),required:!0}),y.jsx(ui,{label:"URL",type:"url",value:s,onChange:_=>u(_.target.value),required:!0}),y.jsx(rK,{label:"API key",value:d,onChange:_=>f(_.target.value),required:!0}),y.jsx(HW,{summary:"Advanced options",children:y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsxs(ja,{className:"flex items-center gap-x-1.5 cursor-pointer",children:[y.jsx(Aw,{onChange:p,checked:m}),"Forward credentials to this server on every request."]}),y.jsxs("small",{className:"pl-5.5 text-gray-600 dark:text-gray-400 mt-0.5",children:['"',"Credentials",'"'," here means cookies, TLS client certificates, or authentication headers containing a username and password."]}),y.jsxs("small",{className:"pl-5.5 text-gray-600 dark:text-gray-400",children:[y.jsx("b",{children:"Important!"})," If you are not sure what this means, leave it unchecked. Enabling this option will make all requests fail for Shlink older than v4.5.0, as it requires the server to set a more strict value for ",y.jsx("code",{className:"whitespace-nowrap",children:"Access-Control-Allow-Origin"})," than ",y.jsx("code",{children:"*"}),"."]})]})})]}),y.jsx("div",{className:"flex items-center justify-end gap-x-2",children:n})]})},aR=4e3,oR=({variant:e})=>y.jsx("div",{className:"mt-4",children:y.jsxs($r,{variant: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."]})}),Z9=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Ma(Z9),i=lo(),o=Y9(),s=!!Object.keys(e).length,[u,d]=r({delay:aR}),[f,m]=r({delay:aR}),{flag:p,toggle:b}=Sn(),[_,w]=C.useState(),x=C.useCallback(T=>{const[j]=Hv(e,[T]);t([j]),i(`/server/${j.id}`)},[t,i,e]),E=C.useCallback(T=>{w(T),Object.values(e).some(({url:O,apiKey:N})=>T.url===O&&T.apiKey===N)?b():x(T)},[x,e,b]);return y.jsxs(Uf,{children:[y.jsxs(K9,{title:"Add new server",onSubmit:E,children:[!s&&y.jsx(n,{tooltipPlacement:"top",onImport:d,onError:m}),s&&y.jsx(Rt,{variant:"secondary",onClick:o,children:"Cancel"}),y.jsx(Rt,{type:"submit",children:"Create server"})]}),u&&y.jsx(oR,{variant:"success"}),f&&y.jsx(oR,{variant:"error"}),y.jsx(W9,{open:p,duplicatedServers:_?[_]:[],onClose:o,onConfirm:()=>_&&x(_)})]})},a_e=Pa(Z9,["ImportServersBtn","useTimeoutToggle"]),X9=({server:e,children:t})=>{const{DeleteServerModal:n}=Ma(X9),{flag:r,setToTrue:i,setToFalse:o}=Sn(),s=lo(),u=C.useCallback(d=>{o(),d&&s("/")},[o,s]);return y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",className:"text-danger hover:underline",onClick:i,children:t}),y.jsx(n,{server:e,open:r,onClose:u})]})},o_e=Pa(X9,["DeleteServerModal"]),s_e=({server:e,onClose:t,open:n,deleteServer:r})=>{const i=C.useCallback(o=>{o==="confirm"&&r(e)},[r,e]);return y.jsx(uo,{open:n,title:"Remove server",variant:"danger",onClose:()=>t(!1),onConfirm:()=>t(!0),onClosed:i,confirmText:"Delete",children:y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsxs("p",{children:["Are you sure you want to remove ",y.jsx("b",{children:e?e.name:""}),"?"]}),y.jsx("p",{children:y.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."})})]})})},l_e=q9(({editServer:e,selectedServer:t,selectServer:n})=>{const r=Y9(),{reconnect:i}=Sf();if(!ch(t))return null;const o=s=>{e(t.id,s),i==="true"&&n(t.id),r()};return y.jsx(Uf,{children:y.jsxs(K9,{title:y.jsxs(y.Fragment,{children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[y.jsx(Rt,{variant:"secondary",onClick:r,children:"Cancel"}),y.jsx(Rt,{type:"submit",children:"Save"})]})})}),u_e=Pa(l_e,["ServerError"]),Q9=({createServers:e,servers:t,children:n,onImport:r,onError:i=()=>{},tooltipPlacement:o="bottom",className:s=""})=>{const{ServersImporter:u}=Ma(Q9),d=C.useRef(null),{anchor:f,tooltip:m}=co({placement:o}),[p,b]=C.useState([]),{flag:_,setToTrue:w,setToFalse:x}=Sn(),E=C.useRef(!1),T=C.useCallback(async({target:N})=>u.importServersFromFile(N.files?.[0]).then(F=>{const{duplicatedServers:$,newServers:K}=r_e(t,F);E.current=K.length>0,e(Hv(t,K)),$.length>0?(b($),w()):r?.()}).then(()=>{N.value=null}).catch(i),[e,i,r,t,u,w]),j=C.useCallback(()=>{e(Hv(t,p)),x(),r?.()},[e,p,x,r,t]),O=C.useCallback(()=>{x(),E.current&&r?.()},[x,r]);return y.jsxs(y.Fragment,{children:[y.jsxs(Rt,{variant:"secondary",className:s,onClick:()=>d.current?.click(),...f,children:[y.jsx(Ye,{icon:X$,widthAuto:!0})," ",n??"Import from file"]}),y.jsxs(fo,{...m,children:["You can create servers by importing a CSV file with ",y.jsx("b",{children:"name"}),", ",y.jsx("b",{children:"apiKey"})," and ",y.jsx("b",{children:"url"})," columns."]}),y.jsx("input",{type:"file",accept:".csv",className:"hidden","aria-hidden":!0,tabIndex:-1,ref:d,onChange:T,"data-testid":"csv-file-input"}),y.jsx(W9,{open:_,duplicatedServers:p,onClose:O,onConfirm:j})]})},c_e=Pa(Q9,["ServersImporter"]),J9=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Ma(J9);return y.jsx(Uf,{children:y.jsxs("div",{className:"flex flex-col items-center gap-y-4 md:gap-y-8",children:[y.jsxs(Zo,{className:"w-full lg:w-[80%]",variant:"error",children:[!ch(t)&&"Could not find this Shlink server.",ch(t)&&y.jsxs(y.Fragment,{children:[y.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."]})]}),y.jsxs("p",{className:"text-xl",children:["These are the Shlink servers currently configured. Choose one of them or ",y.jsx(Nr,{to:"/server/create",children:"add a new one"}),"."]}),y.jsx(un,{className:"w-full max-w-100 overflow-hidden",children:y.jsx(uN,{borderless:!0,servers:Object.values(e)})}),ch(t)&&y.jsxs("p",{className:"text-xl",children:["Alternatively, if you think you may have misconfigured this server, you can ",y.jsx(n,{server:t,children:"remove it"})," or ",y.jsx(Nr,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})]})})},f_e=Pa(J9,["DeleteServerButton"]),d_e=4e3,eU=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Ma(eU),[o,s]=C.useState(""),u=C.useMemo(()=>Object.values(e),[e]),d=C.useMemo(()=>u.filter(({name:b,url:_})=>`${b} ${_}`.toLowerCase().match(o.toLowerCase())),[u,o]),f=u.some(({autoConnect:b})=>!!b),[m,p]=r({delay:d_e});return y.jsxs(Uf,{className:"flex flex-col gap-y-4",children:[y.jsx(wf,{onChange:s}),y.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx(n,{className:"flex-grow",onError:p,children:"Import servers"}),d.length>0&&y.jsxs(Rt,{variant:"secondary",className:"flex-grow",onClick:async()=>t.exportServers(),children:[y.jsx(Ye,{icon:WR,widthAuto:!0})," Export servers"]})]}),y.jsxs(Rt,{className:"md:ml-auto",to:"/server/create",children:[y.jsx(Ye,{icon:Vh,widthAuto:!0})," Add a server"]})]}),y.jsx(Pt,{className:"card",children:y.jsxs(Ke,{header:y.jsxs(Ke.Row,{children:[f&&y.jsx(Ke.Cell,{className:"w-[35px]",children:y.jsx("span",{className:"sr-only",children:"Auto-connect"})}),y.jsx(Ke.Cell,{children:"Name"}),y.jsx(Ke.Cell,{children:"Base URL"}),y.jsx(Ke.Cell,{children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[!d.length&&y.jsx(Ke.Row,{className:"text-center",children:y.jsx(Ke.Cell,{colSpan:4,children:"No servers found."})}),d.map(b=>y.jsx(i,{server:b,hasAutoConnect:f},b.id))]})}),m&&y.jsx("div",{children:y.jsx($r,{variant:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},h_e=Pa(eU,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),tU=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Ma(tU),{anchor:r,tooltip:i}=co();return y.jsxs(Ke.Row,{className:"relative",children:[t&&y.jsx(Ke.Cell,{columnName:"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Ye,{icon:ju,className:"text-lm-brand dark:text-dm-brand",...r}),y.jsx(fo,{...i,children:"Auto-connect to this server"})]})}),y.jsx(Ke.Cell,{className:"font-bold",columnName:"Name",children:y.jsx(Nr,{to:`/server/${e.id}`,children:e.name})}),y.jsx(Ke.Cell,{columnName:"Base URL",className:"max-lg:border-b-0",children:e.url}),y.jsx(Ke.Cell,{className:"text-right max-lg:absolute right-0 -top-1 mx-lg:pt-0",children:y.jsx(n,{server:e})})]})},m_e=Pa(tU,["ManageServersRowDropdown"]),nU=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Ma(nU),{flag:r,setToTrue:i,setToFalse:o}=Sn(),s=`/server/${e.id}`,{autoConnect:u}=e,d=u?V$:FW;return y.jsxs(y.Fragment,{children:[y.jsxs(nn,{menuAlignment:"right",children:[y.jsxs(nn.Item,{to:s,className:"gap-1.5",children:[y.jsx(Ye,{icon:dV})," Connect"]}),y.jsxs(nn.Item,{to:`${s}/edit`,className:"gap-1.5",children:[y.jsx(Ye,{icon:ow})," Edit server"]}),y.jsxs(nn.Item,{onClick:()=>t(e,!u),className:"gap-1.5",children:[y.jsx(Ye,{icon:d})," ",u?"Do not a":"A","uto-connect"]}),y.jsx(nn.Separator,{}),y.jsxs(nn.Item,{className:"[&]:text-danger gap-1.5",onClick:i,children:[y.jsx(Ye,{icon:e6})," Remove server"]})]}),y.jsx(n,{server:e,open:r,onClose:o})]})},p_e=Pa(nU,["DeleteServerModal"]),rU=(e,t)=>QL(e,t,{serializeError:n=>n}),g_e={},{actions:v_e,reducer:y_e}=Lt({name:"shlink/servers",initialState:g_e,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:t_e(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:b_e,deleteServer:__e,setAutoConnect:x_e,createServers:iU}=v_e,w_e=y_e,S_e=e=>Hv({},Array.isArray(e)?e.filter(qR):[]),C_e=e=>rU("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${kg.homepage}/servers.json`),i=S_e(r);n(iU(i))}),y3="shlink/selectedServer",E_e="1.0.0",A_e="999.999.999",T_e="latest",O_e=e=>bN(e===T_e?A_e:e,E_e),j_e=mN(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:O_e(n),printableVersion:yN(n)}))),sR=null,b3=cn(`${y3}/resetSelectedServer`),M_e=e=>rU(`${y3}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(b3());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const s=e(o),{version:u,printableVersion:d}=await j_e(o,()=>s.health());return{...o,version:u,printableVersion:d}}catch{return{...o,serverNotReachable:!0}}}),P_e=e=>Lt({name:y3,initialState:sR,reducers:{},extraReducers:t=>{t.addCase(b3,()=>sR),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),R_e=({servers:e,selectedServer:t})=>{const n=Object.values(e);return y.jsx(Nx.Dropdown,{buttonContent:y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx(Ye,{icon:FA})," Servers"]}),children:n.length===0?y.jsxs(Qe.Item,{to:"/server/create",children:[y.jsx(Ye,{icon:Vh})," Add a server"]}):y.jsxs(y.Fragment,{children:[n.map(({name:r,id:i})=>y.jsx(Qe.Item,{to:`/server/${i}`,selected:C$(t)===i,children:r},i)),y.jsx(Qe.Separator,{}),y.jsxs(Qe.Item,{to:"/manage-servers",children:[y.jsx(Ye,{icon:FA})," Manage servers"]})]})})},L_e=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},N_e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);L_e(e,i,n)},D_e="shlink-servers.csv";class k_e{#t;#r;#n;constructor(t,n,r){this.#t=t,this.#r=n,this.#n=r}exportServers=async()=>{const t=Object.values(this.#t.get("servers")??{}).map(E$);try{const n=this.#n(t);N_e(this.#r,n,D_e)}catch(n){console.error(n)}}}const I_e=e=>{if(!Array.isArray(e))throw new Error("Provided file does not have the right format.");return e.map(T$)};class U_e{#t;constructor(t){this.#t=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.#t(n);return I_e(r)}}const z_e=(e,t)=>{e.factory("ManageServers",h_e),e.decorator("ManageServers",tv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",m_e),e.factory("ManageServersRowDropdown",p_e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",a_e),e.decorator("CreateServer",tv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",u_e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>R_e),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>s_e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",o_e),e.factory("ImportServersBtn",c_e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",f_e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",U_e,"csvToJson"),e.service("ServersExporter",k_e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",M_e,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>iU),e.serviceFactory("deleteServer",()=>__e),e.serviceFactory("editServer",()=>b_e),e.serviceFactory("setAutoConnect",()=>x_e),e.serviceFactory("fetchServers",C_e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>b3),e.serviceFactory("selectedServerReducerCreator",P_e,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},aU={field:"dateCreated",dir:"DESC"},B_e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:Rw()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:aU}},{reducer:F_e,actions:$_e}=Lt({name:"shlink/settings",initialState:B_e,reducers:{setSettings:(e,{payload:t})=>Cf(e,t)}}),{setSettings:V_e}=$_e,H_e=F_e,q_e=({settings:e,setSettings:t})=>y.jsx(Uf,{children:y.jsx(VX,{settings:e,onUpdateSettings:t,defaultShortUrlsListOrdering:aU})}),G_e=(e,t)=>{e.serviceFactory("Settings",()=>q_e),e.decorator("Settings",tv),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>V_e)};var cx,lR;function Y_e(){return lR||(lR=1,cx=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,(function(u){return r[u]}).bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(w){var x=[];for(var E in w)x.push(E);return x};e.exports=p;var o=n(5);o.inherits=n(2);var s=n(23),u=n(14);o.inherits(p,s);for(var d=i(u.prototype),f=0;f<d.length;f++){var m=d[f];p.prototype[m]||(p.prototype[m]=u.prototype[m])}function p(w){if(!(this instanceof p))return new p(w);s.call(this,w),u.call(this,w),w&&w.readable===!1&&(this.readable=!1),w&&w.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,w&&w.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",b)}function b(){this.allowHalfOpen||this._writableState.ended||r.nextTick(_,this)}function _(w){w.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(w){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=w,this._writableState.destroyed=w)}}),p.prototype._destroy=function(w,x){this.push(null),this.end(),r.nextTick(x,w)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var i=n(38),o=n(39),s=n(40);function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(D,B){if(u()<B)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(D=new Uint8Array(B)).__proto__=f.prototype:(D===null&&(D=new f(B)),D.length=B),D}function f(D,B,W){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(D,B,W);if(typeof D=="number"){if(typeof B=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,D)}return m(this,D,B,W)}function m(D,B,W,le){if(typeof B=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&B instanceof ArrayBuffer?function(H,ae,ce,ve){if(ae.byteLength,ce<0||ae.byteLength<ce)throw new RangeError("'offset' is out of bounds");if(ae.byteLength<ce+(ve||0))throw new RangeError("'length' is out of bounds");return ae=ce===void 0&&ve===void 0?new Uint8Array(ae):ve===void 0?new Uint8Array(ae,ce):new Uint8Array(ae,ce,ve),f.TYPED_ARRAY_SUPPORT?(H=ae).__proto__=f.prototype:H=_(H,ae),H}(D,B,W,le):typeof B=="string"?function(H,ae,ce){if(typeof ce=="string"&&ce!==""||(ce="utf8"),!f.isEncoding(ce))throw new TypeError('"encoding" must be a valid string encoding');var ve=0|x(ae,ce),de=(H=d(H,ve)).write(ae,ce);return de!==ve&&(H=H.slice(0,de)),H}(D,B,W):function(H,ae){if(f.isBuffer(ae)){var ce=0|w(ae.length);return(H=d(H,ce)).length===0||ae.copy(H,0,0,ce),H}if(ae){if(typeof ArrayBuffer<"u"&&ae.buffer instanceof ArrayBuffer||"length"in ae)return typeof ae.length!="number"||function(ve){return ve!=ve}(ae.length)?d(H,0):_(H,ae);if(ae.type==="Buffer"&&s(ae.data))return _(H,ae.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(D,B)}function p(D){if(typeof D!="number")throw new TypeError('"size" argument must be a number');if(D<0)throw new RangeError('"size" argument must not be negative')}function b(D,B){if(p(B),D=d(D,B<0?0:0|w(B)),!f.TYPED_ARRAY_SUPPORT)for(var W=0;W<B;++W)D[W]=0;return D}function _(D,B){var W=B.length<0?0:0|w(B.length);D=d(D,W);for(var le=0;le<W;le+=1)D[le]=255&B[le];return D}function w(D){if(D>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|D}function x(D,B){if(f.isBuffer(D))return D.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(D)||D instanceof ArrayBuffer))return D.byteLength;typeof D!="string"&&(D=""+D);var W=D.length;if(W===0)return 0;for(var le=!1;;)switch(B){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return ue(D).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return fe(D).length;default:if(le)return ue(D).length;B=(""+B).toLowerCase(),le=!0}}function E(D,B,W){var le=D[B];D[B]=D[W],D[W]=le}function T(D,B,W,le,H){if(D.length===0)return-1;if(typeof W=="string"?(le=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=H?0:D.length-1),W<0&&(W=D.length+W),W>=D.length){if(H)return-1;W=D.length-1}else if(W<0){if(!H)return-1;W=0}if(typeof B=="string"&&(B=f.from(B,le)),f.isBuffer(B))return B.length===0?-1:j(D,B,W,le,H);if(typeof B=="number")return B&=255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(D,B,W):Uint8Array.prototype.lastIndexOf.call(D,B,W):j(D,[B],W,le,H);throw new TypeError("val must be string, number or Buffer")}function j(D,B,W,le,H){var ae,ce=1,ve=D.length,de=B.length;if(le!==void 0&&((le=String(le).toLowerCase())==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(D.length<2||B.length<2)return-1;ce=2,ve/=2,de/=2,W/=2}function we(Fe,He){return ce===1?Fe[He]:Fe.readUInt16BE(He*ce)}if(H){var Ae=-1;for(ae=W;ae<ve;ae++)if(we(D,ae)===we(B,Ae===-1?0:ae-Ae)){if(Ae===-1&&(Ae=ae),ae-Ae+1===de)return Ae*ce}else Ae!==-1&&(ae-=ae-Ae),Ae=-1}else for(W+de>ve&&(W=ve-de),ae=W;ae>=0;ae--){for(var Ne=!0,Ve=0;Ve<de;Ve++)if(we(D,ae+Ve)!==we(B,Ve)){Ne=!1;break}if(Ne)return ae}return-1}function O(D,B,W,le){W=Number(W)||0;var H=D.length-W;le?(le=Number(le))>H&&(le=H):le=H;var ae=B.length;if(ae%2!=0)throw new TypeError("Invalid hex string");le>ae/2&&(le=ae/2);for(var ce=0;ce<le;++ce){var ve=parseInt(B.substr(2*ce,2),16);if(isNaN(ve))return ce;D[W+ce]=ve}return ce}function N(D,B,W,le){return ge(ue(B,D.length-W),D,W,le)}function F(D,B,W,le){return ge(function(H){for(var ae=[],ce=0;ce<H.length;++ce)ae.push(255&H.charCodeAt(ce));return ae}(B),D,W,le)}function $(D,B,W,le){return F(D,B,W,le)}function K(D,B,W,le){return ge(fe(B),D,W,le)}function Q(D,B,W,le){return ge(function(H,ae){for(var ce,ve,de,we=[],Ae=0;Ae<H.length&&!((ae-=2)<0);++Ae)ve=(ce=H.charCodeAt(Ae))>>8,de=ce%256,we.push(de),we.push(ve);return we}(B,D.length-W),D,W,le)}function oe(D,B,W){return B===0&&W===D.length?i.fromByteArray(D):i.fromByteArray(D.slice(B,W))}function ee(D,B,W){W=Math.min(D.length,W);for(var le=[],H=B;H<W;){var ae,ce,ve,de,we=D[H],Ae=null,Ne=we>239?4:we>223?3:we>191?2:1;if(H+Ne<=W)switch(Ne){case 1:we<128&&(Ae=we);break;case 2:(192&(ae=D[H+1]))==128&&(de=(31&we)<<6|63&ae)>127&&(Ae=de);break;case 3:ae=D[H+1],ce=D[H+2],(192&ae)==128&&(192&ce)==128&&(de=(15&we)<<12|(63&ae)<<6|63&ce)>2047&&(de<55296||de>57343)&&(Ae=de);break;case 4:ae=D[H+1],ce=D[H+2],ve=D[H+3],(192&ae)==128&&(192&ce)==128&&(192&ve)==128&&(de=(15&we)<<18|(63&ae)<<12|(63&ce)<<6|63&ve)>65535&&de<1114112&&(Ae=de)}Ae===null?(Ae=65533,Ne=1):Ae>65535&&(Ae-=65536,le.push(Ae>>>10&1023|55296),Ae=56320|1023&Ae),le.push(Ae),H+=Ne}return function(Ve){var Fe=Ve.length;if(Fe<=J)return String.fromCharCode.apply(String,Ve);for(var He="",be=0;be<Fe;)He+=String.fromCharCode.apply(String,Ve.slice(be,be+=J));return He}(le)}t.Buffer=f,t.SlowBuffer=function(D){return+D!=D&&(D=0),f.alloc(+D)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var D=new Uint8Array(1);return D.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},D.foo()===42&&typeof D.subarray=="function"&&D.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=u(),f.poolSize=8192,f._augment=function(D){return D.__proto__=f.prototype,D},f.from=function(D,B,W){return m(null,D,B,W)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(D,B,W){return function(le,H,ae,ce){return p(H),H<=0?d(le,H):ae!==void 0?typeof ce=="string"?d(le,H).fill(ae,ce):d(le,H).fill(ae):d(le,H)}(null,D,B,W)},f.allocUnsafe=function(D){return b(null,D)},f.allocUnsafeSlow=function(D){return b(null,D)},f.isBuffer=function(D){return!(D==null||!D._isBuffer)},f.compare=function(D,B){if(!f.isBuffer(D)||!f.isBuffer(B))throw new TypeError("Arguments must be Buffers");if(D===B)return 0;for(var W=D.length,le=B.length,H=0,ae=Math.min(W,le);H<ae;++H)if(D[H]!==B[H]){W=D[H],le=B[H];break}return W<le?-1:le<W?1:0},f.isEncoding=function(D){switch(String(D).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}},f.concat=function(D,B){if(!s(D))throw new TypeError('"list" argument must be an Array of Buffers');if(D.length===0)return f.alloc(0);var W;if(B===void 0)for(B=0,W=0;W<D.length;++W)B+=D[W].length;var le=f.allocUnsafe(B),H=0;for(W=0;W<D.length;++W){var ae=D[W];if(!f.isBuffer(ae))throw new TypeError('"list" argument must be an Array of Buffers');ae.copy(le,H),H+=ae.length}return le},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var D=this.length;if(D%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var B=0;B<D;B+=2)E(this,B,B+1);return this},f.prototype.swap32=function(){var D=this.length;if(D%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var B=0;B<D;B+=4)E(this,B,B+3),E(this,B+1,B+2);return this},f.prototype.swap64=function(){var D=this.length;if(D%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var B=0;B<D;B+=8)E(this,B,B+7),E(this,B+1,B+6),E(this,B+2,B+5),E(this,B+3,B+4);return this},f.prototype.toString=function(){var D=0|this.length;return D===0?"":arguments.length===0?ee(this,0,D):(function(B,W,le){var H=!1;if((W===void 0||W<0)&&(W=0),W>this.length||((le===void 0||le>this.length)&&(le=this.length),le<=0)||(le>>>=0)<=(W>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return X(this,W,le);case"utf8":case"utf-8":return ee(this,W,le);case"ascii":return te(this,W,le);case"latin1":case"binary":return he(this,W,le);case"base64":return oe(this,W,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,W,le);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),H=!0}}).apply(this,arguments)},f.prototype.equals=function(D){if(!f.isBuffer(D))throw new TypeError("Argument must be a Buffer");return this===D||f.compare(this,D)===0},f.prototype.inspect=function(){var D="",B=t.INSPECT_MAX_BYTES;return this.length>0&&(D=this.toString("hex",0,B).match(/.{2}/g).join(" "),this.length>B&&(D+=" ... ")),"<Buffer "+D+">"},f.prototype.compare=function(D,B,W,le,H){if(!f.isBuffer(D))throw new TypeError("Argument must be a Buffer");if(B===void 0&&(B=0),W===void 0&&(W=D?D.length:0),le===void 0&&(le=0),H===void 0&&(H=this.length),B<0||W>D.length||le<0||H>this.length)throw new RangeError("out of range index");if(le>=H&&B>=W)return 0;if(le>=H)return-1;if(B>=W)return 1;if(B>>>=0,W>>>=0,le>>>=0,H>>>=0,this===D)return 0;for(var ae=H-le,ce=W-B,ve=Math.min(ae,ce),de=this.slice(le,H),we=D.slice(B,W),Ae=0;Ae<ve;++Ae)if(de[Ae]!==we[Ae]){ae=de[Ae],ce=we[Ae];break}return ae<ce?-1:ce<ae?1:0},f.prototype.includes=function(D,B,W){return this.indexOf(D,B,W)!==-1},f.prototype.indexOf=function(D,B,W){return T(this,D,B,W,!0)},f.prototype.lastIndexOf=function(D,B,W){return T(this,D,B,W,!1)},f.prototype.write=function(D,B,W,le){if(B===void 0)le="utf8",W=this.length,B=0;else if(W===void 0&&typeof B=="string")le=B,W=this.length,B=0;else{if(!isFinite(B))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");B|=0,isFinite(W)?(W|=0,le===void 0&&(le="utf8")):(le=W,W=void 0)}var H=this.length-B;if((W===void 0||W>H)&&(W=H),D.length>0&&(W<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ae=!1;;)switch(le){case"hex":return O(this,D,B,W);case"utf8":case"utf-8":return N(this,D,B,W);case"ascii":return F(this,D,B,W);case"latin1":case"binary":return $(this,D,B,W);case"base64":return K(this,D,B,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,D,B,W);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ae=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;function te(D,B,W){var le="";W=Math.min(D.length,W);for(var H=B;H<W;++H)le+=String.fromCharCode(127&D[H]);return le}function he(D,B,W){var le="";W=Math.min(D.length,W);for(var H=B;H<W;++H)le+=String.fromCharCode(D[H]);return le}function X(D,B,W){var le=D.length;(!B||B<0)&&(B=0),(!W||W<0||W>le)&&(W=le);for(var H="",ae=B;ae<W;++ae)H+=ne(D[ae]);return H}function se(D,B,W){for(var le=D.slice(B,W),H="",ae=0;ae<le.length;ae+=2)H+=String.fromCharCode(le[ae]+256*le[ae+1]);return H}function Z(D,B,W){if(D%1!=0||D<0)throw new RangeError("offset is not uint");if(D+B>W)throw new RangeError("Trying to access beyond buffer length")}function I(D,B,W,le,H,ae){if(!f.isBuffer(D))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>H||B<ae)throw new RangeError('"value" argument is out of bounds');if(W+le>D.length)throw new RangeError("Index out of range")}function k(D,B,W,le){B<0&&(B=65535+B+1);for(var H=0,ae=Math.min(D.length-W,2);H<ae;++H)D[W+H]=(B&255<<8*(le?H:1-H))>>>8*(le?H:1-H)}function U(D,B,W,le){B<0&&(B=4294967295+B+1);for(var H=0,ae=Math.min(D.length-W,4);H<ae;++H)D[W+H]=B>>>8*(le?H:3-H)&255}function z(D,B,W,le,H,ae){if(W+le>D.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function P(D,B,W,le,H){return H||z(D,0,W,4),o.write(D,B,W,le,23,4),W+4}function G(D,B,W,le,H){return H||z(D,0,W,8),o.write(D,B,W,le,52,8),W+8}f.prototype.slice=function(D,B){var W,le=this.length;if(D=~~D,B=B===void 0?le:~~B,D<0?(D+=le)<0&&(D=0):D>le&&(D=le),B<0?(B+=le)<0&&(B=0):B>le&&(B=le),B<D&&(B=D),f.TYPED_ARRAY_SUPPORT)(W=this.subarray(D,B)).__proto__=f.prototype;else{var H=B-D;W=new f(H,void 0);for(var ae=0;ae<H;++ae)W[ae]=this[ae+D]}return W},f.prototype.readUIntLE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=this[D],H=1,ae=0;++ae<B&&(H*=256);)le+=this[D+ae]*H;return le},f.prototype.readUIntBE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=this[D+--B],H=1;B>0&&(H*=256);)le+=this[D+--B]*H;return le},f.prototype.readUInt8=function(D,B){return B||Z(D,1,this.length),this[D]},f.prototype.readUInt16LE=function(D,B){return B||Z(D,2,this.length),this[D]|this[D+1]<<8},f.prototype.readUInt16BE=function(D,B){return B||Z(D,2,this.length),this[D]<<8|this[D+1]},f.prototype.readUInt32LE=function(D,B){return B||Z(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+16777216*this[D+3]},f.prototype.readUInt32BE=function(D,B){return B||Z(D,4,this.length),16777216*this[D]+(this[D+1]<<16|this[D+2]<<8|this[D+3])},f.prototype.readIntLE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=this[D],H=1,ae=0;++ae<B&&(H*=256);)le+=this[D+ae]*H;return le>=(H*=128)&&(le-=Math.pow(2,8*B)),le},f.prototype.readIntBE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=B,H=1,ae=this[D+--le];le>0&&(H*=256);)ae+=this[D+--le]*H;return ae>=(H*=128)&&(ae-=Math.pow(2,8*B)),ae},f.prototype.readInt8=function(D,B){return B||Z(D,1,this.length),128&this[D]?-1*(255-this[D]+1):this[D]},f.prototype.readInt16LE=function(D,B){B||Z(D,2,this.length);var W=this[D]|this[D+1]<<8;return 32768&W?4294901760|W:W},f.prototype.readInt16BE=function(D,B){B||Z(D,2,this.length);var W=this[D+1]|this[D]<<8;return 32768&W?4294901760|W:W},f.prototype.readInt32LE=function(D,B){return B||Z(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},f.prototype.readInt32BE=function(D,B){return B||Z(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},f.prototype.readFloatLE=function(D,B){return B||Z(D,4,this.length),o.read(this,D,!0,23,4)},f.prototype.readFloatBE=function(D,B){return B||Z(D,4,this.length),o.read(this,D,!1,23,4)},f.prototype.readDoubleLE=function(D,B){return B||Z(D,8,this.length),o.read(this,D,!0,52,8)},f.prototype.readDoubleBE=function(D,B){return B||Z(D,8,this.length),o.read(this,D,!1,52,8)},f.prototype.writeUIntLE=function(D,B,W,le){D=+D,B|=0,W|=0,le||I(this,D,B,W,Math.pow(2,8*W)-1,0);var H=1,ae=0;for(this[B]=255&D;++ae<W&&(H*=256);)this[B+ae]=D/H&255;return B+W},f.prototype.writeUIntBE=function(D,B,W,le){D=+D,B|=0,W|=0,le||I(this,D,B,W,Math.pow(2,8*W)-1,0);var H=W-1,ae=1;for(this[B+H]=255&D;--H>=0&&(ae*=256);)this[B+H]=D/ae&255;return B+W},f.prototype.writeUInt8=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,1,255,0),f.TYPED_ARRAY_SUPPORT||(D=Math.floor(D)),this[B]=255&D,B+1},f.prototype.writeUInt16LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[B]=255&D,this[B+1]=D>>>8):k(this,D,B,!0),B+2},f.prototype.writeUInt16BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>8,this[B+1]=255&D):k(this,D,B,!1),B+2},f.prototype.writeUInt32LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[B+3]=D>>>24,this[B+2]=D>>>16,this[B+1]=D>>>8,this[B]=255&D):U(this,D,B,!0),B+4},f.prototype.writeUInt32BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=255&D):U(this,D,B,!1),B+4},f.prototype.writeIntLE=function(D,B,W,le){if(D=+D,B|=0,!le){var H=Math.pow(2,8*W-1);I(this,D,B,W,H-1,-H)}var ae=0,ce=1,ve=0;for(this[B]=255&D;++ae<W&&(ce*=256);)D<0&&ve===0&&this[B+ae-1]!==0&&(ve=1),this[B+ae]=(D/ce>>0)-ve&255;return B+W},f.prototype.writeIntBE=function(D,B,W,le){if(D=+D,B|=0,!le){var H=Math.pow(2,8*W-1);I(this,D,B,W,H-1,-H)}var ae=W-1,ce=1,ve=0;for(this[B+ae]=255&D;--ae>=0&&(ce*=256);)D<0&&ve===0&&this[B+ae+1]!==0&&(ve=1),this[B+ae]=(D/ce>>0)-ve&255;return B+W},f.prototype.writeInt8=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,1,127,-128),f.TYPED_ARRAY_SUPPORT||(D=Math.floor(D)),D<0&&(D=255+D+1),this[B]=255&D,B+1},f.prototype.writeInt16LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[B]=255&D,this[B+1]=D>>>8):k(this,D,B,!0),B+2},f.prototype.writeInt16BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>8,this[B+1]=255&D):k(this,D,B,!1),B+2},f.prototype.writeInt32LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[B]=255&D,this[B+1]=D>>>8,this[B+2]=D>>>16,this[B+3]=D>>>24):U(this,D,B,!0),B+4},f.prototype.writeInt32BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=255&D):U(this,D,B,!1),B+4},f.prototype.writeFloatLE=function(D,B,W){return P(this,D,B,!0,W)},f.prototype.writeFloatBE=function(D,B,W){return P(this,D,B,!1,W)},f.prototype.writeDoubleLE=function(D,B,W){return G(this,D,B,!0,W)},f.prototype.writeDoubleBE=function(D,B,W){return G(this,D,B,!1,W)},f.prototype.copy=function(D,B,W,le){if(W||(W=0),le||le===0||(le=this.length),B>=D.length&&(B=D.length),B||(B=0),le>0&&le<W&&(le=W),le===W||D.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),D.length-B<le-W&&(le=D.length-B+W);var H,ae=le-W;if(this===D&&W<B&&B<le)for(H=ae-1;H>=0;--H)D[H+B]=this[H+W];else if(ae<1e3||!f.TYPED_ARRAY_SUPPORT)for(H=0;H<ae;++H)D[H+B]=this[H+W];else Uint8Array.prototype.set.call(D,this.subarray(W,W+ae),B);return ae},f.prototype.fill=function(D,B,W,le){if(typeof D=="string"){if(typeof B=="string"?(le=B,B=0,W=this.length):typeof W=="string"&&(le=W,W=this.length),D.length===1){var H=D.charCodeAt(0);H<256&&(D=H)}if(le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!f.isEncoding(le))throw new TypeError("Unknown encoding: "+le)}else typeof D=="number"&&(D&=255);if(B<0||this.length<B||this.length<W)throw new RangeError("Out of range index");if(W<=B)return this;var ae;if(B>>>=0,W=W===void 0?this.length:W>>>0,D||(D=0),typeof D=="number")for(ae=B;ae<W;++ae)this[ae]=D;else{var ce=f.isBuffer(D)?D:ue(new f(D,le).toString()),ve=ce.length;for(ae=0;ae<W-B;++ae)this[ae+B]=ce[ae%ve]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function ne(D){return D<16?"0"+D.toString(16):D.toString(16)}function ue(D,B){var W;B=B||1/0;for(var le=D.length,H=null,ae=[],ce=0;ce<le;++ce){if((W=D.charCodeAt(ce))>55295&&W<57344){if(!H){if(W>56319){(B-=3)>-1&&ae.push(239,191,189);continue}if(ce+1===le){(B-=3)>-1&&ae.push(239,191,189);continue}H=W;continue}if(W<56320){(B-=3)>-1&&ae.push(239,191,189),H=W;continue}W=65536+(H-55296<<10|W-56320)}else H&&(B-=3)>-1&&ae.push(239,191,189);if(H=null,W<128){if((B-=1)<0)break;ae.push(W)}else if(W<2048){if((B-=2)<0)break;ae.push(W>>6|192,63&W|128)}else if(W<65536){if((B-=3)<0)break;ae.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((B-=4)<0)break;ae.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return ae}function fe(D){return i.toByteArray(function(B){if((B=function(W){return W.trim?W.trim():W.replace(/^\s+|\s+$/g,"")}(B).replace(Y,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(D))}function ge(D,B,W,le){for(var H=0;H<le&&!(H+W>=B.length||H>=D.length);++H)B[H+W]=D[H];return H}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(E){if(n===setTimeout)return setTimeout(E,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(E,0);try{return n(E,0)}catch{try{return n.call(null,E,0)}catch{return n.call(this,E,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var d,f=[],m=!1,p=-1;function b(){m&&d&&(m=!1,d.length?f=d.concat(f):p=-1,f.length&&_())}function _(){if(!m){var E=u(b);m=!0;for(var T=f.length;T;){for(d=f,f=[];++p<T;)d&&d[p].run();p=-1,T=f.length}d=null,m=!1,function(j){if(r===clearTimeout)return clearTimeout(j);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(j);try{r(j)}catch{try{return r.call(null,j)}catch{return r.call(this,j)}}}(E)}}function w(E,T){this.fun=E,this.array=T}function x(){}i.nextTick=function(E){var T=new Array(arguments.length-1);if(arguments.length>1)for(var j=1;j<arguments.length;j++)T[j-1]=arguments[j];f.push(new w(E,T)),f.length!==1||m||u(_)},w.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=x,i.addListener=x,i.once=x,i.off=x,i.removeListener=x,i.removeAllListeners=x,i.emit=x,i.prependListener=x,i.prependOnceListener=x,i.listeners=function(E){return[]},i.binding=function(E){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(E){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,s,u){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var d,f,m=arguments.length;switch(m){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,s)});case 4:return r.nextTick(function(){i.call(null,o,s,u)});default:for(d=new Array(m-1),f=0;f<d.length;)d[f++]=arguments[f];return r.nextTick(function(){i.apply(null,d)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(u,d){for(var f in u)d[f]=u[f]}function s(u,d,f){return i(u,d,f)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(u,d,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return i(u,d,f)},s.alloc=function(u,d,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var m=i(u);return d!==void 0?typeof f=="string"?m.fill(d,f):m.fill(d):m.fill(0),m},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return i(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(u)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var s=i.length;s--;)if(r(i[s][0],o))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var s=i.__data__;return r(o)?s[typeof o=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function s(u,d){this._id=u,this._clearFn=d}t.setTimeout=function(){return new s(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(u){u&&u.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(u,d){clearTimeout(u._idleTimeoutId),u._idleTimeout=d},t.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},t._unrefActive=t.active=function(u){clearTimeout(u._idleTimeoutId);var d=u._idleTimeout;d>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},d))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(u){return typeof u=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var u,d,f,m,p,b;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((u=arguments[1])instanceof Error)throw u;var _=new Error('Uncaught, unspecified "error" event. ('+u+")");throw _.context=u,_}if(o(d=this._events[s]))return!1;if(r(d))switch(arguments.length){case 1:d.call(this);break;case 2:d.call(this,arguments[1]);break;case 3:d.call(this,arguments[1],arguments[2]);break;default:m=Array.prototype.slice.call(arguments,1),d.apply(this,m)}else if(i(d))for(m=Array.prototype.slice.call(arguments,1),f=(b=d.slice()).length,p=0;p<f;p++)b[p].apply(this,m);return!0},n.prototype.addListener=function(s,u){var d;if(!r(u))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,r(u.listener)?u.listener:u),this._events[s]?i(this._events[s])?this._events[s].push(u):this._events[s]=[this._events[s],u]:this._events[s]=u,i(this._events[s])&&!this._events[s].warned&&(d=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&d>0&&this._events[s].length>d&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,u){if(!r(u))throw TypeError("listener must be a function");var d=!1;function f(){this.removeListener(s,f),d||(d=!0,u.apply(this,arguments))}return f.listener=u,this.on(s,f),this},n.prototype.removeListener=function(s,u){var d,f,m,p;if(!r(u))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(m=(d=this._events[s]).length,f=-1,d===u||r(d.listener)&&d.listener===u)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,u);else if(i(d)){for(p=m;p-- >0;)if(d[p]===u||d[p].listener&&d[p].listener===u){f=p;break}if(f<0)return this;d.length===1?(d.length=0,delete this._events[s]):d.splice(f,1),this._events.removeListener&&this.emit("removeListener",s,u)}return this},n.prototype.removeAllListeners=function(s){var u,d;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(u in this._events)u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events={},this}if(r(d=this._events[s]))this.removeListener(s,d);else if(d)for(;d.length;)this.removeListener(s,d[d.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var u=this._events[s];if(r(u))return 1;if(u)return u.length}return 0},n.listenerCount=function(s,u){return s.listenerCount(u)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function u(ee){var J=this;this.next=null,this.entry=null,this.finish=function(){(function(te,he,X){var se=te.entry;for(te.entry=null;se;){var Z=se.callback;he.pendingcb--,Z(void 0),se=se.next}he.corkedRequestsFree?he.corkedRequestsFree.next=te:he.corkedRequestsFree=te})(J,ee)}}e.exports=O;var d,f=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;O.WritableState=j;var m=n(5);m.inherits=n(2);var p,b={deprecate:n(44)},_=n(24),w=n(7).Buffer,x=o.Uint8Array||function(){},E=n(25);function T(){}function j(ee,J){d=d||n(1),ee=ee||{};var te=J instanceof d;this.objectMode=!!ee.objectMode,te&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var he=ee.highWaterMark,X=ee.writableHighWaterMark,se=this.objectMode?16:16384;this.highWaterMark=he||he===0?he:te&&(X||X===0)?X:se,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 Z=ee.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(I){(function(k,U){var z=k._writableState,P=z.sync,G=z.writecb;if(function(ne){ne.writing=!1,ne.writecb=null,ne.length-=ne.writelen,ne.writelen=0}(z),U)(function(ne,ue,fe,ge,D){--ue.pendingcb,fe?(s.nextTick(D,ge),s.nextTick(oe,ne,ue),ne._writableState.errorEmitted=!0,ne.emit("error",ge)):(D(ge),ne._writableState.errorEmitted=!0,ne.emit("error",ge),oe(ne,ue))})(k,z,P,U,G);else{var Y=K(z);Y||z.corked||z.bufferProcessing||!z.bufferedRequest||$(k,z),P?f(F,k,z,Y,G):F(k,z,Y,G)}})(J,I)},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 u(this)}function O(ee){if(d=d||n(1),!(p.call(O,this)||this instanceof d))return new O(ee);this._writableState=new j(ee,this),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),_.call(this)}function N(ee,J,te,he,X,se,Z){J.writelen=he,J.writecb=Z,J.writing=!0,J.sync=!0,te?ee._writev(X,J.onwrite):ee._write(X,se,J.onwrite),J.sync=!1}function F(ee,J,te,he){te||function(X,se){se.length===0&&se.needDrain&&(se.needDrain=!1,X.emit("drain"))}(ee,J),J.pendingcb--,he(),oe(ee,J)}function $(ee,J){J.bufferProcessing=!0;var te=J.bufferedRequest;if(ee._writev&&te&&te.next){var he=J.bufferedRequestCount,X=new Array(he),se=J.corkedRequestsFree;se.entry=te;for(var Z=0,I=!0;te;)X[Z]=te,te.isBuf||(I=!1),te=te.next,Z+=1;X.allBuffers=I,N(ee,J,!0,J.length,X,"",se.finish),J.pendingcb++,J.lastBufferedRequest=null,se.next?(J.corkedRequestsFree=se.next,se.next=null):J.corkedRequestsFree=new u(J),J.bufferedRequestCount=0}else{for(;te;){var k=te.chunk,U=te.encoding,z=te.callback;if(N(ee,J,!1,J.objectMode?1:k.length,k,U,z),te=te.next,J.bufferedRequestCount--,J.writing)break}te===null&&(J.lastBufferedRequest=null)}J.bufferedRequest=te,J.bufferProcessing=!1}function K(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function Q(ee,J){ee._final(function(te){J.pendingcb--,te&&ee.emit("error",te),J.prefinished=!0,ee.emit("prefinish"),oe(ee,J)})}function oe(ee,J){var te=K(J);return te&&(function(he,X){X.prefinished||X.finalCalled||(typeof he._final=="function"?(X.pendingcb++,X.finalCalled=!0,s.nextTick(Q,he,X)):(X.prefinished=!0,he.emit("prefinish")))}(ee,J),J.pendingcb===0&&(J.finished=!0,ee.emit("finish"))),te}m.inherits(O,_),j.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,J=[];ee;)J.push(ee),ee=ee.next;return J},function(){try{Object.defineProperty(j.prototype,"buffer",{get:b.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(O,Symbol.hasInstance,{value:function(ee){return!!p.call(this,ee)||this===O&&ee&&ee._writableState instanceof j}})):p=function(ee){return ee instanceof this},O.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},O.prototype.write=function(ee,J,te){var he=this._writableState,X=!1,se=!he.objectMode&&function(Z){return w.isBuffer(Z)||Z instanceof x}(ee);return se&&!w.isBuffer(ee)&&(ee=function(Z){return w.from(Z)}(ee)),typeof J=="function"&&(te=J,J=null),se?J="buffer":J||(J=he.defaultEncoding),typeof te!="function"&&(te=T),he.ended?function(Z,I){var k=new Error("write after end");Z.emit("error",k),s.nextTick(I,k)}(this,te):(se||function(Z,I,k,U){var z=!0,P=!1;return k===null?P=new TypeError("May not write null values to stream"):typeof k=="string"||k===void 0||I.objectMode||(P=new TypeError("Invalid non-string/buffer chunk")),P&&(Z.emit("error",P),s.nextTick(U,P),z=!1),z}(this,he,ee,te))&&(he.pendingcb++,X=function(Z,I,k,U,z,P){if(!k){var G=function(fe,ge,D){return fe.objectMode||fe.decodeStrings===!1||typeof ge!="string"||(ge=w.from(ge,D)),ge}(I,U,z);U!==G&&(k=!0,z="buffer",U=G)}var Y=I.objectMode?1:U.length;I.length+=Y;var ne=I.length<I.highWaterMark;if(ne||(I.needDrain=!0),I.writing||I.corked){var ue=I.lastBufferedRequest;I.lastBufferedRequest={chunk:U,encoding:z,isBuf:k,callback:P,next:null},ue?ue.next=I.lastBufferedRequest:I.bufferedRequest=I.lastBufferedRequest,I.bufferedRequestCount+=1}else N(Z,I,!1,Y,U,z,P);return ne}(this,he,se,ee,J,te)),X},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||ee.corked||ee.finished||ee.bufferProcessing||!ee.bufferedRequest||$(this,ee))},O.prototype.setDefaultEncoding=function(ee){if(typeof ee=="string"&&(ee=ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ee+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(ee,J,te){te(new Error("_write() is not implemented"))},O.prototype._writev=null,O.prototype.end=function(ee,J,te){var he=this._writableState;typeof ee=="function"?(te=ee,ee=null,J=null):typeof J=="function"&&(te=J,J=null),ee!=null&&this.write(ee,J),he.corked&&(he.corked=1,this.uncork()),he.ending||he.finished||function(X,se,Z){se.ending=!0,oe(X,se),Z&&(se.finished?s.nextTick(Z):X.once("finish",Z)),se.ended=!0,X.writable=!1}(this,he,te)},Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ee){this._writableState&&(this._writableState.destroyed=ee)}}),O.prototype.destroy=E.destroy,O.prototype._undestroy=E.undestroy,O.prototype._destroy=function(ee,J){this.end(),J(ee)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(u,d,f){function m(_,w){if(!d[_]){if(!u[_]){var x=typeof _dereq_=="function"&&_dereq_;if(!w&&x)return x(_,!0);if(p)return p(_,!0);var E=new Error("Cannot find module '"+_+"'");throw E.code="MODULE_NOT_FOUND",E}var T=d[_]={exports:{}};u[_][0].call(T.exports,function(j){return m(u[_][1][j]||j)},T,T.exports,s,u,d,f)}return d[_].exports}for(var p=typeof _dereq_=="function"&&_dereq_,b=0;b<f.length;b++)m(f[b]);return m}({1:[function(s,u,d){u.exports=function(f){var m=f._SomePromiseArray;function p(b){var _=new m(b),w=_.promise();return _.setHowMany(1),_.setUnwrap(),_.init(),w}f.any=function(b){return p(b)},f.prototype.any=function(){return p(this)}}},{}],2:[function(s,u,d){var f;try{throw new Error}catch(T){f=T}var m=s("./schedule"),p=s("./queue"),b=s("./util");function _(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var T=this;this.drainQueues=function(){T._drainQueues()},this._schedule=m}function w(T,j,O){this._lateQueue.push(T,j,O),this._queueTick()}function x(T,j,O){this._normalQueue.push(T,j,O),this._queueTick()}function E(T){this._normalQueue._pushOne(T),this._queueTick()}_.prototype.setScheduler=function(T){var j=this._schedule;return this._schedule=T,this._customScheduler=!0,j},_.prototype.hasCustomScheduler=function(){return this._customScheduler},_.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},_.prototype.disableTrampolineIfNecessary=function(){b.hasDevTools&&(this._trampolineEnabled=!1)},_.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},_.prototype.fatalError=function(T,j){j?(r.stderr.write("Fatal "+(T instanceof Error?T.stack:T)+`
`),r.exit(2)):this.throwLater(T)},_.prototype.throwLater=function(T,j){if(arguments.length===1&&(j=T,T=function(){throw j}),typeof setTimeout<"u")setTimeout(function(){T(j)},0);else try{this._schedule(function(){T(j)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},b.hasDevTools?(_.prototype.invokeLater=function(T,j,O){this._trampolineEnabled?w.call(this,T,j,O):this._schedule(function(){setTimeout(function(){T.call(j,O)},100)})},_.prototype.invoke=function(T,j,O){this._trampolineEnabled?x.call(this,T,j,O):this._schedule(function(){T.call(j,O)})},_.prototype.settlePromises=function(T){this._trampolineEnabled?E.call(this,T):this._schedule(function(){T._settlePromises()})}):(_.prototype.invokeLater=w,_.prototype.invoke=x,_.prototype.settlePromises=E),_.prototype._drainQueue=function(T){for(;T.length()>0;){var j=T.shift();if(typeof j=="function"){var O=T.shift(),N=T.shift();j.call(O,N)}else j._settlePromises()}},_.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},_.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},_.prototype._reset=function(){this._isTickUsed=!1},u.exports=_,u.exports.firstLineError=f},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,u,d){u.exports=function(f,m,p,b){var _=!1,w=function(j,O){this._reject(O)},x=function(j,O){O.promiseRejectionQueued=!0,O.bindingPromise._then(w,w,null,this,j)},E=function(j,O){(50397184&this._bitField)==0&&this._resolveCallback(O.target)},T=function(j,O){O.promiseRejectionQueued||this._reject(j)};f.prototype.bind=function(j){_||(_=!0,f.prototype._propagateFrom=b.propagateFromFunction(),f.prototype._boundValue=b.boundValueFunction());var O=p(j),N=new f(m);N._propagateFrom(this,1);var F=this._target();if(N._setBoundTo(O),O instanceof f){var $={promiseRejectionQueued:!1,promise:N,target:F,bindingPromise:O};F._then(m,x,void 0,N,$),O._then(E,T,void 0,N,$),N._setOnCancel(O)}else N._resolveCallback(F);return N},f.prototype._setBoundTo=function(j){j!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=j):this._bitField=-2097153&this._bitField},f.prototype._isBound=function(){return(2097152&this._bitField)==2097152},f.bind=function(j,O){return f.resolve(O).bind(j)}}},{}],4:[function(s,u,d){var f;typeof Promise<"u"&&(f=Promise);var m=s("./promise")();m.noConflict=function(){try{Promise===m&&(Promise=f)}catch{}return m},u.exports=m},{"./promise":22}],5:[function(s,u,d){var f=Object.create;if(f){var m=f(null),p=f(null);m[" size"]=p[" size"]=0}u.exports=function(b){var _=s("./util"),w=_.canEvaluate;function x(j){return function(O,N){var F;if(O!=null&&(F=O[N]),typeof F!="function"){var $="Object "+_.classString(O)+" has no method '"+_.toString(N)+"'";throw new b.TypeError($)}return F}(j,this.pop()).apply(j,this)}function E(j){return j[this]}function T(j){var O=+this;return O<0&&(O=Math.max(0,O+j.length)),j[O]}_.isIdentifier,b.prototype.call=function(j){var O=[].slice.call(arguments,1);return O.push(j),this._then(x,void 0,void 0,O,void 0)},b.prototype.get=function(j){var O;if(typeof j=="number")O=T;else if(w){var N=(void 0)(j);O=N!==null?N:E}else O=E;return this._then(O,void 0,void 0,j,void 0)}}},{"./util":36}],6:[function(s,u,d){u.exports=function(f,m,p,b){var _=s("./util"),w=_.tryCatch,x=_.errorObj,E=f._async;f.prototype.break=f.prototype.cancel=function(){if(!b.cancellation())return this._warn("cancellation is disabled");for(var T=this,j=T;T._isCancellable();){if(!T._cancelBy(j)){j._isFollowing()?j._followee().cancel():j._cancelBranched();break}var O=T._cancellationParent;if(O==null||!O._isCancellable()){T._isFollowing()?T._followee().cancel():T._cancelBranched();break}T._isFollowing()&&T._followee().cancel(),T._setWillBeCancelled(),j=T,T=O}},f.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},f.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},f.prototype._cancelBy=function(T){return T===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},f.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},f.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),E.invoke(this._cancelPromises,this,void 0))},f.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},f.prototype._unsetOnCancel=function(){this._onCancelField=void 0},f.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},f.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},f.prototype._doInvokeOnCancel=function(T,j){if(_.isArray(T))for(var O=0;O<T.length;++O)this._doInvokeOnCancel(T[O],j);else if(T!==void 0)if(typeof T=="function"){if(!j){var N=w(T).call(this._boundValue());N===x&&(this._attachExtraTrace(N.e),E.throwLater(N.e))}}else T._resultCancelled(this)},f.prototype._invokeOnCancel=function(){var T=this._onCancel();this._unsetOnCancel(),E.invoke(this._doInvokeOnCancel,this,T)},f.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},f.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,u,d){u.exports=function(f){var m=s("./util"),p=s("./es5").keys,b=m.tryCatch,_=m.errorObj;return function(w,x,E){return function(T){var j=E._boundValue();e:for(var O=0;O<w.length;++O){var N=w[O];if(N===Error||N!=null&&N.prototype instanceof Error){if(T instanceof N)return b(x).call(j,T)}else if(typeof N=="function"){var F=b(N).call(j,T);if(F===_)return F;if(F)return b(x).call(j,T)}else if(m.isObject(T)){for(var $=p(N),K=0;K<$.length;++K){var Q=$[K];if(N[Q]!=T[Q])continue e}return b(x).call(j,T)}}return f}}}},{"./es5":13,"./util":36}],8:[function(s,u,d){u.exports=function(f){var m=!1,p=[];function b(){this._trace=new b.CapturedTrace(_())}function _(){var w=p.length-1;if(w>=0)return p[w]}return f.prototype._promiseCreated=function(){},f.prototype._pushContext=function(){},f.prototype._popContext=function(){return null},f._peekContext=f.prototype._peekContext=function(){},b.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},b.prototype._popContext=function(){if(this._trace!==void 0){var w=p.pop(),x=w._promiseCreated;return w._promiseCreated=null,x}return null},b.CapturedTrace=null,b.create=function(){if(m)return new b},b.deactivateLongStackTraces=function(){},b.activateLongStackTraces=function(){var w=f.prototype._pushContext,x=f.prototype._popContext,E=f._peekContext,T=f.prototype._peekContext,j=f.prototype._promiseCreated;b.deactivateLongStackTraces=function(){f.prototype._pushContext=w,f.prototype._popContext=x,f._peekContext=E,f.prototype._peekContext=T,f.prototype._promiseCreated=j,m=!1},m=!0,f.prototype._pushContext=b.prototype._pushContext,f.prototype._popContext=b.prototype._popContext,f._peekContext=f.prototype._peekContext=_,f.prototype._promiseCreated=function(){var O=this._peekContext();O&&O._promiseCreated==null&&(O._promiseCreated=this)}},b}},{}],9:[function(s,u,d){u.exports=function(f,m){var p,b,_,w=f._getDomain,x=f._async,E=s("./errors").Warning,T=s("./util"),j=T.canAttachTrace,O=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,N=/\((?:timers\.js):\d+:\d+\)/,F=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,$=null,K=null,Q=!1,oe=T.env("BLUEBIRD_DEBUG")!=0,ee=!(T.env("BLUEBIRD_WARNINGS")==0||!oe&&!T.env("BLUEBIRD_WARNINGS")),J=!(T.env("BLUEBIRD_LONG_STACK_TRACES")==0||!oe&&!T.env("BLUEBIRD_LONG_STACK_TRACES")),te=T.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(ee||!!T.env("BLUEBIRD_W_FORGOTTEN_RETURN"));f.prototype.suppressUnhandledRejections=function(){var be=this._target();be._bitField=-1048577&be._bitField|524288},f.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var be=this;setTimeout(function(){be._notifyUnhandledRejection()},1)}},f.prototype._notifyUnhandledRejectionIsHandled=function(){ce("rejectionHandled",p,void 0,this)},f.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},f.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},f.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var be=this._settledValue();this._setUnhandledRejectionIsNotified(),ce("unhandledRejection",b,be,this)}},f.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},f.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},f.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},f.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},f.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},f.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},f.prototype._warn=function(be,_e,De){return W(be,_e,De||this)},f.onPossiblyUnhandledRejection=function(be){var _e=w();b=typeof be=="function"?_e===null?be:T.domainBind(_e,be):void 0},f.onUnhandledRejectionHandled=function(be){var _e=w();p=typeof be=="function"?_e===null?be:T.domainBind(_e,be):void 0};var he=function(){};f.longStackTraces=function(){if(x.haveItemsQueued()&&!He.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!He.longStackTraces&&de()){var be=f.prototype._captureStackTrace,_e=f.prototype._attachExtraTrace;He.longStackTraces=!0,he=function(){if(x.haveItemsQueued()&&!He.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);f.prototype._captureStackTrace=be,f.prototype._attachExtraTrace=_e,m.deactivateLongStackTraces(),x.enableTrampoline(),He.longStackTraces=!1},f.prototype._captureStackTrace=D,f.prototype._attachExtraTrace=B,m.activateLongStackTraces(),x.disableTrampolineIfNecessary()}},f.hasLongStackTraces=function(){return He.longStackTraces&&de()};var X=function(){try{if(typeof CustomEvent=="function"){var be=new CustomEvent("CustomEvent");return T.global.dispatchEvent(be),function(_e,De){var Re=new CustomEvent(_e.toLowerCase(),{detail:De,cancelable:!0});return!T.global.dispatchEvent(Re)}}return typeof Event=="function"?(be=new Event("CustomEvent"),T.global.dispatchEvent(be),function(_e,De){var Re=new Event(_e.toLowerCase(),{cancelable:!0});return Re.detail=De,!T.global.dispatchEvent(Re)}):((be=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),T.global.dispatchEvent(be),function(_e,De){var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(_e.toLowerCase(),!1,!0,De),!T.global.dispatchEvent(Re)})}catch{}return function(){return!1}}(),se=T.isNode?function(){return r.emit.apply(r,arguments)}:T.global?function(be){var _e="on"+be.toLowerCase(),De=T.global[_e];return!!De&&(De.apply(T.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Z(be,_e){return{promise:_e}}var I={promiseCreated:Z,promiseFulfilled:Z,promiseRejected:Z,promiseResolved:Z,promiseCancelled:Z,promiseChained:function(be,_e,De){return{promise:_e,child:De}},warning:function(be,_e){return{warning:_e}},unhandledRejection:function(be,_e,De){return{reason:_e,promise:De}},rejectionHandled:Z},k=function(be){var _e=!1;try{_e=se.apply(null,arguments)}catch(Re){x.throwLater(Re),_e=!0}var De=!1;try{De=X(be,I[be].apply(null,arguments))}catch(Re){x.throwLater(Re),De=!0}return De||_e};function U(){return!1}function z(be,_e,De){var Re=this;try{be(_e,De,function(Me){if(typeof Me!="function")throw new TypeError("onCancel must be a function, got: "+T.toString(Me));Re._attachCancellationCallback(Me)})}catch(Me){return Me}}function P(be){if(!this._isCancellable())return this;var _e=this._onCancel();_e!==void 0?T.isArray(_e)?_e.push(be):this._setOnCancel([_e,be]):this._setOnCancel(be)}function G(){return this._onCancelField}function Y(be){this._onCancelField=be}function ne(){this._cancellationParent=void 0,this._onCancelField=void 0}function ue(be,_e){if((1&_e)!=0){this._cancellationParent=be;var De=be._branchesRemainingToCancel;De===void 0&&(De=0),be._branchesRemainingToCancel=De+1}(2&_e)!=0&&be._isBound()&&this._setBoundTo(be._boundTo)}f.config=function(be){if("longStackTraces"in(be=Object(be))&&(be.longStackTraces?f.longStackTraces():!be.longStackTraces&&f.hasLongStackTraces()&&he()),"warnings"in be){var _e=be.warnings;He.warnings=!!_e,te=He.warnings,T.isObject(_e)&&"wForgottenReturn"in _e&&(te=!!_e.wForgottenReturn)}if("cancellation"in be&&be.cancellation&&!He.cancellation){if(x.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");f.prototype._clearCancellationData=ne,f.prototype._propagateFrom=ue,f.prototype._onCancel=G,f.prototype._setOnCancel=Y,f.prototype._attachCancellationCallback=P,f.prototype._execute=z,fe=ue,He.cancellation=!0}return"monitoring"in be&&(be.monitoring&&!He.monitoring?(He.monitoring=!0,f.prototype._fireEvent=k):!be.monitoring&&He.monitoring&&(He.monitoring=!1,f.prototype._fireEvent=U)),f},f.prototype._fireEvent=U,f.prototype._execute=function(be,_e,De){try{be(_e,De)}catch(Re){return Re}},f.prototype._onCancel=function(){},f.prototype._setOnCancel=function(be){},f.prototype._attachCancellationCallback=function(be){},f.prototype._captureStackTrace=function(){},f.prototype._attachExtraTrace=function(){},f.prototype._clearCancellationData=function(){},f.prototype._propagateFrom=function(be,_e){};var fe=function(be,_e){(2&_e)!=0&&be._isBound()&&this._setBoundTo(be._boundTo)};function ge(){var be=this._boundTo;return be!==void 0&&be instanceof f?be.isFulfilled()?be.value():void 0:be}function D(){this._trace=new Ve(this._peekContext())}function B(be,_e){if(j(be)){var De=this._trace;if(De!==void 0&&_e&&(De=De._parent),De!==void 0)De.attachExtraTrace(be);else if(!be.__stackCleaned__){var Re=H(be);T.notEnumerableProp(be,"stack",Re.message+`
`+Re.stack.join(`
`)),T.notEnumerableProp(be,"__stackCleaned__",!0)}}}function W(be,_e,De){if(He.warnings){var Re,Me=new E(be);if(_e)De._attachExtraTrace(Me);else if(He.longStackTraces&&(Re=f._peekContext()))Re.attachExtraTrace(Me);else{var $e=H(Me);Me.stack=$e.message+`
`+$e.stack.join(`
`)}k("warning",Me)||ae(Me,"",!0)}}function le(be){for(var _e=[],De=0;De<be.length;++De){var Re=be[De],Me=Re===" (No stack trace)"||$.test(Re),$e=Me&&we(Re);Me&&!$e&&(Q&&Re.charAt(0)!==" "&&(Re=" "+Re),_e.push(Re))}return _e}function H(be){var _e=be.stack,De=be.toString();return _e=typeof _e=="string"&&_e.length>0?function(Re){for(var Me=Re.stack.replace(/\s+$/g,"").split(`
`),$e=0;$e<Me.length;++$e){var Ge=Me[$e];if(Ge===" (No stack trace)"||$.test(Ge))break}return $e>0&&Re.name!="SyntaxError"&&(Me=Me.slice($e)),Me}(be):[" (No stack trace)"],{message:De,stack:be.name=="SyntaxError"?_e:le(_e)}}function ae(be,_e,De){if(typeof console<"u"){var Re;if(T.isObject(be)){var Me=be.stack;Re=_e+K(Me,be)}else Re=_e+String(be);typeof _=="function"?_(Re,De):typeof console.log!="function"&&typeof console.log!="object"||console.log(Re)}}function ce(be,_e,De,Re){var Me=!1;try{typeof _e=="function"&&(Me=!0,be==="rejectionHandled"?_e(Re):_e(De,Re))}catch($e){x.throwLater($e)}be==="unhandledRejection"?k(be,De,Re)||Me||ae(De,"Unhandled rejection "):k(be,Re)}function ve(be){var _e;if(typeof be=="function")_e="[function "+(be.name||"anonymous")+"]";else{if(_e=be&&typeof be.toString=="function"?be.toString():T.toString(be),/\[object [a-zA-Z0-9$_]+\]/.test(_e))try{_e=JSON.stringify(be)}catch{}_e.length===0&&(_e="(empty array)")}return"(<"+function(De){return De.length<41?De:De.substr(0,38)+"..."}(_e)+">, no stack trace)"}function de(){return typeof Fe=="function"}var we=function(){return!1},Ae=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Ne(be){var _e=be.match(Ae);if(_e)return{fileName:_e[1],line:parseInt(_e[2],10)}}function Ve(be){this._parent=be,this._promisesCreated=0;var _e=this._length=1+(be===void 0?0:be._length);Fe(this,Ve),_e>32&&this.uncycle()}T.inherits(Ve,Error),m.CapturedTrace=Ve,Ve.prototype.uncycle=function(){var be=this._length;if(!(be<2)){for(var _e=[],De={},Re=0,Me=this;Me!==void 0;++Re)_e.push(Me),Me=Me._parent;for(Re=(be=this._length=Re)-1;Re>=0;--Re){var $e=_e[Re].stack;De[$e]===void 0&&(De[$e]=Re)}for(Re=0;Re<be;++Re){var Ge=De[_e[Re].stack];if(Ge!==void 0&&Ge!==Re){Ge>0&&(_e[Ge-1]._parent=void 0,_e[Ge-1]._length=1),_e[Re]._parent=void 0,_e[Re]._length=1;var Ze=Re>0?_e[Re-1]:this;Ge<be-1?(Ze._parent=_e[Ge+1],Ze._parent.uncycle(),Ze._length=Ze._parent._length+1):(Ze._parent=void 0,Ze._length=1);for(var ut=Ze._length+1,rt=Re-2;rt>=0;--rt)_e[rt]._length=ut,ut++;return}}}},Ve.prototype.attachExtraTrace=function(be){if(!be.__stackCleaned__){this.uncycle();for(var _e=H(be),De=_e.message,Re=[_e.stack],Me=this;Me!==void 0;)Re.push(le(Me.stack.split(`
`))),Me=Me._parent;(function($e){for(var Ge=$e[0],Ze=1;Ze<$e.length;++Ze){for(var ut=$e[Ze],rt=Ge.length-1,dt=Ge[rt],gt=-1,Dt=ut.length-1;Dt>=0;--Dt)if(ut[Dt]===dt){gt=Dt;break}for(Dt=gt;Dt>=0;--Dt){var yt=ut[Dt];if(Ge[rt]!==yt)break;Ge.pop(),rt--}Ge=ut}})(Re),function($e){for(var Ge=0;Ge<$e.length;++Ge)($e[Ge].length===0||Ge+1<$e.length&&$e[Ge][0]===$e[Ge+1][0])&&($e.splice(Ge,1),Ge--)}(Re),T.notEnumerableProp(be,"stack",function($e,Ge){for(var Ze=0;Ze<Ge.length-1;++Ze)Ge[Ze].push("From previous event:"),Ge[Ze]=Ge[Ze].join(`
`);return Ze<Ge.length&&(Ge[Ze]=Ge[Ze].join(`
`)),$e+`
`+Ge.join(`
`)}(De,Re)),T.notEnumerableProp(be,"__stackCleaned__",!0)}};var Fe=function(){var be=/^\s*at\s*/,_e=function($e,Ge){return typeof $e=="string"?$e:Ge.name!==void 0&&Ge.message!==void 0?Ge.toString():ve(Ge)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,$=be,K=_e;var De=Error.captureStackTrace;return we=function($e){return O.test($e)},function($e,Ge){Error.stackTraceLimit+=6,De($e,Ge),Error.stackTraceLimit-=6}}var Re,Me=new Error;if(typeof Me.stack=="string"&&Me.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return $=/@/,K=_e,Q=!0,function($e){$e.stack=new Error().stack};try{throw new Error}catch($e){Re="stack"in $e}return"stack"in Me||!Re||typeof Error.stackTraceLimit!="number"?(K=function($e,Ge){return typeof $e=="string"?$e:typeof Ge!="object"&&typeof Ge!="function"||Ge.name===void 0||Ge.message===void 0?ve(Ge):Ge.toString()},null):($=be,K=_e,function($e){Error.stackTraceLimit+=6;try{throw new Error}catch(Ge){$e.stack=Ge.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(_=function(be){console.warn(be)},T.isNode&&r.stderr.isTTY?_=function(be,_e){var De=_e?"\x1B[33m":"\x1B[31m";console.warn(De+be+`\x1B[0m
`)}:T.isNode||typeof new Error().stack!="string"||(_=function(be,_e){console.warn("%c"+be,_e?"color: darkorange":"color: red")}));var He={warnings:ee,longStackTraces:!1,cancellation:!1,monitoring:!1};return J&&f.longStackTraces(),{longStackTraces:function(){return He.longStackTraces},warnings:function(){return He.warnings},cancellation:function(){return He.cancellation},monitoring:function(){return He.monitoring},propagateFromFunction:function(){return fe},boundValueFunction:function(){return ge},checkForgottenReturns:function(be,_e,De,Re,Me){if(be===void 0&&_e!==null&&te){if(Me!==void 0&&Me._returnedNonUndefined()||(65535&Re._bitField)==0)return;De&&(De+=" ");var $e="",Ge="";if(_e._trace){for(var Ze=_e._trace.stack.split(`
`),ut=le(Ze),rt=ut.length-1;rt>=0;--rt){var dt=ut[rt];if(!N.test(dt)){var gt=dt.match(F);gt&&($e="at "+gt[1]+":"+gt[2]+":"+gt[3]+" ");break}}if(ut.length>0){var Dt=ut[0];for(rt=0;rt<Ze.length;++rt)if(Ze[rt]===Dt){rt>0&&(Ge=`
`+Ze[rt-1]);break}}}var yt="a promise was created in a "+De+"handler "+$e+"but was not returned from it, see http://goo.gl/rRqMUw"+Ge;Re._warn(yt,!0,_e)}},setBounds:function(be,_e){if(de()){for(var De,Re,Me=be.stack.split(`
`),$e=_e.stack.split(`
`),Ge=-1,Ze=-1,ut=0;ut<Me.length;++ut)if(rt=Ne(Me[ut])){De=rt.fileName,Ge=rt.line;break}for(ut=0;ut<$e.length;++ut){var rt;if(rt=Ne($e[ut])){Re=rt.fileName,Ze=rt.line;break}}Ge<0||Ze<0||!De||!Re||De!==Re||Ge>=Ze||(we=function(dt){if(O.test(dt))return!0;var gt=Ne(dt);return!!(gt&&gt.fileName===De&&Ge<=gt.line&&gt.line<=Ze)})}},warn:W,deprecated:function(be,_e){var De=be+" is deprecated and will be removed in a future version.";return _e&&(De+=" Use "+_e+" instead."),W(De)},CapturedTrace:Ve,fireDomEvent:X,fireGlobalEvent:se}}},{"./errors":12,"./util":36}],10:[function(s,u,d){u.exports=function(f){function m(){return this.value}function p(){throw this.reason}f.prototype.return=f.prototype.thenReturn=function(b){return b instanceof f&&b.suppressUnhandledRejections(),this._then(m,void 0,void 0,{value:b},void 0)},f.prototype.throw=f.prototype.thenThrow=function(b){return this._then(p,void 0,void 0,{reason:b},void 0)},f.prototype.catchThrow=function(b){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:b},void 0);var _=arguments[1];return this.caught(b,function(){throw _})},f.prototype.catchReturn=function(b){if(arguments.length<=1)return b instanceof f&&b.suppressUnhandledRejections(),this._then(void 0,m,void 0,{value:b},void 0);var _=arguments[1];return _ instanceof f&&_.suppressUnhandledRejections(),this.caught(b,function(){return _})}}},{}],11:[function(s,u,d){u.exports=function(f,m){var p=f.reduce,b=f.all;function _(){return b(this)}f.prototype.each=function(w){return p(this,w,m,0)._then(_,void 0,void 0,this,void 0)},f.prototype.mapSeries=function(w){return p(this,w,m,m)},f.each=function(w,x){return p(w,x,m,0)._then(_,void 0,void 0,w,void 0)},f.mapSeries=function(w,x){return p(w,x,m,m)}}},{}],12:[function(s,u,d){var f,m,p=s("./es5"),b=p.freeze,_=s("./util"),w=_.inherits,x=_.notEnumerableProp;function E(ee,J){function te(he){if(!(this instanceof te))return new te(he);x(this,"message",typeof he=="string"?he:J),x(this,"name",ee),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return w(te,Error),te}var T=E("Warning","warning"),j=E("CancellationError","cancellation error"),O=E("TimeoutError","timeout error"),N=E("AggregateError","aggregate error");try{f=TypeError,m=RangeError}catch{f=E("TypeError","type error"),m=E("RangeError","range error")}for(var F="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),$=0;$<F.length;++$)typeof Array.prototype[F[$]]=="function"&&(N.prototype[F[$]]=Array.prototype[F[$]]);p.defineProperty(N.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),N.prototype.isOperational=!0;var K=0;function Q(ee){if(!(this instanceof Q))return new Q(ee);x(this,"name","OperationalError"),x(this,"message",ee),this.cause=ee,this.isOperational=!0,ee instanceof Error?(x(this,"message",ee.message),x(this,"stack",ee.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}N.prototype.toString=function(){var ee=Array(4*K+1).join(" "),J=`
`+ee+`AggregateError of:
`;K++,ee=Array(4*K+1).join(" ");for(var te=0;te<this.length;++te){for(var he=this[te]===this?"[Circular AggregateError]":this[te]+"",X=he.split(`
`),se=0;se<X.length;++se)X[se]=ee+X[se];J+=(he=X.join(`
`))+`
`}return K--,J},w(Q,Error);var oe=Error.__BluebirdErrorTypes__;oe||(oe=b({CancellationError:j,TimeoutError:O,OperationalError:Q,RejectionError:Q,AggregateError:N}),p.defineProperty(Error,"__BluebirdErrorTypes__",{value:oe,writable:!1,enumerable:!1,configurable:!1})),u.exports={Error,TypeError:f,RangeError:m,CancellationError:oe.CancellationError,OperationalError:oe.OperationalError,TimeoutError:oe.TimeoutError,AggregateError:oe.AggregateError,Warning:T}},{"./es5":13,"./util":36}],13:[function(s,u,d){var f=function(){return this===void 0}();if(f)u.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:f,propertyIsWritable:function(w,x){var E=Object.getOwnPropertyDescriptor(w,x);return!(E&&!E.writable&&!E.set)}};else{var m={}.hasOwnProperty,p={}.toString,b={}.constructor.prototype,_=function(w){var x=[];for(var E in w)m.call(w,E)&&x.push(E);return x};u.exports={isArray:function(w){try{return p.call(w)==="[object Array]"}catch{return!1}},keys:_,names:_,defineProperty:function(w,x,E){return w[x]=E.value,w},getDescriptor:function(w,x){return{value:w[x]}},freeze:function(w){return w},getPrototypeOf:function(w){try{return Object(w).constructor.prototype}catch{return b}},isES5:f,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,u,d){u.exports=function(f,m){var p=f.map;f.prototype.filter=function(b,_){return p(this,b,_,m)},f.filter=function(b,_,w){return p(b,_,w,m)}}},{}],15:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=f.CancellationError,w=b.errorObj,x=s("./catch_filter")(p);function E($,K,Q){this.promise=$,this.type=K,this.handler=Q,this.called=!1,this.cancelPromise=null}function T($){this.finallyHandler=$}function j($,K){return $.cancelPromise!=null&&(arguments.length>1?$.cancelPromise._reject(K):$.cancelPromise._cancel(),$.cancelPromise=null,!0)}function O(){return F.call(this,this.promise._target()._settledValue())}function N($){if(!j(this,$))return w.e=$,w}function F($){var K=this.promise,Q=this.handler;if(!this.called){this.called=!0;var oe=this.isFinallyHandler()?Q.call(K._boundValue()):Q.call(K._boundValue(),$);if(oe===p)return oe;if(oe!==void 0){K._setReturnedNonUndefined();var ee=m(oe,K);if(ee instanceof f){if(this.cancelPromise!=null){if(ee._isCancelled()){var J=new _("late cancellation observer");return K._attachExtraTrace(J),w.e=J,w}ee.isPending()&&ee._attachCancellationCallback(new T(this))}return ee._then(O,N,void 0,this,void 0)}}}return K.isRejected()?(j(this),w.e=$,w):(j(this),$)}return E.prototype.isFinallyHandler=function(){return this.type===0},T.prototype._resultCancelled=function(){j(this.finallyHandler)},f.prototype._passThrough=function($,K,Q,oe){return typeof $!="function"?this.then():this._then(Q,oe,void 0,new E(this,K,$),void 0)},f.prototype.lastly=f.prototype.finally=function($){return this._passThrough($,0,F,F)},f.prototype.tap=function($){return this._passThrough($,1,F)},f.prototype.tapCatch=function($){var K=arguments.length;if(K===1)return this._passThrough($,1,void 0,F);var Q,oe=new Array(K-1),ee=0;for(Q=0;Q<K-1;++Q){var J=arguments[Q];if(!b.isObject(J))return f.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+b.classString(J)));oe[ee++]=J}oe.length=ee;var te=arguments[Q];return this._passThrough(x(oe,te,this),1,void 0,F)},E}},{"./catch_filter":7,"./util":36}],16:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./errors").TypeError,E=s("./util"),T=E.errorObj,j=E.tryCatch,O=[];function N(F,$,K,Q){if(w.cancellation()){var oe=new f(p),ee=this._finallyPromise=new f(p);this._promise=oe.lastly(function(){return ee}),oe._captureStackTrace(),oe._setOnCancel(this)}else(this._promise=new f(p))._captureStackTrace();this._stack=Q,this._generatorFunction=F,this._receiver=$,this._generator=void 0,this._yieldHandlers=typeof K=="function"?[K].concat(O):O,this._yieldedPromise=null,this._cancellationPhase=!1}E.inherits(N,_),N.prototype._isResolved=function(){return this._promise===null},N.prototype._cleanup=function(){this._promise=this._generator=null,w.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},N.prototype._promiseCancelled=function(){if(!this._isResolved()){var F;if(this._generator.return!==void 0)this._promise._pushContext(),F=j(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var $=new f.CancellationError("generator .return() sentinel");f.coroutine.returnSentinel=$,this._promise._attachExtraTrace($),this._promise._pushContext(),F=j(this._generator.throw).call(this._generator,$),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(F)}},N.prototype._promiseFulfilled=function(F){this._yieldedPromise=null,this._promise._pushContext();var $=j(this._generator.next).call(this._generator,F);this._promise._popContext(),this._continue($)},N.prototype._promiseRejected=function(F){this._yieldedPromise=null,this._promise._attachExtraTrace(F),this._promise._pushContext();var $=j(this._generator.throw).call(this._generator,F);this._promise._popContext(),this._continue($)},N.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof f){var F=this._yieldedPromise;this._yieldedPromise=null,F.cancel()}},N.prototype.promise=function(){return this._promise},N.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},N.prototype._continue=function(F){var $=this._promise;if(F===T)return this._cleanup(),this._cancellationPhase?$.cancel():$._rejectCallback(F.e,!1);var K=F.value;if(F.done===!0)return this._cleanup(),this._cancellationPhase?$.cancel():$._resolveCallback(K);var Q=b(K,this._promise);if(Q instanceof f||(Q=function(ee,J,te){for(var he=0;he<J.length;++he){te._pushContext();var X=j(J[he])(ee);if(te._popContext(),X===T){te._pushContext();var se=f.reject(T.e);return te._popContext(),se}var Z=b(X,te);if(Z instanceof f)return Z}return null}(Q,this._yieldHandlers,this._promise))!==null){var oe=(Q=Q._target())._bitField;(50397184&oe)==0?(this._yieldedPromise=Q,Q._proxy(this,null)):(33554432&oe)!=0?f._async.invoke(this._promiseFulfilled,this,Q._value()):(16777216&oe)!=0?f._async.invoke(this._promiseRejected,this,Q._reason()):this._promiseCancelled()}else this._promiseRejected(new x(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(K))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},f.coroutine=function(F,$){if(typeof F!="function")throw new x(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var K=Object($).yieldHandler,Q=N,oe=new Error().stack;return function(){var ee=F.apply(this,arguments),J=new Q(void 0,void 0,K,oe),te=J.promise();return J._generator=ee,J._promiseFulfilled(void 0),te}},f.coroutine.addYieldHandler=function(F){if(typeof F!="function")throw new x("expecting a function but got "+E.classString(F));O.push(F)},f.spawn=function(F){if(w.deprecated("Promise.spawn()","Promise.coroutine()"),typeof F!="function")return m(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var $=new N(F,this),K=$.promise();return $._run(f.spawn),K}}},{"./errors":12,"./util":36}],17:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./util");x.canEvaluate,x.tryCatch,x.errorObj,f.join=function(){var E,T=arguments.length-1;T>0&&typeof arguments[T]=="function"&&(E=arguments[T]);var j=[].slice.call(arguments);E&&j.pop();var O=new m(j).promise();return E!==void 0?O.spread(E):O}}},{"./util":36}],18:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=f._getDomain,E=s("./util"),T=E.tryCatch,j=E.errorObj,O=f._async;function N($,K,Q,oe){this.constructor$($),this._promise._captureStackTrace();var ee=x();this._callback=ee===null?K:E.domainBind(ee,K),this._preservedValues=oe===_?new Array(this.length()):null,this._limit=Q,this._inFlight=0,this._queue=[],O.invoke(this._asyncInit,this,void 0)}function F($,K,Q,oe){if(typeof K!="function")return p("expecting a function but got "+E.classString(K));var ee=0;if(Q!==void 0){if(typeof Q!="object"||Q===null)return f.reject(new TypeError("options argument must be an object but it is "+E.classString(Q)));if(typeof Q.concurrency!="number")return f.reject(new TypeError("'concurrency' must be a number but it is "+E.classString(Q.concurrency)));ee=Q.concurrency}return new N($,K,ee=typeof ee=="number"&&isFinite(ee)&&ee>=1?ee:0,oe).promise()}E.inherits(N,m),N.prototype._asyncInit=function(){this._init$(void 0,-2)},N.prototype._init=function(){},N.prototype._promiseFulfilled=function($,K){var Q=this._values,oe=this.length(),ee=this._preservedValues,J=this._limit;if(K<0){if(Q[K=-1*K-1]=$,J>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(J>=1&&this._inFlight>=J)return Q[K]=$,this._queue.push(K),!1;ee!==null&&(ee[K]=$);var te=this._promise,he=this._callback,X=te._boundValue();te._pushContext();var se=T(he).call(X,$,K,oe),Z=te._popContext();if(w.checkForgottenReturns(se,Z,ee!==null?"Promise.filter":"Promise.map",te),se===j)return this._reject(se.e),!0;var I=b(se,this._promise);if(I instanceof f){var k=(I=I._target())._bitField;if((50397184&k)==0)return J>=1&&this._inFlight++,Q[K]=I,I._proxy(this,-1*(K+1)),!1;if((33554432&k)==0)return(16777216&k)!=0?(this._reject(I._reason()),!0):(this._cancel(),!0);se=I._value()}Q[K]=se}return++this._totalResolved>=oe&&(ee!==null?this._filter(Q,ee):this._resolve(Q),!0)},N.prototype._drainQueue=function(){for(var $=this._queue,K=this._limit,Q=this._values;$.length>0&&this._inFlight<K;){if(this._isResolved())return;var oe=$.pop();this._promiseFulfilled(Q[oe],oe)}},N.prototype._filter=function($,K){for(var Q=K.length,oe=new Array(Q),ee=0,J=0;J<Q;++J)$[J]&&(oe[ee++]=K[J]);oe.length=ee,this._resolve(oe)},N.prototype.preservedValues=function(){return this._preservedValues},f.prototype.map=function($,K){return F(this,$,K,null)},f.map=function($,K,Q,oe){return F($,K,Q,oe)}}},{"./util":36}],19:[function(s,u,d){u.exports=function(f,m,p,b,_){var w=s("./util"),x=w.tryCatch;f.method=function(E){if(typeof E!="function")throw new f.TypeError("expecting a function but got "+w.classString(E));return function(){var T=new f(m);T._captureStackTrace(),T._pushContext();var j=x(E).apply(this,arguments),O=T._popContext();return _.checkForgottenReturns(j,O,"Promise.method",T),T._resolveFromSyncValue(j),T}},f.attempt=f.try=function(E){if(typeof E!="function")return b("expecting a function but got "+w.classString(E));var T,j=new f(m);if(j._captureStackTrace(),j._pushContext(),arguments.length>1){_.deprecated("calling Promise.try with more than 1 argument");var O=arguments[1],N=arguments[2];T=w.isArray(O)?x(E).apply(N,O):x(E).call(N,O)}else T=x(E)();var F=j._popContext();return _.checkForgottenReturns(T,F,"Promise.try",j),j._resolveFromSyncValue(T),j},f.prototype._resolveFromSyncValue=function(E){E===w.errorObj?this._rejectCallback(E.e,!1):this._resolveCallback(E,!0)}}},{"./util":36}],20:[function(s,u,d){var f=s("./util"),m=f.maybeWrapAsError,p=s("./errors").OperationalError,b=s("./es5"),_=/^(?:name|message|stack|cause)$/;function w(x){var E;if(function(N){return N instanceof Error&&b.getPrototypeOf(N)===Error.prototype}(x)){(E=new p(x)).name=x.name,E.message=x.message,E.stack=x.stack;for(var T=b.keys(x),j=0;j<T.length;++j){var O=T[j];_.test(O)||(E[O]=x[O])}return E}return f.markAsOriginatingFromRejection(x),x}u.exports=function(x,E){return function(T,j){if(x!==null){if(T){var O=w(m(T));x._attachExtraTrace(O),x._reject(O)}else if(E){var N=[].slice.call(arguments,1);x._fulfill(N)}else x._fulfill(j);x=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,u,d){u.exports=function(f){var m=s("./util"),p=f._async,b=m.tryCatch,_=m.errorObj;function w(T,j){if(!m.isArray(T))return x.call(this,T,j);var O=b(j).apply(this._boundValue(),[null].concat(T));O===_&&p.throwLater(O.e)}function x(T,j){var O=this._boundValue(),N=T===void 0?b(j).call(O,null):b(j).call(O,null,T);N===_&&p.throwLater(N.e)}function E(T,j){if(!T){var O=new Error(T+"");O.cause=T,T=O}var N=b(j).call(this._boundValue(),T);N===_&&p.throwLater(N.e)}f.prototype.asCallback=f.prototype.nodeify=function(T,j){if(typeof T=="function"){var O=x;j!==void 0&&Object(j).spread&&(O=w),this._then(O,E,void 0,this,T)}return this}}},{"./util":36}],22:[function(s,u,d){u.exports=function(){var f=function(){return new N(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},m=function(){return new U.PromiseInspection(this._target())},p=function(Y){return U.reject(new N(Y))};function b(){}var _,w={},x=s("./util");_=x.isNode?function(){var Y=r.domain;return Y===void 0&&(Y=null),Y}:function(){return null},x.notEnumerableProp(U,"_getDomain",_);var E=s("./es5"),T=s("./async"),j=new T;E.defineProperty(U,"_async",{value:j});var O=s("./errors"),N=U.TypeError=O.TypeError;U.RangeError=O.RangeError;var F=U.CancellationError=O.CancellationError;U.TimeoutError=O.TimeoutError,U.OperationalError=O.OperationalError,U.RejectionError=O.OperationalError,U.AggregateError=O.AggregateError;var $=function(){},K={},Q={},oe=s("./thenables")(U,$),ee=s("./promise_array")(U,$,oe,p,b),J=s("./context")(U),te=J.create,he=s("./debuggability")(U,J),X=(he.CapturedTrace,s("./finally")(U,oe,Q)),se=s("./catch_filter")(Q),Z=s("./nodeback"),I=x.errorObj,k=x.tryCatch;function U(Y){Y!==$&&function(ne,ue){if(ne==null||ne.constructor!==U)throw new N(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof ue!="function")throw new N("expecting a function but got "+x.classString(ue))}(this,Y),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(Y),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function z(Y){this.promise._resolveCallback(Y)}function P(Y){this.promise._rejectCallback(Y,!1)}function G(Y){var ne=new U($);ne._fulfillmentHandler0=Y,ne._rejectionHandler0=Y,ne._promise0=Y,ne._receiver0=Y}return U.prototype.toString=function(){return"[object Promise]"},U.prototype.caught=U.prototype.catch=function(Y){var ne=arguments.length;if(ne>1){var ue,fe=new Array(ne-1),ge=0;for(ue=0;ue<ne-1;++ue){var D=arguments[ue];if(!x.isObject(D))return p("Catch statement predicate: expecting an object but got "+x.classString(D));fe[ge++]=D}return fe.length=ge,Y=arguments[ue],this.then(void 0,se(fe,Y,this))}return this.then(void 0,Y)},U.prototype.reflect=function(){return this._then(m,m,void 0,this,void 0)},U.prototype.then=function(Y,ne){if(he.warnings()&&arguments.length>0&&typeof Y!="function"&&typeof ne!="function"){var ue=".then() only accepts functions but was passed: "+x.classString(Y);arguments.length>1&&(ue+=", "+x.classString(ne)),this._warn(ue)}return this._then(Y,ne,void 0,void 0,void 0)},U.prototype.done=function(Y,ne){this._then(Y,ne,void 0,void 0,void 0)._setIsFinal()},U.prototype.spread=function(Y){return typeof Y!="function"?p("expecting a function but got "+x.classString(Y)):this.all()._then(Y,void 0,void 0,K,void 0)},U.prototype.toJSON=function(){var Y={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(Y.fulfillmentValue=this.value(),Y.isFulfilled=!0):this.isRejected()&&(Y.rejectionReason=this.reason(),Y.isRejected=!0),Y},U.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new ee(this).promise()},U.prototype.error=function(Y){return this.caught(x.originatesFromRejection,Y)},U.getNewLibraryCopy=u.exports,U.is=function(Y){return Y instanceof U},U.fromNode=U.fromCallback=function(Y){var ne=new U($);ne._captureStackTrace();var ue=arguments.length>1&&!!Object(arguments[1]).multiArgs,fe=k(Y)(Z(ne,ue));return fe===I&&ne._rejectCallback(fe.e,!0),ne._isFateSealed()||ne._setAsyncGuaranteed(),ne},U.all=function(Y){return new ee(Y).promise()},U.cast=function(Y){var ne=oe(Y);return ne instanceof U||((ne=new U($))._captureStackTrace(),ne._setFulfilled(),ne._rejectionHandler0=Y),ne},U.resolve=U.fulfilled=U.cast,U.reject=U.rejected=function(Y){var ne=new U($);return ne._captureStackTrace(),ne._rejectCallback(Y,!0),ne},U.setScheduler=function(Y){if(typeof Y!="function")throw new N("expecting a function but got "+x.classString(Y));return j.setScheduler(Y)},U.prototype._then=function(Y,ne,ue,fe,ge){var D=ge!==void 0,B=D?ge:new U($),W=this._target(),le=W._bitField;D||(B._propagateFrom(this,3),B._captureStackTrace(),fe===void 0&&(2097152&this._bitField)!=0&&(fe=(50397184&le)!=0?this._boundValue():W===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,B));var H=_();if((50397184&le)!=0){var ae,ce,ve=W._settlePromiseCtx;(33554432&le)!=0?(ce=W._rejectionHandler0,ae=Y):(16777216&le)!=0?(ce=W._fulfillmentHandler0,ae=ne,W._unsetRejectionIsUnhandled()):(ve=W._settlePromiseLateCancellationObserver,ce=new F("late cancellation observer"),W._attachExtraTrace(ce),ae=ne),j.invoke(ve,W,{handler:H===null?ae:typeof ae=="function"&&x.domainBind(H,ae),promise:B,receiver:fe,value:ce})}else W._addCallbacks(Y,ne,B,fe,H);return B},U.prototype._length=function(){return 65535&this._bitField},U.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},U.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},U.prototype._setLength=function(Y){this._bitField=-65536&this._bitField|65535&Y},U.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},U.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},U.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},U.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},U.prototype._isFinal=function(){return(4194304&this._bitField)>0},U.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},U.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},U.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},U.prototype._setAsyncGuaranteed=function(){j.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},U.prototype._receiverAt=function(Y){var ne=Y===0?this._receiver0:this[4*Y-4+3];if(ne!==w)return ne===void 0&&this._isBound()?this._boundValue():ne},U.prototype._promiseAt=function(Y){return this[4*Y-4+2]},U.prototype._fulfillmentHandlerAt=function(Y){return this[4*Y-4+0]},U.prototype._rejectionHandlerAt=function(Y){return this[4*Y-4+1]},U.prototype._boundValue=function(){},U.prototype._migrateCallback0=function(Y){Y._bitField;var ne=Y._fulfillmentHandler0,ue=Y._rejectionHandler0,fe=Y._promise0,ge=Y._receiverAt(0);ge===void 0&&(ge=w),this._addCallbacks(ne,ue,fe,ge,null)},U.prototype._migrateCallbackAt=function(Y,ne){var ue=Y._fulfillmentHandlerAt(ne),fe=Y._rejectionHandlerAt(ne),ge=Y._promiseAt(ne),D=Y._receiverAt(ne);D===void 0&&(D=w),this._addCallbacks(ue,fe,ge,D,null)},U.prototype._addCallbacks=function(Y,ne,ue,fe,ge){var D=this._length();if(D>=65531&&(D=0,this._setLength(0)),D===0)this._promise0=ue,this._receiver0=fe,typeof Y=="function"&&(this._fulfillmentHandler0=ge===null?Y:x.domainBind(ge,Y)),typeof ne=="function"&&(this._rejectionHandler0=ge===null?ne:x.domainBind(ge,ne));else{var B=4*D-4;this[B+2]=ue,this[B+3]=fe,typeof Y=="function"&&(this[B+0]=ge===null?Y:x.domainBind(ge,Y)),typeof ne=="function"&&(this[B+1]=ge===null?ne:x.domainBind(ge,ne))}return this._setLength(D+1),D},U.prototype._proxy=function(Y,ne){this._addCallbacks(void 0,void 0,ne,Y,null)},U.prototype._resolveCallback=function(Y,ne){if((117506048&this._bitField)==0){if(Y===this)return this._rejectCallback(f(),!1);var ue=oe(Y,this);if(!(ue instanceof U))return this._fulfill(Y);ne&&this._propagateFrom(ue,2);var fe=ue._target();if(fe!==this){var ge=fe._bitField;if((50397184&ge)==0){var D=this._length();D>0&&fe._migrateCallback0(this);for(var B=1;B<D;++B)fe._migrateCallbackAt(this,B);this._setFollowing(),this._setLength(0),this._setFollowee(fe)}else if((33554432&ge)!=0)this._fulfill(fe._value());else if((16777216&ge)!=0)this._reject(fe._reason());else{var W=new F("late cancellation observer");fe._attachExtraTrace(W),this._reject(W)}}else this._reject(f())}},U.prototype._rejectCallback=function(Y,ne,ue){var fe=x.ensureErrorObject(Y),ge=fe===Y;if(!ge&&!ue&&he.warnings()){var D="a promise was rejected with a non-error: "+x.classString(Y);this._warn(D,!0)}this._attachExtraTrace(fe,!!ne&&ge),this._reject(Y)},U.prototype._resolveFromExecutor=function(Y){if(Y!==$){var ne=this;this._captureStackTrace(),this._pushContext();var ue=!0,fe=this._execute(Y,function(ge){ne._resolveCallback(ge)},function(ge){ne._rejectCallback(ge,ue)});ue=!1,this._popContext(),fe!==void 0&&ne._rejectCallback(fe,!0)}},U.prototype._settlePromiseFromHandler=function(Y,ne,ue,fe){var ge=fe._bitField;if((65536&ge)==0){var D;fe._pushContext(),ne===K?ue&&typeof ue.length=="number"?D=k(Y).apply(this._boundValue(),ue):(D=I).e=new N("cannot .spread() a non-array: "+x.classString(ue)):D=k(Y).call(ne,ue);var B=fe._popContext();(65536&(ge=fe._bitField))==0&&(D===Q?fe._reject(ue):D===I?fe._rejectCallback(D.e,!1):(he.checkForgottenReturns(D,B,"",fe,this),fe._resolveCallback(D)))}},U.prototype._target=function(){for(var Y=this;Y._isFollowing();)Y=Y._followee();return Y},U.prototype._followee=function(){return this._rejectionHandler0},U.prototype._setFollowee=function(Y){this._rejectionHandler0=Y},U.prototype._settlePromise=function(Y,ne,ue,fe){var ge=Y instanceof U,D=this._bitField,B=(134217728&D)!=0;(65536&D)!=0?(ge&&Y._invokeInternalOnCancel(),ue instanceof X&&ue.isFinallyHandler()?(ue.cancelPromise=Y,k(ne).call(ue,fe)===I&&Y._reject(I.e)):ne===m?Y._fulfill(m.call(ue)):ue instanceof b?ue._promiseCancelled(Y):ge||Y instanceof ee?Y._cancel():ue.cancel()):typeof ne=="function"?ge?(B&&Y._setAsyncGuaranteed(),this._settlePromiseFromHandler(ne,ue,fe,Y)):ne.call(ue,fe,Y):ue instanceof b?ue._isResolved()||((33554432&D)!=0?ue._promiseFulfilled(fe,Y):ue._promiseRejected(fe,Y)):ge&&(B&&Y._setAsyncGuaranteed(),(33554432&D)!=0?Y._fulfill(fe):Y._reject(fe))},U.prototype._settlePromiseLateCancellationObserver=function(Y){var ne=Y.handler,ue=Y.promise,fe=Y.receiver,ge=Y.value;typeof ne=="function"?ue instanceof U?this._settlePromiseFromHandler(ne,fe,ge,ue):ne.call(fe,ge,ue):ue instanceof U&&ue._reject(ge)},U.prototype._settlePromiseCtx=function(Y){this._settlePromise(Y.promise,Y.handler,Y.receiver,Y.value)},U.prototype._settlePromise0=function(Y,ne,ue){var fe=this._promise0,ge=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(fe,Y,ge,ne)},U.prototype._clearCallbackDataAtIndex=function(Y){var ne=4*Y-4;this[ne+2]=this[ne+3]=this[ne+0]=this[ne+1]=void 0},U.prototype._fulfill=function(Y){var ne=this._bitField;if(!((117506048&ne)>>>16)){if(Y===this){var ue=f();return this._attachExtraTrace(ue),this._reject(ue)}this._setFulfilled(),this._rejectionHandler0=Y,(65535&ne)>0&&((134217728&ne)!=0?this._settlePromises():j.settlePromises(this))}},U.prototype._reject=function(Y){var ne=this._bitField;if(!((117506048&ne)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Y,this._isFinal())return j.fatalError(Y,x.isNode);(65535&ne)>0?j.settlePromises(this):this._ensurePossibleRejectionHandled()}},U.prototype._fulfillPromises=function(Y,ne){for(var ue=1;ue<Y;ue++){var fe=this._fulfillmentHandlerAt(ue),ge=this._promiseAt(ue),D=this._receiverAt(ue);this._clearCallbackDataAtIndex(ue),this._settlePromise(ge,fe,D,ne)}},U.prototype._rejectPromises=function(Y,ne){for(var ue=1;ue<Y;ue++){var fe=this._rejectionHandlerAt(ue),ge=this._promiseAt(ue),D=this._receiverAt(ue);this._clearCallbackDataAtIndex(ue),this._settlePromise(ge,fe,D,ne)}},U.prototype._settlePromises=function(){var Y=this._bitField,ne=65535&Y;if(ne>0){if((16842752&Y)!=0){var ue=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ue,Y),this._rejectPromises(ne,ue)}else{var fe=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,fe,Y),this._fulfillPromises(ne,fe)}this._setLength(0)}this._clearCancellationData()},U.prototype._settledValue=function(){var Y=this._bitField;return(33554432&Y)!=0?this._rejectionHandler0:(16777216&Y)!=0?this._fulfillmentHandler0:void 0},U.defer=U.pending=function(){return he.deprecated("Promise.defer","new Promise"),{promise:new U($),resolve:z,reject:P}},x.notEnumerableProp(U,"_makeSelfResolutionError",f),s("./method")(U,$,oe,p,he),s("./bind")(U,$,oe,he),s("./cancel")(U,ee,p,he),s("./direct_resolve")(U),s("./synchronous_inspection")(U),s("./join")(U,ee,oe,$,j,_),U.Promise=U,U.version="3.5.1",s("./map.js")(U,ee,p,oe,$,he),s("./call_get.js")(U),s("./using.js")(U,p,oe,te,$,he),s("./timers.js")(U,$,he),s("./generators.js")(U,p,$,oe,b,he),s("./nodeify.js")(U),s("./promisify.js")(U,$),s("./props.js")(U,ee,oe,p),s("./race.js")(U,$,oe,p),s("./reduce.js")(U,ee,p,oe,$,he),s("./settle.js")(U,ee,he),s("./some.js")(U,ee,p),s("./filter.js")(U,$),s("./each.js")(U,$),s("./any.js")(U),x.toFastProperties(U),x.toFastProperties(U.prototype),G({a:1}),G({b:2}),G({c:3}),G(1),G(function(){}),G(void 0),G(!1),G(new U($)),he.setBounds(T.firstLineError,x.lastLineError),U}},{"./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(s,u,d){u.exports=function(f,m,p,b,_){var w=s("./util");function x(E){var T=this._promise=new f(m);E instanceof f&&T._propagateFrom(E,3),T._setOnCancel(this),this._values=E,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return w.isArray,w.inherits(x,_),x.prototype.length=function(){return this._length},x.prototype.promise=function(){return this._promise},x.prototype._init=function E(T,j){var O=p(this._values,this._promise);if(O instanceof f){var N=(O=O._target())._bitField;if(this._values=O,(50397184&N)==0)return this._promise._setAsyncGuaranteed(),O._then(E,this._reject,void 0,this,j);if((33554432&N)==0)return(16777216&N)!=0?this._reject(O._reason()):this._cancel();O=O._value()}if((O=w.asArray(O))!==null)O.length!==0?this._iterate(O):j===-5?this._resolveEmptyArray():this._resolve(function($){switch(j){case-2:return[];case-3:return{};case-6:return new Map}}());else{var F=b("expecting an array or an iterable object but got "+w.classString(O)).reason();this._promise._rejectCallback(F,!1)}},x.prototype._iterate=function(E){var T=this.getActualLength(E.length);this._length=T,this._values=this.shouldCopyValues()?new Array(T):this._values;for(var j=this._promise,O=!1,N=null,F=0;F<T;++F){var $=p(E[F],j);N=$ instanceof f?($=$._target())._bitField:null,O?N!==null&&$.suppressUnhandledRejections():N!==null?(50397184&N)==0?($._proxy(this,F),this._values[F]=$):O=(33554432&N)!=0?this._promiseFulfilled($._value(),F):(16777216&N)!=0?this._promiseRejected($._reason(),F):this._promiseCancelled(F):O=this._promiseFulfilled($,F)}O||j._setAsyncGuaranteed()},x.prototype._isResolved=function(){return this._values===null},x.prototype._resolve=function(E){this._values=null,this._promise._fulfill(E)},x.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},x.prototype._reject=function(E){this._values=null,this._promise._rejectCallback(E,!1)},x.prototype._promiseFulfilled=function(E,T){return this._values[T]=E,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseCancelled=function(){return this._cancel(),!0},x.prototype._promiseRejected=function(E){return this._totalResolved++,this._reject(E),!0},x.prototype._resultCancelled=function(){if(!this._isResolved()){var E=this._values;if(this._cancel(),E instanceof f)E.cancel();else for(var T=0;T<E.length;++T)E[T]instanceof f&&E[T].cancel()}},x.prototype.shouldCopyValues=function(){return!0},x.prototype.getActualLength=function(E){return E},x}},{"./util":36}],24:[function(s,u,d){u.exports=function(f,m){var p={},b=s("./util"),_=s("./nodeback"),w=b.withAppended,x=b.maybeWrapAsError,E=b.canEvaluate,T=s("./errors").TypeError,j={__isPromisified__:!0},O=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),N=function(te){return b.isIdentifier(te)&&te.charAt(0)!=="_"&&te!=="constructor"};function F(te){return!O.test(te)}function $(te){try{return te.__isPromisified__===!0}catch{return!1}}function K(te,he,X){var se=b.getDataPropertyOrDefault(te,he+X,j);return!!se&&$(se)}function Q(te,he,X,se){for(var Z=b.inheritedDataKeys(te),I=[],k=0;k<Z.length;++k){var U=Z[k],z=te[U],P=se===N||N(U);typeof z!="function"||$(z)||K(te,U,he)||!se(U,z,te,P)||I.push(U,z)}return function(G,Y,ne){for(var ue=0;ue<G.length;ue+=2){var fe=G[ue];if(ne.test(fe)){for(var ge=fe.replace(ne,""),D=0;D<G.length;D+=2)if(G[D]===ge)throw new T(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",Y))}}}(I,he,X),I}var oe=function(te){return te.replace(/([$])/,"\\$")},ee=E?void 0:function(te,he,X,se,Z,I){var k=function(){return this}(),U=te;function z(){var P=he;he===p&&(P=this);var G=new f(m);G._captureStackTrace();var Y=typeof U=="string"&&this!==k?this[U]:te,ne=_(G,I);try{Y.apply(P,w(arguments,ne))}catch(ue){G._rejectCallback(x(ue),!0,!0)}return G._isFateSealed()||G._setAsyncGuaranteed(),G}return typeof U=="string"&&(te=se),b.notEnumerableProp(z,"__isPromisified__",!0),z};function J(te,he,X,se,Z){for(var I=new RegExp(oe(he)+"$"),k=Q(te,he,I,X),U=0,z=k.length;U<z;U+=2){var P=k[U],G=k[U+1],Y=P+he;if(se===ee)te[Y]=ee(P,p,P,G,he,Z);else{var ne=se(G,function(){return ee(P,p,P,G,he,Z)});b.notEnumerableProp(ne,"__isPromisified__",!0),te[Y]=ne}}return b.toFastProperties(te),te}f.promisify=function(te,he){if(typeof te!="function")throw new T("expecting a function but got "+b.classString(te));if($(te))return te;var X=(he=Object(he)).context===void 0?p:he.context,se=!!he.multiArgs,Z=function(I,k,U){return ee(I,k,void 0,I,null,se)}(te,X);return b.copyDescriptors(te,Z,F),Z},f.promisifyAll=function(te,he){if(typeof te!="function"&&typeof te!="object")throw new T(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var X=!!(he=Object(he)).multiArgs,se=he.suffix;typeof se!="string"&&(se="Async");var Z=he.filter;typeof Z!="function"&&(Z=N);var I=he.promisifier;if(typeof I!="function"&&(I=ee),!b.isIdentifier(se))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var k=b.inheritedDataKeys(te),U=0;U<k.length;++U){var z=te[k[U]];k[U]!=="constructor"&&b.isClass(z)&&(J(z.prototype,se,Z,I,X),J(z,se,Z,I,X))}return J(te,se,Z,I,X)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,u,d){u.exports=function(f,m,p,b){var _,w=s("./util"),x=w.isObject,E=s("./es5");typeof Map=="function"&&(_=Map);var T=function(){var N=0,F=0;function $(K,Q){this[N]=K,this[N+F]=Q,N++}return function(K){F=K.size,N=0;var Q=new Array(2*K.size);return K.forEach($,Q),Q}}();function j(N){var F,$=!1;if(_!==void 0&&N instanceof _)F=T(N),$=!0;else{var K=E.keys(N),Q=K.length;F=new Array(2*Q);for(var oe=0;oe<Q;++oe){var ee=K[oe];F[oe]=N[ee],F[oe+Q]=ee}}this.constructor$(F),this._isMap=$,this._init$(void 0,$?-6:-3)}function O(N){var F,$=p(N);return x($)?(F=$ instanceof f?$._then(f.props,void 0,void 0,void 0,void 0):new j($).promise(),$ instanceof f&&F._propagateFrom($,2),F):b(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}w.inherits(j,m),j.prototype._init=function(){},j.prototype._promiseFulfilled=function(N,F){if(this._values[F]=N,++this._totalResolved>=this._length){var $;if(this._isMap)$=function(ee){for(var J=new _,te=ee.length/2|0,he=0;he<te;++he){var X=ee[te+he],se=ee[he];J.set(X,se)}return J}(this._values);else{$={};for(var K=this.length(),Q=0,oe=this.length();Q<oe;++Q)$[this._values[Q+K]]=this._values[Q]}return this._resolve($),!0}return!1},j.prototype.shouldCopyValues=function(){return!1},j.prototype.getActualLength=function(N){return N>>1},f.prototype.props=function(){return O(this)},f.props=function(N){return O(N)}}},{"./es5":13,"./util":36}],26:[function(s,u,d){function f(m){this._capacity=m,this._length=0,this._front=0}f.prototype._willBeOverCapacity=function(m){return this._capacity<m},f.prototype._pushOne=function(m){var p=this.length();this._checkCapacity(p+1),this[this._front+p&this._capacity-1]=m,this._length=p+1},f.prototype.push=function(m,p,b){var _=this.length()+3;if(this._willBeOverCapacity(_))return this._pushOne(m),this._pushOne(p),void this._pushOne(b);var w=this._front+_-3;this._checkCapacity(_);var x=this._capacity-1;this[w+0&x]=m,this[w+1&x]=p,this[w+2&x]=b,this._length=_},f.prototype.shift=function(){var m=this._front,p=this[m];return this[m]=void 0,this._front=m+1&this._capacity-1,this._length--,p},f.prototype.length=function(){return this._length},f.prototype._checkCapacity=function(m){this._capacity<m&&this._resizeTo(this._capacity<<1)},f.prototype._resizeTo=function(m){var p=this._capacity;this._capacity=m,function(b,_,w,x,E){for(var T=0;T<E;++T)w[T+x]=b[T+0],b[T+0]=void 0}(this,0,this,p,this._front+this._length&p-1)},u.exports=f},{}],27:[function(s,u,d){u.exports=function(f,m,p,b){var _=s("./util"),w=function(E){return E.then(function(T){return x(T,E)})};function x(E,T){var j=p(E);if(j instanceof f)return w(j);if((E=_.asArray(E))===null)return b("expecting an array or an iterable object but got "+_.classString(E));var O=new f(m);T!==void 0&&O._propagateFrom(T,3);for(var N=O._fulfill,F=O._reject,$=0,K=E.length;$<K;++$){var Q=E[$];(Q!==void 0||$ in E)&&f.cast(Q)._then(N,F,void 0,O,null)}return O}f.race=function(E){return x(E,void 0)},f.prototype.race=function(){return x(this,void 0)}}},{"./util":36}],28:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=f._getDomain,E=s("./util"),T=E.tryCatch;function j(K,Q,oe,ee){this.constructor$(K);var J=x();this._fn=J===null?Q:E.domainBind(J,Q),oe!==void 0&&(oe=f.resolve(oe))._attachCancellationCallback(this),this._initialValue=oe,this._currentCancellable=null,this._eachValues=ee===_?Array(this._length):ee===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function O(K,Q){this.isFulfilled()?Q._resolve(K):Q._reject(K)}function N(K,Q,oe,ee){return typeof Q!="function"?p("expecting a function but got "+E.classString(Q)):new j(K,Q,oe,ee).promise()}function F(K){this.accum=K,this.array._gotAccum(K);var Q=b(this.value,this.array._promise);return Q instanceof f?(this.array._currentCancellable=Q,Q._then($,void 0,void 0,this,void 0)):$.call(this,Q)}function $(K){var Q,oe=this.array,ee=oe._promise,J=T(oe._fn);ee._pushContext(),(Q=oe._eachValues!==void 0?J.call(ee._boundValue(),K,this.index,this.length):J.call(ee._boundValue(),this.accum,K,this.index,this.length))instanceof f&&(oe._currentCancellable=Q);var te=ee._popContext();return w.checkForgottenReturns(Q,te,oe._eachValues!==void 0?"Promise.each":"Promise.reduce",ee),Q}E.inherits(j,m),j.prototype._gotAccum=function(K){this._eachValues!==void 0&&this._eachValues!==null&&K!==_&&this._eachValues.push(K)},j.prototype._eachComplete=function(K){return this._eachValues!==null&&this._eachValues.push(K),this._eachValues},j.prototype._init=function(){},j.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},j.prototype.shouldCopyValues=function(){return!1},j.prototype._resolve=function(K){this._promise._resolveCallback(K),this._values=null},j.prototype._resultCancelled=function(K){if(K===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof f&&this._currentCancellable.cancel(),this._initialValue instanceof f&&this._initialValue.cancel())},j.prototype._iterate=function(K){var Q,oe;this._values=K;var ee=K.length;if(this._initialValue!==void 0?(Q=this._initialValue,oe=0):(Q=f.resolve(K[0]),oe=1),this._currentCancellable=Q,!Q.isRejected())for(;oe<ee;++oe){var J={accum:null,value:K[oe],index:oe,length:ee,array:this};Q=Q._then(F,void 0,void 0,J,void 0)}this._eachValues!==void 0&&(Q=Q._then(this._eachComplete,void 0,void 0,this,void 0)),Q._then(O,O,void 0,Q,this)},f.prototype.reduce=function(K,Q){return N(this,K,Q,null)},f.reduce=function(K,Q,oe,ee){return N(K,Q,oe,ee)}}},{"./util":36}],29:[function(s,u,d){var f,m=s("./util"),p=m.getNativePromise();if(m.isNode&&typeof MutationObserver>"u"){var b=i.setImmediate,_=r.nextTick;f=m.isRecentNode?function(x){b.call(i,x)}:function(x){_.call(r,x)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var w=p.resolve();f=function(x){w.then(x)}}else f=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(x){o(x)}:typeof setTimeout<"u"?function(x){setTimeout(x,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var x=document.createElement("div"),E={attributes:!0},T=!1,j=document.createElement("div");return new MutationObserver(function(){x.classList.toggle("foo"),T=!1}).observe(j,E),function(O){var N=new MutationObserver(function(){N.disconnect(),O()});N.observe(x,E),T||(T=!0,j.classList.toggle("foo"))}}();u.exports=f},{"./util":36}],30:[function(s,u,d){u.exports=function(f,m,p){var b=f.PromiseInspection;function _(w){this.constructor$(w)}s("./util").inherits(_,m),_.prototype._promiseResolved=function(w,x){return this._values[w]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseFulfilled=function(w,x){var E=new b;return E._bitField=33554432,E._settledValueField=w,this._promiseResolved(x,E)},_.prototype._promiseRejected=function(w,x){var E=new b;return E._bitField=16777216,E._settledValueField=w,this._promiseResolved(x,E)},f.settle=function(w){return p.deprecated(".settle()",".reflect()"),new _(w).promise()},f.prototype.settle=function(){return f.settle(this)}}},{"./util":36}],31:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=s("./errors").RangeError,w=s("./errors").AggregateError,x=b.isArray,E={};function T(O){this.constructor$(O),this._howMany=0,this._unwrap=!1,this._initialized=!1}function j(O,N){if((0|N)!==N||N<0)return p(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var F=new T(O),$=F.promise();return F.setHowMany(N),F.init(),$}b.inherits(T,m),T.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var O=x(this._values);!this._isResolved()&&O&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},T.prototype.init=function(){this._initialized=!0,this._init()},T.prototype.setUnwrap=function(){this._unwrap=!0},T.prototype.howMany=function(){return this._howMany},T.prototype.setHowMany=function(O){this._howMany=O},T.prototype._promiseFulfilled=function(O){return this._addFulfilled(O),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},T.prototype._promiseRejected=function(O){return this._addRejected(O),this._checkOutcome()},T.prototype._promiseCancelled=function(){return this._values instanceof f||this._values==null?this._cancel():(this._addRejected(E),this._checkOutcome())},T.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var O=new w,N=this.length();N<this._values.length;++N)this._values[N]!==E&&O.push(this._values[N]);return O.length>0?this._reject(O):this._cancel(),!0}return!1},T.prototype._fulfilled=function(){return this._totalResolved},T.prototype._rejected=function(){return this._values.length-this.length()},T.prototype._addRejected=function(O){this._values.push(O)},T.prototype._addFulfilled=function(O){this._values[this._totalResolved++]=O},T.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},T.prototype._getRangeError=function(O){var N="Input array must contain at least "+this._howMany+" items but contains only "+O+" items";return new _(N)},T.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},f.some=function(O,N){return j(O,N)},f.prototype.some=function(O){return j(this,O)},f._SomePromiseArray=T}},{"./errors":12,"./util":36}],32:[function(s,u,d){u.exports=function(f){function m(T){T!==void 0?(T=T._target(),this._bitField=T._bitField,this._settledValueField=T._isFateSealed()?T._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}m.prototype._settledValue=function(){return this._settledValueField};var p=m.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()},b=m.prototype.error=m.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()},_=m.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},w=m.prototype.isRejected=function(){return(16777216&this._bitField)!=0},x=m.prototype.isPending=function(){return(50397184&this._bitField)==0},E=m.prototype.isResolved=function(){return(50331648&this._bitField)!=0};m.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},f.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},f.prototype._isCancelled=function(){return this._target().__isCancelled()},f.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},f.prototype.isPending=function(){return x.call(this._target())},f.prototype.isRejected=function(){return w.call(this._target())},f.prototype.isFulfilled=function(){return _.call(this._target())},f.prototype.isResolved=function(){return E.call(this._target())},f.prototype.value=function(){return p.call(this._target())},f.prototype.reason=function(){var T=this._target();return T._unsetRejectionIsUnhandled(),b.call(T)},f.prototype._value=function(){return this._settledValue()},f.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},f.PromiseInspection=m}},{}],33:[function(s,u,d){u.exports=function(f,m){var p=s("./util"),b=p.errorObj,_=p.isObject,w={}.hasOwnProperty;return function(x,E){if(_(x)){if(x instanceof f)return x;var T=function(O){try{return function(N){return N.then}(O)}catch(N){return b.e=N,b}}(x);if(T===b){E&&E._pushContext();var j=f.reject(T.e);return E&&E._popContext(),j}if(typeof T=="function")return function(O){try{return w.call(O,"_promise0")}catch{return!1}}(x)?(j=new f(m),x._then(j._fulfill,j._reject,void 0,j,null),j):function(O,N,F){var $=new f(m),K=$;F&&F._pushContext(),$._captureStackTrace(),F&&F._popContext();var Q=!0,oe=p.tryCatch(N).call(O,function(ee){$&&($._resolveCallback(ee),$=null)},function(ee){$&&($._rejectCallback(ee,Q,!0),$=null)});return Q=!1,$&&oe===b&&($._rejectCallback(oe.e,!0,!0),$=null),K}(x,T,E)}return x}}},{"./util":36}],34:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=f.TimeoutError;function w(O){this.handle=O}w.prototype._resultCancelled=function(){clearTimeout(this.handle)};var x=function(O){return E(+this).thenReturn(O)},E=f.delay=function(O,N){var F,$;return N!==void 0?(F=f.resolve(N)._then(x,null,null,O,void 0),p.cancellation()&&N instanceof f&&F._setOnCancel(N)):(F=new f(m),$=setTimeout(function(){F._fulfill()},+O),p.cancellation()&&F._setOnCancel(new w($)),F._captureStackTrace()),F._setAsyncGuaranteed(),F};function T(O){return clearTimeout(this.handle),O}function j(O){throw clearTimeout(this.handle),O}f.prototype.delay=function(O){return E(O,this)},f.prototype.timeout=function(O,N){var F,$;O=+O;var K=new w(setTimeout(function(){F.isPending()&&function(Q,oe,ee){var J;J=typeof oe!="string"?oe instanceof Error?oe:new _("operation timed out"):new _(oe),b.markAsOriginatingFromRejection(J),Q._attachExtraTrace(J),Q._reject(J),ee?.cancel()}(F,N,$)},O));return p.cancellation()?($=this.then(),(F=$._then(T,j,void 0,K,void 0))._setOnCancel(K)):F=this._then(T,j,void 0,K,void 0),F}}},{"./util":36}],35:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./util"),E=s("./errors").TypeError,T=s("./util").inherits,j=x.errorObj,O=x.tryCatch,N={};function F(J){setTimeout(function(){throw J},0)}function $(J,te){var he=0,X=J.length,se=new f(_);return function Z(){if(he>=X)return se._fulfill();var I=function(k){var U=p(k);return U!==k&&typeof k._isDisposable=="function"&&typeof k._getDisposer=="function"&&k._isDisposable()&&U._setDisposable(k._getDisposer()),U}(J[he++]);if(I instanceof f&&I._isDisposable()){try{I=p(I._getDisposer().tryDispose(te),J.promise)}catch(k){return F(k)}if(I instanceof f)return I._then(Z,F,null,null,null)}Z()}(),se}function K(J,te,he){this._data=J,this._promise=te,this._context=he}function Q(J,te,he){this.constructor$(J,te,he)}function oe(J){return K.isDisposer(J)?(this.resources[this.index]._setDisposable(J),J.promise()):J}function ee(J){this.length=J,this.promise=null,this[J-1]=null}K.prototype.data=function(){return this._data},K.prototype.promise=function(){return this._promise},K.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():N},K.prototype.tryDispose=function(J){var te=this.resource(),he=this._context;he!==void 0&&he._pushContext();var X=te!==N?this.doDispose(te,J):null;return he!==void 0&&he._popContext(),this._promise._unsetDisposable(),this._data=null,X},K.isDisposer=function(J){return J!=null&&typeof J.resource=="function"&&typeof J.tryDispose=="function"},T(Q,K),Q.prototype.doDispose=function(J,te){return this.data().call(J,J,te)},ee.prototype._resultCancelled=function(){for(var J=this.length,te=0;te<J;++te){var he=this[te];he instanceof f&&he.cancel()}},f.using=function(){var J=arguments.length;if(J<2)return m("you must pass at least 2 arguments to Promise.using");var te,he=arguments[J-1];if(typeof he!="function")return m("expecting a function but got "+x.classString(he));var X=!0;J===2&&Array.isArray(arguments[0])?(J=(te=arguments[0]).length,X=!1):(te=arguments,J--);for(var se=new ee(J),Z=0;Z<J;++Z){var I=te[Z];if(K.isDisposer(I)){var k=I;(I=I.promise())._setDisposable(k)}else{var U=p(I);U instanceof f&&(I=U._then(oe,null,null,{resources:se,index:Z},void 0))}se[Z]=I}var z=new Array(se.length);for(Z=0;Z<z.length;++Z)z[Z]=f.resolve(se[Z]).reflect();var P=f.all(z).then(function(Y){for(var ne=0;ne<Y.length;++ne){var ue=Y[ne];if(ue.isRejected())return j.e=ue.error(),j;if(!ue.isFulfilled())return void P.cancel();Y[ne]=ue.value()}G._pushContext(),he=O(he);var fe=X?he.apply(void 0,Y):he(Y),ge=G._popContext();return w.checkForgottenReturns(fe,ge,"Promise.using",G),fe}),G=P.lastly(function(){var Y=new f.PromiseInspection(P);return $(se,Y)});return se.promise=G,G._setOnCancel(se),G},f.prototype._setDisposable=function(J){this._bitField=131072|this._bitField,this._disposer=J},f.prototype._isDisposable=function(){return(131072&this._bitField)>0},f.prototype._getDisposer=function(){return this._disposer},f.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},f.prototype.disposer=function(J){if(typeof J=="function")return new Q(J,this,b());throw new E}}},{"./errors":12,"./util":36}],36:[function(s,u,d){var f,m=s("./es5"),p=typeof navigator>"u",b={e:{}},_=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function w(){try{var X=f;return f=null,X.apply(this,arguments)}catch(se){return b.e=se,b}}function x(X){return X==null||X===!0||X===!1||typeof X=="string"||typeof X=="number"}function E(X,se,Z){if(x(X))return X;var I={value:Z,configurable:!0,enumerable:!1,writable:!0};return m.defineProperty(X,se,I),X}var T=function(){var X=[Array.prototype,Object.prototype,Function.prototype],se=function(k){for(var U=0;U<X.length;++U)if(X[U]===k)return!0;return!1};if(m.isES5){var Z=Object.getOwnPropertyNames;return function(k){for(var U=[],z=Object.create(null);k!=null&&!se(k);){var P;try{P=Z(k)}catch{return U}for(var G=0;G<P.length;++G){var Y=P[G];if(!z[Y]){z[Y]=!0;var ne=Object.getOwnPropertyDescriptor(k,Y);ne!=null&&ne.get==null&&ne.set==null&&U.push(Y)}}k=m.getPrototypeOf(k)}return U}}var I={}.hasOwnProperty;return function(k){if(se(k))return[];var U=[];e:for(var z in k)if(I.call(k,z))U.push(z);else{for(var P=0;P<X.length;++P)if(I.call(X[P],z))continue e;U.push(z)}return U}}(),j=/this\s*\.\s*\S+\s*=/,O=/^[a-z$_][a-z$_0-9]*$/i;function N(X){try{return X+""}catch{return"[no string representation]"}}function F(X){return X instanceof Error||X!==null&&typeof X=="object"&&typeof X.message=="string"&&typeof X.name=="string"}function $(X){return F(X)&&m.propertyIsWritable(X,"stack")}var K="stack"in new Error?function(X){return $(X)?X:new Error(N(X))}:function(X){if($(X))return X;try{throw new Error(N(X))}catch(se){return se}};function Q(X){return{}.toString.call(X)}var oe=function(X){return m.isArray(X)?X:null};if(typeof Symbol<"u"&&Symbol.iterator){var ee=typeof Array.from=="function"?function(X){return Array.from(X)}:function(X){for(var se,Z=[],I=X[Symbol.iterator]();!(se=I.next()).done;)Z.push(se.value);return Z};oe=function(X){return m.isArray(X)?X:X!=null&&typeof X[Symbol.iterator]=="function"?ee(X):null}}var J=r!==void 0&&Q(r).toLowerCase()==="[object process]",te=r!==void 0&&r.env!==void 0,he={isClass:function(X){try{if(typeof X=="function"){var se=m.names(X.prototype),Z=m.isES5&&se.length>1,I=se.length>0&&!(se.length===1&&se[0]==="constructor"),k=j.test(X+"")&&m.names(X).length>0;if(Z||I||k)return!0}return!1}catch{return!1}},isIdentifier:function(X){return O.test(X)},inheritedDataKeys:T,getDataPropertyOrDefault:function(X,se,Z){if(!m.isES5)return{}.hasOwnProperty.call(X,se)?X[se]:void 0;var I=Object.getOwnPropertyDescriptor(X,se);return I!=null?I.get==null&&I.set==null?I.value:Z:void 0},thrower:function(X){throw X},isArray:m.isArray,asArray:oe,notEnumerableProp:E,isPrimitive:x,isObject:function(X){return typeof X=="function"||typeof X=="object"&&X!==null},isError:F,canEvaluate:p,errorObj:b,tryCatch:function(X){return f=X,w},inherits:function(X,se){var Z={}.hasOwnProperty;function I(){for(var k in this.constructor=X,this.constructor$=se,se.prototype)Z.call(se.prototype,k)&&k.charAt(k.length-1)!=="$"&&(this[k+"$"]=se.prototype[k])}return I.prototype=se.prototype,X.prototype=new I,X.prototype},withAppended:function(X,se){var Z,I=X.length,k=new Array(I+1);for(Z=0;Z<I;++Z)k[Z]=X[Z];return k[Z]=se,k},maybeWrapAsError:function(X){return x(X)?new Error(N(X)):X},toFastProperties:function(X){return X},filledRange:function(X,se,Z){for(var I=new Array(X),k=0;k<X;++k)I[k]=se+k+Z;return I},toString:N,canAttachTrace:$,ensureErrorObject:K,originatesFromRejection:function(X){return X!=null&&(X instanceof Error.__BluebirdErrorTypes__.OperationalError||X.isOperational===!0)},markAsOriginatingFromRejection:function(X){try{E(X,"isOperational",!0)}catch{}},classString:Q,copyDescriptors:function(X,se,Z){for(var I=m.names(X),k=0;k<I.length;++k){var U=I[k];if(Z(U))try{m.defineProperty(se,U,m.getDescriptor(X,U))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:J,hasEnvVariables:te,env:function(X){return te?r.env[X]:void 0},global:_,getNativePromise:function(){if(typeof Promise=="function")try{var X=new Promise(function(){});if({}.toString.call(X)==="[object Promise]")return Promise}catch{}},domainBind:function(X,se){return X.bind(se)}};he.isRecentNode=he.isNode&&function(){var X=r.versions.node.split(".").map(Number);return X[0]===0&&X[1]>10||X[0]>0}(),he.isNode&&he.toFastProperties(r);try{throw new Error}catch(X){he.lastLineError=X}u.exports=he},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o<s;o++)if(r[o]==="\r"){if(r[o+1]===`
`){i.eol=`\r
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,s){var u=i(o,s);return r(u)?u:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=N;var s,u=n(37);N.ReadableState=O,n(12).EventEmitter;var d=function(z,P){return z.listeners(P).length},f=n(24),m=n(7).Buffer,p=r.Uint8Array||function(){},b=n(5);b.inherits=n(2);var _=n(41),w=void 0;w=_&&_.debuglog?_.debuglog("stream"):function(){};var x,E=n(42),T=n(25);b.inherits(N,f);var j=["error","close","destroy","pause","resume"];function O(z,P){s=s||n(1),z=z||{};var G=P instanceof s;this.objectMode=!!z.objectMode,G&&(this.objectMode=this.objectMode||!!z.readableObjectMode);var Y=z.highWaterMark,ne=z.readableHighWaterMark,ue=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:G&&(ne||ne===0)?ne:ue,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new E,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=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(x||(x=n(26).StringDecoder),this.decoder=new x(z.encoding),this.encoding=z.encoding)}function N(z){if(s=s||n(1),!(this instanceof N))return new N(z);this._readableState=new O(z,this),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),f.call(this)}function F(z,P,G,Y,ne){var ue,fe=z._readableState;return P===null?(fe.reading=!1,function(ge,D){if(!D.ended){if(D.decoder){var B=D.decoder.end();B&&B.length&&(D.buffer.push(B),D.length+=D.objectMode?1:B.length)}D.ended=!0,oe(ge)}}(z,fe)):(ne||(ue=function(ge,D){var B;return function(W){return m.isBuffer(W)||W instanceof p}(D)||typeof D=="string"||D===void 0||ge.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B}(fe,P)),ue?z.emit("error",ue):fe.objectMode||P&&P.length>0?(typeof P=="string"||fe.objectMode||Object.getPrototypeOf(P)===m.prototype||(P=function(ge){return m.from(ge)}(P)),Y?fe.endEmitted?z.emit("error",new Error("stream.unshift() after end event")):$(z,fe,P,!0):fe.ended?z.emit("error",new Error("stream.push() after EOF")):(fe.reading=!1,fe.decoder&&!G?(P=fe.decoder.write(P),fe.objectMode||P.length!==0?$(z,fe,P,!1):J(z,fe)):$(z,fe,P,!1))):Y||(fe.reading=!1)),function(ge){return!ge.ended&&(ge.needReadable||ge.length<ge.highWaterMark||ge.length===0)}(fe)}function $(z,P,G,Y){P.flowing&&P.length===0&&!P.sync?(z.emit("data",G),z.read(0)):(P.length+=P.objectMode?1:G.length,Y?P.buffer.unshift(G):P.buffer.push(G),P.needReadable&&oe(z)),J(z,P)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),N.prototype.destroy=T.destroy,N.prototype._undestroy=T.undestroy,N.prototype._destroy=function(z,P){this.push(null),P(z)},N.prototype.push=function(z,P){var G,Y=this._readableState;return Y.objectMode?G=!0:typeof z=="string"&&((P=P||Y.defaultEncoding)!==Y.encoding&&(z=m.from(z,P),P=""),G=!0),F(this,z,P,!1,G)},N.prototype.unshift=function(z){return F(this,z,null,!0,!1)},N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(z){return x||(x=n(26).StringDecoder),this._readableState.decoder=new x(z),this._readableState.encoding=z,this};var K=8388608;function Q(z,P){return z<=0||P.length===0&&P.ended?0:P.objectMode?1:z!=z?P.flowing&&P.length?P.buffer.head.data.length:P.length:(z>P.highWaterMark&&(P.highWaterMark=function(G){return G>=K?G=K:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}(z)),z<=P.length?z:P.ended?P.length:(P.needReadable=!0,0))}function oe(z){var P=z._readableState;P.needReadable=!1,P.emittedReadable||(w("emitReadable",P.flowing),P.emittedReadable=!0,P.sync?o.nextTick(ee,z):ee(z))}function ee(z){w("emit readable"),z.emit("readable"),se(z)}function J(z,P){P.readingMore||(P.readingMore=!0,o.nextTick(te,z,P))}function te(z,P){for(var G=P.length;!P.reading&&!P.flowing&&!P.ended&&P.length<P.highWaterMark&&(w("maybeReadMore read 0"),z.read(0),G!==P.length);)G=P.length;P.readingMore=!1}function he(z){w("readable nexttick read 0"),z.read(0)}function X(z,P){P.reading||(w("resume read 0"),z.read(0)),P.resumeScheduled=!1,P.awaitDrain=0,z.emit("resume"),se(z),P.flowing&&!P.reading&&z.read(0)}function se(z){var P=z._readableState;for(w("flow",P.flowing);P.flowing&&z.read()!==null;);}function Z(z,P){return P.length===0?null:(P.objectMode?G=P.buffer.shift():!z||z>=P.length?(G=P.decoder?P.buffer.join(""):P.buffer.length===1?P.buffer.head.data:P.buffer.concat(P.length),P.buffer.clear()):G=function(Y,ne,ue){var fe;return Y<ne.head.data.length?(fe=ne.head.data.slice(0,Y),ne.head.data=ne.head.data.slice(Y)):fe=Y===ne.head.data.length?ne.shift():ue?function(ge,D){var B=D.head,W=1,le=B.data;for(ge-=le.length;B=B.next;){var H=B.data,ae=ge>H.length?H.length:ge;if(ae===H.length?le+=H:le+=H.slice(0,ge),(ge-=ae)==0){ae===H.length?(++W,B.next?D.head=B.next:D.head=D.tail=null):(D.head=B,B.data=H.slice(ae));break}++W}return D.length-=W,le}(Y,ne):function(ge,D){var B=m.allocUnsafe(ge),W=D.head,le=1;for(W.data.copy(B),ge-=W.data.length;W=W.next;){var H=W.data,ae=ge>H.length?H.length:ge;if(H.copy(B,B.length-ge,0,ae),(ge-=ae)==0){ae===H.length?(++le,W.next?D.head=W.next:D.head=D.tail=null):(D.head=W,W.data=H.slice(ae));break}++le}return D.length-=le,B}(Y,ne),fe}(z,P.buffer,P.decoder),G);var G}function I(z){var P=z._readableState;if(P.length>0)throw new Error('"endReadable()" called on non-empty stream');P.endEmitted||(P.ended=!0,o.nextTick(k,P,z))}function k(z,P){z.endEmitted||z.length!==0||(z.endEmitted=!0,P.readable=!1,P.emit("end"))}function U(z,P){for(var G=0,Y=z.length;G<Y;G++)if(z[G]===P)return G;return-1}N.prototype.read=function(z){w("read",z),z=parseInt(z,10);var P=this._readableState,G=z;if(z!==0&&(P.emittedReadable=!1),z===0&&P.needReadable&&(P.length>=P.highWaterMark||P.ended))return w("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?I(this):oe(this),null;if((z=Q(z,P))===0&&P.ended)return P.length===0&&I(this),null;var Y,ne=P.needReadable;return w("need readable",ne),(P.length===0||P.length-z<P.highWaterMark)&&w("length less than watermark",ne=!0),P.ended||P.reading?w("reading or ended",ne=!1):ne&&(w("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(z=Q(G,P))),(Y=z>0?Z(z,P):null)===null?(P.needReadable=!0,z=0):P.length-=z,P.length===0&&(P.ended||(P.needReadable=!0),G!==z&&P.ended&&I(this)),Y!==null&&this.emit("data",Y),Y},N.prototype._read=function(z){this.emit("error",new Error("_read() is not implemented"))},N.prototype.pipe=function(z,P){var G=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=z;break;case 1:Y.pipes=[Y.pipes,z];break;default:Y.pipes.push(z)}Y.pipesCount+=1,w("pipe count=%d opts=%j",Y.pipesCount,P);var ne=P&&P.end===!1||z===i.stdout||z===i.stderr?ae:ue;function ue(){w("onend"),z.end()}Y.endEmitted?o.nextTick(ne):G.once("end",ne),z.on("unpipe",function ce(ve,de){w("onunpipe"),ve===G&&de&&de.hasUnpiped===!1&&(de.hasUnpiped=!0,w("cleanup"),z.removeListener("close",le),z.removeListener("finish",H),z.removeListener("drain",fe),z.removeListener("error",W),z.removeListener("unpipe",ce),G.removeListener("end",ue),G.removeListener("end",ae),G.removeListener("data",B),ge=!0,!Y.awaitDrain||z._writableState&&!z._writableState.needDrain||fe())});var fe=function(ce){return function(){var ve=ce._readableState;w("pipeOnDrain",ve.awaitDrain),ve.awaitDrain&&ve.awaitDrain--,ve.awaitDrain===0&&d(ce,"data")&&(ve.flowing=!0,se(ce))}}(G);z.on("drain",fe);var ge=!1,D=!1;function B(ce){w("ondata"),D=!1,z.write(ce)!==!1||D||((Y.pipesCount===1&&Y.pipes===z||Y.pipesCount>1&&U(Y.pipes,z)!==-1)&&!ge&&(w("false write response, pause",G._readableState.awaitDrain),G._readableState.awaitDrain++,D=!0),G.pause())}function W(ce){w("onerror",ce),ae(),z.removeListener("error",W),d(z,"error")===0&&z.emit("error",ce)}function le(){z.removeListener("finish",H),ae()}function H(){w("onfinish"),z.removeListener("close",le),ae()}function ae(){w("unpipe"),G.unpipe(z)}return G.on("data",B),function(ce,ve,de){if(typeof ce.prependListener=="function")return ce.prependListener(ve,de);ce._events&&ce._events[ve]?u(ce._events[ve])?ce._events[ve].unshift(de):ce._events[ve]=[de,ce._events[ve]]:ce.on(ve,de)}(z,"error",W),z.once("close",le),z.once("finish",H),z.emit("pipe",G),Y.flowing||(w("pipe resume"),G.resume()),z},N.prototype.unpipe=function(z){var P=this._readableState,G={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return z&&z!==P.pipes?this:(z||(z=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,z&&z.emit("unpipe",this,G),this);if(!z){var Y=P.pipes,ne=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var ue=0;ue<ne;ue++)Y[ue].emit("unpipe",this,G);return this}var fe=U(P.pipes,z);return fe===-1?this:(P.pipes.splice(fe,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),z.emit("unpipe",this,G),this)},N.prototype.on=function(z,P){var G=f.prototype.on.call(this,z,P);if(z==="data")this._readableState.flowing!==!1&&this.resume();else if(z==="readable"){var Y=this._readableState;Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&oe(this):o.nextTick(he,this))}return G},N.prototype.addListener=N.prototype.on,N.prototype.resume=function(){var z=this._readableState;return z.flowing||(w("resume"),z.flowing=!0,function(P,G){G.resumeScheduled||(G.resumeScheduled=!0,o.nextTick(X,P,G))}(this,z)),this},N.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},N.prototype.wrap=function(z){var P=this,G=this._readableState,Y=!1;for(var ne in z.on("end",function(){if(w("wrapped end"),G.decoder&&!G.ended){var fe=G.decoder.end();fe&&fe.length&&P.push(fe)}P.push(null)}),z.on("data",function(fe){w("wrapped data"),G.decoder&&(fe=G.decoder.write(fe)),(!G.objectMode||fe!=null)&&(G.objectMode||fe&&fe.length)&&(P.push(fe)||(Y=!0,z.pause()))}),z)this[ne]===void 0&&typeof z[ne]=="function"&&(this[ne]=function(fe){return function(){return z[fe].apply(z,arguments)}}(ne));for(var ue=0;ue<j.length;ue++)z.on(j[ue],this.emit.bind(this,j[ue]));return this._read=function(fe){w("wrapped _read",fe),Y&&(Y=!1,z.resume())},this},Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),N._fromList=Z}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,s){o.emit("error",s)}e.exports={destroy:function(o,s){var u=this,d=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return d||f?(s?s(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(m){!s&&m?(r.nextTick(i,u,m),u._writableState&&(u._writableState.errorEmitted=!0)):s&&s(m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(w){switch((w=""+w)&&w.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(w){var x;switch(this.encoding=function(E){var T=function(j){if(!j)return"utf8";for(var O;;)switch(j){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 j;default:if(O)return;j=(""+j).toLowerCase(),O=!0}}(E);if(typeof T!="string"&&(r.isEncoding===i||!i(E)))throw new Error("Unknown encoding: "+E);return T||E}(w),this.encoding){case"utf16le":this.text=d,this.end=f,x=4;break;case"utf8":this.fillLast=u,x=4;break;case"base64":this.text=m,this.end=p,x=3;break;default:return this.write=b,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(x)}function s(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function u(w){var x=this.lastTotal-this.lastNeed,E=function(T,j,O){if((192&j[0])!=128)return T.lastNeed=0,"<22>";if(T.lastNeed>1&&j.length>1){if((192&j[1])!=128)return T.lastNeed=1,"<22>";if(T.lastNeed>2&&j.length>2&&(192&j[2])!=128)return T.lastNeed=2,"<22>"}}(this,w);return E!==void 0?E:this.lastNeed<=w.length?(w.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,x,0,w.length),void(this.lastNeed-=w.length))}function d(w,x){if((w.length-x)%2==0){var E=w.toString("utf16le",x);if(E){var T=E.charCodeAt(E.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",x,w.length-1)}function f(w){var x=w&&w.length?this.write(w):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,E)}return x}function m(w,x){var E=(w.length-x)%3;return E===0?w.toString("base64",x):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",x,w.length-E))}function p(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function b(w){return w.toString(this.encoding)}function _(w){return w&&w.length?this.write(w):""}t.StringDecoder=o,o.prototype.write=function(w){if(w.length===0)return"";var x,E;if(this.lastNeed){if((x=this.fillLast(w))===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<w.length?x?x+this.text(w,E):this.text(w,E):x||""},o.prototype.end=function(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+"<22>":x},o.prototype.text=function(w,x){var E=function(j,O,N){var F=O.length-1;if(F<N)return 0;var $=s(O[F]);return $>=0?($>0&&(j.lastNeed=$-1),$):--F<N||$===-2?0:($=s(O[F]))>=0?($>0&&(j.lastNeed=$-2),$):--F<N||$===-2?0:($=s(O[F]))>=0?($>0&&($===2?$=0:j.lastNeed=$-3),$):0}(this,w,x);if(!this.lastNeed)return w.toString("utf8",x);this.lastTotal=E;var T=w.length-(E-this.lastNeed);return w.copy(this.lastChar,0,T),w.toString("utf8",x,T)},o.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(d){if(!(this instanceof o))return new o(d);r.call(this,d),this._transformState={afterTransform:(function(f,m){var p=this._transformState;p.transforming=!1;var b=p.writecb;if(!b)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,m!=null&&this.push(m),b(f);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",s)}function s(){var d=this;typeof this._flush=="function"?this._flush(function(f,m){u(d,f,m)}):u(this,null,null)}function u(d,f,m){if(f)return d.emit("error",f);if(m!=null&&d.push(m),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(d,f){return this._transformState.needTransform=!1,r.prototype.push.call(this,d,f)},o.prototype._transform=function(d,f,m){throw new Error("_transform() is not implemented")},o.prototype._write=function(d,f,m){var p=this._transformState;if(p.writecb=m,p.writechunk=d,p.writeencoding=f,!p.transforming){var b=this._readableState;(p.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},o.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},o.prototype._destroy=function(d,f){var m=this;r.prototype._destroy.call(this,d,function(p){f(p),m.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),s=r.allocUnsafe?r.allocUnsafe(o):new r(o);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var s=[],u=0;u<i.length;u++)o.indexOf(u)>-1&&s.push(i[u]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])};return function(s,u){function d(){this.constructor=s}o(s,u),s.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(u,d,f){var m=o.call(this,"Error: "+u+". JSON Line number: "+d+(f?" near: "+f:""))||this;return m.err=u,m.line=d,m.extra=f,m.name="CSV Parse Error",m}return r(s,o),s.column_mismatched=function(u,d){return new s("column_mismatched",u,d)},s.unclosed_quote=function(u,d){return new s("unclosed_quote",u,d)},s.fromJSON=function(u){return new s(u.err,u.line,u.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(u){return u==null?u===void 0?"[object Undefined]":"[object Null]":s&&s in Object(u)?i(u):o(u)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var E in x)x.hasOwnProperty(E)&&(w[E]=x[E])};return function(w,x){function E(){this.constructor=w}_(w,x),w.prototype=x===null?Object.create(x):(E.prototype=x.prototype,new E)}}(),o=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),u=n(50),d=n(51),f=o(n(15)),m=n(52),p=n(105),b=function(_){function w(x,E){E===void 0&&(E={});var T=_.call(this,E)||this;return T.options=E,T.params=u.mergeParams(x),T.runtime=d.initParseRuntime(T),T.result=new p.Result(T),T.processor=new m.ProcessorLocal(T),T.once("error",function(j){r(function(){T.result.processError(j),T.emit("done",j)})}),T.once("done",function(){T.processor.destroy()}),T}return i(w,_),w.prototype.preRawData=function(x){return this.runtime.preRawDataHook=x,this},w.prototype.preFileLine=function(x){return this.runtime.preFileLineHook=x,this},w.prototype.subscribe=function(x,E,T){return this.parseRuntime.subscribe={onNext:x,onError:E,onCompleted:T},this},w.prototype.fromFile=function(x,E){var T=this,j=n(!function(){var O=new Error("Cannot find module 'fs'");throw O.code="MODULE_NOT_FOUND",O}());return j.exists(x,function(O){O?j.createReadStream(x,E).pipe(T):T.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},w.prototype.fromStream=function(x){return x.pipe(this),this},w.prototype.fromString=function(x){x.toString();var E=new s.Readable,T=0;return E._read=function(j){if(T>=x.length)this.push(null);else{var O=x.substr(T,j);this.push(O),T+=j}},this.fromStream(E)},w.prototype.then=function(x,E){var T=this;return new f.default(function(j,O){T.parseRuntime.then={onfulfilled:function(N){j(x?x(N):N)},onrejected:function(N){E?j(E(N)):O(N)}}})},Object.defineProperty(w.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),w.prototype._transform=function(x,E,T){var j=this;this.processor.process(x).then(function(O){if(O.length>0)return j.runtime.started=!0,j.result.processResult(O)}).then(function(){j.emit("drained"),T()},function(O){j.runtime.hasError=!0,j.runtime.error=O,j.emit("error",O),T()})},w.prototype._flush=function(x){var E=this;this.processor.flush().then(function(T){if(T.length>0)return E.result.processResult(T)}).then(function(){E.processEnd(x)},function(T){E.emit("error",T),x()})},w.prototype.processEnd=function(x){this.result.endProcess(),this.emit("done"),x()},Object.defineProperty(w.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),w}(s.Transform);t.Converter=b}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var u,d=1,f={},m=!1,p=o.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(o);b=b&&b.setTimeout?b:o,{}.toString.call(o.process)==="[object process]"?u=function(x){i.nextTick(function(){w(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,E=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=E,x}}()?function(){var x="setImmediate$"+Math.random()+"$",E=function(T){T.source===o&&typeof T.data=="string"&&T.data.indexOf(x)===0&&w(+T.data.slice(x.length))};o.addEventListener?o.addEventListener("message",E,!1):o.attachEvent("onmessage",E),u=function(T){o.postMessage(x+T,"*")}}():o.MessageChannel?function(){var x=new MessageChannel;x.port1.onmessage=function(E){w(E.data)},u=function(E){x.port2.postMessage(E)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var x=p.documentElement;u=function(E){var T=p.createElement("script");T.onreadystatechange=function(){w(E),T.onreadystatechange=null,x.removeChild(T),T=null},x.appendChild(T)}}():u=function(x){setTimeout(w,0,x)},b.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var E=new Array(arguments.length-1),T=0;T<E.length;T++)E[T]=arguments[T+1];var j={callback:x,args:E};return f[d]=j,u(d),d++},b.clearImmediate=_}function _(x){delete f[x]}function w(x){if(m)setTimeout(w,0,x);else{var E=f[x];if(E){m=!0;try{(function(T){var j=T.callback,O=T.args;switch(O.length){case 0:j();break;case 1:j(O[0]);break;case 2:j(O[0],O[1]);break;case 3:j(O[0],O[1],O[2]);break;default:j.apply(s,O)}})(E)}finally{_(x),m=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var u=this;function d(x){o.writable&&o.write(x)===!1&&u.pause&&u.pause()}function f(){u.readable&&u.resume&&u.resume()}u.on("data",d),o.on("drain",f),o._isStdio||s&&s.end===!1||(u.on("end",p),u.on("close",b));var m=!1;function p(){m||(m=!0,o.end())}function b(){m||(m=!0,typeof o.destroy=="function"&&o.destroy())}function _(x){if(w(),r.listenerCount(this,"error")===0)throw x}function w(){u.removeListener("data",d),o.removeListener("drain",f),u.removeListener("end",p),u.removeListener("close",b),u.removeListener("error",_),o.removeListener("error",_),u.removeListener("end",w),u.removeListener("close",w),o.removeListener("close",w)}return u.on("error",_),o.on("error",_),u.on("end",w),u.on("close",w),o.on("close",w),o.emit("pipe",u),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(b){var _=f(b),w=_[0],x=_[1];return 3*(w+x)/4-x},t.toByteArray=function(b){for(var _,w=f(b),x=w[0],E=w[1],T=new o(3*(x+E)/4-E),j=0,O=E>0?x-4:x,N=0;N<O;N+=4)_=i[b.charCodeAt(N)]<<18|i[b.charCodeAt(N+1)]<<12|i[b.charCodeAt(N+2)]<<6|i[b.charCodeAt(N+3)],T[j++]=_>>16&255,T[j++]=_>>8&255,T[j++]=255&_;return E===2&&(_=i[b.charCodeAt(N)]<<2|i[b.charCodeAt(N+1)]>>4,T[j++]=255&_),E===1&&(_=i[b.charCodeAt(N)]<<10|i[b.charCodeAt(N+1)]<<4|i[b.charCodeAt(N+2)]>>2,T[j++]=_>>8&255,T[j++]=255&_),T},t.fromByteArray=function(b){for(var _,w=b.length,x=w%3,E=[],T=0,j=w-x;T<j;T+=16383)E.push(p(b,T,T+16383>j?j:T+16383));return x===1?(_=b[w-1],E.push(r[_>>2]+r[_<<4&63]+"==")):x===2&&(_=(b[w-2]<<8)+b[w-1],E.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),E.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,d=s.length;u<d;++u)r[u]=s[u],i[s.charCodeAt(u)]=u;function f(b){var _=b.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=b.indexOf("=");return w===-1&&(w=_),[w,w===_?0:4-w%4]}function m(b){return r[b>>18&63]+r[b>>12&63]+r[b>>6&63]+r[63&b]}function p(b,_,w){for(var x,E=[],T=_;T<w;T+=3)x=(b[T]<<16&16711680)+(b[T+1]<<8&65280)+(255&b[T+2]),E.push(m(x));return E.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,s){var u,d,f=8*s-o-1,m=(1<<f)-1,p=m>>1,b=-7,_=i?s-1:0,w=i?-1:1,x=n[r+_];for(_+=w,u=x&(1<<-b)-1,x>>=-b,b+=f;b>0;u=256*u+n[r+_],_+=w,b-=8);for(d=u&(1<<-b)-1,u>>=-b,b+=o;b>0;d=256*d+n[r+_],_+=w,b-=8);if(u===0)u=1-p;else{if(u===m)return d?NaN:1/0*(x?-1:1);d+=Math.pow(2,o),u-=p}return(x?-1:1)*d*Math.pow(2,u-o)},t.write=function(n,r,i,o,s,u){var d,f,m,p=8*u-s-1,b=(1<<p)-1,_=b>>1,w=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=o?0:u-1,E=o?1:-1,T=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,d=b):(d=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-d))<1&&(d--,m*=2),(r+=d+_>=1?w/m:w*Math.pow(2,1-_))*m>=2&&(d++,m/=2),d+_>=b?(f=0,d=b):d+_>=1?(f=(r*m-1)*Math.pow(2,s),d+=_):(f=r*Math.pow(2,_-1)*Math.pow(2,s),d=0));s>=8;n[i+x]=255&f,x+=E,f/=256,s-=8);for(d=d<<s|f,p+=s;p>0;n[i+x]=255&d,x+=E,d/=256,p-=8);n[i+x-E]|=128*T}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,u,d){s.copy(u,d)}e.exports=function(){function s(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(u){var d={data:u,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},s.prototype.unshift=function(u){var d={data:u,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},s.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(u){if(this.length===0)return"";for(var d=this.head,f=""+d.data;d=d.next;)f+=u+d.data;return f},s.prototype.concat=function(u){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var d=r.allocUnsafe(u>>>0),f=this.head,m=0;f;)o(f.data,d,m),m+=f.data.length,f=f.next;return d},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var u=!1;return function(){if(!u){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),u=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,u,d){d(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,j){T.__proto__=j}||function(T,j){for(var O in j)j.hasOwnProperty(O)&&(T[O]=j[O])};return function(T,j){function O(){this.constructor=T}E(T,j),T.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}}(),o=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),u=o(n(15)),d=n(54),f=o(n(16)),m=n(57),p=n(28),b=n(58),_=o(n(59)),w=o(n(29)),x=function(E){function T(){var j=E!==null&&E.apply(this,arguments)||this;return j.rowSplit=new b.RowSplit(j.converter),j.eolEmitted=!1,j._needEmitEol=void 0,j.headEmitted=!1,j._needEmitHead=void 0,j}return i(T,E),T.prototype.flush=function(){var j=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var O=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(O,!0).then(function(N){return j.runtime.csvLineBuffer&&j.runtime.csvLineBuffer.length>0?u.default.reject(w.default.unclosed_quote(j.runtime.parsedLineNumber,j.runtime.csvLineBuffer.toString())):u.default.resolve(N)})}return u.default.resolve([])},T.prototype.destroy=function(){return u.default.resolve()},Object.defineProperty(T.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(T.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),T.prototype.process=function(j,O){var N,F=this;return O===void 0&&(O=!1),N=O?j.toString():d.prepareData(j,this.converter.parseRuntime),u.default.resolve().then(function(){return F.runtime.preRawDataHook?F.runtime.preRawDataHook(N):N}).then(function($){return $&&$.length>0?F.processCSV($,O):u.default.resolve([])})},T.prototype.processCSV=function(j,O){var N=this,F=this.params,$=this.runtime;$.eol||f.default(j,$),this.needEmitEol&&!this.eolEmitted&&$.eol&&(this.converter.emit("eol",$.eol),this.eolEmitted=!0),F.ignoreEmpty&&!$.started&&(j=p.trimLeft(j));var K=m.stringToLines(j,$);return O?(K.lines.push(K.partial),K.partial=""):this.prependLeftBuf(p.bufFromString(K.partial)),K.lines.length>0?($.preFileLineHook?this.runPreLineHook(K.lines):u.default.resolve(K.lines)).then(function(Q){return $.started||N.runtime.headers?N.processCSVBody(Q):N.processDataWithHead(Q)}):u.default.resolve([])},T.prototype.processDataWithHead=function(j){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var O="",N=[];j.length;){var F=O+j.shift(),$=this.rowSplit.parse(F);if($.closed){N=$.cells,O="";break}O=F+f.default(F,this.runtime)}if(this.prependLeftBuf(p.bufFromString(O)),N.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=N}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(j)},T.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var j=this.runtime.headers,O=0;O<j.length;O++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(j[O])){if(!this.params.includeColumns||!this.params.includeColumns.test(j[O]))continue;this.runtime.selectedColumns.push(O)}else this.runtime.selectedColumns.push(O);else this.params.includeColumns?this.params.includeColumns.test(j[O])&&this.runtime.selectedColumns.push(O):this.runtime.selectedColumns.push(O);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},T.prototype.processCSVBody=function(j){if(this.params.output==="line")return j;var O=this.rowSplit.parseMultiLines(j);return this.prependLeftBuf(p.bufFromString(O.partial)),this.params.output==="csv"?O.rowsCells:_.default(O.rowsCells,this.converter)},T.prototype.prependLeftBuf=function(j){j&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([j,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=j)},T.prototype.runPreLineHook=function(j){var O=this;return new u.default(function(N,F){(function $(K,Q,oe,ee){if(oe>=K.length)ee();else if(Q.preFileLineHook){var J=K[oe],te=Q.preFileLineHook(J,Q.parsedLineNumber+oe);if(oe++,te&&te.then)te.then(function(he){K[oe-1]=he,$(K,Q,oe,ee)});else{for(K[oe-1]=te;oe<K.length;)K[oe]=Q.preFileLineHook(K[oe],Q.parsedLineNumber+oe),oe++;ee()}}else ee()})(j,O.runtime,0,function($){$?F($):N(j)})})},T}(s.Processor);t.ProcessorLocal=x}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(s,u){var d=function(m,p){return p.csvLineBuffer&&p.csvLineBuffer.length>0?r.concat([p.csvLineBuffer,m]):m}(s,u);u.csvLineBuffer=void 0;var f=function(m,p){var b=m.length-1;if((128&m[b])!=0){for(;(192&m[b])==128;)b--;b--}return b!=m.length-1?(p.csvLineBuffer=m.slice(b+1),m.slice(0,b+1)):m}(d,u).toString("utf8");return u.started===!1?o.default(f):f}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,s){var u=i.default(o,s),d=o.split(u);return{lines:d,partial:d.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),s=[",","|"," ",";",":"],u=function(){function d(f){this.conv=f,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=f.parseParam.quote,this.trim=f.parseParam.trim,this.escape=f.parseParam.escape}return Object.defineProperty(d.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),d.prototype.parse=function(f){if(f.length===0||this.conv.parseParam.ignoreEmpty&&f.trim().length===0)return{cells:[],closed:!0};var m=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(f)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var b=this.conv.parseRuntime.delimiter,_=f.split(b);if(m==="off"){if(p)for(var w=0;w<_.length;w++)_[w]=_[w].trim();return{cells:_,closed:!0}}return this.toCSVRow(_,p,m,b)},d.prototype.toCSVRow=function(f,m,p,b){for(var _=[],w=!1,x="",E=0,T=f.length;E<T;E++){var j=f[E];!w&&m&&(j=o.trimLeft(j));var O=j.length;if(w)this.isQuoteClose(j)?(w=!1,x+=b+(j=j.substr(0,O-1)),x=this.escapeQuote(x),m&&(x=o.trimRight(x)),_.push(x),x=""):x+=b+j;else{if(O===2&&j===this.quote+this.quote){_.push("");continue}if(this.isQuoteOpen(j)){if(j=j.substr(1),this.isQuoteClose(j)){j=j.substring(0,j.lastIndexOf(p)),j=this.escapeQuote(j),_.push(j);continue}if(j.indexOf(p)!==-1){for(var N=0,F="",$=0,K=j;$<K.length;$++){var Q=K[$];Q===p&&F!==this.escape?(N++,F=""):F=Q}if(N%2==1){m&&(j=o.trimRight(j)),_.push(p+j);continue}w=!0,x+=j;continue}w=!0,x+=j;continue}m&&(j=o.trimRight(j)),_.push(j)}}return{cells:_,closed:!w}},d.prototype.getDelimiter=function(f){var m;if(this.conv.parseParam.delimiter==="auto")m=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;m=this.conv.parseParam.delimiter}var p=0,b=",";return m.forEach(function(_){var w=f.split(_).length;w>p&&(b=_,p=w)}),b},d.prototype.isQuoteOpen=function(f){var m=this.quote,p=this.escape;return f[0]===m&&(f[1]!==m||f[1]===p&&(f[2]===m||f.length===2))},d.prototype.isQuoteClose=function(f){var m=this.quote,p=this.escape;this.conv.parseParam.trim&&(f=o.trimRight(f));for(var b=0,_=f.length-1;f[_]===m||f[_]===p;)_--,b++;return b%2!=0},d.prototype.escapeQuote=function(f){var m="es|"+this.quote+"|"+this.escape;this.cachedRegExp[m]===void 0&&(this.cachedRegExp[m]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[m];return f.replace(p,this.quote)},d.prototype.parseMultiLines=function(f){for(var m=[],p="";f.length;){var b=p+f.shift(),_=this.parse(b);_.cells.length===0&&this.conv.parseParam.ignoreEmpty||(_.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?m.push(o.filterArray(_.cells,this.conv.parseRuntime.selectedColumns)):m.push(_.cells),p=""):p=b+(i.default(b,this.conv.parseRuntime)||`
`))}return{rowsCells:m,partial:p}},d}();t.RowSplit=u},function(e,t,n){var r=this&&this.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function u(T,j,O){if(j.parseParam.checkColumn&&j.parseRuntime.headers&&T.length!==j.parseRuntime.headers.length)throw i.default.column_mismatched(j.parseRuntime.parsedLineNumber+O);return function(N,F,$){for(var K=!1,Q={},oe=0,ee=N.length;oe<ee;oe++){var J=N[oe];if(!$.parseParam.ignoreEmpty||J!==""){K=!0;var te=F[oe];te&&te!==""||(te=F[oe]="field"+(oe+1));var he=f(te,oe,$);if(he){var X=he(J,te,Q,N,oe);X!==void 0&&m(Q,te,X,$,oe)}else $.parseParam.checkType&&(J=_(J,te,oe,$)(J)),J!==void 0&&m(Q,te,J,$,oe)}}return K?Q:null}(T,j.parseRuntime.headers||[],j)||null}t.default=function(T,j){for(var O=[],N=0,F=T.length;N<F;N++){var $=u(T[N],j,N);$&&O.push($)}return O};var d={string:x,number:w,omit:function(){}};function f(T,j,O){if(O.parseRuntime.columnConv[j]!==void 0)return O.parseRuntime.columnConv[j];var N=O.parseParam.colParser[T];if(N===void 0)return O.parseRuntime.columnConv[j]=null;if(typeof N=="object"&&(N=N.cellParser||"string"),typeof N=="string"){N=N.trim().toLowerCase();var F=d[N];return O.parseRuntime.columnConv[j]=F||null}return O.parseRuntime.columnConv[j]=typeof N=="function"?N:null}function m(T,j,O,N,F){if(!N.parseRuntime.columnValueSetter[F])if(N.parseParam.flatKeys)N.parseRuntime.columnValueSetter[F]=p;else if(j.indexOf(".")>-1){for(var $=j.split("."),K=!0;$.length>0;)if($.shift().length===0){K=!1;break}!K||N.parseParam.colParser[j]&&N.parseParam.colParser[j].flat?N.parseRuntime.columnValueSetter[F]=p:N.parseRuntime.columnValueSetter[F]=b}else N.parseRuntime.columnValueSetter[F]=p;N.parseParam.nullObject===!0&&O==="null"&&(O=null),N.parseRuntime.columnValueSetter[F](T,j,O)}function p(T,j,O){T[j]=O}function b(T,j,O){o.default(T,j,O)}function _(T,j,O,N){return N.parseRuntime.headerType[O]?N.parseRuntime.headerType[O]:j.indexOf("number#!")>-1?N.parseRuntime.headerType[O]=w:j.indexOf("string#!")>-1?N.parseRuntime.headerType[O]=x:N.parseParam.checkType?N.parseRuntime.headerType[O]=E:N.parseRuntime.headerType[O]=x}function w(T){var j=parseFloat(T);return isNaN(j)?T:j}function x(T){return T.toString()}function E(T){var j=T.trim();return j===""?x(T):s.test(j)?w(T):j.length===5&&j.toLowerCase()==="false"||j.length===4&&j.toLowerCase()==="true"?function(O){var N=O.trim();return N.length!==5||N.toLowerCase()!=="false"}(T):j[0]==="{"&&j[j.length-1]==="}"||j[0]==="["&&j[j.length-1]==="]"?function(O){try{return JSON.parse(O)}catch{return O}}(T):x(T)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),u=n(104);e.exports=function(d,f,m,p){if(!s(d))return d;for(var b=-1,_=(f=i(f,d)).length,w=_-1,x=d;x!=null&&++b<_;){var E=u(f[b]),T=m;if(b!=w){var j=x[E];(T=p?p(j,E,x):void 0)===void 0&&(T=s(j)?j:o(f[b+1])?[]:{})}r(x,E,T),x=x[E]}return d}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(s,u,d){var f=s[u];o.call(s,u)&&i(f,d)&&(d!==void 0||u in s)||r(s,u,d)}},function(e,t,n){var r=n(64);e.exports=function(i,o,s){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[o]=s}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),s=n(72),u=/^\[object .+?Constructor\]$/,d=Function.prototype,f=Object.prototype,m=d.toString,p=f.hasOwnProperty,b=RegExp("^"+m.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(_){return!(!o(_)||i(_))&&(r(_)?b:u).test(s(_))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var s=r(o);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,u=r?r.toStringTag:void 0;e.exports=function(d){var f=o.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var b=s.call(d);return p&&(f?d[u]=m:delete d[u]),b}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n?.[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),s=n(100);e.exports=function(u,d){return r(u)?u:i(u,d)?[u]:o(s(u))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(u,d){if(r(u))return!1;var f=typeof u;return!(f!="number"&&f!="symbol"&&f!="boolean"&&u!=null&&!i(u))||s.test(u)||!o.test(u)||d!=null&&u in Object(d)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(r,function(d,f,m,p){u.push(m?p.replace(i,"$1"):f||d)}),u});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(u){return s.size===500&&s.clear(),u}),s=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new TypeError(i);var d=function(){var f=arguments,m=u?u.apply(this,f):f[0],p=d.cache;if(p.has(m))return p.get(m);var b=s.apply(this,f);return d.cache=p.set(m,b)||p,b};return d.cache=new(o.Cache||r),d}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),s=n(98),u=n(99);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),s=n(86),u=n(87);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;if(r){var u=s[o];return u==="__lodash_hash_undefined__"?void 0:u}return i.call(s,o)?s[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;return r?s[o]!==void 0:i.call(s,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),s=n(92),u=n(93);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var s=this.__data__,u=r(s,o);return!(u<0||(u==s.length-1?s.pop():i.call(s,u,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,s=r(o,i);return s<0?void 0:o[s][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,u=r(s,i);return u<0?(++this.size,s.push([i,o])):s[u][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),u=s.size;return s.set(i,o),this.size+=s.size==u?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),u=r?r.prototype:void 0,d=u?u.toString:void 0;e.exports=function f(m){if(typeof m=="string")return m;if(o(m))return i(m,f)+"";if(s(m))return d?d.call(m):"";var p=m+"";return p=="0"&&1/m==-1/0?"-0":p}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i<o;)s[i]=r(n[i],i,n);return s}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),s=function(){function d(f){this.converter=f,this.finalResult=[]}return Object.defineProperty(d.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),d.prototype.processResult=function(f){var m=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&u(this.converter,"["+o.EOL),new i.default(function(b,_){m.needEmitLine?function w(x,E,T,j,O){if(T>=x.length)O();else if(E.parseRuntime.subscribe&&E.parseRuntime.subscribe.onNext){var N=E.parseRuntime.subscribe.onNext,F=x[T],$=N(F,E.parseRuntime.parsedLineNumber+T);if(T++,$&&$.then)$.then(function(){(function(Q,oe,ee,J,te,he,X){te&&u(ee,X),w(Q,ee,J,te,he)})(x,0,E,T,j,O,F)},O);else{for(j&&u(E,F);T<x.length;){var K=x[T];N(K,E.parseRuntime.parsedLineNumber+T),T++,j&&u(E,K)}O()}}else{if(j)for(;T<x.length;)K=x[T++],u(E,K);O()}}(f,m.converter,0,m.needPushDownstream,function(w){w?_(w):(m.appendFinalResult(f),b())}):(m.appendFinalResult(f),b())})},d.prototype.appendFinalResult=function(f){this.needEmitAll&&(this.finalResult=this.finalResult.concat(f)),this.converter.parseRuntime.parsedLineNumber+=f.length},d.prototype.processError=function(f){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(f),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(f)},d.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"&&u(this.converter,"]"+o.EOL)},d}();function u(d,f){if(typeof f!="object"||d.options.objectMode)d.push(f);else{var m=JSON.stringify(f);d.push(m+(d.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=s},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"/"}}])),cx}var W_e=Y_e();const K_e=oa(W_e),Z_e=e=>new Promise(t=>{K_e().fromString(e).then(t)}),X_e=new kN,Q_e=e=>X_e.parse(e),J_e="shlink",uR=e=>`${J_e}.${e}`;class exe{constructor(t){this.localStorage=t}get=t=>{const n=this.localStorage.getItem(uR(t));return n?JSON.parse(n):void 0};set=(t,n)=>this.localStorage.setItem(uR(t),JSON.stringify(n))}class txe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const nxe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",exe,"localStorage"),e.service("TagColorsStorage",txe,"Storage"),e.constant("csvToJson",Z_e),e.constant("jsonToCsv",Q_e),e.serviceFactory("useTimeoutToggle",()=>sy)},Wu=new HR,{container:_3}=Wu,rxe=(e,t)=>(...n)=>e[t](...n),ixe=(e,t)=>({...e,[t]:rxe(_3,t)}),axe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),n0=(e,t=[])=>yR(e?axe(e):null,t.reduce(ixe,{}));lX(Wu,n0);Jbe(Wu,n0);P$(Wu);z_e(Wu,n0);nxe(Wu);G_e(Wu,n0);var fx={},_g={exports:{}},cR;function oxe(){return cR||(cR=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return r.apply(void 0,f)}t.main=n,n.clone=o,n.isPlainObject=s,n.recursive=i;function r(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return d(f[0]===!0,!1,f)}t.merge=r;function i(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return d(f[0]===!0,!0,f)}t.recursive=i;function o(f){if(Array.isArray(f)){for(var m=[],p=0;p<f.length;++p)m.push(o(f[p]));return m}else if(s(f)){var m={};for(var p in f)m[p]=o(f[p]);return m}else return f}t.clone=o;function s(f){return f&&typeof f=="object"&&!Array.isArray(f)}t.isPlainObject=s;function u(f,m){if(!s(f))return m;for(var p in m)p==="__proto__"||p==="constructor"||p==="prototype"||(f[p]=s(f[p])&&s(m[p])?u(f[p],m[p]):m[p]);return f}function d(f,m,p){var b;(f||!s(b=p.shift()))&&(b={});for(var _=0;_<p.length;++_){var w=p[_];if(s(w)){for(var x in w)if(!(x==="__proto__"||x==="constructor"||x==="prototype")){var E=f?o(w[x]):w[x];b[x]=m?u(b[x],E):E}}}return b}}(_g,_g.exports)),_g.exports}var fR;function sxe(){return fR||(fR=1,function(e){var t=n(oxe());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=he,e.combineLoads=te,e.load=J,e.save=ee;function n(U){return U&&U.__esModule?U:{default:U}}function r(U,z){return d(U)||u(U,z)||o(U,z)||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(U,z){if(U){if(typeof U=="string")return s(U,z);var P=Object.prototype.toString.call(U).slice(8,-1);return P==="Object"&&U.constructor&&(P=U.constructor.name),P==="Map"||P==="Set"?Array.from(U):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?s(U,z):void 0}}function s(U,z){(z==null||z>U.length)&&(z=U.length);for(var P=0,G=Array(z);P<z;P++)G[P]=U[P];return G}function u(U,z){var P=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(P!=null){var G,Y,ne=[],ue=!0,fe=!1;try{for(P=P.call(U);!(ue=(G=P.next()).done)&&(ne.push(G.value),!(z&&ne.length===z));ue=!0);}catch(ge){fe=!0,Y=ge}finally{try{ue||P.return==null||P.return()}finally{if(fe)throw Y}}return ne}}function d(U){if(Array.isArray(U))return U}function f(U){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},f(U)}function m(U,z,P){return z in U?Object.defineProperty(U,z,{value:P,enumerable:!0,configurable:!0,writable:!0}):U[z]=P,U}var p="[Redux-LocalStorage-Simple]",b="redux_localstorage_simple",_="_",w=[],x=[],E=0,T=!1,j=!1,O=new Map;function N(U){console.warn(p,U)}function F(){}var $=function(U){return U?F:N};function K(U,z){return z===void 0?null:U.length===1?z[U[0]]:K(U.slice(1),z[U[0]])}function Q(U){function z(G,Y){return G.length===0?Y:z(G.slice(1),m({},G[0],Y))}var P=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return z(U.split(".").reverse(),P)}function oe(U){this.warnFn=U||N}Object.defineProperty(oe.prototype,"length",{get:function(){try{return localStorage.length}catch(U){this.warnFn(U)}return 0},configurable:!0,enumerable:!0}),oe.prototype.key=function(U){try{return localStorage.key(U)}catch(z){this.warnFn(z)}return null},oe.prototype.setItem=function(U,z){try{localStorage.setItem(U,JSON.stringify(z))}catch(P){this.warnFn(P)}},oe.prototype.getItem=function(U){try{return JSON.parse(localStorage.getItem(U))}catch(z){this.warnFn(z)}return null},oe.prototype.removeItem=function(U){try{localStorage.removeItem(U)}catch(z){this.warnFn(z)}};function ee(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},z=U.states,P=z===void 0?w:z,G=U.ignoreStates,Y=G===void 0?x:G,ne=U.namespace,ue=ne===void 0?b:ne,fe=U.namespaceSeparator,ge=fe===void 0?_:fe,D=U.debounce,B=D===void 0?E:D,W=U.disableWarnings,le=W===void 0?j:W;return function(H){return function(ae){return function(ce){function ve(Fe,He){return 1<Fe.split(".").length?K(Fe.split("."),He):K([Fe],He)}function de(){P.length===0?Ve.setItem(ue,we):P.forEach(function(Fe){var He=ue+ge+Fe,be=ve(Fe,we);be?Ve.setItem(He,be):Ve.removeItem(He)})}var we,Ae=$(le),Ne=ae(ce);X(P)||(console.error(p,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),P=w),X(Y)||(console.error(p,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),Y=x),0<Y.length&&(Y=Y.filter(function(Fe){return se(Fe)?Fe:void console.error(p,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),se(ue)||(console.error(p,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ue=b),se(ge)||(console.error(p,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ge=_),Z(B)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),B=E),we=0<Y.length?k(Y,H.getState()):H.getState();var Ve=new oe(Ae);return B?(O.get(P+ue)&&clearTimeout(O.get(P+ue)),O.set(P+ue,setTimeout(function(){de()},B))):de(),Ne}}}}function J(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},z=U.states,P=z===void 0?w:z,G=U.immutablejs,Y=G===void 0?T:G,ne=U.namespace,ue=ne===void 0?b:ne,fe=U.namespaceSeparator,ge=fe===void 0?_:fe,D=U.preloadedState,B=D===void 0?{}:D,W=U.disableWarnings,le=W===void 0?j:W,H=$(le);X(P)||(console.error(p,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),P=w),se(ue)||(console.error(p,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ue=b),se(ge)||(console.error(p,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ge=_),Y===!0&&H("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 ae=new oe(H),ce=B;if(P.length===0){var ve=ae.getItem(ue);ve&&(ce=ve)}else P.forEach(function(de){var we=ue+ge+de,Ae=ae.getItem(we);Ae?ce=t.default.recursive(ce,Q(de,Ae)):H("Invalid load '"+we+"' 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 ce}function te(){for(var U={},z=arguments.length,P=Array(z),G=0;G<z;G++)P[G]=arguments[G];return P.forEach(function(Y){for(var ne in I(Y)||(console.error(p,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),Y={}),Y)U[ne]=Y[ne]}),U}function he(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},z=U.namespace,P=z===void 0?b:z,G=U.disableWarnings,Y=G===void 0?j:G,ne=$(Y);se(P)||(console.error(p,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),P=b);for(var ue,fe=new oe(ne),ge=fe.length,D=0;D<ge;D++)ue=fe.key(D),ue&&ue.slice(0,P.length)===P&&fe.removeItem(ue)}function X(U){return Object.prototype.toString.call(U)==="[object Array]"}function se(U){return typeof U=="string"}function Z(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function I(U){return U!==null&&f(U)==="object"}function k(U,z){var P=Object.entries(z).reduce(function(G,Y){var ne=r(Y,2),ue=ne[0];return ne[1],U.indexOf(ue)===-1&&(G[ue]=z[ue]),G},{});return P}}(fx)),fx}var oU=sxe();const lxe=e=>cy({appUpdated:sX,servers:w_e,selectedServer:e.selectedServerReducer,settings:H_e}),uxe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),sU={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},cxe=uxe(oU.load(sU)),fxe=e=>kw({devTools:!1,reducer:lxe(e),preloadedState:cxe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(oU.save(sU))}),dxe=!!(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 hxe(e){if("serviceWorker"in navigator){if(new URL(kg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${kg.homepage}/service-worker.js`;dxe?(mxe(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):lU(n,e)})}}function lU(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function mxe(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):lU(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const uU=fxe(_3),{App:pxe,ScrollToTop:gxe,ErrorHandler:vxe,appUpdateAvailable:yxe}=_3;Dz.createRoot(document.getElementById("root")).render(y.jsx(H2,{store:uU,children:y.jsx(PR,{basename:kg.homepage,children:y.jsx(vxe,{children:y.jsx(gxe,{children:y.jsx(pxe,{})})})})}));hxe({onUpdate(){uU.dispatch(yxe())}});