mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-01 13:16:42 +00:00
814 lines
1.5 MiB
814 lines
1.5 MiB
var bH=Object.defineProperty;var xP=e=>{throw TypeError(e)};var _H=(e,t,n)=>t in e?bH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hc=(e,t,n)=>_H(e,typeof t!="symbol"?t+"":t,n),wP=(e,t,n)=>t.has(e)||xP("Cannot "+n);var Oh=(e,t,n)=>(wP(e,t,"read from private field"),n?n.call(e):t.get(e)),Eh=(e,t,n)=>t.has(e)?xP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Th=(e,t,n,r)=>(wP(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function xH(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 a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var uv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z_={exports:{}},jh={};/**
|
||
* @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 SP;function wH(){if(SP)return jh;SP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return jh.Fragment=t,jh.jsx=n,jh.jsxs=n,jh}var CP;function SH(){return CP||(CP=1,z_.exports=wH()),z_.exports}var y=SH(),$_={exports:{}},Ph={},F_={exports:{}},q_={};/**
|
||
* @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 AP;function CH(){return AP||(AP=1,function(e){function t(H,B){var U=H.length;H.push(B);e:for(;0<U;){var F=U-1>>>1,M=H[F];if(0<i(M,B))H[F]=B,H[U]=M,U=F;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var B=H[0],U=H.pop();if(U!==B){H[0]=U;e:for(var F=0,M=H.length,k=M>>>1;F<k;){var J=2*(F+1)-1,W=H[J],ie=J+1,fe=H[ie];if(0>i(W,U))ie<M&&0>i(fe,W)?(H[F]=fe,H[ie]=U,F=ie):(H[F]=W,H[J]=U,F=J);else if(ie<M&&0>i(fe,U))H[F]=fe,H[ie]=U,F=ie;else break e}}return B}function i(H,B){var U=H.sortIndex-B.sortIndex;return U!==0?U:H.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var f=[],c=[],p=1,m=null,v=3,x=!1,w=!1,_=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function P(H){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=H)r(c),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(c)}}function j(H){if(_=!1,P(H),!w)if(n(f)!==null)w=!0,R||(R=!0,te());else{var B=n(c);B!==null&&ne(j,B.startTime-H)}}var R=!1,$=-1,V=5,X=-1;function Z(){return S?!0:!(e.unstable_now()-X<V)}function Y(){if(S=!1,R){var H=e.unstable_now();X=H;var B=!0;try{e:{w=!1,_&&(_=!1,O($),$=-1),x=!0;var U=v;try{t:{for(P(H),m=n(f);m!==null&&!(m.expirationTime>H&&Z());){var F=m.callback;if(typeof F=="function"){m.callback=null,v=m.priorityLevel;var M=F(m.expirationTime<=H);if(H=e.unstable_now(),typeof M=="function"){m.callback=M,P(H),B=!0;break t}m===n(f)&&r(f),P(H)}else r(f);m=n(f)}if(m!==null)B=!0;else{var k=n(c);k!==null&&ne(j,k.startTime-H),B=!1}}break e}finally{m=null,v=U,x=!1}B=void 0}}finally{B?te():R=!1}}}var te;if(typeof T=="function")te=function(){T(Y)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,Q=ae.port2;ae.port1.onmessage=Y,te=function(){Q.postMessage(null)}}else te=function(){C(Y,0)};function ne(H,B){$=C(function(){H(e.unstable_now())},B)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(H){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var U=v;v=B;try{return H()}finally{v=U}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(H,B){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var U=v;v=H;try{return B()}finally{v=U}},e.unstable_scheduleCallback=function(H,B,U){var F=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?F+U:F):U=F,H){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=U+M,H={id:p++,callback:B,priorityLevel:H,startTime:U,expirationTime:M,sortIndex:-1},U>F?(H.sortIndex=U,t(c,H),n(f)===null&&H===n(c)&&(_?(O($),$=-1):_=!0,ne(j,U-F))):(H.sortIndex=M,t(f,H),w||x||(w=!0,R||(R=!0,te()))),H},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(H){var B=v;return function(){var U=v;v=B;try{return H.apply(this,arguments)}finally{v=U}}}}(q_)),q_}var OP;function AH(){return OP||(OP=1,F_.exports=CH()),F_.exports}var V_={exports:{}},Ct={};/**
|
||
* @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 EP;function OH(){if(EP)return Ct;EP=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"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=m&&M[m]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function S(M,k,J){this.props=M,this.context=k,this.refs=_,this.updater=J||x}S.prototype.isReactComponent={},S.prototype.setState=function(M,k){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,k,"setState")},S.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function C(){}C.prototype=S.prototype;function O(M,k,J){this.props=M,this.context=k,this.refs=_,this.updater=J||x}var T=O.prototype=new C;T.constructor=O,w(T,S.prototype),T.isPureReactComponent=!0;var P=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function $(M,k,J,W,ie,fe){return J=fe.ref,{$$typeof:e,type:M,key:k,ref:J!==void 0?J:null,props:fe}}function V(M,k){return $(M.type,k,void 0,void 0,void 0,M.props)}function X(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Z(M){var k={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(J){return k[J]})}var Y=/\/+/g;function te(M,k){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):k.toString(36)}function ae(){}function Q(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(ae,ae):(M.status="pending",M.then(function(k){M.status==="pending"&&(M.status="fulfilled",M.value=k)},function(k){M.status==="pending"&&(M.status="rejected",M.reason=k)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function ne(M,k,J,W,ie){var fe=typeof M;(fe==="undefined"||fe==="boolean")&&(M=null);var ce=!1;if(M===null)ce=!0;else switch(fe){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(M.$$typeof){case e:case t:ce=!0;break;case p:return ce=M._init,ne(ce(M._payload),k,J,W,ie)}}if(ce)return ie=ie(M),ce=W===""?"."+te(M,0):W,P(ie)?(J="",ce!=null&&(J=ce.replace(Y,"$&/")+"/"),ne(ie,k,J,"",function(q){return q})):ie!=null&&(X(ie)&&(ie=V(ie,J+(ie.key==null||M&&M.key===ie.key?"":(""+ie.key).replace(Y,"$&/")+"/")+ce)),k.push(ie)),1;ce=0;var ye=W===""?".":W+":";if(P(M))for(var z=0;z<M.length;z++)W=M[z],fe=ye+te(W,z),ce+=ne(W,k,J,fe,ie);else if(z=v(M),typeof z=="function")for(M=z.call(M),z=0;!(W=M.next()).done;)W=W.value,fe=ye+te(W,z++),ce+=ne(W,k,J,fe,ie);else if(fe==="object"){if(typeof M.then=="function")return ne(Q(M),k,J,W,ie);throw k=String(M),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ce}function H(M,k,J){if(M==null)return M;var W=[],ie=0;return ne(M,W,"","",function(fe){return k.call(J,fe,ie++)}),W}function B(M){if(M._status===-1){var k=M._result;k=k(),k.then(function(J){(M._status===0||M._status===-1)&&(M._status=1,M._result=J)},function(J){(M._status===0||M._status===-1)&&(M._status=2,M._result=J)}),M._status===-1&&(M._status=0,M._result=k)}if(M._status===1)return M._result.default;throw M._result}var U=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function F(){}return Ct.Children={map:H,forEach:function(M,k,J){H(M,function(){k.apply(this,arguments)},J)},count:function(M){var k=0;return H(M,function(){k++}),k},toArray:function(M){return H(M,function(k){return k})||[]},only:function(M){if(!X(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ct.Component=S,Ct.Fragment=n,Ct.Profiler=i,Ct.PureComponent=O,Ct.StrictMode=r,Ct.Suspense=f,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(M){return j.H.useMemoCache(M)}},Ct.cache=function(M){return function(){return M.apply(null,arguments)}},Ct.cloneElement=function(M,k,J){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var W=w({},M.props),ie=M.key,fe=void 0;if(k!=null)for(ce in k.ref!==void 0&&(fe=void 0),k.key!==void 0&&(ie=""+k.key),k)!R.call(k,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&k.ref===void 0||(W[ce]=k[ce]);var ce=arguments.length-2;if(ce===1)W.children=J;else if(1<ce){for(var ye=Array(ce),z=0;z<ce;z++)ye[z]=arguments[z+2];W.children=ye}return $(M.type,ie,void 0,void 0,fe,W)},Ct.createContext=function(M){return M={$$typeof:s,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:a,_context:M},M},Ct.createElement=function(M,k,J){var W,ie={},fe=null;if(k!=null)for(W in k.key!==void 0&&(fe=""+k.key),k)R.call(k,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ie[W]=k[W]);var ce=arguments.length-2;if(ce===1)ie.children=J;else if(1<ce){for(var ye=Array(ce),z=0;z<ce;z++)ye[z]=arguments[z+2];ie.children=ye}if(M&&M.defaultProps)for(W in ce=M.defaultProps,ce)ie[W]===void 0&&(ie[W]=ce[W]);return $(M,fe,void 0,void 0,null,ie)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(M){return{$$typeof:u,render:M}},Ct.isValidElement=X,Ct.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:B}},Ct.memo=function(M,k){return{$$typeof:c,type:M,compare:k===void 0?null:k}},Ct.startTransition=function(M){var k=j.T,J={};j.T=J;try{var W=M(),ie=j.S;ie!==null&&ie(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(F,U)}catch(fe){U(fe)}finally{j.T=k}},Ct.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Ct.use=function(M){return j.H.use(M)},Ct.useActionState=function(M,k,J){return j.H.useActionState(M,k,J)},Ct.useCallback=function(M,k){return j.H.useCallback(M,k)},Ct.useContext=function(M){return j.H.useContext(M)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(M,k){return j.H.useDeferredValue(M,k)},Ct.useEffect=function(M,k,J){var W=j.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return W.useEffect(M,k)},Ct.useId=function(){return j.H.useId()},Ct.useImperativeHandle=function(M,k,J){return j.H.useImperativeHandle(M,k,J)},Ct.useInsertionEffect=function(M,k){return j.H.useInsertionEffect(M,k)},Ct.useLayoutEffect=function(M,k){return j.H.useLayoutEffect(M,k)},Ct.useMemo=function(M,k){return j.H.useMemo(M,k)},Ct.useOptimistic=function(M,k){return j.H.useOptimistic(M,k)},Ct.useReducer=function(M,k,J){return j.H.useReducer(M,k,J)},Ct.useRef=function(M){return j.H.useRef(M)},Ct.useState=function(M){return j.H.useState(M)},Ct.useSyncExternalStore=function(M,k,J){return j.H.useSyncExternalStore(M,k,J)},Ct.useTransition=function(){return j.H.useTransition()},Ct.version="19.1.0",Ct}var TP;function N0(){return TP||(TP=1,V_.exports=OH()),V_.exports}var H_={exports:{}},Or={};/**
|
||
* @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 jP;function EH(){if(jP)return Or;jP=1;var e=N0();function t(f){var c="https://react.dev/errors/"+f;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+c+" 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 a(f,c,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:c,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,c){if(f==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Or.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Or.createPortal=function(f,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(f,c,null,p)},Or.flushSync=function(f){var c=s.T,p=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=c,r.p=p,r.d.f()}},Or.preconnect=function(f,c){typeof f=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(f,c))},Or.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Or.preinit=function(f,c){if(typeof f=="string"&&c&&typeof c.as=="string"){var p=c.as,m=u(p,c.crossOrigin),v=typeof c.integrity=="string"?c.integrity:void 0,x=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;p==="style"?r.d.S(f,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:x}):p==="script"&&r.d.X(f,{crossOrigin:m,integrity:v,fetchPriority:x,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Or.preinitModule=function(f,c){if(typeof f=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var p=u(c.as,c.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(f)},Or.preload=function(f,c){if(typeof f=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var p=c.as,m=u(p,c.crossOrigin);r.d.L(f,p,{crossOrigin:m,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Or.preloadModule=function(f,c){if(typeof f=="string")if(c){var p=u(c.as,c.crossOrigin);r.d.m(f,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(f)},Or.requestFormReset=function(f){r.d.r(f)},Or.unstable_batchedUpdates=function(f,c){return f(c)},Or.useFormState=function(f,c,p){return s.H.useFormState(f,c,p)},Or.useFormStatus=function(){return s.H.useHostTransitionStatus()},Or.version="19.1.0",Or}var PP;function EI(){if(PP)return H_.exports;PP=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(),H_.exports=EH(),H_.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 RP;function TH(){if(RP)return Ph;RP=1;var e=AH(),t=N0(),n=EI();function r(o){var l="https://react.dev/errors/"+o;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 #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var l=o,h=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(h=l.return),o=l.return;while(o)}return l.tag===3?h:null}function s(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(a(o)!==o)throw Error(r(188))}function f(o){var l=o.alternate;if(!l){if(l=a(o),l===null)throw Error(r(188));return l!==o?null:o}for(var h=o,b=l;;){var E=h.return;if(E===null)break;var N=E.alternate;if(N===null){if(b=E.return,b!==null){h=b;continue}break}if(E.child===N.child){for(N=E.child;N;){if(N===h)return u(E),o;if(N===b)return u(E),l;N=N.sibling}throw Error(r(188))}if(h.return!==b.return)h=E,b=N;else{for(var re=!1,le=E.child;le;){if(le===h){re=!0,h=E,b=N;break}if(le===b){re=!0,b=E,h=N;break}le=le.sibling}if(!re){for(le=N.child;le;){if(le===h){re=!0,h=N,b=E;break}if(le===b){re=!0,b=N,h=E;break}le=le.sibling}if(!re)throw Error(r(189))}}if(h.alternate!==b)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?o:l}function c(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=c(o),l!==null)return l;o=o.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),T=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function te(o){return o===null||typeof o!="object"?null:(o=Y&&o[Y]||o["@@iterator"],typeof o=="function"?o:null)}var ae=Symbol.for("react.client.reference");function Q(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ae?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case S:return"Profiler";case _:return"StrictMode";case j:return"Suspense";case R:return"SuspenseList";case X:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case x:return"Portal";case T:return(o.displayName||"Context")+".Provider";case O:return(o._context.displayName||"Context")+".Consumer";case P:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case $:return l=o.displayName||null,l!==null?l:Q(o.type)||"Memo";case V:l=o._payload,o=o._init;try{return Q(o(l))}catch{}}return null}var ne=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},F=[],M=-1;function k(o){return{current:o}}function J(o){0>M||(o.current=F[M],F[M]=null,M--)}function W(o,l){M++,F[M]=o.current,o.current=l}var ie=k(null),fe=k(null),ce=k(null),ye=k(null);function z(o,l){switch(W(ce,l),W(fe,o),W(ie,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?Kj(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=Kj(l),o=Zj(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}J(ie),W(ie,o)}function q(){J(ie),J(fe),J(ce)}function ee(o){o.memoizedState!==null&&W(ye,o);var l=ie.current,h=Zj(l,o.type);l!==h&&(W(fe,o),W(ie,h))}function ue(o){fe.current===o&&(J(ie),J(fe)),ye.current===o&&(J(ye),xh._currentValue=U)}var K=Object.prototype.hasOwnProperty,se=e.unstable_scheduleCallback,de=e.unstable_cancelCallback,ve=e.unstable_shouldYield,he=e.unstable_requestPaint,xe=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,Le=e.unstable_ImmediatePriority,He=e.unstable_UserBlockingPriority,Ue=e.unstable_NormalPriority,$e=e.unstable_LowPriority,_e=e.unstable_IdlePriority,we=e.log,De=e.unstable_setDisableYieldValue,Ne=null,Te=null;function Fe(o){if(typeof we=="function"&&De(o),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Ne,o)}catch{}}var Ge=Math.clz32?Math.clz32:st,Qe=Math.log,ft=Math.LN2;function st(o){return o>>>=0,o===0?32:31-(Qe(o)/ft|0)|0}var _t=256,kt=4194304;function Ut(o){var l=o&42;if(l!==0)return l;switch(o&-o){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:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Bt(o,l,h){var b=o.pendingLanes;if(b===0)return 0;var E=0,N=o.suspendedLanes,re=o.pingedLanes;o=o.warmLanes;var le=b&134217727;return le!==0?(b=le&~N,b!==0?E=Ut(b):(re&=le,re!==0?E=Ut(re):h||(h=le&~o,h!==0&&(E=Ut(h))))):(le=b&~N,le!==0?E=Ut(le):re!==0?E=Ut(re):h||(h=b&~o,h!==0&&(E=Ut(h)))),E===0?0:l!==0&&l!==E&&(l&N)===0&&(N=E&-E,h=l&-l,N>=h||N===32&&(h&4194048)!==0)?l:E}function wr(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function Vn(o,l){switch(o){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 cs(){var o=_t;return _t<<=1,(_t&4194048)===0&&(_t=256),o}function ii(){var o=kt;return kt<<=1,(kt&62914560)===0&&(kt=4194304),o}function fs(o){for(var l=[],h=0;31>h;h++)l.push(o);return l}function Ea(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function rc(o,l,h,b,E,N){var re=o.pendingLanes;o.pendingLanes=h,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=h,o.entangledLanes&=h,o.errorRecoveryDisabledLanes&=h,o.shellSuspendCounter=0;var le=o.entanglements,ge=o.expirationTimes,Ee=o.hiddenUpdates;for(h=re&~h;0<h;){var Ie=31-Ge(h),ze=1<<Ie;le[Ie]=0,ge[Ie]=-1;var Pe=Ee[Ie];if(Pe!==null)for(Ee[Ie]=null,Ie=0;Ie<Pe.length;Ie++){var Re=Pe[Ie];Re!==null&&(Re.lane&=-536870913)}h&=~ze}b!==0&&ds(o,b,0),N!==0&&E===0&&o.tag!==0&&(o.suspendedLanes|=N&~(re&~l))}function ds(o,l,h){o.pendingLanes|=l,o.suspendedLanes&=~l;var b=31-Ge(l);o.entangledLanes|=l,o.entanglements[b]=o.entanglements[b]|1073741824|h&4194090}function Ta(o,l){var h=o.entangledLanes|=l;for(o=o.entanglements;h;){var b=31-Ge(h),E=1<<b;E&l|o[b]&l&&(o[b]|=l),h&=~E}}function yn(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function hn(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Jn(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:mP(o.type))}function Hn(o,l){var h=B.p;try{return B.p=o,l()}finally{B.p=h}}var tn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+tn,nn="__reactProps$"+tn,er="__reactContainer$"+tn,Ln="__reactEvents$"+tn,lt="__reactListeners$"+tn,qm="__reactHandles$"+tn,jd="__reactResources$"+tn,hs="__reactMarker$"+tn;function ic(o){delete o[Mt],delete o[nn],delete o[Ln],delete o[lt],delete o[qm]}function ja(o){var l=o[Mt];if(l)return l;for(var h=o.parentNode;h;){if(l=h[er]||h[Mt]){if(h=l.alternate,l.child!==null||h!==null&&h.child!==null)for(o=eP(o);o!==null;){if(h=o[Mt])return h;o=eP(o)}return l}o=h,h=o.parentNode}return null}function uo(o){if(o=o[Mt]||o[er]){var l=o.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return o}return null}function Mi(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function co(o){var l=o[jd];return l||(l=o[jd]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Bn(o){o[hs]=!0}var Vm=new Set,Hm={};function fo(o,l){ho(o,l),ho(o+"Capture",l)}function ho(o,l){for(Hm[o]=l,o=0;o<l.length;o++)Vm.add(l[o])}var Zb=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]*$"),Ul={},Gm={};function Xb(o){return K.call(Gm,o)?!0:K.call(Ul,o)?!1:Zb.test(o)?Gm[o]=!0:(Ul[o]=!0,!1)}function ac(o,l,h){if(Xb(l))if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var b=l.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+h)}}function oc(o,l,h){if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+h)}}function Ji(o,l,h,b){if(b===null)o.removeAttribute(h);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(h);return}o.setAttributeNS(l,h,""+b)}}var Bl,ps;function po(o){if(Bl===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);Bl=l&&l[1]||"",ps=-1<h.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Bl+o+ps}var sc=!1;function mo(o,l){if(!o||sc)return"";sc=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={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(Re){var Pe=Re}Reflect.construct(o,[],ze)}else{try{ze.call()}catch(Re){Pe=Re}o.call(ze.prototype)}}else{try{throw Error()}catch(Re){Pe=Re}(ze=o())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(Re){if(Re&&Pe&&typeof Re.stack=="string")return[Re.stack,Pe.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=b.DetermineComponentFrameRoot(),re=N[0],le=N[1];if(re&&le){var ge=re.split(`
|
||
`),Ee=le.split(`
|
||
`);for(E=b=0;b<ge.length&&!ge[b].includes("DetermineComponentFrameRoot");)b++;for(;E<Ee.length&&!Ee[E].includes("DetermineComponentFrameRoot");)E++;if(b===ge.length||E===Ee.length)for(b=ge.length-1,E=Ee.length-1;1<=b&&0<=E&&ge[b]!==Ee[E];)E--;for(;1<=b&&0<=E;b--,E--)if(ge[b]!==Ee[E]){if(b!==1||E!==1)do if(b--,E--,0>E||ge[b]!==Ee[E]){var Ie=`
|
||
`+ge[b].replace(" at new "," at ");return o.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",o.displayName)),Ie}while(1<=b&&0<=E);break}}}finally{sc=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?po(h):""}function Nt(o){switch(o.tag){case 26:case 27:case 5:return po(o.type);case 16:return po("Lazy");case 13:return po("Suspense");case 19:return po("SuspenseList");case 0:case 15:return mo(o.type,!1);case 11:return mo(o.type.render,!1);case 1:return mo(o.type,!0);case 31:return po("Activity");default:return""}}function rn(o){try{var l="";do l+=Nt(o),o=o.return;while(o);return l}catch(h){return`
|
||
Error generating stack: `+h.message+`
|
||
`+h.stack}}function cr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function go(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ms(o){var l=go(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),b=""+o[l];if(!o.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var E=h.get,N=h.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return E.call(this)},set:function(re){b=""+re,N.call(this,re)}}),Object.defineProperty(o,l,{enumerable:h.enumerable}),{getValue:function(){return b},setValue:function(re){b=""+re},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function gs(o){o._valueTracker||(o._valueTracker=ms(o))}function xt(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var h=l.getValue(),b="";return o&&(b=go(o)?o.checked?"true":"false":o.value),o=b,o!==h?(l.setValue(o),!0):!1}function an(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Pd=/[\n"\\]/g;function fr(o){return o.replace(Pd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Sr(o,l,h,b,E,N,re,le){o.name="",re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?o.type=re:o.removeAttribute("type"),l!=null?re==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+cr(l)):o.value!==""+cr(l)&&(o.value=""+cr(l)):re!=="submit"&&re!=="reset"||o.removeAttribute("value"),l!=null?vs(o,re,cr(l)):h!=null?vs(o,re,cr(h)):b!=null&&o.removeAttribute("value"),E==null&&N!=null&&(o.defaultChecked=!!N),E!=null&&(o.checked=E&&typeof E!="function"&&typeof E!="symbol"),le!=null&&typeof le!="function"&&typeof le!="symbol"&&typeof le!="boolean"?o.name=""+cr(le):o.removeAttribute("name")}function Wm(o,l,h,b,E,N,re,le){if(N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(o.type=N),l!=null||h!=null){if(!(N!=="submit"&&N!=="reset"||l!=null))return;h=h!=null?""+cr(h):"",l=l!=null?""+cr(l):h,le||l===o.value||(o.value=l),o.defaultValue=l}b=b??E,b=typeof b!="function"&&typeof b!="symbol"&&!!b,o.checked=le?o.checked:!!b,o.defaultChecked=!!b,re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"&&(o.name=re)}function vs(o,l,h){l==="number"&&an(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function Kr(o,l,h,b){if(o=o.options,l){l={};for(var E=0;E<h.length;E++)l["$"+h[E]]=!0;for(h=0;h<o.length;h++)E=l.hasOwnProperty("$"+o[h].value),o[h].selected!==E&&(o[h].selected=E),E&&b&&(o[h].defaultSelected=!0)}else{for(h=""+cr(h),l=null,E=0;E<o.length;E++){if(o[E].value===h){o[E].selected=!0,b&&(o[E].defaultSelected=!0);return}l!==null||o[E].disabled||(l=o[E])}l!==null&&(l.selected=!0)}}function Cn(o,l,h){if(l!=null&&(l=""+cr(l),l!==o.value&&(o.value=l),h==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=h!=null?""+cr(h):""}function Pa(o,l,h,b){if(l==null){if(b!=null){if(h!=null)throw Error(r(92));if(ne(b)){if(1<b.length)throw Error(r(93));b=b[0]}h=b}h==null&&(h=""),l=h}h=cr(l),o.defaultValue=h,b=o.textContent,b===h&&b!==""&&b!==null&&(o.value=b)}function Ni(o,l){if(l){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=l;return}}o.textContent=l}var zl=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 lc(o,l,h){var b=l.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?b?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":b?o.setProperty(l,h):typeof h!="number"||h===0||zl.has(l)?l==="float"?o.cssFloat=h:o[l]=(""+h).trim():o[l]=h+"px"}function ys(o,l,h){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,h!=null){for(var b in h)!h.hasOwnProperty(b)||l!=null&&l.hasOwnProperty(b)||(b.indexOf("--")===0?o.setProperty(b,""):b==="float"?o.cssFloat="":o[b]="");for(var E in l)b=l[E],l.hasOwnProperty(E)&&h[E]!==b&&lc(o,E,b)}else for(var N in l)l.hasOwnProperty(N)&&lc(o,N,l[N])}function $l(o){if(o.indexOf("-")===-1)return!1;switch(o){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 Rd=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"]]),uc=/^[\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 bs(o){return uc.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Fl=null;function _s(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var vo=null,Ra=null;function Ym(o){var l=uo(o);if(l&&(o=l.stateNode)){var h=o[nn]||null;e:switch(o=l.stateNode,l.type){case"input":if(Sr(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),l=h.name,h.type==="radio"&&l!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+fr(""+l)+'"][type="radio"]'),l=0;l<h.length;l++){var b=h[l];if(b!==o&&b.form===o.form){var E=b[nn]||null;if(!E)throw Error(r(90));Sr(b,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(l=0;l<h.length;l++)b=h[l],b.form===o.form&&xt(b)}break e;case"textarea":Cn(o,h.value,h.defaultValue);break e;case"select":l=h.value,l!=null&&Kr(o,!!h.multiple,l,!1)}}}var bt=!1;function ai(o,l,h){if(bt)return o(l,h);bt=!0;try{var b=o(l);return b}finally{if(bt=!1,(vo!==null||Ra!==null)&&(Fg(),vo&&(l=vo,o=Ra,Ra=vo=null,Ym(l),o)))for(l=0;l<o.length;l++)Ym(o[l])}}function zt(o,l){var h=o.stateNode;if(h===null)return null;var b=h[nn]||null;if(b===null)return null;h=b[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":(b=!b.disabled)||(o=o.type,b=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!b;break e;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(r(231,l,typeof h));return h}var Li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ql=!1;if(Li)try{var yo={};Object.defineProperty(yo,"passive",{get:function(){ql=!0}}),window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{ql=!1}var Di=null,ea=null,xs=null;function ws(){if(xs)return xs;var o,l=ea,h=l.length,b,E="value"in Di?Di.value:Di.textContent,N=E.length;for(o=0;o<h&&l[o]===E[o];o++);var re=h-o;for(b=1;b<=re&&l[h-b]===E[N-b];b++);return xs=E.slice(o,1<b?1-b:void 0)}function Tn(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function ki(){return!0}function Md(){return!1}function dr(o){function l(h,b,E,N,re){this._reactName=h,this._targetInst=E,this.type=b,this.nativeEvent=N,this.target=re,this.currentTarget=null;for(var le in o)o.hasOwnProperty(le)&&(h=o[le],this[le]=h?h(N):N[le]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?ki:Md,this.isPropagationStopped=Md,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=ki)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),l}var bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vl=dr(bo),_o=p({},bo,{view:0,detail:0}),Qb=dr(_o),cc,Ot,Hl,Cr=p({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Hl&&(Hl&&o.type==="mousemove"?(cc=o.screenX-Hl.screenX,Ot=o.screenY-Hl.screenY):Ot=cc=0,Hl=o),cc)},movementY:function(o){return"movementY"in o?o.movementY:Ot}}),Ss=dr(Cr),Km=p({},Cr,{dataTransfer:0}),Jb=dr(Km),Nd=p({},_o,{relatedTarget:0}),Ld=dr(Nd),Zm=p({},bo,{animationName:0,elapsedTime:0,pseudoElement:0}),e1=dr(Zm),t1=p({},bo,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Dd=dr(t1),n1=p({},bo,{data:0}),oi=dr(n1),r1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ma={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qm(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=Ma[o])?!!l[o]:!1}function fc(){return Qm}var kd=p({},_o,{key:function(o){if(o.key){var l=r1[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Tn(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Xm[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(o){return o.type==="keypress"?Tn(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Tn(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),i1=dr(kd),Jm=p({},Cr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Id=dr(Jm),a1=p({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),o1=dr(a1),Ud=p({},bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1=dr(Ud),eg=p({},Cr,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),tg=dr(eg),dc=p({},bo,{newState:0,oldState:0}),xo=dr(dc),l1=[9,13,27,32],wo=Li&&"CompositionEvent"in window,tr=null;Li&&"documentMode"in document&&(tr=document.documentMode);var ng=Li&&"TextEvent"in window&&!tr,Bd=Li&&(!wo||tr&&8<tr&&11>=tr),rg=" ",hc=!1;function pc(o,l){switch(o){case"keyup":return l1.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Cs=!1;function ag(o,l){switch(o){case"compositionend":return ig(l);case"keypress":return l.which!==32?null:(hc=!0,rg);case"textInput":return o=l.data,o===rg&&hc?null:o;default:return null}}function u1(o,l){if(Cs)return o==="compositionend"||!wo&&pc(o,l)?(o=ws(),xs=ea=Di=null,Cs=!1,o):null;switch(o){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 Bd&&l.locale!=="ko"?null:l.data;default:return null}}var si={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 So(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!si[o.type]:l==="textarea"}function og(o,l,h,b){vo?Ra?Ra.push(b):Ra=[b]:vo=b,l=Yg(l,"onChange"),0<l.length&&(h=new Vl("onChange","change",null,h,b),o.push({event:h,listeners:l}))}var Mr=null,Gl=null;function As(o){Vj(o,0)}function mc(o){var l=Mi(o);if(xt(l))return o}function Os(o,l){if(o==="change")return l}var zd=!1;if(Li){var Es;if(Li){var $d="oninput"in document;if(!$d){var ta=document.createElement("div");ta.setAttribute("oninput","return;"),$d=typeof ta.oninput=="function"}Es=$d}else Es=!1;zd=Es&&(!document.documentMode||9<document.documentMode)}function Wl(){Mr&&(Mr.detachEvent("onpropertychange",sg),Gl=Mr=null)}function sg(o){if(o.propertyName==="value"&&mc(Gl)){var l=[];og(l,Gl,o,_s(o)),ai(As,l)}}function Fd(o,l,h){o==="focusin"?(Wl(),Mr=l,Gl=h,Mr.attachEvent("onpropertychange",sg)):o==="focusout"&&Wl()}function c1(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return mc(Gl)}function na(o,l){if(o==="click")return mc(l)}function f1(o,l){if(o==="input"||o==="change")return mc(l)}function Ts(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Nr=typeof Object.is=="function"?Object.is:Ts;function Lr(o,l){if(Nr(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var h=Object.keys(o),b=Object.keys(l);if(h.length!==b.length)return!1;for(b=0;b<h.length;b++){var E=h[b];if(!K.call(l,E)||!Nr(o[E],l[E]))return!1}return!0}function Yl(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function qd(o,l){var h=Yl(o);o=0;for(var b;h;){if(h.nodeType===3){if(b=o+h.textContent.length,o<=l&&b>=l)return{node:h,offset:l-o};o=b}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Yl(h)}}function gc(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?gc(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Kl(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=an(o.document);l instanceof o.HTMLIFrameElement;){try{var h=typeof l.contentWindow.location.href=="string"}catch{h=!1}if(h)o=l.contentWindow;else break;l=an(o.document)}return l}function Zl(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var vc=Li&&"documentMode"in document&&11>=document.documentMode,li=null,js=null,Co=null,yc=!1;function lg(o,l,h){var b=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;yc||li==null||li!==an(b)||(b=li,"selectionStart"in b&&Zl(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Co&&Lr(Co,b)||(Co=b,b=Yg(js,"onSelect"),0<b.length&&(l=new Vl("onSelect","select",null,l,h),o.push({event:l,listeners:b}),l.target=li)))}function Ii(o,l){var h={};return h[o.toLowerCase()]=l.toLowerCase(),h["Webkit"+o]="webkit"+l,h["Moz"+o]="moz"+l,h}var Ps={animationend:Ii("Animation","AnimationEnd"),animationiteration:Ii("Animation","AnimationIteration"),animationstart:Ii("Animation","AnimationStart"),transitionrun:Ii("Transition","TransitionRun"),transitionstart:Ii("Transition","TransitionStart"),transitioncancel:Ii("Transition","TransitionCancel"),transitionend:Ii("Transition","TransitionEnd")},bc={},ug={};Li&&(ug=document.createElement("div").style,"AnimationEvent"in window||(delete Ps.animationend.animation,delete Ps.animationiteration.animation,delete Ps.animationstart.animation),"TransitionEvent"in window||delete Ps.transitionend.transition);function Na(o){if(bc[o])return bc[o];if(!Ps[o])return o;var l=Ps[o],h;for(h in l)if(l.hasOwnProperty(h)&&h in ug)return bc[o]=l[h];return o}var cg=Na("animationend"),ui=Na("animationiteration"),Xl=Na("animationstart"),d1=Na("transitionrun"),_c=Na("transitionstart"),h1=Na("transitioncancel"),Vd=Na("transitionend"),fg=new Map,Ao="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(" ");Ao.push("scrollEnd");function ci(o,l){fg.set(o,l),fo(l,[o])}var Oo=new WeakMap;function Dr(o,l){if(typeof o=="object"&&o!==null){var h=Oo.get(o);return h!==void 0?h:(l={value:o,source:l,stack:rn(l)},Oo.set(o,l),l)}return{value:o,source:l,stack:rn(l)}}var kr=[],Rs=0,fi=0;function Ql(){for(var o=Rs,l=fi=Rs=0;l<o;){var h=kr[l];kr[l++]=null;var b=kr[l];kr[l++]=null;var E=kr[l];kr[l++]=null;var N=kr[l];if(kr[l++]=null,b!==null&&E!==null){var re=b.pending;re===null?E.next=E:(E.next=re.next,re.next=E),b.pending=E}N!==0&&eu(h,E,N)}}function Jl(o,l,h,b){kr[Rs++]=o,kr[Rs++]=l,kr[Rs++]=h,kr[Rs++]=b,fi|=b,o.lanes|=b,o=o.alternate,o!==null&&(o.lanes|=b)}function Eo(o,l,h,b){return Jl(o,l,h,b),La(o)}function Ms(o,l){return Jl(o,null,null,l),La(o)}function eu(o,l,h){o.lanes|=h;var b=o.alternate;b!==null&&(b.lanes|=h);for(var E=!1,N=o.return;N!==null;)N.childLanes|=h,b=N.alternate,b!==null&&(b.childLanes|=h),N.tag===22&&(o=N.stateNode,o===null||o._visibility&1||(E=!0)),o=N,N=N.return;return o.tag===3?(N=o.stateNode,E&&l!==null&&(E=31-Ge(h),o=N.hiddenUpdates,b=o[E],b===null?o[E]=[l]:b.push(l),l.lane=h|536870912),N):null}function La(o){if(50<hh)throw hh=0,c_=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var To={};function dg(o,l,h,b){this.tag=o,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=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ir(o,l,h,b){return new dg(o,l,h,b)}function xc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ui(o,l){var h=o.alternate;return h===null?(h=Ir(o.tag,l,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=l,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&65011712,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,l=o.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h.refCleanup=o.refCleanup,h}function Hd(o,l){o.flags&=65011714;var h=o.alternate;return h===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=h.childLanes,o.lanes=h.lanes,o.child=h.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=h.memoizedProps,o.memoizedState=h.memoizedState,o.updateQueue=h.updateQueue,o.type=h.type,l=h.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function tu(o,l,h,b,E,N){var re=0;if(b=o,typeof o=="function")xc(o)&&(re=1);else if(typeof o=="string")re=oH(o,h,ie.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case X:return o=Ir(31,h,l,E),o.elementType=X,o.lanes=N,o;case w:return Da(h.children,E,N,l);case _:re=8,E|=24;break;case S:return o=Ir(12,h,l,E|2),o.elementType=S,o.lanes=N,o;case j:return o=Ir(13,h,l,E),o.elementType=j,o.lanes=N,o;case R:return o=Ir(19,h,l,E),o.elementType=R,o.lanes=N,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case C:case T:re=10;break e;case O:re=9;break e;case P:re=11;break e;case $:re=14;break e;case V:re=16,b=null;break e}re=29,h=Error(r(130,o===null?"null":typeof o,"")),b=null}return l=Ir(re,h,l,E),l.elementType=o,l.type=b,l.lanes=N,l}function Da(o,l,h,b){return o=Ir(7,o,b,l),o.lanes=h,o}function Gd(o,l,h){return o=Ir(6,o,null,l),o.lanes=h,o}function wc(o,l,h){return l=Ir(4,o.children!==null?o.children:[],o.key,l),l.lanes=h,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var jo=[],Ns=0,d=null,g=0,A=[],D=0,G=null,oe=1,me="";function Ce(o,l){jo[Ns++]=g,jo[Ns++]=d,d=o,g=l}function Me(o,l,h){A[D++]=oe,A[D++]=me,A[D++]=G,G=o;var b=oe;o=me;var E=32-Ge(b)-1;b&=~(1<<E),h+=1;var N=32-Ge(l)+E;if(30<N){var re=E-E%5;N=(b&(1<<re)-1).toString(32),b>>=re,E-=re,oe=1<<32-Ge(l)+E|h<<E|b,me=N+o}else oe=1<<N|h<<E|b,me=o}function qe(o){o.return!==null&&(Ce(o,1),Me(o,1,0))}function Je(o){for(;o===d;)d=jo[--Ns],jo[Ns]=null,g=jo[--Ns],jo[Ns]=null;for(;o===G;)G=A[--D],A[D]=null,me=A[--D],A[D]=null,oe=A[--D],A[D]=null}var rt=null,at=null,yt=!1,on=null,An=!1,nr=Error(r(519));function Zr(o){var l=Error(r(418,""));throw Ds(Dr(l,o)),nr}function hg(o){var l=o.stateNode,h=o.type,b=o.memoizedProps;switch(l[Mt]=o,l[nn]=b,h){case"dialog":jt("cancel",l),jt("close",l);break;case"iframe":case"object":case"embed":jt("load",l);break;case"video":case"audio":for(h=0;h<mh.length;h++)jt(mh[h],l);break;case"source":jt("error",l);break;case"img":case"image":case"link":jt("error",l),jt("load",l);break;case"details":jt("toggle",l);break;case"input":jt("invalid",l),Wm(l,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),gs(l);break;case"select":jt("invalid",l);break;case"textarea":jt("invalid",l),Pa(l,b.value,b.defaultValue,b.children),gs(l)}h=b.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||l.textContent===""+h||b.suppressHydrationWarning===!0||Yj(l.textContent,h)?(b.popover!=null&&(jt("beforetoggle",l),jt("toggle",l)),b.onScroll!=null&&jt("scroll",l),b.onScrollEnd!=null&&jt("scrollend",l),b.onClick!=null&&(l.onclick=Kg),l=!0):l=!1,l||Zr(o)}function pg(o){for(rt=o.return;rt;)switch(rt.tag){case 5:case 13:An=!1;return;case 27:case 3:An=!0;return;default:rt=rt.return}}function nu(o){if(o!==rt)return!1;if(!yt)return pg(o),yt=!0,!1;var l=o.tag,h;if((h=l!==3&&l!==27)&&((h=l===5)&&(h=o.type,h=!(h!=="form"&&h!=="button")||O_(o.type,o.memoizedProps)),h=!h),h&&at&&Zr(o),pg(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8)if(h=o.data,h==="/$"){if(l===0){at=oa(o.nextSibling);break e}l--}else h!=="$"&&h!=="$!"&&h!=="$?"||l++;o=o.nextSibling}at=null}}else l===27?(l=at,Zs(o.type)?(o=P_,P_=null,at=o):at=l):at=rt?oa(o.stateNode.nextSibling):null;return!0}function Ls(){at=rt=null,yt=!1}function mg(){var o=on;return o!==null&&(Jr===null?Jr=o:Jr.push.apply(Jr,o),on=null),o}function Ds(o){on===null?on=[o]:on.push(o)}var bn=k(null),Bi=null,ra=null;function ka(o,l,h){W(bn,l._currentValue),l._currentValue=h}function ia(o){o._currentValue=bn.current,J(bn)}function ru(o,l,h){for(;o!==null;){var b=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,b!==null&&(b.childLanes|=l)):b!==null&&(b.childLanes&l)!==l&&(b.childLanes|=l),o===h)break;o=o.return}}function Sc(o,l,h,b){var E=o.child;for(E!==null&&(E.return=o);E!==null;){var N=E.dependencies;if(N!==null){var re=E.child;N=N.firstContext;e:for(;N!==null;){var le=N;N=E;for(var ge=0;ge<l.length;ge++)if(le.context===l[ge]){N.lanes|=h,le=N.alternate,le!==null&&(le.lanes|=h),ru(N.return,h,o),b||(re=null);break e}N=le.next}}else if(E.tag===18){if(re=E.return,re===null)throw Error(r(341));re.lanes|=h,N=re.alternate,N!==null&&(N.lanes|=h),ru(re,h,o),re=null}else re=E.child;if(re!==null)re.return=E;else for(re=E;re!==null;){if(re===o){re=null;break}if(E=re.sibling,E!==null){E.return=re.return,re=E;break}re=re.return}E=re}}function iu(o,l,h,b){o=null;for(var E=l,N=!1;E!==null;){if(!N){if((E.flags&524288)!==0)N=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var re=E.alternate;if(re===null)throw Error(r(387));if(re=re.memoizedProps,re!==null){var le=E.type;Nr(E.pendingProps.value,re.value)||(o!==null?o.push(le):o=[le])}}else if(E===ye.current){if(re=E.alternate,re===null)throw Error(r(387));re.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(o!==null?o.push(xh):o=[xh])}E=E.return}o!==null&&Sc(l,o,h,b),l.flags|=262144}function gg(o){for(o=o.firstContext;o!==null;){if(!Nr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function au(o){Bi=o,ra=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Ar(o){return L3(Bi,o)}function vg(o,l){return Bi===null&&au(o),L3(o,l)}function L3(o,l){var h=l._currentValue;if(l={context:l,memoizedValue:h,next:null},ra===null){if(o===null)throw Error(r(308));ra=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else ra=ra.next=l;return h}var aV=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(h,b){o.push(b)}};this.abort=function(){l.aborted=!0,o.forEach(function(h){return h()})}},oV=e.unstable_scheduleCallback,sV=e.unstable_NormalPriority,Gn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function p1(){return{controller:new aV,data:new Map,refCount:0}}function Wd(o){o.refCount--,o.refCount===0&&oV(sV,function(){o.controller.abort()})}var Yd=null,m1=0,Cc=0,Ac=null;function lV(o,l){if(Yd===null){var h=Yd=[];m1=0,Cc=v_(),Ac={status:"pending",value:void 0,then:function(b){h.push(b)}}}return m1++,l.then(D3,D3),l}function D3(){if(--m1===0&&Yd!==null){Ac!==null&&(Ac.status="fulfilled");var o=Yd;Yd=null,Cc=0,Ac=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function uV(o,l){var h=[],b={status:"pending",value:null,reason:null,then:function(E){h.push(E)}};return o.then(function(){b.status="fulfilled",b.value=l;for(var E=0;E<h.length;E++)(0,h[E])(l)},function(E){for(b.status="rejected",b.reason=E,E=0;E<h.length;E++)(0,h[E])(void 0)}),b}var k3=H.S;H.S=function(o,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&lV(o,l),k3!==null&&k3(o,l)};var ou=k(null);function g1(){var o=ou.current;return o!==null?o:sn.pooledCache}function yg(o,l){l===null?W(ou,ou.current):W(ou,l.pool)}function I3(){var o=g1();return o===null?null:{parent:Gn._currentValue,pool:o}}var Kd=Error(r(460)),U3=Error(r(474)),bg=Error(r(542)),v1={then:function(){}};function B3(o){return o=o.status,o==="fulfilled"||o==="rejected"}function _g(){}function z3(o,l,h){switch(h=o[h],h===void 0?o.push(l):h!==l&&(l.then(_g,_g),l=h),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,F3(o),o;default:if(typeof l.status=="string")l.then(_g,_g);else{if(o=sn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(b){if(l.status==="pending"){var E=l;E.status="fulfilled",E.value=b}},function(b){if(l.status==="pending"){var E=l;E.status="rejected",E.reason=b}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,F3(o),o}throw Zd=l,Kd}}var Zd=null;function $3(){if(Zd===null)throw Error(r(459));var o=Zd;return Zd=null,o}function F3(o){if(o===Kd||o===bg)throw Error(r(483))}var ks=!1;function y1(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function b1(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Is(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Us(o,l,h){var b=o.updateQueue;if(b===null)return null;if(b=b.shared,(Ht&2)!==0){var E=b.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),b.pending=l,l=La(o),eu(o,null,h),l}return Jl(o,b,l,h),La(o)}function Xd(o,l,h){if(l=l.updateQueue,l!==null&&(l=l.shared,(h&4194048)!==0)){var b=l.lanes;b&=o.pendingLanes,h|=b,l.lanes=h,Ta(o,h)}}function _1(o,l){var h=o.updateQueue,b=o.alternate;if(b!==null&&(b=b.updateQueue,h===b)){var E=null,N=null;if(h=h.firstBaseUpdate,h!==null){do{var re={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};N===null?E=N=re:N=N.next=re,h=h.next}while(h!==null);N===null?E=N=l:N=N.next=l}else E=N=l;h={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:N,shared:b.shared,callbacks:b.callbacks},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=l:o.next=l,h.lastBaseUpdate=l}var x1=!1;function Qd(){if(x1){var o=Ac;if(o!==null)throw o}}function Jd(o,l,h,b){x1=!1;var E=o.updateQueue;ks=!1;var N=E.firstBaseUpdate,re=E.lastBaseUpdate,le=E.shared.pending;if(le!==null){E.shared.pending=null;var ge=le,Ee=ge.next;ge.next=null,re===null?N=Ee:re.next=Ee,re=ge;var Ie=o.alternate;Ie!==null&&(Ie=Ie.updateQueue,le=Ie.lastBaseUpdate,le!==re&&(le===null?Ie.firstBaseUpdate=Ee:le.next=Ee,Ie.lastBaseUpdate=ge))}if(N!==null){var ze=E.baseState;re=0,Ie=Ee=ge=null,le=N;do{var Pe=le.lane&-536870913,Re=Pe!==le.lane;if(Re?(Lt&Pe)===Pe:(b&Pe)===Pe){Pe!==0&&Pe===Cc&&(x1=!0),Ie!==null&&(Ie=Ie.next={lane:0,tag:le.tag,payload:le.payload,callback:null,next:null});e:{var vt=o,dt=le;Pe=l;var Kt=h;switch(dt.tag){case 1:if(vt=dt.payload,typeof vt=="function"){ze=vt.call(Kt,ze,Pe);break e}ze=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=dt.payload,Pe=typeof vt=="function"?vt.call(Kt,ze,Pe):vt,Pe==null)break e;ze=p({},ze,Pe);break e;case 2:ks=!0}}Pe=le.callback,Pe!==null&&(o.flags|=64,Re&&(o.flags|=8192),Re=E.callbacks,Re===null?E.callbacks=[Pe]:Re.push(Pe))}else Re={lane:Pe,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ie===null?(Ee=Ie=Re,ge=ze):Ie=Ie.next=Re,re|=Pe;if(le=le.next,le===null){if(le=E.shared.pending,le===null)break;Re=le,le=Re.next,Re.next=null,E.lastBaseUpdate=Re,E.shared.pending=null}}while(!0);Ie===null&&(ge=ze),E.baseState=ge,E.firstBaseUpdate=Ee,E.lastBaseUpdate=Ie,N===null&&(E.shared.lanes=0),Gs|=re,o.lanes=re,o.memoizedState=ze}}function q3(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function V3(o,l){var h=o.callbacks;if(h!==null)for(o.callbacks=null,o=0;o<h.length;o++)q3(h[o],l)}var Oc=k(null),xg=k(0);function H3(o,l){o=ko,W(xg,o),W(Oc,l),ko=o|l.baseLanes}function w1(){W(xg,ko),W(Oc,Oc.current)}function S1(){ko=xg.current,J(Oc),J(xg)}var Bs=0,At=null,Wt=null,zn=null,wg=!1,Ec=!1,su=!1,Sg=0,eh=0,Tc=null,cV=0;function Dn(){throw Error(r(321))}function C1(o,l){if(l===null)return!1;for(var h=0;h<l.length&&h<o.length;h++)if(!Nr(o[h],l[h]))return!1;return!0}function A1(o,l,h,b,E,N){return Bs=N,At=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,H.H=o===null||o.memoizedState===null?T4:j4,su=!1,N=h(b,E),su=!1,Ec&&(N=W3(l,h,b,E)),G3(o),N}function G3(o){H.H=jg;var l=Wt!==null&&Wt.next!==null;if(Bs=0,zn=Wt=At=null,wg=!1,eh=0,Tc=null,l)throw Error(r(300));o===null||rr||(o=o.dependencies,o!==null&&gg(o)&&(rr=!0))}function W3(o,l,h,b){At=o;var E=0;do{if(Ec&&(Tc=null),eh=0,Ec=!1,25<=E)throw Error(r(301));if(E+=1,zn=Wt=null,o.updateQueue!=null){var N=o.updateQueue;N.lastEffect=null,N.events=null,N.stores=null,N.memoCache!=null&&(N.memoCache.index=0)}H.H=vV,N=l(h,b)}while(Ec);return N}function fV(){var o=H.H,l=o.useState()[0];return l=typeof l.then=="function"?th(l):l,o=o.useState()[0],(Wt!==null?Wt.memoizedState:null)!==o&&(At.flags|=1024),l}function O1(){var o=Sg!==0;return Sg=0,o}function E1(o,l,h){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~h}function T1(o){if(wg){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}wg=!1}Bs=0,zn=Wt=At=null,Ec=!1,eh=Sg=0,Tc=null}function Xr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?At.memoizedState=zn=o:zn=zn.next=o,zn}function $n(){if(Wt===null){var o=At.alternate;o=o!==null?o.memoizedState:null}else o=Wt.next;var l=zn===null?At.memoizedState:zn.next;if(l!==null)zn=l,Wt=o;else{if(o===null)throw At.alternate===null?Error(r(467)):Error(r(310));Wt=o,o={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},zn===null?At.memoizedState=zn=o:zn=zn.next=o}return zn}function j1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function th(o){var l=eh;return eh+=1,Tc===null&&(Tc=[]),o=z3(Tc,o,l),l=At,(zn===null?l.memoizedState:zn.next)===null&&(l=l.alternate,H.H=l===null||l.memoizedState===null?T4:j4),o}function Cg(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return th(o);if(o.$$typeof===T)return Ar(o)}throw Error(r(438,String(o)))}function P1(o){var l=null,h=At.updateQueue;if(h!==null&&(l=h.memoCache),l==null){var b=At.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(l={data:b.data.map(function(E){return E.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),h===null&&(h=j1(),At.updateQueue=h),h.memoCache=l,h=l.data[l.index],h===void 0)for(h=l.data[l.index]=Array(o),b=0;b<o;b++)h[b]=Z;return l.index++,h}function Po(o,l){return typeof l=="function"?l(o):l}function Ag(o){var l=$n();return R1(l,Wt,o)}function R1(o,l,h){var b=o.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=h;var E=o.baseQueue,N=b.pending;if(N!==null){if(E!==null){var re=E.next;E.next=N.next,N.next=re}l.baseQueue=E=N,b.pending=null}if(N=o.baseState,E===null)o.memoizedState=N;else{l=E.next;var le=re=null,ge=null,Ee=l,Ie=!1;do{var ze=Ee.lane&-536870913;if(ze!==Ee.lane?(Lt&ze)===ze:(Bs&ze)===ze){var Pe=Ee.revertLane;if(Pe===0)ge!==null&&(ge=ge.next={lane:0,revertLane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),ze===Cc&&(Ie=!0);else if((Bs&Pe)===Pe){Ee=Ee.next,Pe===Cc&&(Ie=!0);continue}else ze={lane:0,revertLane:Ee.revertLane,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},ge===null?(le=ge=ze,re=N):ge=ge.next=ze,At.lanes|=Pe,Gs|=Pe;ze=Ee.action,su&&h(N,ze),N=Ee.hasEagerState?Ee.eagerState:h(N,ze)}else Pe={lane:ze,revertLane:Ee.revertLane,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},ge===null?(le=ge=Pe,re=N):ge=ge.next=Pe,At.lanes|=ze,Gs|=ze;Ee=Ee.next}while(Ee!==null&&Ee!==l);if(ge===null?re=N:ge.next=le,!Nr(N,o.memoizedState)&&(rr=!0,Ie&&(h=Ac,h!==null)))throw h;o.memoizedState=N,o.baseState=re,o.baseQueue=ge,b.lastRenderedState=N}return E===null&&(b.lanes=0),[o.memoizedState,b.dispatch]}function M1(o){var l=$n(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=o;var b=h.dispatch,E=h.pending,N=l.memoizedState;if(E!==null){h.pending=null;var re=E=E.next;do N=o(N,re.action),re=re.next;while(re!==E);Nr(N,l.memoizedState)||(rr=!0),l.memoizedState=N,l.baseQueue===null&&(l.baseState=N),h.lastRenderedState=N}return[N,b]}function Y3(o,l,h){var b=At,E=$n(),N=yt;if(N){if(h===void 0)throw Error(r(407));h=h()}else h=l();var re=!Nr((Wt||E).memoizedState,h);re&&(E.memoizedState=h,rr=!0),E=E.queue;var le=X3.bind(null,b,E,o);if(nh(2048,8,le,[o]),E.getSnapshot!==l||re||zn!==null&&zn.memoizedState.tag&1){if(b.flags|=2048,jc(9,Og(),Z3.bind(null,b,E,h,l),null),sn===null)throw Error(r(349));N||(Bs&124)!==0||K3(b,l,h)}return h}function K3(o,l,h){o.flags|=16384,o={getSnapshot:l,value:h},l=At.updateQueue,l===null?(l=j1(),At.updateQueue=l,l.stores=[o]):(h=l.stores,h===null?l.stores=[o]:h.push(o))}function Z3(o,l,h,b){l.value=h,l.getSnapshot=b,Q3(l)&&J3(o)}function X3(o,l,h){return h(function(){Q3(l)&&J3(o)})}function Q3(o){var l=o.getSnapshot;o=o.value;try{var h=l();return!Nr(o,h)}catch{return!0}}function J3(o){var l=Ms(o,2);l!==null&&gi(l,o,2)}function N1(o){var l=Xr();if(typeof o=="function"){var h=o;if(o=h(),su){Fe(!0);try{h()}finally{Fe(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:o},l}function e4(o,l,h,b){return o.baseState=h,R1(o,Wt,typeof b=="function"?b:Po)}function dV(o,l,h,b,E){if(Tg(o))throw Error(r(485));if(o=l.action,o!==null){var N={payload:E,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(re){N.listeners.push(re)}};H.T!==null?h(!0):N.isTransition=!1,b(N),h=l.pending,h===null?(N.next=l.pending=N,t4(l,N)):(N.next=h.next,l.pending=h.next=N)}}function t4(o,l){var h=l.action,b=l.payload,E=o.state;if(l.isTransition){var N=H.T,re={};H.T=re;try{var le=h(E,b),ge=H.S;ge!==null&&ge(re,le),n4(o,l,le)}catch(Ee){L1(o,l,Ee)}finally{H.T=N}}else try{N=h(E,b),n4(o,l,N)}catch(Ee){L1(o,l,Ee)}}function n4(o,l,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(b){r4(o,l,b)},function(b){return L1(o,l,b)}):r4(o,l,h)}function r4(o,l,h){l.status="fulfilled",l.value=h,i4(l),o.state=h,l=o.pending,l!==null&&(h=l.next,h===l?o.pending=null:(h=h.next,l.next=h,t4(o,h)))}function L1(o,l,h){var b=o.pending;if(o.pending=null,b!==null){b=b.next;do l.status="rejected",l.reason=h,i4(l),l=l.next;while(l!==b)}o.action=null}function i4(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function a4(o,l){return l}function o4(o,l){if(yt){var h=sn.formState;if(h!==null){e:{var b=At;if(yt){if(at){t:{for(var E=at,N=An;E.nodeType!==8;){if(!N){E=null;break t}if(E=oa(E.nextSibling),E===null){E=null;break t}}N=E.data,E=N==="F!"||N==="F"?E:null}if(E){at=oa(E.nextSibling),b=E.data==="F!";break e}}Zr(b)}b=!1}b&&(l=h[0])}}return h=Xr(),h.memoizedState=h.baseState=l,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a4,lastRenderedState:l},h.queue=b,h=A4.bind(null,At,b),b.dispatch=h,b=N1(!1),N=B1.bind(null,At,!1,b.queue),b=Xr(),E={state:l,dispatch:null,action:o,pending:null},b.queue=E,h=dV.bind(null,At,E,N,h),E.dispatch=h,b.memoizedState=o,[l,h,!1]}function s4(o){var l=$n();return l4(l,Wt,o)}function l4(o,l,h){if(l=R1(o,l,a4)[0],o=Ag(Po)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var b=th(l)}catch(re){throw re===Kd?bg:re}else b=l;l=$n();var E=l.queue,N=E.dispatch;return h!==l.memoizedState&&(At.flags|=2048,jc(9,Og(),hV.bind(null,E,h),null)),[b,N,o]}function hV(o,l){o.action=l}function u4(o){var l=$n(),h=Wt;if(h!==null)return l4(l,h,o);$n(),l=l.memoizedState,h=$n();var b=h.queue.dispatch;return h.memoizedState=o,[l,b,!1]}function jc(o,l,h,b){return o={tag:o,create:h,deps:b,inst:l,next:null},l=At.updateQueue,l===null&&(l=j1(),At.updateQueue=l),h=l.lastEffect,h===null?l.lastEffect=o.next=o:(b=h.next,h.next=o,o.next=b,l.lastEffect=o),o}function Og(){return{destroy:void 0,resource:void 0}}function c4(){return $n().memoizedState}function Eg(o,l,h,b){var E=Xr();b=b===void 0?null:b,At.flags|=o,E.memoizedState=jc(1|l,Og(),h,b)}function nh(o,l,h,b){var E=$n();b=b===void 0?null:b;var N=E.memoizedState.inst;Wt!==null&&b!==null&&C1(b,Wt.memoizedState.deps)?E.memoizedState=jc(l,N,h,b):(At.flags|=o,E.memoizedState=jc(1|l,N,h,b))}function f4(o,l){Eg(8390656,8,o,l)}function d4(o,l){nh(2048,8,o,l)}function h4(o,l){return nh(4,2,o,l)}function p4(o,l){return nh(4,4,o,l)}function m4(o,l){if(typeof l=="function"){o=o();var h=l(o);return function(){typeof h=="function"?h():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function g4(o,l,h){h=h!=null?h.concat([o]):null,nh(4,4,m4.bind(null,l,o),h)}function D1(){}function v4(o,l){var h=$n();l=l===void 0?null:l;var b=h.memoizedState;return l!==null&&C1(l,b[1])?b[0]:(h.memoizedState=[o,l],o)}function y4(o,l){var h=$n();l=l===void 0?null:l;var b=h.memoizedState;if(l!==null&&C1(l,b[1]))return b[0];if(b=o(),su){Fe(!0);try{o()}finally{Fe(!1)}}return h.memoizedState=[b,l],b}function k1(o,l,h){return h===void 0||(Bs&1073741824)!==0?o.memoizedState=l:(o.memoizedState=h,o=xj(),At.lanes|=o,Gs|=o,h)}function b4(o,l,h,b){return Nr(h,l)?h:Oc.current!==null?(o=k1(o,h,b),Nr(o,l)||(rr=!0),o):(Bs&42)===0?(rr=!0,o.memoizedState=h):(o=xj(),At.lanes|=o,Gs|=o,l)}function _4(o,l,h,b,E){var N=B.p;B.p=N!==0&&8>N?N:8;var re=H.T,le={};H.T=le,B1(o,!1,l,h);try{var ge=E(),Ee=H.S;if(Ee!==null&&Ee(le,ge),ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var Ie=uV(ge,b);rh(o,l,Ie,mi(o))}else rh(o,l,b,mi(o))}catch(ze){rh(o,l,{then:function(){},status:"rejected",reason:ze},mi())}finally{B.p=N,H.T=re}}function pV(){}function I1(o,l,h,b){if(o.tag!==5)throw Error(r(476));var E=x4(o).queue;_4(o,E,l,U,h===null?pV:function(){return w4(o),h(b)})}function x4(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:U},next:null};var h={};return l.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:h},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function w4(o){var l=x4(o).next.queue;rh(o,l,{},mi())}function U1(){return Ar(xh)}function S4(){return $n().memoizedState}function C4(){return $n().memoizedState}function mV(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var h=mi();o=Is(h);var b=Us(l,o,h);b!==null&&(gi(b,l,h),Xd(b,l,h)),l={cache:p1()},o.payload=l;return}l=l.return}}function gV(o,l,h){var b=mi();h={lane:b,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Tg(o)?O4(l,h):(h=Eo(o,l,h,b),h!==null&&(gi(h,o,b),E4(h,l,b)))}function A4(o,l,h){var b=mi();rh(o,l,h,b)}function rh(o,l,h,b){var E={lane:b,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Tg(o))O4(l,E);else{var N=o.alternate;if(o.lanes===0&&(N===null||N.lanes===0)&&(N=l.lastRenderedReducer,N!==null))try{var re=l.lastRenderedState,le=N(re,h);if(E.hasEagerState=!0,E.eagerState=le,Nr(le,re))return Jl(o,l,E,0),sn===null&&Ql(),!1}catch{}finally{}if(h=Eo(o,l,E,b),h!==null)return gi(h,o,b),E4(h,l,b),!0}return!1}function B1(o,l,h,b){if(b={lane:2,revertLane:v_(),action:b,hasEagerState:!1,eagerState:null,next:null},Tg(o)){if(l)throw Error(r(479))}else l=Eo(o,h,b,2),l!==null&&gi(l,o,2)}function Tg(o){var l=o.alternate;return o===At||l!==null&&l===At}function O4(o,l){Ec=wg=!0;var h=o.pending;h===null?l.next=l:(l.next=h.next,h.next=l),o.pending=l}function E4(o,l,h){if((h&4194048)!==0){var b=l.lanes;b&=o.pendingLanes,h|=b,l.lanes=h,Ta(o,h)}}var jg={readContext:Ar,use:Cg,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn},T4={readContext:Ar,use:Cg,useCallback:function(o,l){return Xr().memoizedState=[o,l===void 0?null:l],o},useContext:Ar,useEffect:f4,useImperativeHandle:function(o,l,h){h=h!=null?h.concat([o]):null,Eg(4194308,4,m4.bind(null,l,o),h)},useLayoutEffect:function(o,l){return Eg(4194308,4,o,l)},useInsertionEffect:function(o,l){Eg(4,2,o,l)},useMemo:function(o,l){var h=Xr();l=l===void 0?null:l;var b=o();if(su){Fe(!0);try{o()}finally{Fe(!1)}}return h.memoizedState=[b,l],b},useReducer:function(o,l,h){var b=Xr();if(h!==void 0){var E=h(l);if(su){Fe(!0);try{h(l)}finally{Fe(!1)}}}else E=l;return b.memoizedState=b.baseState=E,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:E},b.queue=o,o=o.dispatch=gV.bind(null,At,o),[b.memoizedState,o]},useRef:function(o){var l=Xr();return o={current:o},l.memoizedState=o},useState:function(o){o=N1(o);var l=o.queue,h=A4.bind(null,At,l);return l.dispatch=h,[o.memoizedState,h]},useDebugValue:D1,useDeferredValue:function(o,l){var h=Xr();return k1(h,o,l)},useTransition:function(){var o=N1(!1);return o=_4.bind(null,At,o.queue,!0,!1),Xr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,h){var b=At,E=Xr();if(yt){if(h===void 0)throw Error(r(407));h=h()}else{if(h=l(),sn===null)throw Error(r(349));(Lt&124)!==0||K3(b,l,h)}E.memoizedState=h;var N={value:h,getSnapshot:l};return E.queue=N,f4(X3.bind(null,b,N,o),[o]),b.flags|=2048,jc(9,Og(),Z3.bind(null,b,N,h,l),null),h},useId:function(){var o=Xr(),l=sn.identifierPrefix;if(yt){var h=me,b=oe;h=(b&~(1<<32-Ge(b)-1)).toString(32)+h,l="«"+l+"R"+h,h=Sg++,0<h&&(l+="H"+h.toString(32)),l+="»"}else h=cV++,l="«"+l+"r"+h.toString(32)+"»";return o.memoizedState=l},useHostTransitionStatus:U1,useFormState:o4,useActionState:o4,useOptimistic:function(o){var l=Xr();l.memoizedState=l.baseState=o;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=h,l=B1.bind(null,At,!0,h),h.dispatch=l,[o,l]},useMemoCache:P1,useCacheRefresh:function(){return Xr().memoizedState=mV.bind(null,At)}},j4={readContext:Ar,use:Cg,useCallback:v4,useContext:Ar,useEffect:d4,useImperativeHandle:g4,useInsertionEffect:h4,useLayoutEffect:p4,useMemo:y4,useReducer:Ag,useRef:c4,useState:function(){return Ag(Po)},useDebugValue:D1,useDeferredValue:function(o,l){var h=$n();return b4(h,Wt.memoizedState,o,l)},useTransition:function(){var o=Ag(Po)[0],l=$n().memoizedState;return[typeof o=="boolean"?o:th(o),l]},useSyncExternalStore:Y3,useId:S4,useHostTransitionStatus:U1,useFormState:s4,useActionState:s4,useOptimistic:function(o,l){var h=$n();return e4(h,Wt,o,l)},useMemoCache:P1,useCacheRefresh:C4},vV={readContext:Ar,use:Cg,useCallback:v4,useContext:Ar,useEffect:d4,useImperativeHandle:g4,useInsertionEffect:h4,useLayoutEffect:p4,useMemo:y4,useReducer:M1,useRef:c4,useState:function(){return M1(Po)},useDebugValue:D1,useDeferredValue:function(o,l){var h=$n();return Wt===null?k1(h,o,l):b4(h,Wt.memoizedState,o,l)},useTransition:function(){var o=M1(Po)[0],l=$n().memoizedState;return[typeof o=="boolean"?o:th(o),l]},useSyncExternalStore:Y3,useId:S4,useHostTransitionStatus:U1,useFormState:u4,useActionState:u4,useOptimistic:function(o,l){var h=$n();return Wt!==null?e4(h,Wt,o,l):(h.baseState=o,[o,h.queue.dispatch])},useMemoCache:P1,useCacheRefresh:C4},Pc=null,ih=0;function Pg(o){var l=ih;return ih+=1,Pc===null&&(Pc=[]),z3(Pc,o,l)}function ah(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function Rg(o,l){throw l.$$typeof===m?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function P4(o){var l=o._init;return l(o._payload)}function R4(o){function l(Se,be){if(o){var Ae=Se.deletions;Ae===null?(Se.deletions=[be],Se.flags|=16):Ae.push(be)}}function h(Se,be){if(!o)return null;for(;be!==null;)l(Se,be),be=be.sibling;return null}function b(Se){for(var be=new Map;Se!==null;)Se.key!==null?be.set(Se.key,Se):be.set(Se.index,Se),Se=Se.sibling;return be}function E(Se,be){return Se=Ui(Se,be),Se.index=0,Se.sibling=null,Se}function N(Se,be,Ae){return Se.index=Ae,o?(Ae=Se.alternate,Ae!==null?(Ae=Ae.index,Ae<be?(Se.flags|=67108866,be):Ae):(Se.flags|=67108866,be)):(Se.flags|=1048576,be)}function re(Se){return o&&Se.alternate===null&&(Se.flags|=67108866),Se}function le(Se,be,Ae,Be){return be===null||be.tag!==6?(be=Gd(Ae,Se.mode,Be),be.return=Se,be):(be=E(be,Ae),be.return=Se,be)}function ge(Se,be,Ae,Be){var it=Ae.type;return it===w?Ie(Se,be,Ae.props.children,Be,Ae.key):be!==null&&(be.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===V&&P4(it)===be.type)?(be=E(be,Ae.props),ah(be,Ae),be.return=Se,be):(be=tu(Ae.type,Ae.key,Ae.props,null,Se.mode,Be),ah(be,Ae),be.return=Se,be)}function Ee(Se,be,Ae,Be){return be===null||be.tag!==4||be.stateNode.containerInfo!==Ae.containerInfo||be.stateNode.implementation!==Ae.implementation?(be=wc(Ae,Se.mode,Be),be.return=Se,be):(be=E(be,Ae.children||[]),be.return=Se,be)}function Ie(Se,be,Ae,Be,it){return be===null||be.tag!==7?(be=Da(Ae,Se.mode,Be,it),be.return=Se,be):(be=E(be,Ae),be.return=Se,be)}function ze(Se,be,Ae){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return be=Gd(""+be,Se.mode,Ae),be.return=Se,be;if(typeof be=="object"&&be!==null){switch(be.$$typeof){case v:return Ae=tu(be.type,be.key,be.props,null,Se.mode,Ae),ah(Ae,be),Ae.return=Se,Ae;case x:return be=wc(be,Se.mode,Ae),be.return=Se,be;case V:var Be=be._init;return be=Be(be._payload),ze(Se,be,Ae)}if(ne(be)||te(be))return be=Da(be,Se.mode,Ae,null),be.return=Se,be;if(typeof be.then=="function")return ze(Se,Pg(be),Ae);if(be.$$typeof===T)return ze(Se,vg(Se,be),Ae);Rg(Se,be)}return null}function Pe(Se,be,Ae,Be){var it=be!==null?be.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return it!==null?null:le(Se,be,""+Ae,Be);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case v:return Ae.key===it?ge(Se,be,Ae,Be):null;case x:return Ae.key===it?Ee(Se,be,Ae,Be):null;case V:return it=Ae._init,Ae=it(Ae._payload),Pe(Se,be,Ae,Be)}if(ne(Ae)||te(Ae))return it!==null?null:Ie(Se,be,Ae,Be,null);if(typeof Ae.then=="function")return Pe(Se,be,Pg(Ae),Be);if(Ae.$$typeof===T)return Pe(Se,be,vg(Se,Ae),Be);Rg(Se,Ae)}return null}function Re(Se,be,Ae,Be,it){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return Se=Se.get(Ae)||null,le(be,Se,""+Be,it);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case v:return Se=Se.get(Be.key===null?Ae:Be.key)||null,ge(be,Se,Be,it);case x:return Se=Se.get(Be.key===null?Ae:Be.key)||null,Ee(be,Se,Be,it);case V:var Et=Be._init;return Be=Et(Be._payload),Re(Se,be,Ae,Be,it)}if(ne(Be)||te(Be))return Se=Se.get(Ae)||null,Ie(be,Se,Be,it,null);if(typeof Be.then=="function")return Re(Se,be,Ae,Pg(Be),it);if(Be.$$typeof===T)return Re(Se,be,Ae,vg(be,Be),it);Rg(be,Be)}return null}function vt(Se,be,Ae,Be){for(var it=null,Et=null,ct=be,mt=be=0,ar=null;ct!==null&&mt<Ae.length;mt++){ct.index>mt?(ar=ct,ct=null):ar=ct.sibling;var $t=Pe(Se,ct,Ae[mt],Be);if($t===null){ct===null&&(ct=ar);break}o&&ct&&$t.alternate===null&&l(Se,ct),be=N($t,be,mt),Et===null?it=$t:Et.sibling=$t,Et=$t,ct=ar}if(mt===Ae.length)return h(Se,ct),yt&&Ce(Se,mt),it;if(ct===null){for(;mt<Ae.length;mt++)ct=ze(Se,Ae[mt],Be),ct!==null&&(be=N(ct,be,mt),Et===null?it=ct:Et.sibling=ct,Et=ct);return yt&&Ce(Se,mt),it}for(ct=b(ct);mt<Ae.length;mt++)ar=Re(ct,Se,mt,Ae[mt],Be),ar!==null&&(o&&ar.alternate!==null&&ct.delete(ar.key===null?mt:ar.key),be=N(ar,be,mt),Et===null?it=ar:Et.sibling=ar,Et=ar);return o&&ct.forEach(function(tl){return l(Se,tl)}),yt&&Ce(Se,mt),it}function dt(Se,be,Ae,Be){if(Ae==null)throw Error(r(151));for(var it=null,Et=null,ct=be,mt=be=0,ar=null,$t=Ae.next();ct!==null&&!$t.done;mt++,$t=Ae.next()){ct.index>mt?(ar=ct,ct=null):ar=ct.sibling;var tl=Pe(Se,ct,$t.value,Be);if(tl===null){ct===null&&(ct=ar);break}o&&ct&&tl.alternate===null&&l(Se,ct),be=N(tl,be,mt),Et===null?it=tl:Et.sibling=tl,Et=tl,ct=ar}if($t.done)return h(Se,ct),yt&&Ce(Se,mt),it;if(ct===null){for(;!$t.done;mt++,$t=Ae.next())$t=ze(Se,$t.value,Be),$t!==null&&(be=N($t,be,mt),Et===null?it=$t:Et.sibling=$t,Et=$t);return yt&&Ce(Se,mt),it}for(ct=b(ct);!$t.done;mt++,$t=Ae.next())$t=Re(ct,Se,mt,$t.value,Be),$t!==null&&(o&&$t.alternate!==null&&ct.delete($t.key===null?mt:$t.key),be=N($t,be,mt),Et===null?it=$t:Et.sibling=$t,Et=$t);return o&&ct.forEach(function(yH){return l(Se,yH)}),yt&&Ce(Se,mt),it}function Kt(Se,be,Ae,Be){if(typeof Ae=="object"&&Ae!==null&&Ae.type===w&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case v:e:{for(var it=Ae.key;be!==null;){if(be.key===it){if(it=Ae.type,it===w){if(be.tag===7){h(Se,be.sibling),Be=E(be,Ae.props.children),Be.return=Se,Se=Be;break e}}else if(be.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===V&&P4(it)===be.type){h(Se,be.sibling),Be=E(be,Ae.props),ah(Be,Ae),Be.return=Se,Se=Be;break e}h(Se,be);break}else l(Se,be);be=be.sibling}Ae.type===w?(Be=Da(Ae.props.children,Se.mode,Be,Ae.key),Be.return=Se,Se=Be):(Be=tu(Ae.type,Ae.key,Ae.props,null,Se.mode,Be),ah(Be,Ae),Be.return=Se,Se=Be)}return re(Se);case x:e:{for(it=Ae.key;be!==null;){if(be.key===it)if(be.tag===4&&be.stateNode.containerInfo===Ae.containerInfo&&be.stateNode.implementation===Ae.implementation){h(Se,be.sibling),Be=E(be,Ae.children||[]),Be.return=Se,Se=Be;break e}else{h(Se,be);break}else l(Se,be);be=be.sibling}Be=wc(Ae,Se.mode,Be),Be.return=Se,Se=Be}return re(Se);case V:return it=Ae._init,Ae=it(Ae._payload),Kt(Se,be,Ae,Be)}if(ne(Ae))return vt(Se,be,Ae,Be);if(te(Ae)){if(it=te(Ae),typeof it!="function")throw Error(r(150));return Ae=it.call(Ae),dt(Se,be,Ae,Be)}if(typeof Ae.then=="function")return Kt(Se,be,Pg(Ae),Be);if(Ae.$$typeof===T)return Kt(Se,be,vg(Se,Ae),Be);Rg(Se,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(Ae=""+Ae,be!==null&&be.tag===6?(h(Se,be.sibling),Be=E(be,Ae),Be.return=Se,Se=Be):(h(Se,be),Be=Gd(Ae,Se.mode,Be),Be.return=Se,Se=Be),re(Se)):h(Se,be)}return function(Se,be,Ae,Be){try{ih=0;var it=Kt(Se,be,Ae,Be);return Pc=null,it}catch(ct){if(ct===Kd||ct===bg)throw ct;var Et=Ir(29,ct,null,Se.mode);return Et.lanes=Be,Et.return=Se,Et}finally{}}}var Rc=R4(!0),M4=R4(!1),zi=k(null),Ia=null;function zs(o){var l=o.alternate;W(Wn,Wn.current&1),W(zi,o),Ia===null&&(l===null||Oc.current!==null||l.memoizedState!==null)&&(Ia=o)}function N4(o){if(o.tag===22){if(W(Wn,Wn.current),W(zi,o),Ia===null){var l=o.alternate;l!==null&&l.memoizedState!==null&&(Ia=o)}}else $s()}function $s(){W(Wn,Wn.current),W(zi,zi.current)}function Ro(o){J(zi),Ia===o&&(Ia=null),J(Wn)}var Wn=k(0);function Mg(o){for(var l=o;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||j_(h)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function z1(o,l,h,b){l=o.memoizedState,h=h(b,l),h=h==null?l:p({},l,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var $1={enqueueSetState:function(o,l,h){o=o._reactInternals;var b=mi(),E=Is(b);E.payload=l,h!=null&&(E.callback=h),l=Us(o,E,b),l!==null&&(gi(l,o,b),Xd(l,o,b))},enqueueReplaceState:function(o,l,h){o=o._reactInternals;var b=mi(),E=Is(b);E.tag=1,E.payload=l,h!=null&&(E.callback=h),l=Us(o,E,b),l!==null&&(gi(l,o,b),Xd(l,o,b))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var h=mi(),b=Is(h);b.tag=2,l!=null&&(b.callback=l),l=Us(o,b,h),l!==null&&(gi(l,o,h),Xd(l,o,h))}};function L4(o,l,h,b,E,N,re){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(b,N,re):l.prototype&&l.prototype.isPureReactComponent?!Lr(h,b)||!Lr(E,N):!0}function D4(o,l,h,b){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(h,b),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(h,b),l.state!==o&&$1.enqueueReplaceState(l,l.state,null)}function lu(o,l){var h=l;if("ref"in l){h={};for(var b in l)b!=="ref"&&(h[b]=l[b])}if(o=o.defaultProps){h===l&&(h=p({},h));for(var E in o)h[E]===void 0&&(h[E]=o[E])}return h}var Ng=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function k4(o){Ng(o)}function I4(o){console.error(o)}function U4(o){Ng(o)}function Lg(o,l){try{var h=o.onUncaughtError;h(l.value,{componentStack:l.stack})}catch(b){setTimeout(function(){throw b})}}function B4(o,l,h){try{var b=o.onCaughtError;b(h.value,{componentStack:h.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function F1(o,l,h){return h=Is(h),h.tag=3,h.payload={element:null},h.callback=function(){Lg(o,l)},h}function z4(o){return o=Is(o),o.tag=3,o}function $4(o,l,h,b){var E=h.type.getDerivedStateFromError;if(typeof E=="function"){var N=b.value;o.payload=function(){return E(N)},o.callback=function(){B4(l,h,b)}}var re=h.stateNode;re!==null&&typeof re.componentDidCatch=="function"&&(o.callback=function(){B4(l,h,b),typeof E!="function"&&(Ws===null?Ws=new Set([this]):Ws.add(this));var le=b.stack;this.componentDidCatch(b.value,{componentStack:le!==null?le:""})})}function yV(o,l,h,b,E){if(h.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(l=h.alternate,l!==null&&iu(l,h,E,!0),h=zi.current,h!==null){switch(h.tag){case 13:return Ia===null?d_():h.alternate===null&&jn===0&&(jn=3),h.flags&=-257,h.flags|=65536,h.lanes=E,b===v1?h.flags|=16384:(l=h.updateQueue,l===null?h.updateQueue=new Set([b]):l.add(b),p_(o,b,E)),!1;case 22:return h.flags|=65536,b===v1?h.flags|=16384:(l=h.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([b])},h.updateQueue=l):(h=l.retryQueue,h===null?l.retryQueue=new Set([b]):h.add(b)),p_(o,b,E)),!1}throw Error(r(435,h.tag))}return p_(o,b,E),d_(),!1}if(yt)return l=zi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=E,b!==nr&&(o=Error(r(422),{cause:b}),Ds(Dr(o,h)))):(b!==nr&&(l=Error(r(423),{cause:b}),Ds(Dr(l,h))),o=o.current.alternate,o.flags|=65536,E&=-E,o.lanes|=E,b=Dr(b,h),E=F1(o.stateNode,b,E),_1(o,E),jn!==4&&(jn=2)),!1;var N=Error(r(520),{cause:b});if(N=Dr(N,h),dh===null?dh=[N]:dh.push(N),jn!==4&&(jn=2),l===null)return!0;b=Dr(b,h),h=l;do{switch(h.tag){case 3:return h.flags|=65536,o=E&-E,h.lanes|=o,o=F1(h.stateNode,b,o),_1(h,o),!1;case 1:if(l=h.type,N=h.stateNode,(h.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Ws===null||!Ws.has(N))))return h.flags|=65536,E&=-E,h.lanes|=E,E=z4(E),$4(E,o,h,b),_1(h,E),!1}h=h.return}while(h!==null);return!1}var F4=Error(r(461)),rr=!1;function hr(o,l,h,b){l.child=o===null?M4(l,null,h,b):Rc(l,o.child,h,b)}function q4(o,l,h,b,E){h=h.render;var N=l.ref;if("ref"in b){var re={};for(var le in b)le!=="ref"&&(re[le]=b[le])}else re=b;return au(l),b=A1(o,l,h,re,N,E),le=O1(),o!==null&&!rr?(E1(o,l,E),Mo(o,l,E)):(yt&&le&&qe(l),l.flags|=1,hr(o,l,b,E),l.child)}function V4(o,l,h,b,E){if(o===null){var N=h.type;return typeof N=="function"&&!xc(N)&&N.defaultProps===void 0&&h.compare===null?(l.tag=15,l.type=N,H4(o,l,N,b,E)):(o=tu(h.type,null,b,l,l.mode,E),o.ref=l.ref,o.return=l,l.child=o)}if(N=o.child,!Z1(o,E)){var re=N.memoizedProps;if(h=h.compare,h=h!==null?h:Lr,h(re,b)&&o.ref===l.ref)return Mo(o,l,E)}return l.flags|=1,o=Ui(N,b),o.ref=l.ref,o.return=l,l.child=o}function H4(o,l,h,b,E){if(o!==null){var N=o.memoizedProps;if(Lr(N,b)&&o.ref===l.ref)if(rr=!1,l.pendingProps=b=N,Z1(o,E))(o.flags&131072)!==0&&(rr=!0);else return l.lanes=o.lanes,Mo(o,l,E)}return q1(o,l,h,b,E)}function G4(o,l,h){var b=l.pendingProps,E=b.children,N=o!==null?o.memoizedState:null;if(b.mode==="hidden"){if((l.flags&128)!==0){if(b=N!==null?N.baseLanes|h:h,o!==null){for(E=l.child=o.child,N=0;E!==null;)N=N|E.lanes|E.childLanes,E=E.sibling;l.childLanes=N&~b}else l.childLanes=0,l.child=null;return W4(o,l,b,h)}if((h&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&yg(l,N!==null?N.cachePool:null),N!==null?H3(l,N):w1(),N4(l);else return l.lanes=l.childLanes=536870912,W4(o,l,N!==null?N.baseLanes|h:h,h)}else N!==null?(yg(l,N.cachePool),H3(l,N),$s(),l.memoizedState=null):(o!==null&&yg(l,null),w1(),$s());return hr(o,l,E,h),l.child}function W4(o,l,h,b){var E=g1();return E=E===null?null:{parent:Gn._currentValue,pool:E},l.memoizedState={baseLanes:h,cachePool:E},o!==null&&yg(l,null),w1(),N4(l),o!==null&&iu(o,l,b,!0),null}function Dg(o,l){var h=l.ref;if(h===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(o===null||o.ref!==h)&&(l.flags|=4194816)}}function q1(o,l,h,b,E){return au(l),h=A1(o,l,h,b,void 0,E),b=O1(),o!==null&&!rr?(E1(o,l,E),Mo(o,l,E)):(yt&&b&&qe(l),l.flags|=1,hr(o,l,h,E),l.child)}function Y4(o,l,h,b,E,N){return au(l),l.updateQueue=null,h=W3(l,b,h,E),G3(o),b=O1(),o!==null&&!rr?(E1(o,l,N),Mo(o,l,N)):(yt&&b&&qe(l),l.flags|=1,hr(o,l,h,N),l.child)}function K4(o,l,h,b,E){if(au(l),l.stateNode===null){var N=To,re=h.contextType;typeof re=="object"&&re!==null&&(N=Ar(re)),N=new h(b,N),l.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,N.updater=$1,l.stateNode=N,N._reactInternals=l,N=l.stateNode,N.props=b,N.state=l.memoizedState,N.refs={},y1(l),re=h.contextType,N.context=typeof re=="object"&&re!==null?Ar(re):To,N.state=l.memoizedState,re=h.getDerivedStateFromProps,typeof re=="function"&&(z1(l,h,re,b),N.state=l.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof N.getSnapshotBeforeUpdate=="function"||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(re=N.state,typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount(),re!==N.state&&$1.enqueueReplaceState(N,N.state,null),Jd(l,b,N,E),Qd(),N.state=l.memoizedState),typeof N.componentDidMount=="function"&&(l.flags|=4194308),b=!0}else if(o===null){N=l.stateNode;var le=l.memoizedProps,ge=lu(h,le);N.props=ge;var Ee=N.context,Ie=h.contextType;re=To,typeof Ie=="object"&&Ie!==null&&(re=Ar(Ie));var ze=h.getDerivedStateFromProps;Ie=typeof ze=="function"||typeof N.getSnapshotBeforeUpdate=="function",le=l.pendingProps!==le,Ie||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(le||Ee!==re)&&D4(l,N,b,re),ks=!1;var Pe=l.memoizedState;N.state=Pe,Jd(l,b,N,E),Qd(),Ee=l.memoizedState,le||Pe!==Ee||ks?(typeof ze=="function"&&(z1(l,h,ze,b),Ee=l.memoizedState),(ge=ks||L4(l,h,ge,b,Pe,Ee,re))?(Ie||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(l.flags|=4194308)):(typeof N.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=b,l.memoizedState=Ee),N.props=b,N.state=Ee,N.context=re,b=ge):(typeof N.componentDidMount=="function"&&(l.flags|=4194308),b=!1)}else{N=l.stateNode,b1(o,l),re=l.memoizedProps,Ie=lu(h,re),N.props=Ie,ze=l.pendingProps,Pe=N.context,Ee=h.contextType,ge=To,typeof Ee=="object"&&Ee!==null&&(ge=Ar(Ee)),le=h.getDerivedStateFromProps,(Ee=typeof le=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(re!==ze||Pe!==ge)&&D4(l,N,b,ge),ks=!1,Pe=l.memoizedState,N.state=Pe,Jd(l,b,N,E),Qd();var Re=l.memoizedState;re!==ze||Pe!==Re||ks||o!==null&&o.dependencies!==null&&gg(o.dependencies)?(typeof le=="function"&&(z1(l,h,le,b),Re=l.memoizedState),(Ie=ks||L4(l,h,Ie,b,Pe,Re,ge)||o!==null&&o.dependencies!==null&&gg(o.dependencies))?(Ee||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(b,Re,ge),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(b,Re,ge)),typeof N.componentDidUpdate=="function"&&(l.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof N.componentDidUpdate!="function"||re===o.memoizedProps&&Pe===o.memoizedState||(l.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||re===o.memoizedProps&&Pe===o.memoizedState||(l.flags|=1024),l.memoizedProps=b,l.memoizedState=Re),N.props=b,N.state=Re,N.context=ge,b=Ie):(typeof N.componentDidUpdate!="function"||re===o.memoizedProps&&Pe===o.memoizedState||(l.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||re===o.memoizedProps&&Pe===o.memoizedState||(l.flags|=1024),b=!1)}return N=b,Dg(o,l),b=(l.flags&128)!==0,N||b?(N=l.stateNode,h=b&&typeof h.getDerivedStateFromError!="function"?null:N.render(),l.flags|=1,o!==null&&b?(l.child=Rc(l,o.child,null,E),l.child=Rc(l,null,h,E)):hr(o,l,h,E),l.memoizedState=N.state,o=l.child):o=Mo(o,l,E),o}function Z4(o,l,h,b){return Ls(),l.flags|=256,hr(o,l,h,b),l.child}var V1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function H1(o){return{baseLanes:o,cachePool:I3()}}function G1(o,l,h){return o=o!==null?o.childLanes&~h:0,l&&(o|=$i),o}function X4(o,l,h){var b=l.pendingProps,E=!1,N=(l.flags&128)!==0,re;if((re=N)||(re=o!==null&&o.memoizedState===null?!1:(Wn.current&2)!==0),re&&(E=!0,l.flags&=-129),re=(l.flags&32)!==0,l.flags&=-33,o===null){if(yt){if(E?zs(l):$s(),yt){var le=at,ge;if(ge=le){e:{for(ge=le,le=An;ge.nodeType!==8;){if(!le){le=null;break e}if(ge=oa(ge.nextSibling),ge===null){le=null;break e}}le=ge}le!==null?(l.memoizedState={dehydrated:le,treeContext:G!==null?{id:oe,overflow:me}:null,retryLane:536870912,hydrationErrors:null},ge=Ir(18,null,null,0),ge.stateNode=le,ge.return=l,l.child=ge,rt=l,at=null,ge=!0):ge=!1}ge||Zr(l)}if(le=l.memoizedState,le!==null&&(le=le.dehydrated,le!==null))return j_(le)?l.lanes=32:l.lanes=536870912,null;Ro(l)}return le=b.children,b=b.fallback,E?($s(),E=l.mode,le=kg({mode:"hidden",children:le},E),b=Da(b,E,h,null),le.return=l,b.return=l,le.sibling=b,l.child=le,E=l.child,E.memoizedState=H1(h),E.childLanes=G1(o,re,h),l.memoizedState=V1,b):(zs(l),W1(l,le))}if(ge=o.memoizedState,ge!==null&&(le=ge.dehydrated,le!==null)){if(N)l.flags&256?(zs(l),l.flags&=-257,l=Y1(o,l,h)):l.memoizedState!==null?($s(),l.child=o.child,l.flags|=128,l=null):($s(),E=b.fallback,le=l.mode,b=kg({mode:"visible",children:b.children},le),E=Da(E,le,h,null),E.flags|=2,b.return=l,E.return=l,b.sibling=E,l.child=b,Rc(l,o.child,null,h),b=l.child,b.memoizedState=H1(h),b.childLanes=G1(o,re,h),l.memoizedState=V1,l=E);else if(zs(l),j_(le)){if(re=le.nextSibling&&le.nextSibling.dataset,re)var Ee=re.dgst;re=Ee,b=Error(r(419)),b.stack="",b.digest=re,Ds({value:b,source:null,stack:null}),l=Y1(o,l,h)}else if(rr||iu(o,l,h,!1),re=(h&o.childLanes)!==0,rr||re){if(re=sn,re!==null&&(b=h&-h,b=(b&42)!==0?1:yn(b),b=(b&(re.suspendedLanes|h))!==0?0:b,b!==0&&b!==ge.retryLane))throw ge.retryLane=b,Ms(o,b),gi(re,o,b),F4;le.data==="$?"||d_(),l=Y1(o,l,h)}else le.data==="$?"?(l.flags|=192,l.child=o.child,l=null):(o=ge.treeContext,at=oa(le.nextSibling),rt=l,yt=!0,on=null,An=!1,o!==null&&(A[D++]=oe,A[D++]=me,A[D++]=G,oe=o.id,me=o.overflow,G=l),l=W1(l,b.children),l.flags|=4096);return l}return E?($s(),E=b.fallback,le=l.mode,ge=o.child,Ee=ge.sibling,b=Ui(ge,{mode:"hidden",children:b.children}),b.subtreeFlags=ge.subtreeFlags&65011712,Ee!==null?E=Ui(Ee,E):(E=Da(E,le,h,null),E.flags|=2),E.return=l,b.return=l,b.sibling=E,l.child=b,b=E,E=l.child,le=o.child.memoizedState,le===null?le=H1(h):(ge=le.cachePool,ge!==null?(Ee=Gn._currentValue,ge=ge.parent!==Ee?{parent:Ee,pool:Ee}:ge):ge=I3(),le={baseLanes:le.baseLanes|h,cachePool:ge}),E.memoizedState=le,E.childLanes=G1(o,re,h),l.memoizedState=V1,b):(zs(l),h=o.child,o=h.sibling,h=Ui(h,{mode:"visible",children:b.children}),h.return=l,h.sibling=null,o!==null&&(re=l.deletions,re===null?(l.deletions=[o],l.flags|=16):re.push(o)),l.child=h,l.memoizedState=null,h)}function W1(o,l){return l=kg({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function kg(o,l){return o=Ir(22,o,null,l),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Y1(o,l,h){return Rc(l,o.child,null,h),o=W1(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function Q4(o,l,h){o.lanes|=l;var b=o.alternate;b!==null&&(b.lanes|=l),ru(o.return,l,h)}function K1(o,l,h,b,E){var N=o.memoizedState;N===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:b,tail:h,tailMode:E}:(N.isBackwards=l,N.rendering=null,N.renderingStartTime=0,N.last=b,N.tail=h,N.tailMode=E)}function J4(o,l,h){var b=l.pendingProps,E=b.revealOrder,N=b.tail;if(hr(o,l,b.children,h),b=Wn.current,(b&2)!==0)b=b&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Q4(o,h,l);else if(o.tag===19)Q4(o,h,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}b&=1}switch(W(Wn,b),E){case"forwards":for(h=l.child,E=null;h!==null;)o=h.alternate,o!==null&&Mg(o)===null&&(E=h),h=h.sibling;h=E,h===null?(E=l.child,l.child=null):(E=h.sibling,h.sibling=null),K1(l,!1,E,h,N);break;case"backwards":for(h=null,E=l.child,l.child=null;E!==null;){if(o=E.alternate,o!==null&&Mg(o)===null){l.child=E;break}o=E.sibling,E.sibling=h,h=E,E=o}K1(l,!0,h,null,N);break;case"together":K1(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Mo(o,l,h){if(o!==null&&(l.dependencies=o.dependencies),Gs|=l.lanes,(h&l.childLanes)===0)if(o!==null){if(iu(o,l,h,!1),(h&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,h=Ui(o,o.pendingProps),l.child=h,h.return=l;o.sibling!==null;)o=o.sibling,h=h.sibling=Ui(o,o.pendingProps),h.return=l;h.sibling=null}return l.child}function Z1(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&gg(o)))}function bV(o,l,h){switch(l.tag){case 3:z(l,l.stateNode.containerInfo),ka(l,Gn,o.memoizedState.cache),Ls();break;case 27:case 5:ee(l);break;case 4:z(l,l.stateNode.containerInfo);break;case 10:ka(l,l.type,l.memoizedProps.value);break;case 13:var b=l.memoizedState;if(b!==null)return b.dehydrated!==null?(zs(l),l.flags|=128,null):(h&l.child.childLanes)!==0?X4(o,l,h):(zs(l),o=Mo(o,l,h),o!==null?o.sibling:null);zs(l);break;case 19:var E=(o.flags&128)!==0;if(b=(h&l.childLanes)!==0,b||(iu(o,l,h,!1),b=(h&l.childLanes)!==0),E){if(b)return J4(o,l,h);l.flags|=128}if(E=l.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),W(Wn,Wn.current),b)break;return null;case 22:case 23:return l.lanes=0,G4(o,l,h);case 24:ka(l,Gn,o.memoizedState.cache)}return Mo(o,l,h)}function ej(o,l,h){if(o!==null)if(o.memoizedProps!==l.pendingProps)rr=!0;else{if(!Z1(o,h)&&(l.flags&128)===0)return rr=!1,bV(o,l,h);rr=(o.flags&131072)!==0}else rr=!1,yt&&(l.flags&1048576)!==0&&Me(l,g,l.index);switch(l.lanes=0,l.tag){case 16:e:{o=l.pendingProps;var b=l.elementType,E=b._init;if(b=E(b._payload),l.type=b,typeof b=="function")xc(b)?(o=lu(b,o),l.tag=1,l=K4(null,l,b,o,h)):(l.tag=0,l=q1(null,l,b,o,h));else{if(b!=null){if(E=b.$$typeof,E===P){l.tag=11,l=q4(null,l,b,o,h);break e}else if(E===$){l.tag=14,l=V4(null,l,b,o,h);break e}}throw l=Q(b)||b,Error(r(306,l,""))}}return l;case 0:return q1(o,l,l.type,l.pendingProps,h);case 1:return b=l.type,E=lu(b,l.pendingProps),K4(o,l,b,E,h);case 3:e:{if(z(l,l.stateNode.containerInfo),o===null)throw Error(r(387));b=l.pendingProps;var N=l.memoizedState;E=N.element,b1(o,l),Jd(l,b,null,h);var re=l.memoizedState;if(b=re.cache,ka(l,Gn,b),b!==N.cache&&Sc(l,[Gn],h,!0),Qd(),b=re.element,N.isDehydrated)if(N={element:b,isDehydrated:!1,cache:re.cache},l.updateQueue.baseState=N,l.memoizedState=N,l.flags&256){l=Z4(o,l,b,h);break e}else if(b!==E){E=Dr(Error(r(424)),l),Ds(E),l=Z4(o,l,b,h);break e}else{switch(o=l.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(at=oa(o.firstChild),rt=l,yt=!0,on=null,An=!0,h=M4(l,null,b,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Ls(),b===E){l=Mo(o,l,h);break e}hr(o,l,b,h)}l=l.child}return l;case 26:return Dg(o,l),o===null?(h=iP(l.type,null,l.pendingProps,null))?l.memoizedState=h:yt||(h=l.type,o=l.pendingProps,b=Zg(ce.current).createElement(h),b[Mt]=l,b[nn]=o,mr(b,h,o),Bn(b),l.stateNode=b):l.memoizedState=iP(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return ee(l),o===null&&yt&&(b=l.stateNode=tP(l.type,l.pendingProps,ce.current),rt=l,An=!0,E=at,Zs(l.type)?(P_=E,at=oa(b.firstChild)):at=E),hr(o,l,l.pendingProps.children,h),Dg(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&yt&&((E=b=at)&&(b=WV(b,l.type,l.pendingProps,An),b!==null?(l.stateNode=b,rt=l,at=oa(b.firstChild),An=!1,E=!0):E=!1),E||Zr(l)),ee(l),E=l.type,N=l.pendingProps,re=o!==null?o.memoizedProps:null,b=N.children,O_(E,N)?b=null:re!==null&&O_(E,re)&&(l.flags|=32),l.memoizedState!==null&&(E=A1(o,l,fV,null,null,h),xh._currentValue=E),Dg(o,l),hr(o,l,b,h),l.child;case 6:return o===null&&yt&&((o=h=at)&&(h=YV(h,l.pendingProps,An),h!==null?(l.stateNode=h,rt=l,at=null,o=!0):o=!1),o||Zr(l)),null;case 13:return X4(o,l,h);case 4:return z(l,l.stateNode.containerInfo),b=l.pendingProps,o===null?l.child=Rc(l,null,b,h):hr(o,l,b,h),l.child;case 11:return q4(o,l,l.type,l.pendingProps,h);case 7:return hr(o,l,l.pendingProps,h),l.child;case 8:return hr(o,l,l.pendingProps.children,h),l.child;case 12:return hr(o,l,l.pendingProps.children,h),l.child;case 10:return b=l.pendingProps,ka(l,l.type,b.value),hr(o,l,b.children,h),l.child;case 9:return E=l.type._context,b=l.pendingProps.children,au(l),E=Ar(E),b=b(E),l.flags|=1,hr(o,l,b,h),l.child;case 14:return V4(o,l,l.type,l.pendingProps,h);case 15:return H4(o,l,l.type,l.pendingProps,h);case 19:return J4(o,l,h);case 31:return b=l.pendingProps,h=l.mode,b={mode:b.mode,children:b.children},o===null?(h=kg(b,h),h.ref=l.ref,l.child=h,h.return=l,l=h):(h=Ui(o.child,b),h.ref=l.ref,l.child=h,h.return=l,l=h),l;case 22:return G4(o,l,h);case 24:return au(l),b=Ar(Gn),o===null?(E=g1(),E===null&&(E=sn,N=p1(),E.pooledCache=N,N.refCount++,N!==null&&(E.pooledCacheLanes|=h),E=N),l.memoizedState={parent:b,cache:E},y1(l),ka(l,Gn,E)):((o.lanes&h)!==0&&(b1(o,l),Jd(l,null,null,h),Qd()),E=o.memoizedState,N=l.memoizedState,E.parent!==b?(E={parent:b,cache:b},l.memoizedState=E,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=E),ka(l,Gn,b)):(b=N.cache,ka(l,Gn,b),b!==E.cache&&Sc(l,[Gn],h,!0))),hr(o,l,l.pendingProps.children,h),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function No(o){o.flags|=4}function tj(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!uP(l)){if(l=zi.current,l!==null&&((Lt&4194048)===Lt?Ia!==null:(Lt&62914560)!==Lt&&(Lt&536870912)===0||l!==Ia))throw Zd=v1,U3;o.flags|=8192}}function Ig(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?ii():536870912,o.lanes|=l,Dc|=l)}function oh(o,l){if(!yt)switch(o.tailMode){case"hidden":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var b=null;h!==null;)h.alternate!==null&&(b=h),h=h.sibling;b===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:b.sibling=null}}function On(o){var l=o.alternate!==null&&o.alternate.child===o.child,h=0,b=0;if(l)for(var E=o.child;E!==null;)h|=E.lanes|E.childLanes,b|=E.subtreeFlags&65011712,b|=E.flags&65011712,E.return=o,E=E.sibling;else for(E=o.child;E!==null;)h|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=o,E=E.sibling;return o.subtreeFlags|=b,o.childLanes=h,l}function _V(o,l,h){var b=l.pendingProps;switch(Je(l),l.tag){case 31: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,b=null,o!==null&&(b=o.memoizedState.cache),l.memoizedState.cache!==b&&(l.flags|=2048),ia(Gn),q(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(nu(l)?No(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,mg())),On(l),null;case 26:return h=l.memoizedState,o===null?(No(l),h!==null?(On(l),tj(l,h)):(On(l),l.flags&=-16777217)):h?h!==o.memoizedState?(No(l),On(l),tj(l,h)):(On(l),l.flags&=-16777217):(o.memoizedProps!==b&&No(l),On(l),l.flags&=-16777217),null;case 27:ue(l),h=ce.current;var E=l.type;if(o!==null&&l.stateNode!=null)o.memoizedProps!==b&&No(l);else{if(!b){if(l.stateNode===null)throw Error(r(166));return On(l),null}o=ie.current,nu(l)?hg(l):(o=tP(E,b,h),l.stateNode=o,No(l))}return On(l),null;case 5:if(ue(l),h=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==b&&No(l);else{if(!b){if(l.stateNode===null)throw Error(r(166));return On(l),null}if(o=ie.current,nu(l))hg(l);else{switch(E=Zg(ce.current),o){case 1:o=E.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:o=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":o=E.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":o=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":o=E.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof b.is=="string"?E.createElement("select",{is:b.is}):E.createElement("select"),b.multiple?o.multiple=!0:b.size&&(o.size=b.size);break;default:o=typeof b.is=="string"?E.createElement(h,{is:b.is}):E.createElement(h)}}o[Mt]=l,o[nn]=b;e:for(E=l.child;E!==null;){if(E.tag===5||E.tag===6)o.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===l)break e;for(;E.sibling===null;){if(E.return===null||E.return===l)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}l.stateNode=o;e:switch(mr(o,h,b),h){case"button":case"input":case"select":case"textarea":o=!!b.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&No(l)}}return On(l),l.flags&=-16777217,null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==b&&No(l);else{if(typeof b!="string"&&l.stateNode===null)throw Error(r(166));if(o=ce.current,nu(l)){if(o=l.stateNode,h=l.memoizedProps,b=null,E=rt,E!==null)switch(E.tag){case 27:case 5:b=E.memoizedProps}o[Mt]=l,o=!!(o.nodeValue===h||b!==null&&b.suppressHydrationWarning===!0||Yj(o.nodeValue,h)),o||Zr(l)}else o=Zg(o).createTextNode(b),o[Mt]=l,l.stateNode=o}return On(l),null;case 13:if(b=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(E=nu(l),b!==null&&b.dehydrated!==null){if(o===null){if(!E)throw Error(r(318));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Mt]=l}else Ls(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;On(l),E=!1}else E=mg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=E),E=!0;if(!E)return l.flags&256?(Ro(l),l):(Ro(l),null)}if(Ro(l),(l.flags&128)!==0)return l.lanes=h,l;if(h=b!==null,o=o!==null&&o.memoizedState!==null,h){b=l.child,E=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(E=b.alternate.memoizedState.cachePool.pool);var N=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(N=b.memoizedState.cachePool.pool),N!==E&&(b.flags|=2048)}return h!==o&&h&&(l.child.flags|=8192),Ig(l,l.updateQueue),On(l),null;case 4:return q(),o===null&&x_(l.stateNode.containerInfo),On(l),null;case 10:return ia(l.type),On(l),null;case 19:if(J(Wn),E=l.memoizedState,E===null)return On(l),null;if(b=(l.flags&128)!==0,N=E.rendering,N===null)if(b)oh(E,!1);else{if(jn!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(N=Mg(o),N!==null){for(l.flags|=128,oh(E,!1),o=N.updateQueue,l.updateQueue=o,Ig(l,o),l.subtreeFlags=0,o=h,h=l.child;h!==null;)Hd(h,o),h=h.sibling;return W(Wn,Wn.current&1|2),l.child}o=o.sibling}E.tail!==null&&xe()>zg&&(l.flags|=128,b=!0,oh(E,!1),l.lanes=4194304)}else{if(!b)if(o=Mg(N),o!==null){if(l.flags|=128,b=!0,o=o.updateQueue,l.updateQueue=o,Ig(l,o),oh(E,!0),E.tail===null&&E.tailMode==="hidden"&&!N.alternate&&!yt)return On(l),null}else 2*xe()-E.renderingStartTime>zg&&h!==536870912&&(l.flags|=128,b=!0,oh(E,!1),l.lanes=4194304);E.isBackwards?(N.sibling=l.child,l.child=N):(o=E.last,o!==null?o.sibling=N:l.child=N,E.last=N)}return E.tail!==null?(l=E.tail,E.rendering=l,E.tail=l.sibling,E.renderingStartTime=xe(),l.sibling=null,o=Wn.current,W(Wn,b?o&1|2:o&1),l):(On(l),null);case 22:case 23:return Ro(l),S1(),b=l.memoizedState!==null,o!==null?o.memoizedState!==null!==b&&(l.flags|=8192):b&&(l.flags|=8192),b?(h&536870912)!==0&&(l.flags&128)===0&&(On(l),l.subtreeFlags&6&&(l.flags|=8192)):On(l),h=l.updateQueue,h!==null&&Ig(l,h.retryQueue),h=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),b=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(b=l.memoizedState.cachePool.pool),b!==h&&(l.flags|=2048),o!==null&&J(ou),null;case 24:return h=null,o!==null&&(h=o.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),ia(Gn),On(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function xV(o,l){switch(Je(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ia(Gn),q(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return ue(l),null;case 13:if(Ro(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ls()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return J(Wn),null;case 4:return q(),null;case 10:return ia(l.type),null;case 22:case 23:return Ro(l),S1(),o!==null&&J(ou),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return ia(Gn),null;case 25:return null;default:return null}}function nj(o,l){switch(Je(l),l.tag){case 3:ia(Gn),q();break;case 26:case 27:case 5:ue(l);break;case 4:q();break;case 13:Ro(l);break;case 19:J(Wn);break;case 10:ia(l.type);break;case 22:case 23:Ro(l),S1(),o!==null&&J(ou);break;case 24:ia(Gn)}}function sh(o,l){try{var h=l.updateQueue,b=h!==null?h.lastEffect:null;if(b!==null){var E=b.next;h=E;do{if((h.tag&o)===o){b=void 0;var N=h.create,re=h.inst;b=N(),re.destroy=b}h=h.next}while(h!==E)}}catch(le){Qt(l,l.return,le)}}function Fs(o,l,h){try{var b=l.updateQueue,E=b!==null?b.lastEffect:null;if(E!==null){var N=E.next;b=N;do{if((b.tag&o)===o){var re=b.inst,le=re.destroy;if(le!==void 0){re.destroy=void 0,E=l;var ge=h,Ee=le;try{Ee()}catch(Ie){Qt(E,ge,Ie)}}}b=b.next}while(b!==N)}}catch(Ie){Qt(l,l.return,Ie)}}function rj(o){var l=o.updateQueue;if(l!==null){var h=o.stateNode;try{V3(l,h)}catch(b){Qt(o,o.return,b)}}}function ij(o,l,h){h.props=lu(o.type,o.memoizedProps),h.state=o.memoizedState;try{h.componentWillUnmount()}catch(b){Qt(o,l,b)}}function lh(o,l){try{var h=o.ref;if(h!==null){switch(o.tag){case 26:case 27:case 5:var b=o.stateNode;break;case 30:b=o.stateNode;break;default:b=o.stateNode}typeof h=="function"?o.refCleanup=h(b):h.current=b}}catch(E){Qt(o,l,E)}}function Ua(o,l){var h=o.ref,b=o.refCleanup;if(h!==null)if(typeof b=="function")try{b()}catch(E){Qt(o,l,E)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(E){Qt(o,l,E)}else h.current=null}function aj(o){var l=o.type,h=o.memoizedProps,b=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":h.autoFocus&&b.focus();break e;case"img":h.src?b.src=h.src:h.srcSet&&(b.srcset=h.srcSet)}}catch(E){Qt(o,o.return,E)}}function X1(o,l,h){try{var b=o.stateNode;FV(b,o.type,h,l),b[nn]=l}catch(E){Qt(o,o.return,E)}}function oj(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Zs(o.type)||o.tag===4}function Q1(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||oj(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Zs(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function J1(o,l,h){var b=o.tag;if(b===5||b===6)o=o.stateNode,l?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(o,l):(l=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,l.appendChild(o),h=h._reactRootContainer,h!=null||l.onclick!==null||(l.onclick=Kg));else if(b!==4&&(b===27&&Zs(o.type)&&(h=o.stateNode,l=null),o=o.child,o!==null))for(J1(o,l,h),o=o.sibling;o!==null;)J1(o,l,h),o=o.sibling}function Ug(o,l,h){var b=o.tag;if(b===5||b===6)o=o.stateNode,l?h.insertBefore(o,l):h.appendChild(o);else if(b!==4&&(b===27&&Zs(o.type)&&(h=o.stateNode),o=o.child,o!==null))for(Ug(o,l,h),o=o.sibling;o!==null;)Ug(o,l,h),o=o.sibling}function sj(o){var l=o.stateNode,h=o.memoizedProps;try{for(var b=o.type,E=l.attributes;E.length;)l.removeAttributeNode(E[0]);mr(l,b,h),l[Mt]=o,l[nn]=h}catch(N){Qt(o,o.return,N)}}var Lo=!1,kn=!1,e_=!1,lj=typeof WeakSet=="function"?WeakSet:Set,ir=null;function wV(o,l){if(o=o.containerInfo,C_=nv,o=Kl(o),Zl(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else e:{h=(h=o.ownerDocument)&&h.defaultView||window;var b=h.getSelection&&h.getSelection();if(b&&b.rangeCount!==0){h=b.anchorNode;var E=b.anchorOffset,N=b.focusNode;b=b.focusOffset;try{h.nodeType,N.nodeType}catch{h=null;break e}var re=0,le=-1,ge=-1,Ee=0,Ie=0,ze=o,Pe=null;t:for(;;){for(var Re;ze!==h||E!==0&&ze.nodeType!==3||(le=re+E),ze!==N||b!==0&&ze.nodeType!==3||(ge=re+b),ze.nodeType===3&&(re+=ze.nodeValue.length),(Re=ze.firstChild)!==null;)Pe=ze,ze=Re;for(;;){if(ze===o)break t;if(Pe===h&&++Ee===E&&(le=re),Pe===N&&++Ie===b&&(ge=re),(Re=ze.nextSibling)!==null)break;ze=Pe,Pe=ze.parentNode}ze=Re}h=le===-1||ge===-1?null:{start:le,end:ge}}else h=null}h=h||{start:0,end:0}}else h=null;for(A_={focusedElem:o,selectionRange:h},nv=!1,ir=l;ir!==null;)if(l=ir,o=l.child,(l.subtreeFlags&1024)!==0&&o!==null)o.return=l,ir=o;else for(;ir!==null;){switch(l=ir,N=l.alternate,o=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&N!==null){o=void 0,h=l,E=N.memoizedProps,N=N.memoizedState,b=h.stateNode;try{var vt=lu(h.type,E,h.elementType===h.type);o=b.getSnapshotBeforeUpdate(vt,N),b.__reactInternalSnapshotBeforeUpdate=o}catch(dt){Qt(h,h.return,dt)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,h=o.nodeType,h===9)T_(o);else if(h===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":T_(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,ir=o;break}ir=l.return}}function uj(o,l,h){var b=h.flags;switch(h.tag){case 0:case 11:case 15:qs(o,h),b&4&&sh(5,h);break;case 1:if(qs(o,h),b&4)if(o=h.stateNode,l===null)try{o.componentDidMount()}catch(re){Qt(h,h.return,re)}else{var E=lu(h.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(E,l,o.__reactInternalSnapshotBeforeUpdate)}catch(re){Qt(h,h.return,re)}}b&64&&rj(h),b&512&&lh(h,h.return);break;case 3:if(qs(o,h),b&64&&(o=h.updateQueue,o!==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{V3(o,l)}catch(re){Qt(h,h.return,re)}}break;case 27:l===null&&b&4&&sj(h);case 26:case 5:qs(o,h),l===null&&b&4&&aj(h),b&512&&lh(h,h.return);break;case 12:qs(o,h);break;case 13:qs(o,h),b&4&&dj(o,h),b&64&&(o=h.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(h=RV.bind(null,h),KV(o,h))));break;case 22:if(b=h.memoizedState!==null||Lo,!b){l=l!==null&&l.memoizedState!==null||kn,E=Lo;var N=kn;Lo=b,(kn=l)&&!N?Vs(o,h,(h.subtreeFlags&8772)!==0):qs(o,h),Lo=E,kn=N}break;case 30:break;default:qs(o,h)}}function cj(o){var l=o.alternate;l!==null&&(o.alternate=null,cj(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&ic(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var _n=null,Qr=!1;function Do(o,l,h){for(h=h.child;h!==null;)fj(o,l,h),h=h.sibling}function fj(o,l,h){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Ne,h)}catch{}switch(h.tag){case 26:kn||Ua(h,l),Do(o,l,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:kn||Ua(h,l);var b=_n,E=Qr;Zs(h.type)&&(_n=h.stateNode,Qr=!1),Do(o,l,h),vh(h.stateNode),_n=b,Qr=E;break;case 5:kn||Ua(h,l);case 6:if(b=_n,E=Qr,_n=null,Do(o,l,h),_n=b,Qr=E,_n!==null)if(Qr)try{(_n.nodeType===9?_n.body:_n.nodeName==="HTML"?_n.ownerDocument.body:_n).removeChild(h.stateNode)}catch(N){Qt(h,l,N)}else try{_n.removeChild(h.stateNode)}catch(N){Qt(h,l,N)}break;case 18:_n!==null&&(Qr?(o=_n,Jj(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,h.stateNode),Ah(o)):Jj(_n,h.stateNode));break;case 4:b=_n,E=Qr,_n=h.stateNode.containerInfo,Qr=!0,Do(o,l,h),_n=b,Qr=E;break;case 0:case 11:case 14:case 15:kn||Fs(2,h,l),kn||Fs(4,h,l),Do(o,l,h);break;case 1:kn||(Ua(h,l),b=h.stateNode,typeof b.componentWillUnmount=="function"&&ij(h,l,b)),Do(o,l,h);break;case 21:Do(o,l,h);break;case 22:kn=(b=kn)||h.memoizedState!==null,Do(o,l,h),kn=b;break;default:Do(o,l,h)}}function dj(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ah(o)}catch(h){Qt(l,l.return,h)}}function SV(o){switch(o.tag){case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new lj),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new lj),l;default:throw Error(r(435,o.tag))}}function t_(o,l){var h=SV(o);l.forEach(function(b){var E=MV.bind(null,o,b);h.has(b)||(h.add(b),b.then(E,E))})}function di(o,l){var h=l.deletions;if(h!==null)for(var b=0;b<h.length;b++){var E=h[b],N=o,re=l,le=re;e:for(;le!==null;){switch(le.tag){case 27:if(Zs(le.type)){_n=le.stateNode,Qr=!1;break e}break;case 5:_n=le.stateNode,Qr=!1;break e;case 3:case 4:_n=le.stateNode.containerInfo,Qr=!0;break e}le=le.return}if(_n===null)throw Error(r(160));fj(N,re,E),_n=null,Qr=!1,N=E.alternate,N!==null&&(N.return=null),E.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)hj(l,o),l=l.sibling}var aa=null;function hj(o,l){var h=o.alternate,b=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:di(l,o),hi(o),b&4&&(Fs(3,o,o.return),sh(3,o),Fs(5,o,o.return));break;case 1:di(l,o),hi(o),b&512&&(kn||h===null||Ua(h,h.return)),b&64&&Lo&&(o=o.updateQueue,o!==null&&(b=o.callbacks,b!==null&&(h=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=h===null?b:h.concat(b))));break;case 26:var E=aa;if(di(l,o),hi(o),b&512&&(kn||h===null||Ua(h,h.return)),b&4){var N=h!==null?h.memoizedState:null;if(b=o.memoizedState,h===null)if(b===null)if(o.stateNode===null){e:{b=o.type,h=o.memoizedProps,E=E.ownerDocument||E;t:switch(b){case"title":N=E.getElementsByTagName("title")[0],(!N||N[hs]||N[Mt]||N.namespaceURI==="http://www.w3.org/2000/svg"||N.hasAttribute("itemprop"))&&(N=E.createElement(b),E.head.insertBefore(N,E.querySelector("head > title"))),mr(N,b,h),N[Mt]=o,Bn(N),b=N;break e;case"link":var re=sP("link","href",E).get(b+(h.href||""));if(re){for(var le=0;le<re.length;le++)if(N=re[le],N.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&N.getAttribute("rel")===(h.rel==null?null:h.rel)&&N.getAttribute("title")===(h.title==null?null:h.title)&&N.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){re.splice(le,1);break t}}N=E.createElement(b),mr(N,b,h),E.head.appendChild(N);break;case"meta":if(re=sP("meta","content",E).get(b+(h.content||""))){for(le=0;le<re.length;le++)if(N=re[le],N.getAttribute("content")===(h.content==null?null:""+h.content)&&N.getAttribute("name")===(h.name==null?null:h.name)&&N.getAttribute("property")===(h.property==null?null:h.property)&&N.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&N.getAttribute("charset")===(h.charSet==null?null:h.charSet)){re.splice(le,1);break t}}N=E.createElement(b),mr(N,b,h),E.head.appendChild(N);break;default:throw Error(r(468,b))}N[Mt]=o,Bn(N),b=N}o.stateNode=b}else lP(E,o.type,o.stateNode);else o.stateNode=oP(E,b,o.memoizedProps);else N!==b?(N===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):N.count--,b===null?lP(E,o.type,o.stateNode):oP(E,b,o.memoizedProps)):b===null&&o.stateNode!==null&&X1(o,o.memoizedProps,h.memoizedProps)}break;case 27:di(l,o),hi(o),b&512&&(kn||h===null||Ua(h,h.return)),h!==null&&b&4&&X1(o,o.memoizedProps,h.memoizedProps);break;case 5:if(di(l,o),hi(o),b&512&&(kn||h===null||Ua(h,h.return)),o.flags&32){E=o.stateNode;try{Ni(E,"")}catch(Re){Qt(o,o.return,Re)}}b&4&&o.stateNode!=null&&(E=o.memoizedProps,X1(o,E,h!==null?h.memoizedProps:E)),b&1024&&(e_=!0);break;case 6:if(di(l,o),hi(o),b&4){if(o.stateNode===null)throw Error(r(162));b=o.memoizedProps,h=o.stateNode;try{h.nodeValue=b}catch(Re){Qt(o,o.return,Re)}}break;case 3:if(Jg=null,E=aa,aa=Xg(l.containerInfo),di(l,o),aa=E,hi(o),b&4&&h!==null&&h.memoizedState.isDehydrated)try{Ah(l.containerInfo)}catch(Re){Qt(o,o.return,Re)}e_&&(e_=!1,pj(o));break;case 4:b=aa,aa=Xg(o.stateNode.containerInfo),di(l,o),hi(o),aa=b;break;case 12:di(l,o),hi(o);break;case 13:di(l,o),hi(o),o.child.flags&8192&&o.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(s_=xe()),b&4&&(b=o.updateQueue,b!==null&&(o.updateQueue=null,t_(o,b)));break;case 22:E=o.memoizedState!==null;var ge=h!==null&&h.memoizedState!==null,Ee=Lo,Ie=kn;if(Lo=Ee||E,kn=Ie||ge,di(l,o),kn=Ie,Lo=Ee,hi(o),b&8192)e:for(l=o.stateNode,l._visibility=E?l._visibility&-2:l._visibility|1,E&&(h===null||ge||Lo||kn||uu(o)),h=null,l=o;;){if(l.tag===5||l.tag===26){if(h===null){ge=h=l;try{if(N=ge.stateNode,E)re=N.style,typeof re.setProperty=="function"?re.setProperty("display","none","important"):re.display="none";else{le=ge.stateNode;var ze=ge.memoizedProps.style,Pe=ze!=null&&ze.hasOwnProperty("display")?ze.display:null;le.style.display=Pe==null||typeof Pe=="boolean"?"":(""+Pe).trim()}}catch(Re){Qt(ge,ge.return,Re)}}}else if(l.tag===6){if(h===null){ge=l;try{ge.stateNode.nodeValue=E?"":ge.memoizedProps}catch(Re){Qt(ge,ge.return,Re)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;h===l&&(h=null),l=l.return}h===l&&(h=null),l.sibling.return=l.return,l=l.sibling}b&4&&(b=o.updateQueue,b!==null&&(h=b.retryQueue,h!==null&&(b.retryQueue=null,t_(o,h))));break;case 19:di(l,o),hi(o),b&4&&(b=o.updateQueue,b!==null&&(o.updateQueue=null,t_(o,b)));break;case 30:break;case 21:break;default:di(l,o),hi(o)}}function hi(o){var l=o.flags;if(l&2){try{for(var h,b=o.return;b!==null;){if(oj(b)){h=b;break}b=b.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var E=h.stateNode,N=Q1(o);Ug(o,N,E);break;case 5:var re=h.stateNode;h.flags&32&&(Ni(re,""),h.flags&=-33);var le=Q1(o);Ug(o,le,re);break;case 3:case 4:var ge=h.stateNode.containerInfo,Ee=Q1(o);J1(o,Ee,ge);break;default:throw Error(r(161))}}catch(Ie){Qt(o,o.return,Ie)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function pj(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;pj(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function qs(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)uj(o,l.alternate,l),l=l.sibling}function uu(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:Fs(4,l,l.return),uu(l);break;case 1:Ua(l,l.return);var h=l.stateNode;typeof h.componentWillUnmount=="function"&&ij(l,l.return,h),uu(l);break;case 27:vh(l.stateNode);case 26:case 5:Ua(l,l.return),uu(l);break;case 22:l.memoizedState===null&&uu(l);break;case 30:uu(l);break;default:uu(l)}o=o.sibling}}function Vs(o,l,h){for(h=h&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var b=l.alternate,E=o,N=l,re=N.flags;switch(N.tag){case 0:case 11:case 15:Vs(E,N,h),sh(4,N);break;case 1:if(Vs(E,N,h),b=N,E=b.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(Ee){Qt(b,b.return,Ee)}if(b=N,E=b.updateQueue,E!==null){var le=b.stateNode;try{var ge=E.shared.hiddenCallbacks;if(ge!==null)for(E.shared.hiddenCallbacks=null,E=0;E<ge.length;E++)q3(ge[E],le)}catch(Ee){Qt(b,b.return,Ee)}}h&&re&64&&rj(N),lh(N,N.return);break;case 27:sj(N);case 26:case 5:Vs(E,N,h),h&&b===null&&re&4&&aj(N),lh(N,N.return);break;case 12:Vs(E,N,h);break;case 13:Vs(E,N,h),h&&re&4&&dj(E,N);break;case 22:N.memoizedState===null&&Vs(E,N,h),lh(N,N.return);break;case 30:break;default:Vs(E,N,h)}l=l.sibling}}function n_(o,l){var h=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==h&&(o!=null&&o.refCount++,h!=null&&Wd(h))}function r_(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Wd(o))}function Ba(o,l,h,b){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)mj(o,l,h,b),l=l.sibling}function mj(o,l,h,b){var E=l.flags;switch(l.tag){case 0:case 11:case 15:Ba(o,l,h,b),E&2048&&sh(9,l);break;case 1:Ba(o,l,h,b);break;case 3:Ba(o,l,h,b),E&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Wd(o)));break;case 12:if(E&2048){Ba(o,l,h,b),o=l.stateNode;try{var N=l.memoizedProps,re=N.id,le=N.onPostCommit;typeof le=="function"&&le(re,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ge){Qt(l,l.return,ge)}}else Ba(o,l,h,b);break;case 13:Ba(o,l,h,b);break;case 23:break;case 22:N=l.stateNode,re=l.alternate,l.memoizedState!==null?N._visibility&2?Ba(o,l,h,b):uh(o,l):N._visibility&2?Ba(o,l,h,b):(N._visibility|=2,Mc(o,l,h,b,(l.subtreeFlags&10256)!==0)),E&2048&&n_(re,l);break;case 24:Ba(o,l,h,b),E&2048&&r_(l.alternate,l);break;default:Ba(o,l,h,b)}}function Mc(o,l,h,b,E){for(E=E&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var N=o,re=l,le=h,ge=b,Ee=re.flags;switch(re.tag){case 0:case 11:case 15:Mc(N,re,le,ge,E),sh(8,re);break;case 23:break;case 22:var Ie=re.stateNode;re.memoizedState!==null?Ie._visibility&2?Mc(N,re,le,ge,E):uh(N,re):(Ie._visibility|=2,Mc(N,re,le,ge,E)),E&&Ee&2048&&n_(re.alternate,re);break;case 24:Mc(N,re,le,ge,E),E&&Ee&2048&&r_(re.alternate,re);break;default:Mc(N,re,le,ge,E)}l=l.sibling}}function uh(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var h=o,b=l,E=b.flags;switch(b.tag){case 22:uh(h,b),E&2048&&n_(b.alternate,b);break;case 24:uh(h,b),E&2048&&r_(b.alternate,b);break;default:uh(h,b)}l=l.sibling}}var ch=8192;function Nc(o){if(o.subtreeFlags&ch)for(o=o.child;o!==null;)gj(o),o=o.sibling}function gj(o){switch(o.tag){case 26:Nc(o),o.flags&ch&&o.memoizedState!==null&&lH(aa,o.memoizedState,o.memoizedProps);break;case 5:Nc(o);break;case 3:case 4:var l=aa;aa=Xg(o.stateNode.containerInfo),Nc(o),aa=l;break;case 22:o.memoizedState===null&&(l=o.alternate,l!==null&&l.memoizedState!==null?(l=ch,ch=16777216,Nc(o),ch=l):Nc(o));break;default:Nc(o)}}function vj(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function fh(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var b=l[h];ir=b,bj(b,o)}vj(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)yj(o),o=o.sibling}function yj(o){switch(o.tag){case 0:case 11:case 15:fh(o),o.flags&2048&&Fs(9,o,o.return);break;case 3:fh(o);break;case 12:fh(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Bg(o)):fh(o);break;default:fh(o)}}function Bg(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var b=l[h];ir=b,bj(b,o)}vj(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:Fs(8,l,l.return),Bg(l);break;case 22:h=l.stateNode,h._visibility&2&&(h._visibility&=-3,Bg(l));break;default:Bg(l)}o=o.sibling}}function bj(o,l){for(;ir!==null;){var h=ir;switch(h.tag){case 0:case 11:case 15:Fs(8,h,l);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var b=h.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:Wd(h.memoizedState.cache)}if(b=h.child,b!==null)b.return=h,ir=b;else e:for(h=o;ir!==null;){b=ir;var E=b.sibling,N=b.return;if(cj(b),b===h){ir=null;break e}if(E!==null){E.return=N,ir=E;break e}ir=N}}}var CV={getCacheForType:function(o){var l=Ar(Gn),h=l.data.get(o);return h===void 0&&(h=o(),l.data.set(o,h)),h}},AV=typeof WeakMap=="function"?WeakMap:Map,Ht=0,sn=null,Tt=null,Lt=0,Gt=0,pi=null,Hs=!1,Lc=!1,i_=!1,ko=0,jn=0,Gs=0,cu=0,a_=0,$i=0,Dc=0,dh=null,Jr=null,o_=!1,s_=0,zg=1/0,$g=null,Ws=null,pr=0,Ys=null,kc=null,Ic=0,l_=0,u_=null,_j=null,hh=0,c_=null;function mi(){if((Ht&2)!==0&&Lt!==0)return Lt&-Lt;if(H.T!==null){var o=Cc;return o!==0?o:v_()}return Jn()}function xj(){$i===0&&($i=(Lt&536870912)===0||yt?cs():536870912);var o=zi.current;return o!==null&&(o.flags|=32),$i}function gi(o,l,h){(o===sn&&(Gt===2||Gt===9)||o.cancelPendingCommit!==null)&&(Uc(o,0),Ks(o,Lt,$i,!1)),Ea(o,h),((Ht&2)===0||o!==sn)&&(o===sn&&((Ht&2)===0&&(cu|=h),jn===4&&Ks(o,Lt,$i,!1)),za(o))}function wj(o,l,h){if((Ht&6)!==0)throw Error(r(327));var b=!h&&(l&124)===0&&(l&o.expiredLanes)===0||wr(o,l),E=b?TV(o,l):h_(o,l,!0),N=b;do{if(E===0){Lc&&!b&&Ks(o,l,0,!1);break}else{if(h=o.current.alternate,N&&!OV(h)){E=h_(o,l,!1),N=!1;continue}if(E===2){if(N=l,o.errorRecoveryDisabledLanes&N)var re=0;else re=o.pendingLanes&-536870913,re=re!==0?re:re&536870912?536870912:0;if(re!==0){l=re;e:{var le=o;E=dh;var ge=le.current.memoizedState.isDehydrated;if(ge&&(Uc(le,re).flags|=256),re=h_(le,re,!1),re!==2){if(i_&&!ge){le.errorRecoveryDisabledLanes|=N,cu|=N,E=4;break e}N=Jr,Jr=E,N!==null&&(Jr===null?Jr=N:Jr.push.apply(Jr,N))}E=re}if(N=!1,E!==2)continue}}if(E===1){Uc(o,0),Ks(o,l,0,!0);break}e:{switch(b=o,N=E,N){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Ks(b,l,$i,!Hs);break e;case 2:Jr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(E=s_+300-xe(),10<E)){if(Ks(b,l,$i,!Hs),Bt(b,0,!0)!==0)break e;b.timeoutHandle=Xj(Sj.bind(null,b,h,Jr,$g,o_,l,$i,cu,Dc,Hs,N,2,-0,0),E);break e}Sj(b,h,Jr,$g,o_,l,$i,cu,Dc,Hs,N,0,-0,0)}}break}while(!0);za(o)}function Sj(o,l,h,b,E,N,re,le,ge,Ee,Ie,ze,Pe,Re){if(o.timeoutHandle=-1,ze=l.subtreeFlags,(ze&8192||(ze&16785408)===16785408)&&(_h={stylesheets:null,count:0,unsuspend:sH},gj(l),ze=uH(),ze!==null)){o.cancelPendingCommit=ze(Pj.bind(null,o,l,N,h,b,E,re,le,ge,Ie,1,Pe,Re)),Ks(o,N,re,!Ee);return}Pj(o,l,N,h,b,E,re,le,ge)}function OV(o){for(var l=o;;){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 b=0;b<h.length;b++){var E=h[b],N=E.getSnapshot;E=E.value;try{if(!Nr(N(),E))return!1}catch{return!1}}if(h=l.child,l.subtreeFlags&16384&&h!==null)h.return=l,l=h;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ks(o,l,h,b){l&=~a_,l&=~cu,o.suspendedLanes|=l,o.pingedLanes&=~l,b&&(o.warmLanes|=l),b=o.expirationTimes;for(var E=l;0<E;){var N=31-Ge(E),re=1<<N;b[N]=-1,E&=~re}h!==0&&ds(o,h,l)}function Fg(){return(Ht&6)===0?(ph(0),!1):!0}function f_(){if(Tt!==null){if(Gt===0)var o=Tt.return;else o=Tt,ra=Bi=null,T1(o),Pc=null,ih=0,o=Tt;for(;o!==null;)nj(o.alternate,o),o=o.return;Tt=null}}function Uc(o,l){var h=o.timeoutHandle;h!==-1&&(o.timeoutHandle=-1,VV(h)),h=o.cancelPendingCommit,h!==null&&(o.cancelPendingCommit=null,h()),f_(),sn=o,Tt=h=Ui(o.current,null),Lt=l,Gt=0,pi=null,Hs=!1,Lc=wr(o,l),i_=!1,Dc=$i=a_=cu=Gs=jn=0,Jr=dh=null,o_=!1,(l&8)!==0&&(l|=l&32);var b=o.entangledLanes;if(b!==0)for(o=o.entanglements,b&=l;0<b;){var E=31-Ge(b),N=1<<E;l|=o[E],b&=~N}return ko=l,Ql(),h}function Cj(o,l){At=null,H.H=jg,l===Kd||l===bg?(l=$3(),Gt=3):l===U3?(l=$3(),Gt=4):Gt=l===F4?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,pi=l,Tt===null&&(jn=1,Lg(o,Dr(l,o.current)))}function Aj(){var o=H.H;return H.H=jg,o===null?jg:o}function Oj(){var o=H.A;return H.A=CV,o}function d_(){jn=4,Hs||(Lt&4194048)!==Lt&&zi.current!==null||(Lc=!0),(Gs&134217727)===0&&(cu&134217727)===0||sn===null||Ks(sn,Lt,$i,!1)}function h_(o,l,h){var b=Ht;Ht|=2;var E=Aj(),N=Oj();(sn!==o||Lt!==l)&&($g=null,Uc(o,l)),l=!1;var re=jn;e:do try{if(Gt!==0&&Tt!==null){var le=Tt,ge=pi;switch(Gt){case 8:f_(),re=6;break e;case 3:case 2:case 9:case 6:zi.current===null&&(l=!0);var Ee=Gt;if(Gt=0,pi=null,Bc(o,le,ge,Ee),h&&Lc){re=0;break e}break;default:Ee=Gt,Gt=0,pi=null,Bc(o,le,ge,Ee)}}EV(),re=jn;break}catch(Ie){Cj(o,Ie)}while(!0);return l&&o.shellSuspendCounter++,ra=Bi=null,Ht=b,H.H=E,H.A=N,Tt===null&&(sn=null,Lt=0,Ql()),re}function EV(){for(;Tt!==null;)Ej(Tt)}function TV(o,l){var h=Ht;Ht|=2;var b=Aj(),E=Oj();sn!==o||Lt!==l?($g=null,zg=xe()+500,Uc(o,l)):Lc=wr(o,l);e:do try{if(Gt!==0&&Tt!==null){l=Tt;var N=pi;t:switch(Gt){case 1:Gt=0,pi=null,Bc(o,l,N,1);break;case 2:case 9:if(B3(N)){Gt=0,pi=null,Tj(l);break}l=function(){Gt!==2&&Gt!==9||sn!==o||(Gt=7),za(o)},N.then(l,l);break e;case 3:Gt=7;break e;case 4:Gt=5;break e;case 7:B3(N)?(Gt=0,pi=null,Tj(l)):(Gt=0,pi=null,Bc(o,l,N,7));break;case 5:var re=null;switch(Tt.tag){case 26:re=Tt.memoizedState;case 5:case 27:var le=Tt;if(!re||uP(re)){Gt=0,pi=null;var ge=le.sibling;if(ge!==null)Tt=ge;else{var Ee=le.return;Ee!==null?(Tt=Ee,qg(Ee)):Tt=null}break t}}Gt=0,pi=null,Bc(o,l,N,5);break;case 6:Gt=0,pi=null,Bc(o,l,N,6);break;case 8:f_(),jn=6;break e;default:throw Error(r(462))}}jV();break}catch(Ie){Cj(o,Ie)}while(!0);return ra=Bi=null,H.H=b,H.A=E,Ht=h,Tt!==null?0:(sn=null,Lt=0,Ql(),jn)}function jV(){for(;Tt!==null&&!ve();)Ej(Tt)}function Ej(o){var l=ej(o.alternate,o,ko);o.memoizedProps=o.pendingProps,l===null?qg(o):Tt=l}function Tj(o){var l=o,h=l.alternate;switch(l.tag){case 15:case 0:l=Y4(h,l,l.pendingProps,l.type,void 0,Lt);break;case 11:l=Y4(h,l,l.pendingProps,l.type.render,l.ref,Lt);break;case 5:T1(l);default:nj(h,l),l=Tt=Hd(l,ko),l=ej(h,l,ko)}o.memoizedProps=o.pendingProps,l===null?qg(o):Tt=l}function Bc(o,l,h,b){ra=Bi=null,T1(l),Pc=null,ih=0;var E=l.return;try{if(yV(o,E,l,h,Lt)){jn=1,Lg(o,Dr(h,o.current)),Tt=null;return}}catch(N){if(E!==null)throw Tt=E,N;jn=1,Lg(o,Dr(h,o.current)),Tt=null;return}l.flags&32768?(yt||b===1?o=!0:Lc||(Lt&536870912)!==0?o=!1:(Hs=o=!0,(b===2||b===9||b===3||b===6)&&(b=zi.current,b!==null&&b.tag===13&&(b.flags|=16384))),jj(l,o)):qg(l)}function qg(o){var l=o;do{if((l.flags&32768)!==0){jj(l,Hs);return}o=l.return;var h=_V(l.alternate,l,ko);if(h!==null){Tt=h;return}if(l=l.sibling,l!==null){Tt=l;return}Tt=l=o}while(l!==null);jn===0&&(jn=5)}function jj(o,l){do{var h=xV(o.alternate,o);if(h!==null){h.flags&=32767,Tt=h;return}if(h=o.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!l&&(o=o.sibling,o!==null)){Tt=o;return}Tt=o=h}while(o!==null);jn=6,Tt=null}function Pj(o,l,h,b,E,N,re,le,ge){o.cancelPendingCommit=null;do Vg();while(pr!==0);if((Ht&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(N=l.lanes|l.childLanes,N|=fi,rc(o,h,N,re,le,ge),o===sn&&(Tt=sn=null,Lt=0),kc=l,Ys=o,Ic=h,l_=N,u_=E,_j=b,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,NV(Ue,function(){return Dj(),null})):(o.callbackNode=null,o.callbackPriority=0),b=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||b){b=H.T,H.T=null,E=B.p,B.p=2,re=Ht,Ht|=4;try{wV(o,l,h)}finally{Ht=re,B.p=E,H.T=b}}pr=1,Rj(),Mj(),Nj()}}function Rj(){if(pr===1){pr=0;var o=Ys,l=kc,h=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||h){h=H.T,H.T=null;var b=B.p;B.p=2;var E=Ht;Ht|=4;try{hj(l,o);var N=A_,re=Kl(o.containerInfo),le=N.focusedElem,ge=N.selectionRange;if(re!==le&&le&&le.ownerDocument&&gc(le.ownerDocument.documentElement,le)){if(ge!==null&&Zl(le)){var Ee=ge.start,Ie=ge.end;if(Ie===void 0&&(Ie=Ee),"selectionStart"in le)le.selectionStart=Ee,le.selectionEnd=Math.min(Ie,le.value.length);else{var ze=le.ownerDocument||document,Pe=ze&&ze.defaultView||window;if(Pe.getSelection){var Re=Pe.getSelection(),vt=le.textContent.length,dt=Math.min(ge.start,vt),Kt=ge.end===void 0?dt:Math.min(ge.end,vt);!Re.extend&&dt>Kt&&(re=Kt,Kt=dt,dt=re);var Se=qd(le,dt),be=qd(le,Kt);if(Se&&be&&(Re.rangeCount!==1||Re.anchorNode!==Se.node||Re.anchorOffset!==Se.offset||Re.focusNode!==be.node||Re.focusOffset!==be.offset)){var Ae=ze.createRange();Ae.setStart(Se.node,Se.offset),Re.removeAllRanges(),dt>Kt?(Re.addRange(Ae),Re.extend(be.node,be.offset)):(Ae.setEnd(be.node,be.offset),Re.addRange(Ae))}}}}for(ze=[],Re=le;Re=Re.parentNode;)Re.nodeType===1&&ze.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof le.focus=="function"&&le.focus(),le=0;le<ze.length;le++){var Be=ze[le];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}nv=!!C_,A_=C_=null}finally{Ht=E,B.p=b,H.T=h}}o.current=l,pr=2}}function Mj(){if(pr===2){pr=0;var o=Ys,l=kc,h=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||h){h=H.T,H.T=null;var b=B.p;B.p=2;var E=Ht;Ht|=4;try{uj(o,l.alternate,l)}finally{Ht=E,B.p=b,H.T=h}}pr=3}}function Nj(){if(pr===4||pr===3){pr=0,he();var o=Ys,l=kc,h=Ic,b=_j;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?pr=5:(pr=0,kc=Ys=null,Lj(o,o.pendingLanes));var E=o.pendingLanes;if(E===0&&(Ws=null),hn(h),l=l.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Ne,l,void 0,(l.current.flags&128)===128)}catch{}if(b!==null){l=H.T,E=B.p,B.p=2,H.T=null;try{for(var N=o.onRecoverableError,re=0;re<b.length;re++){var le=b[re];N(le.value,{componentStack:le.stack})}}finally{H.T=l,B.p=E}}(Ic&3)!==0&&Vg(),za(o),E=o.pendingLanes,(h&4194090)!==0&&(E&42)!==0?o===c_?hh++:(hh=0,c_=o):hh=0,ph(0)}}function Lj(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,Wd(l)))}function Vg(o){return Rj(),Mj(),Nj(),Dj()}function Dj(){if(pr!==5)return!1;var o=Ys,l=l_;l_=0;var h=hn(Ic),b=H.T,E=B.p;try{B.p=32>h?32:h,H.T=null,h=u_,u_=null;var N=Ys,re=Ic;if(pr=0,kc=Ys=null,Ic=0,(Ht&6)!==0)throw Error(r(331));var le=Ht;if(Ht|=4,yj(N.current),mj(N,N.current,re,h),Ht=le,ph(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Ne,N)}catch{}return!0}finally{B.p=E,H.T=b,Lj(o,l)}}function kj(o,l,h){l=Dr(h,l),l=F1(o.stateNode,l,2),o=Us(o,l,2),o!==null&&(Ea(o,2),za(o))}function Qt(o,l,h){if(o.tag===3)kj(o,o,h);else for(;l!==null;){if(l.tag===3){kj(l,o,h);break}else if(l.tag===1){var b=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Ws===null||!Ws.has(b))){o=Dr(h,o),h=z4(2),b=Us(l,h,2),b!==null&&($4(h,b,l,o),Ea(b,2),za(b));break}}l=l.return}}function p_(o,l,h){var b=o.pingCache;if(b===null){b=o.pingCache=new AV;var E=new Set;b.set(l,E)}else E=b.get(l),E===void 0&&(E=new Set,b.set(l,E));E.has(h)||(i_=!0,E.add(h),o=PV.bind(null,o,l,h),l.then(o,o))}function PV(o,l,h){var b=o.pingCache;b!==null&&b.delete(l),o.pingedLanes|=o.suspendedLanes&h,o.warmLanes&=~h,sn===o&&(Lt&h)===h&&(jn===4||jn===3&&(Lt&62914560)===Lt&&300>xe()-s_?(Ht&2)===0&&Uc(o,0):a_|=h,Dc===Lt&&(Dc=0)),za(o)}function Ij(o,l){l===0&&(l=ii()),o=Ms(o,l),o!==null&&(Ea(o,l),za(o))}function RV(o){var l=o.memoizedState,h=0;l!==null&&(h=l.retryLane),Ij(o,h)}function MV(o,l){var h=0;switch(o.tag){case 13:var b=o.stateNode,E=o.memoizedState;E!==null&&(h=E.retryLane);break;case 19:b=o.stateNode;break;case 22:b=o.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(l),Ij(o,h)}function NV(o,l){return se(o,l)}var Hg=null,zc=null,m_=!1,Gg=!1,g_=!1,fu=0;function za(o){o!==zc&&o.next===null&&(zc===null?Hg=zc=o:zc=zc.next=o),Gg=!0,m_||(m_=!0,DV())}function ph(o,l){if(!g_&&Gg){g_=!0;do for(var h=!1,b=Hg;b!==null;){if(o!==0){var E=b.pendingLanes;if(E===0)var N=0;else{var re=b.suspendedLanes,le=b.pingedLanes;N=(1<<31-Ge(42|o)+1)-1,N&=E&~(re&~le),N=N&201326741?N&201326741|1:N?N|2:0}N!==0&&(h=!0,$j(b,N))}else N=Lt,N=Bt(b,b===sn?N:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(N&3)===0||wr(b,N)||(h=!0,$j(b,N));b=b.next}while(h);g_=!1}}function LV(){Uj()}function Uj(){Gg=m_=!1;var o=0;fu!==0&&(qV()&&(o=fu),fu=0);for(var l=xe(),h=null,b=Hg;b!==null;){var E=b.next,N=Bj(b,l);N===0?(b.next=null,h===null?Hg=E:h.next=E,E===null&&(zc=h)):(h=b,(o!==0||(N&3)!==0)&&(Gg=!0)),b=E}ph(o)}function Bj(o,l){for(var h=o.suspendedLanes,b=o.pingedLanes,E=o.expirationTimes,N=o.pendingLanes&-62914561;0<N;){var re=31-Ge(N),le=1<<re,ge=E[re];ge===-1?((le&h)===0||(le&b)!==0)&&(E[re]=Vn(le,l)):ge<=l&&(o.expiredLanes|=le),N&=~le}if(l=sn,h=Lt,h=Bt(o,o===l?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),b=o.callbackNode,h===0||o===l&&(Gt===2||Gt===9)||o.cancelPendingCommit!==null)return b!==null&&b!==null&&de(b),o.callbackNode=null,o.callbackPriority=0;if((h&3)===0||wr(o,h)){if(l=h&-h,l===o.callbackPriority)return l;switch(b!==null&&de(b),hn(h)){case 2:case 8:h=He;break;case 32:h=Ue;break;case 268435456:h=_e;break;default:h=Ue}return b=zj.bind(null,o),h=se(h,b),o.callbackPriority=l,o.callbackNode=h,l}return b!==null&&b!==null&&de(b),o.callbackPriority=2,o.callbackNode=null,2}function zj(o,l){if(pr!==0&&pr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var h=o.callbackNode;if(Vg()&&o.callbackNode!==h)return null;var b=Lt;return b=Bt(o,o===sn?b:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),b===0?null:(wj(o,b,l),Bj(o,xe()),o.callbackNode!=null&&o.callbackNode===h?zj.bind(null,o):null)}function $j(o,l){if(Vg())return null;wj(o,l,!0)}function DV(){HV(function(){(Ht&6)!==0?se(Le,LV):Uj()})}function v_(){return fu===0&&(fu=cs()),fu}function Fj(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:bs(""+o)}function qj(o,l){var h=l.ownerDocument.createElement("input");return h.name=l.name,h.value=l.value,o.id&&h.setAttribute("form",o.id),l.parentNode.insertBefore(h,l),o=new FormData(o),h.parentNode.removeChild(h),o}function kV(o,l,h,b,E){if(l==="submit"&&h&&h.stateNode===E){var N=Fj((E[nn]||null).action),re=b.submitter;re&&(l=(l=re[nn]||null)?Fj(l.formAction):re.getAttribute("formAction"),l!==null&&(N=l,re=null));var le=new Vl("action","action",null,b,E);o.push({event:le,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(fu!==0){var ge=re?qj(E,re):new FormData(E);I1(h,{pending:!0,data:ge,method:E.method,action:N},null,ge)}}else typeof N=="function"&&(le.preventDefault(),ge=re?qj(E,re):new FormData(E),I1(h,{pending:!0,data:ge,method:E.method,action:N},N,ge))},currentTarget:E}]})}}for(var y_=0;y_<Ao.length;y_++){var b_=Ao[y_],IV=b_.toLowerCase(),UV=b_[0].toUpperCase()+b_.slice(1);ci(IV,"on"+UV)}ci(cg,"onAnimationEnd"),ci(ui,"onAnimationIteration"),ci(Xl,"onAnimationStart"),ci("dblclick","onDoubleClick"),ci("focusin","onFocus"),ci("focusout","onBlur"),ci(d1,"onTransitionRun"),ci(_c,"onTransitionStart"),ci(h1,"onTransitionCancel"),ci(Vd,"onTransitionEnd"),ho("onMouseEnter",["mouseout","mouseover"]),ho("onMouseLeave",["mouseout","mouseover"]),ho("onPointerEnter",["pointerout","pointerover"]),ho("onPointerLeave",["pointerout","pointerover"]),fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fo("onBeforeInput",["compositionend","keypress","textInput","paste"]),fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mh="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(" "),BV=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mh));function Vj(o,l){l=(l&4)!==0;for(var h=0;h<o.length;h++){var b=o[h],E=b.event;b=b.listeners;e:{var N=void 0;if(l)for(var re=b.length-1;0<=re;re--){var le=b[re],ge=le.instance,Ee=le.currentTarget;if(le=le.listener,ge!==N&&E.isPropagationStopped())break e;N=le,E.currentTarget=Ee;try{N(E)}catch(Ie){Ng(Ie)}E.currentTarget=null,N=ge}else for(re=0;re<b.length;re++){if(le=b[re],ge=le.instance,Ee=le.currentTarget,le=le.listener,ge!==N&&E.isPropagationStopped())break e;N=le,E.currentTarget=Ee;try{N(E)}catch(Ie){Ng(Ie)}E.currentTarget=null,N=ge}}}}function jt(o,l){var h=l[Ln];h===void 0&&(h=l[Ln]=new Set);var b=o+"__bubble";h.has(b)||(Hj(l,o,2,!1),h.add(b))}function __(o,l,h){var b=0;l&&(b|=4),Hj(h,o,b,l)}var Wg="_reactListening"+Math.random().toString(36).slice(2);function x_(o){if(!o[Wg]){o[Wg]=!0,Vm.forEach(function(h){h!=="selectionchange"&&(BV.has(h)||__(h,!1,o),__(h,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Wg]||(l[Wg]=!0,__("selectionchange",!1,l))}}function Hj(o,l,h,b){switch(mP(l)){case 2:var E=dH;break;case 8:E=hH;break;default:E=D_}h=E.bind(null,l,h,o),E=void 0,!ql||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(E=!0),b?E!==void 0?o.addEventListener(l,h,{capture:!0,passive:E}):o.addEventListener(l,h,!0):E!==void 0?o.addEventListener(l,h,{passive:E}):o.addEventListener(l,h,!1)}function w_(o,l,h,b,E){var N=b;if((l&1)===0&&(l&2)===0&&b!==null)e:for(;;){if(b===null)return;var re=b.tag;if(re===3||re===4){var le=b.stateNode.containerInfo;if(le===E)break;if(re===4)for(re=b.return;re!==null;){var ge=re.tag;if((ge===3||ge===4)&&re.stateNode.containerInfo===E)return;re=re.return}for(;le!==null;){if(re=ja(le),re===null)return;if(ge=re.tag,ge===5||ge===6||ge===26||ge===27){b=N=re;continue e}le=le.parentNode}}b=b.return}ai(function(){var Ee=N,Ie=_s(h),ze=[];e:{var Pe=fg.get(o);if(Pe!==void 0){var Re=Vl,vt=o;switch(o){case"keypress":if(Tn(h)===0)break e;case"keydown":case"keyup":Re=i1;break;case"focusin":vt="focus",Re=Ld;break;case"focusout":vt="blur",Re=Ld;break;case"beforeblur":case"afterblur":Re=Ld;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":Re=Ss;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=Jb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=o1;break;case cg:case ui:case Xl:Re=e1;break;case Vd:Re=s1;break;case"scroll":case"scrollend":Re=Qb;break;case"wheel":Re=tg;break;case"copy":case"cut":case"paste":Re=Dd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=Id;break;case"toggle":case"beforetoggle":Re=xo}var dt=(l&4)!==0,Kt=!dt&&(o==="scroll"||o==="scrollend"),Se=dt?Pe!==null?Pe+"Capture":null:Pe;dt=[];for(var be=Ee,Ae;be!==null;){var Be=be;if(Ae=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||Ae===null||Se===null||(Be=zt(be,Se),Be!=null&&dt.push(gh(be,Be,Ae))),Kt)break;be=be.return}0<dt.length&&(Pe=new Re(Pe,vt,null,h,Ie),ze.push({event:Pe,listeners:dt}))}}if((l&7)===0){e:{if(Pe=o==="mouseover"||o==="pointerover",Re=o==="mouseout"||o==="pointerout",Pe&&h!==Fl&&(vt=h.relatedTarget||h.fromElement)&&(ja(vt)||vt[er]))break e;if((Re||Pe)&&(Pe=Ie.window===Ie?Ie:(Pe=Ie.ownerDocument)?Pe.defaultView||Pe.parentWindow:window,Re?(vt=h.relatedTarget||h.toElement,Re=Ee,vt=vt?ja(vt):null,vt!==null&&(Kt=a(vt),dt=vt.tag,vt!==Kt||dt!==5&&dt!==27&&dt!==6)&&(vt=null)):(Re=null,vt=Ee),Re!==vt)){if(dt=Ss,Be="onMouseLeave",Se="onMouseEnter",be="mouse",(o==="pointerout"||o==="pointerover")&&(dt=Id,Be="onPointerLeave",Se="onPointerEnter",be="pointer"),Kt=Re==null?Pe:Mi(Re),Ae=vt==null?Pe:Mi(vt),Pe=new dt(Be,be+"leave",Re,h,Ie),Pe.target=Kt,Pe.relatedTarget=Ae,Be=null,ja(Ie)===Ee&&(dt=new dt(Se,be+"enter",vt,h,Ie),dt.target=Ae,dt.relatedTarget=Kt,Be=dt),Kt=Be,Re&&vt)t:{for(dt=Re,Se=vt,be=0,Ae=dt;Ae;Ae=$c(Ae))be++;for(Ae=0,Be=Se;Be;Be=$c(Be))Ae++;for(;0<be-Ae;)dt=$c(dt),be--;for(;0<Ae-be;)Se=$c(Se),Ae--;for(;be--;){if(dt===Se||Se!==null&&dt===Se.alternate)break t;dt=$c(dt),Se=$c(Se)}dt=null}else dt=null;Re!==null&&Gj(ze,Pe,Re,dt,!1),vt!==null&&Kt!==null&&Gj(ze,Kt,vt,dt,!0)}}e:{if(Pe=Ee?Mi(Ee):window,Re=Pe.nodeName&&Pe.nodeName.toLowerCase(),Re==="select"||Re==="input"&&Pe.type==="file")var it=Os;else if(So(Pe))if(zd)it=f1;else{it=c1;var Et=Fd}else Re=Pe.nodeName,!Re||Re.toLowerCase()!=="input"||Pe.type!=="checkbox"&&Pe.type!=="radio"?Ee&&$l(Ee.elementType)&&(it=Os):it=na;if(it&&(it=it(o,Ee))){og(ze,it,h,Ie);break e}Et&&Et(o,Pe,Ee),o==="focusout"&&Ee&&Pe.type==="number"&&Ee.memoizedProps.value!=null&&vs(Pe,"number",Pe.value)}switch(Et=Ee?Mi(Ee):window,o){case"focusin":(So(Et)||Et.contentEditable==="true")&&(li=Et,js=Ee,Co=null);break;case"focusout":Co=js=li=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,lg(ze,h,Ie);break;case"selectionchange":if(vc)break;case"keydown":case"keyup":lg(ze,h,Ie)}var ct;if(wo)e:{switch(o){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else Cs?pc(o,h)&&(mt="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(mt="onCompositionStart");mt&&(Bd&&h.locale!=="ko"&&(Cs||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Cs&&(ct=ws()):(Di=Ie,ea="value"in Di?Di.value:Di.textContent,Cs=!0)),Et=Yg(Ee,mt),0<Et.length&&(mt=new oi(mt,o,null,h,Ie),ze.push({event:mt,listeners:Et}),ct?mt.data=ct:(ct=ig(h),ct!==null&&(mt.data=ct)))),(ct=ng?ag(o,h):u1(o,h))&&(mt=Yg(Ee,"onBeforeInput"),0<mt.length&&(Et=new oi("onBeforeInput","beforeinput",null,h,Ie),ze.push({event:Et,listeners:mt}),Et.data=ct)),kV(ze,o,Ee,h,Ie)}Vj(ze,l)})}function gh(o,l,h){return{instance:o,listener:l,currentTarget:h}}function Yg(o,l){for(var h=l+"Capture",b=[];o!==null;){var E=o,N=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||N===null||(E=zt(o,h),E!=null&&b.unshift(gh(o,E,N)),E=zt(o,l),E!=null&&b.push(gh(o,E,N))),o.tag===3)return b;o=o.return}return[]}function $c(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Gj(o,l,h,b,E){for(var N=l._reactName,re=[];h!==null&&h!==b;){var le=h,ge=le.alternate,Ee=le.stateNode;if(le=le.tag,ge!==null&&ge===b)break;le!==5&&le!==26&&le!==27||Ee===null||(ge=Ee,E?(Ee=zt(h,N),Ee!=null&&re.unshift(gh(h,Ee,ge))):E||(Ee=zt(h,N),Ee!=null&&re.push(gh(h,Ee,ge)))),h=h.return}re.length!==0&&o.push({event:l,listeners:re})}var zV=/\r\n?/g,$V=/\u0000|\uFFFD/g;function Wj(o){return(typeof o=="string"?o:""+o).replace(zV,`
|
||
`).replace($V,"")}function Yj(o,l){return l=Wj(l),Wj(o)===l}function Kg(){}function Yt(o,l,h,b,E,N){switch(h){case"children":typeof b=="string"?l==="body"||l==="textarea"&&b===""||Ni(o,b):(typeof b=="number"||typeof b=="bigint")&&l!=="body"&&Ni(o,""+b);break;case"className":oc(o,"class",b);break;case"tabIndex":oc(o,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":oc(o,h,b);break;case"style":ys(o,b,N);break;case"data":if(l!=="object"){oc(o,"data",b);break}case"src":case"href":if(b===""&&(l!=="a"||h!=="href")){o.removeAttribute(h);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){o.removeAttribute(h);break}b=bs(""+b),o.setAttribute(h,b);break;case"action":case"formAction":if(typeof b=="function"){o.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 N=="function"&&(h==="formAction"?(l!=="input"&&Yt(o,l,"name",E.name,E,null),Yt(o,l,"formEncType",E.formEncType,E,null),Yt(o,l,"formMethod",E.formMethod,E,null),Yt(o,l,"formTarget",E.formTarget,E,null)):(Yt(o,l,"encType",E.encType,E,null),Yt(o,l,"method",E.method,E,null),Yt(o,l,"target",E.target,E,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){o.removeAttribute(h);break}b=bs(""+b),o.setAttribute(h,b);break;case"onClick":b!=null&&(o.onclick=Kg);break;case"onScroll":b!=null&&jt("scroll",o);break;case"onScrollEnd":b!=null&&jt("scrollend",o);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(h=b.__html,h!=null){if(E.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"multiple":o.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":o.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){o.removeAttribute("xlink:href");break}h=bs(""+b),o.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":b!=null&&typeof b!="function"&&typeof b!="symbol"?o.setAttribute(h,""+b):o.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":b&&typeof b!="function"&&typeof b!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":b===!0?o.setAttribute(h,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?o.setAttribute(h,b):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?o.setAttribute(h,b):o.removeAttribute(h);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?o.removeAttribute(h):o.setAttribute(h,b);break;case"popover":jt("beforetoggle",o),jt("toggle",o),ac(o,"popover",b);break;case"xlinkActuate":Ji(o,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":Ji(o,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":Ji(o,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":Ji(o,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":Ji(o,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":Ji(o,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":Ji(o,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":Ji(o,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":Ji(o,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":ac(o,"is",b);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Rd.get(h)||h,ac(o,h,b))}}function S_(o,l,h,b,E,N){switch(h){case"style":ys(o,b,N);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(h=b.__html,h!=null){if(E.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"children":typeof b=="string"?Ni(o,b):(typeof b=="number"||typeof b=="bigint")&&Ni(o,""+b);break;case"onScroll":b!=null&&jt("scroll",o);break;case"onScrollEnd":b!=null&&jt("scrollend",o);break;case"onClick":b!=null&&(o.onclick=Kg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hm.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(E=h.endsWith("Capture"),l=h.slice(2,E?h.length-7:void 0),N=o[nn]||null,N=N!=null?N[h]:null,typeof N=="function"&&o.removeEventListener(l,N,E),typeof b=="function")){typeof N!="function"&&N!==null&&(h in o?o[h]=null:o.hasAttribute(h)&&o.removeAttribute(h)),o.addEventListener(l,b,E);break e}h in o?o[h]=b:b===!0?o.setAttribute(h,""):ac(o,h,b)}}}function mr(o,l,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":jt("error",o),jt("load",o);var b=!1,E=!1,N;for(N in h)if(h.hasOwnProperty(N)){var re=h[N];if(re!=null)switch(N){case"src":b=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Yt(o,l,N,re,h,null)}}E&&Yt(o,l,"srcSet",h.srcSet,h,null),b&&Yt(o,l,"src",h.src,h,null);return;case"input":jt("invalid",o);var le=N=re=E=null,ge=null,Ee=null;for(b in h)if(h.hasOwnProperty(b)){var Ie=h[b];if(Ie!=null)switch(b){case"name":E=Ie;break;case"type":re=Ie;break;case"checked":ge=Ie;break;case"defaultChecked":Ee=Ie;break;case"value":N=Ie;break;case"defaultValue":le=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(r(137,l));break;default:Yt(o,l,b,Ie,h,null)}}Wm(o,N,le,ge,Ee,re,E,!1),gs(o);return;case"select":jt("invalid",o),b=re=N=null;for(E in h)if(h.hasOwnProperty(E)&&(le=h[E],le!=null))switch(E){case"value":N=le;break;case"defaultValue":re=le;break;case"multiple":b=le;default:Yt(o,l,E,le,h,null)}l=N,h=re,o.multiple=!!b,l!=null?Kr(o,!!b,l,!1):h!=null&&Kr(o,!!b,h,!0);return;case"textarea":jt("invalid",o),N=E=b=null;for(re in h)if(h.hasOwnProperty(re)&&(le=h[re],le!=null))switch(re){case"value":b=le;break;case"defaultValue":E=le;break;case"children":N=le;break;case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(91));break;default:Yt(o,l,re,le,h,null)}Pa(o,b,E,N),gs(o);return;case"option":for(ge in h)if(h.hasOwnProperty(ge)&&(b=h[ge],b!=null))switch(ge){case"selected":o.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Yt(o,l,ge,b,h,null)}return;case"dialog":jt("beforetoggle",o),jt("toggle",o),jt("cancel",o),jt("close",o);break;case"iframe":case"object":jt("load",o);break;case"video":case"audio":for(b=0;b<mh.length;b++)jt(mh[b],o);break;case"image":jt("error",o),jt("load",o);break;case"details":jt("toggle",o);break;case"embed":case"source":case"link":jt("error",o),jt("load",o);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)&&(b=h[Ee],b!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Yt(o,l,Ee,b,h,null)}return;default:if($l(l)){for(Ie in h)h.hasOwnProperty(Ie)&&(b=h[Ie],b!==void 0&&S_(o,l,Ie,b,h,void 0));return}}for(le in h)h.hasOwnProperty(le)&&(b=h[le],b!=null&&Yt(o,l,le,b,h,null))}function FV(o,l,h,b){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,N=null,re=null,le=null,ge=null,Ee=null,Ie=null;for(Re in h){var ze=h[Re];if(h.hasOwnProperty(Re)&&ze!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":ge=ze;default:b.hasOwnProperty(Re)||Yt(o,l,Re,null,b,ze)}}for(var Pe in b){var Re=b[Pe];if(ze=h[Pe],b.hasOwnProperty(Pe)&&(Re!=null||ze!=null))switch(Pe){case"type":N=Re;break;case"name":E=Re;break;case"checked":Ee=Re;break;case"defaultChecked":Ie=Re;break;case"value":re=Re;break;case"defaultValue":le=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,l));break;default:Re!==ze&&Yt(o,l,Pe,Re,b,ze)}}Sr(o,re,le,ge,Ee,Ie,N,E);return;case"select":Re=re=le=Pe=null;for(N in h)if(ge=h[N],h.hasOwnProperty(N)&&ge!=null)switch(N){case"value":break;case"multiple":Re=ge;default:b.hasOwnProperty(N)||Yt(o,l,N,null,b,ge)}for(E in b)if(N=b[E],ge=h[E],b.hasOwnProperty(E)&&(N!=null||ge!=null))switch(E){case"value":Pe=N;break;case"defaultValue":le=N;break;case"multiple":re=N;default:N!==ge&&Yt(o,l,E,N,b,ge)}l=le,h=re,b=Re,Pe!=null?Kr(o,!!h,Pe,!1):!!b!=!!h&&(l!=null?Kr(o,!!h,l,!0):Kr(o,!!h,h?[]:"",!1));return;case"textarea":Re=Pe=null;for(le in h)if(E=h[le],h.hasOwnProperty(le)&&E!=null&&!b.hasOwnProperty(le))switch(le){case"value":break;case"children":break;default:Yt(o,l,le,null,b,E)}for(re in b)if(E=b[re],N=h[re],b.hasOwnProperty(re)&&(E!=null||N!=null))switch(re){case"value":Pe=E;break;case"defaultValue":Re=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==N&&Yt(o,l,re,E,b,N)}Cn(o,Pe,Re);return;case"option":for(var vt in h)if(Pe=h[vt],h.hasOwnProperty(vt)&&Pe!=null&&!b.hasOwnProperty(vt))switch(vt){case"selected":o.selected=!1;break;default:Yt(o,l,vt,null,b,Pe)}for(ge in b)if(Pe=b[ge],Re=h[ge],b.hasOwnProperty(ge)&&Pe!==Re&&(Pe!=null||Re!=null))switch(ge){case"selected":o.selected=Pe&&typeof Pe!="function"&&typeof Pe!="symbol";break;default:Yt(o,l,ge,Pe,b,Re)}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 dt in h)Pe=h[dt],h.hasOwnProperty(dt)&&Pe!=null&&!b.hasOwnProperty(dt)&&Yt(o,l,dt,null,b,Pe);for(Ee in b)if(Pe=b[Ee],Re=h[Ee],b.hasOwnProperty(Ee)&&Pe!==Re&&(Pe!=null||Re!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,l));break;default:Yt(o,l,Ee,Pe,b,Re)}return;default:if($l(l)){for(var Kt in h)Pe=h[Kt],h.hasOwnProperty(Kt)&&Pe!==void 0&&!b.hasOwnProperty(Kt)&&S_(o,l,Kt,void 0,b,Pe);for(Ie in b)Pe=b[Ie],Re=h[Ie],!b.hasOwnProperty(Ie)||Pe===Re||Pe===void 0&&Re===void 0||S_(o,l,Ie,Pe,b,Re);return}}for(var Se in h)Pe=h[Se],h.hasOwnProperty(Se)&&Pe!=null&&!b.hasOwnProperty(Se)&&Yt(o,l,Se,null,b,Pe);for(ze in b)Pe=b[ze],Re=h[ze],!b.hasOwnProperty(ze)||Pe===Re||Pe==null&&Re==null||Yt(o,l,ze,Pe,b,Re)}var C_=null,A_=null;function Zg(o){return o.nodeType===9?o:o.ownerDocument}function Kj(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zj(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function O_(o,l){return o==="textarea"||o==="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 E_=null;function qV(){var o=window.event;return o&&o.type==="popstate"?o===E_?!1:(E_=o,!0):(E_=null,!1)}var Xj=typeof setTimeout=="function"?setTimeout:void 0,VV=typeof clearTimeout=="function"?clearTimeout:void 0,Qj=typeof Promise=="function"?Promise:void 0,HV=typeof queueMicrotask=="function"?queueMicrotask:typeof Qj<"u"?function(o){return Qj.resolve(null).then(o).catch(GV)}:Xj;function GV(o){setTimeout(function(){throw o})}function Zs(o){return o==="head"}function Jj(o,l){var h=l,b=0,E=0;do{var N=h.nextSibling;if(o.removeChild(h),N&&N.nodeType===8)if(h=N.data,h==="/$"){if(0<b&&8>b){h=b;var re=o.ownerDocument;if(h&1&&vh(re.documentElement),h&2&&vh(re.body),h&4)for(h=re.head,vh(h),re=h.firstChild;re;){var le=re.nextSibling,ge=re.nodeName;re[hs]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&re.rel.toLowerCase()==="stylesheet"||h.removeChild(re),re=le}}if(E===0){o.removeChild(N),Ah(l);return}E--}else h==="$"||h==="$?"||h==="$!"?E++:b=h.charCodeAt(0)-48;else b=0;h=N}while(h);Ah(l)}function T_(o){var l=o.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":T_(h),ic(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}o.removeChild(h)}}function WV(o,l,h,b){for(;o.nodeType===1;){var E=h;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!b&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(b){if(!o[hs])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(N=o.getAttribute("rel"),N==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(N!==E.rel||o.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||o.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||o.getAttribute("title")!==(E.title==null?null:E.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(N=o.getAttribute("src"),(N!==(E.src==null?null:E.src)||o.getAttribute("type")!==(E.type==null?null:E.type)||o.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&N&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var N=E.name==null?null:""+E.name;if(E.type==="hidden"&&o.getAttribute("name")===N)return o}else return o;if(o=oa(o.nextSibling),o===null)break}return null}function YV(o,l,h){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!h||(o=oa(o.nextSibling),o===null))return null;return o}function j_(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function KV(o,l){var h=o.ownerDocument;if(o.data!=="$?"||h.readyState==="complete")l();else{var b=function(){l(),h.removeEventListener("DOMContentLoaded",b)};h.addEventListener("DOMContentLoaded",b),o._reactRetry=b}}function oa(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return o}var P_=null;function eP(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"){if(l===0)return o;l--}else h==="/$"&&l++}o=o.previousSibling}return null}function tP(o,l,h){switch(l=Zg(h),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function vh(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);ic(o)}var Fi=new Map,nP=new Set;function Xg(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Io=B.d;B.d={f:ZV,r:XV,D:QV,C:JV,L:eH,m:tH,X:rH,S:nH,M:iH};function ZV(){var o=Io.f(),l=Fg();return o||l}function XV(o){var l=uo(o);l!==null&&l.tag===5&&l.type==="form"?w4(l):Io.r(o)}var Fc=typeof document>"u"?null:document;function rP(o,l,h){var b=Fc;if(b&&typeof l=="string"&&l){var E=fr(l);E='link[rel="'+o+'"][href="'+E+'"]',typeof h=="string"&&(E+='[crossorigin="'+h+'"]'),nP.has(E)||(nP.add(E),o={rel:o,crossOrigin:h,href:l},b.querySelector(E)===null&&(l=b.createElement("link"),mr(l,"link",o),Bn(l),b.head.appendChild(l)))}}function QV(o){Io.D(o),rP("dns-prefetch",o,null)}function JV(o,l){Io.C(o,l),rP("preconnect",o,l)}function eH(o,l,h){Io.L(o,l,h);var b=Fc;if(b&&o&&l){var E='link[rel="preload"][as="'+fr(l)+'"]';l==="image"&&h&&h.imageSrcSet?(E+='[imagesrcset="'+fr(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(E+='[imagesizes="'+fr(h.imageSizes)+'"]')):E+='[href="'+fr(o)+'"]';var N=E;switch(l){case"style":N=qc(o);break;case"script":N=Vc(o)}Fi.has(N)||(o=p({rel:"preload",href:l==="image"&&h&&h.imageSrcSet?void 0:o,as:l},h),Fi.set(N,o),b.querySelector(E)!==null||l==="style"&&b.querySelector(yh(N))||l==="script"&&b.querySelector(bh(N))||(l=b.createElement("link"),mr(l,"link",o),Bn(l),b.head.appendChild(l)))}}function tH(o,l){Io.m(o,l);var h=Fc;if(h&&o){var b=l&&typeof l.as=="string"?l.as:"script",E='link[rel="modulepreload"][as="'+fr(b)+'"][href="'+fr(o)+'"]',N=E;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=Vc(o)}if(!Fi.has(N)&&(o=p({rel:"modulepreload",href:o},l),Fi.set(N,o),h.querySelector(E)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(bh(N)))return}b=h.createElement("link"),mr(b,"link",o),Bn(b),h.head.appendChild(b)}}}function nH(o,l,h){Io.S(o,l,h);var b=Fc;if(b&&o){var E=co(b).hoistableStyles,N=qc(o);l=l||"default";var re=E.get(N);if(!re){var le={loading:0,preload:null};if(re=b.querySelector(yh(N)))le.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":l},h),(h=Fi.get(N))&&R_(o,h);var ge=re=b.createElement("link");Bn(ge),mr(ge,"link",o),ge._p=new Promise(function(Ee,Ie){ge.onload=Ee,ge.onerror=Ie}),ge.addEventListener("load",function(){le.loading|=1}),ge.addEventListener("error",function(){le.loading|=2}),le.loading|=4,Qg(re,l,b)}re={type:"stylesheet",instance:re,count:1,state:le},E.set(N,re)}}}function rH(o,l){Io.X(o,l);var h=Fc;if(h&&o){var b=co(h).hoistableScripts,E=Vc(o),N=b.get(E);N||(N=h.querySelector(bh(E)),N||(o=p({src:o,async:!0},l),(l=Fi.get(E))&&M_(o,l),N=h.createElement("script"),Bn(N),mr(N,"link",o),h.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},b.set(E,N))}}function iH(o,l){Io.M(o,l);var h=Fc;if(h&&o){var b=co(h).hoistableScripts,E=Vc(o),N=b.get(E);N||(N=h.querySelector(bh(E)),N||(o=p({src:o,async:!0,type:"module"},l),(l=Fi.get(E))&&M_(o,l),N=h.createElement("script"),Bn(N),mr(N,"link",o),h.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},b.set(E,N))}}function iP(o,l,h,b){var E=(E=ce.current)?Xg(E):null;if(!E)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(l=qc(h.href),h=co(E).hoistableStyles,b=h.get(l),b||(b={type:"style",instance:null,count:0,state:null},h.set(l,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){o=qc(h.href);var N=co(E).hoistableStyles,re=N.get(o);if(re||(E=E.ownerDocument||E,re={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(o,re),(N=E.querySelector(yh(o)))&&!N._p&&(re.instance=N,re.state.loading=5),Fi.has(o)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Fi.set(o,h),N||aH(E,o,h,re.state))),l&&b===null)throw Error(r(528,""));return re}if(l&&b!==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=Vc(h),h=co(E).hoistableScripts,b=h.get(l),b||(b={type:"script",instance:null,count:0,state:null},h.set(l,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function qc(o){return'href="'+fr(o)+'"'}function yh(o){return'link[rel="stylesheet"]['+o+"]"}function aP(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function aH(o,l,h,b){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?b.loading=1:(l=o.createElement("link"),b.preload=l,l.addEventListener("load",function(){return b.loading|=1}),l.addEventListener("error",function(){return b.loading|=2}),mr(l,"link",h),Bn(l),o.head.appendChild(l))}function Vc(o){return'[src="'+fr(o)+'"]'}function bh(o){return"script[async]"+o}function oP(o,l,h){if(l.count++,l.instance===null)switch(l.type){case"style":var b=o.querySelector('style[data-href~="'+fr(h.href)+'"]');if(b)return l.instance=b,Bn(b),b;var E=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return b=(o.ownerDocument||o).createElement("style"),Bn(b),mr(b,"style",E),Qg(b,h.precedence,o),l.instance=b;case"stylesheet":E=qc(h.href);var N=o.querySelector(yh(E));if(N)return l.state.loading|=4,l.instance=N,Bn(N),N;b=aP(h),(E=Fi.get(E))&&R_(b,E),N=(o.ownerDocument||o).createElement("link"),Bn(N);var re=N;return re._p=new Promise(function(le,ge){re.onload=le,re.onerror=ge}),mr(N,"link",b),l.state.loading|=4,Qg(N,h.precedence,o),l.instance=N;case"script":return N=Vc(h.src),(E=o.querySelector(bh(N)))?(l.instance=E,Bn(E),E):(b=h,(E=Fi.get(N))&&(b=p({},h),M_(b,E)),o=o.ownerDocument||o,E=o.createElement("script"),Bn(E),mr(E,"link",b),o.head.appendChild(E),l.instance=E);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(b=l.instance,l.state.loading|=4,Qg(b,h.precedence,o));return l.instance}function Qg(o,l,h){for(var b=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=b.length?b[b.length-1]:null,N=E,re=0;re<b.length;re++){var le=b[re];if(le.dataset.precedence===l)N=le;else if(N!==E)break}N?N.parentNode.insertBefore(o,N.nextSibling):(l=h.nodeType===9?h.head:h,l.insertBefore(o,l.firstChild))}function R_(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function M_(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Jg=null;function sP(o,l,h){if(Jg===null){var b=new Map,E=Jg=new Map;E.set(h,b)}else E=Jg,b=E.get(h),b||(b=new Map,E.set(h,b));if(b.has(o))return b;for(b.set(o,null),h=h.getElementsByTagName(o),E=0;E<h.length;E++){var N=h[E];if(!(N[hs]||N[Mt]||o==="link"&&N.getAttribute("rel")==="stylesheet")&&N.namespaceURI!=="http://www.w3.org/2000/svg"){var re=N.getAttribute(l)||"";re=o+re;var le=b.get(re);le?le.push(N):b.set(re,[N])}}return b}function lP(o,l,h){o=o.ownerDocument||o,o.head.insertBefore(h,l==="title"?o.querySelector("head > title"):null)}function oH(o,l,h){if(h===1||l.itemProp!=null)return!1;switch(o){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 o=l.disabled,typeof l.precedence=="string"&&o==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 uP(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var _h=null;function sH(){}function lH(o,l,h){if(_h===null)throw Error(r(475));var b=_h;if(l.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var E=qc(h.href),N=o.querySelector(yh(E));if(N){o=N._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(b.count++,b=ev.bind(b),o.then(b,b)),l.state.loading|=4,l.instance=N,Bn(N);return}N=o.ownerDocument||o,h=aP(h),(E=Fi.get(E))&&R_(h,E),N=N.createElement("link"),Bn(N);var re=N;re._p=new Promise(function(le,ge){re.onload=le,re.onerror=ge}),mr(N,"link",h),l.instance=N}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(l,o),(o=l.state.preload)&&(l.state.loading&3)===0&&(b.count++,l=ev.bind(b),o.addEventListener("load",l),o.addEventListener("error",l))}}function uH(){if(_h===null)throw Error(r(475));var o=_h;return o.stylesheets&&o.count===0&&N_(o,o.stylesheets),0<o.count?function(l){var h=setTimeout(function(){if(o.stylesheets&&N_(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(h)}}:null}function ev(){if(this.count--,this.count===0){if(this.stylesheets)N_(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var tv=null;function N_(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,tv=new Map,l.forEach(cH,o),tv=null,ev.call(o))}function cH(o,l){if(!(l.state.loading&4)){var h=tv.get(o);if(h)var b=h.get(null);else{h=new Map,tv.set(o,h);for(var E=o.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N<E.length;N++){var re=E[N];(re.nodeName==="LINK"||re.getAttribute("media")!=="not all")&&(h.set(re.dataset.precedence,re),b=re)}b&&h.set(null,b)}E=l.instance,re=E.getAttribute("data-precedence"),N=h.get(re)||b,N===b&&h.set(null,E),h.set(re,E),this.count++,b=ev.bind(this),E.addEventListener("load",b),E.addEventListener("error",b),N?N.parentNode.insertBefore(E,N.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(E,o.firstChild)),l.state.loading|=4}}var xh={$$typeof:T,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function fH(o,l,h,b,E,N,re,le){this.tag=1,this.containerInfo=o,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=fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.hiddenUpdates=fs(null),this.identifierPrefix=b,this.onUncaughtError=E,this.onCaughtError=N,this.onRecoverableError=re,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=le,this.incompleteTransitions=new Map}function cP(o,l,h,b,E,N,re,le,ge,Ee,Ie,ze){return o=new fH(o,l,h,re,le,ge,Ee,ze),l=1,N===!0&&(l|=24),N=Ir(3,null,null,l),o.current=N,N.stateNode=o,l=p1(),l.refCount++,o.pooledCache=l,l.refCount++,N.memoizedState={element:b,isDehydrated:h,cache:l},y1(N),o}function fP(o){return o?(o=To,o):To}function dP(o,l,h,b,E,N){E=fP(E),b.context===null?b.context=E:b.pendingContext=E,b=Is(l),b.payload={element:h},N=N===void 0?null:N,N!==null&&(b.callback=N),h=Us(o,b,l),h!==null&&(gi(h,o,l),Xd(h,o,l))}function hP(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<l?h:l}}function L_(o,l){hP(o,l),(o=o.alternate)&&hP(o,l)}function pP(o){if(o.tag===13){var l=Ms(o,67108864);l!==null&&gi(l,o,67108864),L_(o,67108864)}}var nv=!0;function dH(o,l,h,b){var E=H.T;H.T=null;var N=B.p;try{B.p=2,D_(o,l,h,b)}finally{B.p=N,H.T=E}}function hH(o,l,h,b){var E=H.T;H.T=null;var N=B.p;try{B.p=8,D_(o,l,h,b)}finally{B.p=N,H.T=E}}function D_(o,l,h,b){if(nv){var E=k_(b);if(E===null)w_(o,l,b,rv,h),gP(o,b);else if(mH(E,o,l,h,b))b.stopPropagation();else if(gP(o,b),l&4&&-1<pH.indexOf(o)){for(;E!==null;){var N=uo(E);if(N!==null)switch(N.tag){case 3:if(N=N.stateNode,N.current.memoizedState.isDehydrated){var re=Ut(N.pendingLanes);if(re!==0){var le=N;for(le.pendingLanes|=2,le.entangledLanes|=2;re;){var ge=1<<31-Ge(re);le.entanglements[1]|=ge,re&=~ge}za(N),(Ht&6)===0&&(zg=xe()+500,ph(0))}}break;case 13:le=Ms(N,2),le!==null&&gi(le,N,2),Fg(),L_(N,2)}if(N=k_(b),N===null&&w_(o,l,b,rv,h),N===E)break;E=N}E!==null&&b.stopPropagation()}else w_(o,l,b,null,h)}}function k_(o){return o=_s(o),I_(o)}var rv=null;function I_(o){if(rv=null,o=ja(o),o!==null){var l=a(o);if(l===null)o=null;else{var h=l.tag;if(h===13){if(o=s(l),o!==null)return o;o=null}else if(h===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return rv=o,null}function mP(o){switch(o){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(Oe()){case Le:return 2;case He:return 8;case Ue:case $e:return 32;case _e:return 268435456;default:return 32}default:return 32}}var U_=!1,Xs=null,Qs=null,Js=null,wh=new Map,Sh=new Map,el=[],pH="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 gP(o,l){switch(o){case"focusin":case"focusout":Xs=null;break;case"dragenter":case"dragleave":Qs=null;break;case"mouseover":case"mouseout":Js=null;break;case"pointerover":case"pointerout":wh.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sh.delete(l.pointerId)}}function Ch(o,l,h,b,E,N){return o===null||o.nativeEvent!==N?(o={blockedOn:l,domEventName:h,eventSystemFlags:b,nativeEvent:N,targetContainers:[E]},l!==null&&(l=uo(l),l!==null&&pP(l)),o):(o.eventSystemFlags|=b,l=o.targetContainers,E!==null&&l.indexOf(E)===-1&&l.push(E),o)}function mH(o,l,h,b,E){switch(l){case"focusin":return Xs=Ch(Xs,o,l,h,b,E),!0;case"dragenter":return Qs=Ch(Qs,o,l,h,b,E),!0;case"mouseover":return Js=Ch(Js,o,l,h,b,E),!0;case"pointerover":var N=E.pointerId;return wh.set(N,Ch(wh.get(N)||null,o,l,h,b,E)),!0;case"gotpointercapture":return N=E.pointerId,Sh.set(N,Ch(Sh.get(N)||null,o,l,h,b,E)),!0}return!1}function vP(o){var l=ja(o.target);if(l!==null){var h=a(l);if(h!==null){if(l=h.tag,l===13){if(l=s(h),l!==null){o.blockedOn=l,Hn(o.priority,function(){if(h.tag===13){var b=mi();b=yn(b);var E=Ms(h,b);E!==null&&gi(E,h,b),L_(h,b)}});return}}else if(l===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function iv(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var h=k_(o.nativeEvent);if(h===null){h=o.nativeEvent;var b=new h.constructor(h.type,h);Fl=b,h.target.dispatchEvent(b),Fl=null}else return l=uo(h),l!==null&&pP(l),o.blockedOn=h,!1;l.shift()}return!0}function yP(o,l,h){iv(o)&&h.delete(l)}function gH(){U_=!1,Xs!==null&&iv(Xs)&&(Xs=null),Qs!==null&&iv(Qs)&&(Qs=null),Js!==null&&iv(Js)&&(Js=null),wh.forEach(yP),Sh.forEach(yP)}function av(o,l){o.blockedOn===l&&(o.blockedOn=null,U_||(U_=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gH)))}var ov=null;function bP(o){ov!==o&&(ov=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ov===o&&(ov=null);for(var l=0;l<o.length;l+=3){var h=o[l],b=o[l+1],E=o[l+2];if(typeof b!="function"){if(I_(b||h)===null)continue;break}var N=uo(h);N!==null&&(o.splice(l,3),l-=3,I1(N,{pending:!0,data:E,method:h.method,action:b},b,E))}}))}function Ah(o){function l(ge){return av(ge,o)}Xs!==null&&av(Xs,o),Qs!==null&&av(Qs,o),Js!==null&&av(Js,o),wh.forEach(l),Sh.forEach(l);for(var h=0;h<el.length;h++){var b=el[h];b.blockedOn===o&&(b.blockedOn=null)}for(;0<el.length&&(h=el[0],h.blockedOn===null);)vP(h),h.blockedOn===null&&el.shift();if(h=(o.ownerDocument||o).$$reactFormReplay,h!=null)for(b=0;b<h.length;b+=3){var E=h[b],N=h[b+1],re=E[nn]||null;if(typeof N=="function")re||bP(h);else if(re){var le=null;if(N&&N.hasAttribute("formAction")){if(E=N,re=N[nn]||null)le=re.formAction;else if(I_(E)!==null)continue}else le=re.action;typeof le=="function"?h[b+1]=le:(h.splice(b,3),b-=3),bP(h)}}}function B_(o){this._internalRoot=o}sv.prototype.render=B_.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var h=l.current,b=mi();dP(h,b,o,l,null,null)},sv.prototype.unmount=B_.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;dP(o.current,2,null,o,null,null),Fg(),l[er]=null}};function sv(o){this._internalRoot=o}sv.prototype.unstable_scheduleHydration=function(o){if(o){var l=Jn();o={blockedOn:null,target:o,priority:l};for(var h=0;h<el.length&&l!==0&&l<el[h].priority;h++);el.splice(h,0,o),h===0&&vP(o)}};var _P=t.version;if(_P!=="19.1.0")throw Error(r(527,_P,"19.1.0"));B.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(l),o=o!==null?c(o):null,o=o===null?null:o.stateNode,o};var vH={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lv.isDisabled&&lv.supportsFiber)try{Ne=lv.inject(vH),Te=lv}catch{}}return Ph.createRoot=function(o,l){if(!i(o))throw Error(r(299));var h=!1,b="",E=k4,N=I4,re=U4,le=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onUncaughtError!==void 0&&(E=l.onUncaughtError),l.onCaughtError!==void 0&&(N=l.onCaughtError),l.onRecoverableError!==void 0&&(re=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(le=l.unstable_transitionCallbacks)),l=cP(o,1,!1,null,null,h,b,E,N,re,le,null),o[er]=l.current,x_(o),new B_(l)},Ph.hydrateRoot=function(o,l,h){if(!i(o))throw Error(r(299));var b=!1,E="",N=k4,re=I4,le=U4,ge=null,Ee=null;return h!=null&&(h.unstable_strictMode===!0&&(b=!0),h.identifierPrefix!==void 0&&(E=h.identifierPrefix),h.onUncaughtError!==void 0&&(N=h.onUncaughtError),h.onCaughtError!==void 0&&(re=h.onCaughtError),h.onRecoverableError!==void 0&&(le=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(ge=h.unstable_transitionCallbacks),h.formState!==void 0&&(Ee=h.formState)),l=cP(o,1,!0,l,h??null,b,E,N,re,le,ge,Ee),l.context=fP(null),h=l.current,b=mi(),b=yn(b),E=Is(b),E.callback=null,Us(h,E,b),h=b,l.current.lanes=h,Ea(l,h),za(l),o[er]=l.current,x_(o),new sv(l)},Ph.version="19.1.0",Ph}var MP;function jH(){if(MP)return $_.exports;MP=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(),$_.exports=TH(),$_.exports}var PH=jH(),I=N0();const pe=qt(I),TI=xH({__proto__:null,default:pe},[I]);var G_={exports:{}},W_={};/**
|
||
* @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 NP;function RH(){if(NP)return W_;NP=1;var e=N0();function t(f,c){return f===c&&(f!==0||1/f===1/c)||f!==f&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,u=e.useDebugValue;return W_.useSyncExternalStoreWithSelector=function(f,c,p,m,v){var x=i(null);if(x.current===null){var w={hasValue:!1,value:null};x.current=w}else w=x.current;x=s(function(){function S(j){if(!C){if(C=!0,O=j,j=m(j),v!==void 0&&w.hasValue){var R=w.value;if(v(R,j))return T=R}return T=j}if(R=T,n(O,j))return R;var $=m(j);return v!==void 0&&v(R,$)?(O=j,R):(O=j,T=$)}var C=!1,O,T,P=p===void 0?null:p;return[function(){return S(c())},P===null?void 0:function(){return S(P())}]},[c,p,m,v]);var _=r(f,x[0],x[1]);return a(function(){w.hasValue=!0,w.value=_},[_]),u(_),_},W_}var LP;function MH(){return LP||(LP=1,G_.exports=RH()),G_.exports}MH();var NH=I.version.startsWith("19"),LH=Symbol.for(NH?"react.transitional.element":"react.element"),DH=Symbol.for("react.portal"),kH=Symbol.for("react.fragment"),IH=Symbol.for("react.strict_mode"),UH=Symbol.for("react.profiler"),BH=Symbol.for("react.consumer"),zH=Symbol.for("react.context"),jI=Symbol.for("react.forward_ref"),$H=Symbol.for("react.suspense"),FH=Symbol.for("react.suspense_list"),ZO=Symbol.for("react.memo"),qH=Symbol.for("react.lazy"),VH=jI,HH=ZO;function GH(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case LH:switch(e=e.type,e){case kH:case UH:case IH:case $H:case FH:return e;default:switch(e=e&&e.$$typeof,e){case zH:case jI:case qH:case ZO:return e;case BH:return e;default:return t}}case DH:return t}}}function WH(e){return GH(e)===ZO}function YH(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:s}){let u=!1,f,c,p,m,v;function x(O,T){return f=O,c=T,p=e(f,c),m=t(r,c),v=n(p,m,c),u=!0,v}function w(){return p=e(f,c),t.dependsOnOwnProps&&(m=t(r,c)),v=n(p,m,c),v}function _(){return e.dependsOnOwnProps&&(p=e(f,c)),t.dependsOnOwnProps&&(m=t(r,c)),v=n(p,m,c),v}function S(){const O=e(f,c),T=!s(O,p);return p=O,T&&(v=n(p,m,c)),v}function C(O,T){const P=!a(T,c),j=!i(O,f,T,c);return f=O,c=T,P&&j?w():P?_():j?S():v}return function(T,P){return u?C(T,P):x(T,P)}}function KH(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const a=t(e,i),s=n(e,i),u=r(e,i);return YH(a,s,u,e,i)}function ZH(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...a)=>t(i(...a)))}return n}function LC(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function DP(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function PI(e,t){return function(r,{displayName:i}){const a=function(u,f){return a.dependsOnOwnProps?a.mapToProps(u,f):a.mapToProps(u,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(u,f){a.mapToProps=e,a.dependsOnOwnProps=DP(e);let c=a(u,f);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=DP(c),c=a(u,f)),c},a}}function XO(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function XH(e){return e&&typeof e=="object"?LC(t=>ZH(e,t)):e?typeof e=="function"?PI(e):XO(e,"mapDispatchToProps"):LC(t=>({dispatch:t}))}function QH(e){return e?typeof e=="function"?PI(e):XO(e,"mapStateToProps"):LC(()=>({}))}function JH(e,t,n){return{...n,...e,...t}}function eG(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let a=!1,s;return function(f,c,p){const m=e(f,c,p);return a?i(m,s)||(s=m):(a=!0,s=m),s}}}function tG(e){return e?typeof e=="function"?eG(e):XO(e,"mergeProps"):()=>JH}function nG(e){e()}function rG(){let e=null,t=null;return{clear(){e=null,t=null},notify(){nG(()=>{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 kP={notify(){},get:()=>[]};function RI(e,t){let n,r=kP,i=0,a=!1;function s(_){p();const S=r.subscribe(_);let C=!1;return()=>{C||(C=!0,S(),m())}}function u(){r.notify()}function f(){w.onStateChange&&w.onStateChange()}function c(){return a}function p(){i++,n||(n=t?t.addNestedSub(f):e.subscribe(f),r=rG())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=kP)}function v(){a||(a=!0,p())}function x(){a&&(a=!1,m())}const w={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:f,isSubscribed:c,trySubscribe:v,tryUnsubscribe:x,getListeners:()=>r};return w}var iG=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aG=iG(),oG=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sG=oG(),lG=()=>aG||sG?I.useLayoutEffect:I.useEffect,Jv=lG();function IP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Y_(e,t){if(IP(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])||!IP(e[n[i]],t[n[i]]))return!1;return!0}var uG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dG={[VH]:fG,[HH]:MI};function UP(e){return WH(e)?MI:dG[e.$$typeof]||uG}var hG=Object.defineProperty,pG=Object.getOwnPropertyNames,BP=Object.getOwnPropertySymbols,mG=Object.getOwnPropertyDescriptor,gG=Object.getPrototypeOf,zP=Object.prototype;function DC(e,t){if(typeof t!="string"){if(zP){const a=gG(t);a&&a!==zP&&DC(e,a)}let n=pG(t);BP&&(n=n.concat(BP(t)));const r=UP(e),i=UP(t);for(let a=0;a<n.length;++a){const s=n[a];if(!cG[s]&&!(i&&i[s])&&!(r&&r[s])){const u=mG(t,s);try{hG(e,s,u)}catch{}}}}return e}var K_=Symbol.for("react-redux-context"),Z_=typeof globalThis<"u"?globalThis:{};function vG(){if(!I.createContext)return{};const e=Z_[K_]??(Z_[K_]=new Map);let t=e.get(I.createContext);return t||(t=I.createContext(null),e.set(I.createContext,t)),t}var NI=vG(),yG=[null,null];function bG(e,t,n){Jv(()=>e(...t),n)}function _G(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function xG(e,t,n,r,i,a,s,u,f,c,p){if(!e)return()=>{};let m=!1,v=null;const x=()=>{if(m||!u.current)return;const _=t.getState();let S,C;try{S=r(_,i.current)}catch(O){C=O,v=O}C||(v=null),S===a.current?s.current||c():(a.current=S,f.current=S,s.current=!0,p())};return n.onStateChange=x,n.trySubscribe(),x(),()=>{if(m=!0,n.tryUnsubscribe(),n.onStateChange=null,v)throw v}}function wG(e,t){return e===t}function SG(e,t,n,{pure:r,areStatesEqual:i=wG,areOwnPropsEqual:a=Y_,areStatePropsEqual:s=Y_,areMergedPropsEqual:u=Y_,forwardRef:f=!1,context:c=NI}={}){const p=c,m=QH(e),v=XH(t),x=tG(n),w=!!e;return S=>{const C=S.displayName||S.name||"Component",O=`Connect(${C})`,T={shouldHandleStateChanges:w,displayName:O,wrappedComponentName:C,WrappedComponent:S,initMapStateToProps:m,initMapDispatchToProps:v,initMergeProps:x,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:u};function P($){const[V,X,Z]=I.useMemo(()=>{const{reactReduxForwardedRef:K,...se}=$;return[$.context,K,se]},[$]),Y=I.useMemo(()=>{let K=p;return V!=null&&V.Consumer,K},[V,p]),te=I.useContext(Y),ae=!!$.store&&!!$.store.getState&&!!$.store.dispatch,Q=!!te&&!!te.store,ne=ae?$.store:te.store,H=Q?te.getServerState:ne.getState,B=I.useMemo(()=>KH(ne.dispatch,T),[ne]),[U,F]=I.useMemo(()=>{if(!w)return yG;const K=RI(ne,ae?void 0:te.subscription),se=K.notifyNestedSubs.bind(K);return[K,se]},[ne,ae,te]),M=I.useMemo(()=>ae?te:{...te,subscription:U},[ae,te,U]),k=I.useRef(void 0),J=I.useRef(Z),W=I.useRef(void 0),ie=I.useRef(!1),fe=I.useRef(!1),ce=I.useRef(void 0);Jv(()=>(fe.current=!0,()=>{fe.current=!1}),[]);const ye=I.useMemo(()=>()=>W.current&&Z===J.current?W.current:B(ne.getState(),Z),[ne,Z]),z=I.useMemo(()=>se=>U?xG(w,ne,U,B,J,k,ie,fe,W,F,se):()=>{},[U]);bG(_G,[J,k,ie,Z,W,F]);let q;try{q=I.useSyncExternalStore(z,ye,H?()=>B(H(),Z):ye)}catch(K){throw ce.current&&(K.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ce.current.stack}
|
||
|
||
`),K}Jv(()=>{ce.current=void 0,W.current=void 0,k.current=q});const ee=I.useMemo(()=>I.createElement(S,{...q,ref:X}),[X,S,q]);return I.useMemo(()=>w?I.createElement(Y.Provider,{value:M},ee):ee,[Y,ee,M])}const R=I.memo(P);if(R.WrappedComponent=S,R.displayName=P.displayName=O,f){const V=I.forwardRef(function(Z,Y){return I.createElement(R,{...Z,reactReduxForwardedRef:Y})});return V.displayName=O,V.WrappedComponent=S,DC(V,S)}return DC(R,S)}}var LI=SG;function CG(e){const{children:t,context:n,serverState:r,store:i}=e,a=I.useMemo(()=>{const f=RI(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),s=I.useMemo(()=>i.getState(),[i]);Jv(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),s!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,s]);const u=n||NI;return I.createElement(u.Provider,{value:a},t)}var DI=CG,Rh={},$P;function AG(){if($P)return Rh;$P=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.parse=s,Rh.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function s(v,x){const w=new a,_=v.length;if(_<2)return w;const S=(x==null?void 0:x.decode)||p;let C=0;do{const O=v.indexOf("=",C);if(O===-1)break;const T=v.indexOf(";",C),P=T===-1?_:T;if(O>P){C=v.lastIndexOf(";",O-1)+1;continue}const j=u(v,C,O),R=f(v,O,j),$=v.slice(j,R);if(w[$]===void 0){let V=u(v,O+1,P),X=f(v,P,V);const Z=S(v.slice(V,X));w[$]=Z}C=P+1}while(C<_);return w}function u(v,x,w){do{const _=v.charCodeAt(x);if(_!==32&&_!==9)return x}while(++x<w);return w}function f(v,x,w){for(;x>w;){const _=v.charCodeAt(--x);if(_!==32&&_!==9)return x+1}return w}function c(v,x,w){const _=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const S=_(x);if(!t.test(S))throw new TypeError(`argument val is invalid: ${x}`);let C=v+"="+S;if(!w)return C;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);C+="; Max-Age="+w.maxAge}if(w.domain){if(!n.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);C+="; Domain="+w.domain}if(w.path){if(!r.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);C+="; Path="+w.path}if(w.expires){if(!m(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);C+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(C+="; HttpOnly"),w.secure&&(C+="; Secure"),w.partitioned&&(C+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return C}function p(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function m(v){return i.call(v)==="[object Date]"}return Rh}AG();var FP="popstate";function OG(e={}){function t(r,i){let{pathname:a,search:s,hash:u}=r.location;return kC("",{pathname:a,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:_p(i)}return TG(t,n,null,e)}function wn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ga(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EG(){return Math.random().toString(36).substring(2,10)}function qP(e,t){return{usr:e.state,key:e.key,idx:t}}function kC(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?id(t):t,state:n,key:t&&t.key||r||EG()}}function _p({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 id(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 TG(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,u="POP",f=null,c=p();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function p(){return(s.state||{idx:null}).idx}function m(){u="POP";let S=p(),C=S==null?null:S-c;c=S,f&&f({action:u,location:_.location,delta:C})}function v(S,C){u="PUSH";let O=kC(_.location,S,C);c=p()+1;let T=qP(O,c),P=_.createHref(O);try{s.pushState(T,"",P)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(P)}a&&f&&f({action:u,location:_.location,delta:1})}function x(S,C){u="REPLACE";let O=kC(_.location,S,C);c=p();let T=qP(O,c),P=_.createHref(O);s.replaceState(T,"",P),a&&f&&f({action:u,location:_.location,delta:0})}function w(S){return jG(S)}let _={get action(){return u},get location(){return e(i,s)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(FP,m),f=S,()=>{i.removeEventListener(FP,m),f=null}},createHref(S){return t(i,S)},createURL:w,encodeLocation(S){let C=w(S);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:x,go(S){return s.go(S)}};return _}function jG(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),wn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:_p(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function kI(e,t,n="/"){return PG(e,t,n,!1)}function PG(e,t,n,r){let i=typeof t=="string"?id(t):t,a=Yo(i.pathname||"/",n);if(a==null)return null;let s=II(e);RG(s);let u=null;for(let f=0;u==null&&f<s.length;++f){let c=FG(a);u=zG(s[f],c,r)}return u}function II(e,t=[],n=[],r=""){let i=(a,s,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};f.relativePath.startsWith("/")&&(wn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let c=qo([r,f.relativePath]),p=n.concat(f);a.children&&a.children.length>0&&(wn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),II(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:UG(c,a.index),routesMeta:p})};return e.forEach((a,s)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,s);else for(let f of UI(a.path))i(a,s,f)}),t}function UI(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=UI(r.join("/")),u=[];return u.push(...s.map(f=>f===""?a:[a,f].join("/"))),i&&u.push(...s),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function RG(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:BG(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var MG=/^:[\w-]+$/,NG=3,LG=2,DG=1,kG=10,IG=-2,VP=e=>e==="*";function UG(e,t){let n=e.split("/"),r=n.length;return n.some(VP)&&(r+=IG),t&&(r+=LG),n.filter(i=>!VP(i)).reduce((i,a)=>i+(MG.test(a)?NG:a===""?DG:kG),r)}function BG(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 zG(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",s=[];for(let u=0;u<r.length;++u){let f=r[u],c=u===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",m=ey({path:f.relativePath,caseSensitive:f.caseSensitive,end:c},p),v=f.route;if(!m&&c&&n&&!r[r.length-1].route.index&&(m=ey({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!m)return null;Object.assign(i,m.params),s.push({params:i,pathname:qo([a,m.pathname]),pathnameBase:GG(qo([a,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(a=qo([a,m.pathnameBase]))}return s}function ey(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$G(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((c,{paramName:p,isOptional:m},v)=>{if(p==="*"){let w=u[v]||"";s=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=u[v];return m&&!x?c[p]=void 0:c[p]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:e}}function $G(e,t=!1,n=!0){ga(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,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function FG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ga(!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 qG(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?id(e):e;return{pathname:n?n.startsWith("/")?n:VG(n,t):t,search:WG(r),hash:YG(i)}}function VG(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 X_(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 HG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QO(e){let t=HG(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function JO(e,t,n,r=!1){let i;typeof e=="string"?i=id(e):(i={...e},wn(!i.pathname||!i.pathname.includes("?"),X_("?","pathname","search",i)),wn(!i.pathname||!i.pathname.includes("#"),X_("#","pathname","hash",i)),wn(!i.search||!i.search.includes("#"),X_("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,u;if(s==null)u=n;else{let m=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),m-=1;i.pathname=v.join("/")}u=m>=0?t[m]:"/"}let f=qG(i,u),c=s&&s!=="/"&&s.endsWith("/"),p=(a||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(c||p)&&(f.pathname+="/"),f}var qo=e=>e.join("/").replace(/\/\/+/g,"/"),GG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function KG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var BI=["POST","PUT","PATCH","DELETE"];new Set(BI);var ZG=["GET",...BI];new Set(ZG);var ad=I.createContext(null);ad.displayName="DataRouter";var L0=I.createContext(null);L0.displayName="DataRouterState";var zI=I.createContext({isTransitioning:!1});zI.displayName="ViewTransition";var XG=I.createContext(new Map);XG.displayName="Fetchers";var QG=I.createContext(null);QG.displayName="Await";var ba=I.createContext(null);ba.displayName="Navigation";var ym=I.createContext(null);ym.displayName="Location";var _a=I.createContext({outlet:null,matches:[],isDataRoute:!1});_a.displayName="Route";var eE=I.createContext(null);eE.displayName="RouteError";function JG(e,{relative:t}={}){wn(Yu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=I.useContext(ba),{hash:i,pathname:a,search:s}=bm(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:qo([n,a])),r.createHref({pathname:u,search:s,hash:i})}function Yu(){return I.useContext(ym)!=null}function xr(){return wn(Yu(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(ym).location}var $I="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function FI(e){I.useContext(ba).static||I.useLayoutEffect(e)}function ro(){let{isDataRoute:e}=I.useContext(_a);return e?dW():eW()}function eW(){wn(Yu(),"useNavigate() may be used only in the context of a <Router> component.");let e=I.useContext(ad),{basename:t,navigator:n}=I.useContext(ba),{matches:r}=I.useContext(_a),{pathname:i}=xr(),a=JSON.stringify(QO(r)),s=I.useRef(!1);return FI(()=>{s.current=!0}),I.useCallback((f,c={})=>{if(ga(s.current,$I),!s.current)return;if(typeof f=="number"){n.go(f);return}let p=JO(f,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:qo([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}I.createContext(null);function od(){let{matches:e}=I.useContext(_a),t=e[e.length-1];return t?t.params:{}}function bm(e,{relative:t}={}){let{matches:n}=I.useContext(_a),{pathname:r}=xr(),i=JSON.stringify(QO(n));return I.useMemo(()=>JO(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function tW(e,t){return qI(e,t)}function qI(e,t,n,r){var C;wn(Yu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=I.useContext(ba),{matches:a}=I.useContext(_a),s=a[a.length-1],u=s?s.params:{},f=s?s.pathname:"/",c=s?s.pathnameBase:"/",p=s&&s.route;{let O=p&&p.path||"";VI(f,!p||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${O}">) 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="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let m=xr(),v;if(t){let O=typeof t=="string"?id(t):t;wn(c==="/"||((C=O.pathname)==null?void 0:C.startsWith(c)),`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 "${c}" but pathname "${O.pathname}" was given in the \`location\` prop.`),v=O}else v=m;let x=v.pathname||"/",w=x;if(c!=="/"){let O=c.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(O.length).join("/")}let _=kI(e,{pathname:w});ga(p||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ga(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=oW(_&&_.map(O=>Object.assign({},O,{params:Object.assign({},u,O.params),pathname:qo([c,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:qo([c,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),a,n,r);return t&&S?I.createElement(ym.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},S):S}function nW(){let e=fW(),t=KG(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},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:a},"ErrorBoundary")," or"," ",I.createElement("code",{style:a},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,s)}var rW=I.createElement(nW,null),iW=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?I.createElement(_a.Provider,{value:this.props.routeContext},I.createElement(eE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function aW({routeContext:e,match:t,children:n}){let r=I.useContext(ad);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(_a.Provider,{value:e},n)}function oW(e,t=[],n=null,r=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 i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);wn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let s=!1,u=-1;if(n)for(let f=0;f<i.length;f++){let c=i[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:p,errors:m}=n,v=c.route.loader&&!p.hasOwnProperty(c.route.id)&&(!m||m[c.route.id]===void 0);if(c.route.lazy||v){s=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((f,c,p)=>{let m,v=!1,x=null,w=null;n&&(m=a&&c.route.id?a[c.route.id]:void 0,x=c.route.errorElement||rW,s&&(u<0&&p===0?(VI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,w=null):u===p&&(v=!0,w=c.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,p+1)),S=()=>{let C;return m?C=x:v?C=w:c.route.Component?C=I.createElement(c.route.Component,null):c.route.element?C=c.route.element:C=f,I.createElement(aW,{match:c,routeContext:{outlet:f,matches:_,isDataRoute:n!=null},children:C})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?I.createElement(iW,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:S(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):S()},null)}function tE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sW(e){let t=I.useContext(ad);return wn(t,tE(e)),t}function lW(e){let t=I.useContext(L0);return wn(t,tE(e)),t}function uW(e){let t=I.useContext(_a);return wn(t,tE(e)),t}function nE(e){let t=uW(e),n=t.matches[t.matches.length-1];return wn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function cW(){return nE("useRouteId")}function fW(){var r;let e=I.useContext(eE),t=lW("useRouteError"),n=nE("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function dW(){let{router:e}=sW("useNavigate"),t=nE("useNavigate"),n=I.useRef(!1);return FI(()=>{n.current=!0}),I.useCallback(async(i,a={})=>{ga(n.current,$I),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var HP={};function VI(e,t,n){!t&&!HP[e]&&(HP[e]=!0,ga(!1,n))}I.memo(hW);function hW({routes:e,future:t,state:n}){return qI(e,void 0,n,t)}function rE({to:e,replace:t,state:n,relative:r}){wn(Yu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=I.useContext(ba);ga(!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:a}=I.useContext(_a),{pathname:s}=xr(),u=ro(),f=JO(e,QO(a),s,r==="path"),c=JSON.stringify(f);return I.useEffect(()=>{u(JSON.parse(c),{replace:t,state:n,relative:r})},[u,c,r,t,n]),null}function wt(e){wn(!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 pW({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){wn(!Yu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof n=="string"&&(n=id(n));let{pathname:f="/",search:c="",hash:p="",state:m=null,key:v="default"}=n,x=I.useMemo(()=>{let w=Yo(f,s);return w==null?null:{location:{pathname:w,search:c,hash:p,state:m,key:v},navigationType:r}},[s,f,c,p,m,v,r]);return ga(x!=null,`<Router basename="${s}"> is not able to match the URL "${f}${c}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:I.createElement(ba.Provider,{value:u},I.createElement(ym.Provider,{children:t,value:x}))}function D0({children:e,location:t}){return tW(IC(e),t)}function IC(e,t=[]){let n=[];return I.Children.forEach(e,(r,i)=>{if(!I.isValidElement(r))return;let a=[...t,i];if(r.type===I.Fragment){n.push.apply(n,IC(r.props.children,a));return}wn(r.type===wt,`[${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>`),wn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,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=IC(r.props.children,a)),n.push(s)}),n}var qv="get",Vv="application/x-www-form-urlencoded";function k0(e){return e!=null&&typeof e.tagName=="string"}function mW(e){return k0(e)&&e.tagName.toLowerCase()==="button"}function gW(e){return k0(e)&&e.tagName.toLowerCase()==="form"}function vW(e){return k0(e)&&e.tagName.toLowerCase()==="input"}function yW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bW(e,t){return e.button===0&&(!t||t==="_self")&&!yW(e)}var cv=null;function _W(){if(cv===null)try{new FormData(document.createElement("form"),0),cv=!1}catch{cv=!0}return cv}var xW=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Q_(e){return e!=null&&!xW.has(e)?(ga(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vv}"`),null):e}function wW(e,t){let n,r,i,a,s;if(gW(e)){let u=e.getAttribute("action");r=u?Yo(u,t):null,n=e.getAttribute("method")||qv,i=Q_(e.getAttribute("enctype"))||Vv,a=new FormData(e)}else if(mW(e)||vW(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 f=e.getAttribute("formaction")||u.getAttribute("action");if(r=f?Yo(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||qv,i=Q_(e.getAttribute("formenctype"))||Q_(u.getAttribute("enctype"))||Vv,a=new FormData(u,e),!_W()){let{name:c,type:p,value:m}=e;if(p==="image"){let v=c?`${c}.`:"";a.append(`${v}x`,"0"),a.append(`${v}y`,"0")}else c&&a.append(c,m)}}else{if(k0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=qv,r=null,i=Vv,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}function iE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function SW(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 CW(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 AW(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await SW(a,n);return s.links?s.links():[]}return[]}));return jW(r.flat(1).filter(CW).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function GP(e,t,n,r,i,a){let s=(f,c)=>n[c]?f.route.id!==n[c].route.id:!0,u=(f,c)=>{var p;return n[c].pathname!==f.pathname||((p=n[c].route.path)==null?void 0:p.endsWith("*"))&&n[c].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,c)=>s(f,c)||u(f,c)):a==="data"?t.filter((f,c)=>{var m;let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(s(f,c)||u(f,c))return!0;if(f.route.shouldRevalidate){let v=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function OW(e,t,{includeHydrateFallback:n}={}){return EW(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function EW(e){return[...new Set(e)]}function TW(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function jW(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(TW(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var PW=new Set([100,101,204,205]);function RW(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Yo(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function HI(){let e=I.useContext(ad);return iE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function MW(){let e=I.useContext(L0);return iE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var aE=I.createContext(void 0);aE.displayName="FrameworkContext";function GI(){let e=I.useContext(aE);return iE(e,"You must render this element inside a <HydratedRouter> element"),e}function NW(e,t){let n=I.useContext(aE),[r,i]=I.useState(!1),[a,s]=I.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:c,onMouseLeave:p,onTouchStart:m}=t,v=I.useRef(null);I.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let _=C=>{C.forEach(O=>{s(O.isIntersecting)})},S=new IntersectionObserver(_,{threshold:.5});return v.current&&S.observe(v.current),()=>{S.disconnect()}}},[e]),I.useEffect(()=>{if(r){let _=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(_)}}},[r]);let x=()=>{i(!0)},w=()=>{i(!1),s(!1)};return n?e!=="intent"?[a,v,{}]:[a,v,{onFocus:Mh(u,x),onBlur:Mh(f,w),onMouseEnter:Mh(c,x),onMouseLeave:Mh(p,w),onTouchStart:Mh(m,x)}]:[!1,v,{}]}function Mh(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function LW({page:e,...t}){let{router:n}=HI(),r=I.useMemo(()=>kI(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?I.createElement(kW,{page:e,matches:r,...t}):null}function DW(e){let{manifest:t,routeModules:n}=GI(),[r,i]=I.useState([]);return I.useEffect(()=>{let a=!1;return AW(e,t,n).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,n]),r}function kW({page:e,matches:t,...n}){let r=xr(),{manifest:i,routeModules:a}=GI(),{basename:s}=HI(),{loaderData:u,matches:f}=MW(),c=I.useMemo(()=>GP(e,t,f,i,r,"data"),[e,t,f,i,r]),p=I.useMemo(()=>GP(e,t,f,i,r,"assets"),[e,t,f,i,r]),m=I.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,_=!1;if(t.forEach(C=>{var T;let O=i.routes[C.route.id];!O||!O.hasLoader||(!c.some(P=>P.route.id===C.route.id)&&C.route.id in u&&((T=a[C.route.id])!=null&&T.shouldRevalidate)||O.hasClientLoader?_=!0:w.add(C.route.id))}),w.size===0)return[];let S=RW(e,s);return _&&w.size>0&&S.searchParams.set("_routes",t.filter(C=>w.has(C.route.id)).map(C=>C.route.id).join(",")),[S.pathname+S.search]},[s,u,r,i,c,t,e,a]),v=I.useMemo(()=>OW(p,i),[p,i]),x=DW(p);return I.createElement(I.Fragment,null,m.map(w=>I.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),v.map(w=>I.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),x.map(({key:w,link:_})=>I.createElement("link",{key:w,..._})))}function IW(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var WI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{WI&&(window.__reactRouterVersion="7.6.2")}catch{}function YI({basename:e,children:t,window:n}){let r=I.useRef();r.current==null&&(r.current=OG({window:n,v5Compat:!0}));let i=r.current,[a,s]=I.useState({action:i.action,location:i.location}),u=I.useCallback(f=>{I.startTransition(()=>s(f))},[s]);return I.useLayoutEffect(()=>i.listen(u),[i,u]),I.createElement(pW,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var KI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pr=I.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,state:u,target:f,to:c,preventScrollReset:p,viewTransition:m,...v},x){let{basename:w}=I.useContext(ba),_=typeof c=="string"&&KI.test(c),S,C=!1;if(typeof c=="string"&&_&&(S=c,WI))try{let X=new URL(window.location.href),Z=c.startsWith("//")?new URL(X.protocol+c):new URL(c),Y=Yo(Z.pathname,w);Z.origin===X.origin&&Y!=null?c=Y+Z.search+Z.hash:C=!0}catch{ga(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=JG(c,{relative:i}),[T,P,j]=NW(r,v),R=zW(c,{replace:s,state:u,target:f,preventScrollReset:p,relative:i,viewTransition:m});function $(X){t&&t(X),X.defaultPrevented||R(X)}let V=I.createElement("a",{...v,...j,href:S||O,onClick:C||a?t:$,ref:IW(x,P),target:f,"data-discover":!_&&n==="render"?"true":void 0});return T&&!_?I.createElement(I.Fragment,null,V,I.createElement(LW,{page:O})):V});Pr.displayName="Link";var oE=I.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:u,children:f,...c},p){let m=bm(s,{relative:c.relative}),v=xr(),x=I.useContext(L0),{navigator:w,basename:_}=I.useContext(ba),S=x!=null&&HW(m)&&u===!0,C=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,O=v.pathname,T=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(O=O.toLowerCase(),T=T?T.toLowerCase():null,C=C.toLowerCase()),T&&_&&(T=Yo(T,_)||T);const P=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let j=O===C||!i&&O.startsWith(C)&&O.charAt(P)==="/",R=T!=null&&(T===C||!i&&T.startsWith(C)&&T.charAt(C.length)==="/"),$={isActive:j,isPending:R,isTransitioning:S},V=j?t:void 0,X;typeof r=="function"?X=r($):X=[r,j?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let Z=typeof a=="function"?a($):a;return I.createElement(Pr,{...c,"aria-current":V,className:X,ref:p,style:Z,to:s,viewTransition:u},typeof f=="function"?f($):f)});oE.displayName="NavLink";var UW=I.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:s=qv,action:u,onSubmit:f,relative:c,preventScrollReset:p,viewTransition:m,...v},x)=>{let w=qW(),_=VW(u,{relative:c}),S=s.toLowerCase()==="get"?"get":"post",C=typeof u=="string"&&KI.test(u),O=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let P=T.nativeEvent.submitter,j=(P==null?void 0:P.getAttribute("formmethod"))||s;w(P||T.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:i,state:a,relative:c,preventScrollReset:p,viewTransition:m})};return I.createElement("form",{ref:x,method:S,action:_,onSubmit:r?f:O,...v,"data-discover":!C&&e==="render"?"true":void 0})});UW.displayName="Form";function BW(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZI(e){let t=I.useContext(ad);return wn(t,BW(e)),t}function zW(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:s}={}){let u=ro(),f=xr(),c=bm(e,{relative:a});return I.useCallback(p=>{if(bW(p,t)){p.preventDefault();let m=n!==void 0?n:_p(f)===_p(c);u(e,{replace:m,state:r,preventScrollReset:i,relative:a,viewTransition:s})}},[f,u,c,n,r,t,e,i,a,s])}var $W=0,FW=()=>`__${String(++$W)}__`;function qW(){let{router:e}=ZI("useSubmit"),{basename:t}=I.useContext(ba),n=cW();return I.useCallback(async(r,i={})=>{let{action:a,method:s,encType:u,formData:f,body:c}=wW(r,t);if(i.navigate===!1){let p=i.fetcherKey||FW();await e.fetch(p,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:c,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 VW(e,{relative:t}={}){let{basename:n}=I.useContext(ba),r=I.useContext(_a);wn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...bm(e||".",{relative:t})},s=xr();if(e==null){a.search=s.search;let u=new URLSearchParams(a.search),f=u.getAll("index");if(f.some(p=>p==="")){u.delete("index"),f.filter(m=>m).forEach(m=>u.append("index",m));let p=u.toString();a.search=p?`?${p}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:qo([n,a.pathname])),_p(a)}function HW(e,t={}){let n=I.useContext(zI);wn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ZI("useViewTransitionState"),i=bm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Yo(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Yo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ey(i.pathname,s)!=null||ey(i.pathname,a)!=null}[...PW];const GW="/shlink-web-client/develop",ty={homepage:GW};var va,Xa=".",XI="function",QI="string",JI="__global__",sE="Provider",WW=0,lE=Array.prototype.slice,YW=function(t,n){var r=t[n];if(r===void 0&&va.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},I0=function(t){var n;return this.nested[t]||(n=va.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},e7=function(t){return t.split(Xa).reduce(YW,this)},KW=function(t,n,r,i){var a={configurable:!0,enumerable:!0};return t.length?a.get=function(){var u=0,f=function(p){if(p)throw p;t[u]&&t[u++](r,f)};return f(),r}:(a.value=r,a.writable=!0),Object.defineProperty(i,n,a),i[n]},ZW=function(t,n){var r,i;return typeof t===XI&&(n=t,t=JI),r=t.split(Xa),i=r.shift(),r.length?I0.call(this,i).middleware(r.join(Xa),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},XW=function(t,n){return n(t)},WP=function(t,n){return(t[n]||[]).concat(t.__global__||[])},QW=function(t,n){var r,i,a,s,u;return this.id,a=this.container,s=this.decorators,u=this.middlewares,r=t+sE,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete a[r],a[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=a[r],p;return c&&(p=WP(s,t).reduce(XW,c.$get(a)),delete a[r],delete a[t]),p===void 0?p:KW(WP(u,t),t,p,a)}},Object.defineProperties(a,i),this},t7=function(t,n){var r,i;return r=t.split(Xa),this.providerMap[t]&&r.length===1&&!this.container[t+sE]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(I0.call(this,i).provider(r.join(Xa),n),this):QW.call(this,i,n))},uE=function(t,n){return t7.call(this,t,function(){this.$get=n})},n7=function(t,n,r){var i=arguments.length>3?lE.call(arguments,3):[],a=this;return uE.call(this,t,function(){var u=n,f=i.map(e7,a.container);return r?new(n.bind.apply(n,[null].concat(f))):u.apply(null,f)})},JW=function(t,n){return n7.apply(this,[t,n,!0].concat(lE.call(arguments,2)))},eY=function(t,n){return n7.apply(this,[t,n,!1].concat(lE.call(arguments,2)))},r7=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},i7=function(t,n){var r=t[n];return r||(r={},r7.call(t,n,r)),r},tY=function(t,n){var r;return r=t.split(Xa),t=r.pop(),r7.call(r.reduce(i7,this.container),t,n),this},nY=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},rY=function(t,n){var r=t.split(Xa);return t=r.pop(),nY.call(r.reduce(i7,this.container),t,n),this},a7=function(t,n){var r,i;return typeof t===XI&&(n=t,t=JI),r=t.split(Xa),i=r.shift(),r.length?I0.call(this,i).decorator(r.join(Xa),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},iY=function(t){return this.deferred.push(t),this},aY=function(t){return(t||[]).map(e7,this.container)},oY=function(t,n){return uE.call(this,t,function(i){return{instance:n.bind(n,i)}})},sY=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},cE=function(t){return Object.keys(t||this.container||{}).filter(sY)},ny={},lY=function(t){var n;return typeof t===QI?(n=ny[t],n||(ny[t]=n=new va,n.constant("BOTTLE_NAME",t)),n):new va},uY=function(t){typeof t===QI?delete ny[t]:ny={}},o7=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},YP=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+sE]},cY=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(a){if(!(r&&t.indexOf(a)===-1)){var s=a.split(Xa);s.length>1&&s.forEach(YP,I0.call(this,s[0])),YP.call(this,a),this.provider(a,n[a])}},this)},fY=function(t){return this.deferred.forEach(function(r){r(t)}),this};va=function e(t){if(!(this instanceof e))return e.pop(t);this.id=WW++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:a7.bind(this),$register:o7.bind(this),$list:cE.bind(this)}};va.prototype={constant:rY,decorator:a7,defer:iY,digest:aY,factory:uE,instanceFactory:oY,list:cE,middleware:ZW,provider:t7,resetProviders:cY,register:o7,resolve:fY,service:JW,serviceFactory:eY,value:tY};va.pop=lY;va.clear=uY;va.list=cE;va.config={strict:!1};const s7=va;var l7=e=>{throw TypeError(e)},fE=(e,t,n)=>t.has(e)||l7("Cannot "+n),du=(e,t,n)=>(fE(e,t,"read from private field"),n?n.call(e):t.get(e)),Nh=(e,t,n)=>t.has(e)?l7("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fv=(e,t,n,r)=>(fE(e,t,"write to private field"),t.set(e,n),n),ln=(e,t,n)=>(fE(e,t,"access private method"),n);const dY=(e,t)=>`${e}/rest/v${t}`,hY=e=>e.dir?`${e.field}-${e.dir}`:void 0,pY=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:hY(e)}),mY=(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("/"),a=i.length?`/${i.join("/")}`:"";return`${n}://${t}${a}`},gY=(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()};var ry,ip,tf,iy,Zt,ef,gr,Hv,J_;let vY=class{constructor(t,n,r={}){Nh(this,Zt),Nh(this,ry),Nh(this,ip),Nh(this,tf),Nh(this,iy),fv(this,ip,t),fv(this,tf,n),fv(this,iy,r),fv(this,ry,3)}async listShortUrls({signal:t,...n}={}){return ln(this,Zt,gr).call(this,{url:"/short-urls",query:pY(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[a,s])=>(s&&(i[a]=s),i),{});return ln(this,Zt,gr).call(this,{url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return ln(this,Zt,gr).call(this,{url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return ln(this,Zt,Hv).call(this,{url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return ln(this,Zt,gr).call(this,{url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return ln(this,Zt,gr).call(this,{url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return ln(this,Zt,gr).call(this,{url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return ln(this,Zt,gr).call(this,{url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return ln(this,Zt,ef).call(this,{url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return ln(this,Zt,ef).call(this,{url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return ln(this,Zt,ef).call(this,{url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return ln(this,Zt,ef).call(this,{url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return ln(this,Zt,ef).call(this,{url:"/visits/non-orphan",query:n,signal:t})}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return ln(this,Zt,gr).call(this,{method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return ln(this,Zt,gr).call(this,{method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return ln(this,Zt,gr).call(this,{url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return ln(this,Zt,gr).call(this,{url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return ln(this,Zt,Hv).call(this,{url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return ln(this,Zt,Hv).call(this,{url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return ln(this,Zt,gr).call(this,{url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return ln(this,Zt,gr).call(this,{url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return ln(this,Zt,gr).call(this,{url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return ln(this,Zt,gr).call(this,{url:"/mercure-info",signal:t})}};ry=new WeakMap,ip=new WeakMap,tf=new WeakMap,iy=new WeakMap,Zt=new WeakSet,ef=async function(e){return ln(this,Zt,gr).call(this,e).then(({visits:t})=>t)},gr=async function(e){return du(this,ip).jsonRequest(...ln(this,Zt,J_).call(this,e))},Hv=async function(e){return du(this,ip).emptyRequest(...ln(this,Zt,J_).call(this,e))},J_=function({url:e,method:t="GET",query:n,body:r,domain:i,signal:a}){const s=gY(n??{}),u=s?`?${s}`:"",f=i?mY(du(this,tf).baseUrl,i):du(this,tf).baseUrl;return[`${dY(f,du(this,ry))}${e}${u}`,{method:t,body:r&&JSON.stringify(r),headers:{"X-Api-Key":du(this,tf).apiKey},credentials:du(this,iy).requestCredentials,signal:a}]};const u7=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),ap=e=>!!(e!=null&&e.id),dE=e=>!!(e!=null&&e.version),yY=e=>!!(e!=null&&e.serverNotFound),bY=e=>ap(e)?e.id:"",_Y=({name:e,url:t,apiKey:n,forwardCredentials:r})=>({name:e,url:t,apiKey:n,forwardCredentials:r?"true":"false"}),xY=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",wY=e=>{const{forwardCredentials:t,...n}=e;if(!xY(n))throw new Error('Server is missing required "url", "apiKey" and/or "name" properties');return{...n,forwardCredentials:t==="true"}},KP=new Map,SY=e=>typeof e=="function",CY=e=>{const{selectedServer:t}=e();if(!u7(t))throw new Error("There's no selected server or it is not found");return t},AY=e=>t=>{const{url:n,apiKey:r,forwardCredentials:i}=SY(t)?CY(t):t,a=`${r}_${n}_${i?"forward":"no-forward"}`,s=KP.get(a);if(s)return s;const u=new vY(e,{apiKey:r,baseUrl:n},{requestCredentials:i?"include":void 0});return KP.set(a,u),u},OY=e=>{e.serviceFactory("buildShlinkApiClient",AY,"HttpClient")};function c7(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=c7(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function je(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=c7(e))&&(r&&(r+=" "),r+=t);return r}/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const EY={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},TY={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},jY={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},PY=jY,RY={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},f7=RY,MY={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},NY={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},d7=NY,hE={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},LY={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"]},pE={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"]},DY={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},kY=DY,IY={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},mE=IY,UY={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},BY={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},zY={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.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 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},$Y={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},FY={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},ZP={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},qY={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},VY=qY,HY={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},UC=HY,GY={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},WY={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},YY={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},KY=YY,gE={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},U0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},h7={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},ZY={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},XP={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},XY={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},QY={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},JY={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},eK=JY,tK={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},nK={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},B0=nK,rK={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},iK=rK,aK={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},p7={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},oK={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},sK=oK,lK={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},uK=lK,cK={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},fK=cK,dK={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},m7=dK,hK={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},pK={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},mK={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},gK={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},vK=gK,yK={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},bK={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},_m={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},z0={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},vE=z0,_K=z0,QP={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"]},ay={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},xK={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},wK=xK,g7={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},v7={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},SK=v7,CK={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},AK={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},OK={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},EK={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},TK={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Lu={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},y7={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},jK={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},PK=jK;/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/function RK(e,t,n){return(t=NK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JP(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JP(Object(n),!0).forEach(function(r){RK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MK(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 NK(e){var t=MK(e,"string");return typeof t=="symbol"?t:t+""}const eR=()=>{};let yE={},b7={},_7=null,x7={mark:eR,measure:eR};try{typeof window<"u"&&(yE=window),typeof document<"u"&&(b7=document),typeof MutationObserver<"u"&&(_7=MutationObserver),typeof performance<"u"&&(x7=performance)}catch{}const{userAgent:tR=""}=yE.navigator||{},_l=yE,gn=b7,nR=_7,dv=x7;_l.document;const rs=!!gn.documentElement&&!!gn.head&&typeof gn.addEventListener=="function"&&typeof gn.createElement=="function",w7=~tR.indexOf("MSIE")||~tR.indexOf("Trident/");var LK=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,DK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,S7={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"}},kK={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},C7=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Rr="classic",$0="duotone",IK="sharp",UK="sharp-duotone",A7=[Rr,$0,IK,UK],BK={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"}},zK={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},$K=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),FK={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},qK=["fak","fa-kit","fakd","fa-kit-duotone"],rR={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},VK=["kit"],HK={kit:{"fa-kit":"fak"}},GK=["fak","fakd"],WK={kit:{fak:"fa-kit"}},iR={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},hv={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},YK=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],KK=["fak","fa-kit","fakd","fa-kit-duotone"],ZK={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},XK={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"}},QK={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},BC={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"}},JK=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],zC=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...YK,...JK],eZ=["solid","regular","light","thin","duotone","brands"],O7=[1,2,3,4,5,6,7,8,9,10],tZ=O7.concat([11,12,13,14,15,16,17,18,19,20]),nZ=[...Object.keys(QK),...eZ,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",hv.GROUP,hv.SWAP_OPACITY,hv.PRIMARY,hv.SECONDARY].concat(O7.map(e=>"".concat(e,"x"))).concat(tZ.map(e=>"w-".concat(e))),rZ={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Ko="___FONT_AWESOME___",$C=16,E7="fa",T7="svg-inline--fa",Du="data-fa-i2svg",FC="data-fa-pseudo-element",iZ="data-fa-pseudo-element-pending",bE="data-prefix",_E="data-icon",aR="fontawesome-i2svg",aZ="async",oZ=["HTML","HEAD","STYLE","SCRIPT"],j7=(()=>{try{return!0}catch{return!1}})();function xm(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Rr]}})}const P7=Ye({},S7);P7[Rr]=Ye(Ye(Ye(Ye({},{"fa-duotone":"duotone"}),S7[Rr]),rR.kit),rR["kit-duotone"]);const sZ=xm(P7),qC=Ye({},FK);qC[Rr]=Ye(Ye(Ye(Ye({},{duotone:"fad"}),qC[Rr]),iR.kit),iR["kit-duotone"]);const oR=xm(qC),VC=Ye({},BC);VC[Rr]=Ye(Ye({},VC[Rr]),WK.kit);const xE=xm(VC),HC=Ye({},XK);HC[Rr]=Ye(Ye({},HC[Rr]),HK.kit);xm(HC);const lZ=LK,R7="fa-layers-text",uZ=DK,cZ=Ye({},BK);xm(cZ);const fZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ex=kK,dZ=[...VK,...nZ],op=_l.FontAwesomeConfig||{};function hZ(e){var t=gn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function pZ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}gn&&typeof gn.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=pZ(hZ(n));i!=null&&(op[r]=i)});const M7={styleDefault:"solid",familyDefault:Rr,cssPrefix:E7,replacementClass:T7,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};op.familyPrefix&&(op.cssPrefix=op.familyPrefix);const _f=Ye(Ye({},M7),op);_f.autoReplaceSvg||(_f.observeMutations=!1);const ut={};Object.keys(M7).forEach(e=>{Object.defineProperty(ut,e,{enumerable:!0,set:function(t){_f[e]=t,sp.forEach(n=>n(ut))},get:function(){return _f[e]}})});Object.defineProperty(ut,"familyPrefix",{enumerable:!0,set:function(e){_f.cssPrefix=e,sp.forEach(t=>t(ut))},get:function(){return _f.cssPrefix}});_l.FontAwesomeConfig=ut;const sp=[];function mZ(e){return sp.push(e),()=>{sp.splice(sp.indexOf(e),1)}}const nl=$C,qa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function gZ(e){if(!e||!rs)return;const t=gn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=gn.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const a=n[i],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=a)}return gn.head.insertBefore(t,r),e}const vZ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function xp(){let e=12,t="";for(;e-- >0;)t+=vZ[Math.random()*62|0];return t}function sd(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function wE(e){return e.classList?sd(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function N7(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function yZ(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(N7(e[n]),'" '),"").trim()}function F0(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function SE(e){return e.size!==qa.size||e.x!==qa.x||e.y!==qa.y||e.rotate!==qa.rotate||e.flipX||e.flipY}function bZ(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="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)"),f={transform:"".concat(a," ").concat(s," ").concat(u)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:f,path:c}}function _Z(e){let{transform:t,width:n=$C,height:r=$C,startCentered:i=!1}=e,a="";return i&&w7?a+="translate(".concat(t.x/nl-n/2,"em, ").concat(t.y/nl-r/2,"em) "):i?a+="translate(calc(-50% + ".concat(t.x/nl,"em), calc(-50% + ").concat(t.y/nl,"em)) "):a+="translate(".concat(t.x/nl,"em, ").concat(t.y/nl,"em) "),a+="scale(".concat(t.size/nl*(t.flipX?-1:1),", ").concat(t.size/nl*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var xZ=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
}
|
||
|
||
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
||
overflow: visible;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285705em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left {
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-pull-right {
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
top: 0.25em;
|
||
}
|
||
.svg-inline--fa.fa-fw {
|
||
width: var(--fa-fw-width, 1.25em);
|
||
}
|
||
|
||
.fa-layers svg.svg-inline--fa {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: 1em;
|
||
}
|
||
.fa-layers svg.svg-inline--fa {
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: 0.625em;
|
||
line-height: 0.1em;
|
||
vertical-align: 0.225em;
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: 0.75em;
|
||
line-height: 0.0833333337em;
|
||
vertical-align: 0.125em;
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: 0.875em;
|
||
line-height: 0.0714285718em;
|
||
vertical-align: 0.0535714295em;
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: 1.25em;
|
||
line-height: 0.05em;
|
||
vertical-align: -0.075em;
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: 1.5em;
|
||
line-height: 0.0416666682em;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: 2em;
|
||
line-height: 0.03125em;
|
||
vertical-align: -0.1875em;
|
||
}
|
||
|
||
.fa-fw {
|
||
text-align: center;
|
||
width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-left: var(--fa-li-margin, 2.5em);
|
||
padding-left: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
left: calc(-1 * var(--fa-li-width, 2em));
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.08em);
|
||
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
||
}
|
||
|
||
.fa-pull-left {
|
||
float: left;
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right {
|
||
float: right;
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
animation-name: fa-beat;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
animation-name: fa-bounce;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
animation-name: fa-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
animation-name: fa-beat-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
animation-name: fa-flip;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
animation-name: fa-shake;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
animation-name: fa-spin;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
animation-name: fa-spin;
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse {
|
||
animation-delay: -1ms;
|
||
animation-duration: 1ms;
|
||
animation-iteration-count: 1;
|
||
transition-delay: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
transform: rotate(var(--fa-rotate-angle, 0));
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
height: 2em;
|
||
position: relative;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-stack-1x,
|
||
.fa-stack-2x {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
z-index: var(--fa-stack-z-index, auto);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
height: 1em;
|
||
width: 1.25em;
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
height: 2em;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.sr-only,
|
||
.fa-sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.sr-only-focusable:not(:focus),
|
||
.fa-sr-only-focusable:not(:focus) {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.svg-inline--fa .fa-primary {
|
||
fill: var(--fa-primary-color, currentColor);
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa .fa-secondary {
|
||
fill: var(--fa-secondary-color, currentColor);
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa mask .fa-primary,
|
||
.svg-inline--fa mask .fa-secondary {
|
||
fill: black;
|
||
}`;function L7(){const e=E7,t=T7,n=ut.cssPrefix,r=ut.replacementClass;let i=xZ;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(u,".".concat(r))}return i}let sR=!1;function tx(){ut.autoAddCss&&!sR&&(gZ(L7()),sR=!0)}var wZ={mixout(){return{dom:{css:L7,insertCss:tx}}},hooks(){return{beforeDOMElementCreation(){tx()},beforeI2svg(){tx()}}}};const Zo=_l||{};Zo[Ko]||(Zo[Ko]={});Zo[Ko].styles||(Zo[Ko].styles={});Zo[Ko].hooks||(Zo[Ko].hooks={});Zo[Ko].shims||(Zo[Ko].shims=[]);var Va=Zo[Ko];const D7=[],k7=function(){gn.removeEventListener("DOMContentLoaded",k7),oy=1,D7.map(e=>e())};let oy=!1;rs&&(oy=(gn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(gn.readyState),oy||gn.addEventListener("DOMContentLoaded",k7));function SZ(e){rs&&(oy?setTimeout(e,0):D7.push(e))}function wm(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?N7(e):"<".concat(t," ").concat(yZ(n),">").concat(r.map(wm).join(""),"</").concat(t,">")}function lR(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var nx=function(t,n,r,i){var a=Object.keys(t),s=a.length,u=n,f,c,p;for(r===void 0?(f=1,p=t[a[0]]):(f=0,p=r);f<s;f++)c=a[f],p=u(p,t[c],c,t);return p};function CZ(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function GC(e){const t=CZ(e);return t.length===1?t[0].toString(16):null}function AZ(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function uR(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function WC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=uR(t);typeof Va.hooks.addPack=="function"&&!r?Va.hooks.addPack(e,uR(t)):Va.styles[e]=Ye(Ye({},Va.styles[e]||{}),i),e==="fas"&&WC("fa",t)}const{styles:wp,shims:OZ}=Va,I7=Object.keys(xE),EZ=I7.reduce((e,t)=>(e[t]=Object.keys(xE[t]),e),{});let CE=null,U7={},B7={},z7={},$7={},F7={};function TZ(e){return~dZ.indexOf(e)}function jZ(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!TZ(i)?i:null}const q7=()=>{const e=r=>nx(wp,(i,a,s)=>(i[s]=nx(a,r,{}),i),{});U7=e((r,i,a)=>(i[3]&&(r[i[3]]=a),i[2]&&i[2].filter(u=>typeof u=="number").forEach(u=>{r[u.toString(16)]=a}),r)),B7=e((r,i,a)=>(r[a]=a,i[2]&&i[2].filter(u=>typeof u=="string").forEach(u=>{r[u]=a}),r)),F7=e((r,i,a)=>{const s=i[2];return r[a]=a,s.forEach(u=>{r[u]=a}),r});const t="far"in wp||ut.autoFetchSvg,n=nx(OZ,(r,i)=>{const a=i[0];let s=i[1];const u=i[2];return s==="far"&&!t&&(s="fas"),typeof a=="string"&&(r.names[a]={prefix:s,iconName:u}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:s,iconName:u}),r},{names:{},unicodes:{}});z7=n.names,$7=n.unicodes,CE=q0(ut.styleDefault,{family:ut.familyDefault})};mZ(e=>{CE=q0(e.styleDefault,{family:ut.familyDefault})});q7();function AE(e,t){return(U7[e]||{})[t]}function PZ(e,t){return(B7[e]||{})[t]}function Cu(e,t){return(F7[e]||{})[t]}function V7(e){return z7[e]||{prefix:null,iconName:null}}function RZ(e){const t=$7[e],n=AE("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function xl(){return CE}const H7=()=>({prefix:null,iconName:null,rest:[]});function MZ(e){let t=Rr;const n=I7.reduce((r,i)=>(r[i]="".concat(ut.cssPrefix,"-").concat(i),r),{});return A7.forEach(r=>{(e.includes(n[r])||e.some(i=>EZ[r].includes(i)))&&(t=r)}),t}function q0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Rr}=t,r=sZ[n][e];if(n===$0&&!e)return"fad";const i=oR[n][e]||oR[n][r],a=e in Va.styles?e:null;return i||a||null}function NZ(e){let t=[],n=null;return e.forEach(r=>{const i=jZ(ut.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function cR(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function V0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=zC.concat(KK),a=cR(e.filter(m=>i.includes(m))),s=cR(e.filter(m=>!zC.includes(m))),u=a.filter(m=>(r=m,!C7.includes(m))),[f=null]=u,c=MZ(a),p=Ye(Ye({},NZ(s)),{},{prefix:q0(f,{family:c})});return Ye(Ye(Ye({},p),IZ({values:e,family:c,styles:wp,config:ut,canonical:p,givenPrefix:r})),LZ(n,r,p))}function LZ(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a=t==="fa"?V7(i):{},s=Cu(r,i);return i=a.iconName||s||i,r=a.prefix||r,r==="far"&&!wp.far&&wp.fas&&!ut.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const DZ=A7.filter(e=>e!==Rr||e!==$0),kZ=Object.keys(BC).filter(e=>e!==Rr).map(e=>Object.keys(BC[e])).flat();function IZ(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:s={}}=e,u=n===$0,f=t.includes("fa-duotone")||t.includes("fad"),c=s.familyDefault==="duotone",p=r.prefix==="fad"||r.prefix==="fa-duotone";if(!u&&(f||c||p)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&DZ.includes(n)&&(Object.keys(a).find(v=>kZ.includes(v))||s.autoFetchSvg)){const v=$K.get(n).defaultShortPrefixId;r.prefix=v,r.iconName=Cu(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=xl()||"fas"),r}class UZ{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(a=>{this.definitions[a]=Ye(Ye({},this.definitions[a]||{}),i[a]),WC(a,i[a]);const s=xE[Rr][a];s&&WC(s,i[a]),q7()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:a,iconName:s,icon:u}=r[i],f=u[2];t[a]||(t[a]={}),f.length>0&&f.forEach(c=>{typeof c=="string"&&(t[a][c]=u)}),t[a][s]=u}),t}}let fR=[],nf={};const ff={},BZ=Object.keys(ff);function zZ(e,t){let{mixoutsTo:n}=t;return fR=e,nf={},Object.keys(ff).forEach(r=>{BZ.indexOf(r)===-1&&delete ff[r]}),fR.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(a=>{typeof i[a]=="function"&&(n[a]=i[a]),typeof i[a]=="object"&&Object.keys(i[a]).forEach(s=>{n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(s=>{nf[s]||(nf[s]=[]),nf[s].push(a[s])})}r.provides&&r.provides(ff)}),n}function YC(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(nf[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function ku(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(nf[e]||[]).forEach(a=>{a.apply(null,n)})}function wl(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ff[e]?ff[e].apply(null,t):void 0}function KC(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||xl();if(t)return t=Cu(n,t)||t,lR(G7.definitions,n,t)||lR(Va.styles,n,t)}const G7=new UZ,$Z=()=>{ut.autoReplaceSvg=!1,ut.observeMutations=!1,ku("noAuto")},FZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return rs?(ku("beforeI2svg",e),wl("pseudoElements2svg",e),wl("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ut.autoReplaceSvg===!1&&(ut.autoReplaceSvg=!0),ut.observeMutations=!0,SZ(()=>{VZ({autoReplaceSvgRoot:t}),ku("watch",e)})}},qZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Cu(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=q0(e[0]);return{prefix:n,iconName:Cu(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ut.cssPrefix,"-"))>-1||e.match(lZ))){const t=V0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||xl(),iconName:Cu(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=xl();return{prefix:t,iconName:Cu(t,e)||e}}}},Pi={noAuto:$Z,config:ut,dom:FZ,parse:qZ,library:G7,findIconDefinition:KC,toHtml:wm},VZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=gn}=e;(Object.keys(Va.styles).length>0||ut.autoFetchSvg)&&rs&&ut.autoReplaceSvg&&Pi.dom.i2svg({node:t})};function H0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>wm(n))}}),Object.defineProperty(e,"node",{get:function(){if(!rs)return;const n=gn.createElement("div");return n.innerHTML=e.html,n.children}}),e}function HZ(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:s}=e;if(SE(s)&&n.found&&!r.found){const{width:u,height:f}=n,c={x:u/f/2,y:.5};i.style=F0(Ye(Ye({},a),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function GZ(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const s=a===!0?"".concat(t,"-").concat(ut.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ye(Ye({},i),{},{id:s}),children:r}]}]}function OE(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:s,title:u,maskId:f,titleId:c,extra:p,watchable:m=!1}=e,{width:v,height:x}=n.found?n:t,w=GK.includes(r),_=[ut.replacementClass,i?"".concat(ut.cssPrefix,"-").concat(i):""].filter(j=>p.classes.indexOf(j)===-1).filter(j=>j!==""||!!j).concat(p.classes).join(" ");let S={children:[],attributes:Ye(Ye({},p.attributes),{},{"data-prefix":r,"data-icon":i,class:_,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(x)})};const C=w&&!~p.classes.indexOf("fa-fw")?{width:"".concat(v/x*16*.0625,"em")}:{};m&&(S.attributes[Du]=""),u&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(c||xp())},children:[u]}),delete S.attributes.title);const O=Ye(Ye({},S),{},{prefix:r,iconName:i,main:t,mask:n,maskId:f,transform:a,symbol:s,styles:Ye(Ye({},C),p.styles)}),{children:T,attributes:P}=n.found&&t.found?wl("generateAbstractMask",O)||{children:[],attributes:{}}:wl("generateAbstractIcon",O)||{children:[],attributes:{}};return O.children=T,O.attributes=P,s?GZ(O):HZ(O)}function dR(e){const{content:t,width:n,height:r,transform:i,title:a,extra:s,watchable:u=!1}=e,f=Ye(Ye(Ye({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});u&&(f[Du]="");const c=Ye({},s.styles);SE(i)&&(c.transform=_Z({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const p=F0(c);p.length>0&&(f.style=p);const m=[];return m.push({tag:"span",attributes:f,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}function WZ(e){const{content:t,title:n,extra:r}=e,i=Ye(Ye(Ye({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=F0(r.styles);a.length>0&&(i.style=a);const s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:rx}=Va;function ZC(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ut.cssPrefix,"-").concat(ex.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ut.cssPrefix,"-").concat(ex.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ut.cssPrefix,"-").concat(ex.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const YZ={found:!1,width:512,height:512};function KZ(e,t){!j7&&!ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function XC(e,t){let n=t;return t==="fa"&&ut.styleDefault!==null&&(t=xl()),new Promise((r,i)=>{if(n==="fa"){const a=V7(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&rx[t]&&rx[t][e]){const a=rx[t][e];return r(ZC(a))}KZ(e,t),r(Ye(Ye({},YZ),{},{icon:ut.showMissingIcons&&e?wl("missingIconAbstract")||{}:{}}))})}const hR=()=>{},QC=ut.measurePerformance&&dv&&dv.mark&&dv.measure?dv:{mark:hR,measure:hR},Wh='FA "6.7.2"',ZZ=e=>(QC.mark("".concat(Wh," ").concat(e," begins")),()=>W7(e)),W7=e=>{QC.mark("".concat(Wh," ").concat(e," ends")),QC.measure("".concat(Wh," ").concat(e),"".concat(Wh," ").concat(e," begins"),"".concat(Wh," ").concat(e," ends"))};var EE={begin:ZZ,end:W7};const Gv=()=>{};function pR(e){return typeof(e.getAttribute?e.getAttribute(Du):null)=="string"}function XZ(e){const t=e.getAttribute?e.getAttribute(bE):null,n=e.getAttribute?e.getAttribute(_E):null;return t&&n}function QZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ut.replacementClass)}function JZ(){return ut.autoReplaceSvg===!0?Wv.replace:Wv[ut.autoReplaceSvg]||Wv.replace}function eX(e){return gn.createElementNS("http://www.w3.org/2000/svg",e)}function tX(e){return gn.createElement(e)}function Y7(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?eX:tX}=t;if(typeof e=="string")return gn.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){r.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){r.appendChild(Y7(a,{ceFn:n}))}),r}function nX(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Wv={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Y7(n),t)}),t.getAttribute(Du)===null&&ut.keepOriginalSource){let n=gn.createComment(nX(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~wE(t).indexOf(ut.replacementClass))return Wv.replace(e);const r=new RegExp("".concat(ut.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((s,u)=>(u===ut.replacementClass||u.match(r)?s.toSvg.push(u):s.toNode.push(u),s),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const i=n.map(a=>wm(a)).join(`
|
||
`);t.setAttribute(Du,""),t.innerHTML=i}};function mR(e){e()}function K7(e,t){const n=typeof t=="function"?t:Gv;if(e.length===0)n();else{let r=mR;ut.mutateApproach===aZ&&(r=_l.requestAnimationFrame||mR),r(()=>{const i=JZ(),a=EE.begin("mutate");e.map(i),a(),n()})}}let TE=!1;function Z7(){TE=!0}function JC(){TE=!1}let sy=null;function gR(e){if(!nR||!ut.observeMutations)return;const{treeCallback:t=Gv,nodeCallback:n=Gv,pseudoElementsCallback:r=Gv,observeMutationsRoot:i=gn}=e;sy=new nR(a=>{if(TE)return;const s=xl();sd(a).forEach(u=>{if(u.type==="childList"&&u.addedNodes.length>0&&!pR(u.addedNodes[0])&&(ut.searchPseudoElements&&r(u.target),t(u.target)),u.type==="attributes"&&u.target.parentNode&&ut.searchPseudoElements&&r(u.target.parentNode),u.type==="attributes"&&pR(u.target)&&~fZ.indexOf(u.attributeName))if(u.attributeName==="class"&&XZ(u.target)){const{prefix:f,iconName:c}=V0(wE(u.target));u.target.setAttribute(bE,f||s),c&&u.target.setAttribute(_E,c)}else QZ(u.target)&&n(u.target)})}),rs&&sy.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function rX(){sy&&sy.disconnect()}function iX(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const a=i.split(":"),s=a[0],u=a.slice(1);return s&&u.length>0&&(r[s]=u.join(":").trim()),r},{})),n}function aX(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=V0(wE(e));return i.prefix||(i.prefix=xl()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=PZ(i.prefix,e.innerText)||AE(i.prefix,GC(e.innerText))),!i.iconName&&ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function oX(e){const t=sd(e.attributes).reduce((i,a)=>(i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ut.autoA11y&&(n?t["aria-labelledby"]="".concat(ut.replacementClass,"-title-").concat(r||xp()):(t["aria-hidden"]="true",t.focusable="false")),t}function sX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:qa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function vR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=aX(e),a=oX(e),s=YC("parseNodeAttributes",{},e);let u=t.styleParser?iX(e):[];return Ye({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:qa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:u,attributes:a}},s)}const{styles:lX}=Va;function X7(e){const t=ut.autoReplaceSvg==="nest"?vR(e,{styleParser:!1}):vR(e);return~t.extra.classes.indexOf(R7)?wl("generateLayersText",e,t):wl("generateSvgReplacementMutation",e,t)}function uX(){return[...qK,...zC]}function yR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rs)return Promise.resolve();const n=gn.documentElement.classList,r=p=>n.add("".concat(aR,"-").concat(p)),i=p=>n.remove("".concat(aR,"-").concat(p)),a=ut.autoFetchSvg?uX():C7.concat(Object.keys(lX));a.includes("fa")||a.push("fa");const s=[".".concat(R7,":not([").concat(Du,"])")].concat(a.map(p=>".".concat(p,":not([").concat(Du,"])"))).join(", ");if(s.length===0)return Promise.resolve();let u=[];try{u=sd(e.querySelectorAll(s))}catch{}if(u.length>0)r("pending"),i("complete");else return Promise.resolve();const f=EE.begin("onTree"),c=u.reduce((p,m)=>{try{const v=X7(m);v&&p.push(v)}catch(v){j7||v.name==="MissingIcon"&&console.error(v)}return p},[]);return new Promise((p,m)=>{Promise.all(c).then(v=>{K7(v,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),f(),p()})}).catch(v=>{f(),m(v)})})}function cX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;X7(e).then(n=>{n&&K7([n],t)})}function fX(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:KC(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:KC(i||{})),e(r,Ye(Ye({},n),{},{mask:i}))}}const dX=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=qa,symbol:r=!1,mask:i=null,maskId:a=null,title:s=null,titleId:u=null,classes:f=[],attributes:c={},styles:p={}}=t;if(!e)return;const{prefix:m,iconName:v,icon:x}=e;return H0(Ye({type:"icon"},e),()=>(ku("beforeDOMElementCreation",{iconDefinition:e,params:t}),ut.autoA11y&&(s?c["aria-labelledby"]="".concat(ut.replacementClass,"-title-").concat(u||xp()):(c["aria-hidden"]="true",c.focusable="false")),OE({icons:{main:ZC(x),mask:i?ZC(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:v,transform:Ye(Ye({},qa),n),symbol:r,title:s,maskId:a,titleId:u,extra:{attributes:c,styles:p,classes:f}})))};var hX={mixout(){return{icon:fX(dX)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=yR,e.nodeCallback=cX,e}}},provides(e){e.i2svg=function(t){const{node:n=gn,callback:r=()=>{}}=t;return yR(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:a,prefix:s,transform:u,symbol:f,mask:c,maskId:p,extra:m}=n;return new Promise((v,x)=>{Promise.all([XC(r,s),c.iconName?XC(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(w=>{let[_,S]=w;v([t,OE({icons:{main:_,mask:S},prefix:s,iconName:r,transform:u,symbol:f,maskId:p,title:i,titleId:a,extra:m,watchable:!0})])}).catch(x)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:a,styles:s}=t;const u=F0(s);u.length>0&&(r.style=u);let f;return SE(a)&&(f=wl("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(f||i.icon),{children:n,attributes:r}}}},pX={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return H0({type:"layer"},()=>{ku("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(a=>{r=r.concat(a.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ut.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},mX={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return H0({type:"counter",content:e},()=>(ku("beforeDOMElementCreation",{content:e,params:t}),WZ({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat(ut.cssPrefix,"-layers-counter"),...r]}})))}}}},gX={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=qa,title:r=null,classes:i=[],attributes:a={},styles:s={}}=t;return H0({type:"text",content:e},()=>(ku("beforeDOMElementCreation",{content:e,params:t}),dR({content:e,transform:Ye(Ye({},qa),n),title:r,extra:{attributes:a,styles:s,classes:["".concat(ut.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:a}=n;let s=null,u=null;if(w7){const f=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();s=c.width/f,u=c.height/f}return ut.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,dR({content:t.innerHTML,width:s,height:u,transform:i,title:r,extra:a,watchable:!0})])}}};const vX=new RegExp('"',"ug"),bR=[1105920,1112319],_R=Ye(Ye(Ye(Ye({},{FontAwesome:{normal:"fas",400:"fas"}}),zK),rZ),ZK),eA=Object.keys(_R).reduce((e,t)=>(e[t.toLowerCase()]=_R[t],e),{}),yX=Object.keys(eA).reduce((e,t)=>{const n=eA[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function bX(e){const t=e.replace(vX,""),n=AZ(t,0),r=n>=bR[0]&&n<=bR[1],i=t.length===2?t[0]===t[1]:!1;return{value:GC(i?t[0]:t),isSecondary:r||i}}function _X(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(eA[n]||{})[i]||yX[n]}function xR(e,t){const n="".concat(iZ).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const s=sd(e.children).filter(v=>v.getAttribute(FC)===t)[0],u=_l.getComputedStyle(e,t),f=u.getPropertyValue("font-family"),c=f.match(uZ),p=u.getPropertyValue("font-weight"),m=u.getPropertyValue("content");if(s&&!c)return e.removeChild(s),r();if(c&&m!=="none"&&m!==""){const v=u.getPropertyValue("content");let x=_X(f,p);const{value:w,isSecondary:_}=bX(v),S=c[0].startsWith("FontAwesome");let C=AE(x,w),O=C;if(S){const T=RZ(w);T.iconName&&T.prefix&&(C=T.iconName,x=T.prefix)}if(C&&!_&&(!s||s.getAttribute(bE)!==x||s.getAttribute(_E)!==O)){e.setAttribute(n,O),s&&e.removeChild(s);const T=sX(),{extra:P}=T;P.attributes[FC]=t,XC(C,x).then(j=>{const R=OE(Ye(Ye({},T),{},{icons:{main:j,mask:H7()},prefix:x,iconName:O,extra:P,watchable:!0})),$=gn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore($,e.firstChild):e.appendChild($),$.outerHTML=R.map(V=>wm(V)).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function xX(e){return Promise.all([xR(e,"::before"),xR(e,"::after")])}function wX(e){return e.parentNode!==document.head&&!~oZ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(FC)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function wR(e){if(rs)return new Promise((t,n)=>{const r=sd(e.querySelectorAll("*")).filter(wX).map(xX),i=EE.begin("searchPseudoElements");Z7(),Promise.all(r).then(()=>{i(),JC(),t()}).catch(()=>{i(),JC(),n()})})}var SX={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=wR,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=gn}=t;ut.searchPseudoElements&&wR(n)}}};let SR=!1;var CX={mixout(){return{dom:{unwatch(){Z7(),SR=!0}}}},hooks(){return{bootstrap(){gR(YC("mutationObserverCallbacks",{}))},noAuto(){rX()},watch(e){const{observeMutationsRoot:t}=e;SR?JC():gR(YC("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const CR=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),a=i[0];let s=i.slice(1).join("-");if(a&&s==="h")return n.flipX=!0,n;if(a&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(a){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var AX={mixout(){return{parse:{transform:e=>CR(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=CR(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:a}=t;const s={transform:"translate(".concat(i/2," 256)")},u="translate(".concat(r.x*32,", ").concat(r.y*32,") "),f="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),p={transform:"".concat(u," ").concat(f," ").concat(c)},m={transform:"translate(".concat(a/2*-1," -256)")},v={outer:s,inner:p,path:m};return{tag:"g",attributes:Ye({},v.outer),children:[{tag:"g",attributes:Ye({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ye(Ye({},n.icon.attributes),v.path)}]}]}}}};const ix={x:0,y:0,width:"100%",height:"100%"};function AR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function OX(e){return e.tag==="g"?e.children:[e]}var EX={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?V0(n.split(" ").map(i=>i.trim())):H7();return r.prefix||(r.prefix=xl()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:a,maskId:s,transform:u}=t;const{width:f,icon:c}=i,{width:p,icon:m}=a,v=bZ({transform:u,containerWidth:p,iconWidth:f}),x={tag:"rect",attributes:Ye(Ye({},ix),{},{fill:"white"})},w=c.children?{children:c.children.map(AR)}:{},_={tag:"g",attributes:Ye({},v.inner),children:[AR(Ye({tag:c.tag,attributes:Ye(Ye({},c.attributes),v.path)},w))]},S={tag:"g",attributes:Ye({},v.outer),children:[_]},C="mask-".concat(s||xp()),O="clip-".concat(s||xp()),T={tag:"mask",attributes:Ye(Ye({},ix),{},{id:C,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,S]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:OX(m)},T]};return n.push(P,{tag:"rect",attributes:Ye({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(C,")")},ix)}),{children:n,attributes:r}}}},TX={provides(e){let t=!1;_l.matchMedia&&(t=_l.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Ye(Ye({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const a=Ye(Ye({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Ye(Ye({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:Ye(Ye({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ye(Ye({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:Ye(Ye({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ye(Ye({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Ye(Ye({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ye(Ye({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},jX={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},PX=[wZ,hX,pX,mX,gX,SX,CX,AX,EX,TX,jX];zZ(PX,{mixoutsTo:Pi});Pi.noAuto;Pi.config;Pi.library;Pi.dom;const tA=Pi.parse;Pi.findIconDefinition;Pi.toHtml;const RX=Pi.icon;Pi.layer;Pi.text;Pi.counter;var ax={exports:{}},ox,OR;function MX(){if(OR)return ox;OR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ox=e,ox}var sx,ER;function NX(){if(ER)return sx;ER=1;var e=MX();function t(){}function n(){}return n.resetWarningCache=t,sx=function(){function r(s,u,f,c,p,m){if(m!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},sx}var TR;function LX(){return TR||(TR=1,ax.exports=NX()()),ax.exports}var DX=LX();const tt=qt(DX);function jR(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 Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(n),!0).forEach(function(r){rf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ly(e){"@babel/helpers - typeof";return ly=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},ly(e)}function rf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function IX(e,t){if(e==null)return{};var n=kX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nA(e){return UX(e)||BX(e)||zX(e)||$X()}function UX(e){if(Array.isArray(e))return rA(e)}function BX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zX(e,t){if(e){if(typeof e=="string")return rA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rA(e,t)}}function rA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $X(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FX(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,s=e.shake,u=e.flash,f=e.spin,c=e.spinPulse,p=e.spinReverse,m=e.pulse,v=e.fixedWidth,x=e.inverse,w=e.border,_=e.listItem,S=e.flip,C=e.size,O=e.rotation,T=e.pull,P=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":s,"fa-flash":u,"fa-spin":f,"fa-spin-reverse":p,"fa-spin-pulse":c,"fa-pulse":m,"fa-fw":v,"fa-inverse":x,"fa-border":w,"fa-li":_,"fa-flip":S===!0,"fa-flip-horizontal":S==="horizontal"||S==="both","fa-flip-vertical":S==="vertical"||S==="both"},rf(t,"fa-".concat(C),typeof C<"u"&&C!==null),rf(t,"fa-rotate-".concat(O),typeof O<"u"&&O!==null&&O!==0),rf(t,"fa-pull-".concat(T),typeof T<"u"&&T!==null),rf(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(P).map(function(j){return P[j]?j:null}).filter(function(j){return j})}function qX(e){return e=e-0,e===e}function Q7(e){return qX(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var VX=["style"];function HX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function GX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Q7(n.slice(0,r)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[HX(i)]=a:t[i]=a,t},{})}function J7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(f){return J7(e,f)}),i=Object.keys(t.attributes||{}).reduce(function(f,c){var p=t.attributes[c];switch(c){case"class":f.attrs.className=p,delete t.attributes.class;break;case"style":f.attrs.style=GX(p);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?f.attrs[c.toLowerCase()]=p:f.attrs[Q7(c)]=p}return f},{attrs:{}}),a=n.style,s=a===void 0?{}:a,u=IX(n,VX);return i.attrs.style=Fa(Fa({},i.attrs.style),s),e.apply(void 0,[t.tag,Fa(Fa({},i.attrs),u)].concat(nA(r)))}var e9=!1;try{e9=!0}catch{}function WX(){if(!e9&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function PR(e){if(e&&ly(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(tA.icon)return tA.icon(e);if(e===null)return null;if(e&&ly(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function lx(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?rf({},e,t):{}}var RR={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ke=pe.forwardRef(function(e,t){var n=Fa(Fa({},RR),e),r=n.icon,i=n.mask,a=n.symbol,s=n.className,u=n.title,f=n.titleId,c=n.maskId,p=PR(r),m=lx("classes",[].concat(nA(FX(n)),nA((s||"").split(" ")))),v=lx("transform",typeof n.transform=="string"?tA.transform(n.transform):n.transform),x=lx("mask",PR(i)),w=RX(p,Fa(Fa(Fa(Fa({},m),v),x),{},{symbol:a,title:u,titleId:f,maskId:c}));if(!w)return WX("Could not find icon",p),null;var _=w.abstract,S={ref:t};return Object.keys(n).forEach(function(C){RR.hasOwnProperty(C)||(S[C]=n[C])}),YX(_[0],S)});Ke.displayName="FontAwesomeIcon";Ke.propTypes={beat:tt.bool,border:tt.bool,beatFade:tt.bool,bounce:tt.bool,className:tt.string,fade:tt.bool,flash:tt.bool,mask:tt.oneOfType([tt.object,tt.array,tt.string]),maskId:tt.string,fixedWidth:tt.bool,inverse:tt.bool,flip:tt.oneOf([!0,!1,"horizontal","vertical","both"]),icon:tt.oneOfType([tt.object,tt.array,tt.string]),listItem:tt.bool,pull:tt.oneOf(["right","left"]),pulse:tt.bool,rotation:tt.oneOf([0,90,180,270]),shake:tt.bool,size:tt.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:tt.bool,spinPulse:tt.bool,spinReverse:tt.bool,symbol:tt.oneOfType([tt.bool,tt.string]),title:tt.string,titleId:tt.string,transform:tt.oneOfType([tt.string,tt.object]),swapOpacity:tt.bool};var YX=J7.bind(null,pe.createElement);function G0(){return typeof window<"u"}function ld(e){return t9(e)?(e.nodeName||"").toLowerCase():"#document"}function Si(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function is(e){var t;return(t=(t9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function t9(e){return G0()?e instanceof Node||e instanceof Si(e).Node:!1}function br(e){return G0()?e instanceof Element||e instanceof Si(e).Element:!1}function Oi(e){return G0()?e instanceof HTMLElement||e instanceof Si(e).HTMLElement:!1}function iA(e){return!G0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Si(e).ShadowRoot}function Sm(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ya(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function KX(e){return["table","td","th"].includes(ld(e))}function W0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function jE(e){const t=PE(),n=br(e)?ya(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ZX(e){let t=Sl(e);for(;Oi(t)&&!xf(t);){if(jE(t))return t;if(W0(t))return null;t=Sl(t)}return null}function PE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xf(e){return["html","body","#document"].includes(ld(e))}function ya(e){return Si(e).getComputedStyle(e)}function Y0(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sl(e){if(ld(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iA(e)&&e.host||is(e);return iA(t)?t.host:t}function n9(e){const t=Sl(e);return xf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oi(t)&&Sm(t)?t:n9(t)}function r9(e,t,n){var r;t===void 0&&(t=[]);const i=n9(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Si(i);return a?(aA(s),t.concat(s,s.visualViewport||[],Sm(i)?i:[],[])):t.concat(i,r9(i,[]))}function aA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const XX=["top","right","bottom","left"],MR=["start","end"],NR=XX.reduce((e,t)=>e.concat(t,t+"-"+MR[0],t+"-"+MR[1]),[]),Sp=Math.min,df=Math.max,uy=Math.round,Wa=e=>({x:e,y:e}),QX={left:"right",right:"left",bottom:"top",top:"bottom"},JX={start:"end",end:"start"};function eQ(e,t,n){return df(e,Sp(t,n))}function Cm(e,t){return typeof e=="function"?e(t):e}function Cl(e){return e.split("-")[0]}function Ya(e){return e.split("-")[1]}function tQ(e){return e==="x"?"y":"x"}function RE(e){return e==="y"?"height":"width"}function Au(e){return["top","bottom"].includes(Cl(e))?"y":"x"}function ME(e){return tQ(Au(e))}function i9(e,t,n){n===void 0&&(n=!1);const r=Ya(e),i=ME(e),a=RE(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=fy(s)),[s,fy(s)]}function nQ(e){const t=fy(e);return[cy(e),t,cy(t)]}function cy(e){return e.replace(/start|end/g,t=>JX[t])}function rQ(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:s;default:return[]}}function iQ(e,t,n,r){const i=Ya(e);let a=rQ(Cl(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(cy)))),a}function fy(e){return e.replace(/left|right|bottom|top/g,t=>QX[t])}function aQ(e){return{top:0,right:0,bottom:0,left:0,...e}}function a9(e){return typeof e!="number"?aQ(e):{top:e,right:e,bottom:e,left:e}}function dy(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 oQ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function sQ(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&iA(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function pv(e){return(e==null?void 0:e.ownerDocument)||document}function lQ(e){return Oi(e)&&e.matches(oQ)}function Cp(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var uQ=typeof document<"u",cQ=function(){},Al=uQ?I.useLayoutEffect:cQ;const fQ={...TI};function cl(e){const t=I.useRef(e);return Al(()=>{t.current=e}),t}const dQ=fQ.useInsertionEffect,hQ=dQ||(e=>e());function Yh(e){const t=I.useRef(()=>{});return hQ(()=>{t.current=e}),I.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)},[])}var K0=EI();function LR(e,t,n){let{reference:r,floating:i}=e;const a=Au(t),s=ME(t),u=RE(s),f=Cl(t),c=a==="y",p=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,v=r[u]/2-i[u]/2;let x;switch(f){case"top":x={x:p,y:r.y-i.height};break;case"bottom":x={x:p,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-i.width,y:m};break;default:x={x:r.x,y:r.y}}switch(Ya(t)){case"start":x[s]-=v*(n&&c?-1:1);break;case"end":x[s]+=v*(n&&c?-1:1);break}return x}const pQ=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,u=a.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:m}=LR(c,r,f),v=r,x={},w=0;for(let _=0;_<u.length;_++){const{name:S,fn:C}=u[_],{x:O,y:T,data:P,reset:j}=await C({x:p,y:m,initialPlacement:r,placement:v,strategy:i,middlewareData:x,rects:c,platform:s,elements:{reference:e,floating:t}});p=O??p,m=T??m,x={...x,[S]:{...x[S],...P}},j&&w<=50&&(w++,typeof j=="object"&&(j.placement&&(v=j.placement),j.rects&&(c=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:p,y:m}=LR(c,v,f)),_=-1)}return{x:p,y:m,placement:v,strategy:i,middlewareData:x}};async function o9(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:u,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:x=0}=Cm(t,e),w=a9(x),S=u[v?m==="floating"?"reference":"floating":m],C=dy(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(S)))==null||n?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:c,rootBoundary:p,strategy:f})),O=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),P=await(a.isElement==null?void 0:a.isElement(T))?await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1}:{x:1,y:1},j=dy(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:O,offsetParent:T,strategy:f}):O);return{top:(C.top-j.top+w.top)/P.y,bottom:(j.bottom-C.bottom+w.bottom)/P.y,left:(C.left-j.left+w.left)/P.x,right:(j.right-C.right+w.right)/P.x}}const mQ=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:u,middlewareData:f}=t,{element:c,padding:p=0}=Cm(e,t)||{};if(c==null)return{};const m=a9(p),v={x:n,y:r},x=ME(i),w=RE(x),_=await s.getDimensions(c),S=x==="y",C=S?"top":"left",O=S?"bottom":"right",T=S?"clientHeight":"clientWidth",P=a.reference[w]+a.reference[x]-v[x]-a.floating[w],j=v[x]-a.reference[x],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let $=R?R[T]:0;(!$||!await(s.isElement==null?void 0:s.isElement(R)))&&($=u.floating[T]||a.floating[w]);const V=P/2-j/2,X=$/2-_[w]/2-1,Z=Sp(m[C],X),Y=Sp(m[O],X),te=Z,ae=$-_[w]-Y,Q=$/2-_[w]/2+V,ne=eQ(te,Q,ae),H=!f.arrow&&Ya(i)!=null&&Q!==ne&&a.reference[w]/2-(Q<te?Z:Y)-_[w]/2<0,B=H?Q<te?Q-te:Q-ae:0;return{[x]:v[x]+B,data:{[x]:ne,centerOffset:Q-ne-B,...H&&{alignmentOffset:B}},reset:H}}});function gQ(e,t,n){return(e?[...n.filter(i=>Ya(i)===e),...n.filter(i=>Ya(i)!==e)]:n.filter(i=>Cl(i)===i)).filter(i=>e?Ya(i)===e||(t?cy(i)!==i:!1):!0)}const vQ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:s,placement:u,platform:f,elements:c}=t,{crossAxis:p=!1,alignment:m,allowedPlacements:v=NR,autoAlignment:x=!0,...w}=Cm(e,t),_=m!==void 0||v===NR?gQ(m||null,x,v):v,S=await o9(t,w),C=((n=s.autoPlacement)==null?void 0:n.index)||0,O=_[C];if(O==null)return{};const T=i9(O,a,await(f.isRTL==null?void 0:f.isRTL(c.floating)));if(u!==O)return{reset:{placement:_[0]}};const P=[S[Cl(O)],S[T[0]],S[T[1]]],j=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:O,overflows:P}],R=_[C+1];if(R)return{data:{index:C+1,overflows:j},reset:{placement:R}};const $=j.map(Z=>{const Y=Ya(Z.placement);return[Z.placement,Y&&p?Z.overflows.slice(0,2).reduce((te,ae)=>te+ae,0):Z.overflows[0],Z.overflows]}).sort((Z,Y)=>Z[1]-Y[1]),X=((i=$.filter(Z=>Z[2].slice(0,Ya(Z[0])?2:3).every(Y=>Y<=0))[0])==null?void 0:i[0])||$[0][0];return X!==u?{data:{index:C+1,overflows:j},reset:{placement:X}}:{}}}},yQ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:u,platform:f,elements:c}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...S}=Cm(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const C=Cl(i),O=Au(u),T=Cl(u)===u,P=await(f.isRTL==null?void 0:f.isRTL(c.floating)),j=v||(T||!_?[fy(u)]:nQ(u)),R=w!=="none";!v&&R&&j.push(...iQ(u,_,w,P));const $=[u,...j],V=await o9(t,S),X=[];let Z=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&X.push(V[C]),m){const Q=i9(i,s,P);X.push(V[Q[0]],V[Q[1]])}if(Z=[...Z,{placement:i,overflows:X}],!X.every(Q=>Q<=0)){var Y,te;const Q=(((Y=a.flip)==null?void 0:Y.index)||0)+1,ne=$[Q];if(ne&&(!(m==="alignment"?O!==Au(ne):!1)||Z.every(U=>U.overflows[0]>0&&Au(U.placement)===O)))return{data:{index:Q,overflows:Z},reset:{placement:ne}};let H=(te=Z.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:te.placement;if(!H)switch(x){case"bestFit":{var ae;const B=(ae=Z.filter(U=>{if(R){const F=Au(U.placement);return F===O||F==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(F=>F>0).reduce((F,M)=>F+M,0)]).sort((U,F)=>U[1]-F[1])[0])==null?void 0:ae[0];B&&(H=B);break}case"initialPlacement":H=u;break}if(i!==H)return{reset:{placement:H}}}return{}}}};async function bQ(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Cl(n),u=Ya(n),f=Au(n)==="y",c=["left","top"].includes(s)?-1:1,p=a&&f?-1:1,m=Cm(t,e);let{mainAxis:v,crossAxis:x,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof w=="number"&&(x=u==="end"?w*-1:w),f?{x:x*p,y:v*c}:{x:v*c,y:x*p}}const _Q=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:u}=t,f=await bQ(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:s}}}}};function s9(e){const t=ya(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Oi(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=uy(n)!==a||uy(r)!==s;return u&&(n=a,r=s),{width:n,height:r,$:u}}function l9(e){return br(e)?e:e.contextElement}function hf(e){const t=l9(e);if(!Oi(t))return Wa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=s9(t);let s=(a?uy(n.width):n.width)/r,u=(a?uy(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const xQ=Wa(0);function u9(e){const t=Si(e);return!PE()||!t.visualViewport?xQ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wQ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Si(e)?!1:t}function Ap(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=l9(e);let s=Wa(1);t&&(r?br(r)&&(s=hf(r)):s=hf(e));const u=wQ(a,n,r)?u9(a):Wa(0);let f=(i.left+u.x)/s.x,c=(i.top+u.y)/s.y,p=i.width/s.x,m=i.height/s.y;if(a){const v=Si(a),x=r&&br(r)?Si(r):r;let w=v,_=aA(w);for(;_&&r&&x!==w;){const S=hf(_),C=_.getBoundingClientRect(),O=ya(_),T=C.left+(_.clientLeft+parseFloat(O.paddingLeft))*S.x,P=C.top+(_.clientTop+parseFloat(O.paddingTop))*S.y;f*=S.x,c*=S.y,p*=S.x,m*=S.y,f+=T,c+=P,w=Si(_),_=aA(w)}}return dy({width:p,height:m,x:f,y:c})}function NE(e,t){const n=Y0(e).scrollLeft;return t?t.left+n:Ap(is(e)).left+n}function c9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:NE(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function SQ(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=is(r),u=t?W0(t.floating):!1;if(r===s||u&&a)return n;let f={scrollLeft:0,scrollTop:0},c=Wa(1);const p=Wa(0),m=Oi(r);if((m||!m&&!a)&&((ld(r)!=="body"||Sm(s))&&(f=Y0(r)),Oi(r))){const x=Ap(r);c=hf(r),p.x=x.x+r.clientLeft,p.y=x.y+r.clientTop}const v=s&&!m&&!a?c9(s,f,!0):Wa(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+p.x+v.x,y:n.y*c.y-f.scrollTop*c.y+p.y+v.y}}function CQ(e){return Array.from(e.getClientRects())}function AQ(e){const t=is(e),n=Y0(e),r=e.ownerDocument.body,i=df(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=df(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+NE(e);const u=-n.scrollTop;return ya(r).direction==="rtl"&&(s+=df(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:u}}function OQ(e,t){const n=Si(e),r=is(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,u=0,f=0;if(i){a=i.width,s=i.height;const c=PE();(!c||c&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}return{width:a,height:s,x:u,y:f}}function EQ(e,t){const n=Ap(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Oi(e)?hf(e):Wa(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,c=r*a.y;return{width:s,height:u,x:f,y:c}}function DR(e,t,n){let r;if(t==="viewport")r=OQ(e,n);else if(t==="document")r=AQ(is(e));else if(br(t))r=EQ(t,n);else{const i=u9(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dy(r)}function f9(e,t){const n=Sl(e);return n===t||!br(n)||xf(n)?!1:ya(n).position==="fixed"||f9(n,t)}function TQ(e,t){const n=t.get(e);if(n)return n;let r=r9(e,[]).filter(u=>br(u)&&ld(u)!=="body"),i=null;const a=ya(e).position==="fixed";let s=a?Sl(e):e;for(;br(s)&&!xf(s);){const u=ya(s),f=jE(s);!f&&u.position==="fixed"&&(i=null),(a?!f&&!i:!f&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Sm(s)&&!f&&f9(e,s))?r=r.filter(p=>p!==s):i=u,s=Sl(s)}return t.set(e,r),r}function jQ(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?W0(t)?[]:TQ(t,this._c):[].concat(n),r],u=s[0],f=s.reduce((c,p)=>{const m=DR(t,p,i);return c.top=df(m.top,c.top),c.right=Sp(m.right,c.right),c.bottom=Sp(m.bottom,c.bottom),c.left=df(m.left,c.left),c},DR(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function PQ(e){const{width:t,height:n}=s9(e);return{width:t,height:n}}function RQ(e,t,n){const r=Oi(t),i=is(t),a=n==="fixed",s=Ap(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=Wa(0);function c(){f.x=NE(i)}if(r||!r&&!a)if((ld(t)!=="body"||Sm(i))&&(u=Y0(t)),r){const x=Ap(t,!0,a,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&c();a&&!r&&i&&c();const p=i&&!r&&!a?c9(i,u):Wa(0),m=s.left+u.scrollLeft-f.x-p.x,v=s.top+u.scrollTop-f.y-p.y;return{x:m,y:v,width:s.width,height:s.height}}function ux(e){return ya(e).position==="static"}function kR(e,t){if(!Oi(e)||ya(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return is(e)===n&&(n=n.ownerDocument.body),n}function d9(e,t){const n=Si(e);if(W0(e))return n;if(!Oi(e)){let i=Sl(e);for(;i&&!xf(i);){if(br(i)&&!ux(i))return i;i=Sl(i)}return n}let r=kR(e,t);for(;r&&KX(r)&&ux(r);)r=kR(r,t);return r&&xf(r)&&ux(r)&&!jE(r)?n:r||ZX(e)||n}const MQ=async function(e){const t=this.getOffsetParent||d9,n=this.getDimensions,r=await n(e.floating);return{reference:RQ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NQ(e){return ya(e).direction==="rtl"}const LQ={convertOffsetParentRelativeRectToViewportRelativeRect:SQ,getDocumentElement:is,getClippingRect:jQ,getOffsetParent:d9,getElementRects:MQ,getClientRects:CQ,getDimensions:PQ,getScale:hf,isElement:br,isRTL:NQ},DQ=_Q,kQ=vQ,IQ=yQ,IR=mQ,UQ=(e,t,n)=>{const r=new Map,i={platform:LQ,...n},a={...i.platform,_c:r};return pQ(e,t,{...i,platform:a})};var BQ=typeof document<"u",zQ=function(){},Yv=BQ?I.useLayoutEffect:zQ;function hy(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(!hy(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!hy(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function h9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function UR(e,t){const n=h9(e);return Math.round(t*n)/n}function cx(e){const t=I.useRef(e);return Yv(()=>{t.current=e}),t}function $Q(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:f,open:c}=e,[p,m]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,x]=I.useState(r);hy(v,r)||x(r);const[w,_]=I.useState(null),[S,C]=I.useState(null),O=I.useCallback(U=>{U!==R.current&&(R.current=U,_(U))},[]),T=I.useCallback(U=>{U!==$.current&&($.current=U,C(U))},[]),P=a||w,j=s||S,R=I.useRef(null),$=I.useRef(null),V=I.useRef(p),X=f!=null,Z=cx(f),Y=cx(i),te=cx(c),ae=I.useCallback(()=>{if(!R.current||!$.current)return;const U={placement:t,strategy:n,middleware:v};Y.current&&(U.platform=Y.current),UQ(R.current,$.current,U).then(F=>{const M={...F,isPositioned:te.current!==!1};Q.current&&!hy(V.current,M)&&(V.current=M,K0.flushSync(()=>{m(M)}))})},[v,t,n,Y,te]);Yv(()=>{c===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[c]);const Q=I.useRef(!1);Yv(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Yv(()=>{if(P&&(R.current=P),j&&($.current=j),P&&j){if(Z.current)return Z.current(P,j,ae);ae()}},[P,j,ae,Z,X]);const ne=I.useMemo(()=>({reference:R,floating:$,setReference:O,setFloating:T}),[O,T]),H=I.useMemo(()=>({reference:P,floating:j}),[P,j]),B=I.useMemo(()=>{const U={position:n,left:0,top:0};if(!H.floating)return U;const F=UR(H.floating,p.x),M=UR(H.floating,p.y);return u?{...U,transform:"translate("+F+"px, "+M+"px)",...h9(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:M}},[n,u,H.floating,p.x,p.y]);return I.useMemo(()=>({...p,update:ae,refs:ne,elements:H,floatingStyles:B}),[p,ae,ne,H,B])}const FQ=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?IR({element:r.current,padding:i}).fn(n):{}:r?IR({element:r,padding:i}).fn(n):{}}}},qQ=(e,t)=>({...DQ(e),options:[e,t]}),VQ=(e,t)=>({...IQ(e),options:[e,t]}),HQ=(e,t)=>({...kQ(e),options:[e,t]}),GQ=(e,t)=>({...FQ(e),options:[e,t]}),WQ="data-floating-ui-focusable",BR="active",zR="selected",YQ={...TI};let $R=!1,KQ=0;const FR=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+KQ++;function ZQ(){const[e,t]=I.useState(()=>$R?FR():void 0);return Al(()=>{e==null&&t(FR())},[]),I.useEffect(()=>{$R=!0},[]),e}const XQ=YQ.useId,QQ=XQ||ZQ;function JQ(){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 eJ=I.createContext(null),tJ=I.createContext(null),p9=()=>{var e;return((e=I.useContext(eJ))==null?void 0:e.id)||null},m9=()=>I.useContext(tJ);function nJ(e){return"data-floating-ui-"+e}function sa(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const qR=nJ("safe-polygon");function fx(e,t,n){if(n&&!Cp(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function dx(e){return typeof e=="function"?e():e}function rJ(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=e,{enabled:u=!0,delay:f=0,handleClose:c=null,mouseOnly:p=!1,restMs:m=0,move:v=!0}=t,x=m9(),w=p9(),_=cl(c),S=cl(f),C=cl(n),O=cl(m),T=I.useRef(),P=I.useRef(-1),j=I.useRef(),R=I.useRef(-1),$=I.useRef(!0),V=I.useRef(!1),X=I.useRef(()=>{}),Z=I.useRef(!1),Y=Yh(()=>{var B;const U=(B=i.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"});I.useEffect(()=>{if(!u)return;function B(U){let{open:F}=U;F||(sa(P),sa(R),$.current=!0,Z.current=!1)}return a.on("openchange",B),()=>{a.off("openchange",B)}},[u,a]),I.useEffect(()=>{if(!u||!_.current||!n)return;function B(F){Y()&&r(!1,F,"hover")}const U=pv(s.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[s.floating,n,r,u,_,Y]);const te=I.useCallback(function(B,U,F){U===void 0&&(U=!0),F===void 0&&(F="hover");const M=fx(S.current,"close",T.current);M&&!j.current?(sa(P),P.current=window.setTimeout(()=>r(!1,B,F),M)):U&&(sa(P),r(!1,B,F))},[S,r]),ae=Yh(()=>{X.current(),j.current=void 0}),Q=Yh(()=>{if(V.current){const B=pv(s.floating).body;B.style.pointerEvents="",B.removeAttribute(qR),V.current=!1}}),ne=Yh(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);I.useEffect(()=>{if(!u)return;function B(J){if(sa(P),$.current=!1,p&&!Cp(T.current)||dx(O.current)>0&&!fx(S.current,"open"))return;const W=fx(S.current,"open",T.current);W?P.current=window.setTimeout(()=>{C.current||r(!0,J,"hover")},W):n||r(!0,J,"hover")}function U(J){if(ne()){Q();return}X.current();const W=pv(s.floating);if(sa(R),Z.current=!1,_.current&&i.current.floatingContext){n||sa(P),j.current=_.current({...i.current.floatingContext,tree:x,x:J.clientX,y:J.clientY,onClose(){Q(),ae(),ne()||te(J,!0,"safe-polygon")}});const fe=j.current;W.addEventListener("mousemove",fe),X.current=()=>{W.removeEventListener("mousemove",fe)};return}(T.current==="touch"?!sQ(s.floating,J.relatedTarget):!0)&&te(J)}function F(J){ne()||i.current.floatingContext&&(_.current==null||_.current({...i.current.floatingContext,tree:x,x:J.clientX,y:J.clientY,onClose(){Q(),ae(),ne()||te(J)}})(J))}function M(){sa(P)}function k(J){ne()||te(J,!1)}if(br(s.domReference)){const J=s.domReference,W=s.floating;return n&&J.addEventListener("mouseleave",F),v&&J.addEventListener("mousemove",B,{once:!0}),J.addEventListener("mouseenter",B),J.addEventListener("mouseleave",U),W&&(W.addEventListener("mouseleave",F),W.addEventListener("mouseenter",M),W.addEventListener("mouseleave",k)),()=>{n&&J.removeEventListener("mouseleave",F),v&&J.removeEventListener("mousemove",B),J.removeEventListener("mouseenter",B),J.removeEventListener("mouseleave",U),W&&(W.removeEventListener("mouseleave",F),W.removeEventListener("mouseenter",M),W.removeEventListener("mouseleave",k))}}},[s,u,e,p,v,te,ae,Q,r,n,C,x,S,_,i,ne,O]),Al(()=>{var B;if(u&&n&&(B=_.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&Y()){V.current=!0;const F=s.floating;if(br(s.domReference)&&F){var U;const M=pv(s.floating).body;M.setAttribute(qR,"");const k=s.domReference,J=x==null||(U=x.nodesRef.current.find(W=>W.id===w))==null||(U=U.context)==null?void 0:U.elements.floating;return J&&(J.style.pointerEvents=""),M.style.pointerEvents="none",k.style.pointerEvents="auto",F.style.pointerEvents="auto",()=>{M.style.pointerEvents="",k.style.pointerEvents="",F.style.pointerEvents=""}}}},[u,n,w,s,x,_,Y]),Al(()=>{n||(T.current=void 0,Z.current=!1,ae(),Q())},[n,ae,Q]),I.useEffect(()=>()=>{ae(),sa(P),sa(R),Q()},[u,s.domReference,ae,Q]);const H=I.useMemo(()=>{function B(U){T.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:F}=U;function M(){!$.current&&!C.current&&r(!0,F,"hover")}p&&!Cp(T.current)||n||dx(O.current)===0||Z.current&&U.movementX**2+U.movementY**2<2||(sa(R),T.current==="touch"?M():(Z.current=!0,R.current=window.setTimeout(M,dx(O.current))))}}},[p,r,n,C,O]);return I.useMemo(()=>u?{reference:H}:{},[u,H])}function VR(e){return Oi(e.target)&&e.target.tagName==="BUTTON"}function iJ(e){return Oi(e.target)&&e.target.tagName==="A"}function HR(e){return lQ(e)}function aJ(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:s=!0,event:u="click",toggle:f=!0,ignoreMouse:c=!1,keyboardHandlers:p=!0,stickIfOpen:m=!0}=t,v=I.useRef(),x=I.useRef(!1),w=I.useMemo(()=>({onPointerDown(_){v.current=_.pointerType},onMouseDown(_){const S=v.current;_.button===0&&u!=="click"&&(Cp(S,!0)&&c||(n&&f&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,_.nativeEvent,"click"):(_.preventDefault(),r(!0,_.nativeEvent,"click"))))},onClick(_){const S=v.current;if(u==="mousedown"&&v.current){v.current=void 0;return}Cp(S,!0)&&c||(n&&f&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,_.nativeEvent,"click"):r(!0,_.nativeEvent,"click"))},onKeyDown(_){v.current=void 0,!(_.defaultPrevented||!p||VR(_))&&(_.key===" "&&!HR(a)&&(_.preventDefault(),x.current=!0),!iJ(_)&&_.key==="Enter"&&r(!(n&&f),_.nativeEvent,"click"))},onKeyUp(_){_.defaultPrevented||!p||VR(_)||HR(a)||_.key===" "&&x.current&&(x.current=!1,r(!(n&&f),_.nativeEvent,"click"))}}),[i,a,u,c,p,r,n,m,f]);return I.useMemo(()=>s?{reference:w}:{},[s,w])}function oJ(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=QQ(),a=I.useRef({}),[s]=I.useState(()=>JQ()),u=p9()!=null,[f,c]=I.useState(r.reference),p=Yh((x,w,_)=>{a.current.openEvent=x?w:void 0,s.emit("openchange",{open:x,event:w,reason:_,nested:u}),n==null||n(x,w,_)}),m=I.useMemo(()=>({setPositionReference:c}),[]),v=I.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return I.useMemo(()=>({dataRef:a,open:t,onOpenChange:p,elements:v,events:s,floatingId:i,refs:m}),[t,p,v,s,i,m])}function g9(e){e===void 0&&(e={});const{nodeId:t}=e,n=oJ({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=I.useState(null),[u,f]=I.useState(null),p=(i==null?void 0:i.domReference)||a,m=I.useRef(null),v=m9();Al(()=>{p&&(m.current=p)},[p]);const x=$Q({...e,elements:{...i,...u&&{reference:u}}}),w=I.useCallback(T=>{const P=br(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;f(P),x.refs.setReference(P)},[x.refs]),_=I.useCallback(T=>{(br(T)||T===null)&&(m.current=T,s(T)),(br(x.refs.reference.current)||x.refs.reference.current===null||T!==null&&!br(T))&&x.refs.setReference(T)},[x.refs]),S=I.useMemo(()=>({...x.refs,setReference:_,setPositionReference:w,domReference:m}),[x.refs,_,w]),C=I.useMemo(()=>({...x.elements,domReference:p}),[x.elements,p]),O=I.useMemo(()=>({...x,...r,refs:S,elements:C,nodeId:t}),[x,S,C,t,r]);return Al(()=>{r.dataRef.current.floatingContext=O;const T=v==null?void 0:v.nodesRef.current.find(P=>P.id===t);T&&(T.context=O)}),I.useMemo(()=>({...x,context:O,refs:S,elements:C}),[x,S,C,O])}function hx(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[BR]:s,[zR]:u,...f}=e;a=f}return{...n==="floating"&&{tabIndex:-1,[WQ]:""},...a,...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(f=>{let[c,p]=f;if(!(i&&[BR,zR].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof p=="function"){var m;(m=r.get(c))==null||m.push(p),s[c]=function(){for(var v,x=arguments.length,w=new Array(x),_=0;_<x;_++)w[_]=arguments[_];return(v=r.get(c))==null?void 0:v.map(S=>S(...w)).find(S=>S!==void 0)}}}else s[c]=p}),s),{})}}function v9(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=I.useCallback(u=>hx(u,e,"reference"),t),a=I.useCallback(u=>hx(u,e,"floating"),n),s=I.useCallback(u=>hx(u,e,"item"),r);return I.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const GR=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Gc(e,t){return typeof e=="function"?e(t):e}function sJ(e,t){const[n,r]=I.useState(e);return e&&!n&&r(!0),I.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function lJ(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,f]=I.useState("unmounted"),c=sJ(n,s);return!c&&u==="close"&&f("unmounted"),Al(()=>{if(r){if(n){f("initial");const p=requestAnimationFrame(()=>{K0.flushSync(()=>{f("open")})});return()=>{cancelAnimationFrame(p)}}f("close")}},[n,r]),{isMounted:c,status:u}}function uJ(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:s=250}=t,u=e.placement,f=u.split("-")[0],c=I.useMemo(()=>({side:f,placement:u}),[f,u]),p=typeof s=="number",m=(p?s:s.open)||0,v=(p?s:s.close)||0,[x,w]=I.useState(()=>({...Gc(a,c),...Gc(n,c)})),{isMounted:_,status:S}=lJ(e,{duration:s}),C=cl(n),O=cl(r),T=cl(i),P=cl(a);return Al(()=>{const j=Gc(C.current,c),R=Gc(T.current,c),$=Gc(P.current,c),V=Gc(O.current,c)||Object.keys(j).reduce((X,Z)=>(X[Z]="",X),{});if(S==="initial"&&w(X=>({transitionProperty:X.transitionProperty,...$,...j})),S==="open"&&w({transitionProperty:Object.keys(V).map(GR).join(","),transitionDuration:m+"ms",...$,...V}),S==="close"){const X=R||j;w({transitionProperty:Object.keys(X).map(GR).join(","),transitionDuration:v+"ms",...$,...X})}},[v,T,C,O,P,m,S,c]),{isMounted:_,styles:x}}/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const cJ={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},fJ={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},dJ=fJ,hJ={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},y9={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},pJ=({children:e,summary:t,summaryClasses:n,...r})=>{const i=I.useRef(null),[a,s]=I.useState(!1);return I.useEffect(()=>{const u=i.current,f=()=>s(!!(u!=null&&u.open));return u==null||u.addEventListener("toggle",f),()=>u==null?void 0:u.removeEventListener("toggle",f)},[]),y.jsxs("details",{ref:i,...r,children:[y.jsx("summary",{className:je("focus-ring px-1 -mx-1 rounded-sm",n),children:t}),a&&y.jsx("div",{className:"mt-3 flex flex-col gap-y-3",children:e})]})},mJ=I.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:je("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})),gJ=I.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:je("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})),vJ=I.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:je("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})),yJ=I.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:je("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})),vn=Object.assign(yJ,{Body:gJ,Header:mJ,Footer:vJ}),It=I.forwardRef(({bodyClassName:e,children:t,...n},r)=>{const{title:i,titleSize:a="md",...s}="title"in n?n:{...n,title:void 0,titleSize:void 0};return y.jsxs(vn,{...s,ref:r,children:[i&&y.jsxs(vn.Header,{children:[a==="lg"&&y.jsx("h4",{children:i}),a==="md"&&y.jsx("h5",{children:i}),a==="sm"&&y.jsx("h6",{children:i})]}),y.jsx(vn.Body,{className:e,children:t})]})});function bJ({id:e,items:t,onSelectItem:n,onActiveItemChange:r,renderItem:i,className:a,noItemsMessage:s="No items",anchor:u,"aria-label":f="Items",...c}){const[p,m]=I.useState(0),v=I.useCallback(x=>{if(m(x),r){const[w,_]=[...t.entries()][x];r(w,_)}},[t,r]);return I.useEffect(()=>{const x=u==null?void 0:u.current;if(!x)return;const w=_=>{["Enter","ArrowUp","ArrowDown"].includes(_.key)&&_.preventDefault(),_.key==="ArrowDown"?v(Math.min(p+1,t.size-1)):_.key==="ArrowUp"?v(Math.max(p-1,0)):_.key==="Enter"&&n([...t.values()][p])};return x.addEventListener("keydown",w),()=>x.removeEventListener("keydown",w)},[p,u,v,t,n]),y.jsxs(vn,{id:e,className:je("py-1 flex flex-col",a),role:"listbox","aria-orientation":"vertical","aria-label":f,...c,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(([x,w],_)=>y.jsx("button",{id:`${e}_${x}`,type:"button",role:"option","aria-selected":_===p,className:je("px-2 py-1 text-left truncate",{"bg-lm-secondary dark:bg-dm-secondary":_===p}),tabIndex:-1,onClick:()=>n(w),onMouseOver:()=>v(_),children:i(w)},x))]})}const Am=I.createContext(void 0),ud=I.createContext({responsive:!0,size:"md"}),_J=({children:e,className:t})=>{const{responsive:n}=I.useContext(ud);return y.jsx(Am.Provider,{value:{section:"head"},children:y.jsx("thead",{className:je({"hidden lg:table-header-group":n},t),children:e})})},xJ=({children:e,className:t})=>{const{responsive:n}=I.useContext(ud);return y.jsx(Am.Provider,{value:{section:"body"},children:y.jsx("tbody",{className:je({"lg:table-row-group flex flex-col gap-y-3":n},t),children:e})})},wJ=({children:e,className:t})=>{const{responsive:n}=I.useContext(ud);return y.jsx(Am.Provider,{value:{section:"footer"},children:y.jsx("tfoot",{className:je({"lg:table-row-group flex flex-col gap-y-3 mt-4":n},t),children:e})})},SJ=({children:e,className:t,...n})=>{const r=I.useContext(Am),i=(r==null?void 0:r.section)==="body",{responsive:a}=I.useContext(ud);return y.jsx("tr",{className:je("group",{"lg:table-row flex flex-col":a,"lg:border-0 border-y-2 border-lm-border dark:border-dm-border":a,"hover:bg-lm-primary dark:hover:bg-dm-primary":i,"group-[&]/card:hover:bg-lm-secondary dark:group-[&]/card:hover:bg-dm-secondary":i},t),...n,children:e})},CJ=({children:e,className:t,columnName:n,type:r,...i})=>{const a=I.useContext(Am),s=r??((a==null?void 0:a.section)!=="body"?"th":"td"),{responsive:u,size:f}=I.useContext(ud);return y.jsx(s,{"data-column":u?n:void 0,className:je("border-lm-border dark:border-dm-border",{"p-1":f==="sm","p-2":f==="md","p-3":f==="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})},AJ=({header:e,footer:t,children:n,responsive:r=!0,size:i="md",...a})=>y.jsx(ud.Provider,{value:{responsive:r,size:i},children:y.jsxs("table",{className:"w-full",...a,children:[y.jsx(_J,{children:e}),y.jsx(xJ,{children:n}),t&&y.jsx(wJ,{children:t})]})}),Xe=Object.assign(AJ,{Row:SJ,Cell:CJ}),Dt=I.forwardRef(({className:e,disabled:t,variant:n="primary",size:r="md",inline:i=!1,solid:a=!1,type:s="button",...u},f)=>{const c="to"in u&&typeof u.to=="string",p=c?Pr:"button",m=c?void 0:s;return y.jsx(p,{ref:f,className:je({"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"&&!a,"border-zinc-500":n==="secondary","text-zinc-500":n==="secondary"&&!a,"border-danger":n==="danger","text-danger":n==="danger"&&!a},a&&{"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":!a,"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:c?void 0:t,"aria-disabled":c?t:void 0,type:m,...u})}),b9=I.forwardRef(({className:e,onChange:t,...n},r)=>{const i=I.useCallback(a=>t==null?void 0:t(a.target.checked,a),[t]);return y.jsx("input",{ref:r,type:"checkbox",className:je("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})}),LE=I.forwardRef(({className:e,...t},n)=>y.jsx(b9,{ref:n,className:je("rounded-sm w-4 h-4 checked:bg-(image:--tick) bg-center",e),...t})),Iu=I.forwardRef(({onClick:e,className:t,label:n="Close",size:r="lg",solid:i},a)=>y.jsx("button",{ref:a,type:"button",onClick:e,className:je("rounded-md focus-ring cursor-pointer",{"opacity-50 highlight:opacity-80 transition-opacity":!i},t),"aria-label":n,children:y.jsx(Ke,{icon:vE,size:r==="lg"?"xl":r==="md"?"lg":void 0})})),ei=I.forwardRef(({borderless:e=!1,size:t="md",feedback:n,variant:r="default",className:i,disabled:a,...s},u)=>y.jsx("input",{ref:u,className:je("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":a,"bg-lm-primary dark:bg-dm-primary":!a,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!a}],i),disabled:a,...s})),xa=({required:e,children:t,className:n,...r})=>y.jsxs("label",{className:je("cursor-pointer",n),...r,children:[t,e&&y.jsx("span",{className:"text-danger ml-1","data-testid":"required-indicator",children:"*"})]}),DE=({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})]}),ni=I.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":s,...u},f)=>{const c=I.useId();return y.jsxs(DE,{error:i,helpText:a,"data-testid":s,children:[y.jsx(xa,{htmlFor:c,required:n,children:e}),y.jsx(ei,{ref:f,id:c,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),OJ=I.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const{flag:a,toggle:s,setToFalse:u}=Sn(),f=I.useRef(null),c=I.useCallback(({relatedTarget:p})=>{var m;(m=f.current)!=null&&m.contains(p)||u()},[f,u]);return y.jsxs("div",{className:je("group relative",e),ref:f,onBlurCapture:c,children:[y.jsx(ei,{ref:i,type:a?"text":"password",className:je({"pr-10":n!=="sm","pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),y.jsx("button",{type:"button",onClick:s,title:a?"Hide password":"Show password","aria-label":a?"Hide password":"Show password",className:je("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(Ke,{fixedWidth:!0,icon:a?UY:ZY})})]})}),EJ=I.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":s,...u},f)=>{const c=I.useId();return y.jsxs(DE,{error:i,helpText:a,"data-testid":s,children:[y.jsx(xa,{htmlFor:c,required:n,children:e}),y.jsx(OJ,{ref:f,id:c,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),TJ=I.forwardRef(({className:e,size:t="md",feedback:n,disabled:r,...i},a)=>y.jsx("select",{ref:a,className:je("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})),kE=I.forwardRef(({selectClassName:e,label:t,error:n,helpText:r,required:i,hiddenRequired:a,"data-testid":s,...u},f)=>{const c=I.useId();return y.jsxs(DE,{error:n,helpText:r,"data-testid":s,children:[y.jsx(xa,{htmlFor:c,required:i,children:t}),y.jsx(TJ,{ref:f,id:c,className:e,required:i||a,feedback:n?"error":void 0,...u})]})}),cd=I.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,variant:a="default",immediate:s=!1,...u},f)=>{const{setTimeout:c,clearCurrentTimeout:p}=w9(500),m=I.useCallback(v=>{!v||s?(p(),e(v)):c(()=>e(v))},[p,s,e,c]);return y.jsxs("div",{className:je("group relative focus-within:z-10",t),children:[a==="default"&&y.jsx(Ke,{icon:i?hE:vK,spin:i,className:je("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(ei,{ref:f,variant:a,type:"search",className:je(a==="default"&&{"pl-9":r!=="sm","pl-7":r==="sm"},n),placeholder:"Search...",onChange:v=>m(v.target.value),size:r,...u})]})});function jJ({searchResults:e,onSearch:t,onSelectSearchResult:n,renderSearchResult:r,size:i="md",listboxSpan:a="full",onFocus:s,containerClassName:u,listboxClassName:f,...c},p){const m=I.useId(),[v,x]=I.useState(),w=I.useRef(null);I.useImperativeHandle(p,()=>w.current);const _=I.useMemo(()=>e?v??[...e.keys()][0]:void 0,[v,e]),S=I.useCallback(C=>{n(C),t(""),w.current.value=""},[t,n,w]);return y.jsxs("div",{className:je("relative",u),onBlur:C=>{C.currentTarget.contains(C.relatedTarget)||t("")},children:[y.jsx(cd,{onChange:t,size:i,ref:w,role:"combobox","aria-autocomplete":"list","aria-expanded":!!e,"aria-controls":m,"aria-activedescendant":_?`${m}_${_}`:void 0,autoComplete:"off",autoCorrect:"off",onFocus:C=>{s==null||s(C),t(C.target.value)},...c}),e&&y.jsx(bJ,{id:m,items:e,anchor:w,onSelectItem:S,onActiveItemChange:x,renderItem:r,className:je("absolute top-full mt-1 z-10",{"min-w-60":a==="auto","w-full":a==="full"},f),"aria-label":"Matching items",noItemsMessage:"No results found matching search"})]})}const PJ=I.forwardRef(jJ),RJ=({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]}),MJ=({tag:e,color:t,size:n,onRemove:r})=>y.jsxs("li",{className:je("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:IE(t)?"#000":"#fff"},onClick:i=>i.stopPropagation(),children:[e,y.jsx(Iu,{label:`Remove ${e}`,solid:!0,size:"sm",onClick:()=>r(e)})]}),NJ=/\s+/g,WR="#99a1af",YR=e=>e.trim().toLowerCase().replace(NJ,"-"),LJ=({tags:e,selectedTags:t=[],onTagsChange:n,getColorForTag:r,searchMode:i="startsWith",immutable:a=!1,size:s="md",disabled:u,containerClassName:f,...c})=>{const[p,m]=I.useState(),v=I.useCallback(S=>{const C=S.toLowerCase().trim();if(!C){m(void 0);return}const O=e.filter(T=>{if(t.includes(T))return!1;const P=T.toLowerCase();return i==="startsWith"?P.startsWith(C):P.includes(C)}).slice(0,5);a||O.push(`Add "${C.split(",").map(YR).join(",")}" tag`),m(new Map(O.map(T=>[T,T])))},[a,i,t,e]),x=I.useCallback(S=>{const C=S.match(/Add\s+"([^"]+)"\s+tag/),O=((C==null?void 0:C[1])??S).split(",").map(YR);n==null||n([...new Set([...t,...O])])},[n,t]),w=I.useCallback(S=>n==null?void 0:n(t.filter(C=>C!==S)),[n,t]),_=I.useRef(null);return y.jsxs("div",{className:je("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},f),onClick:S=>{var C;S.target!==_.current&&((C=_.current)==null||C.focus())},children:[y.jsx("ul",{className:"m-0 p-0 flex flex-wrap gap-1",children:t.map((S,C)=>{const O=(r==null?void 0:r(S))??WR;return y.jsx(MJ,{tag:S,color:O,onRemove:w,size:s},`${S}${C}`)})}),y.jsx(PJ,{variant:"unstyled",listboxSpan:"auto",containerClassName:"flex items-center",listboxClassName:"whitespace-nowrap",inputClassName:je("no-clear-button",{"px-1 text-sm":s==="sm","px-2 h-[26px]":s==="md","px-3 text-xl":s==="lg"}),searchResults:p,onSearch:v,onSelectSearchResult:x,renderSearchResult:S=>S.match(/Add\s+"([^"]+)"\s+tag/)?S:y.jsx(RJ,{name:S,color:(r==null?void 0:r(S))??WR}),onKeyDown:S=>{S.key==="Backspace"&&!p&&w(t[t.length-1])},size:s,disabled:u,ref:_,immediate:!0,...c})]})},DJ=I.forwardRef(({className:e,...t},n)=>y.jsx(b9,{ref:n,className:je("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 kJ(e,{elementsSelector:t,focusFirstItem:n=!1,vertical:r=!0,horizontal:i=!0}){const a=I.useMemo(()=>{const f=[];return r&&f.push("ArrowDown"),i&&f.push("ArrowRight"),f},[i,r]),s=I.useMemo(()=>{const f=[];return r&&f.push("ArrowUp"),i&&f.push("ArrowLeft"),f},[i,r]),u=I.useMemo(()=>[...a,...s],[a,s]);I.useEffect(()=>{const f=e.current;if(!f)return()=>{};const c=new AbortController,p=()=>[...f.querySelectorAll(t)],m=p(),v=Math.max(m.findIndex(x=>x.dataset.selected==="true"),0);return m.forEach((x,w)=>{x.tabIndex=w===v?0:-1,n&&w===v&&x.focus()}),f.addEventListener("keydown",x=>{if(!u.includes(x.key))return;x.preventDefault();const w=p(),_=w.findIndex(C=>C.tabIndex===0),S=a.includes(x.key)?w[_+1]??w[0]:w[_-1]??w[w.length-1];w.forEach(C=>{C.tabIndex=-1}),S.tabIndex=0,S.focus()},{signal:c.signal}),()=>c.abort()},[u,e,t,n,a])}const IJ=()=>{const e=ro();return I.useCallback(()=>e(-1),[e])},UJ=128;function IE(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))>=UJ}const _9=({text:e,className:t,size:n="lg",initialCopied:r=!1,navigator_:i=globalThis.navigator,...a})=>{const[s,u]=Z0({initialValue:r}),f=I.useCallback(()=>i.clipboard.writeText(e).then(u),[i.clipboard,e,u]);return y.jsx("button",{type:"button",className:je("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:f,...a,children:y.jsx(Ke,{icon:s?Lu:y9,fixedWidth:!0})})},x9=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const a=i.slice(0,-2);n[a]??(n[a]=[]),n[a].push(r)}else n[i]=r}),n},UE=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()},fd=()=>{const{search:e}=xr();return I.useMemo(()=>x9(e),[e])};function w9(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=I.useRef(null),i=I.useCallback(()=>{r.current&&n(r.current)},[n]),a=I.useCallback((s,u)=>{i(),r.current=t(()=>{s(),r.current=null},u??e)},[i,e,t]);return I.useEffect(()=>i,[i]),I.useMemo(()=>({setTimeout:a,clearCurrentTimeout:i}),[i,a])}const BJ=2e3,Z0=({initialValue:e=!1,delay:t=BJ}={},n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{setTimeout:i}=w9(t,n,r),[a,s]=I.useState(e),u=I.useRef(e),f=I.useCallback(()=>{s(!u.current),i(()=>s(u.current))},[i]);return[a,f]};function Sn(e=!1){const[t,n]=I.useState(e),r=I.useCallback(()=>n(s=>!s),[]),i=I.useCallback(()=>n(!0),[]),a=I.useCallback(()=>n(!1),[]);return{flag:t,toggle:r,setToTrue:i,setToFalse:a}}const zJ=({className:e,selected:t,disabled:n,...r})=>{const i="to"in r&&typeof r.to=="string";return y.jsx(i?Pr:"button",{role:"menuitem","data-selected":t,className:je("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:i?void 0:n,"aria-disabled":i?n:void 0,...r})},$J=()=>y.jsx("div",{role:"separator","aria-hidden":!0,className:"border-b border-lm-border dark:border-dm-border my-2"}),FJ=({children:e})=>y.jsx("div",{role:"heading","aria-level":6,"aria-hidden":!0,className:je("flex items-center w-full px-3 py-1.5","text-gray-500 text-sm font-semibold"),onClick:t=>t.stopPropagation(),children:e}),qJ=({className:e,onClick:t,...n})=>y.jsx("div",{className:je("px-3 py-1.5",e),...n,onClick:r=>{r.stopPropagation(),t==null||t(r)}}),VJ=({children:e,className:t,focusableElementsSelector:n='[role="menuitem"]:not([disabled]):not([aria-disabled])',focusFirstItem:r=!1,...i})=>{const a=I.useRef(null);return kJ(a,{elementsSelector:n,focusFirstItem:r}),y.jsx(vn,{ref:a,role:"menu",className:je("py-2 whitespace-nowrap",t),...i,children:e})},Kh=Object.assign(VJ,{Item:zJ,Separator:$J,Title:FJ,Misc:qJ}),HJ=({children:e,menuAlignment:t="left",buttonVariant:n="button",buttonContent:r,buttonClassName:i,buttonSize:a="md",buttonDisabled:s=!1,containerClassName:u,menuClassName:f,caretless:c,buttonLabel:p,menuOffset:m=3})=>{const[v,x]=I.useState(!1),w=I.useRef(null),{refs:_,floatingStyles:S,context:C}=g9({open:v,onOpenChange:x,placement:t==="right"?"bottom-end":"bottom-start",middleware:[VQ(),qQ(m)],elements:{reference:w.current}}),O=aJ(C),{getReferenceProps:T,getFloatingProps:P}=v9([O]),j=I.useId(),R=I.useRef(null);return I.useEffect(()=>{const $=R.current,V=w.current;if(!$||!V)return()=>{};const X=new AbortController;return document.body.addEventListener("click",Z=>{Z.composedPath().includes(V)||x(!1)},{signal:X.signal}),()=>X.abort()},[]),y.jsxs("div",{ref:R,className:je("relative inline-block",u),onKeyDown:$=>{$.key==="Escape"&&x(!1)},onBlur:$=>{$.relatedTarget&&!R.current.contains($.relatedTarget)&&x(!1)},children:[y.jsxs("button",{ref:w,...T(),type:"button","aria-haspopup":!0,"aria-expanded":v,"aria-controls":j,"aria-label":p,disabled:s,className:je("flex items-center rounded-md focus-ring",{"justify-between":!c,"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"&&a==="sm","px-3 py-1.5":n!=="text"&&a==="md","px-4 py-2 text-lg":n!=="text"&&a==="lg","gap-x-1.5":a==="sm","gap-x-2":a!=="sm"},i),onKeyDown:$=>{$.key==="ArrowDown"&&($.preventDefault(),x(!0))},children:[r,!c&&y.jsx(Ke,{icon:p7,size:"xs"})]}),v&&y.jsx("div",{ref:_.setFloating,style:S,className:"min-w-full z-500",...P(),children:y.jsx(Kh,{className:f,id:j,focusableElementsSelector:'[role="menuitem"]:not([disabled]):not([aria-disabled]),input:not([disabled]),select:not([disabled])',focusFirstItem:!0,children:e})})]})},et=Object.assign(HJ,{Item:Kh.Item,Separator:Kh.Separator,Title:Kh.Title,Misc:Kh.Misc}),X0=I.forwardRef(({className:e,disabled:t,size:n="md",type:r="button",...i},a)=>y.jsx("button",{className:je("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:a})),GJ=({className:e,active:t,...n})=>y.jsx("li",{role:"menuitem",className:"w-full flex","data-active":t,children:y.jsx(Pr,{className:je("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})}),WJ=({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(et,{containerClassName:je("max-md:w-full",e),buttonVariant:"text",buttonClassName:je("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:je("mx-2",n),...i})}),YJ=({className:e,brand:t,children:n})=>{const{flag:r,toggle:i,setToFalse:a}=Sn(),s=I.useId(),u=I.useId(),{pathname:f}=xr();return I.useEffect(()=>a(),[f,a]),y.jsxs("nav",{className:je("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:je("text-white px-4 py-3","max-md:w-full max-md:flex max-md:flex-col items-center"),children:t}),y.jsx(Dt,{id:u,variant:"secondary",className:je("absolute right-0 top-[50%] translate-y-[-50%]","md:hidden mx-2 [&]:px-2","opacity-60 highlight:opacity-100 transition-opacity","[&]:text-inherit [&]:border-white [&]:highlight:bg-transparent"),onClick:i,"aria-label":`${r?"Hide":"Show"} menu`,"aria-controls":s,children:y.jsx(Ke,{icon:r?zY:yK})})]}),y.jsx("ul",{id:s,"aria-labelledby":u,role:"menu",className:je("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})]})},oA=Object.assign(YJ,{MenuItem:GJ,Dropdown:WJ}),S9=I.createContext(null),KJ=({className:e,to:t,...n})=>{const r=I.useContext(S9);return y.jsx(oE,{role:"menuitem",to:t,className:({isActive:i})=>je("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==null?void 0:r.fill},e),...n})},ZJ=({children:e,className:t,fill:n})=>y.jsx(S9.Provider,{value:{fill:n},children:y.jsx(vn,{role:"menubar",className:je("flex overflow-hidden",t),children:e})}),xu=Object.assign(ZJ,{Pill:KJ}),XJ=new Intl.NumberFormat("en-US"),Rn=e=>XJ.format(Number(e)),KR=10,QJ=e=>Math.ceil(e/KR)*KR,Wc=2,py="...",JJ=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),eee=(e,t)=>{const n=JJ(Math.max(Wc,e-Wc),Math.min(t-1,e+Wc)+1);return e-Wc>Wc&&n.unshift(py),e+Wc<t-1&&n.push(py),n.unshift(1),n.push(t),n},lp=e=>e===py,tee=e=>lp(e)?e:Rn(e),nee=(e,t)=>lp(e)?`${e}_${t}`:`${e}`,C9=["border border-r-0 last:border-r border-lm-border dark:border-dm-border","rounded-none first:rounded-l last:rounded-r"],A9=(e=!1)=>je(C9,"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"),sA=({children:e})=>y.jsx("span",{"aria-hidden":!0,className:je(C9,"px-3 py-2 text-gray-400"),children:e}),O9=()=>y.jsx(sA,{children:py});function ree({children:e,active:t,isEllipsis:n,href:r,...i}){const a=I.useMemo(()=>A9(t),[t]);return n?y.jsx(O9,{}):y.jsx(Pr,{className:a,to:r,...i,children:e})}function iee({children:e,active:t,isEllipsis:n,...r}){const i=I.useMemo(()=>A9(t),[t]);return n?y.jsx(O9,{}):y.jsx("button",{type:"button",className:i,...r,children:e})}const Q0=({currentPage:e,pagesCount:t,...n})=>{const r="urlForPage"in n,i=r?ree:iee,a=I.useCallback(s=>r?{href:lp(s)?void 0:n.urlForPage(s)}:{onClick:()=>!lp(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(sA,{children:y.jsx(Ke,{size:"xs",icon:QP})}):y.jsx(i,{...a(Math.max(1,e-1)),"aria-label":"Previous",children:y.jsx(Ke,{size:"xs",icon:QP})}),eee(e,t).map((s,u)=>y.jsx(i,{active:s===e,isEllipsis:lp(s),...a(s),children:tee(s)},nee(s,u))),e===t?y.jsx(sA,{children:y.jsx(Ke,{size:"xs",icon:ay})}):y.jsx(i,{...a(Math.min(t,e+1)),"aria-label":"Next",children:y.jsx(Ke,{size:"xs",icon:ay})})]})},aee=({buttonLabel:e="Options",buttonSize:t="md",...n})=>y.jsx(et,{buttonContent:y.jsx(Ke,{icon:sK,className:je({"px-1":t==="sm"})}),caretless:!0,buttonLabel:e,buttonSize:t,...n}),fn=Object.assign(aee,{Item:et.Item,Separator:et.Separator,Title:et.Title,Misc:et.Misc}),oee=({open:e,children:t,className:n,onClose:r,...i})=>{const a=I.useRef(null);return I.useEffect(()=>{var s,u;const f=document.body,c=f.style.overflow,p=f.style.paddingRight;if(e){const m=window.outerWidth-f.clientWidth,v=f.scrollHeight>f.clientHeight;f.style.overflow="hidden",v&&(f.style.paddingRight=`${m}px`),(s=a.current)==null||s.showModal()}else(u=a.current)==null||u.close();return()=>{f.style.overflow=c,f.style.paddingRight=p}},[e]),K0.createPortal(y.jsx("dialog",{ref:a,className:je("bg-transparent backdrop:bg-black/50",n),onCancel:s=>{s.preventDefault(),r()},...i,children:e&&t}),document.body)},io=({open:e,onClose:t,variant:n="default",title:r,children:i,className:a,...s})=>{const{size:u="md",confirmText:f="Confirm",cancelText:c="Cancel",confirmDisabled:p,onConfirm:m,onClosed:v,...x}="onConfirm"in s?s:{...s},[w,_]=I.useState(e),S=I.useRef(null),C=I.useRef("cancel"),O=I.useCallback(T=>{T.preventDefault(),T.stopPropagation(),C.current="confirm",m==null||m()},[m]);return I.useEffect(()=>{if(e){C.current="cancel",_(!0);return}const T=S.current;if(T){delete S.current.dataset.open;let P=!1;const j=R=>{P||R.target!==T||(P=!0,_(!1),v==null||v(C.current))};return T.addEventListener("transitionend",j),()=>{T.removeEventListener("transitionend",j)}}},[v,e]),I.useEffect(()=>{const T=S.current;w&&T&&(T.dataset.open="")},[w]),y.jsx(oee,{open:w,onClose:t,className:je({"flex w-screen h-screen max-w-screen max-h-screen":w,"overflow-hidden":n==="cover"},a),...x,children:y.jsx("form",{"data-testid":"transition-container",ref:S,className:je("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:O,children:y.jsx(vn,{className:je("w-full",{"h-full relative overflow-auto":n==="cover"}),children:n==="cover"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:je("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(Iu,{onClick:t,label:"Close dialog"})]}),i]}):y.jsxs(y.Fragment,{children:[y.jsxs(vn.Header,{className:je("sticky top-0","flex items-center justify-between gap-x-2"),children:[y.jsx("h5",{className:je({"text-danger":n==="danger"}),children:r}),y.jsx(Iu,{onClick:t,label:"Close dialog"})]}),y.jsx(vn.Body,{children:i}),m&&y.jsxs(vn.Footer,{"data-testid":"footer",className:je("flex justify-end items-center gap-x-2","[&]:px-3 sticky bottom-0"),children:[y.jsx(X0,{onClick:t,children:c}),y.jsx(Dt,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:p,type:"submit",children:f})]})]})})})})},Xo=({className:e,children:t,loading:n=!1,variant:r="default"})=>y.jsx(It,{className:je({"[&]:border-danger":r==="error"},e),children:y.jsxs("h3",{className:je("text-center",{"text-gray-500 dark:text-gray-400":r==="default","text-danger":r==="error"}),children:[n&&y.jsxs(y.Fragment,{children:[y.jsx(Ke,{icon:hE,spin:!0}),y.jsx("span",{className:"ml-2",children:t??"Loading..."})]}),!n&&t]})}),qr=({variant:e,className:t,size:n="md",children:r})=>y.jsx("div",{className:je("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}),ao=({placement:e="auto"}={})=>{const t=I.useRef(null),n=(()=>{const _=[];return e==="auto"&&_.push(HQ()),_.push(GQ({element:t})),_})(),[r,i]=I.useState(!1),{refs:a,floatingStyles:s,context:u,middlewareData:f}=g9({placement:e==="auto"?void 0:e,open:r,onOpenChange:i,middleware:n}),c=rJ(u,{delay:{open:300},move:!0}),{getFloatingProps:p,getReferenceProps:m}=v9([c]),{isMounted:v,styles:x}=uJ(u,{duration:200}),w=I.useMemo(()=>{const _=u.placement.split("-")[0];return{top:"bottom",right:"left",bottom:"top",left:"right"}[_]??""},[u.placement]);return{anchor:{...m(),ref:a.setReference},tooltip:{...p(),refSetter:a.setFloating,isMounted:v,styles:{...s,...x},arrowPos:f.arrow,arrowRef:t,arrowSide:w}}},oo=({children:e,isMounted:t,styles:n,refSetter:r,arrowRef:i,arrowPos:a,arrowSide:s,...u})=>{var f;return t&&y.jsx("div",{role:"tooltip","aria-live":"polite",className:je("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:je("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:a==null?void 0:a.x,top:a==null?void 0:a.y,[s]:`${-(((f=i.current)==null?void 0:f.offsetWidth)??0)/2}px`},"data-testid":"arrow"})]})})};function E9(e){if(e.currentField!==e.newField)return"ASC";const t={ASC:"DESC",DESC:void 0};return e.currentOrderDir?t[e.currentOrderDir]:"ASC"}function BE(e){const t=E9(e);return{field:t?e.newField:void 0,dir:t}}const T9=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const a=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?a:s}),see=e=>e.dir?`${e.field}-${e.dir}`:void 0,lee=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Om({items:e,order:t,onChange:n,prefixed:r=!0,buttonVariant:i="button",...a}){const s=I.useCallback(f=>{const c=BE({currentOrderDir:t.dir,currentField:t.field,newField:f});n(c)},[n,t.dir,t.field]),u=i==="button";return y.jsxs(et,{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,...a,children:[Object.entries(e).map(([f,c])=>y.jsxs(et.Item,{selected:t.field===f,onClick:()=>s(f),className:"flex items-center justify-between gap-2",children:[c,t.field===f&&y.jsx(Ke,{icon:t.dir==="ASC"?fK:KY})]},f)),y.jsx(et.Separator,{}),y.jsx(et.Item,{disabled:!t.field,onClick:()=>n({}),children:y.jsx("i",{children:"Clear selection"})})]})}const uee="#4696e5",cee="rgba(70, 150, 229, 0.4)",fee="#2078CF",dee="rgba(32, 120, 207, 0.4)",Op=()=>Ku()?uee:fee,hee=()=>Ku()?cee:dee,lA="#f77f28",pee="rgba(247, 127, 40, 0.4)",mee="white",gee="#161b22",vee=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},Ku=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},zE=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",yee=({isOpen:e,onClose:t,forceUpdate:n})=>{const{flag:r,setToTrue:i}=Sn(),a=I.useCallback(()=>{i(),n()},[n,i]);return e?y.jsxs(vn,{role:"alert",className:je("w-[700px] max-w-[calc(100%-30px)]","fixed top-[35px] left-[50%] translate-x-[-50%] z-[1040]"),children:[y.jsxs(vn.Header,{className:"flex items-center justify-between",children:[y.jsx("h5",{children:"This app has just been updated!"}),y.jsx(Iu,{onClick:t})]}),y.jsxs(vn.Body,{className:"flex gap-4 items-center justify-between max-md:flex-col",children:["Restart it to enjoy the new features.",y.jsxs(Dt,{disabled:r,variant:"secondary",solid:!0,onClick:a,children:[!r&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Ke,{icon:wK})]}),r&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]}):null},j9=({children:e,title:t})=>y.jsx("div",{className:"pt-4",children:y.jsxs(It,{className:"p-4 w-full lg:w-[65%] m-auto",children:[y.jsx("h2",{children:t}),e]})}),P9=({to:e="/",children:t="Home"})=>y.jsxs(j9,{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(Dt,{inline:!0,to:e,size:"lg",children:t})]});function wa(e){return I.useMemo(()=>e,[e])}function Sa(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const bee=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},R9=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var S;const{MainHeader:a,Home:s,ShlinkWebComponentContainer:u,CreateServer:f,EditServer:c,Settings:p,ManageServers:m,ShlinkVersionsContainer:v}=wa(R9),x=xr(),w=I.useRef(t),_=x.pathname==="/";return I.useEffect(()=>{Object.keys(w.current).length===0&&e()},[e]),I.useEffect(()=>{var C;vee(((C=n.ui)==null?void 0:C.theme)??zE())},[(S=n.ui)==null?void 0:S.theme]),y.jsxs("div",{className:"h-full",children:[y.jsx(a,{}),y.jsxs("div",{className:"h-full pt-(--header-height)",children:[y.jsx("div",{"data-testid":"shlink-wrapper",className:je("min-h-full pb-[calc(var(--footer-height)+var(--footer-margin))] -mb-[calc(var(--footer-height)+var(--footer-margin))]",{"flex items-center pt-4":_}),children:y.jsxs(D0,{children:[y.jsx(wt,{index:!0,element:y.jsx(s,{})}),y.jsx(wt,{path:"/settings",children:["","*"].map(C=>y.jsx(wt,{path:C,element:y.jsx(p,{})},C))}),y.jsx(wt,{path:"/manage-servers",element:y.jsx(m,{})}),y.jsx(wt,{path:"/server/create",element:y.jsx(f,{})}),y.jsx(wt,{path:"/server/:serverId/edit",element:y.jsx(c,{})}),y.jsx(wt,{path:"/server/:serverId",children:["","*"].map(C=>y.jsx(wt,{path:C,element:y.jsx(u,{})},C))}),y.jsx(wt,{path:"*",element:y.jsx(P9,{})})]})}),y.jsx("div",{className:"h-(--footer-height) mt-(--footer-margin) md:px-4",children:y.jsx(v,{})})]}),y.jsx(yee,{isOpen:r,onClose:i,forceUpdate:bee})]})},_ee=Sa(R9,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function vr(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 xee=typeof Symbol=="function"&&Symbol.observable||"@@observable",ZR=xee,px=()=>Math.random().toString(36).substring(7).split("").join("."),wee={INIT:`@@redux/INIT${px()}`,REPLACE:`@@redux/REPLACE${px()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${px()}`},my=wee;function $E(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 M9(e,t,n){if(typeof e!="function")throw new Error(vr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(vr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(vr(1));return n(M9)(e,t)}let r=e,i=t,a=new Map,s=a,u=0,f=!1;function c(){s===a&&(s=new Map,a.forEach((S,C)=>{s.set(C,S)}))}function p(){if(f)throw new Error(vr(3));return i}function m(S){if(typeof S!="function")throw new Error(vr(4));if(f)throw new Error(vr(5));let C=!0;c();const O=u++;return s.set(O,S),function(){if(C){if(f)throw new Error(vr(6));C=!1,c(),s.delete(O),a=null}}}function v(S){if(!$E(S))throw new Error(vr(7));if(typeof S.type>"u")throw new Error(vr(8));if(typeof S.type!="string")throw new Error(vr(17));if(f)throw new Error(vr(9));try{f=!0,i=r(i,S)}finally{f=!1}return(a=s).forEach(O=>{O()}),S}function x(S){if(typeof S!="function")throw new Error(vr(10));r=S,v({type:my.REPLACE})}function w(){const S=m;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(vr(11));function O(){const P=C;P.next&&P.next(p())}return O(),{unsubscribe:S(O)}},[ZR](){return this}}}return v({type:my.INIT}),{dispatch:v,subscribe:m,getState:p,replaceReducer:x,[ZR]:w}}function See(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:my.INIT})>"u")throw new Error(vr(12));if(typeof n(void 0,{type:my.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(vr(13))})}function FE(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{See(n)}catch(a){i=a}return function(s={},u){if(i)throw i;let f=!1;const c={};for(let p=0;p<r.length;p++){const m=r[p],v=n[m],x=s[m],w=v(x,u);if(typeof w>"u")throw u&&u.type,new Error(vr(14));c[m]=w,f=f||w!==x}return f=f||r.length!==Object.keys(s).length,f?c:s}}function gy(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Cee(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(vr(15))};const s={getState:i.getState,dispatch:(f,...c)=>a(f,...c)},u=e.map(f=>f(s));return a=gy(...u)(i.dispatch),{...i,dispatch:a}}}function Aee(e){return $E(e)&&"type"in e&&typeof e.type=="string"}var N9=Symbol.for("immer-nothing"),XR=Symbol.for("immer-draftable"),Ei=Symbol.for("immer-state");function da(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wf=Object.getPrototypeOf;function Uu(e){return!!e&&!!e[Ei]}function Qo(e){var t;return e?L9(e)||Array.isArray(e)||!!e[XR]||!!((t=e.constructor)!=null&&t[XR])||eb(e)||tb(e):!1}var Oee=Object.prototype.constructor.toString();function L9(e){if(!e||typeof e!="object")return!1;const t=wf(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)===Oee}function Ep(e,t){J0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function J0(e){const t=e[Ei];return t?t.type_:Array.isArray(e)?1:eb(e)?2:tb(e)?3:0}function uA(e,t){return J0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D9(e,t,n){const r=J0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Eee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function eb(e){return e instanceof Map}function tb(e){return e instanceof Set}function vu(e){return e.copy_||e.base_}function cA(e,t){if(eb(e))return new Map(e);if(tb(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&L9(e))return wf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ei];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const a=r[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(wf(e),n)}function qE(e,t=!1){return nb(e)||Uu(e)||!Qo(e)||(J0(e)>1&&(e.set=e.add=e.clear=e.delete=Tee),Object.freeze(e),t&&Ep(e,(n,r)=>qE(r,!0))),e}function Tee(){da(2)}function nb(e){return Object.isFrozen(e)}var jee={};function Bu(e){const t=jee[e];return t||da(0,e),t}var Tp;function k9(){return Tp}function Pee(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function QR(e,t){t&&(Bu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fA(e){dA(e),e.drafts_.forEach(Ree),e.drafts_=null}function dA(e){e===Tp&&(Tp=e.parent_)}function JR(e){return Tp=Pee(Tp,e)}function Ree(e){const t=e[Ei];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function eM(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ei].modified_&&(fA(t),da(4)),Qo(e)&&(e=vy(t,e),t.parent_||yy(t,e)),t.patches_&&Bu("Patches").generateReplacementPatches_(n[Ei].base_,e,t.patches_,t.inversePatches_)):e=vy(t,n,[]),fA(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==N9?e:void 0}function vy(e,t,n){if(nb(t))return t;const r=t[Ei];if(!r)return Ep(t,(i,a)=>tM(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),Ep(a,(u,f)=>tM(e,r,i,u,f,n,s)),yy(e,i,!1),n&&e.patches_&&Bu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function tM(e,t,n,r,i,a,s){if(Uu(i)){const u=a&&t&&t.type_!==3&&!uA(t.assigned_,r)?a.concat(r):void 0,f=vy(e,i,u);if(D9(n,r,f),Uu(f))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Qo(i)&&!nb(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;vy(e,i),(!t||!t.scope_.parent_)&&yy(e,i)}}function yy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qE(t,n)}function Mee(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:k9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=VE;n&&(i=[r],a=jp);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,u}var VE={get(e,t){if(t===Ei)return e;const n=vu(e);if(!uA(n,t))return Nee(e,n,t);const r=n[t];return e.finalized_||!Qo(r)?r:r===mx(e.base_,t)?(gx(e),e.copy_[t]=pA(r,e)):r},has(e,t){return t in vu(e)},ownKeys(e){return Reflect.ownKeys(vu(e))},set(e,t,n){const r=I9(vu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=mx(vu(e),t),a=i==null?void 0:i[Ei];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Eee(n,i)&&(n!==void 0||uA(e.base_,t)))return!0;gx(e),hA(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 mx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,gx(e),hA(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=vu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){da(11)},getPrototypeOf(e){return wf(e.base_)},setPrototypeOf(){da(12)}},jp={};Ep(VE,(e,t)=>{jp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});jp.deleteProperty=function(e,t){return jp.set.call(this,e,t,void 0)};jp.set=function(e,t,n){return VE.set.call(this,e[0],t,n,e[0])};function mx(e,t){const n=e[Ei];return(n?vu(n):e)[t]}function Nee(e,t,n){var i;const r=I9(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function I9(e,t){if(!(t in e))return;let n=wf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=wf(n)}}function hA(e){e.modified_||(e.modified_=!0,e.parent_&&hA(e.parent_))}function gx(e){e.copy_||(e.copy_=cA(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Lee=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(f=a,...c){return s.produce(f,p=>n.call(this,p,...c))}}typeof n!="function"&&da(6),r!==void 0&&typeof r!="function"&&da(7);let i;if(Qo(t)){const a=JR(this),s=pA(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?fA(a):dA(a)}return QR(a,r),eM(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===N9&&(i=void 0),this.autoFreeze_&&qE(i,!0),r){const a=[],s=[];Bu("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else da(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,f=>t(f,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Qo(e)||da(8),Uu(e)&&(e=Dee(e));const t=JR(this),n=pA(e,void 0);return n[Ei].isManual_=!0,dA(t),n}finishDraft(e,t){const n=e&&e[Ei];(!n||!n.isManual_)&&da(9);const{scope_:r}=n;return QR(r,t),eM(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=Bu("Patches").applyPatches_;return Uu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function pA(e,t){const n=eb(e)?Bu("MapSet").proxyMap_(e,t):tb(e)?Bu("MapSet").proxySet_(e,t):Mee(e,t);return(t?t.scope_:k9()).drafts_.push(n),n}function Dee(e){return Uu(e)||da(10,e),U9(e)}function U9(e){if(!Qo(e)||nb(e))return e;const t=e[Ei];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cA(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cA(e,!0);return Ep(n,(r,i)=>{D9(n,r,U9(i))}),t&&(t.finalized_=!1),n}var Ti=new Lee,B9=Ti.produce;Ti.produceWithPatches.bind(Ti);Ti.setAutoFreeze.bind(Ti);Ti.setUseStrictShallowCopy.bind(Ti);Ti.applyPatches.bind(Ti);Ti.createDraft.bind(Ti);Ti.finishDraft.bind(Ti);function z9(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var kee=z9(),Iee=z9,Uee=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gy:gy.apply(null,arguments)},Bee=e=>e&&typeof e.match=="function";function Vr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Vo(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=>Aee(r)&&r.type===e,n}var $9=class Zh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Zh.prototype)}static get[Symbol.species](){return Zh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Zh(...t[0].concat(this)):new Zh(...t.concat(this))}};function nM(e){return Qo(e)?B9(e,()=>{}):e}function mv(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function zee(e){return typeof e=="boolean"}var $ee=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new $9;return n&&(zee(n)?s.push(kee):s.push(Iee(n.extraArgument))),s},Fee="RTK_autoBatch",rM=e=>t=>{setTimeout(t,e)},qee=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const u=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rM(10):e.type==="callback"?e.queueNotification:rM(e.timeout),c=()=>{s=!1,a&&(a=!1,u.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const m=()=>i&&p(),v=r.subscribe(m);return u.add(p),()=>{v(),u.delete(p)}},dispatch(p){var m;try{return i=!((m=p==null?void 0:p.meta)!=null&&m[Fee]),a=!i,a&&(s||(s=!0,f(c))),r.dispatch(p)}finally{i=!0}}})},Vee=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new $9(e);return r&&i.push(qee(typeof r=="object"?r:void 0)),i};function F9(e){const t=$ee(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let f;if(typeof n=="function")f=n;else if($E(n))f=FE(n);else throw new Error(Vo(1));let c;typeof r=="function"?c=r(t):c=t();let p=gy;i&&(p=Uee({trace:!1,...typeof i=="object"&&i}));const m=Cee(...c),v=Vee(m);let x=typeof u=="function"?u(v):v();const w=p(...x);return M9(f,s,w)}function q9(e){const t={},n=[];let r;const i={addCase(a,s){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Vo(28));if(u in t)throw new Error(Vo(29));return t[u]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function Hee(e){return typeof e=="function"}function Gee(e,t){let[n,r,i]=q9(t),a;if(Hee(e))a=()=>nM(e());else{const u=nM(e);a=()=>u}function s(u=a(),f){let c=[n[f.type],...r.filter(({matcher:p})=>p(f)).map(({reducer:p})=>p)];return c.filter(p=>!!p).length===0&&(c=[i]),c.reduce((p,m)=>{if(m)if(Uu(p)){const x=m(p,f);return x===void 0?p:x}else{if(Qo(p))return B9(p,v=>m(v,f));{const v=m(p,f);if(v===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return p},u)}return s.getInitialState=a,s}var Wee=(e,t)=>Bee(e)?e.match(t):e(t);function Yee(...e){return t=>e.some(n=>Wee(n,t))}var Kee="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zee=(e=21)=>{let t="",n=e;for(;n--;)t+=Kee[Math.random()*64|0];return t},Xee=["name","message","stack","code"],vx=class{constructor(e,t){Hc(this,"_type");this.payload=e,this.meta=t}},iM=class{constructor(e,t){Hc(this,"_type");this.payload=e,this.meta=t}},Qee=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Xee)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},aM="External signal was aborted",V9=(()=>{function e(t,n,r){const i=Vr(t+"/fulfilled",(f,c,p,m)=>({payload:f,meta:{...m||{},arg:p,requestId:c,requestStatus:"fulfilled"}})),a=Vr(t+"/pending",(f,c,p)=>({payload:void 0,meta:{...p||{},arg:c,requestId:f,requestStatus:"pending"}})),s=Vr(t+"/rejected",(f,c,p,m,v)=>({payload:m,error:(r&&r.serializeError||Qee)(f||"Rejected"),meta:{...v||{},arg:p,requestId:c,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(f==null?void 0:f.name)==="AbortError",condition:(f==null?void 0:f.name)==="ConditionError"}}));function u(f,{signal:c}={}){return(p,m,v)=>{const x=r!=null&&r.idGenerator?r.idGenerator(f):Zee(),w=new AbortController;let _,S;function C(T){S=T,w.abort()}c&&(c.aborted?C(aM):c.addEventListener("abort",()=>C(aM),{once:!0}));const O=async function(){var j,R;let T;try{let $=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,f,{getState:m,extra:v});if(ete($)&&($=await $),$===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const V=new Promise((X,Z)=>{_=()=>{Z({name:"AbortError",message:S||"Aborted"})},w.signal.addEventListener("abort",_)});p(a(x,f,(R=r==null?void 0:r.getPendingMeta)==null?void 0:R.call(r,{requestId:x,arg:f},{getState:m,extra:v}))),T=await Promise.race([V,Promise.resolve(n(f,{dispatch:p,getState:m,extra:v,requestId:x,signal:w.signal,abort:C,rejectWithValue:(X,Z)=>new vx(X,Z),fulfillWithValue:(X,Z)=>new iM(X,Z)})).then(X=>{if(X instanceof vx)throw X;return X instanceof iM?i(X.payload,x,f,X.meta):i(X,x,f)})])}catch($){T=$ instanceof vx?s(null,x,f,$.payload,$.meta):s($,x,f)}finally{_&&w.signal.removeEventListener("abort",_)}return r&&!r.dispatchConditionRejection&&s.match(T)&&T.meta.condition||p(T),T}();return Object.assign(O,{abort:C,requestId:x,arg:f,unwrap(){return O.then(Jee)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,settled:Yee(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Jee(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ete(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tte=Symbol.for("rtk-slice-createasyncthunk");function nte(e,t){return`${e}/${t}`}function rte({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[tte];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Vo(11));const u=(typeof i.reducers=="function"?i.reducers(ate()):i.reducers)||{},f=Object.keys(u),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(P,j){const R=typeof P=="string"?P:P.type;if(!R)throw new Error(Vo(12));if(R in c.sliceCaseReducersByType)throw new Error(Vo(13));return c.sliceCaseReducersByType[R]=j,p},addMatcher(P,j){return c.sliceMatchers.push({matcher:P,reducer:j}),p},exposeAction(P,j){return c.actionCreators[P]=j,p},exposeCaseReducer(P,j){return c.sliceCaseReducersByName[P]=j,p}};f.forEach(P=>{const j=u[P],R={reducerName:P,type:nte(a,P),createNotation:typeof i.reducers=="function"};ste(j)?ute(R,j,p,t):ote(R,j,p)});function m(){const[P={},j=[],R=void 0]=typeof i.extraReducers=="function"?q9(i.extraReducers):[i.extraReducers],$={...P,...c.sliceCaseReducersByType};return Gee(i.initialState,V=>{for(let X in $)V.addCase(X,$[X]);for(let X of c.sliceMatchers)V.addMatcher(X.matcher,X.reducer);for(let X of j)V.addMatcher(X.matcher,X.reducer);R&&V.addDefaultCase(R)})}const v=P=>P,x=new Map,w=new WeakMap;let _;function S(P,j){return _||(_=m()),_(P,j)}function C(){return _||(_=m()),_.getInitialState()}function O(P,j=!1){function R(V){let X=V[P];return typeof X>"u"&&j&&(X=mv(w,R,C)),X}function $(V=v){const X=mv(x,j,()=>new WeakMap);return mv(X,V,()=>{const Z={};for(const[Y,te]of Object.entries(i.selectors??{}))Z[Y]=ite(te,V,()=>mv(w,V,C),j);return Z})}return{reducerPath:P,getSelectors:$,get selectors(){return $(R)},selectSlice:R}}const T={name:a,reducer:S,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...O(s),injectInto(P,{reducerPath:j,...R}={}){const $=j??s;return P.inject({reducerPath:$,reducer:S},R),{...T,...O($,!0)}}};return T}}function ite(e,t,n,r){function i(a,...s){let u=t(a);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var Un=rte();function ate(){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 ote({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!lte(r))throw new Error(Vo(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?Vr(e,s):Vr(e))}function ste(e){return e._reducerDefinitionType==="asyncThunk"}function lte(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ute({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Vo(18));const{payloadCreator:a,fulfilled:s,pending:u,rejected:f,settled:c,options:p}=n,m=i(e,a,p);r.exposeAction(t,m),s&&r.addCase(m.fulfilled,s),u&&r.addCase(m.pending,u),f&&r.addCase(m.rejected,f),c&&r.addMatcher(m.settled,c),r.exposeCaseReducer(t,{fulfilled:s||gv,pending:u||gv,rejected:f||gv,settled:c||gv})}function gv(){}function Vo(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:cte,reducer:fte}=Un({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:dte,resetAppUpdate:hte}=cte,pte=fte,mte=(e,t)=>{e.factory("App",_ee),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>dte),e.serviceFactory("resetAppUpdate",()=>hte)};var H9=e=>{throw TypeError(e)},G9=(e,t,n)=>t.has(e)||H9("Cannot "+n),oM=(e,t,n)=>(G9(e,t,"read from private field"),n?n.call(e):t.get(e)),gte=(e,t,n)=>t.has(e)?H9("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),vte=(e,t,n,r)=>(G9(e,t,"write to private field"),t.set(e,n),n);const sM={"Content-Type":"application/json"},lM=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...sM}}:{headers:sM}:e;var Xh;let yte=class{constructor(t=globalThis.fetch.bind(globalThis)){gte(this,Xh),vte(this,Xh,t)}async jsonRequest(t,n){const r=await oM(this,Xh).call(this,t,lM(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await oM(this,Xh).call(this,t,lM(n));if(!r.ok)throw await r.json()}};Xh=new WeakMap;const HE={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(HE);const bte=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,uM=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(bte);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},cM=e=>e==="*"||e==="x"||e==="X",fM=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},_te=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],xte=(e,t)=>{if(cM(e)||cM(t))return 0;const[n,r]=_te(fM(e),fM(t));return n>r?1:n<r?-1:0},dM=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=xte(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},wte=(e,t)=>{const n=uM(e),r=uM(t),i=n.pop(),a=r.pop(),s=dM(n,r);return s!==0?s:i&&a?dM(i.split("."),a.split(".")):i||a?i?-1:1:0},mA=(e,t,n)=>{Ste(n);const r=wte(e,t);return W9[n].includes(r)},W9={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},hM=Object.keys(W9),Ste=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(hM.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${hM.join("|")}`)},Y9=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),K9=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),yx=e=>Object.prototype.toString.call(e)==="[object Object]",Z9=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const a=t(...r);return n[i]=a,a}},rb=(e,t)=>{const n={...e};return!yx(e)||!yx(t)||Object.keys(t).forEach(r=>{yx(t[r])?n[r]=r in e&&e[r]!==void 0?rb(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},X9=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Cte=(e,t)=>[...e].sort((n,r)=>{const i=t(n),a=t(r);return i===a?0:i<a?-1:1}),pf=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},pM=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),Ci=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e});var Qh={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/var Ate=Qh.exports,mM;function Ote(){return mM||(mM=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,s=n.XDomainRequest,u=n.ActiveXObject,f=n.EventSource,c=n.document,p=n.Promise,m=n.fetch,v=n.Response,x=n.TextDecoder,w=n.TextEncoder,_=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(he){c.readyState="complete"},!1)),a==null&&u!=null&&(a=function(){return new u("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(he){function xe(){}return xe.prototype=he,new xe}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var S=m;m=function(he,xe){var Oe=xe.signal;return S(he,{headers:xe.headers,credentials:xe.credentials,cache:xe.cache}).then(function(Le){var He=Le.body.getReader();return Oe._reader=He,Oe._aborted&&Oe._reader.cancel(),{status:Le.status,statusText:Le.statusText,headers:Le.headers,body:{getReader:function(){return He}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function C(){this.bitsNeeded=0,this.codePoint=0}C.prototype.decode=function(he){function xe(De,Ne,Te){if(Te===1)return De>=128>>Ne&&De<<Ne<=2047;if(Te===2)return De>=2048>>Ne&&De<<Ne<=55295||De>=57344>>Ne&&De<<Ne<=65535;if(Te===3)return De>=65536>>Ne&&De<<Ne<=1114111;throw new Error}function Oe(De,Ne){if(De===6*1)return Ne>>6>15?3:Ne>31?2:1;if(De===6*2)return Ne>15?3:2;if(De===6*3)return 3;throw new Error}for(var Le=65533,He="",Ue=this.bitsNeeded,$e=this.codePoint,_e=0;_e<he.length;_e+=1){var we=he[_e];Ue!==0&&(we<128||we>191||!xe($e<<6|we&63,Ue-6,Oe(Ue,$e)))&&(Ue=0,$e=Le,He+=String.fromCharCode($e)),Ue===0?(we>=0&&we<=127?(Ue=0,$e=we):we>=192&&we<=223?(Ue=6*1,$e=we&31):we>=224&&we<=239?(Ue=6*2,$e=we&15):we>=240&&we<=247?(Ue=6*3,$e=we&7):(Ue=0,$e=Le),Ue!==0&&!xe($e,Ue,Oe(Ue,$e))&&(Ue=0,$e=Le)):(Ue-=6,$e=$e<<6|we&63),Ue===0&&($e<=65535?He+=String.fromCharCode($e):(He+=String.fromCharCode(55296+($e-65535-1>>10)),He+=String.fromCharCode(56320+($e-65535-1&1023))))}return this.bitsNeeded=Ue,this.codePoint=$e,He};var O=function(){try{return new x().decode(new w().encode("test"),{stream:!0})==="test"}catch(he){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+he)}return!1};(x==null||w==null||!O())&&(x=C);var T=function(){};function P(he){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=T,this.onload=T,this.onerror=T,this.onreadystatechange=T,this._contentType="",this._xhr=he,this._sendTimeout=0,this._abort=T}P.prototype.open=function(he,xe){this._abort(!0);var Oe=this,Le=this._xhr,He=1,Ue=0;this._abort=function(Te){Oe._sendTimeout!==0&&(i(Oe._sendTimeout),Oe._sendTimeout=0),(He===1||He===2||He===3)&&(He=4,Le.onload=T,Le.onerror=T,Le.onabort=T,Le.onprogress=T,Le.onreadystatechange=T,Le.abort(),Ue!==0&&(i(Ue),Ue=0),Te||(Oe.readyState=4,Oe.onabort(null),Oe.onreadystatechange())),He=0};var $e=function(){if(He===1){var Te=0,Fe="",Ge=void 0;if("contentType"in Le)Te=200,Fe="OK",Ge=Le.contentType;else try{Te=Le.status,Fe=Le.statusText,Ge=Le.getResponseHeader("Content-Type")}catch{Te=0,Fe="",Ge=void 0}Te!==0&&(He=2,Oe.readyState=2,Oe.status=Te,Oe.statusText=Fe,Oe._contentType=Ge,Oe.onreadystatechange())}},_e=function(){if($e(),He===2||He===3){He=3;var Te="";try{Te=Le.responseText}catch{}Oe.readyState=3,Oe.responseText=Te,Oe.onprogress()}},we=function(Te,Fe){if((Fe==null||Fe.preventDefault==null)&&(Fe={preventDefault:T}),_e(),He===1||He===2||He===3){if(He=4,Ue!==0&&(i(Ue),Ue=0),Oe.readyState=4,Te==="load")Oe.onload(Fe);else if(Te==="error")Oe.onerror(Fe);else if(Te==="abort")Oe.onabort(Fe);else throw new TypeError;Oe.onreadystatechange()}},De=function(Te){Le!=null&&(Le.readyState===4?(!("onload"in Le)||!("onerror"in Le)||!("onabort"in Le))&&we(Le.responseText===""?"error":"load",Te):Le.readyState===3?"onprogress"in Le||_e():Le.readyState===2&&$e())},Ne=function(){Ue=r(function(){Ne()},500),Le.readyState===3&&_e()};"onload"in Le&&(Le.onload=function(Te){we("load",Te)}),"onerror"in Le&&(Le.onerror=function(Te){we("error",Te)}),"onabort"in Le&&(Le.onabort=function(Te){we("abort",Te)}),"onprogress"in Le&&(Le.onprogress=_e),"onreadystatechange"in Le&&(Le.onreadystatechange=function(Te){De(Te)}),("contentType"in Le||!("ontimeout"in a.prototype))&&(xe+=(xe.indexOf("?")===-1?"?":"&")+"padding=true"),Le.open(he,xe,!0),"readyState"in Le&&(Ue=r(function(){Ne()},0))},P.prototype.abort=function(){this._abort(!1)},P.prototype.getResponseHeader=function(he){return this._contentType},P.prototype.setRequestHeader=function(he,xe){var Oe=this._xhr;"setRequestHeader"in Oe&&Oe.setRequestHeader(he,xe)},P.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},P.prototype.send=function(){if((!("ontimeout"in a.prototype)||!("sendAsBinary"in a.prototype)&&!("mozAnon"in a.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var he=this;he._sendTimeout=r(function(){he._sendTimeout=0,he.send()},4);return}var xe=this._xhr;"withCredentials"in xe&&(xe.withCredentials=this.withCredentials);try{xe.send(void 0)}catch(Oe){throw Oe}};function j(he){return he.replace(/[A-Z]/g,function(xe){return String.fromCharCode(xe.charCodeAt(0)+32)})}function R(he){for(var xe=Object.create(null),Oe=he.split(`\r
|
||
`),Le=0;Le<Oe.length;Le+=1){var He=Oe[Le],Ue=He.split(": "),$e=Ue.shift(),_e=Ue.join(": ");xe[j($e)]=_e}this._map=xe}R.prototype.get=function(he){return this._map[j(he)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function $(){}$.prototype.open=function(he,xe,Oe,Le,He,Ue,$e){he.open("GET",He);var _e=0;he.onprogress=function(){var De=he.responseText,Ne=De.slice(_e);_e+=Ne.length,Oe(Ne)},he.onerror=function(De){De.preventDefault(),Le(new Error("NetworkError"))},he.onload=function(){Le(null)},he.onabort=function(){Le(null)},he.onreadystatechange=function(){if(he.readyState===a.HEADERS_RECEIVED){var De=he.status,Ne=he.statusText,Te=he.getResponseHeader("Content-Type"),Fe=he.getAllResponseHeaders();xe(De,Ne,Te,new R(Fe))}},he.withCredentials=Ue;for(var we in $e)Object.prototype.hasOwnProperty.call($e,we)&&he.setRequestHeader(we,$e[we]);return he.send(),he};function V(he){this._headers=he}V.prototype.get=function(he){return this._headers.get(he)};function X(){}X.prototype.open=function(he,xe,Oe,Le,He,Ue,$e){var _e=null,we=new _,De=we.signal,Ne=new x;return m(He,{headers:$e,credentials:Ue?"include":"same-origin",signal:De,cache:"no-store"}).then(function(Te){return _e=Te.body.getReader(),xe(Te.status,Te.statusText,Te.headers.get("Content-Type"),new V(Te.headers)),new p(function(Fe,Ge){var Qe=function(){_e.read().then(function(ft){if(ft.done)Fe(void 0);else{var st=Ne.decode(ft.value,{stream:!0});Oe(st),Qe()}}).catch(function(ft){Ge(ft)})};Qe()})}).catch(function(Te){if(Te.name!=="AbortError")return Te}).then(function(Te){Le(Te)}),{abort:function(){_e!=null&&_e.cancel(),we.abort()}}};function Z(){this._listeners=Object.create(null)}function Y(he){r(function(){throw he},0)}Z.prototype.dispatchEvent=function(he){he.target=this;var xe=this._listeners[he.type];if(xe!=null)for(var Oe=xe.length,Le=0;Le<Oe;Le+=1){var He=xe[Le];try{typeof He.handleEvent=="function"?He.handleEvent(he):He.call(this,he)}catch(Ue){Y(Ue)}}},Z.prototype.addEventListener=function(he,xe){he=String(he);var Oe=this._listeners,Le=Oe[he];Le==null&&(Le=[],Oe[he]=Le);for(var He=!1,Ue=0;Ue<Le.length;Ue+=1)Le[Ue]===xe&&(He=!0);He||Le.push(xe)},Z.prototype.removeEventListener=function(he,xe){he=String(he);var Oe=this._listeners,Le=Oe[he];if(Le!=null){for(var He=[],Ue=0;Ue<Le.length;Ue+=1)Le[Ue]!==xe&&He.push(Le[Ue]);He.length===0?delete Oe[he]:Oe[he]=He}};function te(he){this.type=he,this.target=void 0}function ae(he,xe){te.call(this,he),this.data=xe.data,this.lastEventId=xe.lastEventId}ae.prototype=Object.create(te.prototype);function Q(he,xe){te.call(this,he),this.status=xe.status,this.statusText=xe.statusText,this.headers=xe.headers}Q.prototype=Object.create(te.prototype);function ne(he,xe){te.call(this,he),this.error=xe.error}ne.prototype=Object.create(te.prototype);var H=-1,B=0,U=1,F=2,M=-1,k=0,J=1,W=2,ie=3,fe=/^text\/event\-stream(;.*)?$/i,ce=1e3,ye=18e6,z=function(he,xe){var Oe=he==null?xe:parseInt(he,10);return Oe!==Oe&&(Oe=xe),q(Oe)},q=function(he){return Math.min(Math.max(he,ce),ye)},ee=function(he,xe,Oe){try{typeof xe=="function"&&xe.call(he,Oe)}catch(Le){Y(Le)}};function ue(he,xe){Z.call(this),xe=xe||{},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,de(this,he,xe)}function K(){return a!=null&&"withCredentials"in a.prototype||s==null?new a:new s}var se=m!=null&&v!=null&&"body"in v.prototype;function de(he,xe,Oe){xe=String(xe);var Le=!!Oe.withCredentials,He=Oe.lastEventIdQueryParameterName||"lastEventId",Ue=q(1e3),$e=z(Oe.heartbeatTimeout,45e3),_e="",we=Ue,De=!1,Ne=0,Te=Oe.headers||{},Fe=Oe.Transport,Ge=se&&Fe==null?void 0:new P(Fe!=null?new Fe:K()),Qe=Fe!=null&&typeof Fe!="string"?new Fe:Ge==null?new X:new $,ft=void 0,st=0,_t=H,kt="",Ut="",Bt="",wr="",Vn=k,cs=0,ii=0,fs=function(yn,hn,Jn,Hn){if(_t===B)if(yn===200&&Jn!=null&&fe.test(Jn)){_t=U,De=Date.now(),we=Ue,he.readyState=U;var tn=new Q("open",{status:yn,statusText:hn,headers:Hn});he.dispatchEvent(tn),ee(he,he.onopen,tn)}else{var Mt="";yn!==200?(hn&&(hn=hn.replace(/\s+/g," ")),Mt="EventSource's response has a status "+yn+" "+hn+" that is not 200. Aborting the connection."):Mt="EventSource's response has a Content-Type specifying an unsupported type: "+(Jn==null?"-":Jn.replace(/\s+/g," "))+". Aborting the connection.",ds();var tn=new Q("error",{status:yn,statusText:hn,headers:Hn});he.dispatchEvent(tn),ee(he,he.onerror,tn),console.error(Mt)}},Ea=function(yn){if(_t===U){for(var hn=-1,Jn=0;Jn<yn.length;Jn+=1){var Hn=yn.charCodeAt(Jn);(Hn===10||Hn===13)&&(hn=Jn)}var tn=(hn!==-1?wr:"")+yn.slice(0,hn+1);wr=(hn===-1?wr:"")+yn.slice(hn+1),yn!==""&&(De=Date.now(),Ne+=yn.length);for(var Mt=0;Mt<tn.length;Mt+=1){var Hn=tn.charCodeAt(Mt);if(Vn===M&&Hn===10)Vn=k;else if(Vn===M&&(Vn=k),Hn===13||Hn===10){if(Vn!==k){Vn===J&&(ii=Mt+1);var nn=tn.slice(cs,ii-1),er=tn.slice(ii+(ii<Mt&&tn.charCodeAt(ii)===32?1:0),Mt);nn==="data"?(kt+=`
|
||
`,kt+=er):nn==="id"?Ut=er:nn==="event"?Bt=er:nn==="retry"?(Ue=z(er,Ue),we=Ue):nn==="heartbeatTimeout"&&($e=z(er,$e),st!==0&&(i(st),st=r(function(){Ta()},$e)))}if(Vn===k){if(kt!==""){_e=Ut,Bt===""&&(Bt="message");var Ln=new ae(Bt,{data:kt.slice(1),lastEventId:Ut});if(he.dispatchEvent(Ln),Bt==="open"?ee(he,he.onopen,Ln):Bt==="message"?ee(he,he.onmessage,Ln):Bt==="error"&&ee(he,he.onerror,Ln),_t===F)return}kt="",Bt=""}Vn=Hn===13?M:k}else Vn===k&&(cs=Mt,Vn=J),Vn===J?Hn===58&&(ii=Mt+1,Vn=W):Vn===W&&(Vn=ie)}}},rc=function(yn){if(_t===U||_t===B){_t=H,st!==0&&(i(st),st=0),st=r(function(){Ta()},we),we=q(Math.min(Ue*16,we*2)),he.readyState=B;var hn=new ne("error",{error:yn});he.dispatchEvent(hn),ee(he,he.onerror,hn),yn!=null&&console.error(yn)}},ds=function(){_t=F,ft!=null&&(ft.abort(),ft=void 0),st!==0&&(i(st),st=0),he.readyState=F},Ta=function(){if(st=0,_t!==H){if(!De&&ft!=null)rc(new Error("No activity within "+$e+" milliseconds. "+(_t===B?"No response received.":Ne+" chars received.")+" Reconnecting.")),ft!=null&&(ft.abort(),ft=void 0);else{var yn=Math.max((De||Date.now())+$e-Date.now(),1);De=!1,st=r(function(){Ta()},yn)}return}De=!1,Ne=0,st=r(function(){Ta()},$e),_t=B,kt="",Bt="",Ut=_e,wr="",cs=0,ii=0,Vn=k;var hn=xe;if(xe.slice(0,5)!=="data:"&&xe.slice(0,5)!=="blob:"&&_e!==""){var Jn=xe.indexOf("?");hn=Jn===-1?xe:xe.slice(0,Jn+1)+xe.slice(Jn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(er,Ln){return Ln===He?"":er}),hn+=(xe.indexOf("?")===-1?"?":"&")+He+"="+encodeURIComponent(_e)}var Hn=he.withCredentials,tn={};tn.Accept="text/event-stream";var Mt=he.headers;if(Mt!=null)for(var nn in Mt)Object.prototype.hasOwnProperty.call(Mt,nn)&&(tn[nn]=Mt[nn]);try{ft=Qe.open(Ge,fs,Ea,rc,hn,Hn,tn)}catch(er){throw ds(),er}};he.url=xe,he.readyState=B,he.withCredentials=Le,he.headers=Te,he._close=ds,Ta()}ue.prototype=Object.create(Z.prototype),ue.prototype.CONNECTING=B,ue.prototype.OPEN=U,ue.prototype.CLOSED=F,ue.prototype.close=function(){this._close()},ue.CONNECTING=B,ue.OPEN=U,ue.CLOSED=F,ue.prototype.withCredentials=void 0;var ve=f;a!=null&&(f==null||!("withCredentials"in f.prototype))&&(ve=ue),function(he){{var xe=he(t);xe!==void 0&&(e.exports=xe)}}(function(he){he.EventSourcePolyfill=ue,he.NativeEventSource=f,he.EventSource=ve})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Ate:globalThis)}(Qh,Qh.exports)),Qh.exports}var Ete=Ote();const gM="[&]:p-0 [&]:md:w-1/4 [&]:rounded-none",Tte=({onChange:e,className:t})=>{const n=Xn("qrCodes",dd),{color:r,bgColor:i}=n;return y.jsxs(It,{title:"Colors",className:t,bodyClassName:"flex flex-col gap-4",children:[y.jsx(ni,{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:a=>e({...n,color:a.target.value}),inputClassName:gM}),y.jsx(ni,{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:a=>e({...n,bgColor:a.target.value}),inputClassName:gM})]})},Q9=({errorCorrection:e,onChange:t})=>y.jsxs(et,{buttonContent:e?`Error correction (${e})`:y.jsx("i",{children:"Default error correction"}),buttonClassName:"w-full",children:[y.jsxs(et.Item,{selected:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(et.Item,{selected:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(et.Item,{selected:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(et.Item,{selected:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),jte=["png","svg","webp","jpeg"],J9=({format:e,onChange:t})=>y.jsx(et,{buttonContent:`Format (${e})`,buttonClassName:"w-full",children:jte.map(n=>y.jsx(et.Item,{selected:e===n,onClick:()=>t(n),children:n},n))}),Sf=({className:e,size:t,...n})=>y.jsx("span",{className:je("text-gray-500 dark:text-gray-400",{"text-sm":t==="sm","text-lg":t==="lg"},e),...n}),Pte=({onChange:e})=>{const t=Xn("qrCodes",dd),{format:n,errorCorrection:r}=t;return y.jsxs(It,{title:"Format",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx(J9,{format:n,onChange:i=>e({...t,format:i})}),y.jsxs(Sf,{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(Q9,{errorCorrection:r,onChange:i=>e({...t,errorCorrection:i})}),y.jsxs(Sf,{size:"sm",children:["QR codes will initially have a ",y.jsx("b",{"data-testid":"error-correction",children:r})," error correction."]})]})]})},Rte=({onChange:e,className:t})=>{const n=Xn("qrCodes",dd),{size:r,margin:i}=n;return y.jsxs(It,{title:"Size",className:t,bodyClassName:"flex flex-col gap-4",children:[y.jsx(ni,{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:a=>e({...n,size:Number(a.target.value)}),inputClassName:"[&]:p-0"}),y.jsx(ni,{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:a=>e({...n,margin:Number(a.target.value)}),inputClassName:"[&]:p-0"})]})},Jo=({children:e,helpText:t,"data-testid":n,...r})=>y.jsxs("div",{"data-testid":n,children:[y.jsxs(xa,{className:"flex items-center gap-x-2",children:[y.jsx(DJ,{...r}),e]}),t&&y.jsx(Sf,{size:"sm","data-testid":n?`${n}-help-text`:"help-text",className:"pl-10",children:t})]}),Mte=({toggleRealTimeUpdates:e,onIntervalChange:t})=>{const{enabled:n,interval:r}=Xn("realTimeUpdates",{enabled:!0});return y.jsxs(It,{title:"Real-time updates",className:"h-full",bodyClassName:"flex flex-col gap-y-4",children:[y.jsx(Jo,{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(ni,{label:y.jsx("span",{className:je({"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(Sf,{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."})]})]})},bx=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Nte=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."]}),Lte=({onChange:e})=>{const t=Xn("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return y.jsxs(It,{title:"Short URLs form",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsxs(Jo,{"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(Jo,{"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(xa,{className:"mb-1.5",children:"Tag suggestions search mode:"}),y.jsxs(et,{buttonContent:bx(t.tagFilteringMode),buttonClassName:"w-full",children:[y.jsx(et.Item,{selected:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:bx("startsWith")}),y.jsx(et.Item,{selected:t.tagFilteringMode==="includes",onClick:n("includes"),children:bx("includes")})]}),y.jsx(Sf,{size:"sm",className:"mt-0.5",children:Nte(t.tagFilteringMode)})]})]})},Dte={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},kte=({onChange:e,defaultOrdering:t})=>{const n=Xn("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return y.jsxs(It,{title:"Short URLs list",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsx(Jo,{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(xa,{children:"Default ordering for short URLs list:"}),y.jsx(Om,{buttonClassName:"w-full",items:Dte,order:(n==null?void 0:n.defaultOrdering)??t,onChange:i=>e({defaultOrdering:!i.dir&&!i.field?void 0:i})})]})]})},Ite={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Ute=({onChange:e})=>{const t=Xn("tags",{});return y.jsx(It,{title:"Tags",className:"card",children:y.jsxs("div",{className:"flex flex-col gap-1.5",children:[y.jsx(xa,{children:"Default ordering for tags list:"}),y.jsx(Om,{buttonClassName:"w-full",items:Ite,order:t.defaultOrdering??{},onChange:n=>e({...t,defaultOrdering:!n.field&&!n.dir?void 0:n})})]})})},Bte=({onChange:e,_matchMedia:t})=>{const n=Xn("ui"),r=I.useMemo(()=>(n==null?void 0:n.theme)??zE(t),[n==null?void 0:n.theme,t]);return y.jsxs(It,{title:"User interface",bodyClassName:"flex justify-between items-center",children:[y.jsx(Jo,{checked:r==="dark",onChange:i=>e({...n,theme:i?"dark":"light"}),children:"Use dark theme."}),y.jsx(Ke,{icon:r==="dark"?AK:hK})]})},eU={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},zte=(e,t)=>!e||e==="all"?t:eU[e],$te=({onChange:e,active:t,allText:n})=>y.jsxs(et,{buttonContent:zte(t,n),buttonClassName:"w-full",children:[y.jsx(et.Item,{selected:t==="all",onClick:()=>e("all"),children:n}),y.jsx(et.Separator,{}),Object.entries(eU).map(([r,i])=>y.jsx(et.Item,{selected:t===r,onClick:()=>e(r),children:i},r))]}),vM=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Fte=({onChange:e})=>{const t=Xn("visits"),n=I.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??vM(t),...i}),[e,t]);return y.jsxs(It,{title:"Visits",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsx(Jo,{"data-testid":"exclude-bots",checked:!!(t!=null&&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!=null&&t.excludeBots?"excluded":"included"}),"."]}),children:"Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version)."}),y.jsx(Jo,{"data-testid":"compare-visits",checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),helpText:y.jsxs(y.Fragment,{children:["When loading visits, previous period ",y.jsx("b",{children:t!=null&&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(xa,{className:"mb-1.5",children:"Default interval to load on visits sections:"}),y.jsx($te,{allText:"All visits",active:vM(t),onChange:r=>n({defaultInterval:r})})]})]})},vv=({children:e,className:t})=>y.jsx("div",{className:je("flex flex-col gap-4",t),children:e}),qte=({settings:e,updateSettings:t,onUpdateSettings:n=t,defaultShortUrlsListOrdering:r})=>{const i=I.useCallback(c=>n==null?void 0:n(rb(e,c)),[e,n]),a=I.useCallback(c=>i({realTimeUpdates:{enabled:c}}),[i]),s=I.useCallback(c=>i({realTimeUpdates:{interval:c}}),[i]),u=I.useCallback((c,p)=>i({[c]:p}),[i]),f=I.useCallback(c=>u("qrCodes",c),[u]);return y.jsxs(rU,{value:e,children:[y.jsxs(xu,{className:"mb-4 sticky top-(--header-height) z-2",children:[y.jsx(xu.Pill,{to:"../general",children:"General"}),y.jsx(xu.Pill,{to:"../short-urls",children:"Short URLs"}),y.jsx(xu.Pill,{to:"../qr-codes",children:"QR codes"}),y.jsx(xu.Pill,{to:"../other-items",children:"Other items"})]}),y.jsxs(D0,{children:[y.jsx(wt,{path:"general",element:y.jsxs(vv,{children:[y.jsx(Bte,{onChange:c=>u("ui",c)}),y.jsx(Mte,{toggleRealTimeUpdates:a,onIntervalChange:s})]})}),y.jsx(wt,{path:"short-urls",element:y.jsxs(vv,{children:[y.jsx(Lte,{onChange:c=>u("shortUrlCreation",c)}),y.jsx(kte,{defaultOrdering:r,onChange:c=>u("shortUrlsList",c)})]})}),y.jsx(wt,{path:"other-items",element:y.jsxs(vv,{children:[y.jsx(Ute,{onChange:c=>u("tags",c)}),y.jsx(Fte,{onChange:c=>u("visits",c)})]})}),y.jsx(wt,{path:"qr-codes",element:y.jsxs(vv,{children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx(Rte,{onChange:f,className:"w-full"}),y.jsx(Tte,{onChange:f,className:"w-full"})]}),y.jsx(Pte,{onChange:f})]})}),y.jsx(wt,{path:"*",element:y.jsx(rE,{replace:!0,to:"../general"})})]})]})},dd={size:300,margin:0,color:"#000000",bgColor:"#ffffff",errorCorrection:"L",format:"png"};Object.freeze(dd);const tU={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}},qrCodes:dd},nU=I.createContext(tU),{Provider:rU}=nU,GE=()=>I.useContext(nU)??tU;function Xn(e,t){return GE()[e]??t}const WE=6048e5,Vte=864e5,iU=6e4,YE=36e5,yv=43200,yM=1440,bM=Symbol.for("constructDateFrom");function _r(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bM in e?e[bM](t):e instanceof Date?new e.constructor(t):new Date(t)}function Rt(e,t){return _r(t||e,e)}function KE(e,t,n){const r=Rt(e,n==null?void 0:n.in);return isNaN(t)?_r(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Hte(e,t,n){const r=Rt(e,n==null?void 0:n.in);if(isNaN(t))return _r(e,NaN);if(!t)return r;const i=r.getDate(),a=_r(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Gte(e,t,n){const{years:r=0,months:i=0,weeks:a=0,days:s=0,hours:u=0,minutes:f=0,seconds:c=0}=t,p=Rt(e,n==null?void 0:n.in),m=i||r?Hte(p,i+r*12):p,v=s||a?KE(m,s+a*7):m,x=f+u*60,_=(c+x*60)*1e3;return _r(e,+v+_)}let Wte={};function Em(){return Wte}function zu(e,t){var u,f,c,p;const n=Em(),r=(t==null?void 0:t.weekStartsOn)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((p=(c=n.locale)==null?void 0:c.options)==null?void 0:p.weekStartsOn)??0,i=Rt(e,t==null?void 0:t.in),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Pp(e,t){return zu(e,{...t,weekStartsOn:1})}function aU(e,t){const n=Rt(e,t==null?void 0:t.in),r=n.getFullYear(),i=_r(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Pp(i),s=_r(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=Pp(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Cf(e){const t=Rt(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 Zu(e,...t){const n=_r.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function $u(e,t){const n=Rt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ib(e,t,n){const[r,i]=Zu(n==null?void 0:n.in,e,t),a=$u(r),s=$u(i),u=+a-Cf(a),f=+s-Cf(s);return Math.round((u-f)/Vte)}function Yte(e,t){const n=aU(e,t),r=_r(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Pp(r)}function oU(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=_r.bind(null,i));const a=Rt(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),_r(r,n||NaN)}function Kte(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=_r.bind(null,i));const a=Rt(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),_r(r,n||NaN)}function Kv(e,t){const n=+Rt(e)-+Rt(t);return n<0?-1:n>0?1:n}function Zte(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Xte(e){return!(!Zte(e)&&typeof e!="number"||isNaN(+Rt(e)))}function by(e,t,n){const[r,i]=Zu(n==null?void 0:n.in,e,t),a=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return a*12+s}function Qte(e,t,n){const[r,i]=Zu(n==null?void 0:n.in,e,t),a=zu(r,n),s=zu(i,n),u=+a-Cf(a),f=+s-Cf(s);return Math.round((u-f)/WE)}function sU(e,t,n){const[r,i]=Zu(n==null?void 0:n.in,e,t),a=_M(r,i),s=Math.abs(ib(r,i));r.setDate(r.getDate()-a*s);const u=+(_M(r,i)===-a),f=a*(s-u);return f===0?0:f}function _M(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 lU(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function Jte(e,t,n){const[r,i]=Zu(n==null?void 0:n.in,e,t),a=(+r-+i)/YE;return lU(n==null?void 0:n.roundingMethod)(a)}function ene(e,t){return+Rt(e)-+Rt(t)}function Af(e,t){const n=Rt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function tne(e,t){const n=Rt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function nne(e,t){const n=Rt(e,t==null?void 0:t.in);return+Af(n,t)==+tne(n,t)}function rne(e,t,n){const[r,i,a]=Zu(n==null?void 0:n.in,e,e,t),s=Kv(i,a),u=Math.abs(by(i,a));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*u);let f=Kv(i,a)===-s;nne(r)&&u===1&&Kv(r,a)===1&&(f=!1);const c=s*(u-+f);return c===0?0:c}function ine(e,t,n){const r=ene(e,t)/1e3;return lU(n==null?void 0:n.roundingMethod)(r)}function ane(e,t){const n=Rt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function one(e,t){const n=t==null?void 0:t.weekStartsOn,r=Rt(e,t==null?void 0:t.in),i=r.getDay(),a=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function sne(e,t){return one(e,{...t,weekStartsOn:1})}const lne={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"}},une=(e,t,n)=>{let r;const i=lne[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function _x(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const cne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hne={date:_x({formats:cne,defaultWidth:"full"}),time:_x({formats:fne,defaultWidth:"full"}),dateTime:_x({formats:dne,defaultWidth:"full"})},pne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mne=(e,t,n,r)=>pne[e];function Lh(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):s;i=e.formattingValues[u]||e.formattingValues[s]}else{const s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const gne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yne={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"]},bne={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"]},_ne={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"}},xne={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"}},wne=(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"},Sne={ordinalNumber:wne,era:Lh({values:gne,defaultWidth:"wide"}),quarter:Lh({values:vne,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Lh({values:yne,defaultWidth:"wide"}),day:Lh({values:bne,defaultWidth:"wide"}),dayPeriod:Lh({values:_ne,defaultWidth:"wide",formattingValues:xne,defaultFormattingWidth:"wide"})};function Dh(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(u)?Ane(u,m=>m.test(s)):Cne(u,m=>m.test(s));let c;c=e.valueCallback?e.valueCallback(f):f,c=n.valueCallback?n.valueCallback(c):c;const p=t.slice(s.length);return{value:c,rest:p}}}function Cne(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ane(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function One(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const u=t.slice(i.length);return{value:s,rest:u}}}const Ene=/^(\d+)(th|st|nd|rd)?/i,Tne=/\d+/i,jne={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},Pne={any:[/^b/i,/^(a|c)/i]},Rne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mne={any:[/1/i,/2/i,/3/i,/4/i]},Nne={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},Lne={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]},Dne={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},kne={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]},Ine={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},Une={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}},Bne={ordinalNumber:One({matchPattern:Ene,parsePattern:Tne,valueCallback:e=>parseInt(e,10)}),era:Dh({matchPatterns:jne,defaultMatchWidth:"wide",parsePatterns:Pne,defaultParseWidth:"any"}),quarter:Dh({matchPatterns:Rne,defaultMatchWidth:"wide",parsePatterns:Mne,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dh({matchPatterns:Nne,defaultMatchWidth:"wide",parsePatterns:Lne,defaultParseWidth:"any"}),day:Dh({matchPatterns:Dne,defaultMatchWidth:"wide",parsePatterns:kne,defaultParseWidth:"any"}),dayPeriod:Dh({matchPatterns:Ine,defaultMatchWidth:"any",parsePatterns:Une,defaultParseWidth:"any"})},uU={code:"en-US",formatDistance:une,formatLong:hne,formatRelative:mne,localize:Sne,match:Bne,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zne(e,t){const n=Rt(e,t==null?void 0:t.in);return ib(n,ane(n))+1}function $ne(e,t){const n=Rt(e,t==null?void 0:t.in),r=+Pp(n)-+Yte(n);return Math.round(r/WE)+1}function cU(e,t){var p,m,v,x;const n=Rt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Em(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(v=i.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,s=_r((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const u=zu(s,t),f=_r((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,a),f.setHours(0,0,0,0);const c=zu(f,t);return+n>=+u?r+1:+n>=+c?r:r-1}function Fne(e,t){var u,f,c,p;const n=Em(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(c=n.locale)==null?void 0:c.options)==null?void 0:p.firstWeekContainsDate)??1,i=cU(e,t),a=_r((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),zu(a,t)}function qne(e,t){const n=Rt(e,t==null?void 0:t.in),r=+zu(n,t)-+Fne(n,t);return Math.round(r/WE)+1}function Pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const rl={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pt(n+1,2)},d(e,t){return Pt(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 Pt(e.getHours()%12||12,t.length)},H(e,t){return Pt(e.getHours(),t.length)},m(e,t){return Pt(e.getMinutes(),t.length)},s(e,t){return Pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Pt(i,t.length)}},Yc={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xM={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 rl.y(e,t)},Y:function(e,t,n,r){const i=cU(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return Pt(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Pt(a,t.length)},R:function(e,t){const n=aU(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(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 Pt(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 Pt(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 rl.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 Pt(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=qne(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){const r=$ne(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):rl.d(e,t)},D:function(e,t,n){const r=zne(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Pt(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Pt(a,t.length);case"co":return n.ordinalNumber(a,{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 Pt(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=Yc.noon:r===0?i=Yc.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=Yc.evening:r>=12?i=Yc.afternoon:r>=4?i=Yc.morning:i=Yc.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 rl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):rl.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):rl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):rl.s(e,t)},S:function(e,t){return rl.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return SM(r);case"XXXX":case"XX":return yu(r);case"XXXXX":case"XXX":default:return yu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return SM(r);case"xxxx":case"xx":return yu(r);case"xxxxx":case"xxx":default:return yu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wM(r,":");case"OOOO":default:return"GMT"+yu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wM(r,":");case"zzzz":default:return"GMT"+yu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Pt(r,t.length)},T:function(e,t,n){return Pt(+e,t.length)}};function wM(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Pt(a,2)}function SM(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):yu(e,t)}function yu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Pt(Math.trunc(r/60),2),a=Pt(r%60,2);return n+i+t+a}const CM=(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"})}},fU=(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"})}},Vne=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return CM(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",CM(r,t)).replace("{{time}}",fU(i,t))},Hne={p:fU,P:Vne},Gne=/^D+$/,Wne=/^Y+$/,Yne=["D","DD","YY","YYYY"];function Kne(e){return Gne.test(e)}function Zne(e){return Wne.test(e)}function Xne(e,t,n){const r=Qne(e,t,n);if(console.warn(r),Yne.includes(e))throw new RangeError(r)}function Qne(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 Jne=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ere=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tre=/^'([^]*?)'?$/,nre=/''/g,rre=/[a-zA-Z]/;function _y(e,t,n){var p,m,v,x;const r=Em(),i=r.locale??uU,a=r.firstWeekContainsDate??((m=(p=r.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)??1,s=r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,u=Rt(e,n==null?void 0:n.in);if(!Xte(u))throw new RangeError("Invalid time value");let f=t.match(ere).map(w=>{const _=w[0];if(_==="p"||_==="P"){const S=Hne[_];return S(w,i.formatLong)}return w}).join("").match(Jne).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const _=w[0];if(_==="'")return{isToken:!1,value:ire(w)};if(xM[_])return{isToken:!0,value:w};if(_.match(rre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(f=i.localize.preprocessor(u,f));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return f.map(w=>{if(!w.isToken)return w.value;const _=w.value;(Zne(_)||Kne(_))&&Xne(_,t,String(e));const S=xM[_[0]];return S(u,_,i.localize,c)}).join("")}function ire(e){const t=e.match(tre);return t?t[1].replace(nre,"'"):e}function are(e,t,n){const r=Em(),i=(n==null?void 0:n.locale)??r.locale??uU,a=2520,s=Kv(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:s}),[f,c]=Zu(n==null?void 0:n.in,...s>0?[t,e]:[e,t]),p=ine(c,f),m=(Cf(c)-Cf(f))/1e3,v=Math.round((p-m)/60);let x;if(v<2)return v===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",v,u);if(v<45)return i.formatDistance("xMinutes",v,u);if(v<90)return i.formatDistance("aboutXHours",1,u);if(v<yM){const w=Math.round(v/60);return i.formatDistance("aboutXHours",w,u)}else{if(v<a)return i.formatDistance("xDays",1,u);if(v<yv){const w=Math.round(v/yM);return i.formatDistance("xDays",w,u)}else if(v<yv*2)return x=Math.round(v/yv),i.formatDistance("aboutXMonths",x,u)}if(x=rne(c,f),x<12){const w=Math.round(v/yv);return i.formatDistance("xMonths",w,u)}else{const w=x%12,_=Math.trunc(x/12);return w<3?i.formatDistance("aboutXYears",_,u):w<9?i.formatDistance("overXYears",_,u):i.formatDistance("almostXYears",_+1,u)}}function ore(e,t){const n=Rt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const a="-",s=":";{const u=Pt(n.getDate(),2),f=Pt(n.getMonth()+1,2);r=`${Pt(n.getFullYear(),4)}${a}${f}${a}${u}`}{const u=n.getTimezoneOffset();if(u!==0){const x=Math.abs(u),w=Pt(Math.trunc(x/60),2),_=Pt(x%60,2);i=`${u<0?"+":"-"}${w}:${_}`}else i="Z";const f=Pt(n.getHours(),2),c=Pt(n.getMinutes(),2),p=Pt(n.getSeconds(),2),m=r===""?"":"T",v=[f,c,p].join(s);r=`${r}${m}${v}${i}`}return r}function sre(e){return Math.trunc(+Rt(e)/1e3)}function lre(e,t){return+Rt(e)>+Rt(t)}function xy(e,t){return+Rt(e)<+Rt(t)}function gA(e,t){return+Rt(e)==+Rt(t)}function ure(e,t,n){const r=+Rt(e,n==null?void 0:n.in),[i,a]=[+Rt(t.start,n==null?void 0:n.in),+Rt(t.end,n==null?void 0:n.in)].sort((s,u)=>s-u);return r>=i&&r<=a}function wy(e,t,n){return KE(e,-t,n)}function Ol(e,t){const n=()=>_r(t==null?void 0:t.in,NaN),i=hre(e);let a;if(i.date){const c=pre(i.date,2);a=mre(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const s=+a;let u=0,f;if(i.time&&(u=gre(i.time),isNaN(u)))return n();if(i.timezone){if(f=vre(i.timezone),isNaN(f))return n()}else{const c=new Date(s+u),p=Rt(0,t==null?void 0:t.in);return p.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),p.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),p}return Rt(s+u+f,t==null?void 0:t.in)}const bv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},cre=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,fre=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,dre=/^([+-])(\d{2})(?::?(\d{2}))?$/;function hre(e){const t={},n=e.split(bv.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],bv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(bv.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=bv.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function pre(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,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function mre(e,t){if(t===null)return new Date(NaN);const n=e.match(cre);if(!n)return new Date(NaN);const r=!!n[4],i=kh(n[1]),a=kh(n[2])-1,s=kh(n[3]),u=kh(n[4]),f=kh(n[5])-1;if(r)return wre(t,u,f)?yre(t,u,f):new Date(NaN);{const c=new Date(0);return!_re(t,a,s)||!xre(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,s)),c)}}function kh(e){return e?parseInt(e):1}function gre(e){const t=e.match(fre);if(!t)return NaN;const n=xx(t[1]),r=xx(t[2]),i=xx(t[3]);return Sre(n,r,i)?n*YE+r*iU+i*1e3:NaN}function xx(e){return e&&parseFloat(e.replace(",","."))||0}function vre(e){if(e==="Z")return 0;const t=e.match(dre);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Cre(r,i)?n*(r*YE+i*iU):NaN}function yre(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const bre=[31,null,31,30,31,30,31,31,30,31,30,31];function dU(e){return e%400===0||e%4===0&&e%100!==0}function _re(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bre[t]||(dU(e)?29:28))}function xre(e,t){return t>=1&&t<=(dU(e)?366:365)}function wre(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Sre(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cre(e,t){return t>=0&&t<=59}var Zv={exports:{}},Are=Zv.exports,AM;function Ore(){return AM||(AM=1,function(e,t){(function(n,r){e.exports=r()})(Are,()=>(()=>{var n={873:(s,u)=>{var f,c,p=function(){var m=function(Q,ne){var H=Q,B=C[ne],U=null,F=0,M=null,k=[],J={},W=function(K,se){U=function(de){for(var ve=new Array(de),he=0;he<de;he+=1){ve[he]=new Array(de);for(var xe=0;xe<de;xe+=1)ve[he][xe]=null}return ve}(F=4*H+17),ie(0,0),ie(F-7,0),ie(0,F-7),ce(),fe(),z(K,se),H>=7&&ye(K),M==null&&(M=ee(H,B,k)),q(M,se)},ie=function(K,se){for(var de=-1;de<=7;de+=1)if(!(K+de<=-1||F<=K+de))for(var ve=-1;ve<=7;ve+=1)se+ve<=-1||F<=se+ve||(U[K+de][se+ve]=0<=de&&de<=6&&(ve==0||ve==6)||0<=ve&&ve<=6&&(de==0||de==6)||2<=de&&de<=4&&2<=ve&&ve<=4)},fe=function(){for(var K=8;K<F-8;K+=1)U[K][6]==null&&(U[K][6]=K%2==0);for(var se=8;se<F-8;se+=1)U[6][se]==null&&(U[6][se]=se%2==0)},ce=function(){for(var K=O.getPatternPosition(H),se=0;se<K.length;se+=1)for(var de=0;de<K.length;de+=1){var ve=K[se],he=K[de];if(U[ve][he]==null)for(var xe=-2;xe<=2;xe+=1)for(var Oe=-2;Oe<=2;Oe+=1)U[ve+xe][he+Oe]=xe==-2||xe==2||Oe==-2||Oe==2||xe==0&&Oe==0}},ye=function(K){for(var se=O.getBCHTypeNumber(H),de=0;de<18;de+=1){var ve=!K&&(se>>de&1)==1;U[Math.floor(de/3)][de%3+F-8-3]=ve}for(de=0;de<18;de+=1)ve=!K&&(se>>de&1)==1,U[de%3+F-8-3][Math.floor(de/3)]=ve},z=function(K,se){for(var de=B<<3|se,ve=O.getBCHTypeInfo(de),he=0;he<15;he+=1){var xe=!K&&(ve>>he&1)==1;he<6?U[he][8]=xe:he<8?U[he+1][8]=xe:U[F-15+he][8]=xe}for(he=0;he<15;he+=1)xe=!K&&(ve>>he&1)==1,he<8?U[8][F-he-1]=xe:he<9?U[8][15-he-1+1]=xe:U[8][15-he-1]=xe;U[F-8][8]=!K},q=function(K,se){for(var de=-1,ve=F-1,he=7,xe=0,Oe=O.getMaskFunction(se),Le=F-1;Le>0;Le-=2)for(Le==6&&(Le-=1);;){for(var He=0;He<2;He+=1)if(U[ve][Le-He]==null){var Ue=!1;xe<K.length&&(Ue=(K[xe]>>>he&1)==1),Oe(ve,Le-He)&&(Ue=!Ue),U[ve][Le-He]=Ue,(he-=1)==-1&&(xe+=1,he=7)}if((ve+=de)<0||F<=ve){ve-=de,de=-de;break}}},ee=function(K,se,de){for(var ve=j.getRSBlocks(K,se),he=R(),xe=0;xe<de.length;xe+=1){var Oe=de[xe];he.put(Oe.getMode(),4),he.put(Oe.getLength(),O.getLengthInBits(Oe.getMode(),K)),Oe.write(he)}var Le=0;for(xe=0;xe<ve.length;xe+=1)Le+=ve[xe].dataCount;if(he.getLengthInBits()>8*Le)throw"code length overflow. ("+he.getLengthInBits()+">"+8*Le+")";for(he.getLengthInBits()+4<=8*Le&&he.put(0,4);he.getLengthInBits()%8!=0;)he.putBit(!1);for(;!(he.getLengthInBits()>=8*Le||(he.put(236,8),he.getLengthInBits()>=8*Le));)he.put(17,8);return function(He,Ue){for(var $e=0,_e=0,we=0,De=new Array(Ue.length),Ne=new Array(Ue.length),Te=0;Te<Ue.length;Te+=1){var Fe=Ue[Te].dataCount,Ge=Ue[Te].totalCount-Fe;_e=Math.max(_e,Fe),we=Math.max(we,Ge),De[Te]=new Array(Fe);for(var Qe=0;Qe<De[Te].length;Qe+=1)De[Te][Qe]=255&He.getBuffer()[Qe+$e];$e+=Fe;var ft=O.getErrorCorrectPolynomial(Ge),st=P(De[Te],ft.getLength()-1).mod(ft);for(Ne[Te]=new Array(ft.getLength()-1),Qe=0;Qe<Ne[Te].length;Qe+=1){var _t=Qe+st.getLength()-Ne[Te].length;Ne[Te][Qe]=_t>=0?st.getAt(_t):0}}var kt=0;for(Qe=0;Qe<Ue.length;Qe+=1)kt+=Ue[Qe].totalCount;var Ut=new Array(kt),Bt=0;for(Qe=0;Qe<_e;Qe+=1)for(Te=0;Te<Ue.length;Te+=1)Qe<De[Te].length&&(Ut[Bt]=De[Te][Qe],Bt+=1);for(Qe=0;Qe<we;Qe+=1)for(Te=0;Te<Ue.length;Te+=1)Qe<Ne[Te].length&&(Ut[Bt]=Ne[Te][Qe],Bt+=1);return Ut}(he,ve)};J.addData=function(K,se){var de=null;switch(se=se||"Byte"){case"Numeric":de=$(K);break;case"Alphanumeric":de=V(K);break;case"Byte":de=X(K);break;case"Kanji":de=Z(K);break;default:throw"mode:"+se}k.push(de),M=null},J.isDark=function(K,se){if(K<0||F<=K||se<0||F<=se)throw K+","+se;return U[K][se]},J.getModuleCount=function(){return F},J.make=function(){if(H<1){for(var K=1;K<40;K++){for(var se=j.getRSBlocks(K,B),de=R(),ve=0;ve<k.length;ve++){var he=k[ve];de.put(he.getMode(),4),de.put(he.getLength(),O.getLengthInBits(he.getMode(),K)),he.write(de)}var xe=0;for(ve=0;ve<se.length;ve++)xe+=se[ve].dataCount;if(de.getLengthInBits()<=8*xe)break}H=K}W(!1,function(){for(var Oe=0,Le=0,He=0;He<8;He+=1){W(!0,He);var Ue=O.getLostPoint(J);(He==0||Oe>Ue)&&(Oe=Ue,Le=He)}return Le}())},J.createTableTag=function(K,se){K=K||2;var de="";de+='<table style="',de+=" border-width: 0px; border-style: none;",de+=" border-collapse: collapse;",de+=" padding: 0px; margin: "+(se=se===void 0?4*K:se)+"px;",de+='">',de+="<tbody>";for(var ve=0;ve<J.getModuleCount();ve+=1){de+="<tr>";for(var he=0;he<J.getModuleCount();he+=1)de+='<td style="',de+=" border-width: 0px; border-style: none;",de+=" border-collapse: collapse;",de+=" padding: 0px; margin: 0px;",de+=" width: "+K+"px;",de+=" height: "+K+"px;",de+=" background-color: ",de+=J.isDark(ve,he)?"#000000":"#ffffff",de+=";",de+='"/>';de+="</tr>"}return(de+="</tbody>")+"</table>"},J.createSvgTag=function(K,se,de,ve){var he={};typeof arguments[0]=="object"&&(K=(he=arguments[0]).cellSize,se=he.margin,de=he.alt,ve=he.title),K=K||2,se=se===void 0?4*K:se,(de=typeof de=="string"?{text:de}:de||{}).text=de.text||null,de.id=de.text?de.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 xe,Oe,Le,He,Ue=J.getModuleCount()*K+2*se,$e="";for(He="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",$e+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',$e+=he.scalable?"":' width="'+Ue+'px" height="'+Ue+'px"',$e+=' viewBox="0 0 '+Ue+" "+Ue+'" ',$e+=' preserveAspectRatio="xMinYMin meet"',$e+=ve.text||de.text?' role="img" aria-labelledby="'+ue([ve.id,de.id].join(" ").trim())+'"':"",$e+=">",$e+=ve.text?'<title id="'+ue(ve.id)+'">'+ue(ve.text)+"</title>":"",$e+=de.text?'<description id="'+ue(de.id)+'">'+ue(de.text)+"</description>":"",$e+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',$e+='<path d="',Oe=0;Oe<J.getModuleCount();Oe+=1)for(Le=Oe*K+se,xe=0;xe<J.getModuleCount();xe+=1)J.isDark(Oe,xe)&&($e+="M"+(xe*K+se)+","+Le+He);return($e+='" stroke="transparent" fill="black"/>')+"</svg>"},J.createDataURL=function(K,se){K=K||2,se=se===void 0?4*K:se;var de=J.getModuleCount()*K+2*se,ve=se,he=de-se;return ae(de,de,function(xe,Oe){if(ve<=xe&&xe<he&&ve<=Oe&&Oe<he){var Le=Math.floor((xe-ve)/K),He=Math.floor((Oe-ve)/K);return J.isDark(He,Le)?0:1}return 1})},J.createImgTag=function(K,se,de){K=K||2,se=se===void 0?4*K:se;var ve=J.getModuleCount()*K+2*se,he="";return he+="<img",he+=' src="',he+=J.createDataURL(K,se),he+='"',he+=' width="',he+=ve,he+='"',he+=' height="',he+=ve,he+='"',de&&(he+=' alt="',he+=ue(de),he+='"'),he+"/>"};var ue=function(K){for(var se="",de=0;de<K.length;de+=1){var ve=K.charAt(de);switch(ve){case"<":se+="<";break;case">":se+=">";break;case"&":se+="&";break;case'"':se+=""";break;default:se+=ve}}return se};return J.createASCII=function(K,se){if((K=K||1)<2)return function(De){De=De===void 0?2:De;var Ne,Te,Fe,Ge,Qe,ft=1*J.getModuleCount()+2*De,st=De,_t=ft-De,kt={"██":"█","█ ":"▀"," █":"▄"," ":" "},Ut={"██":"▀","█ ":"▀"," █":" "," ":" "},Bt="";for(Ne=0;Ne<ft;Ne+=2){for(Fe=Math.floor((Ne-st)/1),Ge=Math.floor((Ne+1-st)/1),Te=0;Te<ft;Te+=1)Qe="█",st<=Te&&Te<_t&&st<=Ne&&Ne<_t&&J.isDark(Fe,Math.floor((Te-st)/1))&&(Qe=" "),st<=Te&&Te<_t&&st<=Ne+1&&Ne+1<_t&&J.isDark(Ge,Math.floor((Te-st)/1))?Qe+=" ":Qe+="█",Bt+=De<1&&Ne+1>=_t?Ut[Qe]:kt[Qe];Bt+=`
|
||
`}return ft%2&&De>0?Bt.substring(0,Bt.length-ft-1)+Array(ft+1).join("▀"):Bt.substring(0,Bt.length-1)}(se);K-=1,se=se===void 0?2*K:se;var de,ve,he,xe,Oe=J.getModuleCount()*K+2*se,Le=se,He=Oe-se,Ue=Array(K+1).join("██"),$e=Array(K+1).join(" "),_e="",we="";for(de=0;de<Oe;de+=1){for(he=Math.floor((de-Le)/K),we="",ve=0;ve<Oe;ve+=1)xe=1,Le<=ve&&ve<He&&Le<=de&&de<He&&J.isDark(he,Math.floor((ve-Le)/K))&&(xe=0),we+=xe?Ue:$e;for(he=0;he<K;he+=1)_e+=we+`
|
||
`}return _e.substring(0,_e.length-1)},J.renderTo2dContext=function(K,se){se=se||2;for(var de=J.getModuleCount(),ve=0;ve<de;ve++)for(var he=0;he<de;he++)K.fillStyle=J.isDark(ve,he)?"black":"white",K.fillRect(ve*se,he*se,se,se)},J};m.stringToBytes=(m.stringToBytesFuncs={default:function(Q){for(var ne=[],H=0;H<Q.length;H+=1){var B=Q.charCodeAt(H);ne.push(255&B)}return ne}}).default,m.createStringToBytes=function(Q,ne){var H=function(){for(var U=te(Q),F=function(){var fe=U.read();if(fe==-1)throw"eof";return fe},M=0,k={};;){var J=U.read();if(J==-1)break;var W=F(),ie=F()<<8|F();k[String.fromCharCode(J<<8|W)]=ie,M+=1}if(M!=ne)throw M+" != "+ne;return k}(),B=63;return function(U){for(var F=[],M=0;M<U.length;M+=1){var k=U.charCodeAt(M);if(k<128)F.push(k);else{var J=H[U.charAt(M)];typeof J=="number"?(255&J)==J?F.push(J):(F.push(J>>>8),F.push(255&J)):F.push(B)}}return F}};var v,x,w,_,S,C={L:1,M:0,Q:3,H:2},O=(v=[[],[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]],x=1335,w=7973,S=function(Q){for(var ne=0;Q!=0;)ne+=1,Q>>>=1;return ne},(_={}).getBCHTypeInfo=function(Q){for(var ne=Q<<10;S(ne)-S(x)>=0;)ne^=x<<S(ne)-S(x);return 21522^(Q<<10|ne)},_.getBCHTypeNumber=function(Q){for(var ne=Q<<12;S(ne)-S(w)>=0;)ne^=w<<S(ne)-S(w);return Q<<12|ne},_.getPatternPosition=function(Q){return v[Q-1]},_.getMaskFunction=function(Q){switch(Q){case 0:return function(ne,H){return(ne+H)%2==0};case 1:return function(ne,H){return ne%2==0};case 2:return function(ne,H){return H%3==0};case 3:return function(ne,H){return(ne+H)%3==0};case 4:return function(ne,H){return(Math.floor(ne/2)+Math.floor(H/3))%2==0};case 5:return function(ne,H){return ne*H%2+ne*H%3==0};case 6:return function(ne,H){return(ne*H%2+ne*H%3)%2==0};case 7:return function(ne,H){return(ne*H%3+(ne+H)%2)%2==0};default:throw"bad maskPattern:"+Q}},_.getErrorCorrectPolynomial=function(Q){for(var ne=P([1],0),H=0;H<Q;H+=1)ne=ne.multiply(P([1,T.gexp(H)],0));return ne},_.getLengthInBits=function(Q,ne){if(1<=ne&&ne<10)switch(Q){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+Q}else if(ne<27)switch(Q){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+Q}else{if(!(ne<41))throw"type:"+ne;switch(Q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+Q}}},_.getLostPoint=function(Q){for(var ne=Q.getModuleCount(),H=0,B=0;B<ne;B+=1)for(var U=0;U<ne;U+=1){for(var F=0,M=Q.isDark(B,U),k=-1;k<=1;k+=1)if(!(B+k<0||ne<=B+k))for(var J=-1;J<=1;J+=1)U+J<0||ne<=U+J||k==0&&J==0||M==Q.isDark(B+k,U+J)&&(F+=1);F>5&&(H+=3+F-5)}for(B=0;B<ne-1;B+=1)for(U=0;U<ne-1;U+=1){var W=0;Q.isDark(B,U)&&(W+=1),Q.isDark(B+1,U)&&(W+=1),Q.isDark(B,U+1)&&(W+=1),Q.isDark(B+1,U+1)&&(W+=1),W!=0&&W!=4||(H+=3)}for(B=0;B<ne;B+=1)for(U=0;U<ne-6;U+=1)Q.isDark(B,U)&&!Q.isDark(B,U+1)&&Q.isDark(B,U+2)&&Q.isDark(B,U+3)&&Q.isDark(B,U+4)&&!Q.isDark(B,U+5)&&Q.isDark(B,U+6)&&(H+=40);for(U=0;U<ne;U+=1)for(B=0;B<ne-6;B+=1)Q.isDark(B,U)&&!Q.isDark(B+1,U)&&Q.isDark(B+2,U)&&Q.isDark(B+3,U)&&Q.isDark(B+4,U)&&!Q.isDark(B+5,U)&&Q.isDark(B+6,U)&&(H+=40);var ie=0;for(U=0;U<ne;U+=1)for(B=0;B<ne;B+=1)Q.isDark(B,U)&&(ie+=1);return H+Math.abs(100*ie/ne/ne-50)/5*10},_),T=function(){for(var Q=new Array(256),ne=new Array(256),H=0;H<8;H+=1)Q[H]=1<<H;for(H=8;H<256;H+=1)Q[H]=Q[H-4]^Q[H-5]^Q[H-6]^Q[H-8];for(H=0;H<255;H+=1)ne[Q[H]]=H;return{glog:function(B){if(B<1)throw"glog("+B+")";return ne[B]},gexp:function(B){for(;B<0;)B+=255;for(;B>=256;)B-=255;return Q[B]}}}();function P(Q,ne){if(Q.length===void 0)throw Q.length+"/"+ne;var H=function(){for(var U=0;U<Q.length&&Q[U]==0;)U+=1;for(var F=new Array(Q.length-U+ne),M=0;M<Q.length-U;M+=1)F[M]=Q[M+U];return F}(),B={getAt:function(U){return H[U]},getLength:function(){return H.length},multiply:function(U){for(var F=new Array(B.getLength()+U.getLength()-1),M=0;M<B.getLength();M+=1)for(var k=0;k<U.getLength();k+=1)F[M+k]^=T.gexp(T.glog(B.getAt(M))+T.glog(U.getAt(k)));return P(F,0)},mod:function(U){if(B.getLength()-U.getLength()<0)return B;for(var F=T.glog(B.getAt(0))-T.glog(U.getAt(0)),M=new Array(B.getLength()),k=0;k<B.getLength();k+=1)M[k]=B.getAt(k);for(k=0;k<U.getLength();k+=1)M[k]^=T.gexp(T.glog(U.getAt(k))+F);return P(M,0).mod(U)}};return B}var j=function(){var Q=[[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]],ne=function(B,U){var F={};return F.totalCount=B,F.dataCount=U,F},H={getRSBlocks:function(B,U){var F=function(ye,z){switch(z){case C.L:return Q[4*(ye-1)+0];case C.M:return Q[4*(ye-1)+1];case C.Q:return Q[4*(ye-1)+2];case C.H:return Q[4*(ye-1)+3];default:return}}(B,U);if(F===void 0)throw"bad rs block @ typeNumber:"+B+"/errorCorrectionLevel:"+U;for(var M=F.length/3,k=[],J=0;J<M;J+=1)for(var W=F[3*J+0],ie=F[3*J+1],fe=F[3*J+2],ce=0;ce<W;ce+=1)k.push(ne(ie,fe));return k}};return H}(),R=function(){var Q=[],ne=0,H={getBuffer:function(){return Q},getAt:function(B){var U=Math.floor(B/8);return(Q[U]>>>7-B%8&1)==1},put:function(B,U){for(var F=0;F<U;F+=1)H.putBit((B>>>U-F-1&1)==1)},getLengthInBits:function(){return ne},putBit:function(B){var U=Math.floor(ne/8);Q.length<=U&&Q.push(0),B&&(Q[U]|=128>>>ne%8),ne+=1}};return H},$=function(Q){var ne=Q,H={getMode:function(){return 1},getLength:function(F){return ne.length},write:function(F){for(var M=ne,k=0;k+2<M.length;)F.put(B(M.substring(k,k+3)),10),k+=3;k<M.length&&(M.length-k==1?F.put(B(M.substring(k,k+1)),4):M.length-k==2&&F.put(B(M.substring(k,k+2)),7))}},B=function(F){for(var M=0,k=0;k<F.length;k+=1)M=10*M+U(F.charAt(k));return M},U=function(F){if("0"<=F&&F<="9")return F.charCodeAt(0)-48;throw"illegal char :"+F};return H},V=function(Q){var ne=Q,H={getMode:function(){return 2},getLength:function(U){return ne.length},write:function(U){for(var F=ne,M=0;M+1<F.length;)U.put(45*B(F.charAt(M))+B(F.charAt(M+1)),11),M+=2;M<F.length&&U.put(B(F.charAt(M)),6)}},B=function(U){if("0"<=U&&U<="9")return U.charCodeAt(0)-48;if("A"<=U&&U<="Z")return U.charCodeAt(0)-65+10;switch(U){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 :"+U}};return H},X=function(Q){var ne=m.stringToBytes(Q);return{getMode:function(){return 4},getLength:function(H){return ne.length},write:function(H){for(var B=0;B<ne.length;B+=1)H.put(ne[B],8)}}},Z=function(Q){var ne=m.stringToBytesFuncs.SJIS;if(!ne)throw"sjis not supported.";(function(){var U=ne("友");if(U.length!=2||(U[0]<<8|U[1])!=38726)throw"sjis not supported."})();var H=ne(Q),B={getMode:function(){return 8},getLength:function(U){return~~(H.length/2)},write:function(U){for(var F=H,M=0;M+1<F.length;){var k=(255&F[M])<<8|255&F[M+1];if(33088<=k&&k<=40956)k-=33088;else{if(!(57408<=k&&k<=60351))throw"illegal char at "+(M+1)+"/"+k;k-=49472}k=192*(k>>>8&255)+(255&k),U.put(k,13),M+=2}if(M<F.length)throw"illegal char at "+(M+1)}};return B},Y=function(){var Q=[],ne={writeByte:function(H){Q.push(255&H)},writeShort:function(H){ne.writeByte(H),ne.writeByte(H>>>8)},writeBytes:function(H,B,U){B=B||0,U=U||H.length;for(var F=0;F<U;F+=1)ne.writeByte(H[F+B])},writeString:function(H){for(var B=0;B<H.length;B+=1)ne.writeByte(H.charCodeAt(B))},toByteArray:function(){return Q},toString:function(){var H="";H+="[";for(var B=0;B<Q.length;B+=1)B>0&&(H+=","),H+=Q[B];return H+"]"}};return ne},te=function(Q){var ne=Q,H=0,B=0,U=0,F={read:function(){for(;U<8;){if(H>=ne.length){if(U==0)return-1;throw"unexpected end of file./"+U}var k=ne.charAt(H);if(H+=1,k=="=")return U=0,-1;k.match(/^\s$/)||(B=B<<6|M(k.charCodeAt(0)),U+=6)}var J=B>>>U-8&255;return U-=8,J}},M=function(k){if(65<=k&&k<=90)return k-65;if(97<=k&&k<=122)return k-97+26;if(48<=k&&k<=57)return k-48+52;if(k==43)return 62;if(k==47)return 63;throw"c:"+k};return F},ae=function(Q,ne,H){for(var B=function(ie,fe){var ce=ie,ye=fe,z=new Array(ie*fe),q={setPixel:function(K,se,de){z[se*ce+K]=de},write:function(K){K.writeString("GIF87a"),K.writeShort(ce),K.writeShort(ye),K.writeByte(128),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(255),K.writeByte(255),K.writeByte(255),K.writeString(","),K.writeShort(0),K.writeShort(0),K.writeShort(ce),K.writeShort(ye),K.writeByte(0);var se=ee(2);K.writeByte(2);for(var de=0;se.length-de>255;)K.writeByte(255),K.writeBytes(se,de,255),de+=255;K.writeByte(se.length-de),K.writeBytes(se,de,se.length-de),K.writeByte(0),K.writeString(";")}},ee=function(K){for(var se=1<<K,de=1+(1<<K),ve=K+1,he=ue(),xe=0;xe<se;xe+=1)he.add(String.fromCharCode(xe));he.add(String.fromCharCode(se)),he.add(String.fromCharCode(de));var Oe,Le,He,Ue=Y(),$e=(Oe=Ue,Le=0,He=0,{write:function(Ne,Te){if(Ne>>>Te)throw"length over";for(;Le+Te>=8;)Oe.writeByte(255&(Ne<<Le|He)),Te-=8-Le,Ne>>>=8-Le,He=0,Le=0;He|=Ne<<Le,Le+=Te},flush:function(){Le>0&&Oe.writeByte(He)}});$e.write(se,ve);var _e=0,we=String.fromCharCode(z[_e]);for(_e+=1;_e<z.length;){var De=String.fromCharCode(z[_e]);_e+=1,he.contains(we+De)?we+=De:($e.write(he.indexOf(we),ve),he.size()<4095&&(he.size()==1<<ve&&(ve+=1),he.add(we+De)),we=De)}return $e.write(he.indexOf(we),ve),$e.write(de,ve),$e.flush(),Ue.toByteArray()},ue=function(){var K={},se=0,de={add:function(ve){if(de.contains(ve))throw"dup key:"+ve;K[ve]=se,se+=1},size:function(){return se},indexOf:function(ve){return K[ve]},contains:function(ve){return K[ve]!==void 0}};return de};return q}(Q,ne),U=0;U<ne;U+=1)for(var F=0;F<Q;F+=1)B.setPixel(F,U,H(F,U));var M=Y();B.write(M);for(var k=function(){var ie=0,fe=0,ce=0,ye="",z={},q=function(ue){ye+=String.fromCharCode(ee(63&ue))},ee=function(ue){if(!(ue<0)){if(ue<26)return 65+ue;if(ue<52)return ue-26+97;if(ue<62)return ue-52+48;if(ue==62)return 43;if(ue==63)return 47}throw"n:"+ue};return z.writeByte=function(ue){for(ie=ie<<8|255&ue,fe+=8,ce+=1;fe>=6;)q(ie>>>fe-6),fe-=6},z.flush=function(){if(fe>0&&(q(ie<<6-fe),ie=0,fe=0),ce%3!=0)for(var ue=3-ce%3,K=0;K<ue;K+=1)ye+="="},z.toString=function(){return ye},z}(),J=M.toByteArray(),W=0;W<J.length;W+=1)k.writeByte(J[W]);return k.flush(),"data:image/gif;base64,"+k};return m}();p.stringToBytesFuncs["UTF-8"]=function(m){return function(v){for(var x=[],w=0;w<v.length;w++){var _=v.charCodeAt(w);_<128?x.push(_):_<2048?x.push(192|_>>6,128|63&_):_<55296||_>=57344?x.push(224|_>>12,128|_>>6&63,128|63&_):(w++,_=65536+((1023&_)<<10|1023&v.charCodeAt(w)),x.push(240|_>>18,128|_>>12&63,128|_>>6&63,128|63&_))}return x}(m)},(c=typeof(f=function(){return p})=="function"?f.apply(u,[]):f)===void 0||(s.exports=c)}},r={};function i(s){var u=r[s];if(u!==void 0)return u.exports;var f=r[s]={exports:{}};return n[s](f,f.exports,i),f.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 f in u)i.o(u,f)&&!i.o(s,f)&&Object.defineProperty(s,f,{enumerable:!0,get:u[f]})},i.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u);var a={};return(()=>{i.d(a,{default:()=>ne});const s=H=>!!H&&typeof H=="object"&&!Array.isArray(H);function u(H,...B){if(!B.length)return H;const U=B.shift();return U!==void 0&&s(H)&&s(U)?(H=Object.assign({},H),Object.keys(U).forEach(F=>{const M=H[F],k=U[F];Array.isArray(M)&&Array.isArray(k)?H[F]=k:s(M)&&s(k)?H[F]=u(Object.assign({},M),k):H[F]=k}),u(H,...B)):H}function f(H,B){const U=document.createElement("a");U.download=B,U.href=H,document.body.appendChild(U),U.click(),document.body.removeChild(U)}const c={L:.07,M:.15,Q:.25,H:.3};class p{constructor({svg:B,type:U,window:F}){this._svg=B,this._type=U,this._window=F}draw(B,U,F,M){let k;switch(this._type){case"dots":k=this._drawDot;break;case"classy":k=this._drawClassy;break;case"classy-rounded":k=this._drawClassyRounded;break;case"rounded":k=this._drawRounded;break;case"extra-rounded":k=this._drawExtraRounded;break;default:k=this._drawSquare}k.call(this,{x:B,y:U,size:F,getNeighbor:M})}_rotateFigure({x:B,y:U,size:F,rotation:M=0,draw:k}){var J;const W=B+F/2,ie=U+F/2;k(),(J=this._element)===null||J===void 0||J.setAttribute("transform",`rotate(${180*M/Math.PI},${W},${ie})`)}_basicDot(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(F+U/2)),this._element.setAttribute("cy",String(M+U/2)),this._element.setAttribute("r",String(U/2))}}))}_basicSquare(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(F)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(U)),this._element.setAttribute("height",String(U))}}))}_basicSideRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${U}h `+U/2+`a ${U/2} ${U/2}, 0, 0, 0, 0 ${-U}`)}}))}_basicCornerRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${U}h ${U}v `+-U/2+`a ${U/2} ${U/2}, 0, 0, 0, ${-U/2} ${-U/2}`)}}))}_basicCornerExtraRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${U}h ${U}a ${U} ${U}, 0, 0, 0, ${-U} ${-U}`)}}))}_basicCornersRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v `+U/2+`a ${U/2} ${U/2}, 0, 0, 0, ${U/2} ${U/2}h `+U/2+"v "+-U/2+`a ${U/2} ${U/2}, 0, 0, 0, ${-U/2} ${-U/2}`)}}))}_drawDot({x:B,y:U,size:F}){this._basicDot({x:B,y:U,size:F,rotation:0})}_drawSquare({x:B,y:U,size:F}){this._basicSquare({x:B,y:U,size:F,rotation:0})}_drawRounded({x:B,y:U,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,J=M?+M(1,0):0,W=M?+M(0,-1):0,ie=M?+M(0,1):0,fe=k+J+W+ie;if(fe!==0)if(fe>2||k&&J||W&&ie)this._basicSquare({x:B,y:U,size:F,rotation:0});else{if(fe===2){let ce=0;return k&&W?ce=Math.PI/2:W&&J?ce=Math.PI:J&&ie&&(ce=-Math.PI/2),void this._basicCornerRounded({x:B,y:U,size:F,rotation:ce})}if(fe===1){let ce=0;return W?ce=Math.PI/2:J?ce=Math.PI:ie&&(ce=-Math.PI/2),void this._basicSideRounded({x:B,y:U,size:F,rotation:ce})}}else this._basicDot({x:B,y:U,size:F,rotation:0})}_drawExtraRounded({x:B,y:U,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,J=M?+M(1,0):0,W=M?+M(0,-1):0,ie=M?+M(0,1):0,fe=k+J+W+ie;if(fe!==0)if(fe>2||k&&J||W&&ie)this._basicSquare({x:B,y:U,size:F,rotation:0});else{if(fe===2){let ce=0;return k&&W?ce=Math.PI/2:W&&J?ce=Math.PI:J&&ie&&(ce=-Math.PI/2),void this._basicCornerExtraRounded({x:B,y:U,size:F,rotation:ce})}if(fe===1){let ce=0;return W?ce=Math.PI/2:J?ce=Math.PI:ie&&(ce=-Math.PI/2),void this._basicSideRounded({x:B,y:U,size:F,rotation:ce})}}else this._basicDot({x:B,y:U,size:F,rotation:0})}_drawClassy({x:B,y:U,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,J=M?+M(1,0):0,W=M?+M(0,-1):0,ie=M?+M(0,1):0;k+J+W+ie!==0?k||W?J||ie?this._basicSquare({x:B,y:U,size:F,rotation:0}):this._basicCornerRounded({x:B,y:U,size:F,rotation:Math.PI/2}):this._basicCornerRounded({x:B,y:U,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:B,y:U,size:F,rotation:Math.PI/2})}_drawClassyRounded({x:B,y:U,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,J=M?+M(1,0):0,W=M?+M(0,-1):0,ie=M?+M(0,1):0;k+J+W+ie!==0?k||W?J||ie?this._basicSquare({x:B,y:U,size:F,rotation:0}):this._basicCornerExtraRounded({x:B,y:U,size:F,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:B,y:U,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:B,y:U,size:F,rotation:Math.PI/2})}}const m={dot:"dot",square:"square",extraRounded:"extra-rounded"},v=Object.values(m);class x{constructor({svg:B,type:U,window:F}){this._svg=B,this._type=U,this._window=F}draw(B,U,F,M){let k;switch(this._type){case m.square:k=this._drawSquare;break;case m.extraRounded:k=this._drawExtraRounded;break;default:k=this._drawDot}k.call(this,{x:B,y:U,size:F,rotation:M})}_rotateFigure({x:B,y:U,size:F,rotation:M=0,draw:k}){var J;const W=B+F/2,ie=U+F/2;k(),(J=this._element)===null||J===void 0||J.setAttribute("transform",`rotate(${180*M/Math.PI},${W},${ie})`)}_basicDot(B){const{size:U,x:F,y:M}=B,k=U/7;this._rotateFigure(Object.assign(Object.assign({},B),{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 ${F+U/2} ${M}a ${U/2} ${U/2} 0 1 0 0.1 0zm 0 ${k}a ${U/2-k} ${U/2-k} 0 1 1 -0.1 0Z`)}}))}_basicSquare(B){const{size:U,x:F,y:M}=B,k=U/7;this._rotateFigure(Object.assign(Object.assign({},B),{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 ${F} ${M}v ${U}h ${U}v `+-U+`zM ${F+k} ${M+k}h `+(U-2*k)+"v "+(U-2*k)+"h "+(2*k-U)+"z")}}))}_basicExtraRounded(B){const{size:U,x:F,y:M}=B,k=U/7;this._rotateFigure(Object.assign(Object.assign({},B),{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 ${F} ${M+2.5*k}v `+2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*k} ${2.5*k}h `+2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*k} ${2.5*-k}v `+-2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*-k} ${2.5*-k}h `+-2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*-k} ${2.5*k}M ${F+2.5*k} ${M+k}h `+2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*k} ${1.5*k}v `+2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*-k} ${1.5*k}h `+-2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*-k} ${1.5*-k}v `+-2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*k} ${1.5*-k}`)}}))}_drawDot({x:B,y:U,size:F,rotation:M}){this._basicDot({x:B,y:U,size:F,rotation:M})}_drawSquare({x:B,y:U,size:F,rotation:M}){this._basicSquare({x:B,y:U,size:F,rotation:M})}_drawExtraRounded({x:B,y:U,size:F,rotation:M}){this._basicExtraRounded({x:B,y:U,size:F,rotation:M})}}const w={dot:"dot",square:"square"},_=Object.values(w);class S{constructor({svg:B,type:U,window:F}){this._svg=B,this._type=U,this._window=F}draw(B,U,F,M){let k;k=this._type===w.square?this._drawSquare:this._drawDot,k.call(this,{x:B,y:U,size:F,rotation:M})}_rotateFigure({x:B,y:U,size:F,rotation:M=0,draw:k}){var J;const W=B+F/2,ie=U+F/2;k(),(J=this._element)===null||J===void 0||J.setAttribute("transform",`rotate(${180*M/Math.PI},${W},${ie})`)}_basicDot(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(F+U/2)),this._element.setAttribute("cy",String(M+U/2)),this._element.setAttribute("r",String(U/2))}}))}_basicSquare(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(F)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(U)),this._element.setAttribute("height",String(U))}}))}_drawDot({x:B,y:U,size:F,rotation:M}){this._basicDot({x:B,y:U,size:F,rotation:M})}_drawSquare({x:B,y:U,size:F,rotation:M}){this._basicSquare({x:B,y:U,size:F,rotation:M})}}const C="circle",O=[[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]],T=[[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 P{constructor(B,U){this._roundSize=F=>this._options.dotsOptions.roundSize?Math.floor(F):F,this._window=U,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(B.width)),this._element.setAttribute("height",String(B.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),B.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${B.width} ${B.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=B.image,this._instanceId=P.instanceCount++,this._options=B}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(B){const U=B.getModuleCount(),F=Math.min(this._options.width,this._options.height)-2*this._options.margin,M=this._options.shape===C?F/Math.sqrt(2):F,k=this._roundSize(M/U);let J={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=B,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:W,qrOptions:ie}=this._options,fe=W.imageSize*c[ie.errorCorrectionLevel],ce=Math.floor(fe*U*U);J=function({originalHeight:ye,originalWidth:z,maxHiddenDots:q,maxHiddenAxisDots:ee,dotSize:ue}){const K={x:0,y:0},se={x:0,y:0};if(ye<=0||z<=0||q<=0||ue<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const de=ye/z;return K.x=Math.floor(Math.sqrt(q/de)),K.x<=0&&(K.x=1),ee&&ee<K.x&&(K.x=ee),K.x%2==0&&K.x--,se.x=K.x*ue,K.y=1+2*Math.ceil((K.x*de-1)/2),se.y=Math.round(se.x*de),(K.y*K.x>q||ee&&ee<K.y)&&(ee&&ee<K.y?(K.y=ee,K.y%2==0&&K.x--):K.y-=2,se.y=K.y*ue,K.x=1+2*Math.ceil((K.y/de-1)/2),se.x=Math.round(se.y/de)),{height:se.y,width:se.x,hideYDots:K.y,hideXDots:K.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ce,maxHiddenAxisDots:U-14,dotSize:k})}this.drawBackground(),this.drawDots((W,ie)=>{var fe,ce,ye,z,q,ee;return!(this._options.imageOptions.hideBackgroundDots&&W>=(U-J.hideYDots)/2&&W<(U+J.hideYDots)/2&&ie>=(U-J.hideXDots)/2&&ie<(U+J.hideXDots)/2||!((fe=O[W])===null||fe===void 0)&&fe[ie]||!((ce=O[W-U+7])===null||ce===void 0)&&ce[ie]||!((ye=O[W])===null||ye===void 0)&&ye[ie-U+7]||!((z=T[W])===null||z===void 0)&&z[ie]||!((q=T[W-U+7])===null||q===void 0)&&q[ie]||!((ee=T[W])===null||ee===void 0)&&ee[ie-U+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:J.width,height:J.height,count:U,dotSize:k})}drawBackground(){var B,U,F;const M=this._element,k=this._options;if(M){const J=(B=k.backgroundOptions)===null||B===void 0?void 0:B.gradient,W=(U=k.backgroundOptions)===null||U===void 0?void 0:U.color;let ie=k.height,fe=k.width;if(J||W){const ce=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),!((F=k.backgroundOptions)===null||F===void 0)&&F.round&&(ie=fe=Math.min(k.width,k.height),ce.setAttribute("rx",String(ie/2*k.backgroundOptions.round))),ce.setAttribute("x",String(this._roundSize((k.width-fe)/2))),ce.setAttribute("y",String(this._roundSize((k.height-ie)/2))),ce.setAttribute("width",String(fe)),ce.setAttribute("height",String(ie)),this._backgroundClipPath.appendChild(ce),this._createColor({options:J,color:W,additionalRotation:0,x:0,y:0,height:k.height,width:k.width,name:`background-color-${this._instanceId}`})}}}drawDots(B){var U,F;if(!this._qr)throw"QR code is not defined";const M=this._options,k=this._qr.getModuleCount();if(k>M.width||k>M.height)throw"The canvas is too small.";const J=Math.min(M.width,M.height)-2*M.margin,W=M.shape===C?J/Math.sqrt(2):J,ie=this._roundSize(W/k),fe=this._roundSize((M.width-k*ie)/2),ce=this._roundSize((M.height-k*ie)/2),ye=new p({svg:this._element,type:M.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:(U=M.dotsOptions)===null||U===void 0?void 0:U.gradient,color:M.dotsOptions.color,additionalRotation:0,x:0,y:0,height:M.height,width:M.width,name:`dot-color-${this._instanceId}`});for(let z=0;z<k;z++)for(let q=0;q<k;q++)B&&!B(z,q)||!((F=this._qr)===null||F===void 0)&&F.isDark(z,q)&&(ye.draw(fe+q*ie,ce+z*ie,ie,(ee,ue)=>!(q+ee<0||z+ue<0||q+ee>=k||z+ue>=k)&&!(B&&!B(z+ue,q+ee))&&!!this._qr&&this._qr.isDark(z+ue,q+ee)),ye._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ye._element));if(M.shape===C){const z=this._roundSize((J/ie-k)/2),q=k+2*z,ee=fe-z*ie,ue=ce-z*ie,K=[],se=this._roundSize(q/2);for(let de=0;de<q;de++){K[de]=[];for(let ve=0;ve<q;ve++)de>=z-1&&de<=q-z&&ve>=z-1&&ve<=q-z||Math.sqrt((de-se)*(de-se)+(ve-se)*(ve-se))>se?K[de][ve]=0:K[de][ve]=this._qr.isDark(ve-2*z<0?ve:ve>=k?ve-2*z:ve-z,de-2*z<0?de:de>=k?de-2*z:de-z)?1:0}for(let de=0;de<q;de++)for(let ve=0;ve<q;ve++)K[de][ve]&&(ye.draw(ee+ve*ie,ue+de*ie,ie,(he,xe)=>{var Oe;return!!(!((Oe=K[de+xe])===null||Oe===void 0)&&Oe[ve+he])}),ye._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ye._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const B=this._element,U=this._options;if(!B)throw"Element code is not defined";const F=this._qr.getModuleCount(),M=Math.min(U.width,U.height)-2*U.margin,k=U.shape===C?M/Math.sqrt(2):M,J=this._roundSize(k/F),W=7*J,ie=3*J,fe=this._roundSize((U.width-F*J)/2),ce=this._roundSize((U.height-F*J)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ye,z,q])=>{var ee,ue,K,se,de,ve,he,xe,Oe,Le,He,Ue,$e,_e;const we=fe+ye*J*(F-7),De=ce+z*J*(F-7);let Ne=this._dotsClipPath,Te=this._dotsClipPath;if((!((ee=U.cornersSquareOptions)===null||ee===void 0)&&ee.gradient||!((ue=U.cornersSquareOptions)===null||ue===void 0)&&ue.color)&&(Ne=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ne.setAttribute("id",`clip-path-corners-square-color-${ye}-${z}-${this._instanceId}`),this._defs.appendChild(Ne),this._cornersSquareClipPath=this._cornersDotClipPath=Te=Ne,this._createColor({options:(K=U.cornersSquareOptions)===null||K===void 0?void 0:K.gradient,color:(se=U.cornersSquareOptions)===null||se===void 0?void 0:se.color,additionalRotation:q,x:we,y:De,height:W,width:W,name:`corners-square-color-${ye}-${z}-${this._instanceId}`})),((de=U.cornersSquareOptions)===null||de===void 0?void 0:de.type)&&v.includes(U.cornersSquareOptions.type)){const Fe=new x({svg:this._element,type:U.cornersSquareOptions.type,window:this._window});Fe.draw(we,De,W,q),Fe._element&&Ne&&Ne.appendChild(Fe._element)}else{const Fe=new p({svg:this._element,type:((ve=U.cornersSquareOptions)===null||ve===void 0?void 0:ve.type)||U.dotsOptions.type,window:this._window});for(let Ge=0;Ge<O.length;Ge++)for(let Qe=0;Qe<O[Ge].length;Qe++)!((he=O[Ge])===null||he===void 0)&&he[Qe]&&(Fe.draw(we+Qe*J,De+Ge*J,J,(ft,st)=>{var _t;return!!(!((_t=O[Ge+st])===null||_t===void 0)&&_t[Qe+ft])}),Fe._element&&Ne&&Ne.appendChild(Fe._element))}if((!((xe=U.cornersDotOptions)===null||xe===void 0)&&xe.gradient||!((Oe=U.cornersDotOptions)===null||Oe===void 0)&&Oe.color)&&(Te=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Te.setAttribute("id",`clip-path-corners-dot-color-${ye}-${z}-${this._instanceId}`),this._defs.appendChild(Te),this._cornersDotClipPath=Te,this._createColor({options:(Le=U.cornersDotOptions)===null||Le===void 0?void 0:Le.gradient,color:(He=U.cornersDotOptions)===null||He===void 0?void 0:He.color,additionalRotation:q,x:we+2*J,y:De+2*J,height:ie,width:ie,name:`corners-dot-color-${ye}-${z}-${this._instanceId}`})),((Ue=U.cornersDotOptions)===null||Ue===void 0?void 0:Ue.type)&&_.includes(U.cornersDotOptions.type)){const Fe=new S({svg:this._element,type:U.cornersDotOptions.type,window:this._window});Fe.draw(we+2*J,De+2*J,ie,q),Fe._element&&Te&&Te.appendChild(Fe._element)}else{const Fe=new p({svg:this._element,type:(($e=U.cornersDotOptions)===null||$e===void 0?void 0:$e.type)||U.dotsOptions.type,window:this._window});for(let Ge=0;Ge<T.length;Ge++)for(let Qe=0;Qe<T[Ge].length;Qe++)!((_e=T[Ge])===null||_e===void 0)&&_e[Qe]&&(Fe.draw(we+Qe*J,De+Ge*J,J,(ft,st)=>{var _t;return!!(!((_t=T[Ge+st])===null||_t===void 0)&&_t[Qe+ft])}),Fe._element&&Te&&Te.appendChild(Fe._element))}})}loadImage(){return new Promise((B,U)=>{var F;const M=this._options;if(!M.image)return U("Image is not defined");if(!((F=M.nodeCanvas)===null||F===void 0)&&F.loadImage)M.nodeCanvas.loadImage(M.image).then(k=>{var J,W;if(this._image=k,this._options.imageOptions.saveAsBlob){const ie=(J=M.nodeCanvas)===null||J===void 0?void 0:J.createCanvas(this._image.width,this._image.height);(W=ie==null?void 0:ie.getContext("2d"))===null||W===void 0||W.drawImage(k,0,0),this._imageUri=ie==null?void 0:ie.toDataURL()}B()}).catch(U);else{const k=new this._window.Image;typeof M.imageOptions.crossOrigin=="string"&&(k.crossOrigin=M.imageOptions.crossOrigin),this._image=k,k.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(J,W){return new Promise(ie=>{const fe=new W.XMLHttpRequest;fe.onload=function(){const ce=new W.FileReader;ce.onloadend=function(){ie(ce.result)},ce.readAsDataURL(fe.response)},fe.open("GET",J),fe.responseType="blob",fe.send()})}(M.image||"",this._window)),B()},k.src=M.image}})}async drawImage({width:B,height:U,count:F,dotSize:M}){const k=this._options,J=this._roundSize((k.width-F*M)/2),W=this._roundSize((k.height-F*M)/2),ie=J+this._roundSize(k.imageOptions.margin+(F*M-B)/2),fe=W+this._roundSize(k.imageOptions.margin+(F*M-U)/2),ce=B-2*k.imageOptions.margin,ye=U-2*k.imageOptions.margin,z=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");z.setAttribute("href",this._imageUri||""),z.setAttribute("xlink:href",this._imageUri||""),z.setAttribute("x",String(ie)),z.setAttribute("y",String(fe)),z.setAttribute("width",`${ce}px`),z.setAttribute("height",`${ye}px`),this._element.appendChild(z)}_createColor({options:B,color:U,additionalRotation:F,x:M,y:k,height:J,width:W,name:ie}){const fe=W>J?W:J,ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ce.setAttribute("x",String(M)),ce.setAttribute("y",String(k)),ce.setAttribute("height",String(J)),ce.setAttribute("width",String(W)),ce.setAttribute("clip-path",`url('#clip-path-${ie}')`),B){let ye;if(B.type==="radial")ye=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ye.setAttribute("id",ie),ye.setAttribute("gradientUnits","userSpaceOnUse"),ye.setAttribute("fx",String(M+W/2)),ye.setAttribute("fy",String(k+J/2)),ye.setAttribute("cx",String(M+W/2)),ye.setAttribute("cy",String(k+J/2)),ye.setAttribute("r",String(fe/2));else{const z=((B.rotation||0)+F)%(2*Math.PI),q=(z+2*Math.PI)%(2*Math.PI);let ee=M+W/2,ue=k+J/2,K=M+W/2,se=k+J/2;q>=0&&q<=.25*Math.PI||q>1.75*Math.PI&&q<=2*Math.PI?(ee-=W/2,ue-=J/2*Math.tan(z),K+=W/2,se+=J/2*Math.tan(z)):q>.25*Math.PI&&q<=.75*Math.PI?(ue-=J/2,ee-=W/2/Math.tan(z),se+=J/2,K+=W/2/Math.tan(z)):q>.75*Math.PI&&q<=1.25*Math.PI?(ee+=W/2,ue+=J/2*Math.tan(z),K-=W/2,se-=J/2*Math.tan(z)):q>1.25*Math.PI&&q<=1.75*Math.PI&&(ue+=J/2,ee+=W/2/Math.tan(z),se-=J/2,K-=W/2/Math.tan(z)),ye=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ye.setAttribute("id",ie),ye.setAttribute("gradientUnits","userSpaceOnUse"),ye.setAttribute("x1",String(Math.round(ee))),ye.setAttribute("y1",String(Math.round(ue))),ye.setAttribute("x2",String(Math.round(K))),ye.setAttribute("y2",String(Math.round(se)))}B.colorStops.forEach(({offset:z,color:q})=>{const ee=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");ee.setAttribute("offset",100*z+"%"),ee.setAttribute("stop-color",q),ye.appendChild(ee)}),ce.setAttribute("fill",`url('#${ie}')`),this._defs.appendChild(ye)}else U&&ce.setAttribute("fill",U);this._element.appendChild(ce)}}P.instanceCount=0;const j=P,R="canvas",$={};for(let H=0;H<=40;H++)$[H]=H;const V={type:R,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:$[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 X(H){const B=Object.assign({},H);if(!B.colorStops||!B.colorStops.length)throw"Field 'colorStops' is required in gradient";return B.rotation?B.rotation=Number(B.rotation):B.rotation=0,B.colorStops=B.colorStops.map(U=>Object.assign(Object.assign({},U),{offset:Number(U.offset)})),B}function Z(H){const B=Object.assign({},H);return B.width=Number(B.width),B.height=Number(B.height),B.margin=Number(B.margin),B.imageOptions=Object.assign(Object.assign({},B.imageOptions),{hideBackgroundDots:!!B.imageOptions.hideBackgroundDots,imageSize:Number(B.imageOptions.imageSize),margin:Number(B.imageOptions.margin)}),B.margin>Math.min(B.width,B.height)&&(B.margin=Math.min(B.width,B.height)),B.dotsOptions=Object.assign({},B.dotsOptions),B.dotsOptions.gradient&&(B.dotsOptions.gradient=X(B.dotsOptions.gradient)),B.cornersSquareOptions&&(B.cornersSquareOptions=Object.assign({},B.cornersSquareOptions),B.cornersSquareOptions.gradient&&(B.cornersSquareOptions.gradient=X(B.cornersSquareOptions.gradient))),B.cornersDotOptions&&(B.cornersDotOptions=Object.assign({},B.cornersDotOptions),B.cornersDotOptions.gradient&&(B.cornersDotOptions.gradient=X(B.cornersDotOptions.gradient))),B.backgroundOptions&&(B.backgroundOptions=Object.assign({},B.backgroundOptions),B.backgroundOptions.gradient&&(B.backgroundOptions.gradient=X(B.backgroundOptions.gradient))),B}var Y=i(873),te=i.n(Y);function ae(H){if(!H)throw new Error("Extension must be defined");H[0]==="."&&(H=H.substring(1));const B={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"}[H.toLowerCase()];if(!B)throw new Error(`Extension "${H}" is not supported`);return B}class Q{constructor(B){B!=null&&B.jsdom?this._window=new B.jsdom("",{resources:"usable"}).window:this._window=window,this._options=B?Z(u(V,B)):V,this.update()}static _clearContainer(B){B&&(B.innerHTML="")}_setupSvg(){if(!this._qr)return;const B=new j(this._options,this._window);this._svg=B.getElement(),this._svgDrawingPromise=B.drawQR(this._qr).then(()=>{var U;this._svg&&((U=this._extension)===null||U===void 0||U.call(this,B.getElement(),this._options))})}_setupCanvas(){var B,U;this._qr&&(!((B=this._options.nodeCanvas)===null||B===void 0)&&B.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=(U=this._svgDrawingPromise)===null||U===void 0?void 0:U.then(()=>{var F;if(!this._svg)return;const M=this._svg,k=new this._window.XMLSerializer().serializeToString(M),J=btoa(k),W=`data:${ae("svg")};base64,${J}`;if(!((F=this._options.nodeCanvas)===null||F===void 0)&&F.loadImage)return this._options.nodeCanvas.loadImage(W).then(ie=>{var fe,ce;ie.width=this._options.width,ie.height=this._options.height,(ce=(fe=this._nodeCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||ce===void 0||ce.drawImage(ie,0,0)});{const ie=new this._window.Image;return new Promise(fe=>{ie.onload=()=>{var ce,ye;(ye=(ce=this._domCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||ye===void 0||ye.drawImage(ie,0,0),fe()},ie.src=W})}}))}async _getElement(B="png"){if(!this._qr)throw"QR code is empty";return B.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(B){Q._clearContainer(this._container),this._options=B?Z(u(this._options,B)):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(U){switch(!0){case/^[0-9]*$/.test(U):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(U):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===R?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(B){if(B){if(typeof B.appendChild!="function")throw"Container should be a single DOM node";this._options.type===R?this._domCanvas&&B.appendChild(this._domCanvas):this._svg&&B.appendChild(this._svg),this._container=B}}applyExtension(B){if(!B)throw"Extension function should be defined.";this._extension=B,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(B="png"){if(!this._qr)throw"QR code is empty";const U=await this._getElement(B),F=ae(B);if(!U)return null;if(B.toLowerCase()==="svg"){const M=`<?xml version="1.0" standalone="no"?>\r
|
||
${new this._window.XMLSerializer().serializeToString(U)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(M):new Blob([M],{type:F})}return new Promise(M=>{const k=U;if("toBuffer"in k)if(F==="image/png")M(k.toBuffer(F));else if(F==="image/jpeg")M(k.toBuffer(F));else{if(F!=="application/pdf")throw Error("Unsupported extension");M(k.toBuffer(F))}else"toBlob"in k&&k.toBlob(M,F,1)})}async download(B){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let U="png",F="qr";typeof B=="string"?(U=B,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof B=="object"&&B!==null&&(B.name&&(F=B.name),B.extension&&(U=B.extension));const M=await this._getElement(U);if(M)if(U.toLowerCase()==="svg"){let k=new XMLSerializer().serializeToString(M);k=`<?xml version="1.0" standalone="no"?>\r
|
||
`+k,f(`data:${ae(U)};charset=utf-8,${encodeURIComponent(k)}`,`${F}.svg`)}else f(M.toDataURL(ae(U)),`${F}.${U}`)}}const ne=Q})(),a.default})())}(Zv)),Zv.exports}var Ere=Ore();const Tre=qt(Ere);/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const jre={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Pre={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},Rre="Left",Mre="Right",Nre="Up",Lre="Down",af={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},vA={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},OM="mousemove",EM="mouseup",Dre="touchend",kre="touchmove",Ire="touchstart";function Ure(e,t,n,r){return e>t?n>0?Mre:Rre:r>0?Lre:Nre}function TM(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 Bre(e,t){const n=p=>{const m="touches"in p;m&&p.touches.length>1||e((v,x)=>{x.trackMouse&&!m&&(document.addEventListener(OM,r),document.addEventListener(EM,s));const{clientX:w,clientY:_}=m?p.touches[0]:p,S=TM([w,_],x.rotationAngle);return x.onTouchStartOrOnMouseDown&&x.onTouchStartOrOnMouseDown({event:p}),Object.assign(Object.assign(Object.assign({},v),vA),{initial:S.slice(),xy:S,start:p.timeStamp||0})})},r=p=>{e((m,v)=>{const x="touches"in p;if(x&&p.touches.length>1)return m;if(p.timeStamp-m.start>v.swipeDuration)return m.swiping?Object.assign(Object.assign({},m),{swiping:!1}):m;const{clientX:w,clientY:_}=x?p.touches[0]:p,[S,C]=TM([w,_],v.rotationAngle),O=S-m.xy[0],T=C-m.xy[1],P=Math.abs(O),j=Math.abs(T),R=(p.timeStamp||0)-m.start,$=Math.sqrt(P*P+j*j)/(R||1),V=[O/(R||1),T/(R||1)],X=Ure(P,j,O,T),Z=typeof v.delta=="number"?v.delta:v.delta[X.toLowerCase()]||af.delta;if(P<Z&&j<Z&&!m.swiping)return m;const Y={absX:P,absY:j,deltaX:O,deltaY:T,dir:X,event:p,first:m.first,initial:m.initial,velocity:$,vxvy:V};Y.first&&v.onSwipeStart&&v.onSwipeStart(Y),v.onSwiping&&v.onSwiping(Y);let te=!1;return(v.onSwiping||v.onSwiped||v[`onSwiped${X}`])&&(te=!0),te&&v.preventScrollOnSwipe&&v.trackTouch&&p.cancelable&&p.preventDefault(),Object.assign(Object.assign({},m),{first:!1,eventData:Y,swiping:!0})})},i=p=>{e((m,v)=>{let x;if(m.swiping&&m.eventData){if(p.timeStamp-m.start<v.swipeDuration){x=Object.assign(Object.assign({},m.eventData),{event:p}),v.onSwiped&&v.onSwiped(x);const w=v[`onSwiped${x.dir}`];w&&w(x)}}else v.onTap&&v.onTap({event:p});return v.onTouchEndOrOnMouseUp&&v.onTouchEndOrOnMouseUp({event:p}),Object.assign(Object.assign(Object.assign({},m),vA),{eventData:x})})},a=()=>{document.removeEventListener(OM,r),document.removeEventListener(EM,s)},s=p=>{a(),i(p)},u=(p,m)=>{let v=()=>{};if(p&&p.addEventListener){const x=Object.assign(Object.assign({},af.touchEventOptions),m.touchEventOptions),w=[[Ire,n,x],[kre,r,Object.assign(Object.assign({},x),m.preventScrollOnSwipe?{passive:!1}:{})],[Dre,i,x]];w.forEach(([_,S,C])=>p.addEventListener(_,S,C)),v=()=>w.forEach(([_,S])=>p.removeEventListener(_,S))}return v},c={ref:p=>{p!==null&&e((m,v)=>{if(m.el===p)return m;const x={};return m.el&&m.el!==p&&m.cleanUpTouch&&(m.cleanUpTouch(),x.cleanUpTouch=void 0),v.trackTouch&&p&&(x.cleanUpTouch=u(p,v)),Object.assign(Object.assign(Object.assign({},m),{el:p}),x)})}};return t.trackMouse&&(c.onMouseDown=n),[c,u]}function zre(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 $re(e){const{trackMouse:t}=e,n=I.useRef(Object.assign({},vA)),r=I.useRef(Object.assign({},af)),i=I.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},af),e);let a;for(a in af)r.current[a]===void 0&&(r.current[a]=af[a]);const[s,u]=I.useMemo(()=>Bre(f=>n.current=f(n.current,r.current),{trackMouse:t}),[t]);return n.current=zre(n.current,r.current,i.current,u),s}function wx(e){return e==null?"":`${e}`}function Fre(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 ZE(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 qre(e={stringFormatter:ZE()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Vre(e={stringFormatter:ZE()}){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 Hre=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Gre(e){var t,n,r;const i=[];let a;for(;a=Hre.exec(e);)i.push((r=(t=a[3])!==null&&t!==void 0?t:(n=a[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:a[0]);return i}function jM(e,t,n){if(t in e){const a=e[t];return a===void 0?n:a}const r=Array.isArray(t)?t:Gre(t);let i=e;for(const a of r)if(i=i==null?void 0:i[a],i===void 0)return n;return i}function hU(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function yA(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var PM;(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"})(PM||(PM={}));class Wre{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||ZE(),i=Vre({stringFormatter:r}),a={header:r,undefined:wx,boolean:wx,number:Fre(),bigint:wx,string:r,symbol:qre({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},a),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=>jM(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const a=r.value;return{label:r.label||r.value,value:s=>jM(s,a,i)}}if(typeof r.value=="function"){const a=r.label||r.value.name||"",s={label:a,default:i},u=r.value;return{label:a,value(f){const c=u(f,s);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return yA(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(hU,[]),[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 yA(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 pU extends Wre{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(f=>{s.includes(f)||s.push(f)}),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(hU,[])}processData(t){return yA(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var or;(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"})(or||(or={}));or.QUOTATION_MARK+"",or.QUOTATION_MARK,or.REVERSE_SOLIDUS+"",or.REVERSE_SOLIDUS,or.SOLIDUS+"",or.SOLIDUS,or.LATIN_SMALL_LETTER_B+"",or.BACKSPACE,or.LATIN_SMALL_LETTER_F+"",or.FORM_FEED,or.LATIN_SMALL_LETTER_N+"",or.NEWLINE,or.LATIN_SMALL_LETTER_R+"",or.CARRIAGE_RETURN,or.LATIN_SMALL_LETTER_T+"",or.TAB;var RM;(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"})(RM||(RM={}));var MM;(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"})(MM||(MM={}));var NM;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(NM||(NM={}));var LM;(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"})(LM||(LM={}));var Sx,DM;function ri(){if(DM)return Sx;DM=1;var e=Array.isArray;return Sx=e,Sx}var Cx,kM;function mU(){if(kM)return Cx;kM=1;var e=typeof uv=="object"&&uv&&uv.Object===Object&&uv;return Cx=e,Cx}var Ax,IM;function so(){if(IM)return Ax;IM=1;var e=mU(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ax=n,Ax}var Ox,UM;function Tm(){if(UM)return Ox;UM=1;var e=so(),t=e.Symbol;return Ox=t,Ox}var Ex,BM;function Yre(){if(BM)return Ex;BM=1;var e=Tm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(s){var u=n.call(s,i),f=s[i];try{s[i]=void 0;var c=!0}catch{}var p=r.call(s);return c&&(u?s[i]=f:delete s[i]),p}return Ex=a,Ex}var Tx,zM;function Kre(){if(zM)return Tx;zM=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Tx=n,Tx}var jx,$M;function as(){if($M)return jx;$M=1;var e=Tm(),t=Yre(),n=Kre(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?i:r:a&&a in Object(u)?t(u):n(u)}return jx=s,jx}var Px,FM;function os(){if(FM)return Px;FM=1;function e(t){return t!=null&&typeof t=="object"}return Px=e,Px}var Rx,qM;function hd(){if(qM)return Rx;qM=1;var e=as(),t=os(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Rx=r,Rx}var Mx,VM;function XE(){if(VM)return Mx;VM=1;var e=ri(),t=hd(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return Mx=i,Mx}var Nx,HM;function Ml(){if(HM)return Nx;HM=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Nx=e,Nx}var Lx,GM;function QE(){if(GM)return Lx;GM=1;var e=as(),t=Ml(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(u){if(!t(u))return!1;var f=e(u);return f==r||f==i||f==n||f==a}return Lx=s,Lx}var Dx,WM;function Zre(){if(WM)return Dx;WM=1;var e=so(),t=e["__core-js_shared__"];return Dx=t,Dx}var kx,YM;function Xre(){if(YM)return kx;YM=1;var e=Zre(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return kx=n,kx}var Ix,KM;function gU(){if(KM)return Ix;KM=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Ix=n,Ix}var Ux,ZM;function Qre(){if(ZM)return Ux;ZM=1;var e=QE(),t=Xre(),n=Ml(),r=gU(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,f=s.toString,c=u.hasOwnProperty,p=RegExp("^"+f.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(v){if(!n(v)||t(v))return!1;var x=e(v)?p:a;return x.test(r(v))}return Ux=m,Ux}var Bx,XM;function Jre(){if(XM)return Bx;XM=1;function e(t,n){return t==null?void 0:t[n]}return Bx=e,Bx}var zx,QM;function Xu(){if(QM)return zx;QM=1;var e=Qre(),t=Jre();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return zx=n,zx}var $x,JM;function ab(){if(JM)return $x;JM=1;var e=Xu(),t=e(Object,"create");return $x=t,$x}var Fx,e6;function eie(){if(e6)return Fx;e6=1;var e=ab();function t(){this.__data__=e?e(null):{},this.size=0}return Fx=t,Fx}var qx,t6;function tie(){if(t6)return qx;t6=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return qx=e,qx}var Vx,n6;function nie(){if(n6)return Vx;n6=1;var e=ab(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var s=this.__data__;if(e){var u=s[a];return u===t?void 0:u}return r.call(s,a)?s[a]:void 0}return Vx=i,Vx}var Hx,r6;function rie(){if(r6)return Hx;r6=1;var e=ab(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return Hx=r,Hx}var Gx,i6;function iie(){if(i6)return Gx;i6=1;var e=ab(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return Gx=n,Gx}var Wx,a6;function aie(){if(a6)return Wx;a6=1;var e=eie(),t=tie(),n=nie(),r=rie(),i=iie();function a(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var c=s[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Wx=a,Wx}var Yx,o6;function oie(){if(o6)return Yx;o6=1;function e(){this.__data__=[],this.size=0}return Yx=e,Yx}var Kx,s6;function JE(){if(s6)return Kx;s6=1;function e(t,n){return t===n||t!==t&&n!==n}return Kx=e,Kx}var Zx,l6;function ob(){if(l6)return Zx;l6=1;var e=JE();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Zx=t,Zx}var Xx,u6;function sie(){if(u6)return Xx;u6=1;var e=ob(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var u=a.length-1;return s==u?a.pop():n.call(a,s,1),--this.size,!0}return Xx=r,Xx}var Qx,c6;function lie(){if(c6)return Qx;c6=1;var e=ob();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Qx=t,Qx}var Jx,f6;function uie(){if(f6)return Jx;f6=1;var e=ob();function t(n){return e(this.__data__,n)>-1}return Jx=t,Jx}var ew,d6;function cie(){if(d6)return ew;d6=1;var e=ob();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return ew=t,ew}var tw,h6;function sb(){if(h6)return tw;h6=1;var e=oie(),t=sie(),n=lie(),r=uie(),i=cie();function a(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var c=s[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,tw=a,tw}var nw,p6;function eT(){if(p6)return nw;p6=1;var e=Xu(),t=so(),n=e(t,"Map");return nw=n,nw}var rw,m6;function fie(){if(m6)return rw;m6=1;var e=aie(),t=sb(),n=eT();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return rw=r,rw}var iw,g6;function die(){if(g6)return iw;g6=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return iw=e,iw}var aw,v6;function lb(){if(v6)return aw;v6=1;var e=die();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return aw=t,aw}var ow,y6;function hie(){if(y6)return ow;y6=1;var e=lb();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return ow=t,ow}var sw,b6;function pie(){if(b6)return sw;b6=1;var e=lb();function t(n){return e(this,n).get(n)}return sw=t,sw}var lw,_6;function mie(){if(_6)return lw;_6=1;var e=lb();function t(n){return e(this,n).has(n)}return lw=t,lw}var uw,x6;function gie(){if(x6)return uw;x6=1;var e=lb();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return uw=t,uw}var cw,w6;function tT(){if(w6)return cw;w6=1;var e=fie(),t=hie(),n=pie(),r=mie(),i=gie();function a(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var c=s[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,cw=a,cw}var fw,S6;function vU(){if(S6)return fw;S6=1;var e=tT(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,u=i?i.apply(this,s):s[0],f=a.cache;if(f.has(u))return f.get(u);var c=r.apply(this,s);return a.cache=f.set(u,c)||f,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,fw=n,fw}var dw,C6;function vie(){if(C6)return dw;C6=1;var e=vU(),t=500;function n(r){var i=e(r,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return dw=n,dw}var hw,A6;function yie(){if(A6)return hw;A6=1;var e=vie(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,u,f,c){a.push(f?c.replace(n,"$1"):u||s)}),a});return hw=r,hw}var pw,O6;function nT(){if(O6)return pw;O6=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return pw=e,pw}var mw,E6;function bie(){if(E6)return mw;E6=1;var e=Tm(),t=nT(),n=ri(),r=hd(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return a?a.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return mw=s,mw}var gw,T6;function yU(){if(T6)return gw;T6=1;var e=bie();function t(n){return n==null?"":e(n)}return gw=t,gw}var vw,j6;function bU(){if(j6)return vw;j6=1;var e=ri(),t=XE(),n=yie(),r=yU();function i(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return vw=i,vw}var yw,P6;function ub(){if(P6)return yw;P6=1;var e=hd();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return yw=t,yw}var bw,R6;function rT(){if(R6)return bw;R6=1;var e=bU(),t=ub();function n(r,i){i=e(i,r);for(var a=0,s=i.length;r!=null&&a<s;)r=r[t(i[a++])];return a&&a==s?r:void 0}return bw=n,bw}var _w,M6;function _U(){if(M6)return _w;M6=1;var e=rT();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return _w=t,_w}var _ie=_U();const Ai=qt(_ie);var xw,N6;function xie(){if(N6)return xw;N6=1;function e(t){return t==null}return xw=e,xw}var wie=xie();const pt=qt(wie);var ww,L6;function Sie(){if(L6)return ww;L6=1;var e=as(),t=ri(),n=os(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return ww=i,ww}var Cie=Sie();const Fu=qt(Cie);var Aie=QE();const ht=qt(Aie);var Oie=Ml();const pd=qt(Oie);var Sw={exports:{}},Vt={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var D6;function Eie(){if(D6)return Vt;D6=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function _(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case e:switch(S=S.type,S){case n:case i:case r:case c:case p:return S;default:switch(S=S&&S.$$typeof,S){case u:case s:case f:case v:case m:case a:return S;default:return C}}case t:return C}}}return Vt.ContextConsumer=s,Vt.ContextProvider=a,Vt.Element=e,Vt.ForwardRef=f,Vt.Fragment=n,Vt.Lazy=v,Vt.Memo=m,Vt.Portal=t,Vt.Profiler=i,Vt.StrictMode=r,Vt.Suspense=c,Vt.SuspenseList=p,Vt.isAsyncMode=function(){return!1},Vt.isConcurrentMode=function(){return!1},Vt.isContextConsumer=function(S){return _(S)===s},Vt.isContextProvider=function(S){return _(S)===a},Vt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Vt.isForwardRef=function(S){return _(S)===f},Vt.isFragment=function(S){return _(S)===n},Vt.isLazy=function(S){return _(S)===v},Vt.isMemo=function(S){return _(S)===m},Vt.isPortal=function(S){return _(S)===t},Vt.isProfiler=function(S){return _(S)===i},Vt.isStrictMode=function(S){return _(S)===r},Vt.isSuspense=function(S){return _(S)===c},Vt.isSuspenseList=function(S){return _(S)===p},Vt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===c||S===p||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===m||S.$$typeof===a||S.$$typeof===s||S.$$typeof===f||S.$$typeof===w||S.getModuleId!==void 0)},Vt.typeOf=_,Vt}var k6;function Tie(){return k6||(k6=1,Sw.exports=Eie()),Sw.exports}var jie=Tie(),Cw,I6;function xU(){if(I6)return Cw;I6=1;var e=as(),t=os(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Cw=r,Cw}var Aw,U6;function Pie(){if(U6)return Aw;U6=1;var e=xU();function t(n){return e(n)&&n!=+n}return Aw=t,Aw}var Rie=Pie();const md=qt(Rie);var Mie=xU();const Nie=qt(Mie);var zr=function(t){return t===0?0:t>0?1:-1},Ou=function(t){return Fu(t)&&t.indexOf("%")===t.length-1},Ze=function(t){return Nie(t)&&!md(t)},Kn=function(t){return Ze(t)||Fu(t)},Lie=0,Nl=function(t){var n=++Lie;return"".concat(t||"").concat(n)},$r=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(!Ze(t)&&!Fu(t))return r;var a;if(Ou(t)){var s=t.indexOf("%");a=n*parseFloat(t.slice(0,s))/100}else a=+t;return md(a)&&(a=r),i&&a>n&&(a=n),a},ul=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Die=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},En=function(t,n){return Ze(t)&&Ze(n)?function(r){return t+r*(n-t)}:function(){return n}};function Sy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ai(r,t))===n})}var kie=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,a=0,s=0,u=1/0,f=-1/0,c=0,p=0,m=0;m<n;m++)c=t[m].cx||0,p=t[m].cy||0,r+=c,i+=p,a+=c*p,s+=c*c,u=Math.min(u,c),f=Math.max(f,c);var v=n*s!==r*r?(n*a-r*i)/(n*s-r*r):0;return{xmin:u,xmax:f,a:v,b:(i-v*r)/n}},Iie=function(t,n){return Ze(t)&&Ze(n)?t-n:Fu(t)&&Fu(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function mf(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 bA(e){"@babel/helpers - typeof";return bA=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},bA(e)}var Uie=["viewBox","children"],Bie=["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"],B6=["points","pathLength"],Ow={svg:Uie,polygon:B6,polyline:B6},iT=["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"],Cy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(I.isValidElement(t)&&(r=t.props),!pd(r))return null;var i={};return Object.keys(r).forEach(function(a){iT.includes(a)&&(i[a]=n||function(s){return r[a](r,s)})}),i},zie=function(t,n,r){return function(i){return t(n,r,i),null}},El=function(t,n,r){if(!pd(t)||bA(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var s=t[a];iT.includes(a)&&typeof s=="function"&&(i||(i={}),i[a]=zie(s,n,r))}),i},$ie=["children"],Fie=["children"];function z6(e,t){if(e==null)return{};var n=qie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _A(e){"@babel/helpers - typeof";return _A=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},_A(e)}var $6={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ho=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},F6=null,Ew=null,aT=function e(t){if(t===F6&&Array.isArray(Ew))return Ew;var n=[];return I.Children.forEach(t,function(r){pt(r)||(jie.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ew=n,F6=t,n};function Hr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ho(i)}):r=[Ho(t)],aT(e).forEach(function(i){var a=Ai(i,"type.displayName")||Ai(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function _i(e,t){var n=Hr(e,t);return n&&n[0]}var q6=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ze(r)||r<=0||!Ze(i)||i<=0)},Vie=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Hie=function(t){return t&&t.type&&Fu(t.type)&&Vie.indexOf(t.type)>=0},wU=function(t){return t&&_A(t)==="object"&&"clipDot"in t},Gie=function(t,n,r,i){var a,s=(a=Ow==null?void 0:Ow[i])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!ht(t)&&(i&&s.includes(n)||Bie.includes(n))||r&&iT.includes(n)},ot=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(I.isValidElement(t)&&(i=t.props),!pd(i))return null;var a={};return Object.keys(i).forEach(function(s){var u;Gie((u=i)===null||u===void 0?void 0:u[s],s,n,r)&&(a[s]=i[s])}),a},xA=function e(t,n){if(t===n)return!0;var r=I.Children.count(t);if(r!==I.Children.count(n))return!1;if(r===0)return!0;if(r===1)return V6(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],s=n[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!V6(a,s))return!1}return!0},V6=function(t,n){if(pt(t)&&pt(n))return!0;if(!pt(t)&&!pt(n)){var r=t.props||{},i=r.children,a=z6(r,$ie),s=n.props||{},u=s.children,f=z6(s,Fie);return i&&u?mf(a,f)&&xA(i,u):!i&&!u?mf(a,f):!1}return!1},H6=function(t,n){var r=[],i={};return aT(t).forEach(function(a,s){if(Hie(a))r.push(a);else if(a){var u=Ho(a.type),f=n[u]||{},c=f.handler,p=f.once;if(c&&(!p||!i[u])){var m=c(a,u,s);r.push(m),i[u]=!0}}}),r},Wie=function(t){var n=t&&t.type;return n&&$6[n]?$6[n]:null},Yie=function(t,n){return aT(n).indexOf(t)},Kie=["children","width","height","viewBox","className","style","title","desc"];function wA(){return wA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wA.apply(this,arguments)}function Zie(e,t){if(e==null)return{};var n=Xie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function SA(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,s=e.style,u=e.title,f=e.desc,c=Zie(e,Kie),p=i||{width:n,height:r,x:0,y:0},m=je("recharts-surface",a);return pe.createElement("svg",wA({},ot(c,!0,"svg"),{className:m,width:n,height:r,style:s,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),pe.createElement("title",null,u),pe.createElement("desc",null,f),t)}var Qie=["children","className"];function CA(){return CA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CA.apply(this,arguments)}function Jie(e,t){if(e==null)return{};var n=eae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var St=pe.forwardRef(function(e,t){var n=e.children,r=e.className,i=Jie(e,Qie),a=je("recharts-layer",r);return pe.createElement("g",CA({className:a},ot(i,!0),{ref:t}),n)}),pa=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]},Tw,G6;function tae(){if(G6)return Tw;G6=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(a);++i<a;)s[i]=t[i+n];return s}return Tw=e,Tw}var jw,W6;function nae(){if(W6)return jw;W6=1;var e=tae();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return jw=t,jw}var Pw,Y6;function SU(){if(Y6)return Pw;Y6=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",u=RegExp("["+s+e+i+a+"]");function f(c){return u.test(c)}return Pw=f,Pw}var Rw,K6;function rae(){if(K6)return Rw;K6=1;function e(t){return t.split("")}return Rw=e,Rw}var Mw,Z6;function iae(){if(Z6)return Mw;Z6=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",u="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+f+")",p="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",w=c+"?",_="["+a+"]?",S="(?:"+x+"(?:"+[p,m,v].join("|")+")"+_+w+")*",C=_+w+S,O="(?:"+[p+u+"?",u,m,v,s].join("|")+")",T=RegExp(f+"(?="+f+")|"+O+C,"g");function P(j){return j.match(T)||[]}return Mw=P,Mw}var Nw,X6;function aae(){if(X6)return Nw;X6=1;var e=rae(),t=SU(),n=iae();function r(i){return t(i)?n(i):e(i)}return Nw=r,Nw}var Lw,Q6;function oae(){if(Q6)return Lw;Q6=1;var e=nae(),t=SU(),n=aae(),r=yU();function i(a){return function(s){s=r(s);var u=t(s)?n(s):void 0,f=u?u[0]:s.charAt(0),c=u?e(u,1).join(""):s.slice(1);return f[a]()+c}}return Lw=i,Lw}var Dw,J6;function sae(){if(J6)return Dw;J6=1;var e=oae(),t=e("toUpperCase");return Dw=t,Dw}var lae=sae();const cb=qt(lae);function cn(e){return function(){return e}}const CU=Math.cos,Ay=Math.sin,Ca=Math.sqrt,Oy=Math.PI,fb=2*Oy,AA=Math.PI,OA=2*AA,bu=1e-6,uae=OA-bu;function AU(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function cae(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return AU;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class fae{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?AU:cae(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,a,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,f=r-t,c=i-n,p=s-t,m=u-n,v=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>bu)if(!(Math.abs(m*f-c*p)>bu)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-s,w=i-u,_=f*f+c*c,S=x*x+w*w,C=Math.sqrt(_),O=Math.sqrt(v),T=a*Math.tan((AA-Math.acos((_+v-S)/(2*C*O)))/2),P=T/O,j=T/C;Math.abs(P-1)>bu&&this._append`L${t+P*p},${n+P*m}`,this._append`A${a},${a},0,0,${+(m*x>p*w)},${this._x1=t+j*f},${this._y1=n+j*c}`}}arc(t,n,r,i,a,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),f=r*Math.sin(i),c=t+u,p=n+f,m=1^s,v=s?i-a:a-i;this._x1===null?this._append`M${c},${p}`:(Math.abs(this._x1-c)>bu||Math.abs(this._y1-p)>bu)&&this._append`L${c},${p}`,r&&(v<0&&(v=v%OA+OA),v>uae?this._append`A${r},${r},0,1,${m},${t-u},${n-f}A${r},${r},0,1,${m},${this._x1=c},${this._y1=p}`:v>bu&&this._append`A${r},${r},0,${+(v>=AA)},${m},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}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 oT(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 fae(t)}function sT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OU(e){this._context=e}OU.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 db(e){return new OU(e)}function EU(e){return e[0]}function TU(e){return e[1]}function jU(e,t){var n=cn(!0),r=null,i=db,a=null,s=oT(u);e=typeof e=="function"?e:e===void 0?EU:cn(e),t=typeof t=="function"?t:t===void 0?TU:cn(t);function u(f){var c,p=(f=sT(f)).length,m,v=!1,x;for(r==null&&(a=i(x=s())),c=0;c<=p;++c)!(c<p&&n(m=f[c],c,f))===v&&((v=!v)?a.lineStart():a.lineEnd()),v&&a.point(+e(m,c,f),+t(m,c,f));if(x)return a=null,x+""||null}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:cn(+f),u):e},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:cn(+f),u):t},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:cn(!!f),u):n},u.curve=function(f){return arguments.length?(i=f,r!=null&&(a=i(r)),u):i},u.context=function(f){return arguments.length?(f==null?r=a=null:a=i(r=f),u):r},u}function _v(e,t,n){var r=null,i=cn(!0),a=null,s=db,u=null,f=oT(c);e=typeof e=="function"?e:e===void 0?EU:cn(+e),t=typeof t=="function"?t:cn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?TU:cn(+n);function c(m){var v,x,w,_=(m=sT(m)).length,S,C=!1,O,T=new Array(_),P=new Array(_);for(a==null&&(u=s(O=f())),v=0;v<=_;++v){if(!(v<_&&i(S=m[v],v,m))===C)if(C=!C)x=v,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),w=v-1;w>=x;--w)u.point(T[w],P[w]);u.lineEnd(),u.areaEnd()}C&&(T[v]=+e(S,v,m),P[v]=+t(S,v,m),u.point(r?+r(S,v,m):T[v],n?+n(S,v,m):P[v]))}if(O)return u=null,O+""||null}function p(){return jU().defined(i).curve(s).context(a)}return c.x=function(m){return arguments.length?(e=typeof m=="function"?m:cn(+m),r=null,c):e},c.x0=function(m){return arguments.length?(e=typeof m=="function"?m:cn(+m),c):e},c.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:cn(+m),c):r},c.y=function(m){return arguments.length?(t=typeof m=="function"?m:cn(+m),n=null,c):t},c.y0=function(m){return arguments.length?(t=typeof m=="function"?m:cn(+m),c):t},c.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:cn(+m),c):n},c.lineX0=c.lineY0=function(){return p().x(e).y(t)},c.lineY1=function(){return p().x(e).y(n)},c.lineX1=function(){return p().x(r).y(t)},c.defined=function(m){return arguments.length?(i=typeof m=="function"?m:cn(!!m),c):i},c.curve=function(m){return arguments.length?(s=m,a!=null&&(u=s(a)),c):s},c.context=function(m){return arguments.length?(m==null?a=u=null:u=s(a=m),c):a},c}class PU{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 dae(e){return new PU(e,!0)}function hae(e){return new PU(e,!1)}const lT={draw(e,t){const n=Ca(t/Oy);e.moveTo(n,0),e.arc(0,0,n,0,fb)}},pae={draw(e,t){const n=Ca(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()}},RU=Ca(1/3),mae=RU*2,gae={draw(e,t){const n=Ca(t/mae),r=n*RU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},vae={draw(e,t){const n=Ca(t),r=-n/2;e.rect(r,r,n,n)}},yae=.8908130915292852,MU=Ay(Oy/10)/Ay(7*Oy/10),bae=Ay(fb/10)*MU,_ae=-CU(fb/10)*MU,xae={draw(e,t){const n=Ca(t*yae),r=bae*n,i=_ae*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const s=fb*a/5,u=CU(s),f=Ay(s);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*i,f*r+u*i)}e.closePath()}},kw=Ca(3),wae={draw(e,t){const n=-Ca(t/(kw*3));e.moveTo(0,n*2),e.lineTo(-kw*n,-n),e.lineTo(kw*n,-n),e.closePath()}},qi=-.5,Vi=Ca(3)/2,EA=1/Ca(12),Sae=(EA/2+1)*3,Cae={draw(e,t){const n=Ca(t/Sae),r=n/2,i=n*EA,a=r,s=n*EA+n,u=-a,f=s;e.moveTo(r,i),e.lineTo(a,s),e.lineTo(u,f),e.lineTo(qi*r-Vi*i,Vi*r+qi*i),e.lineTo(qi*a-Vi*s,Vi*a+qi*s),e.lineTo(qi*u-Vi*f,Vi*u+qi*f),e.lineTo(qi*r+Vi*i,qi*i-Vi*r),e.lineTo(qi*a+Vi*s,qi*s-Vi*a),e.lineTo(qi*u+Vi*f,qi*f-Vi*u),e.closePath()}};function Aae(e,t){let n=null,r=oT(i);e=typeof e=="function"?e:cn(e||lT),t=typeof t=="function"?t:cn(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:cn(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:cn(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Ey(){}function Ty(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 NU(e){this._context=e}NU.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:Ty(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:Ty(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oae(e){return new NU(e)}function LU(e){this._context=e}LU.prototype={areaStart:Ey,areaEnd:Ey,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:Ty(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Eae(e){return new LU(e)}function DU(e){this._context=e}DU.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:Ty(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tae(e){return new DU(e)}function kU(e){this._context=e}kU.prototype={areaStart:Ey,areaEnd:Ey,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 jae(e){return new kU(e)}function e5(e){return e<0?-1:1}function t5(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),u=(a*i+s*r)/(r+i);return(e5(a)+e5(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function n5(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Iw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,s-u*n,a,s)}function jy(e){this._context=e}jy.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:Iw(this,this._t0,n5(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,Iw(this,n5(this,n=t5(this,e,t)),n);break;default:Iw(this,this._t0,n=t5(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function IU(e){this._context=new UU(e)}(IU.prototype=Object.create(jy.prototype)).point=function(e,t){jy.prototype.point.call(this,t,e)};function UU(e){this._context=e}UU.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Pae(e){return new jy(e)}function Rae(e){return new IU(e)}function BU(e){this._context=e}BU.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=r5(e),i=r5(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],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 r5(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),s=new Array(n);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Mae(e){return new BU(e)}function hb(e,t){this._context=e,this._t=t}hb.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 Nae(e){return new hb(e,.5)}function Lae(e){return new hb(e,0)}function Dae(e){return new hb(e,1)}function Of(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,u=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function TA(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function kae(e,t){return e[t]}function Iae(e){const t=[];return t.key=e,t}function Uae(){var e=cn([]),t=TA,n=Of,r=kae;function i(a){var s=Array.from(e.apply(this,arguments),Iae),u,f=s.length,c=-1,p;for(const m of a)for(u=0,++c;u<f;++u)(s[u][c]=[0,+r(m,s[u].key,c,a)]).data=m;for(u=0,p=sT(t(s));u<f;++u)s[p[u]].index=u;return n(s,p),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:cn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:cn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?TA:typeof a=="function"?a:cn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Of,i):n},i}function Bae(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,s;i<a;++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}Of(e,t)}}function zae(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var s=0,u=0;s<i;++s)u+=e[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}Of(e,t)}}function $ae(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,s;r<a;++r){for(var u=0,f=0,c=0;u<s;++u){for(var p=e[t[u]],m=p[r][1]||0,v=p[r-1][1]||0,x=(m-v)/2,w=0;w<u;++w){var _=e[t[w]],S=_[r][1]||0,C=_[r-1][1]||0;x+=S-C}f+=m,c+=x*m}i[r-1][1]+=i[r-1][0]=n,f&&(n-=c/f)}i[r-1][1]+=i[r-1][0]=n,Of(e,t)}}function Rp(e){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}var Fae=["type","size","sizeType"];function jA(){return jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jA.apply(this,arguments)}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){qae(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 qae(e,t,n){return t=Vae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vae(e){var t=Hae(e,"string");return Rp(t)=="symbol"?t:t+""}function Hae(e,t){if(Rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gae(e,t){if(e==null)return{};var n=Wae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var zU={symbolCircle:lT,symbolCross:pae,symbolDiamond:gae,symbolSquare:vae,symbolStar:xae,symbolTriangle:wae,symbolWye:Cae},Yae=Math.PI/180,Kae=function(t){var n="symbol".concat(cb(t));return zU[n]||lT},Zae=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Yae;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Xae=function(t,n){zU["symbol".concat(cb(t))]=n},pb=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,s=t.sizeType,u=s===void 0?"area":s,f=Gae(t,Fae),c=a5(a5({},f),{},{type:r,size:a,sizeType:u}),p=function(){var S=Kae(r),C=Aae().type(S).size(Zae(a,u,r));return C()},m=c.className,v=c.cx,x=c.cy,w=ot(c,!0);return v===+v&&x===+x&&a===+a?pe.createElement("path",jA({},w,{className:je("recharts-symbols",m),transform:"translate(".concat(v,", ").concat(x,")"),d:p()})):null};pb.registerSymbol=Xae;function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function PA(){return PA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PA.apply(this,arguments)}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 Qae(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){Mp(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 Jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eoe(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,FU(r.key),r)}}function toe(e,t,n){return t&&eoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function noe(e,t,n){return t=Py(t),roe(e,$U()?Reflect.construct(t,n||[],Py(e).constructor):t.apply(e,n))}function roe(e,t){if(t&&(Ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ioe(e)}function ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($U=function(){return!!e})()}function Py(e){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Py(e)}function aoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RA(e,t)}function RA(e,t){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RA(e,t)}function Mp(e,t,n){return t=FU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FU(e){var t=ooe(e,"string");return Ef(t)=="symbol"?t:t+""}function ooe(e,t){if(Ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var la=32,uT=function(e){function t(){return Jae(this,t),noe(this,t,arguments)}return aoe(t,e),toe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=la/2,s=la/6,u=la/3,f=r.inactive?i:r.color;if(r.type==="plainline")return pe.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:la,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return pe.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(a,"h").concat(u,`
|
||
A`).concat(s,",").concat(s,",0,1,1,").concat(2*u,",").concat(a,`
|
||
H`).concat(la,"M").concat(2*u,",").concat(a,`
|
||
A`).concat(s,",").concat(s,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return pe.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(la/8,"h").concat(la,"v").concat(la*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(pe.isValidElement(r.legendIcon)){var c=Qae({},r);return delete c.legendIcon,pe.cloneElement(r.legendIcon,c)}return pe.createElement(pb,{fill:f,cx:a,cy:a,size:la,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,s=i.iconSize,u=i.layout,f=i.formatter,c=i.inactiveColor,p={x:0,y:0,width:la,height:la},m={display:u==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(x,w){var _=x.formatter||f,S=je(Mp(Mp({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",x.inactive));if(x.type==="none")return null;var C=ht(x.value)?null:x.value;pa(!ht(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var O=x.inactive?c:x.color;return pe.createElement("li",PA({className:S,style:m,key:"legend-item-".concat(w)},El(r.props,x,w)),pe.createElement(SA,{width:s,height:s,viewBox:p,style:v},r.renderIcon(x)),pe.createElement("span",{className:"recharts-legend-item-text",style:{color:O}},_?_(C,x,w):C))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,s=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?s:"left"};return pe.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(I.PureComponent);Mp(uT,"displayName","Legend");Mp(uT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Uw,s5;function soe(){if(s5)return Uw;s5=1;var e=sb();function t(){this.__data__=new e,this.size=0}return Uw=t,Uw}var Bw,l5;function loe(){if(l5)return Bw;l5=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Bw=e,Bw}var zw,u5;function uoe(){if(u5)return zw;u5=1;function e(t){return this.__data__.get(t)}return zw=e,zw}var $w,c5;function coe(){if(c5)return $w;c5=1;function e(t){return this.__data__.has(t)}return $w=e,$w}var Fw,f5;function foe(){if(f5)return Fw;f5=1;var e=sb(),t=eT(),n=tT(),r=200;function i(a,s){var u=this.__data__;if(u instanceof e){var f=u.__data__;if(!t||f.length<r-1)return f.push([a,s]),this.size=++u.size,this;u=this.__data__=new n(f)}return u.set(a,s),this.size=u.size,this}return Fw=i,Fw}var qw,d5;function qU(){if(d5)return qw;d5=1;var e=sb(),t=soe(),n=loe(),r=uoe(),i=coe(),a=foe();function s(u){var f=this.__data__=new e(u);this.size=f.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=a,qw=s,qw}var Vw,h5;function doe(){if(h5)return Vw;h5=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Vw=t,Vw}var Hw,p5;function hoe(){if(p5)return Hw;p5=1;function e(t){return this.__data__.has(t)}return Hw=e,Hw}var Gw,m5;function VU(){if(m5)return Gw;m5=1;var e=tT(),t=doe(),n=hoe();function r(i){var a=-1,s=i==null?0:i.length;for(this.__data__=new e;++a<s;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Gw=r,Gw}var Ww,g5;function HU(){if(g5)return Ww;g5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Ww=e,Ww}var Yw,v5;function GU(){if(v5)return Yw;v5=1;function e(t,n){return t.has(n)}return Yw=e,Yw}var Kw,y5;function WU(){if(y5)return Kw;y5=1;var e=VU(),t=HU(),n=GU(),r=1,i=2;function a(s,u,f,c,p,m){var v=f&r,x=s.length,w=u.length;if(x!=w&&!(v&&w>x))return!1;var _=m.get(s),S=m.get(u);if(_&&S)return _==u&&S==s;var C=-1,O=!0,T=f&i?new e:void 0;for(m.set(s,u),m.set(u,s);++C<x;){var P=s[C],j=u[C];if(c)var R=v?c(j,P,C,u,s,m):c(P,j,C,s,u,m);if(R!==void 0){if(R)continue;O=!1;break}if(T){if(!t(u,function($,V){if(!n(T,V)&&(P===$||p(P,$,f,c,m)))return T.push(V)})){O=!1;break}}else if(!(P===j||p(P,j,f,c,m))){O=!1;break}}return m.delete(s),m.delete(u),O}return Kw=a,Kw}var Zw,b5;function poe(){if(b5)return Zw;b5=1;var e=so(),t=e.Uint8Array;return Zw=t,Zw}var Xw,_5;function moe(){if(_5)return Xw;_5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return Xw=e,Xw}var Qw,x5;function cT(){if(x5)return Qw;x5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Qw=e,Qw}var Jw,w5;function goe(){if(w5)return Jw;w5=1;var e=Tm(),t=poe(),n=JE(),r=WU(),i=moe(),a=cT(),s=1,u=2,f="[object Boolean]",c="[object Date]",p="[object Error]",m="[object Map]",v="[object Number]",x="[object RegExp]",w="[object Set]",_="[object String]",S="[object Symbol]",C="[object ArrayBuffer]",O="[object DataView]",T=e?e.prototype:void 0,P=T?T.valueOf:void 0;function j(R,$,V,X,Z,Y,te){switch(V){case O:if(R.byteLength!=$.byteLength||R.byteOffset!=$.byteOffset)return!1;R=R.buffer,$=$.buffer;case C:return!(R.byteLength!=$.byteLength||!Y(new t(R),new t($)));case f:case c:case v:return n(+R,+$);case p:return R.name==$.name&&R.message==$.message;case x:case _:return R==$+"";case m:var ae=i;case w:var Q=X&s;if(ae||(ae=a),R.size!=$.size&&!Q)return!1;var ne=te.get(R);if(ne)return ne==$;X|=u,te.set(R,$);var H=r(ae(R),ae($),X,Z,Y,te);return te.delete(R),H;case S:if(P)return P.call(R)==P.call($)}return!1}return Jw=j,Jw}var e2,S5;function YU(){if(S5)return e2;S5=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return e2=e,e2}var t2,C5;function voe(){if(C5)return t2;C5=1;var e=YU(),t=ri();function n(r,i,a){var s=i(r);return t(r)?s:e(s,a(r))}return t2=n,t2}var n2,A5;function yoe(){if(A5)return n2;A5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,s=[];++r<i;){var u=t[r];n(u,r,t)&&(s[a++]=u)}return s}return n2=e,n2}var r2,O5;function boe(){if(O5)return r2;O5=1;function e(){return[]}return r2=e,r2}var i2,E5;function _oe(){if(E5)return i2;E5=1;var e=yoe(),t=boe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(u){return r.call(s,u)}))}:t;return i2=a,i2}var a2,T5;function xoe(){if(T5)return a2;T5=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return a2=e,a2}var o2,j5;function woe(){if(j5)return o2;j5=1;var e=as(),t=os(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return o2=r,o2}var s2,P5;function fT(){if(P5)return s2;P5=1;var e=woe(),t=os(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return s2=a,s2}var Jh={exports:{}},l2,R5;function Soe(){if(R5)return l2;R5=1;function e(){return!1}return l2=e,l2}Jh.exports;var M5;function KU(){return M5||(M5=1,function(e,t){var n=so(),r=Soe(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,f=u?u.isBuffer:void 0,c=f||r;e.exports=c}(Jh,Jh.exports)),Jh.exports}var u2,N5;function dT(){if(N5)return u2;N5=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return u2=n,u2}var c2,L5;function hT(){if(L5)return c2;L5=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return c2=t,c2}var f2,D5;function Coe(){if(D5)return f2;D5=1;var e=as(),t=hT(),n=os(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",f="[object Function]",c="[object Map]",p="[object Number]",m="[object Object]",v="[object RegExp]",x="[object Set]",w="[object String]",_="[object WeakMap]",S="[object ArrayBuffer]",C="[object DataView]",O="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",$="[object Uint8Array]",V="[object Uint8ClampedArray]",X="[object Uint16Array]",Z="[object Uint32Array]",Y={};Y[O]=Y[T]=Y[P]=Y[j]=Y[R]=Y[$]=Y[V]=Y[X]=Y[Z]=!0,Y[r]=Y[i]=Y[S]=Y[a]=Y[C]=Y[s]=Y[u]=Y[f]=Y[c]=Y[p]=Y[m]=Y[v]=Y[x]=Y[w]=Y[_]=!1;function te(ae){return n(ae)&&t(ae.length)&&!!Y[e(ae)]}return f2=te,f2}var d2,k5;function ZU(){if(k5)return d2;k5=1;function e(t){return function(n){return t(n)}}return d2=e,d2}var ep={exports:{}};ep.exports;var I5;function Aoe(){return I5||(I5=1,function(e,t){var n=mU(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(ep,ep.exports)),ep.exports}var h2,U5;function XU(){if(U5)return h2;U5=1;var e=Coe(),t=ZU(),n=Aoe(),r=n&&n.isTypedArray,i=r?t(r):e;return h2=i,h2}var p2,B5;function Ooe(){if(B5)return p2;B5=1;var e=xoe(),t=fT(),n=ri(),r=KU(),i=dT(),a=XU(),s=Object.prototype,u=s.hasOwnProperty;function f(c,p){var m=n(c),v=!m&&t(c),x=!m&&!v&&r(c),w=!m&&!v&&!x&&a(c),_=m||v||x||w,S=_?e(c.length,String):[],C=S.length;for(var O in c)(p||u.call(c,O))&&!(_&&(O=="length"||x&&(O=="offset"||O=="parent")||w&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||i(O,C)))&&S.push(O);return S}return p2=f,p2}var m2,z5;function Eoe(){if(z5)return m2;z5=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return m2=t,m2}var g2,$5;function QU(){if($5)return g2;$5=1;function e(t,n){return function(r){return t(n(r))}}return g2=e,g2}var v2,F5;function Toe(){if(F5)return v2;F5=1;var e=QU(),t=e(Object.keys,Object);return v2=t,v2}var y2,q5;function joe(){if(q5)return y2;q5=1;var e=Eoe(),t=Toe(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var s=[];for(var u in Object(a))r.call(a,u)&&u!="constructor"&&s.push(u);return s}return y2=i,y2}var b2,V5;function jm(){if(V5)return b2;V5=1;var e=QE(),t=hT();function n(r){return r!=null&&t(r.length)&&!e(r)}return b2=n,b2}var _2,H5;function mb(){if(H5)return _2;H5=1;var e=Ooe(),t=joe(),n=jm();function r(i){return n(i)?e(i):t(i)}return _2=r,_2}var x2,G5;function Poe(){if(G5)return x2;G5=1;var e=voe(),t=_oe(),n=mb();function r(i){return e(i,n,t)}return x2=r,x2}var w2,W5;function Roe(){if(W5)return w2;W5=1;var e=Poe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,s,u,f,c,p){var m=u&t,v=e(a),x=v.length,w=e(s),_=w.length;if(x!=_&&!m)return!1;for(var S=x;S--;){var C=v[S];if(!(m?C in s:r.call(s,C)))return!1}var O=p.get(a),T=p.get(s);if(O&&T)return O==s&&T==a;var P=!0;p.set(a,s),p.set(s,a);for(var j=m;++S<x;){C=v[S];var R=a[C],$=s[C];if(f)var V=m?f($,R,C,s,a,p):f(R,$,C,a,s,p);if(!(V===void 0?R===$||c(R,$,u,f,p):V)){P=!1;break}j||(j=C=="constructor")}if(P&&!j){var X=a.constructor,Z=s.constructor;X!=Z&&"constructor"in a&&"constructor"in s&&!(typeof X=="function"&&X instanceof X&&typeof Z=="function"&&Z instanceof Z)&&(P=!1)}return p.delete(a),p.delete(s),P}return w2=i,w2}var S2,Y5;function Moe(){if(Y5)return S2;Y5=1;var e=Xu(),t=so(),n=e(t,"DataView");return S2=n,S2}var C2,K5;function Noe(){if(K5)return C2;K5=1;var e=Xu(),t=so(),n=e(t,"Promise");return C2=n,C2}var A2,Z5;function JU(){if(Z5)return A2;Z5=1;var e=Xu(),t=so(),n=e(t,"Set");return A2=n,A2}var O2,X5;function Loe(){if(X5)return O2;X5=1;var e=Xu(),t=so(),n=e(t,"WeakMap");return O2=n,O2}var E2,Q5;function Doe(){if(Q5)return E2;Q5=1;var e=Moe(),t=eT(),n=Noe(),r=JU(),i=Loe(),a=as(),s=gU(),u="[object Map]",f="[object Object]",c="[object Promise]",p="[object Set]",m="[object WeakMap]",v="[object DataView]",x=s(e),w=s(t),_=s(n),S=s(r),C=s(i),O=a;return(e&&O(new e(new ArrayBuffer(1)))!=v||t&&O(new t)!=u||n&&O(n.resolve())!=c||r&&O(new r)!=p||i&&O(new i)!=m)&&(O=function(T){var P=a(T),j=P==f?T.constructor:void 0,R=j?s(j):"";if(R)switch(R){case x:return v;case w:return u;case _:return c;case S:return p;case C:return m}return P}),E2=O,E2}var T2,J5;function koe(){if(J5)return T2;J5=1;var e=qU(),t=WU(),n=goe(),r=Roe(),i=Doe(),a=ri(),s=KU(),u=XU(),f=1,c="[object Arguments]",p="[object Array]",m="[object Object]",v=Object.prototype,x=v.hasOwnProperty;function w(_,S,C,O,T,P){var j=a(_),R=a(S),$=j?p:i(_),V=R?p:i(S);$=$==c?m:$,V=V==c?m:V;var X=$==m,Z=V==m,Y=$==V;if(Y&&s(_)){if(!s(S))return!1;j=!0,X=!1}if(Y&&!X)return P||(P=new e),j||u(_)?t(_,S,C,O,T,P):n(_,S,$,C,O,T,P);if(!(C&f)){var te=X&&x.call(_,"__wrapped__"),ae=Z&&x.call(S,"__wrapped__");if(te||ae){var Q=te?_.value():_,ne=ae?S.value():S;return P||(P=new e),T(Q,ne,C,O,P)}}return Y?(P||(P=new e),r(_,S,C,O,T,P)):!1}return T2=w,T2}var j2,eN;function pT(){if(eN)return j2;eN=1;var e=koe(),t=os();function n(r,i,a,s,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,s,n,u)}return j2=n,j2}var P2,tN;function Ioe(){if(tN)return P2;tN=1;var e=qU(),t=pT(),n=1,r=2;function i(a,s,u,f){var c=u.length,p=c,m=!f;if(a==null)return!p;for(a=Object(a);c--;){var v=u[c];if(m&&v[2]?v[1]!==a[v[0]]:!(v[0]in a))return!1}for(;++c<p;){v=u[c];var x=v[0],w=a[x],_=v[1];if(m&&v[2]){if(w===void 0&&!(x in a))return!1}else{var S=new e;if(f)var C=f(w,_,x,a,s,S);if(!(C===void 0?t(_,w,n|r,f,S):C))return!1}}return!0}return P2=i,P2}var R2,nN;function eB(){if(nN)return R2;nN=1;var e=Ml();function t(n){return n===n&&!e(n)}return R2=t,R2}var M2,rN;function Uoe(){if(rN)return M2;rN=1;var e=eB(),t=mb();function n(r){for(var i=t(r),a=i.length;a--;){var s=i[a],u=r[s];i[a]=[s,u,e(u)]}return i}return M2=n,M2}var N2,iN;function tB(){if(iN)return N2;iN=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return N2=e,N2}var L2,aN;function Boe(){if(aN)return L2;aN=1;var e=Ioe(),t=Uoe(),n=tB();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return L2=r,L2}var D2,oN;function zoe(){if(oN)return D2;oN=1;function e(t,n){return t!=null&&n in Object(t)}return D2=e,D2}var k2,sN;function $oe(){if(sN)return k2;sN=1;var e=bU(),t=fT(),n=ri(),r=dT(),i=hT(),a=ub();function s(u,f,c){f=e(f,u);for(var p=-1,m=f.length,v=!1;++p<m;){var x=a(f[p]);if(!(v=u!=null&&c(u,x)))break;u=u[x]}return v||++p!=m?v:(m=u==null?0:u.length,!!m&&i(m)&&r(x,m)&&(n(u)||t(u)))}return k2=s,k2}var I2,lN;function Foe(){if(lN)return I2;lN=1;var e=zoe(),t=$oe();function n(r,i){return r!=null&&t(r,i,e)}return I2=n,I2}var U2,uN;function qoe(){if(uN)return U2;uN=1;var e=pT(),t=_U(),n=Foe(),r=XE(),i=eB(),a=tB(),s=ub(),u=1,f=2;function c(p,m){return r(p)&&i(m)?a(s(p),m):function(v){var x=t(v,p);return x===void 0&&x===m?n(v,p):e(m,x,u|f)}}return U2=c,U2}var B2,cN;function gd(){if(cN)return B2;cN=1;function e(t){return t}return B2=e,B2}var z2,fN;function Voe(){if(fN)return z2;fN=1;function e(t){return function(n){return n==null?void 0:n[t]}}return z2=e,z2}var $2,dN;function Hoe(){if(dN)return $2;dN=1;var e=rT();function t(n){return function(r){return e(r,n)}}return $2=t,$2}var F2,hN;function Goe(){if(hN)return F2;hN=1;var e=Voe(),t=Hoe(),n=XE(),r=ub();function i(a){return n(a)?e(r(a)):t(a)}return F2=i,F2}var q2,pN;function lo(){if(pN)return q2;pN=1;var e=Boe(),t=qoe(),n=gd(),r=ri(),i=Goe();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return q2=a,q2}var V2,mN;function nB(){if(mN)return V2;mN=1;function e(t,n,r,i){for(var a=t.length,s=r+(i?1:-1);i?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return V2=e,V2}var H2,gN;function Woe(){if(gN)return H2;gN=1;function e(t){return t!==t}return H2=e,H2}var G2,vN;function Yoe(){if(vN)return G2;vN=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return G2=e,G2}var W2,yN;function Koe(){if(yN)return W2;yN=1;var e=nB(),t=Woe(),n=Yoe();function r(i,a,s){return a===a?n(i,a,s):e(i,t,s)}return W2=r,W2}var Y2,bN;function Zoe(){if(bN)return Y2;bN=1;var e=Koe();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return Y2=t,Y2}var K2,_N;function Xoe(){if(_N)return K2;_N=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return K2=e,K2}var Z2,xN;function Qoe(){if(xN)return Z2;xN=1;function e(){}return Z2=e,Z2}var X2,wN;function Joe(){if(wN)return X2;wN=1;var e=JU(),t=Qoe(),n=cT(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return X2=i,X2}var Q2,SN;function ese(){if(SN)return Q2;SN=1;var e=VU(),t=Zoe(),n=Xoe(),r=GU(),i=Joe(),a=cT(),s=200;function u(f,c,p){var m=-1,v=t,x=f.length,w=!0,_=[],S=_;if(p)w=!1,v=n;else if(x>=s){var C=c?null:i(f);if(C)return a(C);w=!1,v=r,S=new e}else S=c?[]:_;e:for(;++m<x;){var O=f[m],T=c?c(O):O;if(O=p||O!==0?O:0,w&&T===T){for(var P=S.length;P--;)if(S[P]===T)continue e;c&&S.push(T),_.push(O)}else v(S,T,p)||(S!==_&&S.push(T),_.push(O))}return _}return Q2=u,Q2}var J2,CN;function tse(){if(CN)return J2;CN=1;var e=lo(),t=ese();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return J2=n,J2}var nse=tse();const AN=qt(nse);function rB(e,t,n){return t===!0?AN(e,n):ht(t)?AN(e,t):e}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}var rse=["ref"];function ON(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 Uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){gb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ise(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EN(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,aB(r.key),r)}}function ase(e,t,n){return t&&EN(e.prototype,t),n&&EN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ose(e,t,n){return t=Ry(t),sse(e,iB()?Reflect.construct(t,n||[],Ry(e).constructor):t.apply(e,n))}function sse(e,t){if(t&&(Tf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lse(e)}function lse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iB=function(){return!!e})()}function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ry(e)}function use(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MA(e,t)}function MA(e,t){return MA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MA(e,t)}function gb(e,t,n){return t=aB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e){var t=cse(e,"string");return Tf(t)=="symbol"?t:t+""}function cse(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fse(e,t){if(e==null)return{};var n=dse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hse(e){return e.value}function pse(e,t){if(pe.isValidElement(e))return pe.cloneElement(e,t);if(typeof e=="function")return pe.createElement(e,t);t.ref;var n=fse(t,rse);return pe.createElement(uT,n)}var TN=1,gf=function(e){function t(){var n;ise(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=ose(this,t,[].concat(i)),gb(n,"lastBoundingBox",{width:-1,height:-1}),n}return use(t,e),ase(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>TN||Math.abs(i.height-this.lastBoundingBox.height)>TN)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Uo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,s=i.align,u=i.verticalAlign,f=i.margin,c=i.chartWidth,p=i.chartHeight,m,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&a==="vertical"){var x=this.getBBoxSnapshot();m={left:((c||0)-x.width)/2}}else m=s==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var w=this.getBBoxSnapshot();v={top:((p||0)-w.height)/2}}else v=u==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Uo(Uo({},m),v)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,s=i.width,u=i.height,f=i.wrapperStyle,c=i.payloadUniqBy,p=i.payload,m=Uo(Uo({position:"absolute",width:s||"auto",height:u||"auto"},this.getDefaultPosition(f)),f);return pe.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(x){r.wrapperNode=x}},pse(a,Uo(Uo({},this.props),{},{payload:rB(p,c,hse)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Uo(Uo({},this.defaultProps),r.props),s=a.layout;return s==="vertical"&&Ze(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(I.PureComponent);gb(gf,"displayName","Legend");gb(gf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var eS,jN;function mse(){if(jN)return eS;jN=1;var e=Tm(),t=fT(),n=ri(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return eS=i,eS}var tS,PN;function oB(){if(PN)return tS;PN=1;var e=YU(),t=mse();function n(r,i,a,s,u){var f=-1,c=r.length;for(a||(a=t),u||(u=[]);++f<c;){var p=r[f];i>0&&a(p)?i>1?n(p,i-1,a,s,u):e(u,p):s||(u[u.length]=p)}return u}return tS=n,tS}var nS,RN;function gse(){if(RN)return nS;RN=1;function e(t){return function(n,r,i){for(var a=-1,s=Object(n),u=i(n),f=u.length;f--;){var c=u[t?f:++a];if(r(s[c],c,s)===!1)break}return n}}return nS=e,nS}var rS,MN;function vse(){if(MN)return rS;MN=1;var e=gse(),t=e();return rS=t,rS}var iS,NN;function sB(){if(NN)return iS;NN=1;var e=vse(),t=mb();function n(r,i){return r&&e(r,i,t)}return iS=n,iS}var aS,LN;function yse(){if(LN)return aS;LN=1;var e=jm();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var s=i.length,u=r?s:-1,f=Object(i);(r?u--:++u<s)&&a(f[u],u,f)!==!1;);return i}}return aS=t,aS}var oS,DN;function mT(){if(DN)return oS;DN=1;var e=sB(),t=yse(),n=t(e);return oS=n,oS}var sS,kN;function lB(){if(kN)return sS;kN=1;var e=mT(),t=jm();function n(r,i){var a=-1,s=t(r)?Array(r.length):[];return e(r,function(u,f,c){s[++a]=i(u,f,c)}),s}return sS=n,sS}var lS,IN;function bse(){if(IN)return lS;IN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return lS=e,lS}var uS,UN;function _se(){if(UN)return uS;UN=1;var e=hd();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,s=n===n,u=e(n),f=r!==void 0,c=r===null,p=r===r,m=e(r);if(!c&&!m&&!u&&n>r||u&&f&&p&&!c&&!m||a&&f&&p||!i&&p||!s)return 1;if(!a&&!u&&!m&&n<r||m&&i&&s&&!a&&!u||c&&i&&s||!f&&s||!p)return-1}return 0}return uS=t,uS}var cS,BN;function xse(){if(BN)return cS;BN=1;var e=_se();function t(n,r,i){for(var a=-1,s=n.criteria,u=r.criteria,f=s.length,c=i.length;++a<f;){var p=e(s[a],u[a]);if(p){if(a>=c)return p;var m=i[a];return p*(m=="desc"?-1:1)}}return n.index-r.index}return cS=t,cS}var fS,zN;function wse(){if(zN)return fS;zN=1;var e=nT(),t=rT(),n=lo(),r=lB(),i=bse(),a=ZU(),s=xse(),u=gd(),f=ri();function c(p,m,v){m.length?m=e(m,function(_){return f(_)?function(S){return t(S,_.length===1?_[0]:_)}:_}):m=[u];var x=-1;m=e(m,a(n));var w=r(p,function(_,S,C){var O=e(m,function(T){return T(_)});return{criteria:O,index:++x,value:_}});return i(w,function(_,S){return s(_,S,v)})}return fS=c,fS}var dS,$N;function Sse(){if($N)return dS;$N=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return dS=e,dS}var hS,FN;function Cse(){if(FN)return hS;FN=1;var e=Sse(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var s=arguments,u=-1,f=t(s.length-i,0),c=Array(f);++u<f;)c[u]=s[i+u];u=-1;for(var p=Array(i+1);++u<i;)p[u]=s[u];return p[i]=a(c),e(r,this,p)}}return hS=n,hS}var pS,qN;function Ase(){if(qN)return pS;qN=1;function e(t){return function(){return t}}return pS=e,pS}var mS,VN;function uB(){if(VN)return mS;VN=1;var e=Xu(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return mS=t,mS}var gS,HN;function Ose(){if(HN)return gS;HN=1;var e=Ase(),t=uB(),n=gd(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return gS=r,gS}var vS,GN;function Ese(){if(GN)return vS;GN=1;var e=800,t=16,n=Date.now;function r(i){var a=0,s=0;return function(){var u=n(),f=t-(u-s);if(s=u,f>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return vS=r,vS}var yS,WN;function Tse(){if(WN)return yS;WN=1;var e=Ose(),t=Ese(),n=t(e);return yS=n,yS}var bS,YN;function jse(){if(YN)return bS;YN=1;var e=gd(),t=Cse(),n=Tse();function r(i,a){return n(t(i,a,e),i+"")}return bS=r,bS}var _S,KN;function vb(){if(KN)return _S;KN=1;var e=JE(),t=jm(),n=dT(),r=Ml();function i(a,s,u){if(!r(u))return!1;var f=typeof s;return(f=="number"?t(u)&&n(s,u.length):f=="string"&&s in u)?e(u[s],a):!1}return _S=i,_S}var xS,ZN;function Pse(){if(ZN)return xS;ZN=1;var e=oB(),t=wse(),n=jse(),r=vb(),i=n(function(a,s){if(a==null)return[];var u=s.length;return u>1&&r(a,s[0],s[1])?s=[]:u>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return xS=i,xS}var Rse=Pse();const gT=qt(Rse);function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function NA(){return NA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NA.apply(this,arguments)}function Mse(e,t){return kse(e)||Dse(e,t)||Lse(e,t)||Nse()}function Nse(){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 Lse(e,t){if(e){if(typeof e=="string")return XN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XN(e,t)}}function XN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function kse(e){if(Array.isArray(e))return e}function QN(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 wS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(n),!0).forEach(function(r){Ise(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ise(e,t,n){return t=Use(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Use(e){var t=Bse(e,"string");return Np(t)=="symbol"?t:t+""}function Bse(e,t){if(Np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zse(e){return Array.isArray(e)&&Kn(e[0])&&Kn(e[1])?e.join(" ~ "):e}var $se=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,s=t.itemStyle,u=s===void 0?{}:s,f=t.labelStyle,c=f===void 0?{}:f,p=t.payload,m=t.formatter,v=t.itemSorter,x=t.wrapperClassName,w=t.labelClassName,_=t.label,S=t.labelFormatter,C=t.accessibilityLayer,O=C===void 0?!1:C,T=function(){if(p&&p.length){var te={padding:0,margin:0},ae=(v?gT(p,v):p).map(function(Q,ne){if(Q.type==="none")return null;var H=wS({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},u),B=Q.formatter||m||zse,U=Q.value,F=Q.name,M=U,k=F;if(B&&M!=null&&k!=null){var J=B(U,F,Q,ne,p);if(Array.isArray(J)){var W=Mse(J,2);M=W[0],k=W[1]}else M=J}return pe.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ne),style:H},Kn(k)?pe.createElement("span",{className:"recharts-tooltip-item-name"},k):null,Kn(k)?pe.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,pe.createElement("span",{className:"recharts-tooltip-item-value"},M),pe.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return pe.createElement("ul",{className:"recharts-tooltip-item-list",style:te},ae)}return null},P=wS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),j=wS({margin:0},c),R=!pt(_),$=R?_:"",V=je("recharts-default-tooltip",x),X=je("recharts-tooltip-label",w);R&&S&&p!==void 0&&p!==null&&($=S(_,p));var Z=O?{role:"status","aria-live":"assertive"}:{};return pe.createElement("div",NA({className:V,style:P},Z),pe.createElement("p",{className:X,style:j},pe.isValidElement($)?$:"".concat($)),T())};function Lp(e){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(e)}function xv(e,t,n){return t=Fse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fse(e){var t=qse(e,"string");return Lp(t)=="symbol"?t:t+""}function qse(e,t){if(Lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ih="recharts-tooltip-wrapper",Vse={visibility:"hidden"};function Hse(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return je(Ih,xv(xv(xv(xv({},"".concat(Ih,"-right"),Ze(n)&&t&&Ze(t.x)&&n>=t.x),"".concat(Ih,"-left"),Ze(n)&&t&&Ze(t.x)&&n<t.x),"".concat(Ih,"-bottom"),Ze(r)&&t&&Ze(t.y)&&r>=t.y),"".concat(Ih,"-top"),Ze(r)&&t&&Ze(t.y)&&r<t.y))}function JN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,u=e.tooltipDimension,f=e.viewBox,c=e.viewBoxDimension;if(a&&Ze(a[r]))return a[r];var p=n[r]-u-i,m=n[r]+i;if(t[r])return s[r]?p:m;if(s[r]){var v=p,x=f[r];return v<x?Math.max(m,f[r]):Math.max(p,f[r])}var w=m+u,_=f[r]+c;return w>_?Math.max(p,f[r]):Math.max(m,f[r])}function Gse(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Wse(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipBox,u=e.useTranslate3d,f=e.viewBox,c,p,m;return s.height>0&&s.width>0&&n?(p=JN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),m=JN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),c=Gse({translateX:p,translateY:m,useTranslate3d:u})):c=Vse,{cssProperties:c,cssClasses:Hse({translateX:p,translateY:m,coordinate:n})}}function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function eL(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 tL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){DA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kse(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,fB(r.key),r)}}function Zse(e,t,n){return t&&Kse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xse(e,t,n){return t=My(t),Qse(e,cB()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function Qse(e,t){if(t&&(jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jse(e)}function Jse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cB=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},My(e)}function ele(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LA(e,t)}function LA(e,t){return LA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LA(e,t)}function DA(e,t,n){return t=fB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e){var t=tle(e,"string");return jf(t)=="symbol"?t:t+""}function tle(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nL=1,nle=function(e){function t(){var n;Yse(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Xse(this,t,[].concat(i)),DA(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),DA(n,"handleKeyDown",function(s){if(s.key==="Escape"){var u,f,c,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&u!==void 0?u:0,y:(c=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&c!==void 0?c:0}})}}),n}return ele(t,e),Zse(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>nL||Math.abs(r.height-this.state.lastBoundingBox.height)>nL)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,u=i.animationDuration,f=i.animationEasing,c=i.children,p=i.coordinate,m=i.hasPayload,v=i.isAnimationActive,x=i.offset,w=i.position,_=i.reverseDirection,S=i.useTranslate3d,C=i.viewBox,O=i.wrapperStyle,T=Wse({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:x,position:w,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:C}),P=T.cssClasses,j=T.cssProperties,R=tL(tL({transition:v&&a?"transform ".concat(u,"ms ").concat(f):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&m?"visible":"hidden",position:"absolute",top:0,left:0},O);return pe.createElement("div",{tabIndex:-1,className:P,style:R,ref:function(V){r.wrapperNode=V}},c)}}])}(I.PureComponent),rle=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ss={isSsr:rle()};function Pf(e){"@babel/helpers - typeof";return Pf=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},Pf(e)}function rL(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 iL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ile(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ale(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,hB(r.key),r)}}function ole(e,t,n){return t&&ale(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sle(e,t,n){return t=Ny(t),lle(e,dB()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function lle(e,t){if(t&&(Pf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ule(e)}function ule(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dB=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ny(e)}function cle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kA(e,t)}function kA(e,t){return kA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kA(e,t)}function vT(e,t,n){return t=hB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hB(e){var t=fle(e,"string");return Pf(t)=="symbol"?t:t+""}function fle(e,t){if(Pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dle(e){return e.dataKey}function hle(e,t){return pe.isValidElement(e)?pe.cloneElement(e,t):typeof e=="function"?pe.createElement(e,t):pe.createElement($se,t)}var Gi=function(e){function t(){return ile(this,t),sle(this,t,arguments)}return cle(t,e),ole(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,s=i.allowEscapeViewBox,u=i.animationDuration,f=i.animationEasing,c=i.content,p=i.coordinate,m=i.filterNull,v=i.isAnimationActive,x=i.offset,w=i.payload,_=i.payloadUniqBy,S=i.position,C=i.reverseDirection,O=i.useTranslate3d,T=i.viewBox,P=i.wrapperStyle,j=w??[];m&&j.length&&(j=rB(w.filter(function($){return $.value!=null&&($.hide!==!0||r.props.includeHidden)}),_,dle));var R=j.length>0;return pe.createElement(nle,{allowEscapeViewBox:s,animationDuration:u,animationEasing:f,isAnimationActive:v,active:a,coordinate:p,hasPayload:R,offset:x,position:S,reverseDirection:C,useTranslate3d:O,viewBox:T,wrapperStyle:P},hle(c,iL(iL({},this.props),{},{payload:j})))}}])}(I.PureComponent);vT(Gi,"displayName","Tooltip");vT(Gi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ss.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var SS,aL;function ple(){if(aL)return SS;aL=1;var e=so(),t=function(){return e.Date.now()};return SS=t,SS}var CS,oL;function mle(){if(oL)return CS;oL=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return CS=t,CS}var AS,sL;function gle(){if(sL)return AS;sL=1;var e=mle(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return AS=n,AS}var OS,lL;function pB(){if(lL)return OS;lL=1;var e=gle(),t=Ml(),n=hd(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;function f(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=t(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=e(c);var m=a.test(c);return m||s.test(c)?u(c.slice(2),m?2:8):i.test(c)?r:+c}return OS=f,OS}var ES,uL;function vle(){if(uL)return ES;uL=1;var e=Ml(),t=ple(),n=pB(),r="Expected a function",i=Math.max,a=Math.min;function s(u,f,c){var p,m,v,x,w,_,S=0,C=!1,O=!1,T=!0;if(typeof u!="function")throw new TypeError(r);f=n(f)||0,e(c)&&(C=!!c.leading,O="maxWait"in c,v=O?i(n(c.maxWait)||0,f):v,T="trailing"in c?!!c.trailing:T);function P(ae){var Q=p,ne=m;return p=m=void 0,S=ae,x=u.apply(ne,Q),x}function j(ae){return S=ae,w=setTimeout(V,f),C?P(ae):x}function R(ae){var Q=ae-_,ne=ae-S,H=f-Q;return O?a(H,v-ne):H}function $(ae){var Q=ae-_,ne=ae-S;return _===void 0||Q>=f||Q<0||O&&ne>=v}function V(){var ae=t();if($(ae))return X(ae);w=setTimeout(V,R(ae))}function X(ae){return w=void 0,T&&p?P(ae):(p=m=void 0,x)}function Z(){w!==void 0&&clearTimeout(w),S=0,p=_=m=w=void 0}function Y(){return w===void 0?x:X(t())}function te(){var ae=t(),Q=$(ae);if(p=arguments,m=this,_=ae,Q){if(w===void 0)return j(_);if(O)return clearTimeout(w),w=setTimeout(V,f),P(_)}return w===void 0&&(w=setTimeout(V,f)),x}return te.cancel=Z,te.flush=Y,te}return ES=s,ES}var TS,cL;function yle(){if(cL)return TS;cL=1;var e=vle(),t=Ml(),n="Expected a function";function r(i,a,s){var u=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(s)&&(u="leading"in s?!!s.leading:u,f="trailing"in s?!!s.trailing:f),e(i,a,{leading:u,maxWait:a,trailing:f})}return TS=r,TS}var ble=yle();const mB=qt(ble);function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function fL(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 wv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(n),!0).forEach(function(r){_le(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _le(e,t,n){return t=xle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xle(e){var t=wle(e,"string");return Dp(t)=="symbol"?t:t+""}function wle(e,t){if(Dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sle(e,t){return Ele(e)||Ole(e,t)||Ale(e,t)||Cle()}function Cle(){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 Ale(e,t){if(e){if(typeof e=="string")return dL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dL(e,t)}}function dL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ole(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Ele(e){if(Array.isArray(e))return e}var Tle=I.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,s=a===void 0?"100%":a,u=e.height,f=u===void 0?"100%":u,c=e.minWidth,p=c===void 0?0:c,m=e.minHeight,v=e.maxHeight,x=e.children,w=e.debounce,_=w===void 0?0:w,S=e.id,C=e.className,O=e.onResize,T=e.style,P=T===void 0?{}:T,j=I.useRef(null),R=I.useRef();R.current=O,I.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var $=I.useState({containerWidth:i.width,containerHeight:i.height}),V=Sle($,2),X=V[0],Z=V[1],Y=I.useCallback(function(ae,Q){Z(function(ne){var H=Math.round(ae),B=Math.round(Q);return ne.containerWidth===H&&ne.containerHeight===B?ne:{containerWidth:H,containerHeight:B}})},[]);I.useEffect(function(){var ae=function(F){var M,k=F[0].contentRect,J=k.width,W=k.height;Y(J,W),(M=R.current)===null||M===void 0||M.call(R,J,W)};_>0&&(ae=mB(ae,_,{trailing:!0,leading:!1}));var Q=new ResizeObserver(ae),ne=j.current.getBoundingClientRect(),H=ne.width,B=ne.height;return Y(H,B),Q.observe(j.current),function(){Q.disconnect()}},[Y,_]);var te=I.useMemo(function(){var ae=X.containerWidth,Q=X.containerHeight;if(ae<0||Q<0)return null;pa(Ou(s)||Ou(f),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,s,f),pa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var ne=Ou(s)?ae:s,H=Ou(f)?Q:f;n&&n>0&&(ne?H=ne/n:H&&(ne=H*n),v&&H>v&&(H=v)),pa(ne>0||H>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,ne,H,s,f,p,m,n);var B=!Array.isArray(x)&&Ho(x.type).endsWith("Chart");return pe.Children.map(x,function(U){return pe.isValidElement(U)?I.cloneElement(U,wv({width:ne,height:H},B?{style:wv({height:"100%",width:"100%",maxHeight:H,maxWidth:ne},U.props.style)}:{})):U})},[n,x,f,v,m,p,X,s]);return pe.createElement("div",{id:S?"".concat(S):void 0,className:je("recharts-responsive-container",C),style:wv(wv({},P),{},{width:s,height:f,minWidth:p,minHeight:m,maxHeight:v}),ref:j},te)}),ml=function(t){return null};ml.displayName="Cell";function kp(e){"@babel/helpers - typeof";return kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(e)}function hL(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 IA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hL(Object(n),!0).forEach(function(r){jle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jle(e,t,n){return t=Ple(t),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 kp(t)=="symbol"?t:t+""}function Rle(e,t){if(kp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kc={widthCache:{},cacheCount:0},Mle=2e3,Nle={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pL="recharts_measurement_span";function Lle(e){var t=IA({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var up=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ss.isSsr)return{width:0,height:0};var r=Lle(n),i=JSON.stringify({text:t,copyStyle:r});if(Kc.widthCache[i])return Kc.widthCache[i];try{var a=document.getElementById(pL);a||(a=document.createElement("span"),a.setAttribute("id",pL),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var s=IA(IA({},Nle),r);Object.assign(a.style,s),a.textContent="".concat(t);var u=a.getBoundingClientRect(),f={width:u.width,height:u.height};return Kc.widthCache[i]=f,++Kc.cacheCount>Mle&&(Kc.cacheCount=0,Kc.widthCache={}),f}catch{return{width:0,height:0}}},Dle=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ip(e){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(e)}function Ly(e,t){return Ble(e)||Ule(e,t)||Ile(e,t)||kle()}function kle(){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 Ile(e,t){if(e){if(typeof e=="string")return mL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mL(e,t)}}function mL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ule(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Ble(e){if(Array.isArray(e))return e}function zle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gL(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,Fle(r.key),r)}}function $le(e,t,n){return t&&gL(e.prototype,t),n&&gL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fle(e){var t=qle(e,"string");return Ip(t)=="symbol"?t:t+""}function qle(e,t){if(Ip(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vL=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yL=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vle=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Hle=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,gB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Gle=Object.keys(gB),of="NaN";function Wle(e,t){return e*gB[t]}var Sv=function(){function e(t,n){zle(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Vle.test(n)&&(this.num=NaN,this.unit=""),Gle.includes(n)&&(this.num=Wle(t,n),this.unit="px")}return $le(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=Hle.exec(n))!==null&&r!==void 0?r:[],a=Ly(i,3),s=a[1],u=a[2];return new e(parseFloat(s),u??"")}}])}();function vB(e){if(e.includes(of))return of;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=vL.exec(t))!==null&&n!==void 0?n:[],i=Ly(r,4),a=i[1],s=i[2],u=i[3],f=Sv.parse(a??""),c=Sv.parse(u??""),p=s==="*"?f.multiply(c):f.divide(c);if(p.isNaN())return of;t=t.replace(vL,p.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,v=(m=yL.exec(t))!==null&&m!==void 0?m:[],x=Ly(v,4),w=x[1],_=x[2],S=x[3],C=Sv.parse(w??""),O=Sv.parse(S??""),T=_==="+"?C.add(O):C.subtract(O);if(T.isNaN())return of;t=t.replace(yL,T.toString())}return t}var bL=/\(([^()]*)\)/;function Yle(e){for(var t=e;t.includes("(");){var n=bL.exec(t),r=Ly(n,2),i=r[1];t=t.replace(bL,vB(i))}return t}function Kle(e){var t=e.replace(/\s+/g,"");return t=Yle(t),t=vB(t),t}function Zle(e){try{return Kle(e)}catch{return of}}function jS(e){var t=Zle(e.slice(5,-1));return t===of?"":t}var Xle=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Qle=["dx","dy","angle","className","breakAll"];function UA(){return UA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UA.apply(this,arguments)}function _L(e,t){if(e==null)return{};var n=Jle(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xL(e,t){return rue(e)||nue(e,t)||tue(e,t)||eue()}function eue(){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 tue(e,t){if(e){if(typeof e=="string")return wL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wL(e,t)}}function wL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function rue(e){if(Array.isArray(e))return e}var yB=/[ \f\n\r\t\v\u2028\u2029]+/,bB=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];pt(n)||(r?a=n.toString().split(""):a=n.toString().split(yB));var s=a.map(function(f){return{word:f,width:up(f,i).width}}),u=r?0:up(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:u}}catch{return null}},iue=function(t,n,r,i,a){var s=t.maxLines,u=t.children,f=t.style,c=t.breakAll,p=Ze(s),m=u,v=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ne.reduce(function(H,B){var U=B.word,F=B.width,M=H[H.length-1];if(M&&(i==null||a||M.width+F+r<Number(i)))M.words.push(U),M.width+=F+r;else{var k={words:[U],width:F};H.push(k)}return H},[])},x=v(n),w=function(ne){return ne.reduce(function(H,B){return H.width>B.width?H:B})};if(!p)return x;for(var _="…",S=function(ne){var H=m.slice(0,ne),B=bB({breakAll:c,style:f,children:H+_}).wordsWithComputedWidth,U=v(B),F=U.length>s||w(U).width>Number(i);return[F,U]},C=0,O=m.length-1,T=0,P;C<=O&&T<=m.length-1;){var j=Math.floor((C+O)/2),R=j-1,$=S(R),V=xL($,2),X=V[0],Z=V[1],Y=S(j),te=xL(Y,1),ae=te[0];if(!X&&!ae&&(C=j+1),X&&ae&&(O=j-1),!X&&ae){P=Z;break}T++}return P||x},SL=function(t){var n=pt(t)?[]:t.toString().split(yB);return[{words:n}]},aue=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,s=t.breakAll,u=t.maxLines;if((n||r)&&!ss.isSsr){var f,c,p=bB({breakAll:s,children:i,style:a});if(p){var m=p.wordsWithComputedWidth,v=p.spaceWidth;f=m,c=v}else return SL(i);return iue({breakAll:s,children:i,maxLines:u,style:a},f,c,n,r)}return SL(i)},CL="#808080",qu=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,s=t.lineHeight,u=s===void 0?"1em":s,f=t.capHeight,c=f===void 0?"0.71em":f,p=t.scaleToFit,m=p===void 0?!1:p,v=t.textAnchor,x=v===void 0?"start":v,w=t.verticalAnchor,_=w===void 0?"end":w,S=t.fill,C=S===void 0?CL:S,O=_L(t,Xle),T=I.useMemo(function(){return aue({breakAll:O.breakAll,children:O.children,maxLines:O.maxLines,scaleToFit:m,style:O.style,width:O.width})},[O.breakAll,O.children,O.maxLines,m,O.style,O.width]),P=O.dx,j=O.dy,R=O.angle,$=O.className,V=O.breakAll,X=_L(O,Qle);if(!Kn(r)||!Kn(a))return null;var Z=r+(Ze(P)?P:0),Y=a+(Ze(j)?j:0),te;switch(_){case"start":te=jS("calc(".concat(c,")"));break;case"middle":te=jS("calc(".concat((T.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:te=jS("calc(".concat(T.length-1," * -").concat(u,")"));break}var ae=[];if(m){var Q=T[0].width,ne=O.width;ae.push("scale(".concat((Ze(ne)?ne/Q:1)/Q,")"))}return R&&ae.push("rotate(".concat(R,", ").concat(Z,", ").concat(Y,")")),ae.length&&(X.transform=ae.join(" ")),pe.createElement("text",UA({},ot(X,!0),{x:Z,y:Y,className:je("recharts-text",$),textAnchor:x,fill:C.includes("url")?CL:C}),T.map(function(H,B){var U=H.words.join(V?"":" ");return pe.createElement("tspan",{x:Z,dy:B===0?te:u,key:"".concat(U,"-").concat(B)},U)}))};function gl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function oue(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yT(e){let t,n,r;e.length!==2?(t=gl,n=(u,f)=>gl(e(u),f),r=(u,f)=>e(u)-f):(t=e===gl||e===oue?e:sue,n=e,r=e);function i(u,f,c=0,p=u.length){if(c<p){if(t(f,f)!==0)return p;do{const m=c+p>>>1;n(u[m],f)<0?c=m+1:p=m}while(c<p)}return c}function a(u,f,c=0,p=u.length){if(c<p){if(t(f,f)!==0)return p;do{const m=c+p>>>1;n(u[m],f)<=0?c=m+1:p=m}while(c<p)}return c}function s(u,f,c=0,p=u.length){const m=i(u,f,c,p-1);return m>c&&r(u[m-1],f)>-r(u[m],f)?m-1:m}return{left:i,center:s,right:a}}function sue(){return 0}function _B(e){return e===null?NaN:+e}function*lue(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const uue=yT(gl),Pm=uue.right;yT(_B).center;class AL extends Map{constructor(t,n=due){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(OL(this,t))}has(t){return super.has(OL(this,t))}set(t,n){return super.set(cue(this,t),n)}delete(t){return super.delete(fue(this,t))}}function OL({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cue({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fue({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function due(e){return e!==null&&typeof e=="object"?e.valueOf():e}function hue(e=gl){if(e===gl)return xB;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 xB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const pue=Math.sqrt(50),mue=Math.sqrt(10),gue=Math.sqrt(2);function Dy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=pue?10:a>=mue?5:a>=gue?2:1;let u,f,c;return i<0?(c=Math.pow(10,-i)/s,u=Math.round(e*c),f=Math.round(t*c),u/c<e&&++u,f/c>t&&--f,c=-c):(c=Math.pow(10,i)*s,u=Math.round(e/c),f=Math.round(t/c),u*c<e&&++u,f*c>t&&--f),f<u&&.5<=n&&n<2?Dy(e,t,n*2):[u,f,c]}function BA(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?Dy(t,e,n):Dy(e,t,n);if(!(a>=i))return[];const u=a-i+1,f=new Array(u);if(r)if(s<0)for(let c=0;c<u;++c)f[c]=(a-c)/-s;else for(let c=0;c<u;++c)f[c]=(a-c)*s;else if(s<0)for(let c=0;c<u;++c)f[c]=(i+c)/-s;else for(let c=0;c<u;++c)f[c]=(i+c)*s;return f}function zA(e,t,n){return t=+t,e=+e,n=+n,Dy(e,t,n)[2]}function $A(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?zA(t,e,n):zA(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function EL(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function TL(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function wB(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?xB:hue(i);r>n;){if(r-n>600){const f=r-n+1,c=t-n+1,p=Math.log(f),m=.5*Math.exp(2*p/3),v=.5*Math.sqrt(p*m*(f-m)/f)*(c-f/2<0?-1:1),x=Math.max(n,Math.floor(t-c*m/f+v)),w=Math.min(r,Math.floor(t+(f-c)*m/f+v));wB(e,t,x,w,i)}const a=e[t];let s=n,u=r;for(Uh(e,n,t),i(e[r],a)>0&&Uh(e,n,r);s<u;){for(Uh(e,s,u),++s,--u;i(e[s],a)<0;)++s;for(;i(e[u],a)>0;)--u}i(e[n],a)===0?Uh(e,n,u):(++u,Uh(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Uh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function vue(e,t,n){if(e=Float64Array.from(lue(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return TL(e);if(t>=1)return EL(e);var r,i=(r-1)*t,a=Math.floor(i),s=EL(wB(e,a).subarray(0,a+1)),u=TL(e.subarray(a+1));return s+(u-s)*(i-a)}}function yue(e,t,n=_B){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,a=Math.floor(i),s=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return s+(u-s)*(i-a)}}function bue(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,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Qi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ls(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 FA=Symbol("implicit");function bT(){var e=new AL,t=[],n=[],r=FA;function i(a){let s=e.get(a);if(s===void 0){if(r!==FA)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new AL;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return bT(t,n).unknown(r)},Qi.apply(i,arguments),i}function Up(){var e=bT().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,s,u=!1,f=0,c=0,p=.5;delete e.unknown;function m(){var v=t().length,x=i<r,w=x?i:r,_=x?r:i;a=(_-w)/Math.max(1,v-f+c*2),u&&(a=Math.floor(a)),w+=(_-w-a*(v-f))*p,s=a*(1-f),u&&(w=Math.round(w),s=Math.round(s));var S=bue(v).map(function(C){return w+a*C});return n(x?S.reverse():S)}return e.domain=function(v){return arguments.length?(t(v),m()):t()},e.range=function(v){return arguments.length?([r,i]=v,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(v){return[r,i]=v,r=+r,i=+i,u=!0,m()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(v){return arguments.length?(u=!!v,m()):u},e.padding=function(v){return arguments.length?(f=Math.min(1,c=+v),m()):f},e.paddingInner=function(v){return arguments.length?(f=Math.min(1,v),m()):f},e.paddingOuter=function(v){return arguments.length?(c=+v,m()):c},e.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),m()):p},e.copy=function(){return Up(t(),[r,i]).round(u).paddingInner(f).paddingOuter(c).align(p)},Qi.apply(m(),arguments)}function SB(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return SB(t())},e}function cp(){return SB(Up.apply(null,arguments).paddingInner(1))}function _T(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function CB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Rm(){}var Bp=.7,ky=1/Bp,vf="\\s*([+-]?\\d+)\\s*",zp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_ue=/^#([0-9a-f]{3,8})$/,xue=new RegExp(`^rgb\\(${vf},${vf},${vf}\\)$`),wue=new RegExp(`^rgb\\(${Ka},${Ka},${Ka}\\)$`),Sue=new RegExp(`^rgba\\(${vf},${vf},${vf},${zp}\\)$`),Cue=new RegExp(`^rgba\\(${Ka},${Ka},${Ka},${zp}\\)$`),Aue=new RegExp(`^hsl\\(${zp},${Ka},${Ka}\\)$`),Oue=new RegExp(`^hsla\\(${zp},${Ka},${Ka},${zp}\\)$`),jL={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};_T(Rm,$p,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PL,formatHex:PL,formatHex8:Eue,formatHsl:Tue,formatRgb:RL,toString:RL});function PL(){return this.rgb().formatHex()}function Eue(){return this.rgb().formatHex8()}function Tue(){return AB(this).formatHsl()}function RL(){return this.rgb().formatRgb()}function $p(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ML(t):n===3?new ti(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Cv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Cv(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=xue.exec(e))?new ti(t[1],t[2],t[3],1):(t=wue.exec(e))?new ti(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Sue.exec(e))?Cv(t[1],t[2],t[3],t[4]):(t=Cue.exec(e))?Cv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Aue.exec(e))?DL(t[1],t[2]/100,t[3]/100,1):(t=Oue.exec(e))?DL(t[1],t[2]/100,t[3]/100,t[4]):jL.hasOwnProperty(e)?ML(jL[e]):e==="transparent"?new ti(NaN,NaN,NaN,0):null}function ML(e){return new ti(e>>16&255,e>>8&255,e&255,1)}function Cv(e,t,n,r){return r<=0&&(e=t=n=NaN),new ti(e,t,n,r)}function jue(e){return e instanceof Rm||(e=$p(e)),e?(e=e.rgb(),new ti(e.r,e.g,e.b,e.opacity)):new ti}function qA(e,t,n,r){return arguments.length===1?jue(e):new ti(e,t,n,r??1)}function ti(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}_T(ti,qA,CB(Rm,{brighter(e){return e=e==null?ky:Math.pow(ky,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Bp:Math.pow(Bp,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ti(Ru(this.r),Ru(this.g),Ru(this.b),Iy(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:NL,formatHex:NL,formatHex8:Pue,formatRgb:LL,toString:LL}));function NL(){return`#${Eu(this.r)}${Eu(this.g)}${Eu(this.b)}`}function Pue(){return`#${Eu(this.r)}${Eu(this.g)}${Eu(this.b)}${Eu((isNaN(this.opacity)?1:this.opacity)*255)}`}function LL(){const e=Iy(this.opacity);return`${e===1?"rgb(":"rgba("}${Ru(this.r)}, ${Ru(this.g)}, ${Ru(this.b)}${e===1?")":`, ${e})`}`}function Iy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ru(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eu(e){return e=Ru(e),(e<16?"0":"")+e.toString(16)}function DL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ha(e,t,n,r)}function AB(e){if(e instanceof ha)return new ha(e.h,e.s,e.l,e.opacity);if(e instanceof Rm||(e=$p(e)),!e)return new ha;if(e instanceof ha)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-i,f=(a+i)/2;return u?(t===a?s=(n-r)/u+(n<r)*6:n===a?s=(r-t)/u+2:s=(t-n)/u+4,u/=f<.5?a+i:2-a-i,s*=60):u=f>0&&f<1?0:s,new ha(s,u,f,e.opacity)}function Rue(e,t,n,r){return arguments.length===1?AB(e):new ha(e,t,n,r??1)}function ha(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}_T(ha,Rue,CB(Rm,{brighter(e){return e=e==null?ky:Math.pow(ky,e),new ha(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bp:Math.pow(Bp,e),new ha(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 ti(PS(e>=240?e-240:e+120,i,r),PS(e,i,r),PS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ha(kL(this.h),Av(this.s),Av(this.l),Iy(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=Iy(this.opacity);return`${e===1?"hsl(":"hsla("}${kL(this.h)}, ${Av(this.s)*100}%, ${Av(this.l)*100}%${e===1?")":`, ${e})`}`}}));function kL(e){return e=(e||0)%360,e<0?e+360:e}function Av(e){return Math.max(0,Math.min(1,e||0))}function PS(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 xT=e=>()=>e;function Mue(e,t){return function(n){return e+n*t}}function Nue(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 Lue(e){return(e=+e)==1?OB:function(t,n){return n-t?Nue(t,n,e):xT(isNaN(t)?n:t)}}function OB(e,t){var n=t-e;return n?Mue(e,n):xT(isNaN(e)?t:e)}const IL=function e(t){var n=Lue(t);function r(i,a){var s=n((i=qA(i)).r,(a=qA(a)).r),u=n(i.g,a.g),f=n(i.b,a.b),c=OB(i.opacity,a.opacity);return function(p){return i.r=s(p),i.g=u(p),i.b=f(p),i.opacity=c(p),i+""}}return r.gamma=e,r}(1);function Due(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function kue(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Iue(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=vd(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(u){for(s=0;s<r;++s)a[s]=i[s](u);return a}}function Uue(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Uy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Bue(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]=vd(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var VA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,RS=new RegExp(VA.source,"g");function zue(e){return function(){return e}}function $ue(e){return function(t){return e(t)+""}}function Fue(e,t){var n=VA.lastIndex=RS.lastIndex=0,r,i,a,s=-1,u=[],f=[];for(e=e+"",t=t+"";(r=VA.exec(e))&&(i=RS.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[s]?u[s]+=a:u[++s]=a),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,f.push({i:s,x:Uy(r,i)})),n=RS.lastIndex;return n<t.length&&(a=t.slice(n),u[s]?u[s]+=a:u[++s]=a),u.length<2?f[0]?$ue(f[0].x):zue(t):(t=f.length,function(c){for(var p=0,m;p<t;++p)u[(m=f[p]).i]=m.x(c);return u.join("")})}function vd(e,t){var n=typeof t,r;return t==null||n==="boolean"?xT(t):(n==="number"?Uy:n==="string"?(r=$p(t))?(t=r,IL):Fue:t instanceof $p?IL:t instanceof Date?Uue:kue(t)?Due:Array.isArray(t)?Iue:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Bue:Uy)(e,t)}function wT(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function que(e,t){t===void 0&&(t=e,e=vd);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return a[u](s-u)}}function Vue(e){return function(){return e}}function By(e){return+e}var UL=[0,1];function Fr(e){return e}function HA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Vue(isNaN(t)?NaN:.5)}function Hue(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Gue(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=HA(i,r),a=n(s,a)):(r=HA(r,i),a=n(a,s)),function(u){return a(r(u))}}function Wue(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=HA(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(u){var f=Pm(e,u,1,r)-1;return a[f](i[f](u))}}function Mm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yb(){var e=UL,t=UL,n=vd,r,i,a,s=Fr,u,f,c;function p(){var v=Math.min(e.length,t.length);return s!==Fr&&(s=Hue(e[0],e[v-1])),u=v>2?Wue:Gue,f=c=null,m}function m(v){return v==null||isNaN(v=+v)?a:(f||(f=u(e.map(r),t,n)))(r(s(v)))}return m.invert=function(v){return s(i((c||(c=u(t,e.map(r),Uy)))(v)))},m.domain=function(v){return arguments.length?(e=Array.from(v,By),p()):e.slice()},m.range=function(v){return arguments.length?(t=Array.from(v),p()):t.slice()},m.rangeRound=function(v){return t=Array.from(v),n=wT,p()},m.clamp=function(v){return arguments.length?(s=v?!0:Fr,p()):s!==Fr},m.interpolate=function(v){return arguments.length?(n=v,p()):n},m.unknown=function(v){return arguments.length?(a=v,m):a},function(v,x){return r=v,i=x,p()}}function ST(){return yb()(Fr,Fr)}function Yue(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function zy(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 Rf(e){return e=zy(Math.abs(e)),e?e[1]:NaN}function Kue(e,t){return function(n,r){for(var i=n.length,a=[],s=0,u=e[0],f=0;i>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),a.push(n.substring(i-=u,i+u)),!((f+=u+1)>r));)u=e[s=(s+1)%e.length];return a.reverse().join(t)}}function Zue(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Xue=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fp(e){if(!(t=Xue.exec(e)))throw new Error("invalid format: "+e);var t;return new CT({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]})}Fp.prototype=CT.prototype;function CT(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+""}CT.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 Que(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 EB;function Jue(e,t){var n=zy(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(EB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+zy(e,Math.max(0,t+a-1))[0]}function BL(e,t){var n=zy(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 zL={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Yue,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)=>BL(e*100,t),r:BL,s:Jue,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $L(e){return e}var FL=Array.prototype.map,qL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ece(e){var t=e.grouping===void 0||e.thousands===void 0?$L:Kue(FL.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+"",a=e.numerals===void 0?$L:Zue(FL.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(m){m=Fp(m);var v=m.fill,x=m.align,w=m.sign,_=m.symbol,S=m.zero,C=m.width,O=m.comma,T=m.precision,P=m.trim,j=m.type;j==="n"?(O=!0,j="g"):zL[j]||(T===void 0&&(T=12),P=!0,j="g"),(S||v==="0"&&x==="=")&&(S=!0,v="0",x="=");var R=_==="$"?n:_==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",$=_==="$"?r:/[%p]/.test(j)?s:"",V=zL[j],X=/[defgprs%]/.test(j);T=T===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function Z(Y){var te=R,ae=$,Q,ne,H;if(j==="c")ae=V(Y)+ae,Y="";else{Y=+Y;var B=Y<0||1/Y<0;if(Y=isNaN(Y)?f:V(Math.abs(Y),T),P&&(Y=Que(Y)),B&&+Y==0&&w!=="+"&&(B=!1),te=(B?w==="("?w:u:w==="-"||w==="("?"":w)+te,ae=(j==="s"?qL[8+EB/3]:"")+ae+(B&&w==="("?")":""),X){for(Q=-1,ne=Y.length;++Q<ne;)if(H=Y.charCodeAt(Q),48>H||H>57){ae=(H===46?i+Y.slice(Q+1):Y.slice(Q))+ae,Y=Y.slice(0,Q);break}}}O&&!S&&(Y=t(Y,1/0));var U=te.length+Y.length+ae.length,F=U<C?new Array(C-U+1).join(v):"";switch(O&&S&&(Y=t(F+Y,F.length?C-ae.length:1/0),F=""),x){case"<":Y=te+Y+ae+F;break;case"=":Y=te+F+Y+ae;break;case"^":Y=F.slice(0,U=F.length>>1)+te+Y+ae+F.slice(U);break;default:Y=F+te+Y+ae;break}return a(Y)}return Z.toString=function(){return m+""},Z}function p(m,v){var x=c((m=Fp(m),m.type="f",m)),w=Math.max(-8,Math.min(8,Math.floor(Rf(v)/3)))*3,_=Math.pow(10,-w),S=qL[8+w/3];return function(C){return x(_*C)+S}}return{format:c,formatPrefix:p}}var Ov,AT,TB;tce({thousands:",",grouping:[3],currency:["$",""]});function tce(e){return Ov=ece(e),AT=Ov.format,TB=Ov.formatPrefix,Ov}function nce(e){return Math.max(0,-Rf(Math.abs(e)))}function rce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rf(t)/3)))*3-Rf(Math.abs(e)))}function ice(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rf(t)-Rf(e))+1}function jB(e,t,n,r){var i=$A(e,t,n),a;switch(r=Fp(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=rce(i,s))&&(r.precision=a),TB(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=ice(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=nce(i))&&(r.precision=a-(r.type==="%")*2);break}}return AT(r)}function Ll(e){var t=e.domain;return e.ticks=function(n){var r=t();return BA(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return jB(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,s=r[i],u=r[a],f,c,p=10;for(u<s&&(c=s,s=u,u=c,c=i,i=a,a=c);p-- >0;){if(c=zA(s,u,n),c===f)return r[i]=s,r[a]=u,t(r);if(c>0)s=Math.floor(s/c)*c,u=Math.ceil(u/c)*c;else if(c<0)s=Math.ceil(s*c)/c,u=Math.floor(u*c)/c;else break;f=c}return e},e}function $y(){var e=ST();return e.copy=function(){return Mm(e,$y())},Qi.apply(e,arguments),Ll(e)}function PB(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,By),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return PB(e).unknown(t)},e=arguments.length?Array.from(e,By):[0,1],Ll(n)}function RB(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}function VL(e){return Math.log(e)}function HL(e){return Math.exp(e)}function ace(e){return-Math.log(-e)}function oce(e){return-Math.exp(-e)}function sce(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lce(e){return e===10?sce:e===Math.E?Math.exp:t=>Math.pow(e,t)}function uce(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 GL(e){return(t,n)=>-e(-t,n)}function OT(e){const t=e(VL,HL),n=t.domain;let r=10,i,a;function s(){return i=uce(r),a=lce(r),n()[0]<0?(i=GL(i),a=GL(a),e(ace,oce)):e(VL,HL),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 f=n();let c=f[0],p=f[f.length-1];const m=p<c;m&&([c,p]=[p,c]);let v=i(c),x=i(p),w,_;const S=u==null?10:+u;let C=[];if(!(r%1)&&x-v<S){if(v=Math.floor(v),x=Math.ceil(x),c>0){for(;v<=x;++v)for(w=1;w<r;++w)if(_=v<0?w/a(-v):w*a(v),!(_<c)){if(_>p)break;C.push(_)}}else for(;v<=x;++v)for(w=r-1;w>=1;--w)if(_=v>0?w/a(-v):w*a(v),!(_<c)){if(_>p)break;C.push(_)}C.length*2<S&&(C=BA(c,p,S))}else C=BA(v,x,Math.min(x-v,S)).map(a);return m?C.reverse():C},t.tickFormat=(u,f)=>{if(u==null&&(u=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Fp(f)).precision==null&&(f.trim=!0),f=AT(f)),u===1/0)return f;const c=Math.max(1,r*u/t.ticks().length);return p=>{let m=p/a(Math.round(i(p)));return m*r<r-.5&&(m*=r),m<=c?f(p):""}},t.nice=()=>n(RB(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function MB(){const e=OT(yb()).domain([1,10]);return e.copy=()=>Mm(e,MB()).base(e.base()),Qi.apply(e,arguments),e}function WL(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function YL(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ET(e){var t=1,n=e(WL(t),YL(t));return n.constant=function(r){return arguments.length?e(WL(t=+r),YL(t)):t},Ll(n)}function NB(){var e=ET(yb());return e.copy=function(){return Mm(e,NB()).constant(e.constant())},Qi.apply(e,arguments)}function KL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function cce(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fce(e){return e<0?-e*e:e*e}function TT(e){var t=e(Fr,Fr),n=1;function r(){return n===1?e(Fr,Fr):n===.5?e(cce,fce):e(KL(n),KL(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ll(t)}function jT(){var e=TT(yb());return e.copy=function(){return Mm(e,jT()).exponent(e.exponent())},Qi.apply(e,arguments),e}function dce(){return jT.apply(null,arguments).exponent(.5)}function ZL(e){return Math.sign(e)*e*e}function hce(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function LB(){var e=ST(),t=[0,1],n=!1,r;function i(a){var s=hce(e(a));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(a){return e.invert(ZL(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,By)).map(ZL)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return LB(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Qi.apply(i,arguments),Ll(i)}function DB(){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]=yue(e,s/u);return a}function a(s){return s==null||isNaN(s=+s)?r:t[Pm(n,s)]}return a.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]]},a.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(gl),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return DB().domain(e).range(t).unknown(r)},Qi.apply(a,arguments)}function kB(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(f){return f!=null&&f<=f?i[Pm(r,f,0,n)]:a}function u(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return s}return s.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,u()):[e,t]},s.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,u()):i.slice()},s.invertExtent=function(f){var c=i.indexOf(f);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(f){return arguments.length&&(a=f),s},s.thresholds=function(){return r.slice()},s.copy=function(){return kB().domain([e,t]).range(i).unknown(a)},Qi.apply(Ll(s),arguments)}function IB(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Pm(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return IB().domain(e).range(t).unknown(n)},Qi.apply(i,arguments)}const MS=new Date,NS=new Date;function Qn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),u=i.ceil(a);return a-s<u-a?s:u},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,u)=>{const f=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<s)||!(u>0))return f;let c;do f.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<s);return f},i.filter=a=>Qn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!a(s););else for(;--u>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(MS.setTime(+a),NS.setTime(+s),e(MS),e(NS),Math.floor(n(MS,NS))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Fy=Qn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fy);Fy.range;const zo=1e3,Ki=zo*60,$o=Ki*60,es=$o*24,PT=es*7,XL=es*30,LS=es*365,Tu=Qn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*zo)},(e,t)=>(t-e)/zo,e=>e.getUTCSeconds());Tu.range;const RT=Qn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zo)},(e,t)=>{e.setTime(+e+t*Ki)},(e,t)=>(t-e)/Ki,e=>e.getMinutes());RT.range;const MT=Qn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ki)},(e,t)=>(t-e)/Ki,e=>e.getUTCMinutes());MT.range;const NT=Qn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zo-e.getMinutes()*Ki)},(e,t)=>{e.setTime(+e+t*$o)},(e,t)=>(t-e)/$o,e=>e.getHours());NT.range;const LT=Qn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$o)},(e,t)=>(t-e)/$o,e=>e.getUTCHours());LT.range;const Nm=Qn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ki)/es,e=>e.getDate()-1);Nm.range;const bb=Qn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/es,e=>e.getUTCDate()-1);bb.range;const UB=Qn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/es,e=>Math.floor(e/es));UB.range;function Qu(e){return Qn(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())*Ki)/PT)}const _b=Qu(0),qy=Qu(1),pce=Qu(2),mce=Qu(3),Mf=Qu(4),gce=Qu(5),vce=Qu(6);_b.range;qy.range;pce.range;mce.range;Mf.range;gce.range;vce.range;function Ju(e){return Qn(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)/PT)}const xb=Ju(0),Vy=Ju(1),yce=Ju(2),bce=Ju(3),Nf=Ju(4),_ce=Ju(5),xce=Ju(6);xb.range;Vy.range;yce.range;bce.range;Nf.range;_ce.range;xce.range;const DT=Qn(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());DT.range;const kT=Qn(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());kT.range;const ts=Qn(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());ts.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qn(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)});ts.range;const ns=Qn(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());ns.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qn(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)});ns.range;function BB(e,t,n,r,i,a){const s=[[Tu,1,zo],[Tu,5,5*zo],[Tu,15,15*zo],[Tu,30,30*zo],[a,1,Ki],[a,5,5*Ki],[a,15,15*Ki],[a,30,30*Ki],[i,1,$o],[i,3,3*$o],[i,6,6*$o],[i,12,12*$o],[r,1,es],[r,2,2*es],[n,1,PT],[t,1,XL],[t,3,3*XL],[e,1,LS]];function u(c,p,m){const v=p<c;v&&([c,p]=[p,c]);const x=m&&typeof m.range=="function"?m:f(c,p,m),w=x?x.range(c,+p+1):[];return v?w.reverse():w}function f(c,p,m){const v=Math.abs(p-c)/m,x=yT(([,,S])=>S).right(s,v);if(x===s.length)return e.every($A(c/LS,p/LS,m));if(x===0)return Fy.every(Math.max($A(c,p,m),1));const[w,_]=s[v/s[x-1][2]<s[x][2]/v?x-1:x];return w.every(_)}return[u,f]}const[wce,Sce]=BB(ns,kT,xb,UB,LT,MT),[Cce,Ace]=BB(ts,DT,_b,Nm,NT,RT);function DS(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 kS(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 Bh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Oce(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,u=e.months,f=e.shortMonths,c=zh(i),p=$h(i),m=zh(a),v=$h(a),x=zh(s),w=$h(s),_=zh(u),S=$h(u),C=zh(f),O=$h(f),T={a:B,A:U,b:F,B:M,c:null,d:rD,e:rD,f:Kce,g:afe,G:sfe,H:Gce,I:Wce,j:Yce,L:zB,m:Zce,M:Xce,p:k,q:J,Q:oD,s:sD,S:Qce,u:Jce,U:efe,V:tfe,w:nfe,W:rfe,x:null,X:null,y:ife,Y:ofe,Z:lfe,"%":aD},P={a:W,A:ie,b:fe,B:ce,c:null,d:iD,e:iD,f:dfe,g:wfe,G:Cfe,H:ufe,I:cfe,j:ffe,L:FB,m:hfe,M:pfe,p:ye,q:z,Q:oD,s:sD,S:mfe,u:gfe,U:vfe,V:yfe,w:bfe,W:_fe,x:null,X:null,y:xfe,Y:Sfe,Z:Afe,"%":aD},j={a:Z,A:Y,b:te,B:ae,c:Q,d:tD,e:tD,f:Fce,g:eD,G:JL,H:nD,I:nD,j:Uce,L:$ce,m:Ice,M:Bce,p:X,q:kce,Q:Vce,s:Hce,S:zce,u:Rce,U:Mce,V:Nce,w:Pce,W:Lce,x:ne,X:H,y:eD,Y:JL,Z:Dce,"%":qce};T.x=R(n,T),T.X=R(r,T),T.c=R(t,T),P.x=R(n,P),P.X=R(r,P),P.c=R(t,P);function R(q,ee){return function(ue){var K=[],se=-1,de=0,ve=q.length,he,xe,Oe;for(ue instanceof Date||(ue=new Date(+ue));++se<ve;)q.charCodeAt(se)===37&&(K.push(q.slice(de,se)),(xe=QL[he=q.charAt(++se)])!=null?he=q.charAt(++se):xe=he==="e"?" ":"0",(Oe=ee[he])&&(he=Oe(ue,xe)),K.push(he),de=se+1);return K.push(q.slice(de,se)),K.join("")}}function $(q,ee){return function(ue){var K=Bh(1900,void 0,1),se=V(K,q,ue+="",0),de,ve;if(se!=ue.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(ee&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(de=kS(Bh(K.y,0,1)),ve=de.getUTCDay(),de=ve>4||ve===0?Vy.ceil(de):Vy(de),de=bb.offset(de,(K.V-1)*7),K.y=de.getUTCFullYear(),K.m=de.getUTCMonth(),K.d=de.getUTCDate()+(K.w+6)%7):(de=DS(Bh(K.y,0,1)),ve=de.getDay(),de=ve>4||ve===0?qy.ceil(de):qy(de),de=Nm.offset(de,(K.V-1)*7),K.y=de.getFullYear(),K.m=de.getMonth(),K.d=de.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),ve="Z"in K?kS(Bh(K.y,0,1)).getUTCDay():DS(Bh(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(ve+5)%7:K.w+K.U*7-(ve+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,kS(K)):DS(K)}}function V(q,ee,ue,K){for(var se=0,de=ee.length,ve=ue.length,he,xe;se<de;){if(K>=ve)return-1;if(he=ee.charCodeAt(se++),he===37){if(he=ee.charAt(se++),xe=j[he in QL?ee.charAt(se++):he],!xe||(K=xe(q,ue,K))<0)return-1}else if(he!=ue.charCodeAt(K++))return-1}return K}function X(q,ee,ue){var K=c.exec(ee.slice(ue));return K?(q.p=p.get(K[0].toLowerCase()),ue+K[0].length):-1}function Z(q,ee,ue){var K=x.exec(ee.slice(ue));return K?(q.w=w.get(K[0].toLowerCase()),ue+K[0].length):-1}function Y(q,ee,ue){var K=m.exec(ee.slice(ue));return K?(q.w=v.get(K[0].toLowerCase()),ue+K[0].length):-1}function te(q,ee,ue){var K=C.exec(ee.slice(ue));return K?(q.m=O.get(K[0].toLowerCase()),ue+K[0].length):-1}function ae(q,ee,ue){var K=_.exec(ee.slice(ue));return K?(q.m=S.get(K[0].toLowerCase()),ue+K[0].length):-1}function Q(q,ee,ue){return V(q,t,ee,ue)}function ne(q,ee,ue){return V(q,n,ee,ue)}function H(q,ee,ue){return V(q,r,ee,ue)}function B(q){return s[q.getDay()]}function U(q){return a[q.getDay()]}function F(q){return f[q.getMonth()]}function M(q){return u[q.getMonth()]}function k(q){return i[+(q.getHours()>=12)]}function J(q){return 1+~~(q.getMonth()/3)}function W(q){return s[q.getUTCDay()]}function ie(q){return a[q.getUTCDay()]}function fe(q){return f[q.getUTCMonth()]}function ce(q){return u[q.getUTCMonth()]}function ye(q){return i[+(q.getUTCHours()>=12)]}function z(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var ee=R(q+="",T);return ee.toString=function(){return q},ee},parse:function(q){var ee=$(q+="",!1);return ee.toString=function(){return q},ee},utcFormat:function(q){var ee=R(q+="",P);return ee.toString=function(){return q},ee},utcParse:function(q){var ee=$(q+="",!0);return ee.toString=function(){return q},ee}}}var QL={"-":"",_:" ",0:"0"},ur=/^\s*\d+/,Ece=/^%/,Tce=/[\\^$*+?|[\]().{}]/g;function Ft(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function jce(e){return e.replace(Tce,"\\$&")}function zh(e){return new RegExp("^(?:"+e.map(jce).join("|")+")","i")}function $h(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Pce(e,t,n){var r=ur.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Rce(e,t,n){var r=ur.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Mce(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Nce(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Lce(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function JL(e,t,n){var r=ur.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eD(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dce(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 kce(e,t,n){var r=ur.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ice(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tD(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Uce(e,t,n){var r=ur.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nD(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bce(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zce(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $ce(e,t,n){var r=ur.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fce(e,t,n){var r=ur.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qce(e,t,n){var r=Ece.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vce(e,t,n){var r=ur.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Hce(e,t,n){var r=ur.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rD(e,t){return Ft(e.getDate(),t,2)}function Gce(e,t){return Ft(e.getHours(),t,2)}function Wce(e,t){return Ft(e.getHours()%12||12,t,2)}function Yce(e,t){return Ft(1+Nm.count(ts(e),e),t,3)}function zB(e,t){return Ft(e.getMilliseconds(),t,3)}function Kce(e,t){return zB(e,t)+"000"}function Zce(e,t){return Ft(e.getMonth()+1,t,2)}function Xce(e,t){return Ft(e.getMinutes(),t,2)}function Qce(e,t){return Ft(e.getSeconds(),t,2)}function Jce(e){var t=e.getDay();return t===0?7:t}function efe(e,t){return Ft(_b.count(ts(e)-1,e),t,2)}function $B(e){var t=e.getDay();return t>=4||t===0?Mf(e):Mf.ceil(e)}function tfe(e,t){return e=$B(e),Ft(Mf.count(ts(e),e)+(ts(e).getDay()===4),t,2)}function nfe(e){return e.getDay()}function rfe(e,t){return Ft(qy.count(ts(e)-1,e),t,2)}function ife(e,t){return Ft(e.getFullYear()%100,t,2)}function afe(e,t){return e=$B(e),Ft(e.getFullYear()%100,t,2)}function ofe(e,t){return Ft(e.getFullYear()%1e4,t,4)}function sfe(e,t){var n=e.getDay();return e=n>=4||n===0?Mf(e):Mf.ceil(e),Ft(e.getFullYear()%1e4,t,4)}function lfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ft(t/60|0,"0",2)+Ft(t%60,"0",2)}function iD(e,t){return Ft(e.getUTCDate(),t,2)}function ufe(e,t){return Ft(e.getUTCHours(),t,2)}function cfe(e,t){return Ft(e.getUTCHours()%12||12,t,2)}function ffe(e,t){return Ft(1+bb.count(ns(e),e),t,3)}function FB(e,t){return Ft(e.getUTCMilliseconds(),t,3)}function dfe(e,t){return FB(e,t)+"000"}function hfe(e,t){return Ft(e.getUTCMonth()+1,t,2)}function pfe(e,t){return Ft(e.getUTCMinutes(),t,2)}function mfe(e,t){return Ft(e.getUTCSeconds(),t,2)}function gfe(e){var t=e.getUTCDay();return t===0?7:t}function vfe(e,t){return Ft(xb.count(ns(e)-1,e),t,2)}function qB(e){var t=e.getUTCDay();return t>=4||t===0?Nf(e):Nf.ceil(e)}function yfe(e,t){return e=qB(e),Ft(Nf.count(ns(e),e)+(ns(e).getUTCDay()===4),t,2)}function bfe(e){return e.getUTCDay()}function _fe(e,t){return Ft(Vy.count(ns(e)-1,e),t,2)}function xfe(e,t){return Ft(e.getUTCFullYear()%100,t,2)}function wfe(e,t){return e=qB(e),Ft(e.getUTCFullYear()%100,t,2)}function Sfe(e,t){return Ft(e.getUTCFullYear()%1e4,t,4)}function Cfe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Nf(e):Nf.ceil(e),Ft(e.getUTCFullYear()%1e4,t,4)}function Afe(){return"+0000"}function aD(){return"%"}function oD(e){return+e}function sD(e){return Math.floor(+e/1e3)}var Zc,VB,HB;Ofe({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 Ofe(e){return Zc=Oce(e),VB=Zc.format,Zc.parse,HB=Zc.utcFormat,Zc.utcParse,Zc}function Efe(e){return new Date(e)}function Tfe(e){return e instanceof Date?+e:+new Date(+e)}function IT(e,t,n,r,i,a,s,u,f,c){var p=ST(),m=p.invert,v=p.domain,x=c(".%L"),w=c(":%S"),_=c("%I:%M"),S=c("%I %p"),C=c("%a %d"),O=c("%b %d"),T=c("%B"),P=c("%Y");function j(R){return(f(R)<R?x:u(R)<R?w:s(R)<R?_:a(R)<R?S:r(R)<R?i(R)<R?C:O:n(R)<R?T:P)(R)}return p.invert=function(R){return new Date(m(R))},p.domain=function(R){return arguments.length?v(Array.from(R,Tfe)):v().map(Efe)},p.ticks=function(R){var $=v();return e($[0],$[$.length-1],R??10)},p.tickFormat=function(R,$){return $==null?j:c($)},p.nice=function(R){var $=v();return(!R||typeof R.range!="function")&&(R=t($[0],$[$.length-1],R??10)),R?v(RB($,R)):p},p.copy=function(){return Mm(p,IT(e,t,n,r,i,a,s,u,f,c))},p}function jfe(){return Qi.apply(IT(Cce,Ace,ts,DT,_b,Nm,NT,RT,Tu,VB).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Pfe(){return Qi.apply(IT(wce,Sce,ns,kT,xb,bb,LT,MT,Tu,HB).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function wb(){var e=0,t=1,n,r,i,a,s=Fr,u=!1,f;function c(m){return m==null||isNaN(m=+m)?f:s(i===0?.5:(m=(a(m)-n)*i,u?Math.max(0,Math.min(1,m)):m))}c.domain=function(m){return arguments.length?([e,t]=m,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(m){return arguments.length?(u=!!m,c):u},c.interpolator=function(m){return arguments.length?(s=m,c):s};function p(m){return function(v){var x,w;return arguments.length?([x,w]=v,s=m(x,w),c):[s(0),s(1)]}}return c.range=p(vd),c.rangeRound=p(wT),c.unknown=function(m){return arguments.length?(f=m,c):f},function(m){return a=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),c}}function Dl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function GB(){var e=Ll(wb()(Fr));return e.copy=function(){return Dl(e,GB())},ls.apply(e,arguments)}function WB(){var e=OT(wb()).domain([1,10]);return e.copy=function(){return Dl(e,WB()).base(e.base())},ls.apply(e,arguments)}function YB(){var e=ET(wb());return e.copy=function(){return Dl(e,YB()).constant(e.constant())},ls.apply(e,arguments)}function UT(){var e=TT(wb());return e.copy=function(){return Dl(e,UT()).exponent(e.exponent())},ls.apply(e,arguments)}function Rfe(){return UT.apply(null,arguments).exponent(.5)}function KB(){var e=[],t=Fr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Pm(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(gl),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,a)=>vue(e,a/r))},n.copy=function(){return KB(t).domain(e)},ls.apply(n,arguments)}function Sb(){var e=0,t=.5,n=1,r=1,i,a,s,u,f,c=Fr,p,m=!1,v;function x(_){return isNaN(_=+_)?v:(_=.5+((_=+p(_))-a)*(r*_<r*a?u:f),c(m?Math.max(0,Math.min(1,_)):_))}x.domain=function(_){return arguments.length?([e,t,n]=_,i=p(e=+e),a=p(t=+t),s=p(n=+n),u=i===a?0:.5/(a-i),f=a===s?0:.5/(s-a),r=a<i?-1:1,x):[e,t,n]},x.clamp=function(_){return arguments.length?(m=!!_,x):m},x.interpolator=function(_){return arguments.length?(c=_,x):c};function w(_){return function(S){var C,O,T;return arguments.length?([C,O,T]=S,c=que(_,[C,O,T]),x):[c(0),c(.5),c(1)]}}return x.range=w(vd),x.rangeRound=w(wT),x.unknown=function(_){return arguments.length?(v=_,x):v},function(_){return p=_,i=_(e),a=_(t),s=_(n),u=i===a?0:.5/(a-i),f=a===s?0:.5/(s-a),r=a<i?-1:1,x}}function ZB(){var e=Ll(Sb()(Fr));return e.copy=function(){return Dl(e,ZB())},ls.apply(e,arguments)}function XB(){var e=OT(Sb()).domain([.1,1,10]);return e.copy=function(){return Dl(e,XB()).base(e.base())},ls.apply(e,arguments)}function QB(){var e=ET(Sb());return e.copy=function(){return Dl(e,QB()).constant(e.constant())},ls.apply(e,arguments)}function BT(){var e=TT(Sb());return e.copy=function(){return Dl(e,BT()).exponent(e.exponent())},ls.apply(e,arguments)}function Mfe(){return BT.apply(null,arguments).exponent(.5)}const lD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Up,scaleDiverging:ZB,scaleDivergingLog:XB,scaleDivergingPow:BT,scaleDivergingSqrt:Mfe,scaleDivergingSymlog:QB,scaleIdentity:PB,scaleImplicit:FA,scaleLinear:$y,scaleLog:MB,scaleOrdinal:bT,scalePoint:cp,scalePow:jT,scaleQuantile:DB,scaleQuantize:kB,scaleRadial:LB,scaleSequential:GB,scaleSequentialLog:WB,scaleSequentialPow:UT,scaleSequentialQuantile:KB,scaleSequentialSqrt:Rfe,scaleSequentialSymlog:YB,scaleSqrt:dce,scaleSymlog:NB,scaleThreshold:IB,scaleTime:jfe,scaleUtc:Pfe,tickFormat:jB},Symbol.toStringTag,{value:"Module"}));var IS,uD;function Cb(){if(uD)return IS;uD=1;var e=hd();function t(n,r,i){for(var a=-1,s=n.length;++a<s;){var u=n[a],f=r(u);if(f!=null&&(c===void 0?f===f&&!e(f):i(f,c)))var c=f,p=u}return p}return IS=t,IS}var US,cD;function JB(){if(cD)return US;cD=1;function e(t,n){return t>n}return US=e,US}var BS,fD;function Nfe(){if(fD)return BS;fD=1;var e=Cb(),t=JB(),n=gd();function r(i){return i&&i.length?e(i,n,t):void 0}return BS=r,BS}var Lfe=Nfe();const fl=qt(Lfe);var zS,dD;function ez(){if(dD)return zS;dD=1;function e(t,n){return t<n}return zS=e,zS}var $S,hD;function Dfe(){if(hD)return $S;hD=1;var e=Cb(),t=ez(),n=gd();function r(i){return i&&i.length?e(i,n,t):void 0}return $S=r,$S}var kfe=Dfe();const Ab=qt(kfe);var FS,pD;function Ife(){if(pD)return FS;pD=1;var e=nT(),t=lo(),n=lB(),r=ri();function i(a,s){var u=r(a)?e:n;return u(a,t(s,3))}return FS=i,FS}var qS,mD;function Ufe(){if(mD)return qS;mD=1;var e=oB(),t=Ife();function n(r,i){return e(t(r,i),1)}return qS=n,qS}var Bfe=Ufe();const zfe=qt(Bfe);var VS,gD;function $fe(){if(gD)return VS;gD=1;var e=pT();function t(n,r){return e(n,r)}return VS=t,VS}var Ffe=$fe();const Tl=qt(Ffe);var yd=1e9,qfe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$T,xn=!0,Zi="[DecimalError] ",Mu=Zi+"Invalid argument: ",zT=Zi+"Exponent out of range: ",bd=Math.floor,_u=Math.pow,Vfe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xi,sr=1e7,pn=7,tz=9007199254740991,Hy=bd(tz/pn),nt={};nt.absoluteValue=nt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};nt.comparedTo=nt.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};nt.decimalPlaces=nt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*pn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};nt.dividedBy=nt.div=function(e){return Go(this,new this.constructor(e))};nt.dividedToIntegerBy=nt.idiv=function(e){var t=this,n=t.constructor;return en(Go(t,new n(e),0,1),n.precision)};nt.equals=nt.eq=function(e){return!this.cmp(e)};nt.exponent=function(){return qn(this)};nt.greaterThan=nt.gt=function(e){return this.cmp(e)>0};nt.greaterThanOrEqualTo=nt.gte=function(e){return this.cmp(e)>=0};nt.isInteger=nt.isint=function(){return this.e>this.d.length-2};nt.isNegative=nt.isneg=function(){return this.s<0};nt.isPositive=nt.ispos=function(){return this.s>0};nt.isZero=function(){return this.s===0};nt.lessThan=nt.lt=function(e){return this.cmp(e)<0};nt.lessThanOrEqualTo=nt.lte=function(e){return this.cmp(e)<1};nt.logarithm=nt.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(xi))throw Error(Zi+"NaN");if(n.s<1)throw Error(Zi+(n.s?"NaN":"-Infinity"));return n.eq(xi)?new r(0):(xn=!1,t=Go(qp(n,a),qp(e,a),a),xn=!0,en(t,i))};nt.minus=nt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?iz(t,e):nz(t,(e.s=-e.s,e))};nt.modulo=nt.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Zi+"NaN");return n.s?(xn=!1,t=Go(n,e,0,1).times(e),xn=!0,n.minus(t)):en(new r(n),i)};nt.naturalExponential=nt.exp=function(){return rz(this)};nt.naturalLogarithm=nt.ln=function(){return qp(this)};nt.negated=nt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};nt.plus=nt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nz(t,e):iz(t,(e.s=-e.s,e))};nt.precision=nt.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Mu+e);if(t=qn(i)+1,r=i.d.length-1,n=r*pn+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};nt.squareRoot=nt.sqrt=function(){var e,t,n,r,i,a,s,u=this,f=u.constructor;if(u.s<1){if(!u.s)return new f(0);throw Error(Zi+"NaN")}for(e=qn(u),xn=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ha(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=bd((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 f(t)):r=new f(i.toString()),n=f.precision,i=s=n+3;;)if(a=r,r=a.plus(Go(u,a,s+2)).times(.5),Ha(a.d).slice(0,s)===(t=Ha(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(en(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;s+=4}return xn=!0,en(r,n)};nt.times=nt.mul=function(e){var t,n,r,i,a,s,u,f,c,p=this,m=p.constructor,v=p.d,x=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,n=p.e+e.e,f=v.length,c=x.length,f<c&&(a=v,v=x,x=a,s=f,f=c,c=s),a=[],s=f+c,r=s;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=f+r;i>r;)u=a[i]+x[r]*v[i-r-1]+t,a[i--]=u%sr|0,t=u/sr|0;a[i]=(a[i]+t)%sr|0}for(;!a[--s];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,xn?en(e,m.precision):e};nt.toDecimalPlaces=nt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Qa(e,0,yd),t===void 0?t=r.rounding:Qa(t,0,8),en(n,e+qn(n)+1,t))};nt.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Vu(r,!0):(Qa(e,0,yd),t===void 0?t=i.rounding:Qa(t,0,8),r=en(new i(r),e+1,t),n=Vu(r,!0,e+1)),n};nt.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?Vu(i):(Qa(e,0,yd),t===void 0?t=a.rounding:Qa(t,0,8),r=en(new a(i),e+qn(i)+1,t),n=Vu(r.abs(),!1,e+qn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};nt.toInteger=nt.toint=function(){var e=this,t=e.constructor;return en(new t(e),qn(e)+1,t.rounding)};nt.toNumber=function(){return+this};nt.toPower=nt.pow=function(e){var t,n,r,i,a,s,u=this,f=u.constructor,c=12,p=+(e=new f(e));if(!e.s)return new f(xi);if(u=new f(u),!u.s){if(e.s<1)throw Error(Zi+"Infinity");return u}if(u.eq(xi))return u;if(r=f.precision,e.eq(xi))return en(u,r);if(t=e.e,n=e.d.length-1,s=t>=n,a=u.s,s){if((n=p<0?-p:p)<=tz){for(i=new f(xi),t=Math.ceil(r/pn+4),xn=!1;n%2&&(i=i.times(u),yD(i.d,t)),n=bd(n/2),n!==0;)u=u.times(u),yD(u.d,t);return xn=!0,e.s<0?new f(xi).div(i):en(i,r)}}else if(a<0)throw Error(Zi+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,xn=!1,i=e.times(qp(u,r+c)),xn=!0,i=rz(i),i.s=a,i};nt.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=qn(i),r=Vu(i,n<=a.toExpNeg||n>=a.toExpPos)):(Qa(e,1,yd),t===void 0?t=a.rounding:Qa(t,0,8),i=en(new a(i),e,t),n=qn(i),r=Vu(i,e<=n||n<=a.toExpNeg,e)),r};nt.toSignificantDigits=nt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Qa(e,1,yd),t===void 0?t=r.rounding:Qa(t,0,8)),en(new r(n),e,t)};nt.toString=nt.valueOf=nt.val=nt.toJSON=nt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=qn(e),n=e.constructor;return Vu(e,t<=n.toExpNeg||t>=n.toExpPos)};function nz(e,t){var n,r,i,a,s,u,f,c,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),xn?en(t,m):t;if(f=e.d,c=t.d,s=e.e,i=t.e,f=f.slice(),a=s-i,a){for(a<0?(r=f,a=-a,u=c.length):(r=c,i=s,u=f.length),s=Math.ceil(m/pn),u=s>u?s+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=f.length,a=c.length,u-a<0&&(a=u,r=c,c=f,f=r),n=0;a;)n=(f[--a]=f[a]+c[a]+n)/sr|0,f[a]%=sr;for(n&&(f.unshift(n),++i),u=f.length;f[--u]==0;)f.pop();return t.d=f,t.e=i,xn?en(t,m):t}function Qa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Mu+e)}function Ha(e){var t,n,r,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)r=e[t]+"",n=pn-r.length,n&&(a+=ll(n)),a+=r;s=e[t],r=s+"",n=pn-r.length,n&&(a+=ll(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var Go=function(){function e(r,i){var a,s=0,u=r.length;for(r=r.slice();u--;)a=r[u]*i+s,r[u]=a%sr|0,s=a/sr|0;return s&&r.unshift(s),r}function t(r,i,a,s){var u,f;if(a!=s)f=a>s?1:-1;else for(u=f=0;u<a;u++)if(r[u]!=i[u]){f=r[u]>i[u]?1:-1;break}return f}function n(r,i,a){for(var s=0;a--;)r[a]-=s,s=r[a]<i[a]?1:0,r[a]=s*sr+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,s){var u,f,c,p,m,v,x,w,_,S,C,O,T,P,j,R,$,V,X=r.constructor,Z=r.s==i.s?1:-1,Y=r.d,te=i.d;if(!r.s)return new X(r);if(!i.s)throw Error(Zi+"Division by zero");for(f=r.e-i.e,$=te.length,j=Y.length,x=new X(Z),w=x.d=[],c=0;te[c]==(Y[c]||0);)++c;if(te[c]>(Y[c]||0)&&--f,a==null?O=a=X.precision:s?O=a+(qn(r)-qn(i))+1:O=a,O<0)return new X(0);if(O=O/pn+2|0,c=0,$==1)for(p=0,te=te[0],O++;(c<j||p)&&O--;c++)T=p*sr+(Y[c]||0),w[c]=T/te|0,p=T%te|0;else{for(p=sr/(te[0]+1)|0,p>1&&(te=e(te,p),Y=e(Y,p),$=te.length,j=Y.length),P=$,_=Y.slice(0,$),S=_.length;S<$;)_[S++]=0;V=te.slice(),V.unshift(0),R=te[0],te[1]>=sr/2&&++R;do p=0,u=t(te,_,$,S),u<0?(C=_[0],$!=S&&(C=C*sr+(_[1]||0)),p=C/R|0,p>1?(p>=sr&&(p=sr-1),m=e(te,p),v=m.length,S=_.length,u=t(m,_,v,S),u==1&&(p--,n(m,$<v?V:te,v))):(p==0&&(u=p=1),m=te.slice()),v=m.length,v<S&&m.unshift(0),n(_,m,S),u==-1&&(S=_.length,u=t(te,_,$,S),u<1&&(p++,n(_,$<S?V:te,S))),S=_.length):u===0&&(p++,_=[0]),w[c++]=p,u&&_[0]?_[S++]=Y[P]||0:(_=[Y[P]],S=1);while((P++<j||_[0]!==void 0)&&O--)}return w[0]||w.shift(),x.e=f,en(x,s?a+qn(x)+1:a)}}();function rz(e,t){var n,r,i,a,s,u,f=0,c=0,p=e.constructor,m=p.precision;if(qn(e)>16)throw Error(zT+qn(e));if(!e.s)return new p(xi);for(xn=!1,u=m,s=new p(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(r=Math.log(_u(2,c))/Math.LN10*2+5|0,u+=r,n=i=a=new p(xi),p.precision=u;;){if(i=en(i.times(e),u),n=n.times(++f),s=a.plus(Go(i,n,u)),Ha(s.d).slice(0,u)===Ha(a.d).slice(0,u)){for(;c--;)a=en(a.times(a),u);return p.precision=m,t==null?(xn=!0,en(a,m)):a}a=s}}function qn(e){for(var t=e.e*pn,n=e.d[0];n>=10;n/=10)t++;return t}function HS(e,t,n){if(t>e.LN10.sd())throw xn=!0,n&&(e.precision=n),Error(Zi+"LN10 precision limit exceeded");return en(new e(e.LN10),t)}function ll(e){for(var t="";e--;)t+="0";return t}function qp(e,t){var n,r,i,a,s,u,f,c,p,m=1,v=10,x=e,w=x.d,_=x.constructor,S=_.precision;if(x.s<1)throw Error(Zi+(x.s?"NaN":"-Infinity"));if(x.eq(xi))return new _(0);if(t==null?(xn=!1,c=S):c=t,x.eq(10))return t==null&&(xn=!0),HS(_,c);if(c+=v,_.precision=c,n=Ha(w),r=n.charAt(0),a=qn(x),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Ha(x.d),r=n.charAt(0),m++;a=qn(x),r>1?(x=new _("0."+n),a++):x=new _(r+"."+n.slice(1))}else return f=HS(_,c+2,S).times(a+""),x=qp(new _(r+"."+n.slice(1)),c-v).plus(f),_.precision=S,t==null?(xn=!0,en(x,S)):x;for(u=s=x=Go(x.minus(xi),x.plus(xi),c),p=en(x.times(x),c),i=3;;){if(s=en(s.times(p),c),f=u.plus(Go(s,new _(i),c)),Ha(f.d).slice(0,c)===Ha(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(HS(_,c+2,S).times(a+""))),u=Go(u,new _(m),c),_.precision=S,t==null?(xn=!0,en(u,S)):u;u=f,i+=2}}function vD(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=bd(n/pn),e.d=[],r=(n+1)%pn,n<0&&(r+=pn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=pn;r<i;)e.d.push(+t.slice(r,r+=pn));t=t.slice(r),r=pn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),xn&&(e.e>Hy||e.e<-Hy))throw Error(zT+n)}else e.s=0,e.e=0,e.d=[0];return e}function en(e,t,n){var r,i,a,s,u,f,c,p,m=e.d;for(s=1,a=m[0];a>=10;a/=10)s++;if(r=t-s,r<0)r+=pn,i=t,c=m[p=0];else{if(p=Math.ceil((r+1)/pn),a=m.length,p>=a)return e;for(c=a=m[p],s=1;a>=10;a/=10)s++;r%=pn,i=r-pn+s}if(n!==void 0&&(a=_u(10,s-i-1),u=c/a%10|0,f=t<0||m[p+1]!==void 0||c%a,f=n<4?(u||f)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||f||n==6&&(r>0?i>0?c/_u(10,s-i):0:m[p-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(a=qn(e),m.length=1,t=t-a-1,m[0]=_u(10,(pn-t%pn)%pn),e.e=bd(-t/pn)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=p,a=1,p--):(m.length=p+1,a=_u(10,pn-r),m[p]=i>0?(c/_u(10,s-i)%_u(10,i)|0)*a:0),f)for(;;)if(p==0){(m[0]+=a)==sr&&(m[0]=1,++e.e);break}else{if(m[p]+=a,m[p]!=sr)break;m[p--]=0,a=1}for(r=m.length;m[--r]===0;)m.pop();if(xn&&(e.e>Hy||e.e<-Hy))throw Error(zT+qn(e));return e}function iz(e,t){var n,r,i,a,s,u,f,c,p,m,v=e.constructor,x=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),xn?en(t,x):t;if(f=e.d,m=t.d,r=t.e,c=e.e,f=f.slice(),s=c-r,s){for(p=s<0,p?(n=f,s=-s,u=m.length):(n=m,r=c,u=f.length),i=Math.max(Math.ceil(x/pn),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=f.length,u=m.length,p=i<u,p&&(u=i),i=0;i<u;i++)if(f[i]!=m[i]){p=f[i]<m[i];break}s=0}for(p&&(n=f,f=m,m=n,t.s=-t.s),u=f.length,i=m.length-u;i>0;--i)f[u++]=0;for(i=m.length;i>s;){if(f[--i]<m[i]){for(a=i;a&&f[--a]===0;)f[a]=sr-1;--f[a],f[i]+=sr}f[i]-=m[i]}for(;f[--u]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,xn?en(t,x):t):new v(0)}function Vu(e,t,n){var r,i=qn(e),a=Ha(e.d),s=a.length;return t?(n&&(r=n-s)>0?a=a.charAt(0)+"."+a.slice(1)+ll(r):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ll(-i-1)+a,n&&(r=n-s)>0&&(a+=ll(r))):i>=s?(a+=ll(i+1-s),n&&(r=n-i-1)>0&&(a=a+"."+ll(r))):((r=i+1)<s&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(a+="."),a+=ll(r))),e.s<0?"-"+a:a}function yD(e,t){if(e.length>t)return e.length=t,!0}function az(e){var t,n,r;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Mu+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return vD(s,a.toString())}else if(typeof a!="string")throw Error(Mu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,Vfe.test(a))vD(s,a);else throw Error(Mu+a)}if(i.prototype=nt,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=az,i.config=i.set=Hfe,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 Hfe(e){if(!e||typeof e!="object")throw Error(Zi+"Object expected");var t,n,r,i=["precision",1,yd,"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(bd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Mu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Mu+n+": "+r);return this}var $T=az(qfe);xi=new $T(1);const Xt=$T;function Gfe(e){return Zfe(e)||Kfe(e)||Yfe(e)||Wfe()}function Wfe(){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 Yfe(e,t){if(e){if(typeof e=="string")return GA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GA(e,t)}}function Kfe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Zfe(e){if(Array.isArray(e))return GA(e)}function GA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xfe=function(t){return t},oz={},sz=function(t){return t===oz},bD=function(t){return function n(){return arguments.length===0||arguments.length===1&&sz(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Qfe=function e(t,n){return t===1?n:bD(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var s=i.filter(function(u){return u!==oz}).length;return s>=t?n.apply(void 0,i):e(t-s,bD(function(){for(var u=arguments.length,f=new Array(u),c=0;c<u;c++)f[c]=arguments[c];var p=i.map(function(m){return sz(m)?f.shift():m});return n.apply(void 0,Gfe(p).concat(f))}))})},Ob=function(t){return Qfe(t.length,t)},WA=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Jfe=Ob(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),ede=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Xfe;var i=n.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce(function(u,f){return f(u)},a.apply(void 0,arguments))}},YA=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},lz=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n&&a.every(function(u,f){return u===n[f]})||(n=a,r=t.apply(void 0,a)),r}};function tde(e){var t;return e===0?t=1:t=Math.floor(new Xt(e).abs().log(10).toNumber())+1,t}function nde(e,t,n){for(var r=new Xt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var rde=Ob(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),ide=Ob(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),ade=Ob(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Eb={rangeStep:nde,getDigitCount:tde,interpolateNumber:rde,uninterpolateNumber:ide,uninterpolateTruncation:ade};function KA(e){return lde(e)||sde(e)||uz(e)||ode()}function ode(){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 sde(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function lde(e){if(Array.isArray(e))return ZA(e)}function Vp(e,t){return fde(e)||cde(e,t)||uz(e,t)||ude()}function ude(){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 uz(e,t){if(e){if(typeof e=="string")return ZA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZA(e,t)}}function ZA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cde(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var s=e[Symbol.iterator](),u;!(r=(u=s.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,a=f}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw a}}return n}}function fde(e){if(Array.isArray(e))return e}function cz(e){var t=Vp(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function fz(e,t,n){if(e.lte(0))return new Xt(0);var r=Eb.getDigitCount(e.toNumber()),i=new Xt(10).pow(r),a=e.div(i),s=r!==1?.05:.1,u=new Xt(Math.ceil(a.div(s).toNumber())).add(n).mul(s),f=u.mul(i);return t?f:new Xt(Math.ceil(f))}function dde(e,t,n){var r=1,i=new Xt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Xt(10).pow(Eb.getDigitCount(e)-1),i=new Xt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Xt(Math.floor(e)))}else e===0?i=new Xt(Math.floor((t-1)/2)):n||(i=new Xt(Math.floor(e)));var s=Math.floor((t-1)/2),u=ede(Jfe(function(f){return i.add(new Xt(f-s).mul(r)).toNumber()}),WA);return u(0,t)}function dz(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Xt(0),tickMin:new Xt(0),tickMax:new Xt(0)};var a=fz(new Xt(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new Xt(0):(s=new Xt(e).add(t).div(2),s=s.sub(new Xt(s).mod(a)));var u=Math.ceil(s.sub(e).div(a).toNumber()),f=Math.ceil(new Xt(t).sub(s).div(a).toNumber()),c=u+f+1;return c>n?dz(e,t,n,r,i+1):(c<n&&(f=t>0?f+(n-c):f,u=t>0?u:u+(n-c)),{step:a,tickMin:s.sub(new Xt(u).mul(a)),tickMax:s.add(new Xt(f).mul(a))})}function hde(e){var t=Vp(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),u=cz([n,r]),f=Vp(u,2),c=f[0],p=f[1];if(c===-1/0||p===1/0){var m=p===1/0?[c].concat(KA(WA(0,i-1).map(function(){return 1/0}))):[].concat(KA(WA(0,i-1).map(function(){return-1/0})),[p]);return n>r?YA(m):m}if(c===p)return dde(c,i,a);var v=dz(c,p,s,a),x=v.step,w=v.tickMin,_=v.tickMax,S=Eb.rangeStep(w,_.add(new Xt(.1).mul(x)),x);return n>r?YA(S):S}function pde(e,t){var n=Vp(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=cz([r,i]),u=Vp(s,2),f=u[0],c=u[1];if(f===-1/0||c===1/0)return[r,i];if(f===c)return[f];var p=Math.max(t,2),m=fz(new Xt(c).sub(f).div(p-1),a,0),v=[].concat(KA(Eb.rangeStep(new Xt(f),new Xt(c).sub(new Xt(.99).mul(m)),m)),[c]);return r>i?YA(v):v}var mde=lz(hde),gde=lz(pde),vde="Invariant failed";function Hu(e,t){throw new Error(vde)}var yde=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gy.apply(this,arguments)}function bde(e,t){return Sde(e)||wde(e,t)||xde(e,t)||_de()}function _de(){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 xde(e,t){if(e){if(typeof e=="string")return _D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _D(e,t)}}function _D(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Sde(e){if(Array.isArray(e))return e}function Cde(e,t){if(e==null)return{};var n=Ade(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ade(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ode(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ede(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,mz(r.key),r)}}function Tde(e,t,n){return t&&Ede(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jde(e,t,n){return t=Wy(t),Pde(e,hz()?Reflect.construct(t,n||[],Wy(e).constructor):t.apply(e,n))}function Pde(e,t){if(t&&(Lf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rde(e)}function Rde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hz=function(){return!!e})()}function Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wy(e)}function Mde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XA(e,t)}function XA(e,t){return XA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},XA(e,t)}function pz(e,t,n){return t=mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mz(e){var t=Nde(e,"string");return Lf(t)=="symbol"?t:t+""}function Nde(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _d=function(e){function t(){return Ode(this,t),jde(this,t,arguments)}return Mde(t,e),Tde(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,s=r.width,u=r.dataKey,f=r.data,c=r.dataPointFormatter,p=r.xAxis,m=r.yAxis,v=Cde(r,yde),x=ot(v,!1);this.props.direction==="x"&&p.type!=="number"&&Hu();var w=f.map(function(_){var S=c(_,u),C=S.x,O=S.y,T=S.value,P=S.errorVal;if(!P)return null;var j=[],R,$;if(Array.isArray(P)){var V=bde(P,2);R=V[0],$=V[1]}else R=$=P;if(a==="vertical"){var X=p.scale,Z=O+i,Y=Z+s,te=Z-s,ae=X(T-R),Q=X(T+$);j.push({x1:Q,y1:Y,x2:Q,y2:te}),j.push({x1:ae,y1:Z,x2:Q,y2:Z}),j.push({x1:ae,y1:Y,x2:ae,y2:te})}else if(a==="horizontal"){var ne=m.scale,H=C+i,B=H-s,U=H+s,F=ne(T-R),M=ne(T+$);j.push({x1:B,y1:M,x2:U,y2:M}),j.push({x1:H,y1:F,x2:H,y2:M}),j.push({x1:B,y1:F,x2:U,y2:F})}return pe.createElement(St,Gy({className:"recharts-errorBar",key:"bar-".concat(j.map(function(k){return"".concat(k.x1,"-").concat(k.x2,"-").concat(k.y1,"-").concat(k.y2)}))},x),j.map(function(k){return pe.createElement("line",Gy({},k,{key:"line-".concat(k.x1,"-").concat(k.x2,"-").concat(k.y1,"-").concat(k.y2)}))}))});return pe.createElement(St,{className:"recharts-errorBars"},w)}}])}(pe.Component);pz(_d,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});pz(_d,"displayName","ErrorBar");function Hp(e){"@babel/helpers - typeof";return Hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hp(e)}function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(r){Lde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lde(e,t,n){return t=Dde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dde(e){var t=kde(e,"string");return Hp(t)=="symbol"?t:t+""}function kde(e,t){if(Hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gz=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,s=_i(n,gf);if(!s)return null;var u=gf.defaultProps,f=u!==void 0?hu(hu({},u),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:a==="children"?c=(r||[]).reduce(function(p,m){var v=m.item,x=m.props,w=x.sectors||x.data||[];return p.concat(w.map(function(_){return{type:s.props.iconType||v.props.legendType,value:_.name,color:_.fill,payload:_}}))},[]):c=(r||[]).map(function(p){var m=p.item,v=m.type.defaultProps,x=v!==void 0?hu(hu({},v),m.props):{},w=x.dataKey,_=x.name,S=x.legendType,C=x.hide;return{inactive:C,dataKey:w,type:f.iconType||S||"square",color:FT(m),value:_||w,payload:x}}),hu(hu(hu({},f),gf.getWithHeight(s,i)),{},{payload:c,item:s})};function Gp(e){"@babel/helpers - typeof";return Gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gp(e)}function wD(e){return zde(e)||Bde(e)||Ude(e)||Ide()}function Ide(){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 Ude(e,t){if(e){if(typeof e=="string")return QA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QA(e,t)}}function Bde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zde(e){if(Array.isArray(e))return QA(e)}function QA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(r){yf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yf(e,t,n){return t=$de(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $de(e){var t=Fde(e,"string");return Gp(t)=="symbol"?t:t+""}function Fde(e,t){if(Gp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mn(e,t,n){return pt(e)||pt(t)?n:Kn(t)?Ai(e,t,n):ht(t)?t(e):n}function fp(e,t,n,r){var i=zfe(e,function(u){return mn(u,t)});if(n==="number"){var a=i.filter(function(u){return Ze(u)||parseFloat(u)});return a.length?[Ab(a),fl(a)]:[1/0,-1/0]}var s=r?i.filter(function(u){return!pt(u)}):i;return s.map(function(u){return Kn(u)||u instanceof Date?u:""})}var qde=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=-1,u=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,c=0;c<u;c++){var p=c>0?i[c-1].coordinate:i[u-1].coordinate,m=i[c].coordinate,v=c>=u-1?i[0].coordinate:i[c+1].coordinate,x=void 0;if(zr(m-p)!==zr(v-m)){var w=[];if(zr(v-m)===zr(f[1]-f[0])){x=v;var _=m+f[1]-f[0];w[0]=Math.min(_,(_+p)/2),w[1]=Math.max(_,(_+p)/2)}else{x=p;var S=v+f[1]-f[0];w[0]=Math.min(m,(S+m)/2),w[1]=Math.max(m,(S+m)/2)}var C=[Math.min(m,(x+m)/2),Math.max(m,(x+m)/2)];if(t>C[0]&&t<=C[1]||t>=w[0]&&t<=w[1]){s=i[c].index;break}}else{var O=Math.min(p,v),T=Math.max(p,v);if(t>(O+m)/2&&t<=(T+m)/2){s=i[c].index;break}}}else for(var P=0;P<u;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<u-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===u-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){s=r[P].index;break}return s},FT=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,s=a.stroke,u=a.fill,f;switch(i){case"Line":f=s;break;case"Area":case"Radar":f=s&&s!=="none"?s:u;break;default:f=u;break}return f},Vde=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var s={},u=Object.keys(a),f=0,c=u.length;f<c;f++)for(var p=a[u[f]].stackGroups,m=Object.keys(p),v=0,x=m.length;v<x;v++){var w=p[m[v]],_=w.items,S=w.cateAxisId,C=_.filter(function($){return Ho($.type).indexOf("Bar")>=0});if(C&&C.length){var O=C[0].type.defaultProps,T=O!==void 0?Pn(Pn({},O),C[0].props):C[0].props,P=T.barSize,j=T[S];s[j]||(s[j]=[]);var R=pt(P)?n:P;s[j].push({item:C[0],stackList:C.slice(1),barSize:pt(R)?void 0:$r(R,r,0)})}}return s},Hde=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,s=a===void 0?[]:a,u=t.maxBarSize,f=s.length;if(f<1)return null;var c=$r(n,i,0,!0),p,m=[];if(s[0].barSize===+s[0].barSize){var v=!1,x=i/f,w=s.reduce(function(P,j){return P+j.barSize||0},0);w+=(f-1)*c,w>=i&&(w-=(f-1)*c,c=0),w>=i&&x>0&&(v=!0,x*=.9,w=f*x);var _=(i-w)/2>>0,S={offset:_-c,size:0};p=s.reduce(function(P,j){var R={item:j.item,position:{offset:S.offset+S.size+c,size:v?x:j.barSize}},$=[].concat(wD(P),[R]);return S=$[$.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(V){$.push({item:V,position:S})}),$},m)}else{var C=$r(r,i,0,!0);i-2*C-(f-1)*c<=0&&(c=0);var O=(i-2*C-(f-1)*c)/f;O>1&&(O>>=0);var T=u===+u?Math.min(O,u):O;p=s.reduce(function(P,j,R){var $=[].concat(wD(P),[{item:j.item,position:{offset:C+(O+c)*R+(O-T)/2,size:T}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(V){$.push({item:V,position:$[$.length-1].position})}),$},m)}return p},Gde=function(t,n,r,i){var a=r.children,s=r.width,u=r.margin,f=s-(u.left||0)-(u.right||0),c=gz({children:a,legendWidth:f});if(c){var p=i||{},m=p.width,v=p.height,x=c.align,w=c.verticalAlign,_=c.layout;if((_==="vertical"||_==="horizontal"&&w==="middle")&&x!=="center"&&Ze(t[x]))return Pn(Pn({},t),{},yf({},x,t[x]+(m||0)));if((_==="horizontal"||_==="vertical"&&x==="center")&&w!=="middle"&&Ze(t[w]))return Pn(Pn({},t),{},yf({},w,t[w]+(v||0)))}return t},Wde=function(t,n,r){return pt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},vz=function(t,n,r,i,a){var s=n.props.children,u=Hr(s,_d).filter(function(c){return Wde(i,a,c.props.direction)});if(u&&u.length){var f=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,p){var m=mn(p,r);if(pt(m))return c;var v=Array.isArray(m)?[Ab(m),fl(m)]:[m,m],x=f.reduce(function(w,_){var S=mn(p,_,0),C=v[0]-Math.abs(Array.isArray(S)?S[0]:S),O=v[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(C,w[0]),Math.max(O,w[1])]},[1/0,-1/0]);return[Math.min(x[0],c[0]),Math.max(x[1],c[1])]},[1/0,-1/0])}return null},Yde=function(t,n,r,i,a){var s=n.map(function(u){return vz(t,u,r,a,i)}).filter(function(u){return!pt(u)});return s&&s.length?s.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]):null},yz=function(t,n,r,i,a){var s=n.map(function(f){var c=f.props.dataKey;return r==="number"&&c&&vz(t,f,c,i)||fp(t,c,r,a)});if(r==="number")return s.reduce(function(f,c){return[Math.min(f[0],c[0]),Math.max(f[1],c[1])]},[1/0,-1/0]);var u={};return s.reduce(function(f,c){for(var p=0,m=c.length;p<m;p++)u[c[p]]||(u[c[p]]=!0,f.push(c[p]));return f},[])},bz=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},_z=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var a,s,u=t.map(function(f){return f.coordinate===n&&(a=!0),f.coordinate===r&&(s=!0),f.coordinate});return a||u.push(n),s||u.push(r),u},Fo=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,s=t.type,u=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/f:0;if(c=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?zr(u[0]-u[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var p=(t.ticks||t.niceTicks).map(function(m){var v=a?a.indexOf(m):m;return{coordinate:i(v)+c,value:m,offset:c}});return p.filter(function(m){return!md(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,v){return{coordinate:i(m)+c,value:m,index:v,offset:c}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(m){return{coordinate:i(m)+c,value:m,offset:c}}):i.domain().map(function(m,v){return{coordinate:i(m)+c,value:a?a[m]:m,index:v,offset:c}})},GS=new WeakMap,Ev=function(t,n){if(typeof n!="function")return t;GS.has(t)||GS.set(t,new WeakMap);var r=GS.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},xz=function(t,n,r){var i=t.scale,a=t.type,s=t.layout,u=t.axisType;if(i==="auto")return s==="radial"&&u==="radiusAxis"?{scale:Up(),realScaleType:"band"}:s==="radial"&&u==="angleAxis"?{scale:$y(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:cp(),realScaleType:"point"}:a==="category"?{scale:Up(),realScaleType:"band"}:{scale:$y(),realScaleType:"linear"};if(Fu(i)){var f="scale".concat(cb(i));return{scale:(lD[f]||cp)(),realScaleType:lD[f]?f:"point"}}return ht(i)?{scale:i}:{scale:cp(),realScaleType:"point"}},CD=1e-4,wz=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-CD,s=Math.max(i[0],i[1])+CD,u=t(n[0]),f=t(n[r-1]);(u<a||u>s||f<a||f>s)&&t.domain([n[0],n[r-1]])}},Kde=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},Zde=function(t,n){if(!n||n.length!==2||!Ze(n[0])||!Ze(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!Ze(t[0])||t[0]<r)&&(a[0]=r),(!Ze(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},Xde=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,s=0,u=0;u<n;++u){var f=md(t[u][r][1])?t[u][r][0]:t[u][r][1];f>=0?(t[u][r][0]=a,t[u][r][1]=a+f,a=t[u][r][1]):(t[u][r][0]=s,t[u][r][1]=s+f,s=t[u][r][1])}},Qde=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,s=0;s<n;++s){var u=md(t[s][r][1])?t[s][r][0]:t[s][r][1];u>=0?(t[s][r][0]=a,t[s][r][1]=a+u,a=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},Jde={sign:Xde,expand:Bae,none:Of,silhouette:zae,wiggle:$ae,positive:Qde},ehe=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),a=Jde[r],s=Uae().keys(i).value(function(u,f){return+mn(u,f,0)}).order(TA).offset(a);return s(t)},the=function(t,n,r,i,a,s){if(!t)return null;var u=s?n.reverse():n,f={},c=u.reduce(function(m,v){var x,w=(x=v.type)!==null&&x!==void 0&&x.defaultProps?Pn(Pn({},v.type.defaultProps),v.props):v.props,_=w.stackId,S=w.hide;if(S)return m;var C=w[r],O=m[C]||{hasStack:!1,stackGroups:{}};if(Kn(_)){var T=O.stackGroups[_]||{numericAxisId:r,cateAxisId:i,items:[]};T.items.push(v),O.hasStack=!0,O.stackGroups[_]=T}else O.stackGroups[Nl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return Pn(Pn({},m),{},yf({},C,O))},f),p={};return Object.keys(c).reduce(function(m,v){var x=c[v];if(x.hasStack){var w={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(_,S){var C=x.stackGroups[S];return Pn(Pn({},_),{},yf({},S,{numericAxisId:r,cateAxisId:i,items:C.items,stackedData:ehe(t,C.items,a)}))},w)}return Pn(Pn({},m),{},yf({},v,x))},p)},Sz=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,s=n.originalDomain,u=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var c=t.domain();if(!c.length)return null;var p=mde(c,a,u);return t.domain([Ab(p),fl(p)]),{niceTicks:p}}if(a&&i==="number"){var m=t.domain(),v=gde(m,a,u);return{niceTicks:v}}return null};function Df(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pt(i[t.dataKey])){var u=Sy(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var f=mn(i,pt(s)?t.dataKey:s);return pt(f)?null:t.scale(f)}var AD=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,s=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var f=mn(s,n.dataKey,n.domain[u]);return pt(f)?null:n.scale(f)-a/2+i},nhe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},rhe=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Kn(a)){var s=n[a];if(s){var u=s.items.indexOf(t);return u>=0?s.stackedData[u]:null}}return null},ihe=function(t){return t.reduce(function(n,r){return[Ab(r.concat([n[0]]).filter(Ze)),fl(r.concat([n[1]]).filter(Ze))]},[1/0,-1/0])},Cz=function(t,n,r){return Object.keys(t).reduce(function(i,a){var s=t[a],u=s.stackedData,f=u.reduce(function(c,p){var m=ihe(p.slice(n,r+1));return[Math.min(c[0],m[0]),Math.max(c[1],m[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},OD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ED=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,JA=function(t,n,r){if(ht(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ze(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(OD.test(t[0])){var a=+OD.exec(t[0])[1];i[0]=n[0]-a}else ht(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ze(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(ED.test(t[1])){var s=+ED.exec(t[1])[1];i[1]=n[1]+s}else ht(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Yy=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=gT(n,function(m){return m.coordinate}),s=1/0,u=1,f=a.length;u<f;u++){var c=a[u],p=a[u-1];s=Math.min((c.coordinate||0)-(p.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},TD=function(t,n,r){return!t||!t.length||Tl(t,Ai(r,"type.defaultProps.domain"))?n:t},Az=function(t,n){var r=t.type.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,s=r.unit,u=r.formatter,f=r.tooltipType,c=r.chartType,p=r.hide;return Pn(Pn({},ot(t,!1)),{},{dataKey:i,unit:s,formatter:u,name:a||i,color:FT(t),value:mn(n,i),type:f,payload:n,chartType:c,hide:p})};function Wp(e){"@babel/helpers - typeof";return Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wp(e)}function jD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(n),!0).forEach(function(r){Oz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oz(e,t,n){return t=ahe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ahe(e){var t=ohe(e,"string");return Wp(t)=="symbol"?t:t+""}function ohe(e,t){if(Wp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function she(e,t){return fhe(e)||che(e,t)||uhe(e,t)||lhe()}function lhe(){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 uhe(e,t){if(e){if(typeof e=="string")return PD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PD(e,t)}}function PD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function che(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function fhe(e){if(Array.isArray(e))return e}var Ky=Math.PI/180,dhe=function(t){return t*180/Math.PI},dn=function(t,n,r,i){return{x:t+Math.cos(-Ky*i)*r,y:n+Math.sin(-Ky*i)*r}},Ez=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},hhe=function(t,n,r,i,a){var s=t.width,u=t.height,f=t.startAngle,c=t.endAngle,p=$r(t.cx,s,s/2),m=$r(t.cy,u,u/2),v=Ez(s,u,r),x=$r(t.innerRadius,v,0),w=$r(t.outerRadius,v,v*.8),_=Object.keys(n);return _.reduce(function(S,C){var O=n[C],T=O.domain,P=O.reversed,j;if(pt(O.range))i==="angleAxis"?j=[f,c]:i==="radiusAxis"&&(j=[x,w]),P&&(j=[j[1],j[0]]);else{j=O.range;var R=j,$=she(R,2);f=$[0],c=$[1]}var V=xz(O,a),X=V.realScaleType,Z=V.scale;Z.domain(T).range(j),wz(Z);var Y=Sz(Z,Bo(Bo({},O),{},{realScaleType:X})),te=Bo(Bo(Bo({},O),Y),{},{range:j,radius:w,realScaleType:X,scale:Z,cx:p,cy:m,innerRadius:x,outerRadius:w,startAngle:f,endAngle:c});return Bo(Bo({},S),{},Oz({},C,te))},{})},phe=function(t,n){var r=t.x,i=t.y,a=n.x,s=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-s,2))},mhe=function(t,n){var r=t.x,i=t.y,a=n.cx,s=n.cy,u=phe({x:r,y:i},{x:a,y:s});if(u<=0)return{radius:u};var f=(r-a)/u,c=Math.acos(f);return i>s&&(c=2*Math.PI-c),{radius:u,angle:dhe(c),angleInRadian:c}},ghe=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),s=Math.min(i,a);return{startAngle:n-s*360,endAngle:r-s*360}},vhe=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),s=Math.floor(i/360),u=Math.min(a,s);return t+u*360},RD=function(t,n){var r=t.x,i=t.y,a=mhe({x:r,y:i},n),s=a.radius,u=a.angle,f=n.innerRadius,c=n.outerRadius;if(s<f||s>c)return!1;if(s===0)return!0;var p=ghe(n),m=p.startAngle,v=p.endAngle,x=u,w;if(m<=v){for(;x>v;)x-=360;for(;x<m;)x+=360;w=x>=m&&x<=v}else{for(;x>m;)x-=360;for(;x<v;)x+=360;w=x>=v&&x<=m}return w?Bo(Bo({},n),{},{radius:s,angle:vhe(x,n)}):null},Tz=function(t){return!I.isValidElement(t)&&!ht(t)&&typeof t!="boolean"?t.className:""};function Yp(e){"@babel/helpers - typeof";return Yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yp(e)}var yhe=["offset"];function bhe(e){return She(e)||whe(e)||xhe(e)||_he()}function _he(){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 xhe(e,t){if(e){if(typeof e=="string")return eO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eO(e,t)}}function whe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function She(e){if(Array.isArray(e))return eO(e)}function eO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Che(e,t){if(e==null)return{};var n=Ahe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ahe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function MD(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 Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){Ohe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ohe(e,t,n){return t=Ehe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ehe(e){var t=The(e,"string");return Yp(t)=="symbol"?t:t+""}function The(e,t){if(Yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kp(){return Kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kp.apply(this,arguments)}var jhe=function(t){var n=t.value,r=t.formatter,i=pt(t.children)?n:t.children;return ht(r)?r(i):i},Phe=function(t,n){var r=zr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Rhe=function(t,n,r){var i=t.position,a=t.viewBox,s=t.offset,u=t.className,f=a,c=f.cx,p=f.cy,m=f.innerRadius,v=f.outerRadius,x=f.startAngle,w=f.endAngle,_=f.clockWise,S=(m+v)/2,C=Phe(x,w),O=C>=0?1:-1,T,P;i==="insideStart"?(T=x+O*s,P=_):i==="insideEnd"?(T=w-O*s,P=!_):i==="end"&&(T=w+O*s,P=_),P=C<=0?P:!P;var j=dn(c,p,S,T),R=dn(c,p,S,T+(P?1:-1)*359),$="M".concat(j.x,",").concat(j.y,`
|
||
A`).concat(S,",").concat(S,",0,1,").concat(P?0:1,`,
|
||
`).concat(R.x,",").concat(R.y),V=pt(t.id)?Nl("recharts-radial-line-"):t.id;return pe.createElement("text",Kp({},r,{dominantBaseline:"central",className:je("recharts-radial-bar-label",u)}),pe.createElement("defs",null,pe.createElement("path",{id:V,d:$})),pe.createElement("textPath",{xlinkHref:"#".concat(V)},n))},Mhe=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,s=a.cx,u=a.cy,f=a.innerRadius,c=a.outerRadius,p=a.startAngle,m=a.endAngle,v=(p+m)/2;if(i==="outside"){var x=dn(s,u,c+r,v),w=x.x,_=x.y;return{x:w,y:_,textAnchor:w>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:u,textAnchor:"middle",verticalAnchor:"end"};var S=(f+c)/2,C=dn(s,u,S,v),O=C.x,T=C.y;return{x:O,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Nhe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,s=n,u=s.x,f=s.y,c=s.width,p=s.height,m=p>=0?1:-1,v=m*i,x=m>0?"end":"start",w=m>0?"start":"end",_=c>=0?1:-1,S=_*i,C=_>0?"end":"start",O=_>0?"start":"end";if(a==="top"){var T={x:u+c/2,y:f-m*i,textAnchor:"middle",verticalAnchor:x};return Yn(Yn({},T),r?{height:Math.max(f-r.y,0),width:c}:{})}if(a==="bottom"){var P={x:u+c/2,y:f+p+v,textAnchor:"middle",verticalAnchor:w};return Yn(Yn({},P),r?{height:Math.max(r.y+r.height-(f+p),0),width:c}:{})}if(a==="left"){var j={x:u-S,y:f+p/2,textAnchor:C,verticalAnchor:"middle"};return Yn(Yn({},j),r?{width:Math.max(j.x-r.x,0),height:p}:{})}if(a==="right"){var R={x:u+c+S,y:f+p/2,textAnchor:O,verticalAnchor:"middle"};return Yn(Yn({},R),r?{width:Math.max(r.x+r.width-R.x,0),height:p}:{})}var $=r?{width:c,height:p}:{};return a==="insideLeft"?Yn({x:u+S,y:f+p/2,textAnchor:O,verticalAnchor:"middle"},$):a==="insideRight"?Yn({x:u+c-S,y:f+p/2,textAnchor:C,verticalAnchor:"middle"},$):a==="insideTop"?Yn({x:u+c/2,y:f+v,textAnchor:"middle",verticalAnchor:w},$):a==="insideBottom"?Yn({x:u+c/2,y:f+p-v,textAnchor:"middle",verticalAnchor:x},$):a==="insideTopLeft"?Yn({x:u+S,y:f+v,textAnchor:O,verticalAnchor:w},$):a==="insideTopRight"?Yn({x:u+c-S,y:f+v,textAnchor:C,verticalAnchor:w},$):a==="insideBottomLeft"?Yn({x:u+S,y:f+p-v,textAnchor:O,verticalAnchor:x},$):a==="insideBottomRight"?Yn({x:u+c-S,y:f+p-v,textAnchor:C,verticalAnchor:x},$):pd(a)&&(Ze(a.x)||Ou(a.x))&&(Ze(a.y)||Ou(a.y))?Yn({x:u+$r(a.x,c),y:f+$r(a.y,p),textAnchor:"end",verticalAnchor:"end"},$):Yn({x:u+c/2,y:f+p/2,textAnchor:"middle",verticalAnchor:"middle"},$)},Lhe=function(t){return"cx"in t&&Ze(t.cx)};function lr(e){var t=e.offset,n=t===void 0?5:t,r=Che(e,yhe),i=Yn({offset:n},r),a=i.viewBox,s=i.position,u=i.value,f=i.children,c=i.content,p=i.className,m=p===void 0?"":p,v=i.textBreakAll;if(!a||pt(u)&&pt(f)&&!I.isValidElement(c)&&!ht(c))return null;if(I.isValidElement(c))return I.cloneElement(c,i);var x;if(ht(c)){if(x=I.createElement(c,i),I.isValidElement(x))return x}else x=jhe(i);var w=Lhe(a),_=ot(i,!0);if(w&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Rhe(i,x,_);var S=w?Mhe(i):Nhe(i);return pe.createElement(qu,Kp({className:je("recharts-label",m)},_,S,{breakAll:v}),x)}lr.displayName="Label";var jz=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,s=t.endAngle,u=t.r,f=t.radius,c=t.innerRadius,p=t.outerRadius,m=t.x,v=t.y,x=t.top,w=t.left,_=t.width,S=t.height,C=t.clockWise,O=t.labelViewBox;if(O)return O;if(Ze(_)&&Ze(S)){if(Ze(m)&&Ze(v))return{x:m,y:v,width:_,height:S};if(Ze(x)&&Ze(w))return{x,y:w,width:_,height:S}}return Ze(m)&&Ze(v)?{x:m,y:v,width:0,height:0}:Ze(n)&&Ze(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:s||i||0,innerRadius:c||0,outerRadius:p||f||u||0,clockWise:C}:t.viewBox?t.viewBox:{}},Dhe=function(t,n){return t?t===!0?pe.createElement(lr,{key:"label-implicit",viewBox:n}):Kn(t)?pe.createElement(lr,{key:"label-implicit",viewBox:n,value:t}):I.isValidElement(t)?t.type===lr?I.cloneElement(t,{key:"label-implicit",viewBox:n}):pe.createElement(lr,{key:"label-implicit",content:t,viewBox:n}):ht(t)?pe.createElement(lr,{key:"label-implicit",content:t,viewBox:n}):pd(t)?pe.createElement(lr,Kp({viewBox:n},t,{key:"label-implicit"})):null:null},khe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=jz(t),s=Hr(i,lr).map(function(f,c){return I.cloneElement(f,{viewBox:n||a,key:"label-".concat(c)})});if(!r)return s;var u=Dhe(t.label,n||a);return[u].concat(bhe(s))};lr.parseViewBox=jz;lr.renderCallByParent=khe;var WS,ND;function Ihe(){if(ND)return WS;ND=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return WS=e,WS}var Uhe=Ihe();const Bhe=qt(Uhe);function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}var zhe=["valueAccessor"],$he=["data","dataKey","clockWise","id","textBreakAll"];function Fhe(e){return Ghe(e)||Hhe(e)||Vhe(e)||qhe()}function qhe(){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 Vhe(e,t){if(e){if(typeof e=="string")return tO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tO(e,t)}}function Hhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ghe(e){if(Array.isArray(e))return tO(e)}function tO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}function LD(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 DD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LD(Object(n),!0).forEach(function(r){Whe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Whe(e,t,n){return t=Yhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yhe(e){var t=Khe(e,"string");return Zp(t)=="symbol"?t:t+""}function Khe(e,t){if(Zp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kD(e,t){if(e==null)return{};var n=Zhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Xhe=function(t){return Array.isArray(t.value)?Bhe(t.value):t.value};function ma(e){var t=e.valueAccessor,n=t===void 0?Xhe:t,r=kD(e,zhe),i=r.data,a=r.dataKey,s=r.clockWise,u=r.id,f=r.textBreakAll,c=kD(r,$he);return!i||!i.length?null:pe.createElement(St,{className:"recharts-label-list"},i.map(function(p,m){var v=pt(a)?n(p,m):mn(p&&p.payload,a),x=pt(u)?{}:{id:"".concat(u,"-").concat(m)};return pe.createElement(lr,Zy({},ot(p,!0),c,x,{parentViewBox:p.parentViewBox,value:v,textBreakAll:f,viewBox:lr.parseViewBox(pt(s)?p:DD(DD({},p),{},{clockWise:s})),key:"label-".concat(m),index:m}))}))}ma.displayName="LabelList";function Qhe(e,t){return e?e===!0?pe.createElement(ma,{key:"labelList-implicit",data:t}):pe.isValidElement(e)||ht(e)?pe.createElement(ma,{key:"labelList-implicit",data:t,content:e}):pd(e)?pe.createElement(ma,Zy({data:t},e,{key:"labelList-implicit"})):null:null}function Jhe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Hr(r,ma).map(function(s,u){return I.cloneElement(s,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var a=Qhe(e.label,t);return[a].concat(Fhe(i))}ma.renderCallByParent=Jhe;function Xp(e){"@babel/helpers - typeof";return Xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(e)}function nO(){return nO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nO.apply(this,arguments)}function ID(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(n),!0).forEach(function(r){epe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function epe(e,t,n){return t=tpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tpe(e){var t=npe(e,"string");return Xp(t)=="symbol"?t:t+""}function npe(e,t){if(Xp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rpe=function(t,n){var r=zr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Tv=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,s=t.sign,u=t.isExternal,f=t.cornerRadius,c=t.cornerIsExternal,p=f*(u?1:-1)+i,m=Math.asin(f/p)/Ky,v=c?a:a+s*m,x=dn(n,r,p,v),w=dn(n,r,i,v),_=c?a-s*m:a,S=dn(n,r,p*Math.cos(m*Ky),_);return{center:x,circleTangency:w,lineTangency:S,theta:m}},Pz=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.startAngle,u=t.endAngle,f=rpe(s,u),c=s+f,p=dn(n,r,a,s),m=dn(n,r,a,c),v="M ".concat(p.x,",").concat(p.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(s>c),`,
|
||
`).concat(m.x,",").concat(m.y,`
|
||
`);if(i>0){var x=dn(n,r,i,s),w=dn(n,r,i,c);v+="L ".concat(w.x,",").concat(w.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(s<=c),`,
|
||
`).concat(x.x,",").concat(x.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},ipe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.cornerRadius,u=t.forceCornerRadius,f=t.cornerIsExternal,c=t.startAngle,p=t.endAngle,m=zr(p-c),v=Tv({cx:n,cy:r,radius:a,angle:c,sign:m,cornerRadius:s,cornerIsExternal:f}),x=v.circleTangency,w=v.lineTangency,_=v.theta,S=Tv({cx:n,cy:r,radius:a,angle:p,sign:-m,cornerRadius:s,cornerIsExternal:f}),C=S.circleTangency,O=S.lineTangency,T=S.theta,P=f?Math.abs(c-p):Math.abs(c-p)-_-T;if(P<0)return u?"M ".concat(w.x,",").concat(w.y,`
|
||
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
||
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
||
`):Pz({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:p});var j="M ".concat(w.x,",").concat(w.y,`
|
||
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(P>180),",").concat(+(m<0),",").concat(C.x,",").concat(C.y,`
|
||
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(O.x,",").concat(O.y,`
|
||
`);if(i>0){var R=Tv({cx:n,cy:r,radius:i,angle:c,sign:m,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),$=R.circleTangency,V=R.lineTangency,X=R.theta,Z=Tv({cx:n,cy:r,radius:i,angle:p,sign:-m,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),Y=Z.circleTangency,te=Z.lineTangency,ae=Z.theta,Q=f?Math.abs(c-p):Math.abs(c-p)-X-ae;if(Q<0&&s===0)return"".concat(j,"L").concat(n,",").concat(r,"Z");j+="L".concat(te.x,",").concat(te.y,`
|
||
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(Y.x,",").concat(Y.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(m>0),",").concat($.x,",").concat($.y,`
|
||
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(V.x,",").concat(V.y,"Z")}else j+="L".concat(n,",").concat(r,"Z");return j},ape={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Rz=function(t){var n=UD(UD({},ape),t),r=n.cx,i=n.cy,a=n.innerRadius,s=n.outerRadius,u=n.cornerRadius,f=n.forceCornerRadius,c=n.cornerIsExternal,p=n.startAngle,m=n.endAngle,v=n.className;if(s<a||p===m)return null;var x=je("recharts-sector",v),w=s-a,_=$r(u,w,0,!0),S;return _>0&&Math.abs(p-m)<360?S=ipe({cx:r,cy:i,innerRadius:a,outerRadius:s,cornerRadius:Math.min(_,w/2),forceCornerRadius:f,cornerIsExternal:c,startAngle:p,endAngle:m}):S=Pz({cx:r,cy:i,innerRadius:a,outerRadius:s,startAngle:p,endAngle:m}),pe.createElement("path",nO({},ot(n,!0),{className:x,d:S,role:"img"}))};function Qp(e){"@babel/helpers - typeof";return Qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qp(e)}function rO(){return rO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rO.apply(this,arguments)}function BD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(n),!0).forEach(function(r){ope(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ope(e,t,n){return t=spe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function spe(e){var t=lpe(e,"string");return Qp(t)=="symbol"?t:t+""}function lpe(e,t){if(Qp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $D={curveBasisClosed:Eae,curveBasisOpen:Tae,curveBasis:Oae,curveBumpX:dae,curveBumpY:hae,curveLinearClosed:jae,curveLinear:db,curveMonotoneX:Pae,curveMonotoneY:Rae,curveNatural:Mae,curveStep:Nae,curveStepAfter:Dae,curveStepBefore:Lae},jv=function(t){return t.x===+t.x&&t.y===+t.y},Fh=function(t){return t.x},qh=function(t){return t.y},upe=function(t,n){if(ht(t))return t;var r="curve".concat(cb(t));return(r==="curveMonotone"||r==="curveBump")&&n?$D["".concat(r).concat(n==="vertical"?"Y":"X")]:$D[r]||db},cpe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,s=t.baseLine,u=t.layout,f=t.connectNulls,c=f===void 0?!1:f,p=upe(r,u),m=c?a.filter(function(_){return jv(_)}):a,v;if(Array.isArray(s)){var x=c?s.filter(function(_){return jv(_)}):s,w=m.map(function(_,S){return zD(zD({},_),{},{base:x[S]})});return u==="vertical"?v=_v().y(qh).x1(Fh).x0(function(_){return _.base.x}):v=_v().x(Fh).y1(qh).y0(function(_){return _.base.y}),v.defined(jv).curve(p),v(w)}return u==="vertical"&&Ze(s)?v=_v().y(qh).x1(Fh).x0(s):Ze(s)?v=_v().x(Fh).y1(qh).y0(s):v=jU().x(Fh).y(qh),v.defined(jv).curve(p),v(m)},vl=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?cpe(t):i;return pe.createElement("path",rO({},ot(t,!1),Cy(t),{className:je("recharts-curve",n),d:s,ref:a}))},fpe=Object.getOwnPropertyNames,dpe=Object.getOwnPropertySymbols,hpe=Object.prototype.hasOwnProperty;function FD(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Pv(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,s=a.get(n),u=a.get(r);if(s&&u)return s===r&&u===n;a.set(n,r),a.set(r,n);var f=e(n,r,i);return a.delete(n),a.delete(r),f}}function qD(e){return fpe(e).concat(dpe(e))}var ppe=Object.hasOwn||function(e,t){return hpe.call(e,t)};function ec(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var mpe="__v",gpe="__o",vpe="_owner",VD=Object.getOwnPropertyDescriptor,HD=Object.keys;function ype(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function bpe(e,t){return ec(e.getTime(),t.getTime())}function _pe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function xpe(e,t){return e===t}function GD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.entries(),s,u,f=0;(s=a.next())&&!s.done;){for(var c=t.entries(),p=!1,m=0;(u=c.next())&&!u.done;){if(i[m]){m++;continue}var v=s.value,x=u.value;if(n.equals(v[0],x[0],f,m,e,t,n)&&n.equals(v[1],x[1],v[0],x[0],e,t,n)){p=i[m]=!0;break}m++}if(!p)return!1;f++}return!0}var wpe=ec;function Spe(e,t,n){var r=HD(e),i=r.length;if(HD(t).length!==i)return!1;for(;i-- >0;)if(!Mz(e,t,n,r[i]))return!1;return!0}function Vh(e,t,n){var r=qD(e),i=r.length;if(qD(t).length!==i)return!1;for(var a,s,u;i-- >0;)if(a=r[i],!Mz(e,t,n,a)||(s=VD(e,a),u=VD(t,a),(s||u)&&(!s||!u||s.configurable!==u.configurable||s.enumerable!==u.enumerable||s.writable!==u.writable)))return!1;return!0}function Cpe(e,t){return ec(e.valueOf(),t.valueOf())}function Ape(e,t){return e.source===t.source&&e.flags===t.flags}function WD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.values(),s,u;(s=a.next())&&!s.done;){for(var f=t.values(),c=!1,p=0;(u=f.next())&&!u.done;){if(!i[p]&&n.equals(s.value,u.value,s.value,u.value,e,t,n)){c=i[p]=!0;break}p++}if(!c)return!1}return!0}function Ope(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Epe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Mz(e,t,n,r){return(r===vpe||r===gpe||r===mpe)&&(e.$$typeof||t.$$typeof)?!0:ppe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Tpe="[object Arguments]",jpe="[object Boolean]",Ppe="[object Date]",Rpe="[object Error]",Mpe="[object Map]",Npe="[object Number]",Lpe="[object Object]",Dpe="[object RegExp]",kpe="[object Set]",Ipe="[object String]",Upe="[object URL]",Bpe=Array.isArray,YD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,KD=Object.assign,zpe=Object.prototype.toString.call.bind(Object.prototype.toString);function $pe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,s=e.areNumbersEqual,u=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,p=e.areSetsEqual,m=e.areTypedArraysEqual,v=e.areUrlsEqual;return function(w,_,S){if(w===_)return!0;if(w==null||_==null)return!1;var C=typeof w;if(C!==typeof _)return!1;if(C!=="object")return C==="number"?s(w,_,S):C==="function"?i(w,_,S):!1;var O=w.constructor;if(O!==_.constructor)return!1;if(O===Object)return u(w,_,S);if(Bpe(w))return t(w,_,S);if(YD!=null&&YD(w))return m(w,_,S);if(O===Date)return n(w,_,S);if(O===RegExp)return c(w,_,S);if(O===Map)return a(w,_,S);if(O===Set)return p(w,_,S);var T=zpe(w);return T===Ppe?n(w,_,S):T===Dpe?c(w,_,S):T===Mpe?a(w,_,S):T===kpe?p(w,_,S):T===Lpe?typeof w.then!="function"&&typeof _.then!="function"&&u(w,_,S):T===Upe?v(w,_,S):T===Rpe?r(w,_,S):T===Tpe?u(w,_,S):T===jpe||T===Npe||T===Ipe?f(w,_,S):!1}}function Fpe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Vh:ype,areDatesEqual:bpe,areErrorsEqual:_pe,areFunctionsEqual:xpe,areMapsEqual:r?FD(GD,Vh):GD,areNumbersEqual:wpe,areObjectsEqual:r?Vh:Spe,arePrimitiveWrappersEqual:Cpe,areRegExpsEqual:Ape,areSetsEqual:r?FD(WD,Vh):WD,areTypedArraysEqual:r?Vh:Ope,areUrlsEqual:Epe};if(n&&(i=KD({},i,n(i))),t){var a=Pv(i.areArraysEqual),s=Pv(i.areMapsEqual),u=Pv(i.areObjectsEqual),f=Pv(i.areSetsEqual);i=KD({},i,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:u,areSetsEqual:f})}return i}function qpe(e){return function(t,n,r,i,a,s,u){return e(t,n,u)}}function Vpe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(f,c){var p=r(),m=p.cache,v=m===void 0?t?new WeakMap:void 0:m,x=p.meta;return n(f,c,{cache:v,equals:i,meta:x,strict:a})};if(t)return function(f,c){return n(f,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var s={cache:void 0,equals:i,meta:void 0,strict:a};return function(f,c){return n(f,c,s)}}var Hpe=kl();kl({strict:!0});kl({circular:!0});kl({circular:!0,strict:!0});kl({createInternalComparator:function(){return ec}});kl({strict:!0,createInternalComparator:function(){return ec}});kl({circular:!0,createInternalComparator:function(){return ec}});kl({circular:!0,createInternalComparator:function(){return ec},strict:!0});function kl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,s=a===void 0?!1:a,u=Fpe(e),f=$pe(u),c=r?r(f):qpe(f);return Vpe({circular:n,comparator:f,createState:i,equals:c,strict:s})}function Gpe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ZD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):Gpe(i)};requestAnimationFrame(r)}function iO(e){"@babel/helpers - typeof";return iO=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},iO(e)}function Wpe(e){return Xpe(e)||Zpe(e)||Kpe(e)||Ype()}function Ype(){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 Kpe(e,t){if(e){if(typeof e=="string")return XD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XD(e,t)}}function XD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xpe(e){if(Array.isArray(e))return e}function Qpe(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,u=Wpe(s),f=u[0],c=u.slice(1);if(typeof f=="number"){ZD(i.bind(null,c),f);return}i(f),ZD(i.bind(null,c));return}iO(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Jp(e){"@babel/helpers - typeof";return Jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jp(e)}function QD(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 JD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(n),!0).forEach(function(r){Nz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nz(e,t,n){return t=Jpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jpe(e){var t=eme(e,"string");return Jp(t)==="symbol"?t:String(t)}function eme(e,t){if(Jp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tme=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},nme=function(t){return t},rme=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},dp=function(t,n){return Object.keys(n).reduce(function(r,i){return JD(JD({},r),{},Nz({},i,t(i,n[i])))},{})},ek=function(t,n,r){return t.map(function(i){return"".concat(rme(i)," ").concat(n,"ms ").concat(r)}).join(",")};function ime(e,t){return sme(e)||ome(e,t)||Lz(e,t)||ame()}function ame(){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 ome(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function sme(e){if(Array.isArray(e))return e}function lme(e){return fme(e)||cme(e)||Lz(e)||ume()}function ume(){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 Lz(e,t){if(e){if(typeof e=="string")return aO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aO(e,t)}}function cme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fme(e){if(Array.isArray(e))return aO(e)}function aO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xy=1e-4,Dz=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},kz=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},tk=function(t,n){return function(r){var i=Dz(t,n);return kz(i,r)}},dme=function(t,n){return function(r){var i=Dz(t,n),a=[].concat(lme(i.map(function(s,u){return s*u}).slice(1)),[0]);return kz(a,r)}},nk=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],s=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,s=1,u=1;break;case"ease":i=.25,a=.1,s=.25,u=1;break;case"ease-in":i=.42,a=0,s=1,u=1;break;case"ease-out":i=.42,a=0,s=.58,u=1;break;case"ease-in-out":i=0,a=0,s=.58,u=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var c=f[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),p=ime(c,4);i=p[0],a=p[1],s=p[2],u=p[3]}}}var m=tk(i,s),v=tk(a,u),x=dme(i,s),w=function(C){return C>1?1:C<0?0:C},_=function(C){for(var O=C>1?1:C,T=O,P=0;P<8;++P){var j=m(T)-O,R=x(T);if(Math.abs(j-O)<Xy||R<Xy)return v(T);T=w(T-j/R)}return v(T)};return _.isStepper=!1,_},hme=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,s=t.dt,u=s===void 0?17:s,f=function(p,m,v){var x=-(p-m)*r,w=v*a,_=v+(x-w)*u/1e3,S=v*u/1e3+p;return Math.abs(S-m)<Xy&&Math.abs(_)<Xy?[m,0]:[S,_]};return f.isStepper=!0,f.dt=u,f},pme=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return nk(i);case"spring":return hme();default:if(i.split("(")[0]==="cubic-bezier")return nk(i)}return typeof i=="function"?i:null};function em(e){"@babel/helpers - typeof";return em=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},em(e)}function rk(e){return vme(e)||gme(e)||Iz(e)||mme()}function mme(){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 gme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vme(e){if(Array.isArray(e))return sO(e)}function ik(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 yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ik(Object(n),!0).forEach(function(r){oO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oO(e,t,n){return t=yme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yme(e){var t=bme(e,"string");return em(t)==="symbol"?t:String(t)}function bme(e,t){if(em(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(em(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _me(e,t){return Sme(e)||wme(e,t)||Iz(e,t)||xme()}function xme(){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 Iz(e,t){if(e){if(typeof e=="string")return sO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sO(e,t)}}function sO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Sme(e){if(Array.isArray(e))return e}var Qy=function(t,n,r){return t+(n-t)*r},lO=function(t){var n=t.from,r=t.to;return n!==r},Cme=function e(t,n,r){var i=dp(function(a,s){if(lO(s)){var u=t(s.from,s.to,s.velocity),f=_me(u,2),c=f[0],p=f[1];return yr(yr({},s),{},{from:c,velocity:p})}return s},n);return r<1?dp(function(a,s){return lO(s)?yr(yr({},s),{},{velocity:Qy(s.velocity,i[a].velocity,r),from:Qy(s.from,i[a].from,r)}):s},n):e(t,i,r-1)};const Ame=function(e,t,n,r,i){var a=tme(e,t),s=a.reduce(function(S,C){return yr(yr({},S),{},oO({},C,[e[C],t[C]]))},{}),u=a.reduce(function(S,C){return yr(yr({},S),{},oO({},C,{from:e[C],velocity:0,to:t[C]}))},{}),f=-1,c,p,m=function(){return null},v=function(){return dp(function(C,O){return O.from},u)},x=function(){return!Object.values(u).filter(lO).length},w=function(C){c||(c=C);var O=C-c,T=O/n.dt;u=Cme(n,u,T),i(yr(yr(yr({},e),t),v())),c=C,x()||(f=requestAnimationFrame(m))},_=function(C){p||(p=C);var O=(C-p)/r,T=dp(function(j,R){return Qy.apply(void 0,rk(R).concat([n(O)]))},s);if(i(yr(yr(yr({},e),t),T)),O<1)f=requestAnimationFrame(m);else{var P=dp(function(j,R){return Qy.apply(void 0,rk(R).concat([n(1)]))},s);i(yr(yr(yr({},e),t),P))}};return m=n.isStepper?w:_,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(f)}}};function kf(e){"@babel/helpers - typeof";return kf=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},kf(e)}var Ome=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Eme(e,t){if(e==null)return{};var n=Tme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tme(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function YS(e){return Mme(e)||Rme(e)||Pme(e)||jme()}function jme(){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 Pme(e,t){if(e){if(typeof e=="string")return uO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uO(e,t)}}function Rme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mme(e){if(Array.isArray(e))return uO(e)}function uO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ak(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 ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ak(Object(n),!0).forEach(function(r){tp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tp(e,t,n){return t=Uz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lme(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,Uz(r.key),r)}}function Dme(e,t,n){return t&&Lme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uz(e){var t=kme(e,"string");return kf(t)==="symbol"?t:String(t)}function kme(e,t){if(kf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ime(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cO(e,t)}function cO(e,t){return cO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cO(e,t)}function Ume(e){var t=Bme();return function(){var r=Jy(e),i;if(t){var a=Jy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return fO(this,i)}}function fO(e,t){if(t&&(kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dO(e)}function dO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}var Xi=function(e){Ime(n,e);var t=Ume(n);function n(r,i){var a;Nme(this,n),a=t.call(this,r,i);var s=a.props,u=s.isActive,f=s.attributeName,c=s.from,p=s.to,m=s.steps,v=s.children,x=s.duration;if(a.handleStyleChange=a.handleStyleChange.bind(dO(a)),a.changeStyle=a.changeStyle.bind(dO(a)),!u||x<=0)return a.state={style:{}},typeof v=="function"&&(a.state={style:p}),fO(a);if(m&&m.length)a.state={style:m[0].style};else if(c){if(typeof v=="function")return a.state={style:c},fO(a);a.state={style:f?tp({},f,c):c}}else a.state={style:{}};return a}return Dme(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,s=i.canBegin;this.mounted=!0,!(!a||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,s=a.isActive,u=a.canBegin,f=a.attributeName,c=a.shouldReAnimate,p=a.to,m=a.from,v=this.state.style;if(u){if(!s){var x={style:f?tp({},f,p):p};this.state&&v&&(f&&v[f]!==p||!f&&v!==p)&&this.setState(x);return}if(!(Hpe(i.to,p)&&i.canBegin&&i.isActive)){var w=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var _=w||c?m:i.to;if(this.state&&v){var S={style:f?tp({},f,_):_};(f&&v[f]!==_||!f&&v!==_)&&this.setState(S)}this.runAnimation(ua(ua({},this.props),{},{from:_,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,s=i.from,u=i.to,f=i.duration,c=i.easing,p=i.begin,m=i.onAnimationEnd,v=i.onAnimationStart,x=Ame(s,u,pme(c),f,this.changeStyle),w=function(){a.stopJSAnimation=x()};this.manager.start([v,p,w,f,m])}},{key:"runStepAnimation",value:function(i){var a=this,s=i.steps,u=i.begin,f=i.onAnimationStart,c=s[0],p=c.style,m=c.duration,v=m===void 0?0:m,x=function(_,S,C){if(C===0)return _;var O=S.duration,T=S.easing,P=T===void 0?"ease":T,j=S.style,R=S.properties,$=S.onAnimationEnd,V=C>0?s[C-1]:S,X=R||Object.keys(j);if(typeof P=="function"||P==="spring")return[].concat(YS(_),[a.runJSAnimation.bind(a,{from:V.style,to:j,duration:O,easing:P}),O]);var Z=ek(X,O,P),Y=ua(ua(ua({},V.style),j),{},{transition:Z});return[].concat(YS(_),[Y,O,$]).filter(nme)};return this.manager.start([f].concat(YS(s.reduce(x,[p,Math.max(v,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Qpe());var a=i.begin,s=i.duration,u=i.attributeName,f=i.to,c=i.easing,p=i.onAnimationStart,m=i.onAnimationEnd,v=i.steps,x=i.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof c=="function"||typeof x=="function"||c==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var _=u?tp({},u,f):f,S=ek(Object.keys(_),s,c);w.start([p,a,ua(ua({},_),{},{transition:S}),s,m])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=Eme(i,Ome),c=I.Children.count(a),p=this.state.style;if(typeof a=="function")return a(p);if(!u||c===0||s<=0)return a;var m=function(x){var w=x.props,_=w.style,S=_===void 0?{}:_,C=w.className,O=I.cloneElement(x,ua(ua({},f),{},{style:ua(ua({},S),p),className:C}));return O};return c===1?m(I.Children.only(a)):pe.createElement("div",null,I.Children.map(a,function(v){return m(v)}))}}]),n}(I.PureComponent);Xi.displayName="Animate";Xi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Xi.propTypes={from:tt.oneOfType([tt.object,tt.string]),to:tt.oneOfType([tt.object,tt.string]),attributeName:tt.string,duration:tt.number,begin:tt.number,easing:tt.oneOfType([tt.string,tt.func]),steps:tt.arrayOf(tt.shape({duration:tt.number.isRequired,style:tt.object.isRequired,easing:tt.oneOfType([tt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),tt.func]),properties:tt.arrayOf("string"),onAnimationEnd:tt.func})),children:tt.oneOfType([tt.node,tt.func]),isActive:tt.bool,canBegin:tt.bool,onAnimationEnd:tt.func,shouldReAnimate:tt.bool,onAnimationStart:tt.func,onAnimationReStart:tt.func};function tm(e){"@babel/helpers - typeof";return tm=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},tm(e)}function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e0.apply(this,arguments)}function zme(e,t){return Vme(e)||qme(e,t)||Fme(e,t)||$me()}function $me(){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 Fme(e,t){if(e){if(typeof e=="string")return ok(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ok(e,t)}}function ok(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Vme(e){if(Array.isArray(e))return e}function sk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(n),!0).forEach(function(r){Hme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hme(e,t,n){return t=Gme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gme(e){var t=Wme(e,"string");return tm(t)=="symbol"?t:t+""}function Wme(e,t){if(tm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uk=function(t,n,r,i,a){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),u=i>=0?1:-1,f=r>=0?1:-1,c=i>=0&&r>=0||i<0&&r<0?1:0,p;if(s>0&&a instanceof Array){for(var m=[0,0,0,0],v=0,x=4;v<x;v++)m[v]=a[v]>s?s:a[v];p="M".concat(t,",").concat(n+u*m[0]),m[0]>0&&(p+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(c,",").concat(t+f*m[0],",").concat(n)),p+="L ".concat(t+r-f*m[1],",").concat(n),m[1]>0&&(p+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(c,`,
|
||
`).concat(t+r,",").concat(n+u*m[1])),p+="L ".concat(t+r,",").concat(n+i-u*m[2]),m[2]>0&&(p+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(c,`,
|
||
`).concat(t+r-f*m[2],",").concat(n+i)),p+="L ".concat(t+f*m[3],",").concat(n+i),m[3]>0&&(p+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(c,`,
|
||
`).concat(t,",").concat(n+i-u*m[3])),p+="Z"}else if(s>0&&a===+a&&a>0){var w=Math.min(s,a);p="M ".concat(t,",").concat(n+u*w,`
|
||
A `).concat(w,",").concat(w,",0,0,").concat(c,",").concat(t+f*w,",").concat(n,`
|
||
L `).concat(t+r-f*w,",").concat(n,`
|
||
A `).concat(w,",").concat(w,",0,0,").concat(c,",").concat(t+r,",").concat(n+u*w,`
|
||
L `).concat(t+r,",").concat(n+i-u*w,`
|
||
A `).concat(w,",").concat(w,",0,0,").concat(c,",").concat(t+r-f*w,",").concat(n+i,`
|
||
L `).concat(t+f*w,",").concat(n+i,`
|
||
A `).concat(w,",").concat(w,",0,0,").concat(c,",").concat(t,",").concat(n+i-u*w," Z")}else p="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return p},Yme=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,s=n.y,u=n.width,f=n.height;if(Math.abs(u)>0&&Math.abs(f)>0){var c=Math.min(a,a+u),p=Math.max(a,a+u),m=Math.min(s,s+f),v=Math.max(s,s+f);return r>=c&&r<=p&&i>=m&&i<=v}return!1},Kme={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qT=function(t){var n=lk(lk({},Kme),t),r=I.useRef(),i=I.useState(-1),a=zme(i,2),s=a[0],u=a[1];I.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&u(P)}catch{}},[]);var f=n.x,c=n.y,p=n.width,m=n.height,v=n.radius,x=n.className,w=n.animationEasing,_=n.animationDuration,S=n.animationBegin,C=n.isAnimationActive,O=n.isUpdateAnimationActive;if(f!==+f||c!==+c||p!==+p||m!==+m||p===0||m===0)return null;var T=je("recharts-rectangle",x);return O?pe.createElement(Xi,{canBegin:s>0,from:{width:p,height:m,x:f,y:c},to:{width:p,height:m,x:f,y:c},duration:_,animationEasing:w,isActive:O},function(P){var j=P.width,R=P.height,$=P.x,V=P.y;return pe.createElement(Xi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:_,isActive:C,easing:w},pe.createElement("path",e0({},ot(n,!0),{className:T,d:uk($,V,j,R,v),ref:r})))}):pe.createElement("path",e0({},ot(n,!0),{className:T,d:uk(f,c,p,m,v)}))},Zme=["points","className","baseLinePoints","connectNulls"];function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}function Xme(e,t){if(e==null)return{};var n=Qme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ck(e){return nge(e)||tge(e)||ege(e)||Jme()}function Jme(){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 ege(e,t){if(e){if(typeof e=="string")return hO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hO(e,t)}}function tge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nge(e){if(Array.isArray(e))return hO(e)}function hO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fk=function(t){return t&&t.x===+t.x&&t.y===+t.y},rge=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){fk(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),fk(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},hp=function(t,n){var r=rge(t);n&&(r=[r.reduce(function(a,s){return[].concat(ck(a),ck(s))},[])]);var i=r.map(function(a){return a.reduce(function(s,u,f){return"".concat(s).concat(f===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},ige=function(t,n,r){var i=hp(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(hp(n.reverse(),r).slice(1))},age=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,s=Xme(t,Zme);if(!n||!n.length)return null;var u=je("recharts-polygon",r);if(i&&i.length){var f=s.stroke&&s.stroke!=="none",c=ige(n,i,a);return pe.createElement("g",{className:u},pe.createElement("path",sf({},ot(s,!0),{fill:c.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:c})),f?pe.createElement("path",sf({},ot(s,!0),{fill:"none",d:hp(n,a)})):null,f?pe.createElement("path",sf({},ot(s,!0),{fill:"none",d:hp(i,a)})):null)}var p=hp(n,a);return pe.createElement("path",sf({},ot(s,!0),{fill:p.slice(-1)==="Z"?s.fill:"none",className:u,d:p}))};function pO(){return pO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pO.apply(this,arguments)}var Lm=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,s=je("recharts-dot",a);return n===+n&&r===+r&&i===+i?pe.createElement("circle",pO({},ot(t,!1),Cy(t),{className:s,cx:n,cy:r,r:i})):null};function nm(e){"@babel/helpers - typeof";return nm=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},nm(e)}var oge=["x","y","top","left","width","height","className"];function mO(){return mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mO.apply(this,arguments)}function dk(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 sge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dk(Object(n),!0).forEach(function(r){lge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lge(e,t,n){return t=uge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uge(e){var t=cge(e,"string");return nm(t)=="symbol"?t:t+""}function cge(e,t){if(nm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fge(e,t){if(e==null)return{};var n=dge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var hge=function(t,n,r,i,a,s){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},pge=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,s=t.top,u=s===void 0?0:s,f=t.left,c=f===void 0?0:f,p=t.width,m=p===void 0?0:p,v=t.height,x=v===void 0?0:v,w=t.className,_=fge(t,oge),S=sge({x:r,y:a,top:u,left:c,width:m,height:x},_);return!Ze(r)||!Ze(a)||!Ze(m)||!Ze(x)||!Ze(u)||!Ze(c)?null:pe.createElement("path",mO({},ot(S,!0),{className:je("recharts-cross",w),d:hge(r,a,m,x,u,c)}))},KS,hk;function mge(){if(hk)return KS;hk=1;var e=Cb(),t=JB(),n=lo();function r(i,a){return i&&i.length?e(i,n(a,2),t):void 0}return KS=r,KS}var gge=mge();const vge=qt(gge);var ZS,pk;function yge(){if(pk)return ZS;pk=1;var e=Cb(),t=lo(),n=ez();function r(i,a){return i&&i.length?e(i,t(a,2),n):void 0}return ZS=r,ZS}var bge=yge();const _ge=qt(bge);var xge=["cx","cy","angle","ticks","axisLine"],wge=["ticks","tick","angle","tickFormatter","stroke"];function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pp.apply(this,arguments)}function mk(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 pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(n),!0).forEach(function(r){Tb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gk(e,t){if(e==null)return{};var n=Sge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Cge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vk(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,zz(r.key),r)}}function Age(e,t,n){return t&&vk(e.prototype,t),n&&vk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oge(e,t,n){return t=t0(t),Ege(e,Bz()?Reflect.construct(t,n||[],t0(e).constructor):t.apply(e,n))}function Ege(e,t){if(t&&(If(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tge(e)}function Tge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bz=function(){return!!e})()}function t0(e){return t0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},t0(e)}function jge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gO(e,t)}function gO(e,t){return gO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gO(e,t)}function Tb(e,t,n){return t=zz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zz(e){var t=Pge(e,"string");return If(t)=="symbol"?t:t+""}function Pge(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jb=function(e){function t(){return Cge(this,t),Oge(this,t,arguments)}return jge(t,e),Age(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,s=a.angle,u=a.cx,f=a.cy;return dn(u,f,i,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,s=r.angle,u=r.ticks,f=vge(u,function(p){return p.coordinate||0}),c=_ge(u,function(p){return p.coordinate||0});return{cx:i,cy:a,startAngle:s,endAngle:s,innerRadius:c.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,s=r.angle,u=r.ticks,f=r.axisLine,c=gk(r,xge),p=u.reduce(function(w,_){return[Math.min(w[0],_.coordinate),Math.max(w[1],_.coordinate)]},[1/0,-1/0]),m=dn(i,a,p[0],s),v=dn(i,a,p[1],s),x=pu(pu(pu({},ot(c,!1)),{},{fill:"none"},ot(f,!1)),{},{x1:m.x,y1:m.y,x2:v.x,y2:v.y});return pe.createElement("line",pp({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,s=i.tick,u=i.angle,f=i.tickFormatter,c=i.stroke,p=gk(i,wge),m=this.getTickTextAnchor(),v=ot(p,!1),x=ot(s,!1),w=a.map(function(_,S){var C=r.getTickValueCoord(_),O=pu(pu(pu(pu({textAnchor:m,transform:"rotate(".concat(90-u,", ").concat(C.x,", ").concat(C.y,")")},v),{},{stroke:"none",fill:c},x),{},{index:S},C),{},{payload:_});return pe.createElement(St,pp({className:je("recharts-polar-radius-axis-tick",Tz(s)),key:"tick-".concat(_.coordinate)},El(r.props,_,S)),t.renderTickItem(s,O,f?f(_.value,S):_.value))});return pe.createElement(St,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,s=r.tick;return!i||!i.length?null:pe.createElement(St,{className:je("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),s&&this.renderTicks(),lr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var s;return pe.isValidElement(r)?s=pe.cloneElement(r,i):ht(r)?s=r(i):s=pe.createElement(qu,pp({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),s}}])}(I.PureComponent);Tb(jb,"displayName","PolarRadiusAxis");Tb(jb,"axisType","radiusAxis");Tb(jb,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wu.apply(this,arguments)}function yk(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 mu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(n),!0).forEach(function(r){Pb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bk(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,Fz(r.key),r)}}function Mge(e,t,n){return t&&bk(e.prototype,t),n&&bk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nge(e,t,n){return t=n0(t),Lge(e,$z()?Reflect.construct(t,n||[],n0(e).constructor):t.apply(e,n))}function Lge(e,t){if(t&&(Uf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dge(e)}function Dge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($z=function(){return!!e})()}function n0(e){return n0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},n0(e)}function kge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vO(e,t)}function vO(e,t){return vO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vO(e,t)}function Pb(e,t,n){return t=Fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fz(e){var t=Ige(e,"string");return Uf(t)=="symbol"?t:t+""}function Ige(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uge=Math.PI/180,Bge=1e-5,Rb=function(e){function t(){return Rge(this,t),Nge(this,t,arguments)}return kge(t,e),Mge(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,s=i.cy,u=i.radius,f=i.orientation,c=i.tickSize,p=c||8,m=dn(a,s,u,r.coordinate),v=dn(a,s,u+(f==="inner"?-1:1)*p,r.coordinate);return{x1:m.x,y1:m.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*Uge),s;return a>Bge?s=i==="outer"?"start":"end":a<-1e-5?s=i==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,s=r.radius,u=r.axisLine,f=r.axisLineType,c=mu(mu({},ot(this.props,!1)),{},{fill:"none"},ot(u,!1));if(f==="circle")return pe.createElement(Lm,wu({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:s}));var p=this.props.ticks,m=p.map(function(v){return dn(i,a,s,v.coordinate)});return pe.createElement(age,wu({className:"recharts-polar-angle-axis-line"},c,{points:m}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,s=i.tick,u=i.tickLine,f=i.tickFormatter,c=i.stroke,p=ot(this.props,!1),m=ot(s,!1),v=mu(mu({},p),{},{fill:"none"},ot(u,!1)),x=a.map(function(w,_){var S=r.getTickLineCoord(w),C=r.getTickTextAnchor(w),O=mu(mu(mu({textAnchor:C},p),{},{stroke:"none",fill:c},m),{},{index:_,payload:w,x:S.x2,y:S.y2});return pe.createElement(St,wu({className:je("recharts-polar-angle-axis-tick",Tz(s)),key:"tick-".concat(w.coordinate)},El(r.props,w,_)),u&&pe.createElement("line",wu({className:"recharts-polar-angle-axis-tick-line"},v,S)),s&&t.renderTickItem(s,O,f?f(w.value,_):w.value))});return pe.createElement(St,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,s=r.axisLine;return a<=0||!i||!i.length?null:pe.createElement(St,{className:je("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var s;return pe.isValidElement(r)?s=pe.cloneElement(r,i):ht(r)?s=r(i):s=pe.createElement(qu,wu({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),s}}])}(I.PureComponent);Pb(Rb,"displayName","PolarAngleAxis");Pb(Rb,"axisType","angleAxis");Pb(Rb,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var XS,_k;function zge(){if(_k)return XS;_k=1;var e=QU(),t=e(Object.getPrototypeOf,Object);return XS=t,XS}var QS,xk;function $ge(){if(xk)return QS;xk=1;var e=as(),t=zge(),n=os(),r="[object Object]",i=Function.prototype,a=Object.prototype,s=i.toString,u=a.hasOwnProperty,f=s.call(Object);function c(p){if(!n(p)||e(p)!=r)return!1;var m=t(p);if(m===null)return!0;var v=u.call(m,"constructor")&&m.constructor;return typeof v=="function"&&v instanceof v&&s.call(v)==f}return QS=c,QS}var Fge=$ge();const qge=qt(Fge);var JS,wk;function Vge(){if(wk)return JS;wk=1;var e=as(),t=os(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return JS=r,JS}var Hge=Vge();const Gge=qt(Hge);function rm(e){"@babel/helpers - typeof";return rm=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},rm(e)}function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}function Wge(e,t){return Xge(e)||Zge(e,t)||Kge(e,t)||Yge()}function Yge(){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 Kge(e,t){if(e){if(typeof e=="string")return Sk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sk(e,t)}}function Sk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Xge(e){if(Array.isArray(e))return e}function Ck(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 Ak(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ck(Object(n),!0).forEach(function(r){Qge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ck(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qge(e,t,n){return t=Jge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jge(e){var t=eve(e,"string");return rm(t)=="symbol"?t:t+""}function eve(e,t){if(rm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ok=function(t,n,r,i,a){var s=r-i,u;return u="M ".concat(t,",").concat(n),u+="L ".concat(t+r,",").concat(n),u+="L ".concat(t+r-s/2,",").concat(n+a),u+="L ".concat(t+r-s/2-i,",").concat(n+a),u+="L ".concat(t,",").concat(n," Z"),u},tve={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nve=function(t){var n=Ak(Ak({},tve),t),r=I.useRef(),i=I.useState(-1),a=Wge(i,2),s=a[0],u=a[1];I.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&u(T)}catch{}},[]);var f=n.x,c=n.y,p=n.upperWidth,m=n.lowerWidth,v=n.height,x=n.className,w=n.animationEasing,_=n.animationDuration,S=n.animationBegin,C=n.isUpdateAnimationActive;if(f!==+f||c!==+c||p!==+p||m!==+m||v!==+v||p===0&&m===0||v===0)return null;var O=je("recharts-trapezoid",x);return C?pe.createElement(Xi,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:v,x:f,y:c},to:{upperWidth:p,lowerWidth:m,height:v,x:f,y:c},duration:_,animationEasing:w,isActive:C},function(T){var P=T.upperWidth,j=T.lowerWidth,R=T.height,$=T.x,V=T.y;return pe.createElement(Xi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:_,easing:w},pe.createElement("path",r0({},ot(n,!0),{className:O,d:Ok($,V,P,j,R),ref:r})))}):pe.createElement("g",null,pe.createElement("path",r0({},ot(n,!0),{className:O,d:Ok(f,c,p,m,v)})))},rve=["option","shapeType","propTransformer","activeClassName","isActive"];function im(e){"@babel/helpers - typeof";return im=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},im(e)}function ive(e,t){if(e==null)return{};var n=ave(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ave(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ek(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 i0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(r){ove(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ove(e,t,n){return t=sve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sve(e){var t=lve(e,"string");return im(t)=="symbol"?t:t+""}function lve(e,t){if(im(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(im(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uve(e,t){return i0(i0({},t),e)}function cve(e,t){return e==="symbols"}function Tk(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return pe.createElement(qT,n);case"trapezoid":return pe.createElement(nve,n);case"sector":return pe.createElement(Rz,n);case"symbols":if(cve(t))return pe.createElement(pb,n);break;default:return null}}function fve(e){return I.isValidElement(e)?e.props:e}function a0(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?uve:r,a=e.activeClassName,s=a===void 0?"recharts-active-shape":a,u=e.isActive,f=ive(e,rve),c;if(I.isValidElement(t))c=I.cloneElement(t,i0(i0({},f),fve(t)));else if(ht(t))c=t(f);else if(qge(t)&&!Gge(t)){var p=i(t,f);c=pe.createElement(Tk,{shapeType:n,elementProps:p})}else{var m=f;c=pe.createElement(Tk,{shapeType:n,elementProps:m})}return u?pe.createElement(St,{className:s},c):c}function Mb(e,t){return t!=null&&"trapezoids"in e.props}function Nb(e,t){return t!=null&&"sectors"in e.props}function am(e,t){return t!=null&&"points"in e.props}function dve(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function hve(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function pve(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function mve(e,t){var n;return Mb(e,t)?n=dve:Nb(e,t)?n=hve:am(e,t)&&(n=pve),n}function gve(e,t){var n;return Mb(e,t)?n="trapezoids":Nb(e,t)?n="sectors":am(e,t)&&(n="points"),n}function vve(e,t){if(Mb(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Nb(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return am(e,t)?t.payload:{}}function yve(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=gve(n,t),a=vve(n,t),s=r.filter(function(f,c){var p=Tl(a,f),m=n.props[i].filter(function(w){var _=mve(n,t);return _(w,t)}),v=n.props[i].indexOf(m[m.length-1]),x=c===v;return p&&x}),u=r.indexOf(s[s.length-1]);return u}var Xv;function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lf.apply(this,arguments)}function jk(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?jk(Object(n),!0).forEach(function(r){Yi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pk(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,Vz(r.key),r)}}function _ve(e,t,n){return t&&Pk(e.prototype,t),n&&Pk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xve(e,t,n){return t=o0(t),wve(e,qz()?Reflect.construct(t,n||[],o0(e).constructor):t.apply(e,n))}function wve(e,t){if(t&&(Bf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sve(e)}function Sve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qz=function(){return!!e})()}function o0(e){return o0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},o0(e)}function Cve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yO(e,t)}function yO(e,t){return yO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yO(e,t)}function Yi(e,t,n){return t=Vz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vz(e){var t=Ave(e,"string");return Bf(t)=="symbol"?t:t+""}function Ave(e,t){if(Bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ja=function(e){function t(n){var r;return bve(this,t),r=xve(this,t,[n]),Yi(r,"pieRef",null),Yi(r,"sectorRefs",[]),Yi(r,"id",Nl("recharts-pie-")),Yi(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ht(i)&&i()}),Yi(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ht(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Cve(t,e),_ve(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.label,u=a.labelLine,f=a.dataKey,c=a.valueKey,p=ot(this.props,!1),m=ot(s,!1),v=ot(u,!1),x=s&&s.offsetRadius||20,w=r.map(function(_,S){var C=(_.startAngle+_.endAngle)/2,O=dn(_.cx,_.cy,_.outerRadius+x,C),T=un(un(un(un({},p),_),{},{stroke:"none"},m),{},{index:S,textAnchor:t.getTextAnchor(O.x,_.cx)},O),P=un(un(un(un({},p),_),{},{fill:"none",stroke:_.fill},v),{},{index:S,points:[dn(_.cx,_.cy,_.outerRadius,C),O]}),j=f;return pt(f)&&pt(c)?j="value":pt(f)&&(j=c),pe.createElement(St,{key:"label-".concat(_.startAngle,"-").concat(_.endAngle,"-").concat(_.midAngle,"-").concat(S)},u&&t.renderLabelLineItem(u,P,"line"),t.renderLabelItem(s,T,mn(_,j)))});return pe.createElement(St,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,s=a.activeShape,u=a.blendStroke,f=a.inactiveShape;return r.map(function(c,p){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var m=i.isActiveIndex(p),v=f&&i.hasActiveIndex()?f:null,x=m?s:v,w=un(un({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return pe.createElement(St,lf({ref:function(S){S&&!i.sectorRefs.includes(S)&&i.sectorRefs.push(S)},tabIndex:-1,className:"recharts-pie-sector"},El(i.props,c,p),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(p)}),pe.createElement(a0,lf({option:x,isActive:m,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,s=i.isAnimationActive,u=i.animationBegin,f=i.animationDuration,c=i.animationEasing,p=i.animationId,m=this.state,v=m.prevSectors,x=m.prevIsAnimationActive;return pe.createElement(Xi,{begin:u,duration:f,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(p,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var _=w.t,S=[],C=a&&a[0],O=C.startAngle;return a.forEach(function(T,P){var j=v&&v[P],R=P>0?Ai(T,"paddingAngle",0):0;if(j){var $=En(j.endAngle-j.startAngle,T.endAngle-T.startAngle),V=un(un({},T),{},{startAngle:O+R,endAngle:O+$(_)+R});S.push(V),O=V.endAngle}else{var X=T.endAngle,Z=T.startAngle,Y=En(0,X-Z),te=Y(_),ae=un(un({},T),{},{startAngle:O+R,endAngle:O+te+R});S.push(ae),O=ae.endAngle}}),pe.createElement(St,null,r.renderSectorsStatically(S))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var s=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,s=this.state.prevSectors;return a&&i&&i.length&&(!s||!Tl(s,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,s=i.sectors,u=i.className,f=i.label,c=i.cx,p=i.cy,m=i.innerRadius,v=i.outerRadius,x=i.isAnimationActive,w=this.state.isAnimationFinished;if(a||!s||!s.length||!Ze(c)||!Ze(p)||!Ze(m)||!Ze(v))return null;var _=je("recharts-pie",u);return pe.createElement(St,{tabIndex:this.props.rootTabIndex,className:_,ref:function(C){r.pieRef=C}},this.renderSectors(),f&&this.renderLabels(s),lr.renderCallByParent(this.props,null,!1),(!x||w)&&ma.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(pe.isValidElement(r))return pe.cloneElement(r,i);if(ht(r))return r(i);var s=je("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return pe.createElement(vl,lf({},i,{key:a,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,i,a){if(pe.isValidElement(r))return pe.cloneElement(r,i);var s=a;if(ht(r)&&(s=r(i),pe.isValidElement(s)))return s;var u=je("recharts-pie-label-text",typeof r!="boolean"&&!ht(r)?r.className:"");return pe.createElement(qu,lf({},i,{alignmentBaseline:"middle",className:u}),s)}}])}(I.PureComponent);Xv=Ja;Yi(Ja,"displayName","Pie");Yi(Ja,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ss.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Yi(Ja,"parseDeltaAngle",function(e,t){var n=zr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Yi(Ja,"getRealPieData",function(e){var t=e.data,n=e.children,r=ot(e,!1),i=Hr(n,ml);return t&&t.length?t.map(function(a,s){return un(un(un({payload:a},r),a),i&&i[s]&&i[s].props)}):i&&i.length?i.map(function(a){return un(un({},r),a.props)}):[]});Yi(Ja,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,s=Ez(i,a),u=r+$r(e.cx,i,i/2),f=n+$r(e.cy,a,a/2),c=$r(e.innerRadius,s,0),p=$r(e.outerRadius,s,s*.8),m=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:f,innerRadius:c,outerRadius:p,maxRadius:m}});Yi(Ja,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?un(un({},t.type.defaultProps),t.props):t.props,i=Xv.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,s=r.startAngle,u=r.endAngle,f=r.paddingAngle,c=r.dataKey,p=r.nameKey,m=r.valueKey,v=r.tooltipType,x=Math.abs(r.minAngle),w=Xv.parseCoordinateOfPie(r,n),_=Xv.parseDeltaAngle(s,u),S=Math.abs(_),C=c;pt(c)&&pt(m)?(pa(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),C="value"):pt(c)&&(pa(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),C=m);var O=i.filter(function(V){return mn(V,C,0)!==0}).length,T=(S>=360?O:O-1)*f,P=S-O*x-T,j=i.reduce(function(V,X){var Z=mn(X,C,0);return V+(Ze(Z)?Z:0)},0),R;if(j>0){var $;R=i.map(function(V,X){var Z=mn(V,C,0),Y=mn(V,p,X),te=(Ze(Z)?Z:0)/j,ae;X?ae=$.endAngle+zr(_)*f*(Z!==0?1:0):ae=s;var Q=ae+zr(_)*((Z!==0?x:0)+te*P),ne=(ae+Q)/2,H=(w.innerRadius+w.outerRadius)/2,B=[{name:Y,value:Z,payload:V,dataKey:C,type:v}],U=dn(w.cx,w.cy,H,ne);return $=un(un(un({percent:te,cornerRadius:a,name:Y,tooltipPayload:B,midAngle:ne,middleRadius:H,tooltipPosition:U},V),w),{},{value:mn(V,C),startAngle:ae,endAngle:Q,payload:V,paddingAngle:zr(_)*f}),$})}return un(un({},w),{},{sectors:R,data:i})});var eC,Rk;function Ove(){if(Rk)return eC;Rk=1;var e=Math.ceil,t=Math.max;function n(r,i,a,s){for(var u=-1,f=t(e((i-r)/(a||1)),0),c=Array(f);f--;)c[s?f:++u]=r,r+=a;return c}return eC=n,eC}var tC,Mk;function Hz(){if(Mk)return tC;Mk=1;var e=pB(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var a=i<0?-1:1;return a*n}return i===i?i:0}return tC=r,tC}var nC,Nk;function Eve(){if(Nk)return nC;Nk=1;var e=Ove(),t=vb(),n=Hz();function r(i){return function(a,s,u){return u&&typeof u!="number"&&t(a,s,u)&&(s=u=void 0),a=n(a),s===void 0?(s=a,a=0):s=n(s),u=u===void 0?a<s?1:-1:n(u),e(a,s,u,i)}}return nC=r,nC}var rC,Lk;function Tve(){if(Lk)return rC;Lk=1;var e=Eve(),t=e();return rC=t,rC}var jve=Tve();const s0=qt(jve);function om(e){"@babel/helpers - typeof";return om=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},om(e)}function Dk(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 kk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dk(Object(n),!0).forEach(function(r){Gz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gz(e,t,n){return t=Pve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pve(e){var t=Rve(e,"string");return om(t)=="symbol"?t:t+""}function Rve(e,t){if(om(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(om(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mve=["Webkit","Moz","O","ms"],Nve=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Mve.reduce(function(a,s){return kk(kk({},a),{},Gz({},s+r,n))},{});return i[t]=n,i};function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function Ik(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 iC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ik(Object(n),!0).forEach(function(r){bi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uk(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,Yz(r.key),r)}}function Dve(e,t,n){return t&&Uk(e.prototype,t),n&&Uk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kve(e,t,n){return t=u0(t),Ive(e,Wz()?Reflect.construct(t,n||[],u0(e).constructor):t.apply(e,n))}function Ive(e,t){if(t&&(zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uve(e)}function Uve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wz=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},u0(e)}function Bve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bO(e,t)}function bO(e,t){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bO(e,t)}function bi(e,t,n){return t=Yz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yz(e){var t=zve(e,"string");return zf(t)=="symbol"?t:t+""}function zve(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $ve=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,s=t.width,u=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,c=cp().domain(s0(0,f)).range([a,a+s-u]),p=c.domain().map(function(m){return c(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(i),scale:c,scaleValues:p}},Bk=function(t){return t.changedTouches&&!!t.changedTouches.length},$f=function(e){function t(n){var r;return Lve(this,t),r=kve(this,t,[n]),bi(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),bi(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),bi(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,s=i.onDragEnd,u=i.startIndex;s==null||s({endIndex:a,startIndex:u})}),r.detachDragEndListener()}),bi(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),bi(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),bi(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),bi(r,"handleSlideDragStart",function(i){var a=Bk(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Bve(t,e),Dve(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,s=this.state.scaleValues,u=this.props,f=u.gap,c=u.data,p=c.length-1,m=Math.min(i,a),v=Math.max(i,a),x=t.getIndexInRange(s,m),w=t.getIndexInRange(s,v);return{startIndex:x-x%f,endIndex:w===p?p:w-w%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,s=i.tickFormatter,u=i.dataKey,f=mn(a[r],u,r);return ht(s)?s(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,a=i.slideMoveStartX,s=i.startX,u=i.endX,f=this.props,c=f.x,p=f.width,m=f.travellerWidth,v=f.startIndex,x=f.endIndex,w=f.onChange,_=r.pageX-a;_>0?_=Math.min(_,c+p-m-u,c+p-m-s):_<0&&(_=Math.max(_,c-s,c-u));var S=this.getIndex({startX:s+_,endX:u+_});(S.startIndex!==v||S.endIndex!==x)&&w&&w(S),this.setState({startX:s+_,endX:u+_,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=Bk(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,s=i.movingTravellerId,u=i.endX,f=i.startX,c=this.state[s],p=this.props,m=p.x,v=p.width,x=p.travellerWidth,w=p.onChange,_=p.gap,S=p.data,C={startX:this.state.startX,endX:this.state.endX},O=r.pageX-a;O>0?O=Math.min(O,m+v-x-c):O<0&&(O=Math.max(O,m-c)),C[s]=c+O;var T=this.getIndex(C),P=T.startIndex,j=T.endIndex,R=function(){var V=S.length-1;return s==="startX"&&(u>f?P%_===0:j%_===0)||u<f&&j===V||s==="endX"&&(u>f?j%_===0:P%_===0)||u>f&&j===V};this.setState(bi(bi({},s,c+O),"brushMoveStartX",r.pageX),function(){w&&R()&&w(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,s=this.state,u=s.scaleValues,f=s.startX,c=s.endX,p=this.state[i],m=u.indexOf(p);if(m!==-1){var v=m+r;if(!(v===-1||v>=u.length)){var x=u[v];i==="startX"&&x>=c||i==="endX"&&x<=f||this.setState(bi({},i,x),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,s=r.width,u=r.height,f=r.fill,c=r.stroke;return pe.createElement("rect",{stroke:c,fill:f,x:i,y:a,width:s,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,s=r.width,u=r.height,f=r.data,c=r.children,p=r.padding,m=I.Children.only(c);return m?pe.cloneElement(m,{x:i,y:a,width:s,height:u,margin:p,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,s,u=this,f=this.props,c=f.y,p=f.travellerWidth,m=f.height,v=f.traveller,x=f.ariaLabel,w=f.data,_=f.startIndex,S=f.endIndex,C=Math.max(r,this.props.x),O=iC(iC({},ot(this.props,!1)),{},{x:C,y:c,width:p,height:m}),T=x||"Min value: ".concat((a=w[_])===null||a===void 0?void 0:a.name,", Max value: ").concat((s=w[S])===null||s===void 0?void 0:s.name);return pe.createElement(St,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),u.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,O))}},{key:"renderSlide",value:function(r,i){var a=this.props,s=a.y,u=a.height,f=a.stroke,c=a.travellerWidth,p=Math.min(r,i)+c,m=Math.max(Math.abs(i-r)-c,0);return pe.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:p,y:s,width:m,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,s=r.y,u=r.height,f=r.travellerWidth,c=r.stroke,p=this.state,m=p.startX,v=p.endX,x=5,w={pointerEvents:"none",fill:c};return pe.createElement(St,{className:"recharts-brush-texts"},pe.createElement(qu,l0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,v)-x,y:s+u/2},w),this.getTextOfTick(i)),pe.createElement(qu,l0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,v)+f+x,y:s+u/2},w),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,s=r.children,u=r.x,f=r.y,c=r.width,p=r.height,m=r.alwaysShowText,v=this.state,x=v.startX,w=v.endX,_=v.isTextActive,S=v.isSlideMoving,C=v.isTravellerMoving,O=v.isTravellerFocused;if(!i||!i.length||!Ze(u)||!Ze(f)||!Ze(c)||!Ze(p)||c<=0||p<=0)return null;var T=je("recharts-brush",a),P=pe.Children.count(s)===1,j=Nve("userSelect","none");return pe.createElement(St,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(x,w),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(w,"endX"),(_||S||C||O||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,s=r.width,u=r.height,f=r.stroke,c=Math.floor(a+u/2)-1;return pe.createElement(pe.Fragment,null,pe.createElement("rect",{x:i,y:a,width:s,height:u,fill:f,stroke:"none"}),pe.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),pe.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return pe.isValidElement(r)?a=pe.cloneElement(r,i):ht(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,s=r.width,u=r.x,f=r.travellerWidth,c=r.updateId,p=r.startIndex,m=r.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return iC({prevData:a,prevTravellerWidth:f,prevUpdateId:c,prevX:u,prevWidth:s},a&&a.length?$ve({data:a,width:s,x:u,travellerWidth:f,startIndex:p,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||u!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([u,u+s-f]);var v=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:a,prevTravellerWidth:f,prevUpdateId:c,prevX:u,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,s=0,u=a-1;u-s>1;){var f=Math.floor((s+u)/2);r[f]>i?u=f:s=f}return i>=r[u]?u:s}}])}(I.PureComponent);bi($f,"displayName","Brush");bi($f,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var aC,zk;function Fve(){if(zk)return aC;zk=1;var e=mT();function t(n,r){var i;return e(n,function(a,s,u){return i=r(a,s,u),!i}),!!i}return aC=t,aC}var oC,$k;function qve(){if($k)return oC;$k=1;var e=HU(),t=lo(),n=Fve(),r=ri(),i=vb();function a(s,u,f){var c=r(s)?e:n;return f&&i(s,u,f)&&(u=void 0),c(s,t(u,3))}return oC=a,oC}var Vve=qve();const Hve=qt(Vve);var Za=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},sC,Fk;function Gve(){if(Fk)return sC;Fk=1;var e=uB();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return sC=t,sC}var lC,qk;function Wve(){if(qk)return lC;qk=1;var e=Gve(),t=sB(),n=lo();function r(i,a){var s={};return a=n(a,3),t(i,function(u,f,c){e(s,f,a(u,f,c))}),s}return lC=r,lC}var Yve=Wve();const Kve=qt(Yve);var uC,Vk;function Zve(){if(Vk)return uC;Vk=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return uC=e,uC}var cC,Hk;function Xve(){if(Hk)return cC;Hk=1;var e=mT();function t(n,r){var i=!0;return e(n,function(a,s,u){return i=!!r(a,s,u),i}),i}return cC=t,cC}var fC,Gk;function Qve(){if(Gk)return fC;Gk=1;var e=Zve(),t=Xve(),n=lo(),r=ri(),i=vb();function a(s,u,f){var c=r(s)?e:t;return f&&i(s,u,f)&&(u=void 0),c(s,n(u,3))}return fC=a,fC}var Jve=Qve();const Kz=qt(Jve);var eye=["x","y"];function sm(e){"@babel/helpers - typeof";return sm=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},sm(e)}function _O(){return _O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_O.apply(this,arguments)}function Wk(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 Hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wk(Object(n),!0).forEach(function(r){tye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tye(e,t,n){return t=nye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nye(e){var t=rye(e,"string");return sm(t)=="symbol"?t:t+""}function rye(e,t){if(sm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iye(e,t){if(e==null)return{};var n=aye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oye(e,t){var n=e.x,r=e.y,i=iye(e,eye),a="".concat(n),s=parseInt(a,10),u="".concat(r),f=parseInt(u,10),c="".concat(t.height||i.height),p=parseInt(c,10),m="".concat(t.width||i.width),v=parseInt(m,10);return Hh(Hh(Hh(Hh(Hh({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:p,width:v,name:t.name,radius:t.radius})}function Yk(e){return pe.createElement(a0,_O({shapeType:"rectangle",propTransformer:oye,activeClassName:"recharts-active-bar"},e))}var sye=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=typeof r=="number";return a?t(r,i):(a||Hu(),n)}},lye=["value","background"],Zz;function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function uye(e,t){if(e==null)return{};var n=cye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.apply(this,arguments)}function Kk(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 Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kk(Object(n),!0).forEach(function(r){dl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zk(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,Qz(r.key),r)}}function dye(e,t,n){return t&&Zk(e.prototype,t),n&&Zk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hye(e,t,n){return t=f0(t),pye(e,Xz()?Reflect.construct(t,n||[],f0(e).constructor):t.apply(e,n))}function pye(e,t){if(t&&(Ff(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mye(e)}function mye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xz=function(){return!!e})()}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},f0(e)}function gye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xO(e,t)}function xO(e,t){return xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xO(e,t)}function dl(e,t,n){return t=Qz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qz(e){var t=vye(e,"string");return Ff(t)=="symbol"?t:t+""}function vye(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wo=function(e){function t(){var n;fye(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=hye(this,t,[].concat(i)),dl(n,"state",{isAnimationFinished:!1}),dl(n,"id",Nl("recharts-bar-")),dl(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),dl(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return gye(t,e),dye(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,s=a.shape,u=a.dataKey,f=a.activeIndex,c=a.activeBar,p=ot(this.props,!1);return r&&r.map(function(m,v){var x=v===f,w=x?c:s,_=Fn(Fn(Fn({},p),m),{},{isActive:x,option:w,index:v,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return pe.createElement(St,c0({className:"recharts-bar-rectangle"},El(i.props,m,v),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(v)}),pe.createElement(Yk,_))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,s=i.layout,u=i.isAnimationActive,f=i.animationBegin,c=i.animationDuration,p=i.animationEasing,m=i.animationId,v=this.state.prevData;return pe.createElement(Xi,{begin:f,duration:c,isActive:u,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var w=x.t,_=a.map(function(S,C){var O=v&&v[C];if(O){var T=En(O.x,S.x),P=En(O.y,S.y),j=En(O.width,S.width),R=En(O.height,S.height);return Fn(Fn({},S),{},{x:T(w),y:P(w),width:j(w),height:R(w)})}if(s==="horizontal"){var $=En(0,S.height),V=$(w);return Fn(Fn({},S),{},{y:S.y+S.height-V,height:V})}var X=En(0,S.width),Z=X(w);return Fn(Fn({},S),{},{width:Z})});return pe.createElement(St,null,r.renderRectanglesStatically(_))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,s=this.state.prevData;return a&&i&&i.length&&(!s||!Tl(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,s=i.dataKey,u=i.activeIndex,f=ot(this.props.background,!1);return a.map(function(c,p){c.value;var m=c.background,v=uye(c,lye);if(!m)return null;var x=Fn(Fn(Fn(Fn(Fn({},v),{},{fill:"#eee"},m),f),El(r.props,c,p)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:p,className:"recharts-bar-background-rectangle"});return pe.createElement(Yk,c0({key:"background-bar-".concat(p),option:r.props.background,isActive:p===u},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.data,u=a.xAxis,f=a.yAxis,c=a.layout,p=a.children,m=Hr(p,_d);if(!m)return null;var v=c==="vertical"?s[0].height/2:s[0].width/2,x=function(S,C){var O=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:O,errorVal:mn(S,C)}},w={clipPath:r?"url(#clipPath-".concat(i,")"):null};return pe.createElement(St,w,m.map(function(_){return pe.cloneElement(_,{key:"error-bar-".concat(i,"-").concat(_.props.dataKey),data:s,xAxis:u,yAxis:f,layout:c,offset:v,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,s=r.className,u=r.xAxis,f=r.yAxis,c=r.left,p=r.top,m=r.width,v=r.height,x=r.isAnimationActive,w=r.background,_=r.id;if(i||!a||!a.length)return null;var S=this.state.isAnimationFinished,C=je("recharts-bar",s),O=u&&u.allowDataOverflow,T=f&&f.allowDataOverflow,P=O||T,j=pt(_)?this.id:_;return pe.createElement(St,{className:C},O||T?pe.createElement("defs",null,pe.createElement("clipPath",{id:"clipPath-".concat(j)},pe.createElement("rect",{x:O?c:c-m/2,y:T?p:p-v/2,width:O?m:m*2,height:T?v:v*2}))):null,pe.createElement(St,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(j,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,j),(!x||S)&&ma.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(I.PureComponent);Zz=Wo;dl(Wo,"displayName","Bar");dl(Wo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ss.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});dl(Wo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,s=e.yAxis,u=e.xAxisTicks,f=e.yAxisTicks,c=e.stackedData,p=e.dataStartIndex,m=e.displayedData,v=e.offset,x=Kde(r,n);if(!x)return null;var w=t.layout,_=n.type.defaultProps,S=_!==void 0?Fn(Fn({},_),n.props):n.props,C=S.dataKey,O=S.children,T=S.minPointSize,P=w==="horizontal"?s:a,j=c?P.scale.domain():null,R=nhe({numericAxis:P}),$=Hr(O,ml),V=m.map(function(X,Z){var Y,te,ae,Q,ne,H;c?Y=Zde(c[p+Z],j):(Y=mn(X,C),Array.isArray(Y)||(Y=[R,Y]));var B=sye(T,Zz.defaultProps.minPointSize)(Y[1],Z);if(w==="horizontal"){var U,F=[s.scale(Y[0]),s.scale(Y[1])],M=F[0],k=F[1];te=AD({axis:a,ticks:u,bandSize:i,offset:x.offset,entry:X,index:Z}),ae=(U=k??M)!==null&&U!==void 0?U:void 0,Q=x.size;var J=M-k;if(ne=Number.isNaN(J)?0:J,H={x:te,y:s.y,width:Q,height:s.height},Math.abs(B)>0&&Math.abs(ne)<Math.abs(B)){var W=zr(ne||B)*(Math.abs(B)-Math.abs(ne));ae-=W,ne+=W}}else{var ie=[a.scale(Y[0]),a.scale(Y[1])],fe=ie[0],ce=ie[1];if(te=fe,ae=AD({axis:s,ticks:f,bandSize:i,offset:x.offset,entry:X,index:Z}),Q=ce-fe,ne=x.size,H={x:a.x,y:ae,width:a.width,height:ne},Math.abs(B)>0&&Math.abs(Q)<Math.abs(B)){var ye=zr(Q||B)*(Math.abs(B)-Math.abs(Q));Q+=ye}}return Fn(Fn(Fn({},X),{},{x:te,y:ae,width:Q,height:ne,value:c?Y:Y[1],payload:X,background:H},$&&$[Z]&&$[Z].props),{},{tooltipPayload:[Az(n,X)],tooltipPosition:{x:te+Q/2,y:ae+ne/2}})});return Fn({data:V,layout:w},v)});function lm(e){"@babel/helpers - typeof";return lm=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},lm(e)}function yye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xk(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,Jz(r.key),r)}}function bye(e,t,n){return t&&Xk(e.prototype,t),n&&Xk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qk(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 ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qk(Object(n),!0).forEach(function(r){Lb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lb(e,t,n){return t=Jz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jz(e){var t=_ye(e,"string");return lm(t)=="symbol"?t:t+""}function _ye(e,t){if(lm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var e$=function(t,n,r,i,a){var s=t.width,u=t.height,f=t.layout,c=t.children,p=Object.keys(n),m={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},v=!!_i(c,Wo);return p.reduce(function(x,w){var _=n[w],S=_.orientation,C=_.domain,O=_.padding,T=O===void 0?{}:O,P=_.mirror,j=_.reversed,R="".concat(S).concat(P?"Mirror":""),$,V,X,Z,Y;if(_.type==="number"&&(_.padding==="gap"||_.padding==="no-gap")){var te=C[1]-C[0],ae=1/0,Q=_.categoricalDomain.sort(Iie);if(Q.forEach(function(ie,fe){fe>0&&(ae=Math.min((ie||0)-(Q[fe-1]||0),ae))}),Number.isFinite(ae)){var ne=ae/te,H=_.layout==="vertical"?r.height:r.width;if(_.padding==="gap"&&($=ne*H/2),_.padding==="no-gap"){var B=$r(t.barCategoryGap,ne*H),U=ne*H/2;$=U-B-(U-B)/H*B}}}i==="xAxis"?V=[r.left+(T.left||0)+($||0),r.left+r.width-(T.right||0)-($||0)]:i==="yAxis"?V=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+($||0),r.top+r.height-(T.bottom||0)-($||0)]:V=_.range,j&&(V=[V[1],V[0]]);var F=xz(_,a,v),M=F.scale,k=F.realScaleType;M.domain(C).range(V),wz(M);var J=Sz(M,ca(ca({},_),{},{realScaleType:k}));i==="xAxis"?(Y=S==="top"&&!P||S==="bottom"&&P,X=r.left,Z=m[R]-Y*_.height):i==="yAxis"&&(Y=S==="left"&&!P||S==="right"&&P,X=m[R]-Y*_.width,Z=r.top);var W=ca(ca(ca({},_),J),{},{realScaleType:k,x:X,y:Z,scale:M,width:i==="xAxis"?r.width:_.width,height:i==="yAxis"?r.height:_.height});return W.bandSize=Yy(W,J),!_.hide&&i==="xAxis"?m[R]+=(Y?-1:1)*W.height:_.hide||(m[R]+=(Y?-1:1)*W.width),ca(ca({},x),{},Lb({},w,W))},{})},t$=function(t,n){var r=t.x,i=t.y,a=n.x,s=n.y;return{x:Math.min(r,a),y:Math.min(i,s),width:Math.abs(a-r),height:Math.abs(s-i)}},xye=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return t$({x:n,y:r},{x:i,y:a})},n$=function(){function e(t){yye(this,e),this.scale=t}return bye(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();Lb(n$,"EPS",1e-4);var VT=function(t){var n=Object.keys(t).reduce(function(r,i){return ca(ca({},r),{},Lb({},i,n$.create(t[i])))},{});return ca(ca({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.bandAware,u=a.position;return Kve(i,function(f,c){return n[c].apply(f,{bandAware:s,position:u})})},isInRange:function(i){return Kz(i,function(a,s){return n[s].isInRange(a)})}})};function wye(e){return(e%180+180)%180}var Sye=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=wye(i),s=a*Math.PI/180,u=Math.atan(r/n),f=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(f)},dC,Jk;function Cye(){if(Jk)return dC;Jk=1;var e=lo(),t=jm(),n=mb();function r(i){return function(a,s,u){var f=Object(a);if(!t(a)){var c=e(s,3);a=n(a),s=function(m){return c(f[m],m,f)}}var p=i(a,s,u);return p>-1?f[c?a[p]:p]:void 0}}return dC=r,dC}var hC,e8;function Aye(){if(e8)return hC;e8=1;var e=Hz();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return hC=t,hC}var pC,t8;function Oye(){if(t8)return pC;t8=1;var e=nB(),t=lo(),n=Aye(),r=Math.max;function i(a,s,u){var f=a==null?0:a.length;if(!f)return-1;var c=u==null?0:n(u);return c<0&&(c=r(f+c,0)),e(a,t(s,3),c)}return pC=i,pC}var mC,n8;function Eye(){if(n8)return mC;n8=1;var e=Cye(),t=Oye(),n=e(t);return mC=n,mC}var Tye=Eye();const jye=qt(Tye);var Pye=vU();const Rye=qt(Pye);var Mye=Rye(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),HT=I.createContext(void 0),GT=I.createContext(void 0),r$=I.createContext(void 0),i$=I.createContext({}),a$=I.createContext(void 0),o$=I.createContext(0),s$=I.createContext(0),r8=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,s=t.clipPathId,u=t.children,f=t.width,c=t.height,p=Mye(a);return pe.createElement(HT.Provider,{value:r},pe.createElement(GT.Provider,{value:i},pe.createElement(i$.Provider,{value:a},pe.createElement(r$.Provider,{value:p},pe.createElement(a$.Provider,{value:s},pe.createElement(o$.Provider,{value:c},pe.createElement(s$.Provider,{value:f},u)))))))},Nye=function(){return I.useContext(a$)},l$=function(t){var n=I.useContext(HT);n==null&&Hu();var r=n[t];return r==null&&Hu(),r},Lye=function(){var t=I.useContext(HT);return ul(t)},Dye=function(){var t=I.useContext(GT),n=jye(t,function(r){return Kz(r.domain,Number.isFinite)});return n||ul(t)},u$=function(t){var n=I.useContext(GT);n==null&&Hu();var r=n[t];return r==null&&Hu(),r},kye=function(){var t=I.useContext(r$);return t},Iye=function(){return I.useContext(i$)},WT=function(){return I.useContext(s$)},YT=function(){return I.useContext(o$)};function qf(e){"@babel/helpers - typeof";return qf=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},qf(e)}function Uye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f$(r.key),r)}}function zye(e,t,n){return t&&Bye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ye(e,t,n){return t=d0(t),Fye(e,c$()?Reflect.construct(t,n||[],d0(e).constructor):t.apply(e,n))}function Fye(e,t){if(t&&(qf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qye(e)}function qye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c$=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d0(e)}function Vye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wO(e,t)}function wO(e,t){return wO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wO(e,t)}function i8(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 a8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i8(Object(n),!0).forEach(function(r){KT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KT(e,t,n){return t=f$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f$(e){var t=Hye(e,"string");return qf(t)=="symbol"?t:t+""}function Hye(e,t){if(qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gye(e,t){return Zye(e)||Kye(e,t)||Yye(e,t)||Wye()}function Wye(){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 Yye(e,t){if(e){if(typeof e=="string")return o8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o8(e,t)}}function o8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function Zye(e){if(Array.isArray(e))return e}function SO(){return SO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SO.apply(this,arguments)}var Xye=function(t,n){var r;return pe.isValidElement(t)?r=pe.cloneElement(t,n):ht(t)?r=t(n):r=pe.createElement("line",SO({},n,{className:"recharts-reference-line-line"})),r},Qye=function(t,n,r,i,a,s,u,f,c){var p=a.x,m=a.y,v=a.width,x=a.height;if(r){var w=c.y,_=t.y.apply(w,{position:s});if(Za(c,"discard")&&!t.y.isInRange(_))return null;var S=[{x:p+v,y:_},{x:p,y:_}];return f==="left"?S.reverse():S}if(n){var C=c.x,O=t.x.apply(C,{position:s});if(Za(c,"discard")&&!t.x.isInRange(O))return null;var T=[{x:O,y:m+x},{x:O,y:m}];return u==="top"?T.reverse():T}if(i){var P=c.segment,j=P.map(function(R){return t.apply(R,{position:s})});return Za(c,"discard")&&Hve(j,function(R){return!t.isInRange(R)})?null:j}return null};function Jye(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,u=e.className,f=e.alwaysShow,c=Nye(),p=l$(i),m=u$(a),v=kye();if(!c||!v)return null;pa(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=VT({x:p.scale,y:m.scale}),w=Kn(t),_=Kn(n),S=r&&r.length===2,C=Qye(x,w,_,S,v,e.position,p.orientation,m.orientation,e);if(!C)return null;var O=Gye(C,2),T=O[0],P=T.x,j=T.y,R=O[1],$=R.x,V=R.y,X=Za(e,"hidden")?"url(#".concat(c,")"):void 0,Z=a8(a8({clipPath:X},ot(e,!0)),{},{x1:P,y1:j,x2:$,y2:V});return pe.createElement(St,{className:je("recharts-reference-line",u)},Xye(s,Z),lr.renderCallByParent(e,xye({x1:P,y1:j,x2:$,y2:V})))}var ZT=function(e){function t(){return Uye(this,t),$ye(this,t,arguments)}return Vye(t,e),zye(t,[{key:"render",value:function(){return pe.createElement(Jye,this.props)}}])}(pe.Component);KT(ZT,"displayName","ReferenceLine");KT(ZT,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function CO(){return CO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CO.apply(this,arguments)}function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function s8(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 l8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(n),!0).forEach(function(r){Db(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t0e(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,h$(r.key),r)}}function n0e(e,t,n){return t&&t0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r0e(e,t,n){return t=h0(t),i0e(e,d$()?Reflect.construct(t,n||[],h0(e).constructor):t.apply(e,n))}function i0e(e,t){if(t&&(Vf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a0e(e)}function a0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d$=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},h0(e)}function o0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AO(e,t)}function AO(e,t){return AO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AO(e,t)}function Db(e,t,n){return t=h$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e){var t=s0e(e,"string");return Vf(t)=="symbol"?t:t+""}function s0e(e,t){if(Vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var l0e=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,s=VT({x:i.scale,y:a.scale}),u=s.apply({x:n,y:r},{bandAware:!0});return Za(t,"discard")&&!s.isInRange(u)?null:u},kb=function(e){function t(){return e0e(this,t),r0e(this,t,arguments)}return o0e(t,e),n0e(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,s=r.r,u=r.alwaysShow,f=r.clipPathId,c=Kn(i),p=Kn(a);if(pa(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!p)return null;var m=l0e(this.props);if(!m)return null;var v=m.x,x=m.y,w=this.props,_=w.shape,S=w.className,C=Za(this.props,"hidden")?"url(#".concat(f,")"):void 0,O=l8(l8({clipPath:C},ot(this.props,!0)),{},{cx:v,cy:x});return pe.createElement(St,{className:je("recharts-reference-dot",S)},t.renderDot(_,O),lr.renderCallByParent(this.props,{x:v-s,y:x-s,width:2*s,height:2*s}))}}])}(pe.Component);Db(kb,"displayName","ReferenceDot");Db(kb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Db(kb,"renderDot",function(e,t){var n;return pe.isValidElement(e)?n=pe.cloneElement(e,t):ht(e)?n=e(t):n=pe.createElement(Lm,CO({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function OO(){return OO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OO.apply(this,arguments)}function Hf(e){"@babel/helpers - typeof";return Hf=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},Hf(e)}function u8(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 c8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u8(Object(n),!0).forEach(function(r){Ib(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c0e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m$(r.key),r)}}function f0e(e,t,n){return t&&c0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d0e(e,t,n){return t=p0(t),h0e(e,p$()?Reflect.construct(t,n||[],p0(e).constructor):t.apply(e,n))}function h0e(e,t){if(t&&(Hf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p0e(e)}function p0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p$=function(){return!!e})()}function p0(e){return p0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p0(e)}function m0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&EO(e,t)}function EO(e,t){return EO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EO(e,t)}function Ib(e,t,n){return t=m$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m$(e){var t=g0e(e,"string");return Hf(t)=="symbol"?t:t+""}function g0e(e,t){if(Hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var v0e=function(t,n,r,i,a){var s=a.x1,u=a.x2,f=a.y1,c=a.y2,p=a.xAxis,m=a.yAxis;if(!p||!m)return null;var v=VT({x:p.scale,y:m.scale}),x={x:t?v.x.apply(s,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(f,{position:"start"}):v.y.rangeMin},w={x:n?v.x.apply(u,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(c,{position:"end"}):v.y.rangeMax};return Za(a,"discard")&&(!v.isInRange(x)||!v.isInRange(w))?null:t$(x,w)},Dm=function(e){function t(){return u0e(this,t),d0e(this,t,arguments)}return m0e(t,e),f0e(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,s=r.y1,u=r.y2,f=r.className,c=r.alwaysShow,p=r.clipPathId;pa(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Kn(i),v=Kn(a),x=Kn(s),w=Kn(u),_=this.props.shape;if(!m&&!v&&!x&&!w&&!_)return null;var S=v0e(m,v,x,w,this.props);if(!S&&!_)return null;var C=Za(this.props,"hidden")?"url(#".concat(p,")"):void 0;return pe.createElement(St,{className:je("recharts-reference-area",f)},t.renderRect(_,c8(c8({clipPath:C},ot(this.props,!0)),S)),lr.renderCallByParent(this.props,S))}}])}(pe.Component);Ib(Dm,"displayName","ReferenceArea");Ib(Dm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ib(Dm,"renderRect",function(e,t){var n;return pe.isValidElement(e)?n=pe.cloneElement(e,t):ht(e)?n=e(t):n=pe.createElement(qT,OO({},t,{className:"recharts-reference-area-rect"})),n});function g$(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 y0e(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Sye(r,n)}function b0e(e,t,n){var r=n==="width",i=e.x,a=e.y,s=e.width,u=e.height;return t===1?{start:r?i:a,end:r?i+s:a+u}:{start:r?i+s:a+u,end:r?i:a}}function m0(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function _0e(e,t){return g$(e,t+1)}function x0e(e,t,n,r,i){for(var a=(r||[]).slice(),s=t.start,u=t.end,f=0,c=1,p=s,m=function(){var w=r==null?void 0:r[f];if(w===void 0)return{v:g$(r,c)};var _=f,S,C=function(){return S===void 0&&(S=n(w,_)),S},O=w.coordinate,T=f===0||m0(e,O,C,p,u);T||(f=0,p=s,c+=1),T&&(p=O+e*(C()/2+i),f+=c)},v;c<=a.length;)if(v=m(),v)return v.v;return[]}function um(e){"@babel/helpers - typeof";return um=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},um(e)}function f8(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 Er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f8(Object(n),!0).forEach(function(r){w0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w0e(e,t,n){return t=S0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S0e(e){var t=C0e(e,"string");return um(t)=="symbol"?t:t+""}function C0e(e,t){if(um(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(um(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A0e(e,t,n,r,i){for(var a=(r||[]).slice(),s=a.length,u=t.start,f=t.end,c=function(v){var x=a[v],w,_=function(){return w===void 0&&(w=n(x,v)),w};if(v===s-1){var S=e*(x.coordinate+e*_()/2-f);a[v]=x=Er(Er({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else a[v]=x=Er(Er({},x),{},{tickCoord:x.coordinate});var C=m0(e,x.tickCoord,_,u,f);C&&(f=x.tickCoord-e*(_()/2+i),a[v]=Er(Er({},x),{},{isShow:!0}))},p=s-1;p>=0;p--)c(p);return a}function O0e(e,t,n,r,i,a){var s=(r||[]).slice(),u=s.length,f=t.start,c=t.end;if(a){var p=r[u-1],m=n(p,u-1),v=e*(p.coordinate+e*m/2-c);s[u-1]=p=Er(Er({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate});var x=m0(e,p.tickCoord,function(){return m},f,c);x&&(c=p.tickCoord-e*(m/2+i),s[u-1]=Er(Er({},p),{},{isShow:!0}))}for(var w=a?u-1:u,_=function(O){var T=s[O],P,j=function(){return P===void 0&&(P=n(T,O)),P};if(O===0){var R=e*(T.coordinate-e*j()/2-f);s[O]=T=Er(Er({},T),{},{tickCoord:R<0?T.coordinate-R*e:T.coordinate})}else s[O]=T=Er(Er({},T),{},{tickCoord:T.coordinate});var $=m0(e,T.tickCoord,j,f,c);$&&(f=T.tickCoord+e*(j()/2+i),s[O]=Er(Er({},T),{},{isShow:!0}))},S=0;S<w;S++)_(S);return s}function XT(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,s=e.minTickGap,u=e.orientation,f=e.interval,c=e.tickFormatter,p=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(Ze(f)||ss.isSsr)return _0e(i,typeof f=="number"&&Ze(f)?f:0);var v=[],x=u==="top"||u==="bottom"?"width":"height",w=p&&x==="width"?up(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},_=function(T,P){var j=ht(c)?c(T.value,P):T.value;return x==="width"?y0e(up(j,{fontSize:t,letterSpacing:n}),w,m):up(j,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?zr(i[1].coordinate-i[0].coordinate):1,C=b0e(a,S,x);return f==="equidistantPreserveStart"?x0e(S,C,_,i,s):(f==="preserveStart"||f==="preserveStartEnd"?v=O0e(S,C,_,i,s,f==="preserveStartEnd"):v=A0e(S,C,_,i,s),v.filter(function(O){return O.isShow}))}var E0e=["viewBox"],T0e=["viewBox"],j0e=["ticks"];function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uf.apply(this,arguments)}function d8(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 Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d8(Object(n),!0).forEach(function(r){QT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gC(e,t){if(e==null)return{};var n=P0e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function R0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h8(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,y$(r.key),r)}}function M0e(e,t,n){return t&&h8(e.prototype,t),n&&h8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N0e(e,t,n){return t=g0(t),L0e(e,v$()?Reflect.construct(t,n||[],g0(e).constructor):t.apply(e,n))}function L0e(e,t){if(t&&(Gf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D0e(e)}function D0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v$=function(){return!!e})()}function g0(e){return g0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g0(e)}function k0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TO(e,t)}function TO(e,t){return TO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TO(e,t)}function QT(e,t,n){return t=y$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y$(e){var t=I0e(e,"string");return Gf(t)=="symbol"?t:t+""}function I0e(e,t){if(Gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xd=function(e){function t(n){var r;return R0e(this,t),r=N0e(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return k0e(t,e),M0e(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,s=gC(r,E0e),u=this.props,f=u.viewBox,c=gC(u,T0e);return!mf(a,f)||!mf(s,c)||!mf(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.x,s=i.y,u=i.width,f=i.height,c=i.orientation,p=i.tickSize,m=i.mirror,v=i.tickMargin,x,w,_,S,C,O,T=m?-1:1,P=r.tickSize||p,j=Ze(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":x=w=r.coordinate,S=s+ +!m*f,_=S-T*P,O=_-T*v,C=j;break;case"left":_=S=r.coordinate,w=a+ +!m*u,x=w-T*P,C=x-T*v,O=j;break;case"right":_=S=r.coordinate,w=a+ +m*u,x=w+T*P,C=x+T*v,O=j;break;default:x=w=r.coordinate,S=s+ +m*f,_=S+T*P,O=_+T*v,C=j;break}return{line:{x1:x,y1:_,x2:w,y2:S},tick:{x:C,y:O}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,s;switch(i){case"left":s=a?"start":"end";break;case"right":s=a?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=a?"start":"end";break;default:s=a?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,s=r.width,u=r.height,f=r.orientation,c=r.mirror,p=r.axisLine,m=Ur(Ur(Ur({},ot(this.props,!1)),ot(p,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var v=+(f==="top"&&!c||f==="bottom"&&c);m=Ur(Ur({},m),{},{x1:i,y1:a+v*u,x2:i+s,y2:a+v*u})}else{var x=+(f==="left"&&!c||f==="right"&&c);m=Ur(Ur({},m),{},{x1:i+x*s,y1:a,x2:i+x*s,y2:a+u})}return pe.createElement("line",uf({},m,{className:je("recharts-cartesian-axis-line",Ai(p,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var s=this,u=this.props,f=u.tickLine,c=u.stroke,p=u.tick,m=u.tickFormatter,v=u.unit,x=XT(Ur(Ur({},this.props),{},{ticks:r}),i,a),w=this.getTickTextAnchor(),_=this.getTickVerticalAnchor(),S=ot(this.props,!1),C=ot(p,!1),O=Ur(Ur({},S),{},{fill:"none"},ot(f,!1)),T=x.map(function(P,j){var R=s.getTickLineCoord(P),$=R.line,V=R.tick,X=Ur(Ur(Ur(Ur({textAnchor:w,verticalAnchor:_},S),{},{stroke:"none",fill:c},C),V),{},{index:j,payload:P,visibleTicksCount:x.length,tickFormatter:m});return pe.createElement(St,uf({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},El(s.props,P,j)),f&&pe.createElement("line",uf({},O,$,{className:je("recharts-cartesian-axis-tick-line",Ai(f,"className"))})),p&&t.renderTickItem(p,X,"".concat(ht(m)?m(P.value,j):P.value).concat(v||"")))});return pe.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,s=i.width,u=i.height,f=i.ticksGenerator,c=i.className,p=i.hide;if(p)return null;var m=this.props,v=m.ticks,x=gC(m,j0e),w=v;return ht(f)&&(w=v&&v.length>0?f(this.props):f(x)),s<=0||u<=0||!w||!w.length?null:pe.createElement(St,{className:je("recharts-cartesian-axis",c),ref:function(S){r.layerReference=S}},a&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),lr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var s;return pe.isValidElement(r)?s=pe.cloneElement(r,i):ht(r)?s=r(i):s=pe.createElement(qu,uf({},i,{className:"recharts-cartesian-axis-tick-value"}),a),s}}])}(I.Component);QT(xd,"displayName","CartesianAxis");QT(xd,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var U0e=["x1","y1","x2","y2","key"],B0e=["offset"];function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function p8(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?p8(Object(n),!0).forEach(function(r){z0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z0e(e,t,n){return t=$0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0e(e){var t=F0e(e,"string");return Gu(t)=="symbol"?t:t+""}function F0e(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ju.apply(this,arguments)}function m8(e,t){if(e==null)return{};var n=q0e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var V0e=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,s=t.width,u=t.height,f=t.ry;return pe.createElement("rect",{x:i,y:a,ry:f,width:s,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function b$(e,t){var n;if(pe.isValidElement(e))n=pe.cloneElement(e,t);else if(ht(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,s=t.y2,u=t.key,f=m8(t,U0e),c=ot(f,!1);c.offset;var p=m8(c,B0e);n=pe.createElement("line",ju({},p,{x1:r,y1:i,x2:a,y2:s,fill:"none",key:u}))}return n}function H0e(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(u,f){var c=Tr(Tr({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(f),index:f});return b$(i,c)});return pe.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function G0e(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map(function(u,f){var c=Tr(Tr({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(f),index:f});return b$(i,c)});return pe.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function W0e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,s=e.height,u=e.horizontalPoints,f=e.horizontal,c=f===void 0?!0:f;if(!c||!t||!t.length)return null;var p=u.map(function(v){return Math.round(v+i-i)}).sort(function(v,x){return v-x});i!==p[0]&&p.unshift(0);var m=p.map(function(v,x){var w=!p[x+1],_=w?i+s-v:p[x+1]-v;if(_<=0)return null;var S=x%t.length;return pe.createElement("rect",{key:"react-".concat(x),y:v,x:r,height:_,width:a,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return pe.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Y0e(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,u=e.width,f=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var p=c.map(function(v){return Math.round(v+a-a)}).sort(function(v,x){return v-x});a!==p[0]&&p.unshift(0);var m=p.map(function(v,x){var w=!p[x+1],_=w?a+u-v:p[x+1]-v;if(_<=0)return null;var S=x%r.length;return pe.createElement("rect",{key:"react-".concat(x),x:v,y:s,width:_,height:f,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return pe.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var K0e=function(t,n){var r=t.xAxis,i=t.width,a=t.height,s=t.offset;return _z(XT(Tr(Tr(Tr({},xd.defaultProps),r),{},{ticks:Fo(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.left,s.left+s.width,n)},Z0e=function(t,n){var r=t.yAxis,i=t.width,a=t.height,s=t.offset;return _z(XT(Tr(Tr(Tr({},xd.defaultProps),r),{},{ticks:Fo(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),s.top,s.top+s.height,n)},Xc={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function JT(e){var t,n,r,i,a,s,u=WT(),f=YT(),c=Iye(),p=Tr(Tr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Xc.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Xc.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Xc.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Xc.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Xc.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Xc.verticalFill,x:Ze(e.x)?e.x:c.left,y:Ze(e.y)?e.y:c.top,width:Ze(e.width)?e.width:c.width,height:Ze(e.height)?e.height:c.height}),m=p.x,v=p.y,x=p.width,w=p.height,_=p.syncWithTicks,S=p.horizontalValues,C=p.verticalValues,O=Lye(),T=Dye();if(!Ze(x)||x<=0||!Ze(w)||w<=0||!Ze(m)||m!==+m||!Ze(v)||v!==+v)return null;var P=p.verticalCoordinatesGenerator||K0e,j=p.horizontalCoordinatesGenerator||Z0e,R=p.horizontalPoints,$=p.verticalPoints;if((!R||!R.length)&&ht(j)){var V=S&&S.length,X=j({yAxis:T?Tr(Tr({},T),{},{ticks:V?S:T.ticks}):void 0,width:u,height:f,offset:c},V?!0:_);pa(Array.isArray(X),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Gu(X),"]")),Array.isArray(X)&&(R=X)}if((!$||!$.length)&&ht(P)){var Z=C&&C.length,Y=P({xAxis:O?Tr(Tr({},O),{},{ticks:Z?C:O.ticks}):void 0,width:u,height:f,offset:c},Z?!0:_);pa(Array.isArray(Y),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Gu(Y),"]")),Array.isArray(Y)&&($=Y)}return pe.createElement("g",{className:"recharts-cartesian-grid"},pe.createElement(V0e,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),pe.createElement(H0e,ju({},p,{offset:c,horizontalPoints:R,xAxis:O,yAxis:T})),pe.createElement(G0e,ju({},p,{offset:c,verticalPoints:$,xAxis:O,yAxis:T})),pe.createElement(W0e,ju({},p,{horizontalPoints:R})),pe.createElement(Y0e,ju({},p,{verticalPoints:$})))}JT.displayName="CartesianGrid";var X0e=["type","layout","connectNulls","ref"],Q0e=["key"];function Wf(e){"@babel/helpers - typeof";return Wf=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},Wf(e)}function g8(e,t){if(e==null)return{};var n=J0e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(this,arguments)}function v8(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 vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v8(Object(n),!0).forEach(function(r){fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qc(e){return rbe(e)||nbe(e)||tbe(e)||ebe()}function ebe(){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 tbe(e,t){if(e){if(typeof e=="string")return jO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jO(e,t)}}function nbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rbe(e){if(Array.isArray(e))return jO(e)}function jO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ibe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y8(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,x$(r.key),r)}}function abe(e,t,n){return t&&y8(e.prototype,t),n&&y8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function obe(e,t,n){return t=v0(t),sbe(e,_$()?Reflect.construct(t,n||[],v0(e).constructor):t.apply(e,n))}function sbe(e,t){if(t&&(Wf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lbe(e)}function lbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_$=function(){return!!e})()}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(e)}function ube(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PO(e,t)}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PO(e,t)}function fa(e,t,n){return t=x$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x$(e){var t=cbe(e,"string");return Wf(t)=="symbol"?t:t+""}function cbe(e,t){if(Wf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wd=function(e){function t(){var n;ibe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=obe(this,t,[].concat(i)),fa(n,"state",{isAnimationFinished:!0,totalLength:0}),fa(n,"generateSimpleStrokeDasharray",function(s,u){return"".concat(u,"px ").concat(s-u,"px")}),fa(n,"getStrokeDasharray",function(s,u,f){var c=f.reduce(function(C,O){return C+O});if(!c)return n.generateSimpleStrokeDasharray(u,s);for(var p=Math.floor(s/c),m=s%c,v=u-s,x=[],w=0,_=0;w<f.length;_+=f[w],++w)if(_+f[w]>m){x=[].concat(Qc(f.slice(0,w)),[m-_]);break}var S=x.length%2===0?[0,v]:[v];return[].concat(Qc(t.repeat(f,p)),Qc(x),S).map(function(C){return"".concat(C,"px")}).join(", ")}),fa(n,"id",Nl("recharts-line-")),fa(n,"pathRef",function(s){n.mainCurve=s}),fa(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),fa(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return ube(t,e),abe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.points,u=a.xAxis,f=a.yAxis,c=a.layout,p=a.children,m=Hr(p,_d);if(!m)return null;var v=function(_,S){return{x:_.x,y:_.y,value:_.value,errorVal:mn(_.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return pe.createElement(St,x,m.map(function(w){return pe.cloneElement(w,{key:"bar-".concat(w.props.dataKey),data:s,xAxis:u,yAxis:f,layout:c,dataPointFormatter:v})}))}},{key:"renderDots",value:function(r,i,a){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var u=this.props,f=u.dot,c=u.points,p=u.dataKey,m=ot(this.props,!1),v=ot(f,!0),x=c.map(function(_,S){var C=vi(vi(vi({key:"dot-".concat(S),r:3},m),v),{},{index:S,cx:_.x,cy:_.y,value:_.value,dataKey:p,payload:_.payload,points:c});return t.renderDotItem(f,C)}),w={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return pe.createElement(St,mp({className:"recharts-line-dots",key:"dots"},w),x)}},{key:"renderCurveStatically",value:function(r,i,a,s){var u=this.props,f=u.type,c=u.layout,p=u.connectNulls;u.ref;var m=g8(u,X0e),v=vi(vi(vi({},ot(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:r},s),{},{type:f,layout:c,connectNulls:p});return pe.createElement(vl,mp({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var a=this,s=this.props,u=s.points,f=s.strokeDasharray,c=s.isAnimationActive,p=s.animationBegin,m=s.animationDuration,v=s.animationEasing,x=s.animationId,w=s.animateNewValues,_=s.width,S=s.height,C=this.state,O=C.prevPoints,T=C.totalLength;return pe.createElement(Xi,{begin:p,duration:m,isActive:c,easing:v,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(P){var j=P.t;if(O){var R=O.length/u.length,$=u.map(function(te,ae){var Q=Math.floor(ae*R);if(O[Q]){var ne=O[Q],H=En(ne.x,te.x),B=En(ne.y,te.y);return vi(vi({},te),{},{x:H(j),y:B(j)})}if(w){var U=En(_*2,te.x),F=En(S/2,te.y);return vi(vi({},te),{},{x:U(j),y:F(j)})}return vi(vi({},te),{},{x:te.x,y:te.y})});return a.renderCurveStatically($,r,i)}var V=En(0,T),X=V(j),Z;if(f){var Y="".concat(f).split(/[,\s]+/gim).map(function(te){return parseFloat(te)});Z=a.getStrokeDasharray(X,T,Y)}else Z=a.generateSimpleStrokeDasharray(T,X);return a.renderCurveStatically(u,r,i,{strokeDasharray:Z})})}},{key:"renderCurve",value:function(r,i){var a=this.props,s=a.points,u=a.isAnimationActive,f=this.state,c=f.prevPoints,p=f.totalLength;return u&&s&&s.length&&(!c&&p>0||!Tl(c,s))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(s,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,s=i.dot,u=i.points,f=i.className,c=i.xAxis,p=i.yAxis,m=i.top,v=i.left,x=i.width,w=i.height,_=i.isAnimationActive,S=i.id;if(a||!u||!u.length)return null;var C=this.state.isAnimationFinished,O=u.length===1,T=je("recharts-line",f),P=c&&c.allowDataOverflow,j=p&&p.allowDataOverflow,R=P||j,$=pt(S)?this.id:S,V=(r=ot(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},X=V.r,Z=X===void 0?3:X,Y=V.strokeWidth,te=Y===void 0?2:Y,ae=wU(s)?s:{},Q=ae.clipDot,ne=Q===void 0?!0:Q,H=Z*2+te;return pe.createElement(St,{className:T},P||j?pe.createElement("defs",null,pe.createElement("clipPath",{id:"clipPath-".concat($)},pe.createElement("rect",{x:P?v:v-x/2,y:j?m:m-w/2,width:P?x:x*2,height:j?w:w*2})),!ne&&pe.createElement("clipPath",{id:"clipPath-dots-".concat($)},pe.createElement("rect",{x:v-H/2,y:m-H/2,width:x+H,height:w+H}))):null,!O&&this.renderCurve(R,$),this.renderErrorBar(R,$),(O||s)&&this.renderDots(R,ne,$),(!_||C)&&ma.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var a=r.length%2!==0?[].concat(Qc(r),[0]):r,s=[],u=0;u<i;++u)s=[].concat(Qc(s),Qc(a));return s}},{key:"renderDotItem",value:function(r,i){var a;if(pe.isValidElement(r))a=pe.cloneElement(r,i);else if(ht(r))a=r(i);else{var s=i.key,u=g8(i,Q0e),f=je("recharts-line-dot",typeof r!="boolean"?r.className:"");a=pe.createElement(Lm,mp({key:s},u,{className:f}))}return a}}])}(I.PureComponent);fa(wd,"displayName","Line");fa(wd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ss.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});fa(wd,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.dataKey,u=e.bandSize,f=e.displayedData,c=e.offset,p=t.layout,m=f.map(function(v,x){var w=mn(v,s);return p==="horizontal"?{x:Df({axis:n,ticks:i,bandSize:u,entry:v,index:x}),y:pt(w)?null:r.scale(w),value:w,payload:v}:{x:pt(w)?null:n.scale(w),y:Df({axis:r,ticks:a,bandSize:u,entry:v,index:x}),value:w,payload:v}});return vi({points:m,layout:p},c)});var fbe=["layout","type","stroke","connectNulls","isRange","ref"],dbe=["key"],w$;function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function S$(e,t){if(e==null)return{};var n=hbe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pu.apply(this,arguments)}function b8(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 al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b8(Object(n),!0).forEach(function(r){Ga(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A$(r.key),r)}}function mbe(e,t,n){return t&&_8(e.prototype,t),n&&_8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gbe(e,t,n){return t=y0(t),vbe(e,C$()?Reflect.construct(t,n||[],y0(e).constructor):t.apply(e,n))}function vbe(e,t){if(t&&(Yf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ybe(e)}function ybe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C$=function(){return!!e})()}function y0(e){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y0(e)}function bbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RO(e,t)}function RO(e,t){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RO(e,t)}function Ga(e,t,n){return t=A$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A$(e){var t=_be(e,"string");return Yf(t)=="symbol"?t:t+""}function _be(e,t){if(Yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tc=function(e){function t(){var n;pbe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=gbe(this,t,[].concat(i)),Ga(n,"state",{isAnimationFinished:!0}),Ga(n,"id",Nl("recharts-area-")),Ga(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ht(s)&&s()}),Ga(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ht(s)&&s()}),n}return bbe(t,e),mbe(t,[{key:"renderDots",value:function(r,i,a){var s=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(s&&!u)return null;var f=this.props,c=f.dot,p=f.points,m=f.dataKey,v=ot(this.props,!1),x=ot(c,!0),w=p.map(function(S,C){var O=al(al(al({key:"dot-".concat(C),r:3},v),x),{},{index:C,cx:S.x,cy:S.y,dataKey:m,value:S.value,payload:S.payload,points:p});return t.renderDotItem(c,O)}),_={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return pe.createElement(St,Pu({className:"recharts-area-dots"},_),w)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,a=i.baseLine,s=i.points,u=i.strokeWidth,f=s[0].x,c=s[s.length-1].x,p=r*Math.abs(f-c),m=fl(s.map(function(v){return v.y||0}));return Ze(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(fl(a.map(function(v){return v.y||0})),m)),Ze(m)?pe.createElement("rect",{x:f<c?f:f-p,y:0,width:p,height:Math.floor(m+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,a=i.baseLine,s=i.points,u=i.strokeWidth,f=s[0].y,c=s[s.length-1].y,p=r*Math.abs(f-c),m=fl(s.map(function(v){return v.x||0}));return Ze(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(fl(a.map(function(v){return v.x||0})),m)),Ze(m)?pe.createElement("rect",{x:0,y:f<c?f:f-p,width:m+(u?parseInt("".concat(u),10):1),height:Math.floor(p)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,a,s){var u=this.props,f=u.layout,c=u.type,p=u.stroke,m=u.connectNulls,v=u.isRange;u.ref;var x=S$(u,fbe);return pe.createElement(St,{clipPath:a?"url(#clipPath-".concat(s,")"):null},pe.createElement(vl,Pu({},ot(x,!0),{points:r,connectNulls:m,type:c,baseLine:i,layout:f,stroke:"none",className:"recharts-area-area"})),p!=="none"&&pe.createElement(vl,Pu({},ot(this.props,!1),{className:"recharts-area-curve",layout:f,type:c,connectNulls:m,fill:"none",points:r})),p!=="none"&&v&&pe.createElement(vl,Pu({},ot(this.props,!1),{className:"recharts-area-curve",layout:f,type:c,connectNulls:m,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var a=this,s=this.props,u=s.points,f=s.baseLine,c=s.isAnimationActive,p=s.animationBegin,m=s.animationDuration,v=s.animationEasing,x=s.animationId,w=this.state,_=w.prevPoints,S=w.prevBaseLine;return pe.createElement(Xi,{begin:p,duration:m,isActive:c,easing:v,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var O=C.t;if(_){var T=_.length/u.length,P=u.map(function(V,X){var Z=Math.floor(X*T);if(_[Z]){var Y=_[Z],te=En(Y.x,V.x),ae=En(Y.y,V.y);return al(al({},V),{},{x:te(O),y:ae(O)})}return V}),j;if(Ze(f)&&typeof f=="number"){var R=En(S,f);j=R(O)}else if(pt(f)||md(f)){var $=En(S,0);j=$(O)}else j=f.map(function(V,X){var Z=Math.floor(X*T);if(S[Z]){var Y=S[Z],te=En(Y.x,V.x),ae=En(Y.y,V.y);return al(al({},V),{},{x:te(O),y:ae(O)})}return V});return a.renderAreaStatically(P,j,r,i)}return pe.createElement(St,null,pe.createElement("defs",null,pe.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(O))),pe.createElement(St,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,f,r,i)))})}},{key:"renderArea",value:function(r,i){var a=this.props,s=a.points,u=a.baseLine,f=a.isAnimationActive,c=this.state,p=c.prevPoints,m=c.prevBaseLine,v=c.totalLength;return f&&s&&s.length&&(!p&&v>0||!Tl(p,s)||!Tl(m,u))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(s,u,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,s=i.dot,u=i.points,f=i.className,c=i.top,p=i.left,m=i.xAxis,v=i.yAxis,x=i.width,w=i.height,_=i.isAnimationActive,S=i.id;if(a||!u||!u.length)return null;var C=this.state.isAnimationFinished,O=u.length===1,T=je("recharts-area",f),P=m&&m.allowDataOverflow,j=v&&v.allowDataOverflow,R=P||j,$=pt(S)?this.id:S,V=(r=ot(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},X=V.r,Z=X===void 0?3:X,Y=V.strokeWidth,te=Y===void 0?2:Y,ae=wU(s)?s:{},Q=ae.clipDot,ne=Q===void 0?!0:Q,H=Z*2+te;return pe.createElement(St,{className:T},P||j?pe.createElement("defs",null,pe.createElement("clipPath",{id:"clipPath-".concat($)},pe.createElement("rect",{x:P?p:p-x/2,y:j?c:c-w/2,width:P?x:x*2,height:j?w:w*2})),!ne&&pe.createElement("clipPath",{id:"clipPath-dots-".concat($)},pe.createElement("rect",{x:p-H/2,y:c-H/2,width:x+H,height:w+H}))):null,O?null:this.renderArea(R,$),(s||O)&&this.renderDots(R,ne,$),(!_||C)&&ma.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(I.PureComponent);w$=tc;Ga(tc,"displayName","Area");Ga(tc,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ss.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ga(tc,"getBaseValue",function(e,t,n,r){var i=e.layout,a=e.baseValue,s=t.props.baseValue,u=s??a;if(Ze(u)&&typeof u=="number")return u;var f=i==="horizontal"?r:n,c=f.scale.domain();if(f.type==="number"){var p=Math.max(c[0],c[1]),m=Math.min(c[0],c[1]);return u==="dataMin"?m:u==="dataMax"||p<0?p:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});Ga(tc,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,u=e.bandSize,f=e.dataKey,c=e.stackedData,p=e.dataStartIndex,m=e.displayedData,v=e.offset,x=t.layout,w=c&&c.length,_=w$.getBaseValue(t,n,r,i),S=x==="horizontal",C=!1,O=m.map(function(P,j){var R;w?R=c[p+j]:(R=mn(P,f),Array.isArray(R)?C=!0:R=[_,R]);var $=R[1]==null||w&&mn(P,f)==null;return S?{x:Df({axis:r,ticks:a,bandSize:u,entry:P,index:j}),y:$?null:i.scale(R[1]),value:R,payload:P}:{x:$?null:r.scale(R[1]),y:Df({axis:i,ticks:s,bandSize:u,entry:P,index:j}),value:R,payload:P}}),T;return w||C?T=O.map(function(P){var j=Array.isArray(P.value)?P.value[0]:null;return S?{x:P.x,y:j!=null&&P.y!=null?i.scale(j):null}:{x:j!=null?r.scale(j):null,y:P.y}}):T=S?i.scale(_):r.scale(_),al({points:O,baseLine:T,layout:x,isRange:C},v)});Ga(tc,"renderDotItem",function(e,t){var n;if(pe.isValidElement(e))n=pe.cloneElement(e,t);else if(ht(e))n=e(t);else{var r=je("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=S$(t,dbe);n=pe.createElement(Lm,Pu({},a,{key:i,className:r}))}return n});function Kf(e){"@babel/helpers - typeof";return Kf=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},Kf(e)}function xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wbe(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,T$(r.key),r)}}function Sbe(e,t,n){return t&&wbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cbe(e,t,n){return t=b0(t),Abe(e,O$()?Reflect.construct(t,n||[],b0(e).constructor):t.apply(e,n))}function Abe(e,t){if(t&&(Kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Obe(e)}function Obe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O$=function(){return!!e})()}function b0(e){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(e)}function Ebe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MO(e,t)}function MO(e,t){return MO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MO(e,t)}function E$(e,t,n){return t=T$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T$(e){var t=Tbe(e,"string");return Kf(t)=="symbol"?t:t+""}function Tbe(e,t){if(Kf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ub=function(e){function t(){return xbe(this,t),Cbe(this,t,arguments)}return Ebe(t,e),Sbe(t,[{key:"render",value:function(){return null}}])}(pe.Component);E$(Ub,"displayName","ZAxis");E$(Ub,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var jbe=["option","isActive"];function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gp.apply(this,arguments)}function Pbe(e,t){if(e==null)return{};var n=Rbe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Mbe(e){var t=e.option,n=e.isActive,r=Pbe(e,jbe);return typeof t=="string"?pe.createElement(a0,gp({option:pe.createElement(pb,gp({type:t},r)),isActive:n,shapeType:"symbols"},r)):pe.createElement(a0,gp({option:t,isActive:n,shapeType:"symbols"},r))}function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vp.apply(this,arguments)}function x8(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 Hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x8(Object(n),!0).forEach(function(r){hl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w8(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,P$(r.key),r)}}function Lbe(e,t,n){return t&&w8(e.prototype,t),n&&w8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dbe(e,t,n){return t=_0(t),kbe(e,j$()?Reflect.construct(t,n||[],_0(e).constructor):t.apply(e,n))}function kbe(e,t){if(t&&(Zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ibe(e)}function Ibe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j$=function(){return!!e})()}function _0(e){return _0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_0(e)}function Ube(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NO(e,t)}function NO(e,t){return NO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},NO(e,t)}function hl(e,t,n){return t=P$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P$(e){var t=Bbe(e,"string");return Zf(t)=="symbol"?t:t+""}function Bbe(e,t){if(Zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bb=function(e){function t(){var n;Nbe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Dbe(this,t,[].concat(i)),hl(n,"state",{isAnimationFinished:!1}),hl(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),hl(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),hl(n,"id",Nl("recharts-scatter-")),n}return Ube(t,e),Lbe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,a=this.props,s=a.shape,u=a.activeShape,f=a.activeIndex,c=ot(this.props,!1);return r.map(function(p,m){var v=f===m,x=v?u:s,w=Hi(Hi({},c),p);return pe.createElement(St,vp({className:"recharts-scatter-symbol",key:"symbol-".concat(p==null?void 0:p.cx,"-").concat(p==null?void 0:p.cy,"-").concat(p==null?void 0:p.size,"-").concat(m)},El(i.props,p,m),{role:"img"}),pe.createElement(Mbe,vp({option:x,isActive:v,key:"symbol-".concat(m)},w)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,a=i.points,s=i.isAnimationActive,u=i.animationBegin,f=i.animationDuration,c=i.animationEasing,p=i.animationId,m=this.state.prevPoints;return pe.createElement(Xi,{begin:u,duration:f,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var x=v.t,w=a.map(function(_,S){var C=m&&m[S];if(C){var O=En(C.cx,_.cx),T=En(C.cy,_.cy),P=En(C.size,_.size);return Hi(Hi({},_),{},{cx:O(x),cy:T(x),size:P(x)})}var j=En(0,_.size);return Hi(Hi({},_),{},{size:j(x)})});return pe.createElement(St,null,r.renderSymbolsStatically(w))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,s=this.state.prevPoints;return a&&i&&i.length&&(!s||!Tl(s,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,u=i.yAxis,f=i.children,c=Hr(f,_d);return c?c.map(function(p,m){var v=p.props,x=v.direction,w=v.dataKey;return pe.cloneElement(p,{key:"".concat(x,"-").concat(w,"-").concat(a[m]),data:a,xAxis:s,yAxis:u,layout:x==="x"?"vertical":"horizontal",dataPointFormatter:function(S,C){return{x:S.cx,y:S.cy,value:x==="x"?+S.node.x:+S.node.y,errorVal:mn(S,C)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,a=r.line,s=r.lineType,u=r.lineJointType,f=ot(this.props,!1),c=ot(a,!1),p,m;if(s==="joint")p=i.map(function(T){return{x:T.cx,y:T.cy}});else if(s==="fitting"){var v=kie(i),x=v.xmin,w=v.xmax,_=v.a,S=v.b,C=function(P){return _*P+S};p=[{x,y:C(x)},{x:w,y:C(w)}]}var O=Hi(Hi(Hi({},f),{},{fill:"none",stroke:f&&f.fill},c),{},{points:p});return pe.isValidElement(a)?m=pe.cloneElement(a,O):ht(a)?m=a(O):m=pe.createElement(vl,vp({},O,{type:u})),pe.createElement(St,{className:"recharts-scatter-line",key:"recharts-scatter-line"},m)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.points,s=r.line,u=r.className,f=r.xAxis,c=r.yAxis,p=r.left,m=r.top,v=r.width,x=r.height,w=r.id,_=r.isAnimationActive;if(i||!a||!a.length)return null;var S=this.state.isAnimationFinished,C=je("recharts-scatter",u),O=f&&f.allowDataOverflow,T=c&&c.allowDataOverflow,P=O||T,j=pt(w)?this.id:w;return pe.createElement(St,{className:C,clipPath:P?"url(#clipPath-".concat(j,")"):null},O||T?pe.createElement("defs",null,pe.createElement("clipPath",{id:"clipPath-".concat(j)},pe.createElement("rect",{x:O?p:p-v/2,y:T?m:m-x/2,width:O?v:v*2,height:T?x:x*2}))):null,s&&this.renderLine(),this.renderErrorBar(),pe.createElement(St,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!_||S)&&ma.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])}(I.PureComponent);hl(Bb,"displayName","Scatter");hl(Bb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ss.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});hl(Bb,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,s=e.xAxisTicks,u=e.yAxisTicks,f=e.offset,c=i.props.tooltipType,p=Hr(i.props.children,ml),m=pt(t.dataKey)?i.props.dataKey:t.dataKey,v=pt(n.dataKey)?i.props.dataKey:n.dataKey,x=r&&r.dataKey,w=r?r.range:Ub.defaultProps.range,_=w&&w[0],S=t.scale.bandwidth?t.scale.bandwidth():0,C=n.scale.bandwidth?n.scale.bandwidth():0,O=a.map(function(T,P){var j=mn(T,m),R=mn(T,v),$=!pt(x)&&mn(T,x)||"-",V=[{name:pt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:j,payload:T,dataKey:m,type:c},{name:pt(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:R,payload:T,dataKey:v,type:c}];$!=="-"&&V.push({name:r.name||r.dataKey,unit:r.unit||"",value:$,payload:T,dataKey:x,type:c});var X=Df({axis:t,ticks:s,bandSize:S,entry:T,index:P,dataKey:m}),Z=Df({axis:n,ticks:u,bandSize:C,entry:T,index:P,dataKey:v}),Y=$!=="-"?r.scale($):_,te=Math.sqrt(Math.max(Y,0)/Math.PI);return Hi(Hi({},T),{},{cx:X,cy:Z,x:X-te,y:Z-te,xAxis:t,yAxis:n,zAxis:r,width:2*te,height:2*te,size:Y,node:{x:j,y:R,z:$},tooltipPayload:V,tooltipPosition:{x:X,y:Z},payload:T},p&&p[P]&&p[P].props)});return Hi({points:O},f)});function Xf(e){"@babel/helpers - typeof";return Xf=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},Xf(e)}function zbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $be(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,N$(r.key),r)}}function Fbe(e,t,n){return t&&$be(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qbe(e,t,n){return t=x0(t),Vbe(e,R$()?Reflect.construct(t,n||[],x0(e).constructor):t.apply(e,n))}function Vbe(e,t){if(t&&(Xf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hbe(e)}function Hbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R$=function(){return!!e})()}function x0(e){return x0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x0(e)}function Gbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LO(e,t)}function LO(e,t){return LO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LO(e,t)}function M$(e,t,n){return t=N$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N$(e){var t=Wbe(e,"string");return Xf(t)=="symbol"?t:t+""}function Wbe(e,t){if(Xf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function DO(){return DO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DO.apply(this,arguments)}function Ybe(e){var t=e.xAxisId,n=WT(),r=YT(),i=l$(t);return i==null?null:pe.createElement(xd,DO({},i,{className:je("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Fo(s,!0)}}))}var Sd=function(e){function t(){return zbe(this,t),qbe(this,t,arguments)}return Gbe(t,e),Fbe(t,[{key:"render",value:function(){return pe.createElement(Ybe,this.props)}}])}(pe.Component);M$(Sd,"displayName","XAxis");M$(Sd,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Qf(e){"@babel/helpers - typeof";return Qf=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},Qf(e)}function Kbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zbe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k$(r.key),r)}}function Xbe(e,t,n){return t&&Zbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qbe(e,t,n){return t=w0(t),Jbe(e,L$()?Reflect.construct(t,n||[],w0(e).constructor):t.apply(e,n))}function Jbe(e,t){if(t&&(Qf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e1e(e)}function e1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L$=function(){return!!e})()}function w0(e){return w0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},w0(e)}function t1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kO(e,t)}function kO(e,t){return kO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kO(e,t)}function D$(e,t,n){return t=k$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k$(e){var t=n1e(e,"string");return Qf(t)=="symbol"?t:t+""}function n1e(e,t){if(Qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function IO(){return IO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IO.apply(this,arguments)}var r1e=function(t){var n=t.yAxisId,r=WT(),i=YT(),a=u$(n);return a==null?null:pe.createElement(xd,IO({},a,{className:je("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(u){return Fo(u,!0)}}))},Cd=function(e){function t(){return Kbe(this,t),Qbe(this,t,arguments)}return t1e(t,e),Xbe(t,[{key:"render",value:function(){return pe.createElement(r1e,this.props)}}])}(pe.Component);D$(Cd,"displayName","YAxis");D$(Cd,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function S8(e){return s1e(e)||o1e(e)||a1e(e)||i1e()}function i1e(){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 a1e(e,t){if(e){if(typeof e=="string")return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}}function o1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s1e(e){if(Array.isArray(e))return UO(e)}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var BO=function(t,n,r,i,a){var s=Hr(t,ZT),u=Hr(t,kb),f=[].concat(S8(s),S8(u)),c=Hr(t,Dm),p="".concat(i,"Id"),m=i[0],v=n;if(f.length&&(v=f.reduce(function(_,S){if(S.props[p]===r&&Za(S.props,"extendDomain")&&Ze(S.props[m])){var C=S.props[m];return[Math.min(_[0],C),Math.max(_[1],C)]}return _},v)),c.length){var x="".concat(m,"1"),w="".concat(m,"2");v=c.reduce(function(_,S){if(S.props[p]===r&&Za(S.props,"extendDomain")&&Ze(S.props[x])&&Ze(S.props[w])){var C=S.props[x],O=S.props[w];return[Math.min(_[0],C,O),Math.max(_[1],C,O)]}return _},v)}return a&&a.length&&(v=a.reduce(function(_,S){return Ze(S)?[Math.min(_[0],S),Math.max(_[1],S)]:_},v)),v},vC={exports:{}},C8;function l1e(){return C8||(C8=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(f,c,p){this.fn=f,this.context=c,this.once=p||!1}function a(f,c,p,m,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var x=new i(p,m||f,v),w=n?n+c:c;return f._events[w]?f._events[w].fn?f._events[w]=[f._events[w],x]:f._events[w].push(x):(f._events[w]=x,f._eventsCount++),f}function s(f,c){--f._eventsCount===0?f._events=new r:delete f._events[c]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],p,m;if(this._eventsCount===0)return c;for(m in p=this._events)t.call(p,m)&&c.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(p)):c},u.prototype.listeners=function(c){var p=n?n+c:c,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,x=m.length,w=new Array(x);v<x;v++)w[v]=m[v].fn;return w},u.prototype.listenerCount=function(c){var p=n?n+c:c,m=this._events[p];return m?m.fn?1:m.length:0},u.prototype.emit=function(c,p,m,v,x,w){var _=n?n+c:c;if(!this._events[_])return!1;var S=this._events[_],C=arguments.length,O,T;if(S.fn){switch(S.once&&this.removeListener(c,S.fn,void 0,!0),C){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,p),!0;case 3:return S.fn.call(S.context,p,m),!0;case 4:return S.fn.call(S.context,p,m,v),!0;case 5:return S.fn.call(S.context,p,m,v,x),!0;case 6:return S.fn.call(S.context,p,m,v,x,w),!0}for(T=1,O=new Array(C-1);T<C;T++)O[T-1]=arguments[T];S.fn.apply(S.context,O)}else{var P=S.length,j;for(T=0;T<P;T++)switch(S[T].once&&this.removeListener(c,S[T].fn,void 0,!0),C){case 1:S[T].fn.call(S[T].context);break;case 2:S[T].fn.call(S[T].context,p);break;case 3:S[T].fn.call(S[T].context,p,m);break;case 4:S[T].fn.call(S[T].context,p,m,v);break;default:if(!O)for(j=1,O=new Array(C-1);j<C;j++)O[j-1]=arguments[j];S[T].fn.apply(S[T].context,O)}}return!0},u.prototype.on=function(c,p,m){return a(this,c,p,m,!1)},u.prototype.once=function(c,p,m){return a(this,c,p,m,!0)},u.prototype.removeListener=function(c,p,m,v){var x=n?n+c:c;if(!this._events[x])return this;if(!p)return s(this,x),this;var w=this._events[x];if(w.fn)w.fn===p&&(!v||w.once)&&(!m||w.context===m)&&s(this,x);else{for(var _=0,S=[],C=w.length;_<C;_++)(w[_].fn!==p||v&&!w[_].once||m&&w[_].context!==m)&&S.push(w[_]);S.length?this._events[x]=S.length===1?S[0]:S:s(this,x)}return this},u.prototype.removeAllListeners=function(c){var p;return c?(p=n?n+c:c,this._events[p]&&s(this,p)):(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}(vC)),vC.exports}var u1e=l1e();const c1e=qt(u1e);var yC=new c1e,bC="recharts.syncMouseEvents";function cm(e){"@babel/helpers - typeof";return cm=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},cm(e)}function f1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d1e(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,I$(r.key),r)}}function h1e(e,t,n){return t&&d1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _C(e,t,n){return t=I$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e){var t=p1e(e,"string");return cm(t)=="symbol"?t:t+""}function p1e(e,t){if(cm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m1e=function(){function e(){f1e(this,e),_C(this,"activeIndex",0),_C(this,"coordinateList",[]),_C(this,"layout","horizontal")}return h1e(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,s=n.container,u=s===void 0?null:s,f=n.layout,c=f===void 0?null:f,p=n.offset,m=p===void 0?null:p,v=n.mouseHandlerCallback,x=v===void 0?null:v;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,s=i.y,u=i.height,f=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,p=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=a+f+c,v=s+this.offset.top+u/2+p;this.mouseHandlerCallback({pageX:m,pageY:v})}}}])}();function g1e(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&Ze(r)&&Ze(i))return!0}return!1}function v1e(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 U$(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,s=dn(t,n,r,i),u=dn(t,n,r,a);return{points:[s,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function y1e(e,t,n){var r,i,a,s;if(e==="horizontal")r=t.x,a=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,f=t.cy,c=t.innerRadius,p=t.outerRadius,m=t.angle,v=dn(u,f,c,m),x=dn(u,f,p,m);r=v.x,i=v.y,a=x.x,s=x.y}else return U$(t);return[{x:r,y:i},{x:a,y:s}]}function fm(e){"@babel/helpers - typeof";return fm=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},fm(e)}function A8(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 Rv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A8(Object(n),!0).forEach(function(r){b1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b1e(e,t,n){return t=_1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _1e(e){var t=x1e(e,"string");return fm(t)=="symbol"?t:t+""}function x1e(e,t){if(fm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w1e(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,s=e.activeCoordinate,u=e.activePayload,f=e.offset,c=e.activeTooltipIndex,p=e.tooltipAxisBandSize,m=e.layout,v=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!a||!s||v!=="ScatterChart"&&i!=="axis")return null;var w,_=vl;if(v==="ScatterChart")w=s,_=pge;else if(v==="BarChart")w=v1e(m,s,f,p),_=qT;else if(m==="radial"){var S=U$(s),C=S.cx,O=S.cy,T=S.radius,P=S.startAngle,j=S.endAngle;w={cx:C,cy:O,startAngle:P,endAngle:j,innerRadius:T,outerRadius:T},_=Rz}else w={points:y1e(m,s,f)},_=vl;var R=Rv(Rv(Rv(Rv({stroke:"#ccc",pointerEvents:"none"},f),w),ot(x,!1)),{},{payload:u,payloadIndex:c,className:je("recharts-tooltip-cursor",x.className)});return I.isValidElement(x)?I.cloneElement(x,R):I.createElement(_,R)}var S1e=["item"],C1e=["children","className","width","height","style","compact","title","desc"];function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cf.apply(this,arguments)}function O8(e,t){return E1e(e)||O1e(e,t)||z$(e,t)||A1e()}function A1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){c=!0,i=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}function E1e(e){if(Array.isArray(e))return e}function E8(e,t){if(e==null)return{};var n=T1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function j1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$$(r.key),r)}}function R1e(e,t,n){return t&&P1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M1e(e,t,n){return t=S0(t),N1e(e,B$()?Reflect.construct(t,n||[],S0(e).constructor):t.apply(e,n))}function N1e(e,t){if(t&&(Jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L1e(e)}function L1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B$=function(){return!!e})()}function S0(e){return S0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S0(e)}function D1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zO(e,t)}function zO(e,t){return zO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zO(e,t)}function ed(e){return U1e(e)||I1e(e)||z$(e)||k1e()}function k1e(){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 z$(e,t){if(e){if(typeof e=="string")return $O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $O(e,t)}}function I1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function U1e(e){if(Array.isArray(e))return $O(e)}function $O(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T8(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 ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T8(Object(n),!0).forEach(function(r){gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gt(e,t,n){return t=$$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $$(e){var t=B1e(e,"string");return Jf(t)=="symbol"?t:t+""}function B1e(e,t){if(Jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z1e={xAxis:["bottom","top"],yAxis:["left","right"]},$1e={width:"100%",height:"100%"},F$={x:0,y:0};function Mv(e){return e}var F1e=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},q1e=function(t,n,r,i){var a=n.find(function(p){return p&&p.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var s=a.coordinate,u=i.radius;return ke(ke(ke({},i),dn(i.cx,i.cy,u,s)),{},{angle:s,radius:u})}var f=a.coordinate,c=i.angle;return ke(ke(ke({},i),dn(i.cx,i.cy,f,c)),{},{angle:c,radius:f})}return F$},zb=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,s=(r??[]).reduce(function(u,f){var c=f.props.data;return c&&c.length?[].concat(ed(u),ed(c)):u},[]);return s.length>0?s:t&&t.length&&Ze(i)&&Ze(a)?t.slice(i,a+1):[]};function q$(e){return e==="number"?[0,"auto"]:void 0}var FO=function(t,n,r,i){var a=t.graphicalItems,s=t.tooltipAxis,u=zb(n,t);return r<0||!a||!a.length||r>=u.length?null:a.reduce(function(f,c){var p,m=(p=c.props.data)!==null&&p!==void 0?p:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(s.dataKey&&!s.allowDuplicatedCategory){var x=m===void 0?u:m;v=Sy(x,s.dataKey,i)}else v=m&&m[r]||u[r];return v?[].concat(ed(f),[Az(c,v)]):f},[])},j8=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},s=F1e(a,r),u=t.orderedTooltipTicks,f=t.tooltipAxis,c=t.tooltipTicks,p=qde(s,u,c,f);if(p>=0&&c){var m=c[p]&&c[p].value,v=FO(t,n,p,m),x=q1e(r,u,p,a);return{activeTooltipIndex:p,activeLabel:m,activePayload:v,activeCoordinate:x}}return null},V1e=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,s=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,p=t.layout,m=t.children,v=t.stackOffset,x=bz(p,a);return r.reduce(function(w,_){var S,C=_.type.defaultProps!==void 0?ke(ke({},_.type.defaultProps),_.props):_.props,O=C.type,T=C.dataKey,P=C.allowDataOverflow,j=C.allowDuplicatedCategory,R=C.scale,$=C.ticks,V=C.includeHidden,X=C[s];if(w[X])return w;var Z=zb(t.data,{graphicalItems:i.filter(function(J){var W,ie=s in J.props?J.props[s]:(W=J.type.defaultProps)===null||W===void 0?void 0:W[s];return ie===X}),dataStartIndex:f,dataEndIndex:c}),Y=Z.length,te,ae,Q;g1e(C.domain,P,O)&&(te=JA(C.domain,null,P),x&&(O==="number"||R!=="auto")&&(Q=fp(Z,T,"category")));var ne=q$(O);if(!te||te.length===0){var H,B=(H=C.domain)!==null&&H!==void 0?H:ne;if(T){if(te=fp(Z,T,O),O==="category"&&x){var U=Die(te);j&&U?(ae=te,te=s0(0,Y)):j||(te=TD(B,te,_).reduce(function(J,W){return J.indexOf(W)>=0?J:[].concat(ed(J),[W])},[]))}else if(O==="category")j?te=te.filter(function(J){return J!==""&&!pt(J)}):te=TD(B,te,_).reduce(function(J,W){return J.indexOf(W)>=0||W===""||pt(W)?J:[].concat(ed(J),[W])},[]);else if(O==="number"){var F=Yde(Z,i.filter(function(J){var W,ie,fe=s in J.props?J.props[s]:(W=J.type.defaultProps)===null||W===void 0?void 0:W[s],ce="hide"in J.props?J.props.hide:(ie=J.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return fe===X&&(V||!ce)}),T,a,p);F&&(te=F)}x&&(O==="number"||R!=="auto")&&(Q=fp(Z,T,"category"))}else x?te=s0(0,Y):u&&u[X]&&u[X].hasStack&&O==="number"?te=v==="expand"?[0,1]:Cz(u[X].stackGroups,f,c):te=yz(Z,i.filter(function(J){var W=s in J.props?J.props[s]:J.type.defaultProps[s],ie="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return W===X&&(V||!ie)}),O,p,!0);if(O==="number")te=BO(m,te,X,a,$),B&&(te=JA(B,te,P));else if(O==="category"&&B){var M=B,k=te.every(function(J){return M.indexOf(J)>=0});k&&(te=M)}}return ke(ke({},w),{},gt({},X,ke(ke({},C),{},{axisType:a,domain:te,categoricalDomain:Q,duplicateDomain:ae,originalDomain:(S=C.domain)!==null&&S!==void 0?S:ne,isCategorical:x,layout:p})))},{})},H1e=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,s=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,p=t.layout,m=t.children,v=zb(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:c}),x=v.length,w=bz(p,a),_=-1;return r.reduce(function(S,C){var O=C.type.defaultProps!==void 0?ke(ke({},C.type.defaultProps),C.props):C.props,T=O[s],P=q$("number");if(!S[T]){_++;var j;return w?j=s0(0,x):u&&u[T]&&u[T].hasStack?(j=Cz(u[T].stackGroups,f,c),j=BO(m,j,T,a)):(j=JA(P,yz(v,r.filter(function(R){var $,V,X=s in R.props?R.props[s]:($=R.type.defaultProps)===null||$===void 0?void 0:$[s],Z="hide"in R.props?R.props.hide:(V=R.type.defaultProps)===null||V===void 0?void 0:V.hide;return X===T&&!Z}),"number",p),i.defaultProps.allowDataOverflow),j=BO(m,j,T,a)),ke(ke({},S),{},gt({},T,ke(ke({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ai(z1e,"".concat(a,".").concat(_%2),null),domain:j,originalDomain:P,isCategorical:w,layout:p})))}return S},{})},G1e=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,s=n.graphicalItems,u=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,p=t.children,m="".concat(i,"Id"),v=Hr(p,a),x={};return v&&v.length?x=V1e(t,{axes:v,graphicalItems:s,axisType:i,axisIdKey:m,stackGroups:u,dataStartIndex:f,dataEndIndex:c}):s&&s.length&&(x=H1e(t,{Axis:a,graphicalItems:s,axisType:i,axisIdKey:m,stackGroups:u,dataStartIndex:f,dataEndIndex:c})),x},W1e=function(t){var n=ul(t),r=Fo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:gT(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Yy(n,r)}},P8=function(t){var n=t.children,r=t.defaultShowTooltip,i=_i(n,$f),a=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},Y1e=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ho(n&&n.type);return r&&r.indexOf("Bar")>=0})},R8=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},K1e=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,s=a===void 0?{}:a,u=t.yAxisMap,f=u===void 0?{}:u,c=r.width,p=r.height,m=r.children,v=r.margin||{},x=_i(m,$f),w=_i(m,gf),_=Object.keys(f).reduce(function(j,R){var $=f[R],V=$.orientation;return!$.mirror&&!$.hide?ke(ke({},j),{},gt({},V,j[V]+$.width)):j},{left:v.left||0,right:v.right||0}),S=Object.keys(s).reduce(function(j,R){var $=s[R],V=$.orientation;return!$.mirror&&!$.hide?ke(ke({},j),{},gt({},V,Ai(j,"".concat(V))+$.height)):j},{top:v.top||0,bottom:v.bottom||0}),C=ke(ke({},S),_),O=C.bottom;x&&(C.bottom+=x.props.height||$f.defaultProps.height),w&&n&&(C=Gde(C,i,r,n));var T=c-C.left-C.right,P=p-C.top-C.bottom;return ke(ke({brushBottom:O},C),{},{width:Math.max(T,0),height:Math.max(P,0)})},Z1e=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},e3=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,s=t.validateTooltipEventTypes,u=s===void 0?["axis"]:s,f=t.axisComponents,c=t.legendContent,p=t.formatAxisMap,m=t.defaultProps,v=function(C,O){var T=O.graphicalItems,P=O.stackGroups,j=O.offset,R=O.updateId,$=O.dataStartIndex,V=O.dataEndIndex,X=C.barSize,Z=C.layout,Y=C.barGap,te=C.barCategoryGap,ae=C.maxBarSize,Q=R8(Z),ne=Q.numericAxisName,H=Q.cateAxisName,B=Y1e(T),U=[];return T.forEach(function(F,M){var k=zb(C.data,{graphicalItems:[F],dataStartIndex:$,dataEndIndex:V}),J=F.type.defaultProps!==void 0?ke(ke({},F.type.defaultProps),F.props):F.props,W=J.dataKey,ie=J.maxBarSize,fe=J["".concat(ne,"Id")],ce=J["".concat(H,"Id")],ye={},z=f.reduce(function(Ue,$e){var _e=O["".concat($e.axisType,"Map")],we=J["".concat($e.axisType,"Id")];_e&&_e[we]||$e.axisType==="zAxis"||Hu();var De=_e[we];return ke(ke({},Ue),{},gt(gt({},$e.axisType,De),"".concat($e.axisType,"Ticks"),Fo(De)))},ye),q=z[H],ee=z["".concat(H,"Ticks")],ue=P&&P[fe]&&P[fe].hasStack&&rhe(F,P[fe].stackGroups),K=Ho(F.type).indexOf("Bar")>=0,se=Yy(q,ee),de=[],ve=B&&Vde({barSize:X,stackGroups:P,totalSize:Z1e(z,H)});if(K){var he,xe,Oe=pt(ie)?ae:ie,Le=(he=(xe=Yy(q,ee,!0))!==null&&xe!==void 0?xe:Oe)!==null&&he!==void 0?he:0;de=Hde({barGap:Y,barCategoryGap:te,bandSize:Le!==se?Le:se,sizeList:ve[ce],maxBarSize:Oe}),Le!==se&&(de=de.map(function(Ue){return ke(ke({},Ue),{},{position:ke(ke({},Ue.position),{},{offset:Ue.position.offset-Le/2})})}))}var He=F&&F.type&&F.type.getComposedData;He&&U.push({props:ke(ke({},He(ke(ke({},z),{},{displayedData:k,props:C,dataKey:W,item:F,bandSize:se,barPosition:de,offset:j,stackedData:ue,layout:Z,dataStartIndex:$,dataEndIndex:V}))),{},gt(gt(gt({key:F.key||"item-".concat(M)},ne,z[ne]),H,z[H]),"animationId",R)),childIndex:Yie(F,C.children),item:F})}),U},x=function(C,O){var T=C.props,P=C.dataStartIndex,j=C.dataEndIndex,R=C.updateId;if(!q6({props:T}))return null;var $=T.children,V=T.layout,X=T.stackOffset,Z=T.data,Y=T.reverseStackOrder,te=R8(V),ae=te.numericAxisName,Q=te.cateAxisName,ne=Hr($,r),H=the(Z,ne,"".concat(ae,"Id"),"".concat(Q,"Id"),X,Y),B=f.reduce(function(J,W){var ie="".concat(W.axisType,"Map");return ke(ke({},J),{},gt({},ie,G1e(T,ke(ke({},W),{},{graphicalItems:ne,stackGroups:W.axisType===ae&&H,dataStartIndex:P,dataEndIndex:j}))))},{}),U=K1e(ke(ke({},B),{},{props:T,graphicalItems:ne}),O==null?void 0:O.legendBBox);Object.keys(B).forEach(function(J){B[J]=p(T,B[J],U,J.replace("Map",""),n)});var F=B["".concat(Q,"Map")],M=W1e(F),k=v(T,ke(ke({},B),{},{dataStartIndex:P,dataEndIndex:j,updateId:R,graphicalItems:ne,stackGroups:H,offset:U}));return ke(ke({formattedGraphicalItems:k,graphicalItems:ne,offset:U,stackGroups:H},M),B)},w=function(S){function C(O){var T,P,j;return j1e(this,C),j=M1e(this,C,[O]),gt(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),gt(j,"accessibilityManager",new m1e),gt(j,"handleLegendBBoxUpdate",function(R){if(R){var $=j.state,V=$.dataStartIndex,X=$.dataEndIndex,Z=$.updateId;j.setState(ke({legendBBox:R},x({props:j.props,dataStartIndex:V,dataEndIndex:X,updateId:Z},ke(ke({},j.state),{},{legendBBox:R}))))}}),gt(j,"handleReceiveSyncEvent",function(R,$,V){if(j.props.syncId===R){if(V===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent($)}}),gt(j,"handleBrushChange",function(R){var $=R.startIndex,V=R.endIndex;if($!==j.state.dataStartIndex||V!==j.state.dataEndIndex){var X=j.state.updateId;j.setState(function(){return ke({dataStartIndex:$,dataEndIndex:V},x({props:j.props,dataStartIndex:$,dataEndIndex:V,updateId:X},j.state))}),j.triggerSyncEvent({dataStartIndex:$,dataEndIndex:V})}}),gt(j,"handleMouseEnter",function(R){var $=j.getMouseInfo(R);if($){var V=ke(ke({},$),{},{isTooltipActive:!0});j.setState(V),j.triggerSyncEvent(V);var X=j.props.onMouseEnter;ht(X)&&X(V,R)}}),gt(j,"triggeredAfterMouseMove",function(R){var $=j.getMouseInfo(R),V=$?ke(ke({},$),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(V),j.triggerSyncEvent(V);var X=j.props.onMouseMove;ht(X)&&X(V,R)}),gt(j,"handleItemMouseEnter",function(R){j.setState(function(){return{isTooltipActive:!0,activeItem:R,activePayload:R.tooltipPayload,activeCoordinate:R.tooltipPosition||{x:R.cx,y:R.cy}}})}),gt(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),gt(j,"handleMouseMove",function(R){R.persist(),j.throttleTriggeredAfterMouseMove(R)}),gt(j,"handleMouseLeave",function(R){j.throttleTriggeredAfterMouseMove.cancel();var $={isTooltipActive:!1};j.setState($),j.triggerSyncEvent($);var V=j.props.onMouseLeave;ht(V)&&V($,R)}),gt(j,"handleOuterEvent",function(R){var $=Wie(R),V=Ai(j.props,"".concat($));if($&&ht(V)){var X,Z;/.*touch.*/i.test($)?Z=j.getMouseInfo(R.changedTouches[0]):Z=j.getMouseInfo(R),V((X=Z)!==null&&X!==void 0?X:{},R)}}),gt(j,"handleClick",function(R){var $=j.getMouseInfo(R);if($){var V=ke(ke({},$),{},{isTooltipActive:!0});j.setState(V),j.triggerSyncEvent(V);var X=j.props.onClick;ht(X)&&X(V,R)}}),gt(j,"handleMouseDown",function(R){var $=j.props.onMouseDown;if(ht($)){var V=j.getMouseInfo(R);$(V,R)}}),gt(j,"handleMouseUp",function(R){var $=j.props.onMouseUp;if(ht($)){var V=j.getMouseInfo(R);$(V,R)}}),gt(j,"handleTouchMove",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(R.changedTouches[0])}),gt(j,"handleTouchStart",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&j.handleMouseDown(R.changedTouches[0])}),gt(j,"handleTouchEnd",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&j.handleMouseUp(R.changedTouches[0])}),gt(j,"handleDoubleClick",function(R){var $=j.props.onDoubleClick;if(ht($)){var V=j.getMouseInfo(R);$(V,R)}}),gt(j,"handleContextMenu",function(R){var $=j.props.onContextMenu;if(ht($)){var V=j.getMouseInfo(R);$(V,R)}}),gt(j,"triggerSyncEvent",function(R){j.props.syncId!==void 0&&yC.emit(bC,j.props.syncId,R,j.eventEmitterSymbol)}),gt(j,"applySyncEvent",function(R){var $=j.props,V=$.layout,X=$.syncMethod,Z=j.state.updateId,Y=R.dataStartIndex,te=R.dataEndIndex;if(R.dataStartIndex!==void 0||R.dataEndIndex!==void 0)j.setState(ke({dataStartIndex:Y,dataEndIndex:te},x({props:j.props,dataStartIndex:Y,dataEndIndex:te,updateId:Z},j.state)));else if(R.activeTooltipIndex!==void 0){var ae=R.chartX,Q=R.chartY,ne=R.activeTooltipIndex,H=j.state,B=H.offset,U=H.tooltipTicks;if(!B)return;if(typeof X=="function")ne=X(U,R);else if(X==="value"){ne=-1;for(var F=0;F<U.length;F++)if(U[F].value===R.activeLabel){ne=F;break}}var M=ke(ke({},B),{},{x:B.left,y:B.top}),k=Math.min(ae,M.x+M.width),J=Math.min(Q,M.y+M.height),W=U[ne]&&U[ne].value,ie=FO(j.state,j.props.data,ne),fe=U[ne]?{x:V==="horizontal"?U[ne].coordinate:k,y:V==="horizontal"?J:U[ne].coordinate}:F$;j.setState(ke(ke({},R),{},{activeLabel:W,activeCoordinate:fe,activePayload:ie,activeTooltipIndex:ne}))}else j.setState(R)}),gt(j,"renderCursor",function(R){var $,V=j.state,X=V.isTooltipActive,Z=V.activeCoordinate,Y=V.activePayload,te=V.offset,ae=V.activeTooltipIndex,Q=V.tooltipAxisBandSize,ne=j.getTooltipEventType(),H=($=R.props.active)!==null&&$!==void 0?$:X,B=j.props.layout,U=R.key||"_recharts-cursor";return pe.createElement(w1e,{key:U,activeCoordinate:Z,activePayload:Y,activeTooltipIndex:ae,chartName:n,element:R,isActive:H,layout:B,offset:te,tooltipAxisBandSize:Q,tooltipEventType:ne})}),gt(j,"renderPolarAxis",function(R,$,V){var X=Ai(R,"type.axisType"),Z=Ai(j.state,"".concat(X,"Map")),Y=R.type.defaultProps,te=Y!==void 0?ke(ke({},Y),R.props):R.props,ae=Z&&Z[te["".concat(X,"Id")]];return I.cloneElement(R,ke(ke({},ae),{},{className:je(X,ae.className),key:R.key||"".concat($,"-").concat(V),ticks:Fo(ae,!0)}))}),gt(j,"renderPolarGrid",function(R){var $=R.props,V=$.radialLines,X=$.polarAngles,Z=$.polarRadius,Y=j.state,te=Y.radiusAxisMap,ae=Y.angleAxisMap,Q=ul(te),ne=ul(ae),H=ne.cx,B=ne.cy,U=ne.innerRadius,F=ne.outerRadius;return I.cloneElement(R,{polarAngles:Array.isArray(X)?X:Fo(ne,!0).map(function(M){return M.coordinate}),polarRadius:Array.isArray(Z)?Z:Fo(Q,!0).map(function(M){return M.coordinate}),cx:H,cy:B,innerRadius:U,outerRadius:F,key:R.key||"polar-grid",radialLines:V})}),gt(j,"renderLegend",function(){var R=j.state.formattedGraphicalItems,$=j.props,V=$.children,X=$.width,Z=$.height,Y=j.props.margin||{},te=X-(Y.left||0)-(Y.right||0),ae=gz({children:V,formattedGraphicalItems:R,legendWidth:te,legendContent:c});if(!ae)return null;var Q=ae.item,ne=E8(ae,S1e);return I.cloneElement(Q,ke(ke({},ne),{},{chartWidth:X,chartHeight:Z,margin:Y,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),gt(j,"renderTooltip",function(){var R,$=j.props,V=$.children,X=$.accessibilityLayer,Z=_i(V,Gi);if(!Z)return null;var Y=j.state,te=Y.isTooltipActive,ae=Y.activeCoordinate,Q=Y.activePayload,ne=Y.activeLabel,H=Y.offset,B=(R=Z.props.active)!==null&&R!==void 0?R:te;return I.cloneElement(Z,{viewBox:ke(ke({},H),{},{x:H.left,y:H.top}),active:B,label:ne,payload:B?Q:[],coordinate:ae,accessibilityLayer:X})}),gt(j,"renderBrush",function(R){var $=j.props,V=$.margin,X=$.data,Z=j.state,Y=Z.offset,te=Z.dataStartIndex,ae=Z.dataEndIndex,Q=Z.updateId;return I.cloneElement(R,{key:R.key||"_recharts-brush",onChange:Ev(j.handleBrushChange,R.props.onChange),data:X,x:Ze(R.props.x)?R.props.x:Y.left,y:Ze(R.props.y)?R.props.y:Y.top+Y.height+Y.brushBottom-(V.bottom||0),width:Ze(R.props.width)?R.props.width:Y.width,startIndex:te,endIndex:ae,updateId:"brush-".concat(Q)})}),gt(j,"renderReferenceElement",function(R,$,V){if(!R)return null;var X=j,Z=X.clipPathId,Y=j.state,te=Y.xAxisMap,ae=Y.yAxisMap,Q=Y.offset,ne=R.type.defaultProps||{},H=R.props,B=H.xAxisId,U=B===void 0?ne.xAxisId:B,F=H.yAxisId,M=F===void 0?ne.yAxisId:F;return I.cloneElement(R,{key:R.key||"".concat($,"-").concat(V),xAxis:te[U],yAxis:ae[M],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:Z})}),gt(j,"renderActivePoints",function(R){var $=R.item,V=R.activePoint,X=R.basePoint,Z=R.childIndex,Y=R.isRange,te=[],ae=$.props.key,Q=$.item.type.defaultProps!==void 0?ke(ke({},$.item.type.defaultProps),$.item.props):$.item.props,ne=Q.activeDot,H=Q.dataKey,B=ke(ke({index:Z,dataKey:H,cx:V.x,cy:V.y,r:4,fill:FT($.item),strokeWidth:2,stroke:"#fff",payload:V.payload,value:V.value},ot(ne,!1)),Cy(ne));return te.push(C.renderActiveDot(ne,B,"".concat(ae,"-activePoint-").concat(Z))),X?te.push(C.renderActiveDot(ne,ke(ke({},B),{},{cx:X.x,cy:X.y}),"".concat(ae,"-basePoint-").concat(Z))):Y&&te.push(null),te}),gt(j,"renderGraphicChild",function(R,$,V){var X=j.filterFormatItem(R,$,V);if(!X)return null;var Z=j.getTooltipEventType(),Y=j.state,te=Y.isTooltipActive,ae=Y.tooltipAxis,Q=Y.activeTooltipIndex,ne=Y.activeLabel,H=j.props.children,B=_i(H,Gi),U=X.props,F=U.points,M=U.isRange,k=U.baseLine,J=X.item.type.defaultProps!==void 0?ke(ke({},X.item.type.defaultProps),X.item.props):X.item.props,W=J.activeDot,ie=J.hide,fe=J.activeBar,ce=J.activeShape,ye=!!(!ie&&te&&B&&(W||fe||ce)),z={};Z!=="axis"&&B&&B.props.trigger==="click"?z={onClick:Ev(j.handleItemMouseEnter,R.props.onClick)}:Z!=="axis"&&(z={onMouseLeave:Ev(j.handleItemMouseLeave,R.props.onMouseLeave),onMouseEnter:Ev(j.handleItemMouseEnter,R.props.onMouseEnter)});var q=I.cloneElement(R,ke(ke({},X.props),z));function ee($e){return typeof ae.dataKey=="function"?ae.dataKey($e.payload):null}if(ye)if(Q>=0){var ue,K;if(ae.dataKey&&!ae.allowDuplicatedCategory){var se=typeof ae.dataKey=="function"?ee:"payload.".concat(ae.dataKey.toString());ue=Sy(F,se,ne),K=M&&k&&Sy(k,se,ne)}else ue=F==null?void 0:F[Q],K=M&&k&&k[Q];if(ce||fe){var de=R.props.activeIndex!==void 0?R.props.activeIndex:Q;return[I.cloneElement(R,ke(ke(ke({},X.props),z),{},{activeIndex:de})),null,null]}if(!pt(ue))return[q].concat(ed(j.renderActivePoints({item:X,activePoint:ue,basePoint:K,childIndex:Q,isRange:M})))}else{var ve,he=(ve=j.getItemByXY(j.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:q},xe=he.graphicalItem,Oe=xe.item,Le=Oe===void 0?R:Oe,He=xe.childIndex,Ue=ke(ke(ke({},X.props),z),{},{activeIndex:He});return[I.cloneElement(Le,Ue),null,null]}return M?[q,null,null]:[q,null]}),gt(j,"renderCustomized",function(R,$,V){return I.cloneElement(R,ke(ke({key:"recharts-customized-".concat(V)},j.props),j.state))}),gt(j,"renderMap",{CartesianGrid:{handler:Mv,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:Mv},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:Mv},YAxis:{handler:Mv},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((T=O.id)!==null&&T!==void 0?T:Nl("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=mB(j.triggeredAfterMouseMove,(P=O.throttleDelay)!==null&&P!==void 0?P:1e3/60),j.state={},j}return D1e(C,S),R1e(C,[{key:"componentDidMount",value:function(){var T,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,P=T.children,j=T.data,R=T.height,$=T.layout,V=_i(P,Gi);if(V){var X=V.props.defaultIndex;if(!(typeof X!="number"||X<0||X>this.state.tooltipTicks.length-1)){var Z=this.state.tooltipTicks[X]&&this.state.tooltipTicks[X].value,Y=FO(this.state,j,X,Z),te=this.state.tooltipTicks[X].coordinate,ae=(this.state.offset.top+R)/2,Q=$==="horizontal",ne=Q?{x:te,y:ae}:{y:te,x:ae},H=this.state.formattedGraphicalItems.find(function(U){var F=U.item;return F.type.name==="Scatter"});H&&(ne=ke(ke({},ne),H.props.points[X].tooltipPosition),Y=H.props.points[X].tooltipPayload);var B={activeTooltipIndex:X,isTooltipActive:!0,activeLabel:Z,activePayload:Y,activeCoordinate:ne};this.setState(B),this.renderCursor(V),this.accessibilityManager.setIndex(X)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var j,R;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(R=this.props.margin.top)!==null&&R!==void 0?R:0}})}return null}},{key:"componentDidUpdate",value:function(T){xA([_i(T.children,Gi)],[_i(this.props.children,Gi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=_i(this.props.children,Gi);if(T&&typeof T.props.shared=="boolean"){var P=T.props.shared?"axis":"item";return u.indexOf(P)>=0?P:a}return a}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var P=this.container,j=P.getBoundingClientRect(),R=Dle(j),$={chartX:Math.round(T.pageX-R.left),chartY:Math.round(T.pageY-R.top)},V=j.width/P.offsetWidth||1,X=this.inRange($.chartX,$.chartY,V);if(!X)return null;var Z=this.state,Y=Z.xAxisMap,te=Z.yAxisMap,ae=this.getTooltipEventType(),Q=j8(this.state,this.props.data,this.props.layout,X);if(ae!=="axis"&&Y&&te){var ne=ul(Y).scale,H=ul(te).scale,B=ne&&ne.invert?ne.invert($.chartX):null,U=H&&H.invert?H.invert($.chartY):null;return ke(ke({},$),{},{xValue:B,yValue:U},Q)}return Q?ke(ke({},$),Q):null}},{key:"inRange",value:function(T,P){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=this.props.layout,$=T/j,V=P/j;if(R==="horizontal"||R==="vertical"){var X=this.state.offset,Z=$>=X.left&&$<=X.left+X.width&&V>=X.top&&V<=X.top+X.height;return Z?{x:$,y:V}:null}var Y=this.state,te=Y.angleAxisMap,ae=Y.radiusAxisMap;if(te&&ae){var Q=ul(te);return RD({x:$,y:V},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,P=this.getTooltipEventType(),j=_i(T,Gi),R={};j&&P==="axis"&&(j.props.trigger==="click"?R={onClick:this.handleClick}:R={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var $=Cy(this.props,this.handleOuterEvent);return ke(ke({},$),R)}},{key:"addListener",value:function(){yC.on(bC,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){yC.removeListener(bC,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,P,j){for(var R=this.state.formattedGraphicalItems,$=0,V=R.length;$<V;$++){var X=R[$];if(X.item===T||X.props.key===T.key||P===Ho(X.item.type)&&j===X.childIndex)return X}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,P=this.state.offset,j=P.left,R=P.top,$=P.height,V=P.width;return pe.createElement("defs",null,pe.createElement("clipPath",{id:T},pe.createElement("rect",{x:j,y:R,height:$,width:V})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(P,j){var R=O8(j,2),$=R[0],V=R[1];return ke(ke({},P),{},gt({},$,V.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(P,j){var R=O8(j,2),$=R[0],V=R[1];return ke(ke({},P),{},gt({},$,V.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[T])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(T){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[T])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(T){var P=this.state,j=P.formattedGraphicalItems,R=P.activeItem;if(j&&j.length)for(var $=0,V=j.length;$<V;$++){var X=j[$],Z=X.props,Y=X.item,te=Y.type.defaultProps!==void 0?ke(ke({},Y.type.defaultProps),Y.props):Y.props,ae=Ho(Y.type);if(ae==="Bar"){var Q=(Z.data||[]).find(function(U){return Yme(T,U)});if(Q)return{graphicalItem:X,payload:Q}}else if(ae==="RadialBar"){var ne=(Z.data||[]).find(function(U){return RD(T,U)});if(ne)return{graphicalItem:X,payload:ne}}else if(Mb(X,R)||Nb(X,R)||am(X,R)){var H=yve({graphicalItem:X,activeTooltipItem:R,itemData:te.data}),B=te.activeIndex===void 0?H:te.activeIndex;return{graphicalItem:ke(ke({},X),{},{childIndex:B}),payload:am(X,R)?te.data[H]:X.props.data[H]}}}return null}},{key:"render",value:function(){var T=this;if(!q6(this))return null;var P=this.props,j=P.children,R=P.className,$=P.width,V=P.height,X=P.style,Z=P.compact,Y=P.title,te=P.desc,ae=E8(P,C1e),Q=ot(ae,!1);if(Z)return pe.createElement(r8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},pe.createElement(SA,cf({},Q,{width:$,height:V,title:Y,desc:te}),this.renderClipPath(),H6(j,this.renderMap)));if(this.props.accessibilityLayer){var ne,H;Q.tabIndex=(ne=this.props.tabIndex)!==null&&ne!==void 0?ne:0,Q.role=(H=this.props.role)!==null&&H!==void 0?H:"application",Q.onKeyDown=function(U){T.accessibilityManager.keyboardEvent(U)},Q.onFocus=function(){T.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return pe.createElement(r8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},pe.createElement("div",cf({className:je("recharts-wrapper",R),style:ke({position:"relative",cursor:"default",width:$,height:V},X)},B,{ref:function(F){T.container=F}}),pe.createElement(SA,cf({},Q,{width:$,height:V,title:Y,desc:te,style:$1e}),this.renderClipPath(),H6(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(I.Component);gt(w,"displayName",n),gt(w,"defaultProps",ke({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),gt(w,"getDerivedStateFromProps",function(S,C){var O=S.dataKey,T=S.data,P=S.children,j=S.width,R=S.height,$=S.layout,V=S.stackOffset,X=S.margin,Z=C.dataStartIndex,Y=C.dataEndIndex;if(C.updateId===void 0){var te=P8(S);return ke(ke(ke({},te),{},{updateId:0},x(ke(ke({props:S},te),{},{updateId:0}),C)),{},{prevDataKey:O,prevData:T,prevWidth:j,prevHeight:R,prevLayout:$,prevStackOffset:V,prevMargin:X,prevChildren:P})}if(O!==C.prevDataKey||T!==C.prevData||j!==C.prevWidth||R!==C.prevHeight||$!==C.prevLayout||V!==C.prevStackOffset||!mf(X,C.prevMargin)){var ae=P8(S),Q={chartX:C.chartX,chartY:C.chartY,isTooltipActive:C.isTooltipActive},ne=ke(ke({},j8(C,T,$)),{},{updateId:C.updateId+1}),H=ke(ke(ke({},ae),Q),ne);return ke(ke(ke({},H),x(ke({props:S},H),C)),{},{prevDataKey:O,prevData:T,prevWidth:j,prevHeight:R,prevLayout:$,prevStackOffset:V,prevMargin:X,prevChildren:P})}if(!xA(P,C.prevChildren)){var B,U,F,M,k=_i(P,$f),J=k&&(B=(U=k.props)===null||U===void 0?void 0:U.startIndex)!==null&&B!==void 0?B:Z,W=k&&(F=(M=k.props)===null||M===void 0?void 0:M.endIndex)!==null&&F!==void 0?F:Y,ie=J!==Z||W!==Y,fe=!pt(T),ce=fe&&!ie?C.updateId:C.updateId+1;return ke(ke({updateId:ce},x(ke(ke({props:S},C),{},{updateId:ce,dataStartIndex:J,dataEndIndex:W}),C)),{},{prevChildren:P,dataStartIndex:J,dataEndIndex:W})}return null}),gt(w,"renderActiveDot",function(S,C,O){var T;return I.isValidElement(S)?T=I.cloneElement(S,C):ht(S)?T=S(C):T=pe.createElement(Lm,C),pe.createElement(St,{className:"recharts-active-dot",key:O},T)});var _=I.forwardRef(function(C,O){return pe.createElement(w,cf({},C,{ref:O}))});return _.displayName=w.displayName,_},X1e=e3({chartName:"LineChart",GraphicalChild:wd,axisComponents:[{axisType:"xAxis",AxisComp:Sd},{axisType:"yAxis",AxisComp:Cd}],formatAxisMap:e$}),Q1e=e3({chartName:"PieChart",GraphicalChild:Ja,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Rb},{axisType:"radiusAxis",AxisComp:jb}],formatAxisMap:hhe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),J1e=e3({chartName:"ComposedChart",GraphicalChild:[wd,tc,Wo,Bb],axisComponents:[{axisType:"xAxis",AxisComp:Sd},{axisType:"yAxis",AxisComp:Cd},{axisType:"zAxis",AxisComp:Ub}],formatAxisMap:e$});function V$(e,t){const n=I.useRef(t);I.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 e_e=1;function t_e(e){return Object.freeze({__version:e_e,map:e})}function n_e(e,t){return Object.freeze({...e,...t})}const t3=I.createContext(null);function H$(){const e=I.use(t3);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function r_e(e){function t(n,r){const{instance:i,context:a}=e(n).current;I.useImperativeHandle(r,()=>i);const{children:s}=n;return s==null?null:pe.createElement(t3,{value:a},s)}return I.forwardRef(t)}function i_e(e){function t(n,r){const[i,a]=I.useState(!1),{instance:s}=e(n,a).current;I.useImperativeHandle(r,()=>s),I.useEffect(function(){i&&s.update()},[s,i,n.children]);const u=s._contentNode;return u?K0.createPortal(n.children,u):null}return I.forwardRef(t)}function a_e(e){function t(n,r){const{instance:i}=e(n).current;return I.useImperativeHandle(r,()=>i),null}return I.forwardRef(t)}function G$(e,t){const n=I.useRef(void 0);I.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 n3(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function o_e(e,t){return function(r,i){const a=H$(),s=e(n3(r,a),a);return V$(a.map,r.attribution),G$(s.current,r.eventHandlers),t(s.current,a,r,i),s}}var np={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 s_e=np.exports,M8;function l_e(){return M8||(M8=1,function(e,t){(function(n,r){r(t)})(s_e,function(n){var r="1.9.4";function i(d){var g,A,D,G;for(A=1,D=arguments.length;A<D;A++){G=arguments[A];for(g in G)d[g]=G[g]}return d}var a=Object.create||function(){function d(){}return function(g){return d.prototype=g,new d}}();function s(d,g){var A=Array.prototype.slice;if(d.bind)return d.bind.apply(d,A.call(arguments,1));var D=A.call(arguments,2);return function(){return d.apply(g,D.length?D.concat(A.call(arguments)):arguments)}}var u=0;function f(d){return"_leaflet_id"in d||(d._leaflet_id=++u),d._leaflet_id}function c(d,g,A){var D,G,oe,me;return me=function(){D=!1,G&&(oe.apply(A,G),G=!1)},oe=function(){D?G=arguments:(d.apply(A,arguments),setTimeout(me,g),D=!0)},oe}function p(d,g,A){var D=g[1],G=g[0],oe=D-G;return d===D&&A?d:((d-G)%oe+oe)%oe+G}function m(){return!1}function v(d,g){if(g===!1)return d;var A=Math.pow(10,g===void 0?6:g);return Math.round(d*A)/A}function x(d){return d.trim?d.trim():d.replace(/^\s+|\s+$/g,"")}function w(d){return x(d).split(/\s+/)}function _(d,g){Object.prototype.hasOwnProperty.call(d,"options")||(d.options=d.options?a(d.options):{});for(var A in g)d.options[A]=g[A];return d.options}function S(d,g,A){var D=[];for(var G in d)D.push(encodeURIComponent(A?G.toUpperCase():G)+"="+encodeURIComponent(d[G]));return(!g||g.indexOf("?")===-1?"?":"&")+D.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function O(d,g){return d.replace(C,function(A,D){var G=g[D];if(G===void 0)throw new Error("No value provided for variable "+A);return typeof G=="function"&&(G=G(g)),G})}var T=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function P(d,g){for(var A=0;A<d.length;A++)if(d[A]===g)return A;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(d){return window["webkit"+d]||window["moz"+d]||window["ms"+d]}var $=0;function V(d){var g=+new Date,A=Math.max(0,16-(g-$));return $=g+A,window.setTimeout(d,A)}var X=window.requestAnimationFrame||R("RequestAnimationFrame")||V,Z=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(d){window.clearTimeout(d)};function Y(d,g,A){if(A&&X===V)d.call(g);else return X.call(window,s(d,g))}function te(d){d&&Z.call(window,d)}var ae={__proto__:null,extend:i,create:a,bind:s,get lastId(){return u},stamp:f,throttle:c,wrapNum:p,falseFn:m,formatNum:v,trim:x,splitWords:w,setOptions:_,getParamString:S,template:O,isArray:T,indexOf:P,emptyImageUrl:j,requestFn:X,cancelFn:Z,requestAnimFrame:Y,cancelAnimFrame:te};function Q(){}Q.extend=function(d){var g=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},A=g.__super__=this.prototype,D=a(A);D.constructor=g,g.prototype=D;for(var G in this)Object.prototype.hasOwnProperty.call(this,G)&&G!=="prototype"&&G!=="__super__"&&(g[G]=this[G]);return d.statics&&i(g,d.statics),d.includes&&(ne(d.includes),i.apply(null,[D].concat(d.includes))),i(D,d),delete D.statics,delete D.includes,D.options&&(D.options=A.options?a(A.options):{},i(D.options,d.options)),D._initHooks=[],D.callInitHooks=function(){if(!this._initHooksCalled){A.callInitHooks&&A.callInitHooks.call(this),this._initHooksCalled=!0;for(var oe=0,me=D._initHooks.length;oe<me;oe++)D._initHooks[oe].call(this)}},g},Q.include=function(d){var g=this.prototype.options;return i(this.prototype,d),d.options&&(this.prototype.options=g,this.mergeOptions(d.options)),this},Q.mergeOptions=function(d){return i(this.prototype.options,d),this},Q.addInitHook=function(d){var g=Array.prototype.slice.call(arguments,1),A=typeof d=="function"?d:function(){this[d].apply(this,g)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(A),this};function ne(d){if(!(typeof L>"u"||!L||!L.Mixin)){d=T(d)?d:[d];for(var g=0;g<d.length;g++)d[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 H={on:function(d,g,A){if(typeof d=="object")for(var D in d)this._on(D,d[D],g);else{d=w(d);for(var G=0,oe=d.length;G<oe;G++)this._on(d[G],g,A)}return this},off:function(d,g,A){if(!arguments.length)delete this._events;else if(typeof d=="object")for(var D in d)this._off(D,d[D],g);else{d=w(d);for(var G=arguments.length===1,oe=0,me=d.length;oe<me;oe++)G?this._off(d[oe]):this._off(d[oe],g,A)}return this},_on:function(d,g,A,D){if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}if(this._listens(d,g,A)===!1){A===this&&(A=void 0);var G={fn:g,ctx:A};D&&(G.once=!0),this._events=this._events||{},this._events[d]=this._events[d]||[],this._events[d].push(G)}},_off:function(d,g,A){var D,G,oe;if(this._events&&(D=this._events[d],!!D)){if(arguments.length===1){if(this._firingCount)for(G=0,oe=D.length;G<oe;G++)D[G].fn=m;delete this._events[d];return}if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}var me=this._listens(d,g,A);if(me!==!1){var Ce=D[me];this._firingCount&&(Ce.fn=m,this._events[d]=D=D.slice()),D.splice(me,1)}}},fire:function(d,g,A){if(!this.listens(d,A))return this;var D=i({},g,{type:d,target:this,sourceTarget:g&&g.sourceTarget||this});if(this._events){var G=this._events[d];if(G){this._firingCount=this._firingCount+1||1;for(var oe=0,me=G.length;oe<me;oe++){var Ce=G[oe],Me=Ce.fn;Ce.once&&this.off(d,Me,Ce.ctx),Me.call(Ce.ctx||this,D)}this._firingCount--}}return A&&this._propagateEvent(D),this},listens:function(d,g,A,D){typeof d!="string"&&console.warn('"string" type argument expected');var G=g;typeof g!="function"&&(D=!!g,G=void 0,A=void 0);var oe=this._events&&this._events[d];if(oe&&oe.length&&this._listens(d,G,A)!==!1)return!0;if(D){for(var me in this._eventParents)if(this._eventParents[me].listens(d,g,A,D))return!0}return!1},_listens:function(d,g,A){if(!this._events)return!1;var D=this._events[d]||[];if(!g)return!!D.length;A===this&&(A=void 0);for(var G=0,oe=D.length;G<oe;G++)if(D[G].fn===g&&D[G].ctx===A)return G;return!1},once:function(d,g,A){if(typeof d=="object")for(var D in d)this._on(D,d[D],g,!0);else{d=w(d);for(var G=0,oe=d.length;G<oe;G++)this._on(d[G],g,A,!0)}return this},addEventParent:function(d){return this._eventParents=this._eventParents||{},this._eventParents[f(d)]=d,this},removeEventParent:function(d){return this._eventParents&&delete this._eventParents[f(d)],this},_propagateEvent:function(d){for(var g in this._eventParents)this._eventParents[g].fire(d.type,i({layer:d.target,propagatedFrom:d.target},d),!0)}};H.addEventListener=H.on,H.removeEventListener=H.clearAllEventListeners=H.off,H.addOneTimeEventListener=H.once,H.fireEvent=H.fire,H.hasEventListeners=H.listens;var B=Q.extend(H);function U(d,g,A){this.x=A?Math.round(d):d,this.y=A?Math.round(g):g}var F=Math.trunc||function(d){return d>0?Math.floor(d):Math.ceil(d)};U.prototype={clone:function(){return new U(this.x,this.y)},add:function(d){return this.clone()._add(M(d))},_add:function(d){return this.x+=d.x,this.y+=d.y,this},subtract:function(d){return this.clone()._subtract(M(d))},_subtract:function(d){return this.x-=d.x,this.y-=d.y,this},divideBy:function(d){return this.clone()._divideBy(d)},_divideBy:function(d){return this.x/=d,this.y/=d,this},multiplyBy:function(d){return this.clone()._multiplyBy(d)},_multiplyBy:function(d){return this.x*=d,this.y*=d,this},scaleBy:function(d){return new U(this.x*d.x,this.y*d.y)},unscaleBy:function(d){return new U(this.x/d.x,this.y/d.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=F(this.x),this.y=F(this.y),this},distanceTo:function(d){d=M(d);var g=d.x-this.x,A=d.y-this.y;return Math.sqrt(g*g+A*A)},equals:function(d){return d=M(d),d.x===this.x&&d.y===this.y},contains:function(d){return d=M(d),Math.abs(d.x)<=Math.abs(this.x)&&Math.abs(d.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function M(d,g,A){return d instanceof U?d:T(d)?new U(d[0],d[1]):d==null?d:typeof d=="object"&&"x"in d&&"y"in d?new U(d.x,d.y):new U(d,g,A)}function k(d,g){if(d)for(var A=g?[d,g]:d,D=0,G=A.length;D<G;D++)this.extend(A[D])}k.prototype={extend:function(d){var g,A;if(!d)return this;if(d instanceof U||typeof d[0]=="number"||"x"in d)g=A=M(d);else if(d=J(d),g=d.min,A=d.max,!g||!A)return this;return!this.min&&!this.max?(this.min=g.clone(),this.max=A.clone()):(this.min.x=Math.min(g.x,this.min.x),this.max.x=Math.max(A.x,this.max.x),this.min.y=Math.min(g.y,this.min.y),this.max.y=Math.max(A.y,this.max.y)),this},getCenter:function(d){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,d)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(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(d){var g,A;return typeof d[0]=="number"||d instanceof U?d=M(d):d=J(d),d instanceof k?(g=d.min,A=d.max):g=A=d,g.x>=this.min.x&&A.x<=this.max.x&&g.y>=this.min.y&&A.y<=this.max.y},intersects:function(d){d=J(d);var g=this.min,A=this.max,D=d.min,G=d.max,oe=G.x>=g.x&&D.x<=A.x,me=G.y>=g.y&&D.y<=A.y;return oe&&me},overlaps:function(d){d=J(d);var g=this.min,A=this.max,D=d.min,G=d.max,oe=G.x>g.x&&D.x<A.x,me=G.y>g.y&&D.y<A.y;return oe&&me},isValid:function(){return!!(this.min&&this.max)},pad:function(d){var g=this.min,A=this.max,D=Math.abs(g.x-A.x)*d,G=Math.abs(g.y-A.y)*d;return J(M(g.x-D,g.y-G),M(A.x+D,A.y+G))},equals:function(d){return d?(d=J(d),this.min.equals(d.getTopLeft())&&this.max.equals(d.getBottomRight())):!1}};function J(d,g){return!d||d instanceof k?d:new k(d,g)}function W(d,g){if(d)for(var A=g?[d,g]:d,D=0,G=A.length;D<G;D++)this.extend(A[D])}W.prototype={extend:function(d){var g=this._southWest,A=this._northEast,D,G;if(d instanceof fe)D=d,G=d;else if(d instanceof W){if(D=d._southWest,G=d._northEast,!D||!G)return this}else return d?this.extend(ce(d)||ie(d)):this;return!g&&!A?(this._southWest=new fe(D.lat,D.lng),this._northEast=new fe(G.lat,G.lng)):(g.lat=Math.min(D.lat,g.lat),g.lng=Math.min(D.lng,g.lng),A.lat=Math.max(G.lat,A.lat),A.lng=Math.max(G.lng,A.lng)),this},pad:function(d){var g=this._southWest,A=this._northEast,D=Math.abs(g.lat-A.lat)*d,G=Math.abs(g.lng-A.lng)*d;return new W(new fe(g.lat-D,g.lng-G),new fe(A.lat+D,A.lng+G))},getCenter:function(){return new fe((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 fe(this.getNorth(),this.getWest())},getSouthEast:function(){return new fe(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(d){typeof d[0]=="number"||d instanceof fe||"lat"in d?d=ce(d):d=ie(d);var g=this._southWest,A=this._northEast,D,G;return d instanceof W?(D=d.getSouthWest(),G=d.getNorthEast()):D=G=d,D.lat>=g.lat&&G.lat<=A.lat&&D.lng>=g.lng&&G.lng<=A.lng},intersects:function(d){d=ie(d);var g=this._southWest,A=this._northEast,D=d.getSouthWest(),G=d.getNorthEast(),oe=G.lat>=g.lat&&D.lat<=A.lat,me=G.lng>=g.lng&&D.lng<=A.lng;return oe&&me},overlaps:function(d){d=ie(d);var g=this._southWest,A=this._northEast,D=d.getSouthWest(),G=d.getNorthEast(),oe=G.lat>g.lat&&D.lat<A.lat,me=G.lng>g.lng&&D.lng<A.lng;return oe&&me},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(d,g){return d?(d=ie(d),this._southWest.equals(d.getSouthWest(),g)&&this._northEast.equals(d.getNorthEast(),g)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ie(d,g){return d instanceof W?d:new W(d,g)}function fe(d,g,A){if(isNaN(d)||isNaN(g))throw new Error("Invalid LatLng object: ("+d+", "+g+")");this.lat=+d,this.lng=+g,A!==void 0&&(this.alt=+A)}fe.prototype={equals:function(d,g){if(!d)return!1;d=ce(d);var A=Math.max(Math.abs(this.lat-d.lat),Math.abs(this.lng-d.lng));return A<=(g===void 0?1e-9:g)},toString:function(d){return"LatLng("+v(this.lat,d)+", "+v(this.lng,d)+")"},distanceTo:function(d){return z.distance(this,ce(d))},wrap:function(){return z.wrapLatLng(this)},toBounds:function(d){var g=180*d/40075017,A=g/Math.cos(Math.PI/180*this.lat);return ie([this.lat-g,this.lng-A],[this.lat+g,this.lng+A])},clone:function(){return new fe(this.lat,this.lng,this.alt)}};function ce(d,g,A){return d instanceof fe?d:T(d)&&typeof d[0]!="object"?d.length===3?new fe(d[0],d[1],d[2]):d.length===2?new fe(d[0],d[1]):null:d==null?d:typeof d=="object"&&"lat"in d?new fe(d.lat,"lng"in d?d.lng:d.lon,d.alt):g===void 0?null:new fe(d,g,A)}var ye={latLngToPoint:function(d,g){var A=this.projection.project(d),D=this.scale(g);return this.transformation._transform(A,D)},pointToLatLng:function(d,g){var A=this.scale(g),D=this.transformation.untransform(d,A);return this.projection.unproject(D)},project:function(d){return this.projection.project(d)},unproject:function(d){return this.projection.unproject(d)},scale:function(d){return 256*Math.pow(2,d)},zoom:function(d){return Math.log(d/256)/Math.LN2},getProjectedBounds:function(d){if(this.infinite)return null;var g=this.projection.bounds,A=this.scale(d),D=this.transformation.transform(g.min,A),G=this.transformation.transform(g.max,A);return new k(D,G)},infinite:!1,wrapLatLng:function(d){var g=this.wrapLng?p(d.lng,this.wrapLng,!0):d.lng,A=this.wrapLat?p(d.lat,this.wrapLat,!0):d.lat,D=d.alt;return new fe(A,g,D)},wrapLatLngBounds:function(d){var g=d.getCenter(),A=this.wrapLatLng(g),D=g.lat-A.lat,G=g.lng-A.lng;if(D===0&&G===0)return d;var oe=d.getSouthWest(),me=d.getNorthEast(),Ce=new fe(oe.lat-D,oe.lng-G),Me=new fe(me.lat-D,me.lng-G);return new W(Ce,Me)}},z=i({},ye,{wrapLng:[-180,180],R:6371e3,distance:function(d,g){var A=Math.PI/180,D=d.lat*A,G=g.lat*A,oe=Math.sin((g.lat-d.lat)*A/2),me=Math.sin((g.lng-d.lng)*A/2),Ce=oe*oe+Math.cos(D)*Math.cos(G)*me*me,Me=2*Math.atan2(Math.sqrt(Ce),Math.sqrt(1-Ce));return this.R*Me}}),q=6378137,ee={R:q,MAX_LATITUDE:85.0511287798,project:function(d){var g=Math.PI/180,A=this.MAX_LATITUDE,D=Math.max(Math.min(A,d.lat),-A),G=Math.sin(D*g);return new U(this.R*d.lng*g,this.R*Math.log((1+G)/(1-G))/2)},unproject:function(d){var g=180/Math.PI;return new fe((2*Math.atan(Math.exp(d.y/this.R))-Math.PI/2)*g,d.x*g/this.R)},bounds:function(){var d=q*Math.PI;return new k([-d,-d],[d,d])}()};function ue(d,g,A,D){if(T(d)){this._a=d[0],this._b=d[1],this._c=d[2],this._d=d[3];return}this._a=d,this._b=g,this._c=A,this._d=D}ue.prototype={transform:function(d,g){return this._transform(d.clone(),g)},_transform:function(d,g){return g=g||1,d.x=g*(this._a*d.x+this._b),d.y=g*(this._c*d.y+this._d),d},untransform:function(d,g){return g=g||1,new U((d.x/g-this._b)/this._a,(d.y/g-this._d)/this._c)}};function K(d,g,A,D){return new ue(d,g,A,D)}var se=i({},z,{code:"EPSG:3857",projection:ee,transformation:function(){var d=.5/(Math.PI*ee.R);return K(d,.5,-d,.5)}()}),de=i({},se,{code:"EPSG:900913"});function ve(d){return document.createElementNS("http://www.w3.org/2000/svg",d)}function he(d,g){var A="",D,G,oe,me,Ce,Me;for(D=0,oe=d.length;D<oe;D++){for(Ce=d[D],G=0,me=Ce.length;G<me;G++)Me=Ce[G],A+=(G?"L":"M")+Me.x+" "+Me.y;A+=g?lt.svg?"z":"x":""}return A||"M0 0"}var xe=document.documentElement.style,Oe="ActiveXObject"in window,Le=Oe&&!document.addEventListener,He="msLaunchUri"in navigator&&!("documentMode"in document),Ue=Ln("webkit"),$e=Ln("android"),_e=Ln("android 2")||Ln("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),De=$e&&Ln("Google")&&we<537&&!("AudioNode"in window),Ne=!!window.opera,Te=!He&&Ln("chrome"),Fe=Ln("gecko")&&!Ue&&!Ne&&!Oe,Ge=!Te&&Ln("safari"),Qe=Ln("phantom"),ft="OTransition"in xe,st=navigator.platform.indexOf("Win")===0,_t=Oe&&"transition"in xe,kt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!_e,Ut="MozPerspective"in xe,Bt=!window.L_DISABLE_3D&&(_t||kt||Ut)&&!ft&&!Qe,wr=typeof orientation<"u"||Ln("mobile"),Vn=wr&&Ue,cs=wr&&kt,ii=!window.PointerEvent&&window.MSPointerEvent,fs=!!(window.PointerEvent||ii),Ea="ontouchstart"in window||!!window.TouchEvent,rc=!window.L_NO_TOUCH&&(Ea||fs),ds=wr&&Ne,Ta=wr&&Fe,yn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,hn=function(){var d=!1;try{var g=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassiveEventSupport",m,g),window.removeEventListener("testPassiveEventSupport",m,g)}catch{}return d}(),Jn=function(){return!!document.createElement("canvas").getContext}(),Hn=!!(document.createElementNS&&ve("svg").createSVGRect),tn=!!Hn&&function(){var d=document.createElement("div");return d.innerHTML="<svg/>",(d.firstChild&&d.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Mt=!Hn&&function(){try{var d=document.createElement("div");d.innerHTML='<v:shape adj="1"/>';var g=d.firstChild;return g.style.behavior="url(#default#VML)",g&&typeof g.adj=="object"}catch{return!1}}(),nn=navigator.platform.indexOf("Mac")===0,er=navigator.platform.indexOf("Linux")===0;function Ln(d){return navigator.userAgent.toLowerCase().indexOf(d)>=0}var lt={ie:Oe,ielt9:Le,edge:He,webkit:Ue,android:$e,android23:_e,androidStock:De,opera:Ne,chrome:Te,gecko:Fe,safari:Ge,phantom:Qe,opera12:ft,win:st,ie3d:_t,webkit3d:kt,gecko3d:Ut,any3d:Bt,mobile:wr,mobileWebkit:Vn,mobileWebkit3d:cs,msPointer:ii,pointer:fs,touch:rc,touchNative:Ea,mobileOpera:ds,mobileGecko:Ta,retina:yn,passiveEvents:hn,canvas:Jn,svg:Hn,vml:Mt,inlineSvg:tn,mac:nn,linux:er},qm=lt.msPointer?"MSPointerDown":"pointerdown",jd=lt.msPointer?"MSPointerMove":"pointermove",hs=lt.msPointer?"MSPointerUp":"pointerup",ic=lt.msPointer?"MSPointerCancel":"pointercancel",ja={touchstart:qm,touchmove:jd,touchend:hs,touchcancel:ic},uo={touchstart:Gm,touchmove:Ul,touchend:Ul,touchcancel:Ul},Mi={},co=!1;function Bn(d,g,A){return g==="touchstart"&&Zb(),uo[g]?(A=uo[g].bind(this,A),d.addEventListener(ja[g],A,!1),A):(console.warn("wrong event specified:",g),m)}function Vm(d,g,A){if(!ja[g]){console.warn("wrong event specified:",g);return}d.removeEventListener(ja[g],A,!1)}function Hm(d){Mi[d.pointerId]=d}function fo(d){Mi[d.pointerId]&&(Mi[d.pointerId]=d)}function ho(d){delete Mi[d.pointerId]}function Zb(){co||(document.addEventListener(qm,Hm,!0),document.addEventListener(jd,fo,!0),document.addEventListener(hs,ho,!0),document.addEventListener(ic,ho,!0),co=!0)}function Ul(d,g){if(g.pointerType!==(g.MSPOINTER_TYPE_MOUSE||"mouse")){g.touches=[];for(var A in Mi)g.touches.push(Mi[A]);g.changedTouches=[g],d(g)}}function Gm(d,g){g.MSPOINTER_TYPE_TOUCH&&g.pointerType===g.MSPOINTER_TYPE_TOUCH&&Tn(g),Ul(d,g)}function Xb(d){var g={},A,D;for(D in d)A=d[D],g[D]=A&&A.bind?A.bind(d):A;return d=g,g.type="dblclick",g.detail=2,g.isTrusted=!1,g._simulated=!0,g}var ac=200;function oc(d,g){d.addEventListener("dblclick",g);var A=0,D;function G(oe){if(oe.detail!==1){D=oe.detail;return}if(!(oe.pointerType==="mouse"||oe.sourceCapabilities&&!oe.sourceCapabilities.firesTouchEvents)){var me=Md(oe);if(!(me.some(function(Me){return Me instanceof HTMLLabelElement&&Me.attributes.for})&&!me.some(function(Me){return Me instanceof HTMLInputElement||Me instanceof HTMLSelectElement}))){var Ce=Date.now();Ce-A<=ac?(D++,D===2&&g(Xb(oe))):D=1,A=Ce}}}return d.addEventListener("click",G),{dblclick:g,simDblclick:G}}function Ji(d,g){d.removeEventListener("dblclick",g.dblclick),d.removeEventListener("click",g.simDblclick)}var Bl=vs(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ps=vs(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),po=ps==="webkitTransition"||ps==="OTransition"?ps+"End":"transitionend";function sc(d){return typeof d=="string"?document.getElementById(d):d}function mo(d,g){var A=d.style[g]||d.currentStyle&&d.currentStyle[g];if((!A||A==="auto")&&document.defaultView){var D=document.defaultView.getComputedStyle(d,null);A=D?D[g]:null}return A==="auto"?null:A}function Nt(d,g,A){var D=document.createElement(d);return D.className=g||"",A&&A.appendChild(D),D}function rn(d){var g=d.parentNode;g&&g.removeChild(d)}function cr(d){for(;d.firstChild;)d.removeChild(d.firstChild)}function go(d){var g=d.parentNode;g&&g.lastChild!==d&&g.appendChild(d)}function ms(d){var g=d.parentNode;g&&g.firstChild!==d&&g.insertBefore(d,g.firstChild)}function gs(d,g){if(d.classList!==void 0)return d.classList.contains(g);var A=fr(d);return A.length>0&&new RegExp("(^|\\s)"+g+"(\\s|$)").test(A)}function xt(d,g){if(d.classList!==void 0)for(var A=w(g),D=0,G=A.length;D<G;D++)d.classList.add(A[D]);else if(!gs(d,g)){var oe=fr(d);Pd(d,(oe?oe+" ":"")+g)}}function an(d,g){d.classList!==void 0?d.classList.remove(g):Pd(d,x((" "+fr(d)+" ").replace(" "+g+" "," ")))}function Pd(d,g){d.className.baseVal===void 0?d.className=g:d.className.baseVal=g}function fr(d){return d.correspondingElement&&(d=d.correspondingElement),d.className.baseVal===void 0?d.className:d.className.baseVal}function Sr(d,g){"opacity"in d.style?d.style.opacity=g:"filter"in d.style&&Wm(d,g)}function Wm(d,g){var A=!1,D="DXImageTransform.Microsoft.Alpha";try{A=d.filters.item(D)}catch{if(g===1)return}g=Math.round(g*100),A?(A.Enabled=g!==100,A.Opacity=g):d.style.filter+=" progid:"+D+"(opacity="+g+")"}function vs(d){for(var g=document.documentElement.style,A=0;A<d.length;A++)if(d[A]in g)return d[A];return!1}function Kr(d,g,A){var D=g||new U(0,0);d.style[Bl]=(lt.ie3d?"translate("+D.x+"px,"+D.y+"px)":"translate3d("+D.x+"px,"+D.y+"px,0)")+(A?" scale("+A+")":"")}function Cn(d,g){d._leaflet_pos=g,lt.any3d?Kr(d,g):(d.style.left=g.x+"px",d.style.top=g.y+"px")}function Pa(d){return d._leaflet_pos||new U(0,0)}var Ni,zl,lc;if("onselectstart"in document)Ni=function(){bt(window,"selectstart",Tn)},zl=function(){zt(window,"selectstart",Tn)};else{var ys=vs(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ni=function(){if(ys){var d=document.documentElement.style;lc=d[ys],d[ys]="none"}},zl=function(){ys&&(document.documentElement.style[ys]=lc,lc=void 0)}}function $l(){bt(window,"dragstart",Tn)}function Rd(){zt(window,"dragstart",Tn)}var uc,bs;function Fl(d){for(;d.tabIndex===-1;)d=d.parentNode;d.style&&(_s(),uc=d,bs=d.style.outlineStyle,d.style.outlineStyle="none",bt(window,"keydown",_s))}function _s(){uc&&(uc.style.outlineStyle=bs,uc=void 0,bs=void 0,zt(window,"keydown",_s))}function vo(d){do d=d.parentNode;while((!d.offsetWidth||!d.offsetHeight)&&d!==document.body);return d}function Ra(d){var g=d.getBoundingClientRect();return{x:g.width/d.offsetWidth||1,y:g.height/d.offsetHeight||1,boundingClientRect:g}}var Ym={__proto__:null,TRANSFORM:Bl,TRANSITION:ps,TRANSITION_END:po,get:sc,getStyle:mo,create:Nt,remove:rn,empty:cr,toFront:go,toBack:ms,hasClass:gs,addClass:xt,removeClass:an,setClass:Pd,getClass:fr,setOpacity:Sr,testProp:vs,setTransform:Kr,setPosition:Cn,getPosition:Pa,get disableTextSelection(){return Ni},get enableTextSelection(){return zl},disableImageDrag:$l,enableImageDrag:Rd,preventOutline:Fl,restoreOutline:_s,getSizedParentNode:vo,getScale:Ra};function bt(d,g,A,D){if(g&&typeof g=="object")for(var G in g)yo(d,G,g[G],A);else{g=w(g);for(var oe=0,me=g.length;oe<me;oe++)yo(d,g[oe],A,D)}return this}var ai="_leaflet_events";function zt(d,g,A,D){if(arguments.length===1)Li(d),delete d[ai];else if(g&&typeof g=="object")for(var G in g)Di(d,G,g[G],A);else if(g=w(g),arguments.length===2)Li(d,function(Ce){return P(g,Ce)!==-1});else for(var oe=0,me=g.length;oe<me;oe++)Di(d,g[oe],A,D);return this}function Li(d,g){for(var A in d[ai]){var D=A.split(/\d/)[0];(!g||g(D))&&Di(d,D,null,null,A)}}var ql={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function yo(d,g,A,D){var G=g+f(A)+(D?"_"+f(D):"");if(d[ai]&&d[ai][G])return this;var oe=function(Ce){return A.call(D||d,Ce||window.event)},me=oe;!lt.touchNative&<.pointer&&g.indexOf("touch")===0?oe=Bn(d,g,oe):lt.touch&&g==="dblclick"?oe=oc(d,oe):"addEventListener"in d?g==="touchstart"||g==="touchmove"||g==="wheel"||g==="mousewheel"?d.addEventListener(ql[g]||g,oe,lt.passiveEvents?{passive:!1}:!1):g==="mouseenter"||g==="mouseleave"?(oe=function(Ce){Ce=Ce||window.event,_o(d,Ce)&&me(Ce)},d.addEventListener(ql[g],oe,!1)):d.addEventListener(g,me,!1):d.attachEvent("on"+g,oe),d[ai]=d[ai]||{},d[ai][G]=oe}function Di(d,g,A,D,G){G=G||g+f(A)+(D?"_"+f(D):"");var oe=d[ai]&&d[ai][G];if(!oe)return this;!lt.touchNative&<.pointer&&g.indexOf("touch")===0?Vm(d,g,oe):lt.touch&&g==="dblclick"?Ji(d,oe):"removeEventListener"in d?d.removeEventListener(ql[g]||g,oe,!1):d.detachEvent("on"+g,oe),d[ai][G]=null}function ea(d){return d.stopPropagation?d.stopPropagation():d.originalEvent?d.originalEvent._stopped=!0:d.cancelBubble=!0,this}function xs(d){return yo(d,"wheel",ea),this}function ws(d){return bt(d,"mousedown touchstart dblclick contextmenu",ea),d._leaflet_disable_click=!0,this}function Tn(d){return d.preventDefault?d.preventDefault():d.returnValue=!1,this}function ki(d){return Tn(d),ea(d),this}function Md(d){if(d.composedPath)return d.composedPath();for(var g=[],A=d.target;A;)g.push(A),A=A.parentNode;return g}function dr(d,g){if(!g)return new U(d.clientX,d.clientY);var A=Ra(g),D=A.boundingClientRect;return new U((d.clientX-D.left)/A.x-g.clientLeft,(d.clientY-D.top)/A.y-g.clientTop)}var bo=lt.linux&<.chrome?window.devicePixelRatio:lt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Vl(d){return lt.edge?d.wheelDeltaY/2:d.deltaY&&d.deltaMode===0?-d.deltaY/bo:d.deltaY&&d.deltaMode===1?-d.deltaY*20:d.deltaY&&d.deltaMode===2?-d.deltaY*60:d.deltaX||d.deltaZ?0:d.wheelDelta?(d.wheelDeltaY||d.wheelDelta)/2:d.detail&&Math.abs(d.detail)<32765?-d.detail*20:d.detail?d.detail/-32765*60:0}function _o(d,g){var A=g.relatedTarget;if(!A)return!0;try{for(;A&&A!==d;)A=A.parentNode}catch{return!1}return A!==d}var Qb={__proto__:null,on:bt,off:zt,stopPropagation:ea,disableScrollPropagation:xs,disableClickPropagation:ws,preventDefault:Tn,stop:ki,getPropagationPath:Md,getMousePosition:dr,getWheelDelta:Vl,isExternalTarget:_o,addListener:bt,removeListener:zt},cc=B.extend({run:function(d,g,A,D){this.stop(),this._el=d,this._inProgress=!0,this._duration=A||.25,this._easeOutPower=1/Math.max(D||.5,.2),this._startPos=Pa(d),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=Y(this._animate,this),this._step()},_step:function(d){var g=+new Date-this._startTime,A=this._duration*1e3;g<A?this._runFrame(this._easeOut(g/A),d):(this._runFrame(1),this._complete())},_runFrame:function(d,g){var A=this._startPos.add(this._offset.multiplyBy(d));g&&A._round(),Cn(this._el,A),this.fire("step")},_complete:function(){te(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(d){return 1-Math.pow(1-d,this._easeOutPower)}}),Ot=B.extend({options:{crs:se,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(d,g){g=_(this,g),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(d),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(ce(g.center),g.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ps&<.any3d&&!lt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),bt(this._proxy,po,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(d,g,A){if(g=g===void 0?this._zoom:this._limitZoom(g),d=this._limitCenter(ce(d),g,this.options.maxBounds),A=A||{},this._stop(),this._loaded&&!A.reset&&A!==!0){A.animate!==void 0&&(A.zoom=i({animate:A.animate},A.zoom),A.pan=i({animate:A.animate,duration:A.duration},A.pan));var D=this._zoom!==g?this._tryAnimatedZoom&&this._tryAnimatedZoom(d,g,A.zoom):this._tryAnimatedPan(d,A.pan);if(D)return clearTimeout(this._sizeTimer),this}return this._resetView(d,g,A.pan&&A.pan.noMoveStart),this},setZoom:function(d,g){return this._loaded?this.setView(this.getCenter(),d,{zoom:g}):(this._zoom=d,this)},zoomIn:function(d,g){return d=d||(lt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+d,g)},zoomOut:function(d,g){return d=d||(lt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-d,g)},setZoomAround:function(d,g,A){var D=this.getZoomScale(g),G=this.getSize().divideBy(2),oe=d instanceof U?d:this.latLngToContainerPoint(d),me=oe.subtract(G).multiplyBy(1-1/D),Ce=this.containerPointToLatLng(G.add(me));return this.setView(Ce,g,{zoom:A})},_getBoundsCenterZoom:function(d,g){g=g||{},d=d.getBounds?d.getBounds():ie(d);var A=M(g.paddingTopLeft||g.padding||[0,0]),D=M(g.paddingBottomRight||g.padding||[0,0]),G=this.getBoundsZoom(d,!1,A.add(D));if(G=typeof g.maxZoom=="number"?Math.min(g.maxZoom,G):G,G===1/0)return{center:d.getCenter(),zoom:G};var oe=D.subtract(A).divideBy(2),me=this.project(d.getSouthWest(),G),Ce=this.project(d.getNorthEast(),G),Me=this.unproject(me.add(Ce).divideBy(2).add(oe),G);return{center:Me,zoom:G}},fitBounds:function(d,g){if(d=ie(d),!d.isValid())throw new Error("Bounds are not valid.");var A=this._getBoundsCenterZoom(d,g);return this.setView(A.center,A.zoom,g)},fitWorld:function(d){return this.fitBounds([[-90,-180],[90,180]],d)},panTo:function(d,g){return this.setView(d,this._zoom,{pan:g})},panBy:function(d,g){if(d=M(d).round(),g=g||{},!d.x&&!d.y)return this.fire("moveend");if(g.animate!==!0&&!this.getSize().contains(d))return this._resetView(this.unproject(this.project(this.getCenter()).add(d)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new cc,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),g.noMoveStart||this.fire("movestart"),g.animate!==!1){xt(this._mapPane,"leaflet-pan-anim");var A=this._getMapPanePos().subtract(d).round();this._panAnim.run(this._mapPane,A,g.duration||.25,g.easeLinearity)}else this._rawPanBy(d),this.fire("move").fire("moveend");return this},flyTo:function(d,g,A){if(A=A||{},A.animate===!1||!lt.any3d)return this.setView(d,g,A);this._stop();var D=this.project(this.getCenter()),G=this.project(d),oe=this.getSize(),me=this._zoom;d=ce(d),g=g===void 0?me:g;var Ce=Math.max(oe.x,oe.y),Me=Ce*this.getZoomScale(me,g),qe=G.distanceTo(D)||1,Je=1.42,rt=Je*Je;function at(bn){var Bi=bn?-1:1,ra=bn?Me:Ce,ka=Me*Me-Ce*Ce+Bi*rt*rt*qe*qe,ia=2*ra*rt*qe,ru=ka/ia,Sc=Math.sqrt(ru*ru+1)-ru,iu=Sc<1e-9?-18:Math.log(Sc);return iu}function yt(bn){return(Math.exp(bn)-Math.exp(-bn))/2}function on(bn){return(Math.exp(bn)+Math.exp(-bn))/2}function An(bn){return yt(bn)/on(bn)}var nr=at(0);function Zr(bn){return Ce*(on(nr)/on(nr+Je*bn))}function hg(bn){return Ce*(on(nr)*An(nr+Je*bn)-yt(nr))/rt}function pg(bn){return 1-Math.pow(1-bn,1.5)}var nu=Date.now(),Ls=(at(1)-nr)/Je,mg=A.duration?1e3*A.duration:1e3*Ls*.8;function Ds(){var bn=(Date.now()-nu)/mg,Bi=pg(bn)*Ls;bn<=1?(this._flyToFrame=Y(Ds,this),this._move(this.unproject(D.add(G.subtract(D).multiplyBy(hg(Bi)/qe)),me),this.getScaleZoom(Ce/Zr(Bi),me),{flyTo:!0})):this._move(d,g)._moveEnd(!0)}return this._moveStart(!0,A.noMoveStart),Ds.call(this),this},flyToBounds:function(d,g){var A=this._getBoundsCenterZoom(d,g);return this.flyTo(A.center,A.zoom,g)},setMaxBounds:function(d){return d=ie(d),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),d.isValid()?(this.options.maxBounds=d,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(d){var g=this.options.minZoom;return this.options.minZoom=d,this._loaded&&g!==d&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(d):this},setMaxZoom:function(d){var g=this.options.maxZoom;return this.options.maxZoom=d,this._loaded&&g!==d&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(d):this},panInsideBounds:function(d,g){this._enforcingBounds=!0;var A=this.getCenter(),D=this._limitCenter(A,this._zoom,ie(d));return A.equals(D)||this.panTo(D,g),this._enforcingBounds=!1,this},panInside:function(d,g){g=g||{};var A=M(g.paddingTopLeft||g.padding||[0,0]),D=M(g.paddingBottomRight||g.padding||[0,0]),G=this.project(this.getCenter()),oe=this.project(d),me=this.getPixelBounds(),Ce=J([me.min.add(A),me.max.subtract(D)]),Me=Ce.getSize();if(!Ce.contains(oe)){this._enforcingBounds=!0;var qe=oe.subtract(Ce.getCenter()),Je=Ce.extend(oe).getSize().subtract(Me);G.x+=qe.x<0?-Je.x:Je.x,G.y+=qe.y<0?-Je.y:Je.y,this.panTo(this.unproject(G),g),this._enforcingBounds=!1}return this},invalidateSize:function(d){if(!this._loaded)return this;d=i({animate:!1,pan:!0},d===!0?{animate:!0}:d);var g=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var A=this.getSize(),D=g.divideBy(2).round(),G=A.divideBy(2).round(),oe=D.subtract(G);return!oe.x&&!oe.y?this:(d.animate&&d.pan?this.panBy(oe):(d.pan&&this._rawPanBy(oe),this.fire("move"),d.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:g,newSize:A}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(d){if(d=this._locateOptions=i({timeout:1e4,watch:!1},d),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var g=s(this._handleGeolocationResponse,this),A=s(this._handleGeolocationError,this);return d.watch?this._locationWatchId=navigator.geolocation.watchPosition(g,A,d):navigator.geolocation.getCurrentPosition(g,A,d),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(d){if(this._container._leaflet_id){var g=d.code,A=d.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: "+A+"."})}},_handleGeolocationResponse:function(d){if(this._container._leaflet_id){var g=d.coords.latitude,A=d.coords.longitude,D=new fe(g,A),G=D.toBounds(d.coords.accuracy*2),oe=this._locateOptions;if(oe.setView){var me=this.getBoundsZoom(G);this.setView(D,oe.maxZoom?Math.min(me,oe.maxZoom):me)}var Ce={latlng:D,bounds:G,timestamp:d.timestamp};for(var Me in d.coords)typeof d.coords[Me]=="number"&&(Ce[Me]=d.coords[Me]);this.fire("locationfound",Ce)}},addHandler:function(d,g){if(!g)return this;var A=this[d]=new g(this);return this._handlers.push(A),this.options[d]&&A.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(),rn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(te(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var d;for(d in this._layers)this._layers[d].remove();for(d in this._panes)rn(this._panes[d]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(d,g){var A="leaflet-pane"+(d?" leaflet-"+d.replace("Pane","")+"-pane":""),D=Nt("div",A,g||this._mapPane);return d&&(this._panes[d]=D),D},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var d=this.getPixelBounds(),g=this.unproject(d.getBottomLeft()),A=this.unproject(d.getTopRight());return new W(g,A)},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(d,g,A){d=ie(d),A=M(A||[0,0]);var D=this.getZoom()||0,G=this.getMinZoom(),oe=this.getMaxZoom(),me=d.getNorthWest(),Ce=d.getSouthEast(),Me=this.getSize().subtract(A),qe=J(this.project(Ce,D),this.project(me,D)).getSize(),Je=lt.any3d?this.options.zoomSnap:1,rt=Me.x/qe.x,at=Me.y/qe.y,yt=g?Math.max(rt,at):Math.min(rt,at);return D=this.getScaleZoom(yt,D),Je&&(D=Math.round(D/(Je/100))*(Je/100),D=g?Math.ceil(D/Je)*Je:Math.floor(D/Je)*Je),Math.max(G,Math.min(oe,D))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new U(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(d,g){var A=this._getTopLeftPoint(d,g);return new k(A,A.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(d){return this.options.crs.getProjectedBounds(d===void 0?this.getZoom():d)},getPane:function(d){return typeof d=="string"?this._panes[d]:d},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(d,g){var A=this.options.crs;return g=g===void 0?this._zoom:g,A.scale(d)/A.scale(g)},getScaleZoom:function(d,g){var A=this.options.crs;g=g===void 0?this._zoom:g;var D=A.zoom(d*A.scale(g));return isNaN(D)?1/0:D},project:function(d,g){return g=g===void 0?this._zoom:g,this.options.crs.latLngToPoint(ce(d),g)},unproject:function(d,g){return g=g===void 0?this._zoom:g,this.options.crs.pointToLatLng(M(d),g)},layerPointToLatLng:function(d){var g=M(d).add(this.getPixelOrigin());return this.unproject(g)},latLngToLayerPoint:function(d){var g=this.project(ce(d))._round();return g._subtract(this.getPixelOrigin())},wrapLatLng:function(d){return this.options.crs.wrapLatLng(ce(d))},wrapLatLngBounds:function(d){return this.options.crs.wrapLatLngBounds(ie(d))},distance:function(d,g){return this.options.crs.distance(ce(d),ce(g))},containerPointToLayerPoint:function(d){return M(d).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(d){return M(d).add(this._getMapPanePos())},containerPointToLatLng:function(d){var g=this.containerPointToLayerPoint(M(d));return this.layerPointToLatLng(g)},latLngToContainerPoint:function(d){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ce(d)))},mouseEventToContainerPoint:function(d){return dr(d,this._container)},mouseEventToLayerPoint:function(d){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(d))},mouseEventToLatLng:function(d){return this.layerPointToLatLng(this.mouseEventToLayerPoint(d))},_initContainer:function(d){var g=this._container=sc(d);if(g){if(g._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");bt(g,"scroll",this._onScroll,this),this._containerId=f(g)},_initLayout:function(){var d=this._container;this._fadeAnimated=this.options.fadeAnimation&<.any3d,xt(d,"leaflet-container"+(lt.touch?" leaflet-touch":"")+(lt.retina?" leaflet-retina":"")+(lt.ielt9?" leaflet-oldie":"")+(lt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var g=mo(d,"position");g!=="absolute"&&g!=="relative"&&g!=="fixed"&&g!=="sticky"&&(d.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var d=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Cn(this._mapPane,new U(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(xt(d.markerPane,"leaflet-zoom-hide"),xt(d.shadowPane,"leaflet-zoom-hide"))},_resetView:function(d,g,A){Cn(this._mapPane,new U(0,0));var D=!this._loaded;this._loaded=!0,g=this._limitZoom(g),this.fire("viewprereset");var G=this._zoom!==g;this._moveStart(G,A)._move(d,g)._moveEnd(G),this.fire("viewreset"),D&&this.fire("load")},_moveStart:function(d,g){return d&&this.fire("zoomstart"),g||this.fire("movestart"),this},_move:function(d,g,A,D){g===void 0&&(g=this._zoom);var G=this._zoom!==g;return this._zoom=g,this._lastCenter=d,this._pixelOrigin=this._getNewPixelOrigin(d),D?A&&A.pinch&&this.fire("zoom",A):((G||A&&A.pinch)&&this.fire("zoom",A),this.fire("move",A)),this},_moveEnd:function(d){return d&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return te(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(d){Cn(this._mapPane,this._getMapPanePos().subtract(d))},_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(d){this._targets={},this._targets[f(this._container)]=this;var g=d?zt:bt;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),lt.any3d&&this.options.transform3DLimit&&(d?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){te(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var d=this._getMapPanePos();Math.max(Math.abs(d.x),Math.abs(d.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(d,g){for(var A=[],D,G=g==="mouseout"||g==="mouseover",oe=d.target||d.srcElement,me=!1;oe;){if(D=this._targets[f(oe)],D&&(g==="click"||g==="preclick")&&this._draggableMoved(D)){me=!0;break}if(D&&D.listens(g,!0)&&(G&&!_o(oe,d)||(A.push(D),G))||oe===this._container)break;oe=oe.parentNode}return!A.length&&!me&&!G&&this.listens(g,!0)&&(A=[this]),A},_isClickDisabled:function(d){for(;d&&d!==this._container;){if(d._leaflet_disable_click)return!0;d=d.parentNode}},_handleDOMEvent:function(d){var g=d.target||d.srcElement;if(!(!this._loaded||g._leaflet_disable_events||d.type==="click"&&this._isClickDisabled(g))){var A=d.type;A==="mousedown"&&Fl(g),this._fireDOMEvent(d,A)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(d,g,A){if(d.type==="click"){var D=i({},d);D.type="preclick",this._fireDOMEvent(D,D.type,A)}var G=this._findEventTargets(d,g);if(A){for(var oe=[],me=0;me<A.length;me++)A[me].listens(g,!0)&&oe.push(A[me]);G=oe.concat(G)}if(G.length){g==="contextmenu"&&Tn(d);var Ce=G[0],Me={originalEvent:d};if(d.type!=="keypress"&&d.type!=="keydown"&&d.type!=="keyup"){var qe=Ce.getLatLng&&(!Ce._radius||Ce._radius<=10);Me.containerPoint=qe?this.latLngToContainerPoint(Ce.getLatLng()):this.mouseEventToContainerPoint(d),Me.layerPoint=this.containerPointToLayerPoint(Me.containerPoint),Me.latlng=qe?Ce.getLatLng():this.layerPointToLatLng(Me.layerPoint)}for(me=0;me<G.length;me++)if(G[me].fire(g,Me,!0),Me.originalEvent._stopped||G[me].options.bubblingMouseEvents===!1&&P(this._mouseEvents,g)!==-1)return}},_draggableMoved:function(d){return d=d.dragging&&d.dragging.enabled()?d:this,d.dragging&&d.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var d=0,g=this._handlers.length;d<g;d++)this._handlers[d].disable()},whenReady:function(d,g){return this._loaded?d.call(g||this,{target:this}):this.on("load",d,g),this},_getMapPanePos:function(){return Pa(this._mapPane)||new U(0,0)},_moved:function(){var d=this._getMapPanePos();return d&&!d.equals([0,0])},_getTopLeftPoint:function(d,g){var A=d&&g!==void 0?this._getNewPixelOrigin(d,g):this.getPixelOrigin();return A.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(d,g){var A=this.getSize()._divideBy(2);return this.project(d,g)._subtract(A)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(d,g,A){var D=this._getNewPixelOrigin(A,g);return this.project(d,g)._subtract(D)},_latLngBoundsToNewLayerBounds:function(d,g,A){var D=this._getNewPixelOrigin(A,g);return J([this.project(d.getSouthWest(),g)._subtract(D),this.project(d.getNorthWest(),g)._subtract(D),this.project(d.getSouthEast(),g)._subtract(D),this.project(d.getNorthEast(),g)._subtract(D)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(d){return this.latLngToLayerPoint(d).subtract(this._getCenterLayerPoint())},_limitCenter:function(d,g,A){if(!A)return d;var D=this.project(d,g),G=this.getSize().divideBy(2),oe=new k(D.subtract(G),D.add(G)),me=this._getBoundsOffset(oe,A,g);return Math.abs(me.x)<=1&&Math.abs(me.y)<=1?d:this.unproject(D.add(me),g)},_limitOffset:function(d,g){if(!g)return d;var A=this.getPixelBounds(),D=new k(A.min.add(d),A.max.add(d));return d.add(this._getBoundsOffset(D,g))},_getBoundsOffset:function(d,g,A){var D=J(this.project(g.getNorthEast(),A),this.project(g.getSouthWest(),A)),G=D.min.subtract(d.min),oe=D.max.subtract(d.max),me=this._rebound(G.x,-oe.x),Ce=this._rebound(G.y,-oe.y);return new U(me,Ce)},_rebound:function(d,g){return d+g>0?Math.round(d-g)/2:Math.max(0,Math.ceil(d))-Math.max(0,Math.floor(g))},_limitZoom:function(d){var g=this.getMinZoom(),A=this.getMaxZoom(),D=lt.any3d?this.options.zoomSnap:1;return D&&(d=Math.round(d/D)*D),Math.max(g,Math.min(A,d))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){an(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(d,g){var A=this._getCenterOffset(d)._trunc();return(g&&g.animate)!==!0&&!this.getSize().contains(A)?!1:(this.panBy(A,g),!0)},_createAnimProxy:function(){var d=this._proxy=Nt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(d),this.on("zoomanim",function(g){var A=Bl,D=this._proxy.style[A];Kr(this._proxy,this.project(g.center,g.zoom),this.getZoomScale(g.zoom,1)),D===this._proxy.style[A]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){rn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var d=this.getCenter(),g=this.getZoom();Kr(this._proxy,this.project(d,g),this.getZoomScale(g,1))},_catchTransitionEnd:function(d){this._animatingZoom&&d.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(d,g,A){if(this._animatingZoom)return!0;if(A=A||{},!this._zoomAnimated||A.animate===!1||this._nothingToAnimate()||Math.abs(g-this._zoom)>this.options.zoomAnimationThreshold)return!1;var D=this.getZoomScale(g),G=this._getCenterOffset(d)._divideBy(1-1/D);return A.animate!==!0&&!this.getSize().contains(G)?!1:(Y(function(){this._moveStart(!0,A.noMoveStart||!1)._animateZoom(d,g,!0)},this),!0)},_animateZoom:function(d,g,A,D){this._mapPane&&(A&&(this._animatingZoom=!0,this._animateToCenter=d,this._animateToZoom=g,xt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:d,zoom:g,noUpdate:D}),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&&an(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 Hl(d,g){return new Ot(d,g)}var Cr=Q.extend({options:{position:"topright"},initialize:function(d){_(this,d)},getPosition:function(){return this.options.position},setPosition:function(d){var g=this._map;return g&&g.removeControl(this),this.options.position=d,g&&g.addControl(this),this},getContainer:function(){return this._container},addTo:function(d){this.remove(),this._map=d;var g=this._container=this.onAdd(d),A=this.getPosition(),D=d._controlCorners[A];return xt(g,"leaflet-control"),A.indexOf("bottom")!==-1?D.insertBefore(g,D.firstChild):D.appendChild(g),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(rn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(d){this._map&&d&&d.screenX>0&&d.screenY>0&&this._map.getContainer().focus()}}),Ss=function(d){return new Cr(d)};Ot.include({addControl:function(d){return d.addTo(this),this},removeControl:function(d){return d.remove(),this},_initControlPos:function(){var d=this._controlCorners={},g="leaflet-",A=this._controlContainer=Nt("div",g+"control-container",this._container);function D(G,oe){var me=g+G+" "+g+oe;d[G+oe]=Nt("div",me,A)}D("top","left"),D("top","right"),D("bottom","left"),D("bottom","right")},_clearControlPos:function(){for(var d in this._controlCorners)rn(this._controlCorners[d]);rn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Km=Cr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(d,g,A,D){return A<D?-1:D<A?1:0}},initialize:function(d,g,A){_(this,A),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var D in d)this._addLayer(d[D],D);for(D in g)this._addLayer(g[D],D,!0)},onAdd:function(d){this._initLayout(),this._update(),this._map=d,d.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(d){return Cr.prototype.addTo.call(this,d),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(d,g){return this._addLayer(d,g),this._map?this._update():this},addOverlay:function(d,g){return this._addLayer(d,g,!0),this._map?this._update():this},removeLayer:function(d){d.off("add remove",this._onLayerChange,this);var g=this._getLayer(f(d));return g&&this._layers.splice(this._layers.indexOf(g),1),this._map?this._update():this},expand:function(){xt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var d=this._map.getSize().y-(this._container.offsetTop+50);return d<this._section.clientHeight?(xt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=d+"px"):an(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return an(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var d="leaflet-control-layers",g=this._container=Nt("div",d),A=this.options.collapsed;g.setAttribute("aria-haspopup",!0),ws(g),xs(g);var D=this._section=Nt("section",d+"-list");A&&(this._map.on("click",this.collapse,this),bt(g,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var G=this._layersLink=Nt("a",d+"-toggle",g);G.href="#",G.title="Layers",G.setAttribute("role","button"),bt(G,{keydown:function(oe){oe.keyCode===13&&this._expandSafely()},click:function(oe){Tn(oe),this._expandSafely()}},this),A||this.expand(),this._baseLayersList=Nt("div",d+"-base",D),this._separator=Nt("div",d+"-separator",D),this._overlaysList=Nt("div",d+"-overlays",D),g.appendChild(D)},_getLayer:function(d){for(var g=0;g<this._layers.length;g++)if(this._layers[g]&&f(this._layers[g].layer)===d)return this._layers[g]},_addLayer:function(d,g,A){this._map&&d.on("add remove",this._onLayerChange,this),this._layers.push({layer:d,name:g,overlay:A}),this.options.sortLayers&&this._layers.sort(s(function(D,G){return this.options.sortFunction(D.layer,G.layer,D.name,G.name)},this)),this.options.autoZIndex&&d.setZIndex&&(this._lastZIndex++,d.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;cr(this._baseLayersList),cr(this._overlaysList),this._layerControlInputs=[];var d,g,A,D,G=0;for(A=0;A<this._layers.length;A++)D=this._layers[A],this._addItem(D),g=g||D.overlay,d=d||!D.overlay,G+=D.overlay?0:1;return this.options.hideSingleBase&&(d=d&&G>1,this._baseLayersList.style.display=d?"":"none"),this._separator.style.display=g&&d?"":"none",this},_onLayerChange:function(d){this._handlingClick||this._update();var g=this._getLayer(f(d.target)),A=g.overlay?d.type==="add"?"overlayadd":"overlayremove":d.type==="add"?"baselayerchange":null;A&&this._map.fire(A,g)},_createRadioElement:function(d,g){var A='<input type="radio" class="leaflet-control-layers-selector" name="'+d+'"'+(g?' checked="checked"':"")+"/>",D=document.createElement("div");return D.innerHTML=A,D.firstChild},_addItem:function(d){var g=document.createElement("label"),A=this._map.hasLayer(d.layer),D;d.overlay?(D=document.createElement("input"),D.type="checkbox",D.className="leaflet-control-layers-selector",D.defaultChecked=A):D=this._createRadioElement("leaflet-base-layers_"+f(this),A),this._layerControlInputs.push(D),D.layerId=f(d.layer),bt(D,"click",this._onInputClick,this);var G=document.createElement("span");G.innerHTML=" "+d.name;var oe=document.createElement("span");g.appendChild(oe),oe.appendChild(D),oe.appendChild(G);var me=d.overlay?this._overlaysList:this._baseLayersList;return me.appendChild(g),this._checkDisabledLayers(),g},_onInputClick:function(){if(!this._preventClick){var d=this._layerControlInputs,g,A,D=[],G=[];this._handlingClick=!0;for(var oe=d.length-1;oe>=0;oe--)g=d[oe],A=this._getLayer(g.layerId).layer,g.checked?D.push(A):g.checked||G.push(A);for(oe=0;oe<G.length;oe++)this._map.hasLayer(G[oe])&&this._map.removeLayer(G[oe]);for(oe=0;oe<D.length;oe++)this._map.hasLayer(D[oe])||this._map.addLayer(D[oe]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var d=this._layerControlInputs,g,A,D=this._map.getZoom(),G=d.length-1;G>=0;G--)g=d[G],A=this._getLayer(g.layerId).layer,g.disabled=A.options.minZoom!==void 0&&D<A.options.minZoom||A.options.maxZoom!==void 0&&D>A.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var d=this._section;this._preventClick=!0,bt(d,"click",Tn),this.expand();var g=this;setTimeout(function(){zt(d,"click",Tn),g._preventClick=!1})}}),Jb=function(d,g,A){return new Km(d,g,A)},Nd=Cr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(d){var g="leaflet-control-zoom",A=Nt("div",g+" leaflet-bar"),D=this.options;return this._zoomInButton=this._createButton(D.zoomInText,D.zoomInTitle,g+"-in",A,this._zoomIn),this._zoomOutButton=this._createButton(D.zoomOutText,D.zoomOutTitle,g+"-out",A,this._zoomOut),this._updateDisabled(),d.on("zoomend zoomlevelschange",this._updateDisabled,this),A},onRemove:function(d){d.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(d){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(d.shiftKey?3:1))},_zoomOut:function(d){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(d.shiftKey?3:1))},_createButton:function(d,g,A,D,G){var oe=Nt("a",A,D);return oe.innerHTML=d,oe.href="#",oe.title=g,oe.setAttribute("role","button"),oe.setAttribute("aria-label",g),ws(oe),bt(oe,"click",ki),bt(oe,"click",G,this),bt(oe,"click",this._refocusOnMap,this),oe},_updateDisabled:function(){var d=this._map,g="leaflet-disabled";an(this._zoomInButton,g),an(this._zoomOutButton,g),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||d._zoom===d.getMinZoom())&&(xt(this._zoomOutButton,g),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||d._zoom===d.getMaxZoom())&&(xt(this._zoomInButton,g),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ot.mergeOptions({zoomControl:!0}),Ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Nd,this.addControl(this.zoomControl))});var Ld=function(d){return new Nd(d)},Zm=Cr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(d){var g="leaflet-control-scale",A=Nt("div",g),D=this.options;return this._addScales(D,g+"-line",A),d.on(D.updateWhenIdle?"moveend":"move",this._update,this),d.whenReady(this._update,this),A},onRemove:function(d){d.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(d,g,A){d.metric&&(this._mScale=Nt("div",g,A)),d.imperial&&(this._iScale=Nt("div",g,A))},_update:function(){var d=this._map,g=d.getSize().y/2,A=d.distance(d.containerPointToLatLng([0,g]),d.containerPointToLatLng([this.options.maxWidth,g]));this._updateScales(A)},_updateScales:function(d){this.options.metric&&d&&this._updateMetric(d),this.options.imperial&&d&&this._updateImperial(d)},_updateMetric:function(d){var g=this._getRoundNum(d),A=g<1e3?g+" m":g/1e3+" km";this._updateScale(this._mScale,A,g/d)},_updateImperial:function(d){var g=d*3.2808399,A,D,G;g>5280?(A=g/5280,D=this._getRoundNum(A),this._updateScale(this._iScale,D+" mi",D/A)):(G=this._getRoundNum(g),this._updateScale(this._iScale,G+" ft",G/g))},_updateScale:function(d,g,A){d.style.width=Math.round(this.options.maxWidth*A)+"px",d.innerHTML=g},_getRoundNum:function(d){var g=Math.pow(10,(Math.floor(d)+"").length-1),A=d/g;return A=A>=10?10:A>=5?5:A>=3?3:A>=2?2:1,g*A}}),e1=function(d){return new Zm(d)},t1='<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>',Dd=Cr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(lt.inlineSvg?t1+" ":"")+"Leaflet</a>"},initialize:function(d){_(this,d),this._attributions={}},onAdd:function(d){d.attributionControl=this,this._container=Nt("div","leaflet-control-attribution"),ws(this._container);for(var g in d._layers)d._layers[g].getAttribution&&this.addAttribution(d._layers[g].getAttribution());return this._update(),d.on("layeradd",this._addAttribution,this),this._container},onRemove:function(d){d.off("layeradd",this._addAttribution,this)},_addAttribution:function(d){d.layer.getAttribution&&(this.addAttribution(d.layer.getAttribution()),d.layer.once("remove",function(){this.removeAttribution(d.layer.getAttribution())},this))},setPrefix:function(d){return this.options.prefix=d,this._update(),this},addAttribution:function(d){return d?(this._attributions[d]||(this._attributions[d]=0),this._attributions[d]++,this._update(),this):this},removeAttribution:function(d){return d?(this._attributions[d]&&(this._attributions[d]--,this._update()),this):this},_update:function(){if(this._map){var d=[];for(var g in this._attributions)this._attributions[g]&&d.push(g);var A=[];this.options.prefix&&A.push(this.options.prefix),d.length&&A.push(d.join(", ")),this._container.innerHTML=A.join(' <span aria-hidden="true">|</span> ')}}});Ot.mergeOptions({attributionControl:!0}),Ot.addInitHook(function(){this.options.attributionControl&&new Dd().addTo(this)});var n1=function(d){return new Dd(d)};Cr.Layers=Km,Cr.Zoom=Nd,Cr.Scale=Zm,Cr.Attribution=Dd,Ss.layers=Jb,Ss.zoom=Ld,Ss.scale=e1,Ss.attribution=n1;var oi=Q.extend({initialize:function(d){this._map=d},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}});oi.addTo=function(d,g){return d.addHandler(g,this),this};var r1={Events:H},Xm=lt.touch?"touchstart mousedown":"mousedown",Ma=B.extend({options:{clickTolerance:3},initialize:function(d,g,A,D){_(this,D),this._element=d,this._dragStartTarget=g||d,this._preventOutline=A},enable:function(){this._enabled||(bt(this._dragStartTarget,Xm,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ma._dragging===this&&this.finishDrag(!0),zt(this._dragStartTarget,Xm,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(d){if(this._enabled&&(this._moved=!1,!gs(this._element,"leaflet-zoom-anim"))){if(d.touches&&d.touches.length!==1){Ma._dragging===this&&this.finishDrag();return}if(!(Ma._dragging||d.shiftKey||d.which!==1&&d.button!==1&&!d.touches)&&(Ma._dragging=this,this._preventOutline&&Fl(this._element),$l(),Ni(),!this._moving)){this.fire("down");var g=d.touches?d.touches[0]:d,A=vo(this._element);this._startPoint=new U(g.clientX,g.clientY),this._startPos=Pa(this._element),this._parentScale=Ra(A);var D=d.type==="mousedown";bt(document,D?"mousemove":"touchmove",this._onMove,this),bt(document,D?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(d){if(this._enabled){if(d.touches&&d.touches.length>1){this._moved=!0;return}var g=d.touches&&d.touches.length===1?d.touches[0]:d,A=new U(g.clientX,g.clientY)._subtract(this._startPoint);!A.x&&!A.y||Math.abs(A.x)+Math.abs(A.y)<this.options.clickTolerance||(A.x/=this._parentScale.x,A.y/=this._parentScale.y,Tn(d),this._moved||(this.fire("dragstart"),this._moved=!0,xt(document.body,"leaflet-dragging"),this._lastTarget=d.target||d.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),xt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(A),this._moving=!0,this._lastEvent=d,this._updatePosition())}},_updatePosition:function(){var d={originalEvent:this._lastEvent};this.fire("predrag",d),Cn(this._element,this._newPos),this.fire("drag",d)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(d){an(document.body,"leaflet-dragging"),this._lastTarget&&(an(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),zt(document,"mousemove touchmove",this._onMove,this),zt(document,"mouseup touchend touchcancel",this._onUp,this),Rd(),zl();var g=this._moved&&this._moving;this._moving=!1,Ma._dragging=!1,g&&this.fire("dragend",{noInertia:d,distance:this._newPos.distanceTo(this._startPos)})}});function Qm(d,g,A){var D,G=[1,4,2,8],oe,me,Ce,Me,qe,Je,rt,at;for(oe=0,Je=d.length;oe<Je;oe++)d[oe]._code=xo(d[oe],g);for(Ce=0;Ce<4;Ce++){for(rt=G[Ce],D=[],oe=0,Je=d.length,me=Je-1;oe<Je;me=oe++)Me=d[oe],qe=d[me],Me._code&rt?qe._code&rt||(at=dc(qe,Me,rt,g,A),at._code=xo(at,g),D.push(at)):(qe._code&rt&&(at=dc(qe,Me,rt,g,A),at._code=xo(at,g),D.push(at)),D.push(Me));d=D}return d}function fc(d,g){var A,D,G,oe,me,Ce,Me,qe,Je;if(!d||d.length===0)throw new Error("latlngs not passed");tr(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var rt=ce([0,0]),at=ie(d),yt=at.getNorthWest().distanceTo(at.getSouthWest())*at.getNorthEast().distanceTo(at.getNorthWest());yt<1700&&(rt=kd(d));var on=d.length,An=[];for(A=0;A<on;A++){var nr=ce(d[A]);An.push(g.project(ce([nr.lat-rt.lat,nr.lng-rt.lng])))}for(Ce=Me=qe=0,A=0,D=on-1;A<on;D=A++)G=An[A],oe=An[D],me=G.y*oe.x-oe.y*G.x,Me+=(G.x+oe.x)*me,qe+=(G.y+oe.y)*me,Ce+=me*3;Ce===0?Je=An[0]:Je=[Me/Ce,qe/Ce];var Zr=g.unproject(M(Je));return ce([Zr.lat+rt.lat,Zr.lng+rt.lng])}function kd(d){for(var g=0,A=0,D=0,G=0;G<d.length;G++){var oe=ce(d[G]);g+=oe.lat,A+=oe.lng,D++}return ce([g/D,A/D])}var i1={__proto__:null,clipPolygon:Qm,polygonCenter:fc,centroid:kd};function Jm(d,g){if(!g||!d.length)return d.slice();var A=g*g;return d=s1(d,A),d=o1(d,A),d}function Id(d,g,A){return Math.sqrt(wo(d,g,A,!0))}function a1(d,g,A){return wo(d,g,A)}function o1(d,g){var A=d.length,D=typeof Uint8Array<"u"?Uint8Array:Array,G=new D(A);G[0]=G[A-1]=1,Ud(d,G,g,0,A-1);var oe,me=[];for(oe=0;oe<A;oe++)G[oe]&&me.push(d[oe]);return me}function Ud(d,g,A,D,G){var oe=0,me,Ce,Me;for(Ce=D+1;Ce<=G-1;Ce++)Me=wo(d[Ce],d[D],d[G],!0),Me>oe&&(me=Ce,oe=Me);oe>A&&(g[me]=1,Ud(d,g,A,D,me),Ud(d,g,A,me,G))}function s1(d,g){for(var A=[d[0]],D=1,G=0,oe=d.length;D<oe;D++)l1(d[D],d[G])>g&&(A.push(d[D]),G=D);return G<oe-1&&A.push(d[oe-1]),A}var eg;function tg(d,g,A,D,G){var oe=D?eg:xo(d,A),me=xo(g,A),Ce,Me,qe;for(eg=me;;){if(!(oe|me))return[d,g];if(oe&me)return!1;Ce=oe||me,Me=dc(d,g,Ce,A,G),qe=xo(Me,A),Ce===oe?(d=Me,oe=qe):(g=Me,me=qe)}}function dc(d,g,A,D,G){var oe=g.x-d.x,me=g.y-d.y,Ce=D.min,Me=D.max,qe,Je;return A&8?(qe=d.x+oe*(Me.y-d.y)/me,Je=Me.y):A&4?(qe=d.x+oe*(Ce.y-d.y)/me,Je=Ce.y):A&2?(qe=Me.x,Je=d.y+me*(Me.x-d.x)/oe):A&1&&(qe=Ce.x,Je=d.y+me*(Ce.x-d.x)/oe),new U(qe,Je,G)}function xo(d,g){var A=0;return d.x<g.min.x?A|=1:d.x>g.max.x&&(A|=2),d.y<g.min.y?A|=4:d.y>g.max.y&&(A|=8),A}function l1(d,g){var A=g.x-d.x,D=g.y-d.y;return A*A+D*D}function wo(d,g,A,D){var G=g.x,oe=g.y,me=A.x-G,Ce=A.y-oe,Me=me*me+Ce*Ce,qe;return Me>0&&(qe=((d.x-G)*me+(d.y-oe)*Ce)/Me,qe>1?(G=A.x,oe=A.y):qe>0&&(G+=me*qe,oe+=Ce*qe)),me=d.x-G,Ce=d.y-oe,D?me*me+Ce*Ce:new U(G,oe)}function tr(d){return!T(d[0])||typeof d[0][0]!="object"&&typeof d[0][0]<"u"}function ng(d){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),tr(d)}function Bd(d,g){var A,D,G,oe,me,Ce,Me,qe;if(!d||d.length===0)throw new Error("latlngs not passed");tr(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var Je=ce([0,0]),rt=ie(d),at=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());at<1700&&(Je=kd(d));var yt=d.length,on=[];for(A=0;A<yt;A++){var An=ce(d[A]);on.push(g.project(ce([An.lat-Je.lat,An.lng-Je.lng])))}for(A=0,D=0;A<yt-1;A++)D+=on[A].distanceTo(on[A+1])/2;if(D===0)qe=on[0];else for(A=0,oe=0;A<yt-1;A++)if(me=on[A],Ce=on[A+1],G=me.distanceTo(Ce),oe+=G,oe>D){Me=(oe-D)/G,qe=[Ce.x-Me*(Ce.x-me.x),Ce.y-Me*(Ce.y-me.y)];break}var nr=g.unproject(M(qe));return ce([nr.lat+Je.lat,nr.lng+Je.lng])}var rg={__proto__:null,simplify:Jm,pointToSegmentDistance:Id,closestPointOnSegment:a1,clipSegment:tg,_getEdgeIntersection:dc,_getBitCode:xo,_sqClosestPointOnSegment:wo,isFlat:tr,_flat:ng,polylineCenter:Bd},hc={project:function(d){return new U(d.lng,d.lat)},unproject:function(d){return new fe(d.y,d.x)},bounds:new k([-180,-90],[180,90])},pc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new k([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(d){var g=Math.PI/180,A=this.R,D=d.lat*g,G=this.R_MINOR/A,oe=Math.sqrt(1-G*G),me=oe*Math.sin(D),Ce=Math.tan(Math.PI/4-D/2)/Math.pow((1-me)/(1+me),oe/2);return D=-A*Math.log(Math.max(Ce,1e-10)),new U(d.lng*g*A,D)},unproject:function(d){for(var g=180/Math.PI,A=this.R,D=this.R_MINOR/A,G=Math.sqrt(1-D*D),oe=Math.exp(-d.y/A),me=Math.PI/2-2*Math.atan(oe),Ce=0,Me=.1,qe;Ce<15&&Math.abs(Me)>1e-7;Ce++)qe=G*Math.sin(me),qe=Math.pow((1-qe)/(1+qe),G/2),Me=Math.PI/2-2*Math.atan(oe*qe)-me,me+=Me;return new fe(me*g,d.x*g/A)}},ig={__proto__:null,LonLat:hc,Mercator:pc,SphericalMercator:ee},Cs=i({},z,{code:"EPSG:3395",projection:pc,transformation:function(){var d=.5/(Math.PI*pc.R);return K(d,.5,-d,.5)}()}),ag=i({},z,{code:"EPSG:4326",projection:hc,transformation:K(1/180,1,-1/180,.5)}),u1=i({},ye,{projection:hc,transformation:K(1,0,-1,0),scale:function(d){return Math.pow(2,d)},zoom:function(d){return Math.log(d)/Math.LN2},distance:function(d,g){var A=g.lng-d.lng,D=g.lat-d.lat;return Math.sqrt(A*A+D*D)},infinite:!0});ye.Earth=z,ye.EPSG3395=Cs,ye.EPSG3857=se,ye.EPSG900913=de,ye.EPSG4326=ag,ye.Simple=u1;var si=B.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(d){return d.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(d){return d&&d.removeLayer(this),this},getPane:function(d){return this._map.getPane(d?this.options[d]||d:this.options.pane)},addInteractiveTarget:function(d){return this._map._targets[f(d)]=this,this},removeInteractiveTarget:function(d){return delete this._map._targets[f(d)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(d){var g=d.target;if(g.hasLayer(this)){if(this._map=g,this._zoomAnimated=g._zoomAnimated,this.getEvents){var A=this.getEvents();g.on(A,this),this.once("remove",function(){g.off(A,this)},this)}this.onAdd(g),this.fire("add"),g.fire("layeradd",{layer:this})}}});Ot.include({addLayer:function(d){if(!d._layerAdd)throw new Error("The provided object is not a Layer.");var g=f(d);return this._layers[g]?this:(this._layers[g]=d,d._mapToAdd=this,d.beforeAdd&&d.beforeAdd(this),this.whenReady(d._layerAdd,d),this)},removeLayer:function(d){var g=f(d);return this._layers[g]?(this._loaded&&d.onRemove(this),delete this._layers[g],this._loaded&&(this.fire("layerremove",{layer:d}),d.fire("remove")),d._map=d._mapToAdd=null,this):this},hasLayer:function(d){return f(d)in this._layers},eachLayer:function(d,g){for(var A in this._layers)d.call(g,this._layers[A]);return this},_addLayers:function(d){d=d?T(d)?d:[d]:[];for(var g=0,A=d.length;g<A;g++)this.addLayer(d[g])},_addZoomLimit:function(d){(!isNaN(d.options.maxZoom)||!isNaN(d.options.minZoom))&&(this._zoomBoundLayers[f(d)]=d,this._updateZoomLevels())},_removeZoomLimit:function(d){var g=f(d);this._zoomBoundLayers[g]&&(delete this._zoomBoundLayers[g],this._updateZoomLevels())},_updateZoomLevels:function(){var d=1/0,g=-1/0,A=this._getZoomSpan();for(var D in this._zoomBoundLayers){var G=this._zoomBoundLayers[D].options;d=G.minZoom===void 0?d:Math.min(d,G.minZoom),g=G.maxZoom===void 0?g:Math.max(g,G.maxZoom)}this._layersMaxZoom=g===-1/0?void 0:g,this._layersMinZoom=d===1/0?void 0:d,A!==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 So=si.extend({initialize:function(d,g){_(this,g),this._layers={};var A,D;if(d)for(A=0,D=d.length;A<D;A++)this.addLayer(d[A])},addLayer:function(d){var g=this.getLayerId(d);return this._layers[g]=d,this._map&&this._map.addLayer(d),this},removeLayer:function(d){var g=d in this._layers?d:this.getLayerId(d);return this._map&&this._layers[g]&&this._map.removeLayer(this._layers[g]),delete this._layers[g],this},hasLayer:function(d){var g=typeof d=="number"?d:this.getLayerId(d);return g in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(d){var g=Array.prototype.slice.call(arguments,1),A,D;for(A in this._layers)D=this._layers[A],D[d]&&D[d].apply(D,g);return this},onAdd:function(d){this.eachLayer(d.addLayer,d)},onRemove:function(d){this.eachLayer(d.removeLayer,d)},eachLayer:function(d,g){for(var A in this._layers)d.call(g,this._layers[A]);return this},getLayer:function(d){return this._layers[d]},getLayers:function(){var d=[];return this.eachLayer(d.push,d),d},setZIndex:function(d){return this.invoke("setZIndex",d)},getLayerId:function(d){return f(d)}}),og=function(d,g){return new So(d,g)},Mr=So.extend({addLayer:function(d){return this.hasLayer(d)?this:(d.addEventParent(this),So.prototype.addLayer.call(this,d),this.fire("layeradd",{layer:d}))},removeLayer:function(d){return this.hasLayer(d)?(d in this._layers&&(d=this._layers[d]),d.removeEventParent(this),So.prototype.removeLayer.call(this,d),this.fire("layerremove",{layer:d})):this},setStyle:function(d){return this.invoke("setStyle",d)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var d=new W;for(var g in this._layers){var A=this._layers[g];d.extend(A.getBounds?A.getBounds():A.getLatLng())}return d}}),Gl=function(d,g){return new Mr(d,g)},As=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(d){_(this,d)},createIcon:function(d){return this._createIcon("icon",d)},createShadow:function(d){return this._createIcon("shadow",d)},_createIcon:function(d,g){var A=this._getIconUrl(d);if(!A){if(d==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var D=this._createImg(A,g&&g.tagName==="IMG"?g:null);return this._setIconStyles(D,d),(this.options.crossOrigin||this.options.crossOrigin==="")&&(D.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),D},_setIconStyles:function(d,g){var A=this.options,D=A[g+"Size"];typeof D=="number"&&(D=[D,D]);var G=M(D),oe=M(g==="shadow"&&A.shadowAnchor||A.iconAnchor||G&&G.divideBy(2,!0));d.className="leaflet-marker-"+g+" "+(A.className||""),oe&&(d.style.marginLeft=-oe.x+"px",d.style.marginTop=-oe.y+"px"),G&&(d.style.width=G.x+"px",d.style.height=G.y+"px")},_createImg:function(d,g){return g=g||document.createElement("img"),g.src=d,g},_getIconUrl:function(d){return lt.retina&&this.options[d+"RetinaUrl"]||this.options[d+"Url"]}});function mc(d){return new As(d)}var Os=As.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(d){return typeof Os.imagePath!="string"&&(Os.imagePath=this._detectIconPath()),(this.options.imagePath||Os.imagePath)+As.prototype._getIconUrl.call(this,d)},_stripUrl:function(d){var g=function(A,D,G){var oe=D.exec(A);return oe&&oe[G]};return d=g(d,/^url\((['"])?(.+)\1\)$/,2),d&&g(d,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var d=Nt("div","leaflet-default-icon-path",document.body),g=mo(d,"background-image")||mo(d,"backgroundImage");if(document.body.removeChild(d),g=this._stripUrl(g),g)return g;var A=document.querySelector('link[href$="leaflet.css"]');return A?A.href.substring(0,A.href.length-11-1):""}}),zd=oi.extend({initialize:function(d){this._marker=d},addHooks:function(){var d=this._marker._icon;this._draggable||(this._draggable=new Ma(d,d,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),xt(d,"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&&an(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(d){var g=this._marker,A=g._map,D=this._marker.options.autoPanSpeed,G=this._marker.options.autoPanPadding,oe=Pa(g._icon),me=A.getPixelBounds(),Ce=A.getPixelOrigin(),Me=J(me.min._subtract(Ce).add(G),me.max._subtract(Ce).subtract(G));if(!Me.contains(oe)){var qe=M((Math.max(Me.max.x,oe.x)-Me.max.x)/(me.max.x-Me.max.x)-(Math.min(Me.min.x,oe.x)-Me.min.x)/(me.min.x-Me.min.x),(Math.max(Me.max.y,oe.y)-Me.max.y)/(me.max.y-Me.max.y)-(Math.min(Me.min.y,oe.y)-Me.min.y)/(me.min.y-Me.min.y)).multiplyBy(D);A.panBy(qe,{animate:!1}),this._draggable._newPos._add(qe),this._draggable._startPos._add(qe),Cn(g._icon,this._draggable._newPos),this._onDrag(d),this._panRequest=Y(this._adjustPan.bind(this,d))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(d){this._marker.options.autoPan&&(te(this._panRequest),this._panRequest=Y(this._adjustPan.bind(this,d)))},_onDrag:function(d){var g=this._marker,A=g._shadow,D=Pa(g._icon),G=g._map.layerPointToLatLng(D);A&&Cn(A,D),g._latlng=G,d.latlng=G,d.oldLatLng=this._oldLatLng,g.fire("move",d).fire("drag",d)},_onDragEnd:function(d){te(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",d)}}),Es=si.extend({options:{icon:new Os,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(d,g){_(this,g),this._latlng=ce(d)},onAdd:function(d){this._zoomAnimated=this._zoomAnimated&&d.options.markerZoomAnimation,this._zoomAnimated&&d.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(d){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&d.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(d){var g=this._latlng;return this._latlng=ce(d),this.update(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},setZIndexOffset:function(d){return this.options.zIndexOffset=d,this.update()},getIcon:function(){return this.options.icon},setIcon:function(d){return this.options.icon=d,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 d=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(d)}return this},_initIcon:function(){var d=this.options,g="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),A=d.icon.createIcon(this._icon),D=!1;A!==this._icon&&(this._icon&&this._removeIcon(),D=!0,d.title&&(A.title=d.title),A.tagName==="IMG"&&(A.alt=d.alt||"")),xt(A,g),d.keyboard&&(A.tabIndex="0",A.setAttribute("role","button")),this._icon=A,d.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(A,"focus",this._panOnFocus,this);var G=d.icon.createShadow(this._shadow),oe=!1;G!==this._shadow&&(this._removeShadow(),oe=!0),G&&(xt(G,g),G.alt=""),this._shadow=G,d.opacity<1&&this._updateOpacity(),D&&this.getPane().appendChild(this._icon),this._initInteraction(),G&&oe&&this.getPane(d.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&zt(this._icon,"focus",this._panOnFocus,this),rn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&rn(this._shadow),this._shadow=null},_setPos:function(d){this._icon&&Cn(this._icon,d),this._shadow&&Cn(this._shadow,d),this._zIndex=d.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(d){this._icon&&(this._icon.style.zIndex=this._zIndex+d)},_animateZoom:function(d){var g=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center).round();this._setPos(g)},_initInteraction:function(){if(this.options.interactive&&(xt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),zd)){var d=this.options.draggable;this.dragging&&(d=this.dragging.enabled(),this.dragging.disable()),this.dragging=new zd(this),d&&this.dragging.enable()}},setOpacity:function(d){return this.options.opacity=d,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var d=this.options.opacity;this._icon&&Sr(this._icon,d),this._shadow&&Sr(this._shadow,d)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var d=this._map;if(d){var g=this.options.icon.options,A=g.iconSize?M(g.iconSize):M(0,0),D=g.iconAnchor?M(g.iconAnchor):M(0,0);d.panInside(this._latlng,{paddingTopLeft:D,paddingBottomRight:A.subtract(D)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $d(d,g){return new Es(d,g)}var ta=si.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(d){this._renderer=d.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(d){return _(this,d),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&d&&Object.prototype.hasOwnProperty.call(d,"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)}}),Wl=ta.extend({options:{fill:!0,radius:10},initialize:function(d,g){_(this,g),this._latlng=ce(d),this._radius=this.options.radius},setLatLng:function(d){var g=this._latlng;return this._latlng=ce(d),this.redraw(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(d){return this.options.radius=this._radius=d,this.redraw()},getRadius:function(){return this._radius},setStyle:function(d){var g=d&&d.radius||this._radius;return ta.prototype.setStyle.call(this,d),this.setRadius(g),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var d=this._radius,g=this._radiusY||d,A=this._clickTolerance(),D=[d+A,g+A];this._pxBounds=new k(this._point.subtract(D),this._point.add(D))},_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(d){return d.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function sg(d,g){return new Wl(d,g)}var Fd=Wl.extend({initialize:function(d,g,A){if(typeof g=="number"&&(g=i({},A,{radius:g})),_(this,g),this._latlng=ce(d),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(d){return this._mRadius=d,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var d=[this._radius,this._radiusY||this._radius];return new W(this._map.layerPointToLatLng(this._point.subtract(d)),this._map.layerPointToLatLng(this._point.add(d)))},setStyle:ta.prototype.setStyle,_project:function(){var d=this._latlng.lng,g=this._latlng.lat,A=this._map,D=A.options.crs;if(D.distance===z.distance){var G=Math.PI/180,oe=this._mRadius/z.R/G,me=A.project([g+oe,d]),Ce=A.project([g-oe,d]),Me=me.add(Ce).divideBy(2),qe=A.unproject(Me).lat,Je=Math.acos((Math.cos(oe*G)-Math.sin(g*G)*Math.sin(qe*G))/(Math.cos(g*G)*Math.cos(qe*G)))/G;(isNaN(Je)||Je===0)&&(Je=oe/Math.cos(Math.PI/180*g)),this._point=Me.subtract(A.getPixelOrigin()),this._radius=isNaN(Je)?0:Me.x-A.project([qe,d-Je]).x,this._radiusY=Me.y-me.y}else{var rt=D.unproject(D.project(this._latlng).subtract([this._mRadius,0]));this._point=A.latLngToLayerPoint(this._latlng),this._radius=this._point.x-A.latLngToLayerPoint(rt).x}this._updateBounds()}});function c1(d,g,A){return new Fd(d,g,A)}var na=ta.extend({options:{smoothFactor:1,noClip:!1},initialize:function(d,g){_(this,g),this._setLatLngs(d)},getLatLngs:function(){return this._latlngs},setLatLngs:function(d){return this._setLatLngs(d),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(d){for(var g=1/0,A=null,D=wo,G,oe,me=0,Ce=this._parts.length;me<Ce;me++)for(var Me=this._parts[me],qe=1,Je=Me.length;qe<Je;qe++){G=Me[qe-1],oe=Me[qe];var rt=D(d,G,oe,!0);rt<g&&(g=rt,A=D(d,G,oe))}return A&&(A.distance=Math.sqrt(g)),A},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Bd(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(d,g){return g=g||this._defaultShape(),d=ce(d),g.push(d),this._bounds.extend(d),this.redraw()},_setLatLngs:function(d){this._bounds=new W,this._latlngs=this._convertLatLngs(d)},_defaultShape:function(){return tr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(d){for(var g=[],A=tr(d),D=0,G=d.length;D<G;D++)A?(g[D]=ce(d[D]),this._bounds.extend(g[D])):g[D]=this._convertLatLngs(d[D]);return g},_project:function(){var d=new k;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,d),this._bounds.isValid()&&d.isValid()&&(this._rawPxBounds=d,this._updateBounds())},_updateBounds:function(){var d=this._clickTolerance(),g=new U(d,d);this._rawPxBounds&&(this._pxBounds=new k([this._rawPxBounds.min.subtract(g),this._rawPxBounds.max.add(g)]))},_projectLatlngs:function(d,g,A){var D=d[0]instanceof fe,G=d.length,oe,me;if(D){for(me=[],oe=0;oe<G;oe++)me[oe]=this._map.latLngToLayerPoint(d[oe]),A.extend(me[oe]);g.push(me)}else for(oe=0;oe<G;oe++)this._projectLatlngs(d[oe],g,A)},_clipPoints:function(){var d=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}var g=this._parts,A,D,G,oe,me,Ce,Me;for(A=0,G=0,oe=this._rings.length;A<oe;A++)for(Me=this._rings[A],D=0,me=Me.length;D<me-1;D++)Ce=tg(Me[D],Me[D+1],d,D,!0),Ce&&(g[G]=g[G]||[],g[G].push(Ce[0]),(Ce[1]!==Me[D+1]||D===me-2)&&(g[G].push(Ce[1]),G++))}},_simplifyPoints:function(){for(var d=this._parts,g=this.options.smoothFactor,A=0,D=d.length;A<D;A++)d[A]=Jm(d[A],g)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(d,g){var A,D,G,oe,me,Ce,Me=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(A=0,oe=this._parts.length;A<oe;A++)for(Ce=this._parts[A],D=0,me=Ce.length,G=me-1;D<me;G=D++)if(!(!g&&D===0)&&Id(d,Ce[G],Ce[D])<=Me)return!0;return!1}});function f1(d,g){return new na(d,g)}na._flat=ng;var Ts=na.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 fc(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(d){var g=na.prototype._convertLatLngs.call(this,d),A=g.length;return A>=2&&g[0]instanceof fe&&g[0].equals(g[A-1])&&g.pop(),g},_setLatLngs:function(d){na.prototype._setLatLngs.call(this,d),tr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return tr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var d=this._renderer._bounds,g=this.options.weight,A=new U(g,g);if(d=new k(d.min.subtract(A),d.max.add(A)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}for(var D=0,G=this._rings.length,oe;D<G;D++)oe=Qm(this._rings[D],d,!0),oe.length&&this._parts.push(oe)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(d){var g=!1,A,D,G,oe,me,Ce,Me,qe;if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(oe=0,Me=this._parts.length;oe<Me;oe++)for(A=this._parts[oe],me=0,qe=A.length,Ce=qe-1;me<qe;Ce=me++)D=A[me],G=A[Ce],D.y>d.y!=G.y>d.y&&d.x<(G.x-D.x)*(d.y-D.y)/(G.y-D.y)+D.x&&(g=!g);return g||na.prototype._containsPoint.call(this,d,!0)}});function Nr(d,g){return new Ts(d,g)}var Lr=Mr.extend({initialize:function(d,g){_(this,g),this._layers={},d&&this.addData(d)},addData:function(d){var g=T(d)?d:d.features,A,D,G;if(g){for(A=0,D=g.length;A<D;A++)G=g[A],(G.geometries||G.geometry||G.features||G.coordinates)&&this.addData(G);return this}var oe=this.options;if(oe.filter&&!oe.filter(d))return this;var me=Yl(d,oe);return me?(me.feature=js(d),me.defaultOptions=me.options,this.resetStyle(me),oe.onEachFeature&&oe.onEachFeature(d,me),this.addLayer(me)):this},resetStyle:function(d){return d===void 0?this.eachLayer(this.resetStyle,this):(d.options=i({},d.defaultOptions),this._setLayerStyle(d,this.options.style),this)},setStyle:function(d){return this.eachLayer(function(g){this._setLayerStyle(g,d)},this)},_setLayerStyle:function(d,g){d.setStyle&&(typeof g=="function"&&(g=g(d.feature)),d.setStyle(g))}});function Yl(d,g){var A=d.type==="Feature"?d.geometry:d,D=A?A.coordinates:null,G=[],oe=g&&g.pointToLayer,me=g&&g.coordsToLatLng||gc,Ce,Me,qe,Je;if(!D&&!A)return null;switch(A.type){case"Point":return Ce=me(D),qd(oe,d,Ce,g);case"MultiPoint":for(qe=0,Je=D.length;qe<Je;qe++)Ce=me(D[qe]),G.push(qd(oe,d,Ce,g));return new Mr(G);case"LineString":case"MultiLineString":return Me=Kl(D,A.type==="LineString"?0:1,me),new na(Me,g);case"Polygon":case"MultiPolygon":return Me=Kl(D,A.type==="Polygon"?1:2,me),new Ts(Me,g);case"GeometryCollection":for(qe=0,Je=A.geometries.length;qe<Je;qe++){var rt=Yl({geometry:A.geometries[qe],type:"Feature",properties:d.properties},g);rt&&G.push(rt)}return new Mr(G);case"FeatureCollection":for(qe=0,Je=A.features.length;qe<Je;qe++){var at=Yl(A.features[qe],g);at&&G.push(at)}return new Mr(G);default:throw new Error("Invalid GeoJSON object.")}}function qd(d,g,A,D){return d?d(g,A):new Es(A,D&&D.markersInheritOptions&&D)}function gc(d){return new fe(d[1],d[0],d[2])}function Kl(d,g,A){for(var D=[],G=0,oe=d.length,me;G<oe;G++)me=g?Kl(d[G],g-1,A):(A||gc)(d[G]),D.push(me);return D}function Zl(d,g){return d=ce(d),d.alt!==void 0?[v(d.lng,g),v(d.lat,g),v(d.alt,g)]:[v(d.lng,g),v(d.lat,g)]}function vc(d,g,A,D){for(var G=[],oe=0,me=d.length;oe<me;oe++)G.push(g?vc(d[oe],tr(d[oe])?0:g-1,A,D):Zl(d[oe],D));return!g&&A&&G.length>0&&G.push(G[0].slice()),G}function li(d,g){return d.feature?i({},d.feature,{geometry:g}):js(g)}function js(d){return d.type==="Feature"||d.type==="FeatureCollection"?d:{type:"Feature",properties:{},geometry:d}}var Co={toGeoJSON:function(d){return li(this,{type:"Point",coordinates:Zl(this.getLatLng(),d)})}};Es.include(Co),Fd.include(Co),Wl.include(Co),na.include({toGeoJSON:function(d){var g=!tr(this._latlngs),A=vc(this._latlngs,g?1:0,!1,d);return li(this,{type:(g?"Multi":"")+"LineString",coordinates:A})}}),Ts.include({toGeoJSON:function(d){var g=!tr(this._latlngs),A=g&&!tr(this._latlngs[0]),D=vc(this._latlngs,A?2:g?1:0,!0,d);return g||(D=[D]),li(this,{type:(A?"Multi":"")+"Polygon",coordinates:D})}}),So.include({toMultiPoint:function(d){var g=[];return this.eachLayer(function(A){g.push(A.toGeoJSON(d).geometry.coordinates)}),li(this,{type:"MultiPoint",coordinates:g})},toGeoJSON:function(d){var g=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(g==="MultiPoint")return this.toMultiPoint(d);var A=g==="GeometryCollection",D=[];return this.eachLayer(function(G){if(G.toGeoJSON){var oe=G.toGeoJSON(d);if(A)D.push(oe.geometry);else{var me=js(oe);me.type==="FeatureCollection"?D.push.apply(D,me.features):D.push(me)}}}),A?li(this,{geometries:D,type:"GeometryCollection"}):{type:"FeatureCollection",features:D}}});function yc(d,g){return new Lr(d,g)}var lg=yc,Ii=si.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(d,g,A){this._url=d,this._bounds=ie(g),_(this,A)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(xt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){rn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(d){return this.options.opacity=d,this._image&&this._updateOpacity(),this},setStyle:function(d){return d.opacity&&this.setOpacity(d.opacity),this},bringToFront:function(){return this._map&&go(this._image),this},bringToBack:function(){return this._map&&ms(this._image),this},setUrl:function(d){return this._url=d,this._image&&(this._image.src=d),this},setBounds:function(d){return this._bounds=ie(d),this._map&&this._reset(),this},getEvents:function(){var d={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var d=this._url.tagName==="IMG",g=this._image=d?this._url:Nt("img");if(xt(g,"leaflet-image-layer"),this._zoomAnimated&&xt(g,"leaflet-zoom-animated"),this.options.className&&xt(g,this.options.className),g.onselectstart=m,g.onmousemove=m,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(),d){this._url=g.src;return}g.src=this._url,g.alt=this.options.alt},_animateZoom:function(d){var g=this._map.getZoomScale(d.zoom),A=this._map._latLngBoundsToNewLayerBounds(this._bounds,d.zoom,d.center).min;Kr(this._image,A,g)},_reset:function(){var d=this._image,g=new k(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),A=g.getSize();Cn(d,g.min),d.style.width=A.x+"px",d.style.height=A.y+"px"},_updateOpacity:function(){Sr(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 d=this.options.errorOverlayUrl;d&&this._url!==d&&(this._url=d,this._image.src=d)},getCenter:function(){return this._bounds.getCenter()}}),Ps=function(d,g,A){return new Ii(d,g,A)},bc=Ii.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var d=this._url.tagName==="VIDEO",g=this._image=d?this._url:Nt("video");if(xt(g,"leaflet-image-layer"),this._zoomAnimated&&xt(g,"leaflet-zoom-animated"),this.options.className&&xt(g,this.options.className),g.onselectstart=m,g.onmousemove=m,g.onloadeddata=s(this.fire,this,"load"),d){for(var A=g.getElementsByTagName("source"),D=[],G=0;G<A.length;G++)D.push(A[G].src);this._url=A.length>0?D:[g.src];return}T(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 oe=0;oe<this._url.length;oe++){var me=Nt("source");me.src=this._url[oe],g.appendChild(me)}}});function ug(d,g,A){return new bc(d,g,A)}var Na=Ii.extend({_initImage:function(){var d=this._image=this._url;xt(d,"leaflet-image-layer"),this._zoomAnimated&&xt(d,"leaflet-zoom-animated"),this.options.className&&xt(d,this.options.className),d.onselectstart=m,d.onmousemove=m}});function cg(d,g,A){return new Na(d,g,A)}var ui=si.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(d,g){d&&(d instanceof fe||T(d))?(this._latlng=ce(d),_(this,g)):(_(this,d),this._source=g),this.options.content&&(this._content=this.options.content)},openOn:function(d){return d=arguments.length?d:this._source._map,d.hasLayer(this)||d.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(d){return this._map?this.close():(arguments.length?this._source=d:d=this._source,this._prepareOpen(),this.openOn(d._map)),this},onAdd:function(d){this._zoomAnimated=d._zoomAnimated,this._container||this._initLayout(),d._fadeAnimated&&Sr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),d._fadeAnimated&&Sr(this._container,1),this.bringToFront(),this.options.interactive&&(xt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(d){d._fadeAnimated?(Sr(this._container,0),this._removeTimeout=setTimeout(s(rn,void 0,this._container),200)):rn(this._container),this.options.interactive&&(an(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(d){return this._latlng=ce(d),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(d){return this._content=d,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 d={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&go(this._container),this},bringToBack:function(){return this._map&&ms(this._container),this},_prepareOpen:function(d){var g=this._source;if(!g._map)return!1;if(g instanceof Mr){g=null;var A=this._source._layers;for(var D in A)if(A[D]._map){g=A[D];break}if(!g)return!1;this._source=g}if(!d)if(g.getCenter)d=g.getCenter();else if(g.getLatLng)d=g.getLatLng();else if(g.getBounds)d=g.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(d),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var d=this._contentNode,g=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof g=="string")d.innerHTML=g;else{for(;d.hasChildNodes();)d.removeChild(d.firstChild);d.appendChild(g)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var d=this._map.latLngToLayerPoint(this._latlng),g=M(this.options.offset),A=this._getAnchor();this._zoomAnimated?Cn(this._container,d.add(A)):g=g.add(d).add(A);var D=this._containerBottom=-g.y,G=this._containerLeft=-Math.round(this._containerWidth/2)+g.x;this._container.style.bottom=D+"px",this._container.style.left=G+"px"}},_getAnchor:function(){return[0,0]}});Ot.include({_initOverlay:function(d,g,A,D){var G=g;return G instanceof d||(G=new d(D).setContent(g)),A&&G.setLatLng(A),G}}),si.include({_initOverlay:function(d,g,A,D){var G=A;return G instanceof d?(_(G,D),G._source=this):(G=g&&!D?g:new d(D,this),G.setContent(A)),G}});var Xl=ui.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(d){return d=arguments.length?d:this._source._map,!d.hasLayer(this)&&d._popup&&d._popup.options.autoClose&&d.removeLayer(d._popup),d._popup=this,ui.prototype.openOn.call(this,d)},onAdd:function(d){ui.prototype.onAdd.call(this,d),d.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ta||this._source.on("preclick",ea))},onRemove:function(d){ui.prototype.onRemove.call(this,d),d.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ta||this._source.off("preclick",ea))},getEvents:function(){var d=ui.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(d.preclick=this.close),this.options.keepInView&&(d.moveend=this._adjustPan),d},_initLayout:function(){var d="leaflet-popup",g=this._container=Nt("div",d+" "+(this.options.className||"")+" leaflet-zoom-animated"),A=this._wrapper=Nt("div",d+"-content-wrapper",g);if(this._contentNode=Nt("div",d+"-content",A),ws(g),xs(this._contentNode),bt(g,"contextmenu",ea),this._tipContainer=Nt("div",d+"-tip-container",g),this._tip=Nt("div",d+"-tip",this._tipContainer),this.options.closeButton){var D=this._closeButton=Nt("a",d+"-close-button",g);D.setAttribute("role","button"),D.setAttribute("aria-label","Close popup"),D.href="#close",D.innerHTML='<span aria-hidden="true">×</span>',bt(D,"click",function(G){Tn(G),this.close()},this)}},_updateLayout:function(){var d=this._contentNode,g=d.style;g.width="",g.whiteSpace="nowrap";var A=d.offsetWidth;A=Math.min(A,this.options.maxWidth),A=Math.max(A,this.options.minWidth),g.width=A+1+"px",g.whiteSpace="",g.height="";var D=d.offsetHeight,G=this.options.maxHeight,oe="leaflet-popup-scrolled";G&&D>G?(g.height=G+"px",xt(d,oe)):an(d,oe),this._containerWidth=this._container.offsetWidth},_animateZoom:function(d){var g=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center),A=this._getAnchor();Cn(this._container,g.add(A))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var d=this._map,g=parseInt(mo(this._container,"marginBottom"),10)||0,A=this._container.offsetHeight+g,D=this._containerWidth,G=new U(this._containerLeft,-A-this._containerBottom);G._add(Pa(this._container));var oe=d.layerPointToContainerPoint(G),me=M(this.options.autoPanPadding),Ce=M(this.options.autoPanPaddingTopLeft||me),Me=M(this.options.autoPanPaddingBottomRight||me),qe=d.getSize(),Je=0,rt=0;oe.x+D+Me.x>qe.x&&(Je=oe.x+D-qe.x+Me.x),oe.x-Je-Ce.x<0&&(Je=oe.x-Ce.x),oe.y+A+Me.y>qe.y&&(rt=oe.y+A-qe.y+Me.y),oe.y-rt-Ce.y<0&&(rt=oe.y-Ce.y),(Je||rt)&&(this.options.keepInView&&(this._autopanning=!0),d.fire("autopanstart").panBy([Je,rt]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),d1=function(d,g){return new Xl(d,g)};Ot.mergeOptions({closePopupOnClick:!0}),Ot.include({openPopup:function(d,g,A){return this._initOverlay(Xl,d,g,A).openOn(this),this},closePopup:function(d){return d=arguments.length?d:this._popup,d&&d.close(),this}}),si.include({bindPopup:function(d,g){return this._popup=this._initOverlay(Xl,this._popup,d,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(d){return this._popup&&(this instanceof Mr||(this._popup._source=this),this._popup._prepareOpen(d||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(d){return this._popup&&this._popup.setContent(d),this},getPopup:function(){return this._popup},_openPopup:function(d){if(!(!this._popup||!this._map)){ki(d);var g=d.layer||d.target;if(this._popup._source===g&&!(g instanceof ta)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(d.latlng);return}this._popup._source=g,this.openPopup(d.latlng)}},_movePopup:function(d){this._popup.setLatLng(d.latlng)},_onKeyPress:function(d){d.originalEvent.keyCode===13&&this._openPopup(d)}});var _c=ui.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(d){ui.prototype.onAdd.call(this,d),this.setOpacity(this.options.opacity),d.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(d){ui.prototype.onRemove.call(this,d),d.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var d=ui.prototype.getEvents.call(this);return this.options.permanent||(d.preclick=this.close),d},_initLayout:function(){var d="leaflet-tooltip",g=d+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Nt("div",g),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(d){var g,A,D=this._map,G=this._container,oe=D.latLngToContainerPoint(D.getCenter()),me=D.layerPointToContainerPoint(d),Ce=this.options.direction,Me=G.offsetWidth,qe=G.offsetHeight,Je=M(this.options.offset),rt=this._getAnchor();Ce==="top"?(g=Me/2,A=qe):Ce==="bottom"?(g=Me/2,A=0):Ce==="center"?(g=Me/2,A=qe/2):Ce==="right"?(g=0,A=qe/2):Ce==="left"?(g=Me,A=qe/2):me.x<oe.x?(Ce="right",g=0,A=qe/2):(Ce="left",g=Me+(Je.x+rt.x)*2,A=qe/2),d=d.subtract(M(g,A,!0)).add(Je).add(rt),an(G,"leaflet-tooltip-right"),an(G,"leaflet-tooltip-left"),an(G,"leaflet-tooltip-top"),an(G,"leaflet-tooltip-bottom"),xt(G,"leaflet-tooltip-"+Ce),Cn(G,d)},_updatePosition:function(){var d=this._map.latLngToLayerPoint(this._latlng);this._setPosition(d)},setOpacity:function(d){this.options.opacity=d,this._container&&Sr(this._container,d)},_animateZoom:function(d){var g=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center);this._setPosition(g)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),h1=function(d,g){return new _c(d,g)};Ot.include({openTooltip:function(d,g,A){return this._initOverlay(_c,d,g,A).openOn(this),this},closeTooltip:function(d){return d.close(),this}}),si.include({bindTooltip:function(d,g){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(_c,this._tooltip,d,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(d){if(!(!d&&this._tooltipHandlersAdded)){var g=d?"off":"on",A={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?A.add=this._openTooltip:(A.mouseover=this._openTooltip,A.mouseout=this.closeTooltip,A.click=this._openTooltip,this._map?this._addFocusListeners():A.add=this._addFocusListeners),this._tooltip.options.sticky&&(A.mousemove=this._moveTooltip),this[g](A),this._tooltipHandlersAdded=!d}},openTooltip:function(d){return this._tooltip&&(this instanceof Mr||(this._tooltip._source=this),this._tooltip._prepareOpen(d)&&(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(d){return this._tooltip&&this._tooltip.setContent(d),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(d){var g=typeof d.getElement=="function"&&d.getElement();g&&(bt(g,"focus",function(){this._tooltip._source=d,this.openTooltip()},this),bt(g,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(d){var g=typeof d.getElement=="function"&&d.getElement();g&&g.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(d){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(d)});return}this._tooltip._source=d.layer||d.target,this.openTooltip(this._tooltip.options.sticky?d.latlng:void 0)}},_moveTooltip:function(d){var g=d.latlng,A,D;this._tooltip.options.sticky&&d.originalEvent&&(A=this._map.mouseEventToContainerPoint(d.originalEvent),D=this._map.containerPointToLayerPoint(A),g=this._map.layerPointToLatLng(D)),this._tooltip.setLatLng(g)}});var Vd=As.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(d){var g=d&&d.tagName==="DIV"?d:document.createElement("div"),A=this.options;if(A.html instanceof Element?(cr(g),g.appendChild(A.html)):g.innerHTML=A.html!==!1?A.html:"",A.bgPos){var D=M(A.bgPos);g.style.backgroundPosition=-D.x+"px "+-D.y+"px"}return this._setIconStyles(g,"icon"),g},createShadow:function(){return null}});function fg(d){return new Vd(d)}As.Default=Os;var Ao=si.extend({options:{tileSize:256,opacity:1,updateWhenIdle:lt.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(d){_(this,d)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(d){d._addZoomLimit(this)},onRemove:function(d){this._removeAllTiles(),rn(this._container),d._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(go(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ms(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(d){return this.options.opacity=d,this._updateOpacity(),this},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var d=this._clampZoom(this._map.getZoom());d!==this._tileZoom&&(this._tileZoom=d,this._updateLevels()),this._update()}return this},getEvents:function(){var d={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),d.move=this._onMove),this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},createTile:function(){return document.createElement("div")},getTileSize:function(){var d=this.options.tileSize;return d instanceof U?d:new U(d,d)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(d){for(var g=this.getPane().children,A=-d(-1/0,1/0),D=0,G=g.length,oe;D<G;D++)oe=g[D].style.zIndex,g[D]!==this._container&&oe&&(A=d(A,+oe));isFinite(A)&&(this.options.zIndex=A+d(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!lt.ielt9){Sr(this._container,this.options.opacity);var d=+new Date,g=!1,A=!1;for(var D in this._tiles){var G=this._tiles[D];if(!(!G.current||!G.loaded)){var oe=Math.min(1,(d-G.loaded)/200);Sr(G.el,oe),oe<1?g=!0:(G.active?A=!0:this._onOpaqueTile(G),G.active=!0)}}A&&!this._noPrune&&this._pruneTiles(),g&&(te(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=Nt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var d=this._tileZoom,g=this.options.maxZoom;if(d!==void 0){for(var A in this._levels)A=Number(A),this._levels[A].el.children.length||A===d?(this._levels[A].el.style.zIndex=g-Math.abs(d-A),this._onUpdateLevel(A)):(rn(this._levels[A].el),this._removeTilesAtZoom(A),this._onRemoveLevel(A),delete this._levels[A]);var D=this._levels[d],G=this._map;return D||(D=this._levels[d]={},D.el=Nt("div","leaflet-tile-container leaflet-zoom-animated",this._container),D.el.style.zIndex=g,D.origin=G.project(G.unproject(G.getPixelOrigin()),d).round(),D.zoom=d,this._setZoomTransform(D,G.getCenter(),G.getZoom()),m(D.el.offsetWidth),this._onCreateLevel(D)),this._level=D,D}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var d,g,A=this._map.getZoom();if(A>this.options.maxZoom||A<this.options.minZoom){this._removeAllTiles();return}for(d in this._tiles)g=this._tiles[d],g.retain=g.current;for(d in this._tiles)if(g=this._tiles[d],g.current&&!g.active){var D=g.coords;this._retainParent(D.x,D.y,D.z,D.z-5)||this._retainChildren(D.x,D.y,D.z,D.z+2)}for(d in this._tiles)this._tiles[d].retain||this._removeTile(d)}},_removeTilesAtZoom:function(d){for(var g in this._tiles)this._tiles[g].coords.z===d&&this._removeTile(g)},_removeAllTiles:function(){for(var d in this._tiles)this._removeTile(d)},_invalidateAll:function(){for(var d in this._levels)rn(this._levels[d].el),this._onRemoveLevel(Number(d)),delete this._levels[d];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(d,g,A,D){var G=Math.floor(d/2),oe=Math.floor(g/2),me=A-1,Ce=new U(+G,+oe);Ce.z=+me;var Me=this._tileCoordsToKey(Ce),qe=this._tiles[Me];return qe&&qe.active?(qe.retain=!0,!0):(qe&&qe.loaded&&(qe.retain=!0),me>D?this._retainParent(G,oe,me,D):!1)},_retainChildren:function(d,g,A,D){for(var G=2*d;G<2*d+2;G++)for(var oe=2*g;oe<2*g+2;oe++){var me=new U(G,oe);me.z=A+1;var Ce=this._tileCoordsToKey(me),Me=this._tiles[Ce];if(Me&&Me.active){Me.retain=!0;continue}else Me&&Me.loaded&&(Me.retain=!0);A+1<D&&this._retainChildren(G,oe,A+1,D)}},_resetView:function(d){var g=d&&(d.pinch||d.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),g,g)},_animateZoom:function(d){this._setView(d.center,d.zoom,!0,d.noUpdate)},_clampZoom:function(d){var g=this.options;return g.minNativeZoom!==void 0&&d<g.minNativeZoom?g.minNativeZoom:g.maxNativeZoom!==void 0&&g.maxNativeZoom<d?g.maxNativeZoom:d},_setView:function(d,g,A,D){var G=Math.round(g);this.options.maxZoom!==void 0&&G>this.options.maxZoom||this.options.minZoom!==void 0&&G<this.options.minZoom?G=void 0:G=this._clampZoom(G);var oe=this.options.updateWhenZooming&&G!==this._tileZoom;(!D||oe)&&(this._tileZoom=G,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),G!==void 0&&this._update(d),A||this._pruneTiles(),this._noPrune=!!A),this._setZoomTransforms(d,g)},_setZoomTransforms:function(d,g){for(var A in this._levels)this._setZoomTransform(this._levels[A],d,g)},_setZoomTransform:function(d,g,A){var D=this._map.getZoomScale(A,d.zoom),G=d.origin.multiplyBy(D).subtract(this._map._getNewPixelOrigin(g,A)).round();lt.any3d?Kr(d.el,G,D):Cn(d.el,G)},_resetGrid:function(){var d=this._map,g=d.options.crs,A=this._tileSize=this.getTileSize(),D=this._tileZoom,G=this._map.getPixelWorldBounds(this._tileZoom);G&&(this._globalTileRange=this._pxBoundsToTileRange(G)),this._wrapX=g.wrapLng&&!this.options.noWrap&&[Math.floor(d.project([0,g.wrapLng[0]],D).x/A.x),Math.ceil(d.project([0,g.wrapLng[1]],D).x/A.y)],this._wrapY=g.wrapLat&&!this.options.noWrap&&[Math.floor(d.project([g.wrapLat[0],0],D).y/A.x),Math.ceil(d.project([g.wrapLat[1],0],D).y/A.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(d){var g=this._map,A=g._animatingZoom?Math.max(g._animateToZoom,g.getZoom()):g.getZoom(),D=g.getZoomScale(A,this._tileZoom),G=g.project(d,this._tileZoom).floor(),oe=g.getSize().divideBy(D*2);return new k(G.subtract(oe),G.add(oe))},_update:function(d){var g=this._map;if(g){var A=this._clampZoom(g.getZoom());if(d===void 0&&(d=g.getCenter()),this._tileZoom!==void 0){var D=this._getTiledPixelBounds(d),G=this._pxBoundsToTileRange(D),oe=G.getCenter(),me=[],Ce=this.options.keepBuffer,Me=new k(G.getBottomLeft().subtract([Ce,-Ce]),G.getTopRight().add([Ce,-Ce]));if(!(isFinite(G.min.x)&&isFinite(G.min.y)&&isFinite(G.max.x)&&isFinite(G.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var qe in this._tiles){var Je=this._tiles[qe].coords;(Je.z!==this._tileZoom||!Me.contains(new U(Je.x,Je.y)))&&(this._tiles[qe].current=!1)}if(Math.abs(A-this._tileZoom)>1){this._setView(d,A);return}for(var rt=G.min.y;rt<=G.max.y;rt++)for(var at=G.min.x;at<=G.max.x;at++){var yt=new U(at,rt);if(yt.z=this._tileZoom,!!this._isValidTile(yt)){var on=this._tiles[this._tileCoordsToKey(yt)];on?on.current=!0:me.push(yt)}}if(me.sort(function(nr,Zr){return nr.distanceTo(oe)-Zr.distanceTo(oe)}),me.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var An=document.createDocumentFragment();for(at=0;at<me.length;at++)this._addTile(me[at],An);this._level.el.appendChild(An)}}}},_isValidTile:function(d){var g=this._map.options.crs;if(!g.infinite){var A=this._globalTileRange;if(!g.wrapLng&&(d.x<A.min.x||d.x>A.max.x)||!g.wrapLat&&(d.y<A.min.y||d.y>A.max.y))return!1}if(!this.options.bounds)return!0;var D=this._tileCoordsToBounds(d);return ie(this.options.bounds).overlaps(D)},_keyToBounds:function(d){return this._tileCoordsToBounds(this._keyToTileCoords(d))},_tileCoordsToNwSe:function(d){var g=this._map,A=this.getTileSize(),D=d.scaleBy(A),G=D.add(A),oe=g.unproject(D,d.z),me=g.unproject(G,d.z);return[oe,me]},_tileCoordsToBounds:function(d){var g=this._tileCoordsToNwSe(d),A=new W(g[0],g[1]);return this.options.noWrap||(A=this._map.wrapLatLngBounds(A)),A},_tileCoordsToKey:function(d){return d.x+":"+d.y+":"+d.z},_keyToTileCoords:function(d){var g=d.split(":"),A=new U(+g[0],+g[1]);return A.z=+g[2],A},_removeTile:function(d){var g=this._tiles[d];g&&(rn(g.el),delete this._tiles[d],this.fire("tileunload",{tile:g.el,coords:this._keyToTileCoords(d)}))},_initTile:function(d){xt(d,"leaflet-tile");var g=this.getTileSize();d.style.width=g.x+"px",d.style.height=g.y+"px",d.onselectstart=m,d.onmousemove=m,lt.ielt9&&this.options.opacity<1&&Sr(d,this.options.opacity)},_addTile:function(d,g){var A=this._getTilePos(d),D=this._tileCoordsToKey(d),G=this.createTile(this._wrapCoords(d),s(this._tileReady,this,d));this._initTile(G),this.createTile.length<2&&Y(s(this._tileReady,this,d,null,G)),Cn(G,A),this._tiles[D]={el:G,coords:d,current:!0},g.appendChild(G),this.fire("tileloadstart",{tile:G,coords:d})},_tileReady:function(d,g,A){g&&this.fire("tileerror",{error:g,tile:A,coords:d});var D=this._tileCoordsToKey(d);A=this._tiles[D],A&&(A.loaded=+new Date,this._map._fadeAnimated?(Sr(A.el,0),te(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(A.active=!0,this._pruneTiles()),g||(xt(A.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:A.el,coords:d})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),lt.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(d){return d.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(d){var g=new U(this._wrapX?p(d.x,this._wrapX):d.x,this._wrapY?p(d.y,this._wrapY):d.y);return g.z=d.z,g},_pxBoundsToTileRange:function(d){var g=this.getTileSize();return new k(d.min.unscaleBy(g).floor(),d.max.unscaleBy(g).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var d in this._tiles)if(!this._tiles[d].loaded)return!1;return!0}});function ci(d){return new Ao(d)}var Oo=Ao.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(d,g){this._url=d,g=_(this,g),g.detectRetina&<.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(d,g){return this._url===d&&g===void 0&&(g=!0),this._url=d,g||this.redraw(),this},createTile:function(d,g){var A=document.createElement("img");return bt(A,"load",s(this._tileOnLoad,this,g,A)),bt(A,"error",s(this._tileOnError,this,g,A)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(A.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(A.referrerPolicy=this.options.referrerPolicy),A.alt="",A.src=this.getTileUrl(d),A},getTileUrl:function(d){var g={r:lt.retina?"@2x":"",s:this._getSubdomain(d),x:d.x,y:d.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var A=this._globalTileRange.max.y-d.y;this.options.tms&&(g.y=A),g["-y"]=A}return O(this._url,i(g,this.options))},_tileOnLoad:function(d,g){lt.ielt9?setTimeout(s(d,this,null,g),0):d(null,g)},_tileOnError:function(d,g,A){var D=this.options.errorTileUrl;D&&g.getAttribute("src")!==D&&(g.src=D),d(A,g)},_onTileRemove:function(d){d.tile.onload=null},_getZoomForUrl:function(){var d=this._tileZoom,g=this.options.maxZoom,A=this.options.zoomReverse,D=this.options.zoomOffset;return A&&(d=g-d),d+D},_getSubdomain:function(d){var g=Math.abs(d.x+d.y)%this.options.subdomains.length;return this.options.subdomains[g]},_abortLoading:function(){var d,g;for(d in this._tiles)if(this._tiles[d].coords.z!==this._tileZoom&&(g=this._tiles[d].el,g.onload=m,g.onerror=m,!g.complete)){g.src=j;var A=this._tiles[d].coords;rn(g),delete this._tiles[d],this.fire("tileabort",{tile:g,coords:A})}},_removeTile:function(d){var g=this._tiles[d];if(g)return g.el.setAttribute("src",j),Ao.prototype._removeTile.call(this,d)},_tileReady:function(d,g,A){if(!(!this._map||A&&A.getAttribute("src")===j))return Ao.prototype._tileReady.call(this,d,g,A)}});function Dr(d,g){return new Oo(d,g)}var kr=Oo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(d,g){this._url=d;var A=i({},this.defaultWmsParams);for(var D in g)D in this.options||(A[D]=g[D]);g=_(this,g);var G=g.detectRetina&<.retina?2:1,oe=this.getTileSize();A.width=oe.x*G,A.height=oe.y*G,this.wmsParams=A},onAdd:function(d){this._crs=this.options.crs||d.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var g=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[g]=this._crs.code,Oo.prototype.onAdd.call(this,d)},getTileUrl:function(d){var g=this._tileCoordsToNwSe(d),A=this._crs,D=J(A.project(g[0]),A.project(g[1])),G=D.min,oe=D.max,me=(this._wmsVersion>=1.3&&this._crs===ag?[G.y,G.x,oe.y,oe.x]:[G.x,G.y,oe.x,oe.y]).join(","),Ce=Oo.prototype.getTileUrl.call(this,d);return Ce+S(this.wmsParams,Ce,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+me},setParams:function(d,g){return i(this.wmsParams,d),g||this.redraw(),this}});function Rs(d,g){return new kr(d,g)}Oo.WMS=kr,Dr.wms=Rs;var fi=si.extend({options:{padding:.1},initialize:function(d){_(this,d),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),xt(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 d={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(d.zoomanim=this._onAnimZoom),d},_onAnimZoom:function(d){this._updateTransform(d.center,d.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(d,g){var A=this._map.getZoomScale(g,this._zoom),D=this._map.getSize().multiplyBy(.5+this.options.padding),G=this._map.project(this._center,g),oe=D.multiplyBy(-A).add(G).subtract(this._map._getNewPixelOrigin(d,g));lt.any3d?Kr(this._container,oe,A):Cn(this._container,oe)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var d in this._layers)this._layers[d]._reset()},_onZoomEnd:function(){for(var d in this._layers)this._layers[d]._project()},_updatePaths:function(){for(var d in this._layers)this._layers[d]._update()},_update:function(){var d=this.options.padding,g=this._map.getSize(),A=this._map.containerPointToLayerPoint(g.multiplyBy(-d)).round();this._bounds=new k(A,A.add(g.multiplyBy(1+d*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ql=fi.extend({options:{tolerance:0},getEvents:function(){var d=fi.prototype.getEvents.call(this);return d.viewprereset=this._onViewPreReset,d},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){fi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var d=this._container=document.createElement("canvas");bt(d,"mousemove",this._onMouseMove,this),bt(d,"click dblclick mousedown mouseup contextmenu",this._onClick,this),bt(d,"mouseout",this._handleMouseOut,this),d._leaflet_disable_events=!0,this._ctx=d.getContext("2d")},_destroyContainer:function(){te(this._redrawRequest),delete this._ctx,rn(this._container),zt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var d;this._redrawBounds=null;for(var g in this._layers)d=this._layers[g],d._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){fi.prototype._update.call(this);var d=this._bounds,g=this._container,A=d.getSize(),D=lt.retina?2:1;Cn(g,d.min),g.width=D*A.x,g.height=D*A.y,g.style.width=A.x+"px",g.style.height=A.y+"px",lt.retina&&this._ctx.scale(2,2),this._ctx.translate(-d.min.x,-d.min.y),this.fire("update")}},_reset:function(){fi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(d){this._updateDashArray(d),this._layers[f(d)]=d;var g=d._order={layer:d,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=g),this._drawLast=g,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(d){this._requestRedraw(d)},_removePath:function(d){var g=d._order,A=g.next,D=g.prev;A?A.prev=D:this._drawLast=D,D?D.next=A:this._drawFirst=A,delete d._order,delete this._layers[f(d)],this._requestRedraw(d)},_updatePath:function(d){this._extendRedrawBounds(d),d._project(),d._update(),this._requestRedraw(d)},_updateStyle:function(d){this._updateDashArray(d),this._requestRedraw(d)},_updateDashArray:function(d){if(typeof d.options.dashArray=="string"){var g=d.options.dashArray.split(/[, ]+/),A=[],D,G;for(G=0;G<g.length;G++){if(D=Number(g[G]),isNaN(D))return;A.push(D)}d.options._dashArray=A}else d.options._dashArray=d.options.dashArray},_requestRedraw:function(d){this._map&&(this._extendRedrawBounds(d),this._redrawRequest=this._redrawRequest||Y(this._redraw,this))},_extendRedrawBounds:function(d){if(d._pxBounds){var g=(d.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new k,this._redrawBounds.extend(d._pxBounds.min.subtract([g,g])),this._redrawBounds.extend(d._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 d=this._redrawBounds;if(d){var g=d.getSize();this._ctx.clearRect(d.min.x,d.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 d,g=this._redrawBounds;if(this._ctx.save(),g){var A=g.getSize();this._ctx.beginPath(),this._ctx.rect(g.min.x,g.min.y,A.x,A.y),this._ctx.clip()}this._drawing=!0;for(var D=this._drawFirst;D;D=D.next)d=D.layer,(!g||d._pxBounds&&d._pxBounds.intersects(g))&&d._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(d,g){if(this._drawing){var A,D,G,oe,me=d._parts,Ce=me.length,Me=this._ctx;if(Ce){for(Me.beginPath(),A=0;A<Ce;A++){for(D=0,G=me[A].length;D<G;D++)oe=me[A][D],Me[D?"lineTo":"moveTo"](oe.x,oe.y);g&&Me.closePath()}this._fillStroke(Me,d)}}},_updateCircle:function(d){if(!(!this._drawing||d._empty())){var g=d._point,A=this._ctx,D=Math.max(Math.round(d._radius),1),G=(Math.max(Math.round(d._radiusY),1)||D)/D;G!==1&&(A.save(),A.scale(1,G)),A.beginPath(),A.arc(g.x,g.y/G,D,0,Math.PI*2,!1),G!==1&&A.restore(),this._fillStroke(A,d)}},_fillStroke:function(d,g){var A=g.options;A.fill&&(d.globalAlpha=A.fillOpacity,d.fillStyle=A.fillColor||A.color,d.fill(A.fillRule||"evenodd")),A.stroke&&A.weight!==0&&(d.setLineDash&&d.setLineDash(g.options&&g.options._dashArray||[]),d.globalAlpha=A.opacity,d.lineWidth=A.weight,d.strokeStyle=A.color,d.lineCap=A.lineCap,d.lineJoin=A.lineJoin,d.stroke())},_onClick:function(d){for(var g=this._map.mouseEventToLayerPoint(d),A,D,G=this._drawFirst;G;G=G.next)A=G.layer,A.options.interactive&&A._containsPoint(g)&&(!(d.type==="click"||d.type==="preclick")||!this._map._draggableMoved(A))&&(D=A);this._fireEvent(D?[D]:!1,d)},_onMouseMove:function(d){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var g=this._map.mouseEventToLayerPoint(d);this._handleMouseHover(d,g)}},_handleMouseOut:function(d){var g=this._hoveredLayer;g&&(an(this._container,"leaflet-interactive"),this._fireEvent([g],d,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(d,g){if(!this._mouseHoverThrottled){for(var A,D,G=this._drawFirst;G;G=G.next)A=G.layer,A.options.interactive&&A._containsPoint(g)&&(D=A);D!==this._hoveredLayer&&(this._handleMouseOut(d),D&&(xt(this._container,"leaflet-interactive"),this._fireEvent([D],d,"mouseover"),this._hoveredLayer=D)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,d),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(d,g,A){this._map._fireDOMEvent(g,A||g.type,d)},_bringToFront:function(d){var g=d._order;if(g){var A=g.next,D=g.prev;if(A)A.prev=D;else return;D?D.next=A:A&&(this._drawFirst=A),g.prev=this._drawLast,this._drawLast.next=g,g.next=null,this._drawLast=g,this._requestRedraw(d)}},_bringToBack:function(d){var g=d._order;if(g){var A=g.next,D=g.prev;if(D)D.next=A;else return;A?A.prev=D:D&&(this._drawLast=D),g.prev=null,g.next=this._drawFirst,this._drawFirst.prev=g,this._drawFirst=g,this._requestRedraw(d)}}});function Jl(d){return lt.canvas?new Ql(d):null}var Eo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(d){return document.createElement("<lvml:"+d+' class="lvml">')}}catch{}return function(d){return document.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ms={_initContainer:function(){this._container=Nt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(fi.prototype._update.call(this),this.fire("update"))},_initPath:function(d){var g=d._container=Eo("shape");xt(g,"leaflet-vml-shape "+(this.options.className||"")),g.coordsize="1 1",d._path=Eo("path"),g.appendChild(d._path),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){var g=d._container;this._container.appendChild(g),d.options.interactive&&d.addInteractiveTarget(g)},_removePath:function(d){var g=d._container;rn(g),d.removeInteractiveTarget(g),delete this._layers[f(d)]},_updateStyle:function(d){var g=d._stroke,A=d._fill,D=d.options,G=d._container;G.stroked=!!D.stroke,G.filled=!!D.fill,D.stroke?(g||(g=d._stroke=Eo("stroke")),G.appendChild(g),g.weight=D.weight+"px",g.color=D.color,g.opacity=D.opacity,D.dashArray?g.dashStyle=T(D.dashArray)?D.dashArray.join(" "):D.dashArray.replace(/( *, *)/g," "):g.dashStyle="",g.endcap=D.lineCap.replace("butt","flat"),g.joinstyle=D.lineJoin):g&&(G.removeChild(g),d._stroke=null),D.fill?(A||(A=d._fill=Eo("fill")),G.appendChild(A),A.color=D.fillColor||D.color,A.opacity=D.fillOpacity):A&&(G.removeChild(A),d._fill=null)},_updateCircle:function(d){var g=d._point.round(),A=Math.round(d._radius),D=Math.round(d._radiusY||A);this._setPath(d,d._empty()?"M0 0":"AL "+g.x+","+g.y+" "+A+","+D+" 0,"+65535*360)},_setPath:function(d,g){d._path.v=g},_bringToFront:function(d){go(d._container)},_bringToBack:function(d){ms(d._container)}},eu=lt.vml?Eo:ve,La=fi.extend({_initContainer:function(){this._container=eu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=eu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){rn(this._container),zt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){fi.prototype._update.call(this);var d=this._bounds,g=d.getSize(),A=this._container;(!this._svgSize||!this._svgSize.equals(g))&&(this._svgSize=g,A.setAttribute("width",g.x),A.setAttribute("height",g.y)),Cn(A,d.min),A.setAttribute("viewBox",[d.min.x,d.min.y,g.x,g.y].join(" ")),this.fire("update")}},_initPath:function(d){var g=d._path=eu("path");d.options.className&&xt(g,d.options.className),d.options.interactive&&xt(g,"leaflet-interactive"),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(d._path),d.addInteractiveTarget(d._path)},_removePath:function(d){rn(d._path),d.removeInteractiveTarget(d._path),delete this._layers[f(d)]},_updatePath:function(d){d._project(),d._update()},_updateStyle:function(d){var g=d._path,A=d.options;g&&(A.stroke?(g.setAttribute("stroke",A.color),g.setAttribute("stroke-opacity",A.opacity),g.setAttribute("stroke-width",A.weight),g.setAttribute("stroke-linecap",A.lineCap),g.setAttribute("stroke-linejoin",A.lineJoin),A.dashArray?g.setAttribute("stroke-dasharray",A.dashArray):g.removeAttribute("stroke-dasharray"),A.dashOffset?g.setAttribute("stroke-dashoffset",A.dashOffset):g.removeAttribute("stroke-dashoffset")):g.setAttribute("stroke","none"),A.fill?(g.setAttribute("fill",A.fillColor||A.color),g.setAttribute("fill-opacity",A.fillOpacity),g.setAttribute("fill-rule",A.fillRule||"evenodd")):g.setAttribute("fill","none"))},_updatePoly:function(d,g){this._setPath(d,he(d._parts,g))},_updateCircle:function(d){var g=d._point,A=Math.max(Math.round(d._radius),1),D=Math.max(Math.round(d._radiusY),1)||A,G="a"+A+","+D+" 0 1,0 ",oe=d._empty()?"M0 0":"M"+(g.x-A)+","+g.y+G+A*2+",0 "+G+-A*2+",0 ";this._setPath(d,oe)},_setPath:function(d,g){d._path.setAttribute("d",g)},_bringToFront:function(d){go(d._path)},_bringToBack:function(d){ms(d._path)}});lt.vml&&La.include(Ms);function To(d){return lt.svg||lt.vml?new La(d):null}Ot.include({getRenderer:function(d){var g=d.options.renderer||this._getPaneRenderer(d.options.pane)||this.options.renderer||this._renderer;return g||(g=this._renderer=this._createRenderer()),this.hasLayer(g)||this.addLayer(g),g},_getPaneRenderer:function(d){if(d==="overlayPane"||d===void 0)return!1;var g=this._paneRenderers[d];return g===void 0&&(g=this._createRenderer({pane:d}),this._paneRenderers[d]=g),g},_createRenderer:function(d){return this.options.preferCanvas&&Jl(d)||To(d)}});var dg=Ts.extend({initialize:function(d,g){Ts.prototype.initialize.call(this,this._boundsToLatLngs(d),g)},setBounds:function(d){return this.setLatLngs(this._boundsToLatLngs(d))},_boundsToLatLngs:function(d){return d=ie(d),[d.getSouthWest(),d.getNorthWest(),d.getNorthEast(),d.getSouthEast()]}});function Ir(d,g){return new dg(d,g)}La.create=eu,La.pointsToPath=he,Lr.geometryToLayer=Yl,Lr.coordsToLatLng=gc,Lr.coordsToLatLngs=Kl,Lr.latLngToCoords=Zl,Lr.latLngsToCoords=vc,Lr.getFeature=li,Lr.asFeature=js,Ot.mergeOptions({boxZoom:!0});var xc=oi.extend({initialize:function(d){this._map=d,this._container=d._container,this._pane=d._panes.overlayPane,this._resetStateTimeout=0,d.on("unload",this._destroy,this)},addHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){zt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){rn(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(d){if(!d.shiftKey||d.which!==1&&d.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ni(),$l(),this._startPoint=this._map.mouseEventToContainerPoint(d),bt(document,{contextmenu:ki,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(d){this._moved||(this._moved=!0,this._box=Nt("div","leaflet-zoom-box",this._container),xt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(d);var g=new k(this._point,this._startPoint),A=g.getSize();Cn(this._box,g.min),this._box.style.width=A.x+"px",this._box.style.height=A.y+"px"},_finish:function(){this._moved&&(rn(this._box),an(this._container,"leaflet-crosshair")),zl(),Rd(),zt(document,{contextmenu:ki,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(d){if(!(d.which!==1&&d.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var g=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(g).fire("boxzoomend",{boxZoomBounds:g})}},_onKeyDown:function(d){d.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ot.addInitHook("addHandler","boxZoom",xc),Ot.mergeOptions({doubleClickZoom:!0});var Ui=oi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(d){var g=this._map,A=g.getZoom(),D=g.options.zoomDelta,G=d.originalEvent.shiftKey?A-D:A+D;g.options.doubleClickZoom==="center"?g.setZoom(G):g.setZoomAround(d.containerPoint,G)}});Ot.addInitHook("addHandler","doubleClickZoom",Ui),Ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Hd=oi.extend({addHooks:function(){if(!this._draggable){var d=this._map;this._draggable=new Ma(d._mapPane,d._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),d.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),d.on("zoomend",this._onZoomEnd,this),d.whenReady(this._onZoomEnd,this))}xt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){an(this._map._container,"leaflet-grab"),an(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 d=this._map;if(d._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var g=ie(this._map.options.maxBounds);this._offsetLimit=J(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;d.fire("movestart").fire("dragstart"),d.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(d){if(this._map.options.inertia){var g=this._lastTime=+new Date,A=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(A),this._times.push(g),this._prunePositions(g)}this._map.fire("move",d).fire("drag",d)},_prunePositions:function(d){for(;this._positions.length>1&&d-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var d=this._map.getSize().divideBy(2),g=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=g.subtract(d).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(d,g){return d-(d-g)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var d=this._draggable._newPos.subtract(this._draggable._startPos),g=this._offsetLimit;d.x<g.min.x&&(d.x=this._viscousLimit(d.x,g.min.x)),d.y<g.min.y&&(d.y=this._viscousLimit(d.y,g.min.y)),d.x>g.max.x&&(d.x=this._viscousLimit(d.x,g.max.x)),d.y>g.max.y&&(d.y=this._viscousLimit(d.y,g.max.y)),this._draggable._newPos=this._draggable._startPos.add(d)}},_onPreDragWrap:function(){var d=this._worldWidth,g=Math.round(d/2),A=this._initialWorldOffset,D=this._draggable._newPos.x,G=(D-g+A)%d+g-A,oe=(D+g+A)%d-g-A,me=Math.abs(G+A)<Math.abs(oe+A)?G:oe;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=me},_onDragEnd:function(d){var g=this._map,A=g.options,D=!A.inertia||d.noInertia||this._times.length<2;if(g.fire("dragend",d),D)g.fire("moveend");else{this._prunePositions(+new Date);var G=this._lastPos.subtract(this._positions[0]),oe=(this._lastTime-this._times[0])/1e3,me=A.easeLinearity,Ce=G.multiplyBy(me/oe),Me=Ce.distanceTo([0,0]),qe=Math.min(A.inertiaMaxSpeed,Me),Je=Ce.multiplyBy(qe/Me),rt=qe/(A.inertiaDeceleration*me),at=Je.multiplyBy(-rt/2).round();!at.x&&!at.y?g.fire("moveend"):(at=g._limitOffset(at,g.options.maxBounds),Y(function(){g.panBy(at,{duration:rt,easeLinearity:me,noMoveStart:!0,animate:!0})}))}}});Ot.addInitHook("addHandler","dragging",Hd),Ot.mergeOptions({keyboard:!0,keyboardPanDelta:80});var tu=oi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(d){this._map=d,this._setPanDelta(d.options.keyboardPanDelta),this._setZoomDelta(d.options.zoomDelta)},addHooks:function(){var d=this._map._container;d.tabIndex<=0&&(d.tabIndex="0"),bt(d,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),zt(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 d=document.body,g=document.documentElement,A=d.scrollTop||g.scrollTop,D=d.scrollLeft||g.scrollLeft;this._map._container.focus(),window.scrollTo(D,A)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(d){var g=this._panKeys={},A=this.keyCodes,D,G;for(D=0,G=A.left.length;D<G;D++)g[A.left[D]]=[-1*d,0];for(D=0,G=A.right.length;D<G;D++)g[A.right[D]]=[d,0];for(D=0,G=A.down.length;D<G;D++)g[A.down[D]]=[0,d];for(D=0,G=A.up.length;D<G;D++)g[A.up[D]]=[0,-1*d]},_setZoomDelta:function(d){var g=this._zoomKeys={},A=this.keyCodes,D,G;for(D=0,G=A.zoomIn.length;D<G;D++)g[A.zoomIn[D]]=d;for(D=0,G=A.zoomOut.length;D<G;D++)g[A.zoomOut[D]]=-d},_addHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){zt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(d){if(!(d.altKey||d.ctrlKey||d.metaKey)){var g=d.keyCode,A=this._map,D;if(g in this._panKeys){if(!A._panAnim||!A._panAnim._inProgress)if(D=this._panKeys[g],d.shiftKey&&(D=M(D).multiplyBy(3)),A.options.maxBounds&&(D=A._limitOffset(M(D),A.options.maxBounds)),A.options.worldCopyJump){var G=A.wrapLatLng(A.unproject(A.project(A.getCenter()).add(D)));A.panTo(G)}else A.panBy(D)}else if(g in this._zoomKeys)A.setZoom(A.getZoom()+(d.shiftKey?3:1)*this._zoomKeys[g]);else if(g===27&&A._popup&&A._popup.options.closeOnEscapeKey)A.closePopup();else return;ki(d)}}});Ot.addInitHook("addHandler","keyboard",tu),Ot.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Da=oi.extend({addHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){zt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(d){var g=Vl(d),A=this._map.options.wheelDebounceTime;this._delta+=g,this._lastMousePos=this._map.mouseEventToContainerPoint(d),this._startTime||(this._startTime=+new Date);var D=Math.max(A-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),D),ki(d)},_performZoom:function(){var d=this._map,g=d.getZoom(),A=this._map.options.zoomSnap||0;d._stop();var D=this._delta/(this._map.options.wheelPxPerZoomLevel*4),G=4*Math.log(2/(1+Math.exp(-Math.abs(D))))/Math.LN2,oe=A?Math.ceil(G/A)*A:G,me=d._limitZoom(g+(this._delta>0?oe:-oe))-g;this._delta=0,this._startTime=null,me&&(d.options.scrollWheelZoom==="center"?d.setZoom(g+me):d.setZoomAround(this._lastMousePos,g+me))}});Ot.addInitHook("addHandler","scrollWheelZoom",Da);var Gd=600;Ot.mergeOptions({tapHold:lt.touchNative&<.safari&<.mobile,tapTolerance:15});var wc=oi.extend({addHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){zt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(d){if(clearTimeout(this._holdTimeout),d.touches.length===1){var g=d.touches[0];this._startPos=this._newPos=new U(g.clientX,g.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(bt(document,"touchend",Tn),bt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",g))},this),Gd),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function d(){zt(document,"touchend",Tn),zt(document,"touchend touchcancel",d)},_cancel:function(){clearTimeout(this._holdTimeout),zt(document,"touchend touchcancel contextmenu",this._cancel,this),zt(document,"touchmove",this._onMove,this)},_onMove:function(d){var g=d.touches[0];this._newPos=new U(g.clientX,g.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(d,g){var A=new MouseEvent(d,{bubbles:!0,cancelable:!0,view:window,screenX:g.screenX,screenY:g.screenY,clientX:g.clientX,clientY:g.clientY});A._simulated=!0,g.target.dispatchEvent(A)}});Ot.addInitHook("addHandler","tapHold",wc),Ot.mergeOptions({touchZoom:lt.touch,bounceAtZoomLimits:!0});var jo=oi.extend({addHooks:function(){xt(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){an(this._map._container,"leaflet-touch-zoom"),zt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(d){var g=this._map;if(!(!d.touches||d.touches.length!==2||g._animatingZoom||this._zooming)){var A=g.mouseEventToContainerPoint(d.touches[0]),D=g.mouseEventToContainerPoint(d.touches[1]);this._centerPoint=g.getSize()._divideBy(2),this._startLatLng=g.containerPointToLatLng(this._centerPoint),g.options.touchZoom!=="center"&&(this._pinchStartLatLng=g.containerPointToLatLng(A.add(D)._divideBy(2))),this._startDist=A.distanceTo(D),this._startZoom=g.getZoom(),this._moved=!1,this._zooming=!0,g._stop(),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),Tn(d)}},_onTouchMove:function(d){if(!(!d.touches||d.touches.length!==2||!this._zooming)){var g=this._map,A=g.mouseEventToContainerPoint(d.touches[0]),D=g.mouseEventToContainerPoint(d.touches[1]),G=A.distanceTo(D)/this._startDist;if(this._zoom=g.getScaleZoom(G,this._startZoom),!g.options.bounceAtZoomLimits&&(this._zoom<g.getMinZoom()&&G<1||this._zoom>g.getMaxZoom()&&G>1)&&(this._zoom=g._limitZoom(this._zoom)),g.options.touchZoom==="center"){if(this._center=this._startLatLng,G===1)return}else{var oe=A._add(D)._divideBy(2)._subtract(this._centerPoint);if(G===1&&oe.x===0&&oe.y===0)return;this._center=g.unproject(g.project(this._pinchStartLatLng,this._zoom).subtract(oe),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=Y(me,this,!0),Tn(d)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,te(this._animRequest),zt(document,"touchmove",this._onTouchMove,this),zt(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",jo),Ot.BoxZoom=xc,Ot.DoubleClickZoom=Ui,Ot.Drag=Hd,Ot.Keyboard=tu,Ot.ScrollWheelZoom=Da,Ot.TapHold=wc,Ot.TouchZoom=jo,n.Bounds=k,n.Browser=lt,n.CRS=ye,n.Canvas=Ql,n.Circle=Fd,n.CircleMarker=Wl,n.Class=Q,n.Control=Cr,n.DivIcon=Vd,n.DivOverlay=ui,n.DomEvent=Qb,n.DomUtil=Ym,n.Draggable=Ma,n.Evented=B,n.FeatureGroup=Mr,n.GeoJSON=Lr,n.GridLayer=Ao,n.Handler=oi,n.Icon=As,n.ImageOverlay=Ii,n.LatLng=fe,n.LatLngBounds=W,n.Layer=si,n.LayerGroup=So,n.LineUtil=rg,n.Map=Ot,n.Marker=Es,n.Mixin=r1,n.Path=ta,n.Point=U,n.PolyUtil=i1,n.Polygon=Ts,n.Polyline=na,n.Popup=Xl,n.PosAnimation=cc,n.Projection=ig,n.Rectangle=dg,n.Renderer=fi,n.SVG=La,n.SVGOverlay=Na,n.TileLayer=Oo,n.Tooltip=_c,n.Transformation=ue,n.Util=ae,n.VideoOverlay=bc,n.bind=s,n.bounds=J,n.canvas=Jl,n.circle=c1,n.circleMarker=sg,n.control=Ss,n.divIcon=fg,n.extend=i,n.featureGroup=Gl,n.geoJSON=yc,n.geoJson=lg,n.gridLayer=ci,n.icon=mc,n.imageOverlay=Ps,n.latLng=ce,n.latLngBounds=ie,n.layerGroup=og,n.map=Hl,n.marker=$d,n.point=M,n.polygon=Nr,n.polyline=f1,n.popup=d1,n.rectangle=Ir,n.setOptions=_,n.stamp=f,n.svg=To,n.svgOverlay=cg,n.tileLayer=Dr,n.tooltip=h1,n.transformation=K,n.version=r,n.videoOverlay=ug;var Ns=window.L;n.noConflict=function(){return window.L=Ns,this},window.L=n})}(np,np.exports)),np.exports}var km=l_e();const N8=qt(km);function r3(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function i3(e,t){return t==null?function(r,i){const a=I.useRef(void 0);return a.current||(a.current=e(r,i)),a}:function(r,i){const a=I.useRef(void 0);a.current||(a.current=e(r,i));const s=I.useRef(r),{instance:u}=a.current;return I.useEffect(function(){s.current!==r&&(t(u,r,s.current),s.current=r)},[u,r,t]),a}}function u_e(e,t){I.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var a;(a=t.layerContainer)==null||a.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function W$(e){return function(n){const r=H$(),i=e(n3(n,r),r);return V$(r.map,n.attribution),G$(i.current,n.eventHandlers),u_e(i.current,r),i}}function c_e(e,t){const n=i3(e,t),r=W$(n);return r_e(r)}function f_e(e,t){const n=i3(e),r=o_e(n,t);return i_e(r)}function d_e(e,t){const n=i3(e,t),r=W$(n);return a_e(r)}function h_e(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 p_e({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:s,style:u,whenReady:f,zoom:c,...p},m){const[v]=I.useState({className:i,id:a,style:u}),[x,w]=I.useState(null),_=I.useRef(void 0);I.useImperativeHandle(m,()=>(x==null?void 0:x.map)??null,[x]);const S=I.useCallback(O=>{if(O!==null&&!_.current){const T=new km.Map(O,p);_.current=T,n!=null&&c!=null?T.setView(n,c):e!=null&&T.fitBounds(e,t),f!=null&&T.whenReady(f),w(t_e(T))}},[]);I.useEffect(()=>()=>{x==null||x.map.remove()},[x]);const C=x?pe.createElement(t3,{value:x},r):s??null;return pe.createElement("div",{...v,ref:S},C)}const m_e=I.forwardRef(p_e),g_e=c_e(function({position:t,...n},r){const i=new km.Marker(t,n);return r3(i,n_e(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())}),v_e=f_e(function(t,n){const r=new km.Popup(t,n.overlayContainer);return r3(r,n)},function(t,n,{position:r},i){I.useEffect(function(){const{instance:s}=t;function u(c){c.popup===s&&(s.update(),i(!0))}function f(c){c.popup===s&&i(!1)}return n.map.on({popupopen:u,popupclose:f}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var p;n.map.off({popupopen:u,popupclose:f}),(p=n.overlayContainer)==null||p.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),y_e=d_e(function({url:t,...n},r){const i=new km.TileLayer(t,n3(n,r));return r3(i,r)},function(t,n,r){h_e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),b_e={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Y$={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},In={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Br={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"},ol={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Ve{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=Ve.getVersionPrecision(t),a=Ve.getVersionPrecision(n);let s=Math.max(i,a),u=0;const f=Ve.map([t,n],c=>{const p=s-Ve.getVersionPrecision(c),m=c+new Array(p+1).join(".0");return Ve.map(m.split("."),v=>new Array(20-v.length).join("0")+v).reverse()});for(r&&(u=s-Math.min(i,a)),s-=1;s>=u;){if(f[0][s]>f[1][s])return 1;if(f[0][s]===f[1][s]){if(s===u)return 0;s-=1}else if(f[0][s]<f[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 a=t[r];if(n(a,r))return a}}static assign(t,...n){const r=t;let i,a;if(Object.assign)return Object.assign(t,...n);for(i=0,a=n.length;i<a;i+=1){const s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(f=>{r[f]=s[f]})}return t}static getBrowserAlias(t){return b_e[t]}static getBrowserTypeByAlias(t){return Y$[t]||""}}const Jt=/version\/(\d+(\.?_?\d+)+)/i,__e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Ve.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Ve.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Ve.getFirstMatch(Jt,e)||Ve.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=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Ve.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Ve.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Ve.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Ve.getFirstMatch(Jt,e)||Ve.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=Ve.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Ve.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Ve.getFirstMatch(Jt,e)||Ve.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=Ve.getFirstMatch(Jt,e)||Ve.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Ve.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,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=Ve.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Ve.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Ve.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=Ve.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Ve.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Ve.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Ve.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=Ve.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Ve.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Ve.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=Ve.getFirstMatch(Jt,e)||Ve.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=Ve.getFirstMatch(Jt,e)||Ve.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=Ve.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Ve.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Ve.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Ve.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=Ve.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Ve.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Ve.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Ve.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=Ve.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=Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Ve.getFirstMatch(Jt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Ve.getFirstMatch(i,e),version:Ve.getSecondMatch(i,e)}}}],x_e=[{test:[/Roku\/DVP/],describe(e){const t=Ve.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Br.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ve.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Br.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Ve.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Ve.getWindowsVersionName(t);return{name:Br.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Br.iOS},n=Ve.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Ve.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Ve.getMacOSVersionName(t),r={name:Br.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Ve.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Br.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Ve.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Ve.getAndroidVersionName(t),r={name:Br.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Ve.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Br.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Ve.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Ve.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Ve.getFirstMatch(/\bbb(\d+)/i,e);return{name:Br.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ve.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Br.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ve.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Br.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Br.Linux}}},{test:[/CrOS/],describe(){return{name:Br.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ve.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Br.PlayStation4,version:t}}}],w_e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ve.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:In.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:In.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:In.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:In.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:In.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Ve.getFirstMatch(/(ipod|iphone)/i,e);return{type:In.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:In.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:In.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:In.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:In.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:In.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:In.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:In.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:In.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:In.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:In.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:In.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:In.tv}}}],S_e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ol.Blink};const n=Ve.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ol.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:ol.Trident},n=Ve.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:ol.Presto},n=Ve.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:ol.Gecko},n=Ve.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ol.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:ol.WebKit},n=Ve.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class L8{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=Ve.find(__e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Ve.find(x_e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Ve.find(w_e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Ve.find(S_e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Ve.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(u=>{const f=t[u];typeof f=="string"?(i[u]=f,a+=1):typeof f=="object"&&(n[u]=f,r+=1)}),r>0){const u=Object.keys(n),f=Ve.find(u,p=>this.isOS(p));if(f){const p=this.satisfies(n[f]);if(p!==void 0)return p}const c=Ve.find(u,p=>this.isPlatform(p));if(c){const p=this.satisfies(n[c]);if(p!==void 0)return p}}if(a>0){const u=Object.keys(i),f=Ve.find(u,c=>this.isBrowser(c,!0));if(f!==void 0)return this.compareVersion(i[f])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=Ve.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="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(Ve.compareVersions(a,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 C_e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new L8(t,n)}static parse(t){return new L8(t).getResult()}static get BROWSER_MAP(){return Y$}static get ENGINE_MAP(){return ol}static get OS_MAP(){return Br}static get PLATFORMS_MAP(){return In}}var A_e=Object.defineProperty,O_e=(e,t,n)=>t in e?A_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yl=(e,t,n)=>O_e(e,typeof t!="symbol"?t+"":t,n);const E_e=e=>(e==null?void 0:e.type)===HE.INVALID_ARGUMENT,T_e=e=>(e==null?void 0:e.type)===HE.INVALID_SHORT_URL_DELETION,j_e=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Ri=e=>j_e(e)?e:void 0,a3=e=>"error"in e,eo=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[(e==null?void 0:e.detail)??t,E_e(e)&&y.jsxs("p",{children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),K$=I.createContext(""),P_e=K$.Provider,us=()=>I.useContext(K$),Z$=I.createContext(void 0),{Provider:o3}=Z$,$b=()=>I.useContext(Z$),R_e=5,s3=()=>{const[e,t]=I.useState([]),n=I.useMemo(()=>e.length>=R_e,[e.length]),r=I.useCallback(u=>!n&&t(f=>[...f,u]),[n]),i=I.useCallback(u=>!n&&e.every(f=>f.name!==u),[e,n]),a=I.useCallback(u=>t(f=>f.filter(c=>c!==u)),[]),s=I.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:a,clearItemsToCompare:s,canAddItemWithName:i}},l3=({className:e,type:t})=>{const n=us(),r=$b(),i=I.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(f=>f.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:a,clearItemsToCompare:s,removeItemToCompare:u}=r;return y.jsx("div",{className:je("sticky top-(--header-height) z-10",e),children:y.jsxs(It,{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:a.map((f,c)=>{var p;return y.jsxs("li",{className:je("flex items-center gap-1 text-sm font-bold text-white py-0.5 px-1.5 rounded",{"bg-gray-500":!((p=f.style)!=null&&p.backgroundColor)}),style:f.style,children:[f.name,y.jsx(Iu,{label:`Remove ${f.name}`,className:"text-xs",onClick:()=>u(f)})]},`${f.name}_${c}`)})}),y.jsxs("div",{className:"flex gap-2 max-lg:w-full",children:[y.jsxs(Dt,{className:"grow whitespace-nowrap",disabled:a.length<2,to:a.length>1?`${n}/${t}/compare-visits?${t}=${i}`:void 0,children:[y.jsx(Ke,{icon:U0}),"Compare (",a.length,"/5)",y.jsx(Ke,{icon:ay})]}),y.jsx(Dt,{"aria-label":"Close compare",variant:"secondary",onClick:s,children:y.jsx(Ke,{icon:vE})})]})]})})},M_e=(e,{maxVersion:t,minVersion:n})=>{const r=!n||mA(e,n,">=");return(!t||mA(e,t,"<="))&&r},X$={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(X$);const il=(e,t)=>M_e(t==="latest"?"999.99.99":t,X$[e]),Q$=e=>({deviceLongUrls:il("deviceLongUrls",e),shortUrlVisitsDeletion:il("shortUrlVisitsDeletion",e),orphanVisitsDeletion:il("orphanVisitsDeletion",e),shortUrlRedirectRules:il("shortUrlRedirectRules",e),urlValidation:il("urlValidation",e),ipRedirectCondition:il("ipRedirectCondition",e),geolocationRedirectCondition:il("geolocationRedirectCondition",e),filterShortUrlsByDomain:il("filterShortUrlsByDomain",e)}),J$=I.createContext(Q$("0.0.0")),N_e=J$.Provider,L_e=e=>I.useMemo(()=>Q$(e),[e]),to=e=>I.useContext(J$)[e],td="DEFAULT",u3=(e,t,n=1)=>X9(n,e+1).map(t),D_e=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Su=e=>e!=null&&!D_e(e),xC=e=>e||null,qO=e=>e?"true":"false",wC=e=>e===void 0?void 0:qO(e),SC=({children:e,onChange:t,infoTitle:n,...r})=>y.jsx(ni,{...r,onChange:i=>t(i.target.value),label:y.jsxs(y.Fragment,{children:[y.jsx(Ke,{className:"mr-1.5",icon:B0,title:n}),e]}),type:"url",placeholder:"No redirect"}),k_e=({isOpen:e,onClose:t,domain:n,editDomainRedirects:r})=>{var i,a,s;const[u,f]=I.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[c,p]=I.useState(((a=n.redirects)==null?void 0:a.regular404Redirect)??""),[m,v]=I.useState(((s=n.redirects)==null?void 0:s.invalidShortUrlRedirect)??""),[x,w]=I.useState(!1),_=I.useCallback(async()=>{w(!0);try{await r({domain:n.domain,redirects:{baseUrlRedirect:xC(u),regular404Redirect:xC(c),invalidShortUrlRedirect:xC(m)}}),t()}finally{w(!1)}},[r,n.domain,u,c,m,t]);return y.jsx(io,{title:`Edit redirects for ${n.domain}`,open:e,onClose:t,onConfirm:_,confirmText:x?"Saving...":"Save",confirmDisabled:x,children:y.jsxs("div",{className:"flex flex-col gap-y-3",children:[y.jsx(SC,{value:u,onChange:f,infoTitle:`Visitors accessing the base url, as in https://${n.domain}/, will be redirected to this URL.`,children:"Base URL"}),y.jsx(SC,{value:c,onChange:p,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(SC,{value:m,onChange:v,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"})]})})},I_e=({domain:e,editDomainRedirects:t})=>{const{flag:n,setToTrue:r,setToFalse:i}=Sn(),a=us(),s=$b(),u=to("filterShortUrlsByDomain");return y.jsxs(y.Fragment,{children:[y.jsxs(fn,{menuAlignment:"right",children:[y.jsxs(fn.Item,{className:"gap-1.5",to:`${a}/domain/${e.domain}${e.isDefault?`_${td}`:""}/visits`,children:[y.jsx(Ke,{icon:gE,fixedWidth:!0})," Visit stats"]}),y.jsxs(fn.Item,{className:"gap-1.5",disabled:!s||!s.canAddItemWithName(e.domain),onClick:()=>s==null?void 0:s.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Ke,{icon:U0,fixedWidth:!0})," Compare visits"]}),u&&y.jsxs(fn.Item,{className:"gap-1.5",to:`${a}/list-short-urls/1?domain=${e.isDefault?td:e.domain}`,children:[y.jsx(Ke,{icon:pE,fixedWidth:!0})," Short URLs"]}),y.jsx(fn.Separator,{}),y.jsxs(fn.Item,{onClick:r,className:"gap-1.5",children:[y.jsx(Ke,{icon:mE,fixedWidth:!0})," Edit redirects"]})]}),y.jsx(k_e,{domain:e,isOpen:n,onClose:i,editDomainRedirects:t})]})},U_e=({status:e})=>{const{anchor:t,tooltip:n}=ao();return e==="validating"?y.jsx(Ke,{fixedWidth:!0,icon:hE,spin:!0}):y.jsxs("span",{...t,children:[y.jsx(Ke,{fixedWidth:!0,icon:e==="valid"?Lu:_K,className:je({"text-danger":e!=="valid"})}),y.jsx(oo,{...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(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},CC=({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)"})]})]}),B_e=()=>{const{anchor:e,tooltip:t}=ao();return y.jsxs(y.Fragment,{children:[y.jsx(Ke,{...e,fixedWidth:!0,icon:kY,className:"text-lm-brand dark:text-dm-brand","data-testid":"default-domain-icon"}),y.jsx(oo,{...t,children:"Default domain foo"})]})},z_e=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:a,redirects:s,status:u}=e;return I.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs(Xe.Row,{className:"relative",children:[y.jsx(Xe.Cell,{columnName:"Is default domain:",children:a&&y.jsx(B_e,{})}),y.jsx(Xe.Cell,{columnName:"Domain:",children:y.jsx("b",{children:i})}),y.jsx(Xe.Cell,{columnName:"Base path redirect:",children:(s==null?void 0:s.baseUrlRedirect)??y.jsx(CC,{fallback:r==null?void 0:r.baseUrlRedirect})}),y.jsx(Xe.Cell,{columnName:"Regular 404 redirect:",children:(s==null?void 0:s.regular404Redirect)??y.jsx(CC,{fallback:r==null?void 0:r.regular404Redirect})}),y.jsx(Xe.Cell,{columnName:"Invalid short URL redirect:",children:(s==null?void 0:s.invalidShortUrlRedirect)??y.jsx(CC,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),y.jsx(Xe.Cell,{className:"lg:text-center max-lg:border-none",columnName:"Status:",children:y.jsx(U_e,{status:u})}),y.jsx(Xe.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:y.jsx(I_e,{domain:e,editDomainRedirects:t})})]})},D8=[{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}],$_e=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:a,defaultRedirects:s,loading:u,error:f,errorData:c}=e,p=s??((i=a.find(({isDefault:v})=>v))==null?void 0:i.redirects),m=s3();return u?y.jsx(Xo,{loading:!0}):y.jsx(o3,{value:m,children:y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsx(cd,{onChange:t}),y.jsx(l3,{type:"domains"}),f&&y.jsx(qr,{variant:"error",children:y.jsx(eo,{errorData:c,fallbackMessage:"Error loading domains :("})}),!f&&y.jsx(It,{className:"card",children:y.jsxs(Xe,{header:y.jsx(Xe.Row,{children:D8.map((v,x)=>y.jsx(Xe.Cell,{children:y.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},x))}),children:[a.length<1&&y.jsx(Xe.Row,{children:y.jsx(Xe.Cell,{colSpan:D8.length,className:"text-center",children:"No results found"})}),a.map(v=>y.jsx(z_e,{domain:v,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:p},v.domain))]})})]})})},Zn=(e,t)=>V9(e,t,{serializeError:n=>n}),F_e="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",q_e=e=>Zn(F_e,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Nv="shlink/domainsList",Lv={domains:[],filteredDomains:[],loading:!1,error:!1},k8=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},I8=(e,t)=>n=>n.domain!==e?n:{...n,status:t},V_e=(e,t,n)=>{const r=Zn(`${Nv}/listDomains`,async()=>{const{data:u,defaultRedirects:f}=await e().listDomains();return{domains:u.map(c=>({...c,status:"validating"})),defaultRedirects:f}}),i=Zn(`${Nv}/checkDomainHealth`,async u=>{try{const{status:f}=await e().health({domain:u});return{domain:u,status:f==="pass"?"valid":"invalid"}}catch{return{domain:u,status:"invalid"}}}),a=Vr(`${Nv}/filterDomains`),{reducer:s}=Un({name:Nv,initialState:Lv,reducers:{},extraReducers:u=>{u.addCase(r.pending,()=>({...Lv,loading:!0})),u.addCase(r.rejected,(f,{error:c})=>({...Lv,error:!0,errorData:Ri(c)})),u.addCase(r.fulfilled,(f,{payload:c})=>({...Lv,...c,filteredDomains:c.domains})),u.addCase(i.fulfilled,({domains:f,filteredDomains:c,...p},{payload:m})=>({...p,domains:f.map(I8(m.domain,m.status)),filteredDomains:c.map(I8(m.domain,m.status))})),u.addCase(a,(f,{payload:c})=>({...f,filteredDomains:f.domains.filter(({domain:p})=>p.toLowerCase().match(c.toLowerCase()))})),u.addCase(t.fulfilled,(f,{payload:c})=>({...f,domains:f.domains.map(k8(c)),filteredDomains:f.filteredDomains.map(k8(c))})),u.addCase(n.fulfilled,(f,{payload:c})=>{c.domain===null||f.domains.some(p=>p.domain===c.domain)||f.domains.push({domain:c.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:s,listDomains:r,checkDomainHealth:i,filterDomains:a}},H_e=(e,t)=>{e.serviceFactory("ManageDomains",()=>$_e),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",V_e,"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",q_e,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},U8="shlink/mercure",G_e={loading:!0,error:!1},W_e=e=>{const t=Zn(`${U8}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Un({name:U8,initialState:G_e,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:a})=>({...a,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},Y_e=e=>{e.serviceFactory("mercureInfoReducerCreator",W_e,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Mn(e){return I.useMemo(()=>e,[e])}function Nn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const K_e=(e,t,n,r)=>{const{mercureHubUrl:i,token:a,loading:s,error:u}=e;if(s||u||!i)return;const f=({data:m})=>n(JSON.parse(m)),c=({status:m})=>m===401&&r(),p=t.map(m=>{const v=new URL(i);v.searchParams.append("topic",m);const x=new Ete.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${a}`}});return x.onmessage=f,x.onerror=c,x});return()=>p.forEach(m=>m.close())};function Aa(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:a,mercureInfo:s}=r,u=od();return I.useEffect(()=>{const{interval:f}=s,c=x=>f?n.add(x):i([x]),p=t(u),m=K_e(s,p,c,a);if(!f)return m;const v=setInterval(()=>{i([...n]),n.clear()},f*1e3*60);return()=>{clearInterval(v),m==null||m()}},[i,a,s,u]),y.jsx(e,{...r})}}class Gr{}yl(Gr,"visits","https://shlink.io/new-visit"),yl(Gr,"orphanVisits","https://shlink.io/new-orphan-visit"),yl(Gr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const Ad=Vr("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),yp=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Z_e=(e,t)=>!e.domain&&t===td?!0:e.domain===t,X_e=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},eF=e=>e.replaceAll("/","__"),c3=e=>e.replaceAll("__","/"),f3=({domain:e,shortCode:t})=>`${e??td}__${eF(t)}`,tF=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===td?null:t,shortCode:c3(n)}},d3="shlink/shortUrlDeletion",B8={shortCode:"",loading:!1,deleted:!1,error:!1},Q_e=e=>Zn(`${d3}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),nF=Vr(`${d3}/shortUrlDeleted`),J_e=e=>{const{actions:t,reducer:n}=Un({name:d3,initialState:B8,reducers:{resetDeleteShortUrl:()=>B8},extraReducers:i=>{i.addCase(e.pending,a=>({...a,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(a,{error:s})=>({...a,errorData:Ri(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(a,{payload:s})=>({...a,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},rF="shlink/shortUrlsList",iF=5,exe={loading:!0,error:!1},txe=e=>Zn(`${rF}/listShortUrls`,t=>e().listShortUrls(t??{})),nxe=(e,t,n)=>Un({name:rF,initialState:exe,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:a})=>({loading:!1,error:!1,shortUrls:a})),r.addCase(n.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=[a,...i.shortUrls.data.slice(0,iF-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>{const{shortCode:u,domain:f}=a;return yp(s,u,f)?a:s}))}),r.addCase(nF,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(s=>!yp(s,a.shortCode,a.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Ad,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>{var u;return((u=a.createdVisits.findLast(({shortUrl:f})=>f&&yp(s,f.shortCode,f.domain)))==null?void 0:u.shortUrl)??s}))})}}),VO=({children:e,title:t,link:n,tooltip:r})=>{const{anchor:i,tooltip:a}=ao({placement:"bottom"});return y.jsxs(y.Fragment,{children:[y.jsx(Pr,{to:n,className:"no-underline text-inherit",...i,children:y.jsxs(It,{className:je("text-center border-t-3 border-t-lm-main dark:border-t-dm-main relative"),children:[y.jsx(Ke,{icon:dJ,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(oo,{...a,children:r})]})},z8=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(VO,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("b",{"data-testid":"tooltip-amount",children:Rn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Rn(t&&n.nonBots!==void 0?n.nonBots:n.total)}),$8=({children:e,titleLinkText:t,titleLink:n,title:r})=>y.jsxs(vn,{className:"card",children:[y.jsxs(vn.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(Pr,{to:n,children:[t," »"]})]}),y.jsx(vn.Body,{children:e})]}),aF=Aa(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:a,CreateShortUrl:s}=Mn(aF),{loading:u,shortUrls:f}=e,{loading:c}=n,{loading:p,nonOrphanVisits:m,orphanVisits:v}=i,x=us(),w=ro(),_=Xn("visits");return I.useEffect(()=>{t({itemsPerPage:iF,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(z8,{title:"Visits",link:`${x}/non-orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:p,visitsSummary:m}),y.jsx(z8,{title:"Orphan visits",link:`${x}/orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:p,visitsSummary:v}),y.jsx(VO,{title:"Short URLs",link:`${x}/list-short-urls/1`,children:u?"Loading...":Rn((f==null?void 0:f.pagination.totalItems)??0)}),y.jsx(VO,{title:"Tags",link:`${x}/manage-tags`,children:c?"Loading...":Rn(n.tags.length)})]}),y.jsx($8,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${x}/create-short-url`,children:y.jsx(s,{basicMode:!0})}),y.jsx($8,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${x}/list-short-urls/1`,children:y.jsx(a,{shortUrlsList:e,onTagClick:S=>w(`${x}/list-short-urls/1?tags=${encodeURIComponent(S)}`)})})]})},()=>[Gr.visits,Gr.orphanVisits]),rxe=Nn(aF,["ShortUrlsTable","CreateShortUrl"]);function ixe(e,t){e.factory("Overview",rxe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const oF="shlink/setShortUrlRedirectRules",F8={saving:!1,saved:!1,error:!1},axe=e=>Zn(`${oF}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),oxe=e=>{const{reducer:t,actions:n}=Un({name:oF,initialState:F8,reducers:{resetSetRules:()=>F8},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Ri(s)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},sF="shlink/getShortUrlRedirectRules",sxe={loading:!0,error:!1},lxe=e=>Zn(`${sF}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),uxe=e=>Un({name:sF,initialState:sxe,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 Wr(e){e.preventDefault()}function Il(e){e.stopPropagation()}function lF(){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[uF,cF]=lF();function cxe(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function dm(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 cxe(e,t);if(e===null||t===null)return!1;const i=e,a=t;if(Object.keys(i).length!==Object.keys(a).length)return!1;for(const s of r)if((s in i||s in a)&&i[s]!==a[s])return!1;for(const s in i)if(!(s in a)||i[s]!==a[s]&&!n||n&&!dm(i[s],a[s],n,r))return!1;return!0}return!1}function fF(e){return e.split(" ").filter(t=>t)}function Od(e){return{x:e.clientX,y:e.clientY}}Array();var h3=typeof window<"u",jr=new WeakMap,no=new WeakMap;function dF(){if(!h3)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 fxe={affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:cF,emit:uF,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},We=fxe,jl=!1,q8,AC;function dxe(){We.scrollDebounceTimeout&&clearTimeout(We.scrollDebounceTimeout),We.longPressTimeout&&clearTimeout(We.longPressTimeout),We.frameIdX!==void 0&&cancelAnimationFrame(We.frameIdX),We.frameIdY!==void 0&&cancelAnimationFrame(We.frameIdY),We={affectedNodes:[],coordinates:{x:0,y:0},on:cF,emit:uF,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 hF(e){return Object.assign(We,e),e.initialParent.data.emit("dragStarted",We),jl=!1,We.emit("dragStarted",We),We}function hxe(){We.activeState&&Wu(We.activeState.parent,void 0,We),We.selectedState&&Nu(We.selectedState.nodes,We.selectedState.parent,We),We.selectedState=We.activeState=void 0}function pxe(){if(We.pointerDown&&(We.pointerDown.node.el.draggable=!0),We.pointerDown=void 0,!ji(We))return;const e=We.currentParent.data.config;ji(We)&&e.handleEnd(We)}function mxe(e){e.key==="Escape"&&(We.selectedState&&Nu(We.selectedState.nodes,We.selectedState.parent,We),We.activeState&&Wu(We.activeState.parent,void 0,We),We.selectedState=We.activeState=void 0)}function gxe(e){if(!Yr(We))return;jl=!0;const t=We.initialParent.data.config.handleEnd;t(We)}function vxe(e){if(!Yr(We))return;Wr(e);const{x:t,y:n}=Od(e);Yr(We)&&Vb({x:t,y:n},e,We)}function yxe(e){if(!We.pointerDown||!We.pointerDown.validated)return;const t=We.pointerDown.parent.data.config;if(!(e.pointerType==="mouse"&&!dF()))if(ji(We))ji(We)&&V8(e,We);else{if(Wr(e),t.longPress&&!We.longPress){clearTimeout(We.longPressTimeout),We.longPress=!1;return}const n=t.draggedNodes(We.pointerDown);t.dragstartClasses(We.pointerDown.node,n,t,!0);const r=We.pointerDown.node.el.getBoundingClientRect(),i=Wxe(We.pointerDown.node,We.pointerDown.parent,e,We,n,r);V8(e,i,!0)}}function bxe({parent:e,getValues:t,setValues:n,config:r={}}){var i,a,s;if(!h3)return;q8||(q8=C0(document,{dragover:vxe,pointerdown:hxe,pointerup:pxe,keydown:mxe,drop:gxe,pointermove:yxe,pointercancel:yi(r.handlePointercancel),touchmove:p=>{Yr(We)&&p.cancelable&&Wr(p)},contextmenu:p=>{ji(We)&&Wr(p)}})),mF(e);const[u,f]=lF(),c={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:Mxe,dragstartClasses:kxe,handleNodeKeydown:Uxe,handleDragstart:Lxe,handleNodeDragover:Kxe,handleParentDragover:Zxe,handleNodeDrop:zxe,handleNodeFocus:$xe,handleNodeBlur:Fxe,handlePointercancel:Vxe,handleEnd:Hxe,handleDragend:qxe,handleParentFocus:xxe,handleNodePointerup:Gxe,handleNodePointerover:Bxe,handleParentPointerover:Xxe,handleParentScroll:Nxe,handleNodePointerdown:Dxe,handleNodeDragenter:Jxe,handleNodeDragleave:ewe,handleParentDrop:Sxe,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:_xe,performTransfer:wxe,root:r.root??document,setupNode:Axe,setupNodeRemap:gF,reapplyDragClasses:Oxe,tearDownNode:Txe,tearDownNodeRemap:Exe,remapFinished:Pxe,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:f,emit:u};new MutationObserver(jxe).observe(e,{childList:!0}),jr.set(e,c),(i=r.plugins)==null||i.forEach(p=>{var m,v;(v=(m=p(e))==null?void 0:m.tearDown)==null||v.call(m)}),(a=r.plugins)==null||a.forEach(p=>{var m,v;(v=(m=p(e))==null?void 0:m.tearDown)==null||v.call(m)}),(s=r.plugins)==null||s.forEach(p=>{var m,v;(v=(m=p(e))==null?void 0:m.setup)==null||v.call(m)}),Cxe(e,c),Fb(e,!0)}function pF(e,t,n,r,i,a){const{x:s,y:u}=Od(n),f=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-((f==null?void 0:f.left)??0),startTop:a||u-((f==null?void 0:f.top)??0),targetIndex:e.data.index,transferred:!1}}function _xe({parent:e,draggedNodes:t,targetNodes:n}){Fb(e.el);const r=t.map(f=>f.data.value),i=nd(e.el,e.data),a=t[0].data.index,s=[...e.data.enabledNodes],u=[...i.filter(f=>!r.some(c=>dm(f,c)))];u.splice(n[0].data.index,0,...r),"draggedNode"in We&&(We.currentTargetValue=n[0].data.value),HO(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:a,position:n[0].data.index,targetNodes:n,state:We})}function Wu(e,t,n){if(!t){n.activeState=void 0;return}n.activeState={node:t,parent:e}}function Nu(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);bl(e.map(a=>a.el),r);for(const a of i){a.el.setAttribute("aria-selected","false");const s=n.selectedState.nodes.findIndex(u=>u.el===a.el);s!==-1&&n.selectedState.nodes.splice(s,1)}}function Dv(e,t,n,r,i=!1){r.pointerSelection=i;for(const a of t)a.el.setAttribute("aria-selected","true"),bf([a.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e},Wu(e,n,r)}function xxe(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?Wu(e.targetData.parent,n,t):t.selectedState||Wu(e.targetData.parent,n,t))}function wxe({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:a,state:s}){Fb(n.el);const u=r.map(v=>v.data.value),f=[...nd(e.el,e.data).filter(v=>!u.some(x=>dm(v,x)))],c=nd(t.el,t.data),p=n.el===t.el&&t.data.config.sortable===!1;let m;a.length?(p?m=i:t.data.config.sortable===!1?m=t.data.enabledNodes.length:m=a[0].data.index,c.splice(m,0,...u)):(m=p?i:t.data.enabledNodes.length,c.splice(m,0,...u)),HO(e.el,e.data,f),HO(t.el,t.data,c),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:s,targetNodes:a}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:s,targetNodes:a||[]})}function nd(e,t){return[...t.getValues(e)]}function HO(e,t,n){t.setValues(n,e)}function Sxe(e,t){Il(e.e),jl=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function mF(e){const t=jr.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function Yr(e){return"draggedNode"in e&&!!e.draggedNode}function ji(e){return"synthDragging"in e&&!!e.synthDragging}function Cxe(e,t){t.abortControllers.mainParent=C0(e,{dragover:kv(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:kv(t.config.handleParentScroll),drop:kv(t.config.handleParentDrop),hasNestedParent:n=>{const r=jr.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:kv(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=C0(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!Hb(r)){console.warn("No draggable item found from external drag handle callback");return}const i=no.get(r);if(!i)return;const a=r.parentNode;if(!(a instanceof HTMLElement))return;const s=jr.get(a);s&&(We.pointerDown={parent:{el:a,data:s},node:{el:r,data:i},validated:!0},r.draggable=!0)}}))}function Axe(e){var t;const n=e.parent.data.config;e.node.data.abortControllers.mainNode=C0(e.node.el,{keydown:yi(n.handleNodeKeydown),dragstart:yi(n.handleDragstart),dragover:yi(n.handleNodeDragover),dragenter:yi(n.handleNodeDragenter),dragleave:yi(n.handleNodeDragleave),dragend:yi(n.handleDragend),drop:yi(n.handleNodeDrop),focus:yi(n.handleNodeFocus),blur:yi(n.handleNodeBlur),pointerup:yi(n.handleNodePointerup),pointercancel:yi(n.handlePointercancel),pointerdown:yi(n.handleNodePointerdown),handleNodePointerover:n.handleNodePointerover,touchmove:r=>{Yr(We)&&r.cancelable&&Wr(r)},contextmenu:r=>{ji(We)&&Wr(r)}}),e.node.el.draggable=!0,n.reapplyDragClasses(e.node.el,e.parent.data),(t=e.parent.data.config.plugins)==null||t.forEach(r=>{var i,a;(a=(i=r(e.parent.el))==null?void 0:i.setupNode)==null||a.call(i,e)})}function gF(e){var t;no.set(e.node.el,e.node.data),(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function Oxe(e,t){if(!Yr(We))return;const n=ji(We)?t.config.synthDropZoneClass:t.config.dropZoneClass;We.draggedNode.el===e&&bf([e],n,!0)}function Exe(e){var t;(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function Txe(e){var t,n,r,i,a;(t=e.parent.data.config.plugins)==null||t.forEach(s=>{var u,f;(f=(u=s(e.parent.el))==null?void 0:u.tearDownNode)==null||f.call(u,e)}),e.node.el.draggable=!1,(r=(n=e.node.data)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((a=(i=e.node.data)==null?void 0:i.abortControllers)==null||a.mainNode.abort())}function jxe(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)||!jr.get(t)||Fb(t)}function Fb(e,t){var n;const r=jr.get(e);if(!r)return;r.privateClasses=Array.from(e.classList);const i=[],a=r.config;for(let f=0;f<e.children.length;f++){const c=e.children[f];if(!Hb(c)||c.id==="dnd-dragged-node-clone")continue;const p=no.get(c);(t||!p)&&a.tearDownNode({parent:{el:e,data:r},node:{el:c,data:p}}),!a.disabled&&(!a.draggable||a.draggable&&a.draggable(c))&&i.push(c)}if(i.length!==r.getValues(e).length&&!a.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 s=r.getValues(e),u=[];for(let f=0;f<i.length;f++){const c=i[f],p=no.get(c);if(a.draggableValue&&!a.draggableValue(s[f]))continue;const m=Object.assign(p??{privateClasses:[],abortControllers:{}},{value:s[f],index:f});if(!Yr(We)&&We.activeState&&dm(We.activeState.node.data.value,m.value)&&Wu({data:r,el:e},{el:c,data:m},We),Yr(We)&&dm(We.draggedNode.data.value,m.value)){We.draggedNode.data=m,We.draggedNode.el=c;const v=We.draggedNodes.find(x=>x.data.value===m.value);v&&(v.el=c)}u.push({el:c,data:m}),(t||!p)&&a.setupNode({parent:{el:e,data:r},node:{el:c,data:m}}),gF({parent:{el:e,data:r},node:{el:c,data:m}})}jr.set(e,{...r,enabledNodes:u}),a.remapFinished(r),(n=r.config.plugins)==null||n.forEach(f=>{var c,p;(p=(c=f(e))==null?void 0:c.remapFinished)==null||p.call(c)})}function Pxe(){We.remapJustFinished=!0,"draggedNode"in We&&(We.affectedNodes=[])}function Rxe(e){return!!e.targetData.parent.data.config.nativeDrag}function Mxe(e){var t;if(e.parent.data.config.multiDrag){if(We.selectedState)return[e.node,...(t=We.selectedState)==null?void 0:t.nodes.filter(n=>n.el!==e.node.el)]}else return[e.node];return[]}function Nxe(e){Yr(We)&&(We.emit("scrollStarted",We),!ji(We)&&(We.preventEnter=!0,AC&&clearTimeout(AC),AC=setTimeout(()=>{We.preventEnter=!1,We.emit("scrollEnded",We)},100)))}function Lxe(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!Rxe(e)||!vF({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){Wr(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=Ixe(e,r);if(n.onDragstart){const a={parent:e.targetData.parent,values:nd(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i};n.onDragstart(a)}}function Dxe(e,t){var n,r;if(Il(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},!vF({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown.validated=!0,Yxe(e,t,e.targetData.node);const i=e.targetData.parent.data;let a=[e.targetData.node];const s=e.e.ctrlKey||e.e.metaKey,u=e.e.shiftKey,f=e.targetData.node;if(s&&i.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(c=>c.el===f.el)===-1?a=[...t.selectedState.nodes,f]:a=t.selectedState.nodes.filter(c=>c.el!==f.el):a=[f],Dv(e.targetData.parent,a,e.targetData.node,t,!0);return}if(u&&i.config.multiDrag){const c=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){Nu(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let p=0;p<=f.data.index;p++)a.push(c[p])}else{const[p,m]=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];a=c.slice(p,m+1)}else for(let p=0;p<=f.data.index;p++)a.push(c[p]);Dv(e.targetData.parent,a,e.targetData.node,t,!0);return}(r=(n=t.selectedState)==null?void 0:n.nodes)!=null&&r.length?t.selectedState.nodes.findIndex(c=>c.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?Nu(t.selectedState.nodes,e.targetData.parent,t):i.config.multiDrag&&dF()?a.push(...t.selectedState.nodes):Nu(t.selectedState.nodes,e.targetData.parent,t),Dv(e.targetData.parent,a,e.targetData.node,t,!0)):Dv(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function kxe(e,t,n,r=!1){bf(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{bl(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),bf(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),bf(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),bl(t.map(i=>i.el),n.selectedClass)})}function Ixe(e,t){Il(e.e);const n=hF(pF(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 a=document.createElement("div");a.setAttribute("id","dnd-dragged-node-clone"),a.setAttribute("popover","manual");for(const u of t){const f=u.el.cloneNode(!0);f.id=u.el.id+"-clone",f.style.pointerEvents="none",a.appendChild(f)}const{width:s}=t[0].el.getBoundingClientRect();Object.assign(a.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(a),a.showPopover(),a.getBoundingClientRect(),i=a,e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY)}}setTimeout(()=>{i==null||i.remove()})}return n}function vF({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 a=r.root.elementFromPoint(e,t);if(!a)return!1;for(const s of Array.from(i))if(a===s||s.contains(a))return!0;return!1}function Uxe(e){}function Bxe(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?bF(e.detail,e.detail.state):qb(e.detail,e.detail.state)}function zxe(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(Il(e.e),jl=!0,n.handleEnd(t))}function $xe(e){e.e.target!==e.e.currentTarget&&We.pointerDown&&(We.pointerDown.node.el.draggable=!1)}function Fxe(e){e.e.target!==e.e.currentTarget&&We.pointerDown&&(We.pointerDown.node.el.draggable=!0)}function qxe(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(Wr(e.e),Il(e.e),jl){jl=!1;return}n.handleEnd(t)}}function Vxe(e,t){var n;if(!ji(t))return;if(Wr(e.e),jl){jl=!1;return}const r=(n=jr.get(t.initialParent.el))==null?void 0:n.config;r!=null&&r.onDragend&&r.onDragend({parent:t.currentParent,values:nd(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),r==null||r.handleEnd(t)}function Hxe(e){var t,n,r,i,a;e.draggedNode&&(e.draggedNode.el.draggable=!0);const s=e.draggedNodes.map(_=>_.el),u=e.initialParent.data,f=ji(e),c=(t=jr.get(e.initialParent.el))==null?void 0:t.config,p=f?c==null?void 0:c.synthDropZoneClass:c==null?void 0:c.dropZoneClass,m=(n=u==null?void 0:u.config)==null?void 0:n.longPressClass,v=f?(r=u==null?void 0:u.config)==null?void 0:r.synthDragPlaceholderClass:(i=u==null?void 0:u.config)==null?void 0:i.dragPlaceholderClass,x=e.originalZIndex;ji(e)&&(e.clonedDraggedNode&&e.clonedDraggedNode.remove(),e.longPressTimeout&&clearTimeout(e.longPressTimeout)),GO(e),e.lastScrollDirectionX=void 0,e.lastScrollDirectionY=void 0,e.preventEnter=!1,e.scrollDebounceTimeout&&(clearTimeout(e.scrollDebounceTimeout),e.scrollDebounceTimeout=void 0),x!==void 0&&e.draggedNode&&(e.draggedNode.el.style.zIndex=x),requestAnimationFrame(()=>{bl(s,p),bl(s,m),bl(s,v)}),Nu(e.draggedNodes,e.currentParent,e),Wu(e.currentParent,void 0,e);const w={...e};(a=c==null?void 0:c.onDragend)==null||a.call(c,{parent:w.currentParent,values:nd(w.currentParent.el,w.currentParent.data),draggedNode:w.draggedNode,draggedNodes:w.draggedNodes,state:w}),e.emit("dragEnded",w),dxe()}function Gxe(e,t){Il(e.e),!t.pointerSelection&&t.selectedState&&Nu(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,bl(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),Yr(t)&&n.handleEnd(t)}function Wxe(e,t,n,r,i,a){var s,u;const f=t.data.config;let c,p;const m=["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"],v=(_,S)=>{const C=window.getComputedStyle(_);m.forEach(O=>{S.style[O]=C[O]})},x=(_,S={})=>{Object.assign(_.style,{position:"absolute",zIndex:"9999",pointerEvents:"none",willChange:"transform",boxSizing:"border-box",opacity:"0",overflow:"hidden",width:`${a.width}px`,height:`${a.height}px`,...S})};if(f.synthDragImage)p=f.synthDragImage(e,t,n,i),c=p.dragImage,c.setAttribute("popover","manual"),x(c);else if(!f.multiDrag||i.length===1)c=e.el.cloneNode(!0),v(e.el,c),c.setAttribute("popover","manual"),x(c);else{const _=document.createElement("div");_.setAttribute("popover","manual"),i.forEach(S=>{const C=S.el.cloneNode(!0);v(S.el,C),C.style.pointerEvents="none",C.style.margin="0",_.append(C)}),_.style.display="flex",_.style.flexDirection="column",_.style.padding="0",_.style.margin="0",_.style.position="absolute",_.style.zIndex="9999",_.style.pointerEvents="none",c=_}c.id="dnd-dragged-node-clone",t.el.appendChild(c),c.showPopover();const w={clonedDraggedEls:[],clonedDraggedNode:c,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:(s=document.scrollingElement)==null?void 0:s.scrollWidth,rootScrollHeight:(u=document.scrollingElement)==null?void 0:u.scrollHeight};return hF({...pF(e,t,n,i,p==null?void 0:p.offsetX,p==null?void 0:p.offsetY),...w})}function Yxe(e,t,n){const r=e.targetData.parent.data.config;t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&bf([n.el],r.longPressClass),Wr(e.e))},r.longPressDuration||1e3)}function GO(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 yF(e,t=!1){var n;const{x:r,y:i}=e.coordinates,a=e.startLeft??0,s=e.startTop??0,u=window.scrollX??0,f=window.scrollY??0,c=r-a+u,p=i-s+f;e.clonedDraggedNode.style.transform=`translate3d(${c}px, ${p}px, 0px)`,t&&(e.clonedDraggedNode.style.opacity="1",bl(e.draggedNodes.map(m=>m.el),(n=e.initialParent.data.config)==null?void 0:n.longPressClass))}function V8(e,t,n=!1){const r=Od(e);t.coordinates.x=r.x,t.coordinates.y=r.y,yF(t,n),t.scrollDebounceTimeout&&(clearTimeout(t.scrollDebounceTimeout),t.scrollDebounceTimeout=void 0),t.scrollDebounceTimeout=setTimeout(()=>{ji(t)&&Vb(t.coordinates,e,t)},16);const i=iwe(r);if(!i){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const a={e,targetData:i,state:t};"node"in i?i.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:a})):i.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:a}))}function Kxe(e,t){var n;if(!e.targetData.parent.data.config.nativeDrag)return;const{x:r,y:i}=Od(e.e);t.coordinates.y=i,t.coordinates.x=r,Wr(e.e),Il(e.e),Yr(t)&&Vb({x:r,y:i},e.e,t),e.targetData.parent.el===((n=t.currentParent)==null?void 0:n.el)?bF(e,t):qb(e,t)}function Zxe(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;Wr(e.e),Il(e.e);const{x:n,y:r}=Od(e.e);Yr(t)&&Vb({x:n,y:r},e.e,t),qb(e,t)}function Xxe(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&qb(e.detail,e.detail.state)}function Qxe({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,state:i}){if(t.el===e.el)return!1;const a=t.data.config;if(r[0].el.contains(t.el)||a.dropZone===!1)return!1;const s=n.data.config;return a.accepts?a.accepts(t,n,e,i):!(!a.group||a.group!==s.group)}function Jxe(e,t){Wr(e.e)}function ewe(e,t){Wr(e.e)}function twe(e,t,n,r){var i;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!==((i=t.currentParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const a=e.targetData.node.el.getBoundingClientRect(),s=t.draggedNode.el.getBoundingClientRect(),u=a.y-s.y,f=a.x-s.x;let c;Math.abs(u)>Math.abs(f)?c=u>0?"above":"below":c=f>0?"left":"right";const p=t.currentParent.data.config.threshold;switch(c){case"left":if(n>a.x+a.width*p.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<a.x+a.width*(1-p.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>a.y+a.height*p.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<a.y+a.height*(1-p.vertical))return t.incomingDirection="below",!0;break}return!1}function bF(e,t){const{x:n,y:r}=Od(e.e);if(!twe(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(a=>i[0]<=a.data.index&&a.data.index<=i[1]&&a.el!==t.draggedNode.el),e.targetData.parent.data.config.performSort({parent:e.targetData.parent,draggedNodes:t.draggedNodes,targetNodes:[e.targetData.node]})}function yi(e){function t(n){const r=no.get(n);if(!r)return;const i=jr.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},We)}}function qb(e,t){Wr(e.e),Qxe({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 kv(e){function t(n){const r=jr.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},We)}}function bf(e,t,n=!1){function r(i,a){no.set(i,a)}for(const i of e){const a=no.get(i),s=nwe(i,t,a,n);s&&r(i,s)}}function nwe(e,t,n,r=!1){if(!t)return;const i=fF(t);if(!i.length)return;if(!n){e.classList.add(...i);return}const a=[];for(const s of i)e.classList.contains(s)?e.classList.contains(s)&&r===!1&&a.push(s):e.classList.add(s);return n.privateClasses=a,n}function bl(e,t){if(!t)return;const n=fF(t);if(n.length)for(const r of e){if(!Hb(r)){r.classList.remove(...n);continue}const i=no.get(r)||jr.get(r);if(i)for(const a of n)i.privateClasses.includes(a)||r.classList.remove(a)}}function H8(e,t,n,r,i){const a=i.axis==="x",s=e===document.scrollingElement,u=a?"scrollLeft":"scrollTop",f=a?"clientWidth":"clientHeight",c=a?"offsetWidth":"offsetHeight",p=a?"scrollWidth":"scrollHeight",m=a?t.clientX:t.clientY,v=a?r.left:r.top,x=a?n.overflowX:n.overflowY;if(s){const w=e[u],_=e[f],S=w>0,C=w+_<(a?i.state.rootScrollWidth||0:e[p]);return a?{left:S&&m<_*.075,right:C&&m>_*(1-.075)}:{up:S&&m<_*.075,down:C&&m>_*(1-.075)}}if((x==="auto"||x==="scroll")&&e!==document.body&&e!==document.documentElement){const w=e[p],_=e[c],S=e[u],C=S>0,O=S<w-_;return a?{left:C&&m<v+_*.075,right:O&&m>v+_*(1-.075)}:{up:C&&m<v+_*.075,down:O&&m>v+_*(1-.075)}}return a?{left:!1,right:!1}:{up:!1,down:!1}}function rwe(e,t,n,r){if(!Yr(n)||!n.draggedNode)return;n.preventEnter=!0;const i=r.axis==="x",a=r.direction==="positive"?1:-1,s=20,u=i?"lastScrollDirectionX":"lastScrollDirectionY",f=i?"frameIdX":"frameIdY";n[f]!==void 0&&(cancelAnimationFrame(n[f]),n[f]=void 0),n[u]=r.direction;const c=()=>{if(!Yr(n)||!n.draggedNode){n[f]!==void 0&&(cancelAnimationFrame(n[f]),n[f]=void 0);return}const p=i?"scrollLeft":"scrollTop",m=i?"clientWidth":"clientHeight",v=i?"scrollWidth":"scrollHeight",x=e[p],w=e[m],_=e[v];if(!(a>0?x+w<_:x>0)){n[f]=void 0,n[u]=void 0;return}e[p]+=s*a,ji(n)&&yF(n),n[f]=requestAnimationFrame(c)};n[f]=requestAnimationFrame(c)}function G8(e,t,n){const r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}function Vb(e,t,n){if(!Yr(n)||!n.draggedNode)return;GO(n);const{x:r,y:i}=e;let a=!1;const s=(f,c,p)=>{rwe(p,t,n,{axis:f,direction:c}),a=!0},u=f=>{const c=window.getComputedStyle(f),p=f.getBoundingClientRect(),m=H8(f,t,c,p,{axis:"x",state:n}),v=H8(f,t,c,p,{axis:"y"});(m.left||m.right)&&(n.lastScrollContainerX=f,s("x",m.right?"positive":"negative",f)),(v.up||v.down)&&(n.lastScrollContainerY=f,s("y",v.down?"positive":"negative",f))};if(n.lastScrollContainerX&&G8(n.lastScrollContainerX,r,i)&&u(n.lastScrollContainerX),!a&&n.lastScrollContainerY&&G8(n.lastScrollContainerY,r,i)&&u(n.lastScrollContainerY),!a){let f=document.elementFromPoint(r,i);for(;f&&!(a&&n.lastScrollContainerX&&n.lastScrollContainerY);)f instanceof HTMLElement&&u(f),f=f.parentElement}if(!a){const f=document.scrollingElement;f instanceof HTMLElement&&u(f)}a||GO(n)}function iwe(e){let t=document.elementFromPoint(e.x,e.y);if(!Hb(t))return;let n,r=!0;for(;t&&r;){if(no.has(t)||jr.has(t)){r=!1,n=jr.has(t);break}t=t.parentNode}if(n){const i=jr.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=no.get(t);if(!i)return;const a=jr.get(t.parentNode);return a?{node:{el:t,data:i},parent:{el:t.parentNode,data:a}}:void 0}}function Hb(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function C0(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 awe(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 owe(e,t){const n=awe(e);n&&t(n)}var A0=new WeakMap;function swe(e){const t=A0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function lwe(e,t){const n=A0.get(t);n&&n[1](e),A0.set(t,[e,n[1]])}function uwe(e,t){return n=>{A0.set(n,t),bxe({parent:n,getValues:swe,setValues:lwe,config:e})}}function W8(e){h3&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;owe(n,uwe(i,r))}))}function cwe(e,t={}){const n=I.useRef(null),[r,i]=I.useState(e);function a(s={}){W8({parent:n,state:[r,i],...s})}return I.useEffect(()=>{W8({parent:n,state:[r,i],...t})},[r]),I.useEffect(()=>()=>{n.current&&mF(n.current)},[]),[n,r,i,a]}const Gb=()=>{const e=ro(),t=us(),n=fd(),r=I.useMemo(()=>{const{orderBy:a,tags:s,excludeBots:u,excludeMaxVisitsReached:f,excludePastValidUntil:c,...p}=n,m=a?lee(a):void 0,v=(s==null?void 0:s.split(","))??[];return{...p,orderBy:m,tags:v,excludeBots:u!==void 0?u==="true":void 0,excludeMaxVisitsReached:f!==void 0?f==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}},[n]),i=I.useCallback(a=>{const s={...r,...a},{orderBy:u,tags:f,excludeBots:c,excludeMaxVisitsReached:p,excludePastValidUntil:m,...v}=s,x={...v,orderBy:u&&see(u),tags:f.length>0?f.join(","):void 0,excludeBots:wC(c),excludeMaxVisitsReached:wC(p),excludePastValidUntil:wC(m)},w=UE(x),_=w?`?${w}`:"";e(`${t}/list-short-urls/1${_}`)},[r,e,t]);return[r,i]},p3=()=>{const{domain:e}=fd(),{shortCode:t=""}=od();return I.useMemo(()=>({shortCode:c3(t),domain:e}),[e,t])},Wb=()=>{const e=IJ();return y.jsx(X0,{size:"lg",className:"[&]:p-1 mr-4",onClick:e,"aria-label":"Go back",children:y.jsx(Ke,{icon:QY})})},fwe={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"},dwe={android:"Android",ios:"iOS",desktop:"Desktop"},hwe=({deviceType:e,onDeviceTypeChange:t})=>y.jsxs(kE,{label:"Device type:",value:e,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select type -"}),Object.entries(dwe).map(([n,r])=>y.jsx("option",{value:n,children:r},n))]}),m3=({value:e,onValueChange:t,label:n,placeholder:r})=>y.jsx(ni,{label:`${n}:`,value:e??"",onChange:i=>t(i.target.value),placeholder:r,hiddenRequired:!0}),pwe=({language:e,onLanguageChange:t})=>y.jsx(m3,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),mwe=({name:e,value:t,onNameChange:n,onValueChange:r})=>y.jsxs(y.Fragment,{children:[y.jsx(ni,{label:"Param name:",value:e??"",onChange:i=>n(i.target.value),placeholder:"hello",hiddenRequired:!0}),y.jsx(ni,{label:"Param value:",value:t??"",onChange:i=>r(i.target.value),placeholder:"world",hiddenRequired:!0})]}),gwe=({ipAddress:e,onIpAddressChange:t})=>y.jsx(m3,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),vwe=({countryCode:e,onCountryCodeChange:t})=>y.jsxs(kE,{label:"Country:",value:e,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select country -"}),Object.entries(fwe).map(([n,r])=>y.jsx("option",{value:n,children:r},n))]}),ywe=({cityName:e,onCityNameChange:t})=>y.jsx(m3,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),bwe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=I.useCallback(c=>t({type:c,matchValue:"",matchKey:null}),[t]),i=I.useCallback(c=>t({...e,matchValue:c}),[e,t]),a=I.useCallback(c=>t({...e,matchKey:c}),[e,t]),s=to("ipRedirectCondition"),u=to("geolocationRedirectCondition"),f=I.useMemo(()=>{const c={device:"Device type",language:"Language","query-param":"Query param"};return s&&(c["ip-address"]="IP address"),u&&(c["geolocation-country-code"]="Country (geolocation)",c["geolocation-city-name"]="City name (geolocation)"),c},[u,s]);return y.jsxs("div",{className:je("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(Dt,{variant:"secondary","aria-label":"Remove condition",onClick:n,className:je("absolute -top-3.5 -right-3.5 [&]:px-2","[&]:rounded-full bg-lm-primary dark:bg-dm-primary"),children:y.jsx(Ke,{icon:z0})}),y.jsx(kE,{label:"Type:",value:e.type,onChange:c=>r(c.target.value),hiddenRequired:!0,children:Object.entries(f).map(([c,p])=>y.jsx("option",{value:c,children:p},c))})]}),e.type==="device"&&y.jsx(hwe,{deviceType:e.matchValue,onDeviceTypeChange:i}),e.type==="language"&&y.jsx(pwe,{language:e.matchValue,onLanguageChange:i}),e.type==="query-param"&&y.jsx(mwe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:i}),e.type==="ip-address"&&y.jsx(gwe,{ipAddress:e.matchValue,onIpAddressChange:i}),e.type==="geolocation-country-code"&&y.jsx(vwe,{countryCode:e.matchValue,onCountryCodeChange:i}),e.type==="geolocation-city-name"&&y.jsx(ywe,{cityName:e.matchValue,onCityNameChange:i})]})},_F=({isOpen:e,onClose:t,onSave:n,initialData:r})=>{const[i,a]=I.useState(r??{longUrl:"",conditions:[]}),s=I.useCallback(()=>{i&&n(i),t()},[n,i,t]),u=I.useCallback(()=>a(({longUrl:v,conditions:x})=>({longUrl:v,conditions:[...x,{type:"device",matchValue:"",matchKey:null}]})),[]),f=I.useCallback((v,x)=>a(({longUrl:w,conditions:_})=>{const S=[..._];return S[v]=x,{longUrl:w,conditions:S}}),[]),c=I.useCallback(v=>a(({longUrl:x,conditions:w})=>{const _=[...w];return _.splice(v,1),{longUrl:x,conditions:_}}),[]),p=I.useRef(null),m=I.useCallback(()=>a(r??{longUrl:"",conditions:[]}),[r]);return I.useEffect(()=>{const v=new MutationObserver(()=>{p.current&&e&&(p.current.focus(),v.disconnect())});return v.observe(document.body,{childList:!0,subtree:!0}),()=>v.disconnect()},[e]),y.jsxs(io,{size:"xl",title:"Redirect rule",open:e,onClose:t,onClosed:m,onConfirm:s,confirmDisabled:i.conditions.length===0,confirmText:"Confirm",children:[y.jsx(ni,{label:"Long URL:",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:v=>a(x=>({...x,longUrl:v.target.value})),hiddenRequired:!0,ref:p}),y.jsx("hr",{}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("b",{children:"Conditions:"}),y.jsx(Dt,{className:"[&]:px-1.5",variant:"secondary","aria-label":"Add condition",onClick:u,children:y.jsx(Ke,{icon:_m})})]}),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((v,x)=>y.jsx(bwe,{condition:v,onConditionChange:w=>f(x,w),onDelete:()=>c(x)},`${x}_${v.type}`))})]})},_we=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:a,onUpdate:s})=>{const{flag:u,setToTrue:f,setToFalse:c}=Sn();return y.jsxs(It,{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(Ke,{icon:aK})}),y.jsxs("div",{className:"flex flex-col my-auto",children:[y.jsx(Dt,{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(Ke,{icon:bK})}),y.jsx(Dt,{variant:"secondary","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:a,className:"[&]:px-2 rounded-t-none",children:y.jsx(Ke,{icon:pK})})]}),y.jsxs("div",{className:"grow",children:[y.jsxs("div",{className:"mb-2",children:[y.jsx("b",{children:"Long URL:"})," ",y.jsx(Ci,{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((p,m)=>y.jsxs("div",{className:"rounded-sm bg-gray-600 px-1 text-white",children:[p.type==="device"&&y.jsxs(y.Fragment,{children:["Device is ",p.matchValue]}),p.type==="language"&&y.jsxs(y.Fragment,{children:[p.matchValue," language is accepted"]}),p.type==="query-param"&&y.jsxs(y.Fragment,{children:["Query string contains ",p.matchKey,"=",p.matchValue]}),p.type==="ip-address"&&y.jsxs(y.Fragment,{children:["IP address matches ",p.matchValue]}),p.type==="geolocation-country-code"&&y.jsxs(y.Fragment,{children:["Country code is ",p.matchValue]}),p.type==="geolocation-city-name"&&y.jsxs(y.Fragment,{children:["City name is ",p.matchValue]})]},`${p.type}_${m}`))]})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-1 my-auto",children:[y.jsx(Dt,{className:"[&]:px-1.5",variant:"secondary","aria-label":`Edit rule with priority ${e}`,onClick:f,children:y.jsx(Ke,{icon:d7})}),y.jsx(Dt,{className:"[&]:px-2",variant:"danger","aria-label":`Delete rule with priority ${e}`,onClick:r,children:y.jsx(Ke,{icon:EY})})]})]}),y.jsx(_F,{onSave:s,isOpen:u,onClose:c,initialData:n})]})},xwe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:a,resetSetRules:s})=>{const u=p3(),{shortUrls:f}=r,c=u&&(f==null?void 0:f.get(u)),[p,m,v]=cwe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:x,saved:w,errorData:_}=a,{flag:S,setToFalse:C,setToTrue:O}=Sn(),T=I.useCallback(Z=>v((Y=[])=>[...Y,Z]),[v]),P=I.useCallback(Z=>v((Y=[])=>{const te=[...Y];return te.splice(Z,1),te}),[v]),j=I.useCallback((Z,Y)=>v((te=[])=>{const ae=[...te];return ae[Z]=Y,ae}),[v]),R=I.useCallback((Z,Y)=>v((te=[])=>{if(!te[Y])return te;const ae=[...te],Q=ae[Y];return ae[Y]=ae[Z],ae[Z]=Q,ae}),[v]),$=I.useCallback(Z=>R(Z,Z-1),[R]),V=I.useCallback(Z=>R(Z,Z+1),[R]),X=I.useCallback(Z=>{Z.preventDefault(),m&&i({shortUrl:u,data:{redirectRules:m}})},[u,m,i]);return I.useEffect(()=>(t(u),n([u]),s),[t,n,u,s]),I.useEffect(()=>{e.redirectRules&&v(e.redirectRules)},[v,e.redirectRules]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("header",{children:y.jsxs(It,{children:[y.jsxs("h2",{className:"sm:flex justify-between items-center",children:[y.jsx(Wb,{}),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(Ci,{href:(c==null?void 0:c.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(Ci,{href:e.defaultLongUrl??""})]})]})]})}),y.jsx("div",{children:y.jsxs(Dt,{onClick:O,children:[y.jsx(Ke,{icon:_m})," Add rule"]})}),y.jsxs("form",{onSubmit:X,children:[e.loading&&y.jsx(Xo,{loading:!0}),m.length===0&&!e.loading&&y.jsx(It,{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:p,children:m.map((Z,Y)=>y.jsx(_we,{redirectRule:Z,priority:Y+1,isLast:Y===m.length-1,onDelete:()=>P(Y),onMoveUp:()=>$(Y),onMoveDown:()=>V(Y),onUpdate:te=>j(Y,te)},`${Z.longUrl}_${Y}`))}),y.jsx("div",{className:"text-center mt-4",children:y.jsx(Dt,{type:"submit",inline:!0,className:"max-md:w-full",disabled:x,"data-testid":"save-button",children:x?"Saving...":"Save rules"})})]}),_&&y.jsx(qr,{variant:"error",children:y.jsx(eo,{errorData:_,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),w&&y.jsx(qr,{variant:"success",children:"Redirect rules properly saved."}),y.jsx(_F,{isOpen:S,onClose:C,onSave:T})]})},wwe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>xwe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",lxe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",axe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",uxe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",oxe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},Swe=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{error:r,saved:i}=e;if(I.useEffect(()=>{t()},[t]),r)return y.jsxs(qr,{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(Iu,{onClick:t})}),y.jsx(eo,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!i)return null;const{shortUrl:a}=e.result;return y.jsxs(qr,{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(Iu,{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:a})]}),y.jsx(_9,{text:a})]})]})},Cwe=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),xF=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i}=Mn(xF),a=Xn("shortUrlCreation"),s=I.useMemo(()=>Cwe(a),[a]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async u=>(n(),e(u))}),y.jsx(Swe,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},Awe=Nn(xF,["ShortUrlForm"]),wF=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Mn(wF),a=p3(),{loading:s,error:u,errorData:f,shortUrls:c}=e,p=a&&(c==null?void 0:c.get(a)),{saving:m,saved:v,error:x,errorData:w}=n,_=Xn("shortUrlCreation"),S=I.useMemo(()=>X_e(p,_),[p,_]);return I.useEffect(()=>{a&&t([a])},[t,a]),s?y.jsx(Xo,{loading:!0}):u?y.jsx(qr,{variant:"error",children:y.jsx(eo,{errorData:f,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(It,{children:y.jsxs("h2",{className:"sm:flex items-center",children:[y.jsx(Wb,{}),y.jsx("div",{className:"text-center grow",children:y.jsxs("small",{children:["Edit ",y.jsx(Ci,{href:(p==null?void 0:p.shortUrl)??""})]})})]})})}),y.jsx(i,{initialState:S,saving:m,onSave:async C=>{p&&r({...p,data:C})}}),v&&x&&y.jsx(qr,{variant:"error",children:y.jsx(eo,{errorData:w,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!x&&y.jsx(qr,{variant:"success",children:"Short URL properly edited."})]})},Owe=Nn(wF,["ShortUrlForm"]),OC="delete",Ewe=({shortUrl:e,onClose:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:a,shortUrlDeleted:s})=>{const[u,f]=I.useState("");I.useEffect(()=>i,[i]);const{loading:c,error:p,deleted:m,errorData:v}=r,x=I.useCallback(()=>{i(),t()},[i,t]),w=I.useCallback(()=>a(e).then(_=>!a3(_)&&t()),[a,e,t]);return y.jsx(io,{open:n,title:"Delete short URL",variant:"danger",confirmText:c?"Deleting...":"Delete",confirmDisabled:u!==OC||c,onConfirm:w,onClose:x,onClosed:()=>m&&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(ni,{label:y.jsxs(y.Fragment,{children:["Type ",y.jsx("b",{children:OC})," to confirm deletion."]}),type:"text",placeholder:OC,value:u,onChange:_=>f(_.target.value),onKeyDown:_=>_.key==="Enter"&&w()}),p&&y.jsx(qr,{variant:T_e(v)?"warning":"error",size:"sm",className:"mt-2",children:y.jsx(eo,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]})})},SF=({amount:e=0,loading:t=!1,...n})=>y.jsxs(Dt,{...n,disabled:t,children:[y.jsx(Ke,{icon:MY})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",Rn(e),")"]})]}),Y8=20,CF=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Mn(CF),[{tags:r,search:i,startDate:a,endDate:s,orderBy:u,tagsMode:f}]=Gb(),{flag:c,setToTrue:p,setToFalse:m}=Sn(),v=I.useCallback(async()=>{const x=e/Y8,w=async(S=1)=>{const{data:C}=await t().listShortUrls({page:`${S}`,tags:r,searchTerm:i,startDate:a,endDate:s,orderBy:u,tagsMode:f,itemsPerPage:Y8});return S>=x?C:C.concat(await w(S+1))};p();const _=await w();n.exportShortUrls(_.map(S=>{var C;const{hostname:O,pathname:T}=new URL(S.shortUrl),P=T.substring(1);return{createdAt:S.dateCreated,domain:O,shortCode:P,shortUrl:S.shortUrl,longUrl:S.longUrl,title:S.title??"",tags:S.tags.join("|"),visits:((C=S==null?void 0:S.visitsSummary)==null?void 0:C.total)??S.visitsCount??0}})),m()},[e,t,s,u,n,i,a,p,m,r,f]);return y.jsx(SF,{loading:c,className:"max-lg:w-full",amount:e,onClick:v})},Twe=Nn(CF,["apiClientFactory","ReportExporter"]),jwe="yyyy-MM-dd",AF="yyyy-MM-dd HH:mm",Pl=()=>new Date,g3=e=>typeof e!="string",v3=(e,t)=>!e||!g3(e)?e:t?_y(e,t):ore(e),Rl=e=>v3(e,void 0),pl=e=>v3(e,jwe),hm=e=>v3(e,AF),wi=e=>g3(e)?e:Ol(e),Im=(e,t,n)=>{const r=wi(e),i=t&&wi(t),a=n&&wi(n);if(i&&a)try{return ure(r,{start:i,end:a})}catch{return!1}return i?gA(r,i)||lre(r,i):a?gA(r,a)||xy(r,a):!0},gu=(e,t)=>gA(e,t)||xy(e,t),O0=({date:e,format:t=AF,relative:n=!1})=>{const r=g3(e)?e:Ol(e);return y.jsx("time",{dateTime:`${sre(r)}000`,children:n?`${are(Pl(),r)} ago`:_y(r,t)})},OF=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${eF(t)}/${r}${i}`},EF=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const a=us();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx(Pr,{to:OF(a,e,t),...i,children:r})},Pwe=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:a,validUntil:s}=t,u=(r==null?void 0:r.total)??n??0;return i&&u>=i?{icon:EK,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&&xy(wi(s),Pl())?{icon:XP,className:"text-danger",description:`This short URL cannot be visited since ${hm(wi(s))}`}:a&&xy(Pl(),wi(a))?{icon:XP,className:"text-warning",description:`This short URL will start working on ${hm(wi(a))}`}:{icon:Lu,className:"text-lm-brand dark:text-dm-brand",description:"This short URL can be visited normally"}},Rwe=({shortUrl:e})=>{const{icon:t,className:n,description:r}=I.useMemo(()=>Pwe(e),[e]);return y.jsx("span",{className:"cursor-help",title:r,children:y.jsx(Ke,{icon:t,className:n})})},TF=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{anchor:i,tooltip:a}=ao(),{maxVisits:s,validSince:u,validUntil:f}=(t==null?void 0:t.meta)??{},c=!!s||!!u||!!f,p=y.jsx(EF,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:je("inline-block transition-all duration-300",{"scale-150":n}),children:Rn(e)})});return c?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"whitespace-nowrap",children:[p,y.jsxs("small",{className:"cursor-help",...i,children:[s&&y.jsxs(y.Fragment,{children:[" / ",Rn(s)]}),y.jsx("sup",{className:"ml-1",children:y.jsx(Ke,{icon:B0})})]})]}),y.jsx(oo,{...a,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:Rn(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:hm(wi(u))}),"."]}),f&&y.jsxs("li",{children:["This short URL will not accept visits after ",y.jsx("b",{className:"whitespace-nowrap",children:hm(wi(f))}),"."]})]})})]}):p},rd=({className:e,...t})=>y.jsx("button",{type:"button",className:je("rounded-sm focus-ring cursor-pointer",e),...t}),Mwe=e=>!!e.onClose,Nwe=e=>!!e.onClick,y3=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,a=Nwe(e),s=Mwe(e),u=a?rd:"span",f=I.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(u,{className:je("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":a},r),style:f,onClick:a?e.onClick:void 0,"data-testid":"tag",children:[n??t,s&&y.jsx(rd,{"aria-label":`Remove ${t}`,className:"p-0 text-lg leading-5.5",onClick:e.onClose,children:y.jsx(Ke,{icon:vE,size:"sm"})})]})},Lwe=({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(y3,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),jF=({shortUrl:e,onTagClick:t})=>{var n,r,i,a;const{ShortUrlsRowMenu:s,ColorGenerator:u,useTimeoutToggle:f}=Mn(jF),[c,p]=f({initialValue:!1,delay:500}),m=I.useRef(!0),[{excludeBots:v}]=Gb(),x=Xn("visits"),w=v??(x==null?void 0:x.excludeBots);return I.useEffect(()=>{m.current||p(),m.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,p]),y.jsxs(Xe.Row,{className:"relative",children:[y.jsx(Xe.Cell,{className:"whitespace-nowrap",columnName:"Created at:",children:y.jsx(O0,{date:e.dateCreated})}),y.jsx(Xe.Cell,{columnName:"Short URL:",children:y.jsxs("span",{className:"lg:whitespace-nowrap inline-flex items-center gap-x-2",children:[y.jsx(Ci,{href:e.shortUrl,className:"max-md:break-all lg:truncate max-w-72"}),y.jsx(_9,{text:e.shortUrl})]})}),y.jsx(Xe.Cell,{className:"break-all",columnName:`${e.title?"Title":"Long URL"}:`,children:y.jsx(Ci,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx(Xe.Cell,{className:"break-all [&]:lg:hidden",columnName:"Long URL:",children:y.jsx(Ci,{href:e.longUrl})}),y.jsx(Xe.Cell,{columnName:"Tags:",children:y.jsx(Lwe,{tags:e.tags,colorGenerator:u,onTagClick:t})}),y.jsx(Xe.Cell,{className:"lg:text-right",columnName:"Visits:",children:y.jsx(TF,{visitsCount:(w?(i=e.visitsSummary)==null?void 0:i.nonBots:(a=e.visitsSummary)==null?void 0:a.total)??e.visitsCount??0,shortUrl:e,active:c,asLink:!0})}),y.jsx(Xe.Cell,{columnName:"Status:",className:"max-lg:border-none",children:y.jsxs("div",{className:"inline-flex gap-2",children:[y.jsx(Rwe,{shortUrl:e}),e.hasRedirectRules&&y.jsx(EF,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:y.jsx(Ke,{icon:y7})})]})}),y.jsx(Xe.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:y.jsx(s,{shortUrl:e})})]})},Dwe=Nn(jF,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),PF=I.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>y.jsxs("div",{className:je("relative rounded w-12",r),style:{backgroundColor:t,borderColor:t},children:[y.jsx(ei,{className:"w-full h-full cursor-pointer relative z-1 opacity-0",type:"color",value:t,onChange:a=>n(a.target.value),ref:i,name:e,"aria-label":e.replace("-"," ")}),y.jsx(Ke,{icon:WY,className:"absolute top-1/2 left-1/2 -translate-1/2",style:{color:IE(t.substring(1))?"#000":"#fff"}})]})),K8=({color:e,onChange:t,name:n})=>{const r=I.useRef(null);return y.jsxs("div",{className:"flex",children:[y.jsx(PF,{name:`${n}-picker`,color:e,onChange:t,className:"rounded-r-none",ref:r}),y.jsx(ei,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input",className:"grow rounded-l-none"})]})};function kwe(e){switch(e){case"L":return 1;case"M":return .5;default:return .3}}const Iwe=I.forwardRef(({data:e,color:t="#000000",bgColor:n="#ffffff",margin:r=0,errorCorrection:i="L",size:a=300,drawType:s="canvas",logo:u},f)=>{const c=I.useRef(null),p=I.useRef(new Tre),m=I.useCallback((x,w)=>p.current.download({name:x,extension:w}),[]),v=I.useCallback(x=>new Promise((w,_)=>{const S=p.current.getRawData(x),C=new FileReader;C.onload=()=>{const{result:O}=C;O&&w(O.toString())},C.onerror=_,S.then(O=>{O instanceof Blob?C.readAsDataURL(O):_(new Error("QR code image blob not available"))})}),[]);return I.useImperativeHandle(f,()=>({download:m,getDataUri:v}),[m,v]),I.useEffect(()=>{const x=c.current;p.current.append(x)},[]),I.useEffect(()=>{p.current.update({type:s,data:e,width:a+r,height:a+r,margin:r,dotsOptions:{color:t},backgroundOptions:{color:n},qrOptions:{errorCorrectionLevel:i},imageOptions:{margin:5,imageSize:kwe(i)},image:u})},[n,t,e,s,i,u,r,a]),y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"#qr-code-canvas-container canvas { max-width: 100% }"}}),y.jsx("div",{ref:c,id:"qr-code-canvas-container"})]})}),Uwe=async({text:e,onCopy:t},n=navigator)=>{var r;const i=typeof e=="string"?e:await e;return(r=n.clipboard)==null?void 0:r.writeText(i).then(()=>t==null?void 0:t({text:i,copied:!0})).catch(()=>t==null?void 0:t({text:i,copied:!1}))},Z8=({name:e,value:t,step:n,min:r,max:i,onChange:a})=>{const s=I.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=>a(Number(u.target.value))})]})},Bwe=({shortUrl:{shortUrl:e,shortCode:t},onClose:n,isOpen:r,qrDrawType:i})=>{const a=Xn("qrCodes",dd),[{size:s,margin:u,color:f,bgColor:c,errorCorrection:p,format:m},v]=I.useState(a),x=I.useCallback(V=>v(X=>({...X,...V})),[]),w=I.useRef(null),[_,S]=I.useState(),C=I.useCallback(V=>{var X;const Z=(X=V.target.files)==null?void 0:X[0];Z&&S({url:URL.createObjectURL(new Blob([Z],{type:Z.type})),name:Z.name})},[]),O=I.useRef(null),T=I.useCallback(()=>{var V;return(V=O.current)==null?void 0:V.download(`${t}-qr-code`,m)},[m,t]),[P,j]=Z0({}),R=I.useCallback(()=>{var V;const X=((V=O.current)==null?void 0:V.getDataUri(m))??"";return Uwe({text:X,onCopy:j})},[m,j]),$=I.useCallback(()=>{v(a),S(void 0)},[a]);return y.jsx(io,{size:"lg",open:r,onClose:n,title:y.jsxs(y.Fragment,{children:["QR code for ",y.jsx(Ci,{href:e})]}),onClosed:$,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(Iwe,{ref:O,data:e,size:s,margin:u,errorCorrection:p,color:f,bgColor:c,logo:_==null?void 0:_.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(Z8,{name:"size",value:s,onChange:V=>x({size:V}),step:10,min:50,max:1e3}),y.jsx(Z8,{name:"margin",value:u,onChange:V=>x({margin:V}),step:1,min:0,max:100}),y.jsx(Q9,{errorCorrection:p,onChange:V=>x({errorCorrection:V})}),y.jsx(K8,{name:"color",color:f,onChange:V=>x({color:V})}),y.jsx(K8,{name:"background",color:c,onChange:V=>x({bgColor:V})}),!_&&y.jsxs(y.Fragment,{children:[y.jsxs(Dt,{variant:"secondary",onClick:()=>{var V;return(V=w.current)==null?void 0:V.click()},children:[y.jsx(Ke,{icon:cJ}),"Select logo"]}),y.jsx("input",{ref:w,type:"file",accept:"image/*","aria-hidden":!0,tabIndex:-1,className:"hidden",onChange:C,"data-testid":"logo-input"})]}),_&&y.jsxs(Dt,{variant:"secondary",onClick:()=>S(void 0),children:[y.jsx(Ke,{icon:z0}),y.jsxs("div",{className:"truncate",children:["Clear logo (",_.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(J9,{format:m,onChange:V=>x({format:V})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Dt,{onClick:R,"aria-label":"Copy data URI",title:"Copy data URI",className:"h-full",children:y.jsx(Ke,{icon:P?Lu:y9,fixedWidth:!0})}),y.jsxs(Dt,{solid:!0,onClick:T,className:"grow",children:["Download ",y.jsx(Ke,{icon:m7})]})]})]})]})]})})},RF=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r}=Mn(RF),{flag:i,setToTrue:a,setToFalse:s}=Sn(),{flag:u,setToTrue:f,setToFalse:c}=Sn(),p=$b(),m=to("shortUrlRedirectRules"),{confirmDeletions:v=!0}=Xn("shortUrlsList",{}),x=I.useCallback(async()=>{const S=await t(e);a3(S)||n(e)},[t,e,n]),w=us(),_=I.useCallback(S=>OF(w,e,S),[w,e]);return y.jsxs(y.Fragment,{children:[y.jsxs(fn,{menuAlignment:"right",children:[y.jsxs(fn.Item,{to:_("visits"),className:"gap-1.5",children:[y.jsx(Ke,{icon:gE,fixedWidth:!0})," Visit stats"]}),p&&y.jsxs(y.Fragment,{children:[y.jsxs(fn.Item,{className:"gap-1.5",disabled:!p.canAddItemWithName(e.shortUrl),onClick:()=>p.addItemToCompare({name:e.shortUrl,query:f3(e)}),children:[y.jsx(Ke,{icon:U0,fixedWidth:!0})," Compare visits"]}),y.jsx(fn.Separator,{})]}),y.jsxs(fn.Item,{to:_("edit"),className:"gap-1.5",children:[y.jsx(Ke,{icon:mE,fixedWidth:!0})," Edit short URL"]}),m&&y.jsxs(fn.Item,{to:_("redirect-rules"),className:"gap-1.5",children:[y.jsx(Ke,{icon:y7,fixedWidth:!0})," Manage redirect rules"]}),y.jsxs(fn.Item,{onClick:a,className:"gap-1.5",children:[y.jsx(Ke,{icon:CK,fixedWidth:!0})," QR code"]}),y.jsx(fn.Separator,{}),y.jsxs(fn.Item,{className:"[&]:text-danger gap-1.5",onClick:v?f:x,children:[y.jsx(Ke,{icon:f7,fixedWidth:!0})," Delete short URL"]})]}),y.jsx(Bwe,{shortUrl:e,isOpen:i,onClose:s}),y.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:u,onClose:c})]})},zwe=Nn(RF,["DeleteShortUrlModal"]),MF="shlink/shortUrlCreation",X8={saving:!1,saved:!1,error:!1},$we=e=>Zn(`${MF}/createShortUrl`,t=>e().createShortUrl(t)),Fwe=e=>{const{reducer:t,actions:n}=Un({name:MF,initialState:X8,reducers:{resetCreateShortUrl:()=>X8},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Ri(s)})),i.addCase(e.fulfilled,(a,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},NF="shlink/shortUrlEdition",qwe={saving:!1,saved:!1,error:!1},Vwe=e=>Zn(`${NF}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),Hwe=e=>Un({name:NF,initialState:qwe,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),Q8="shlink/shortUrlsDetails",J8={loading:!1,error:!1},Gwe=e=>{const t=Zn(`${Q8}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:a}=i(),s=await Promise.all(r.map(async u=>{var f;const{shortCode:c,domain:p}=u,m=(f=a==null?void 0:a.shortUrls)==null?void 0:f.data.find(v=>yp(v,c,p));return[u,m??await e().getShortUrl({shortCode:c,domain:p})]}));return new Map(s)}),{reducer:n}=Un({name:Q8,initialState:J8,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({loading:!1,error:!0,errorData:Ri(a)})),r.addCase(t.fulfilled,(i,{payload:a})=>({...J8,shortUrls:a}))}});return{reducer:n,getShortUrlsDetails:t}},Wwe=({domains:e,value:t,onChange:n})=>{const{flag:r,setToTrue:i,setToFalse:a}=Sn(),s=!t,u=I.useCallback(()=>{n(""),a()},[n,a]),f=I.useCallback(()=>{n(""),i()},[n,i]);return r?y.jsxs("div",{className:"flex",children:[y.jsx(ei,{value:t??"",placeholder:"Domain",onChange:c=>n(c.target.value),className:"flex-grow rounded-r-none [&]:border-r-0"}),y.jsx(Dt,{variant:"secondary",type:"button",className:"rounded-l-none","aria-label":"Back to domains list",title:"Existing domains",onClick:u,children:y.jsx(Ke,{icon:iK})})]}):y.jsxs(et,{buttonContent:s?"Domain":`Domain: ${t}`,buttonClassName:je("w-full",{"text-placeholder":s}),children:[e.map(({domain:c,isDefault:p})=>y.jsxs(et.Item,{selected:(t===c||p)&&s,onClick:()=>n(c),className:"flex justify-between items-center",children:[c,p&&y.jsx(Sf,{children:"default"})]},c)),y.jsx(et.Separator,{}),y.jsx(et.Item,{onClick:f,children:y.jsx("i",{children:"New domain"})})]})},EC=({icon:e,className:t,...n})=>{const r=I.useRef(null);return y.jsxs("div",{className:"relative",children:[y.jsx(ei,{className:je("pr-11",t),ref:r,...n}),y.jsx(Ke,{icon:e,fixedWidth:!0,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},Ywe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...a})=>{const s=I.useCallback(({target:f})=>{if(!f.value){r==null||r(null);return}r==null||r(wi(f.value))},[r]),u=I.useMemo(()=>i?hm:pl,[i]);return y.jsx(ei,{...a,type:i?"datetime-local":"date",value:u(n)??"",max:u(t)??void 0,min:u(e)??void 0,onChange:s})},E0=({label:e,id:t,...n})=>{const r=I.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),y.jsx(Ywe,{id:t??r,...n})]})},Kwe=({className:e,placement:t,children:n})=>{const{anchor:r,tooltip:i}=ao({placement:t});return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,...r,"data-placement":t,"data-testid":"tooltip-anchor",children:y.jsx(Ke,{icon:B0})}),y.jsx(oo,{...i,children:n})]})},TC=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("div",{className:"flex items-center gap-x-2",children:[y.jsxs(xa,{className:"inline-flex items-center gap-x-1.5",children:[y.jsx(LE,{checked:n,onChange:r}),e]}),y.jsx(Kwe,{placement:"right",children:t})]}),Zwe=e=>y.jsx(io,{...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"})]})]})}),Xwe=()=>{const{flag:e,setToFalse:t,setToTrue:n}=Sn();return y.jsxs(y.Fragment,{children:[y.jsx(rd,{title:"What does this mean?",onClick:n,children:y.jsx(Ke,{icon:B0})}),y.jsx(Zwe,{open:e,onClose:t})]})},Iv=e=>typeof e=="string"?Ol(e):e,Qwe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,LF=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:a})=>{var s,u,f;const{TagsSelector:c}=Mn(LF),[p,m]=I.useState(r),v=Qwe(p),x=to("deviceLongUrls"),w=to("urlValidation"),_=w||v,S=I.useCallback(()=>m(r),[r]),C=I.useCallback((R,$)=>Su(R)?R:Su($)?null:void 0,[]),O=I.useCallback((R,$)=>m(({deviceLongUrls:V={},...X})=>{var Z;return{...X,deviceLongUrls:{...V,[R]:C($,(Z=r.deviceLongUrls)==null?void 0:Z[R])}}}),[r.deviceLongUrls,C]),T=I.useCallback(R=>m($=>({...$,tags:R})),[]),P=I.useCallback(async R=>(R.preventDefault(),n(p).then($=>v&&!a3($)&&S()).catch(()=>{})),[v,n,S,p]),j=I.useMemo(()=>y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(ei,{size:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:p.longUrl,onChange:R=>m($=>({...$,longUrl:R.target.value}))}),y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[e&&v&&y.jsx("div",{className:"w-full lg:w-1/2",children:y.jsx(ei,{size:"lg",placeholder:"Custom slug",value:p.customSlug??"",onChange:R=>m($=>({...$,customSlug:R.target.value}))})}),y.jsx("div",{className:je("w-full",{"lg:w-1/2":e}),children:y.jsx(c,{tags:i.tags,selectedTags:p.tags??[],onChange:T})})]})]}),[c,e,T,v,p,i.tags]);return y.jsxs("form",{name:"shortUrlForm",onSubmit:P,className:"flex flex-col gap-4",children:[e&&j,!e&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("div",{className:je({"sm:w-1/2":x,"w-full":!x}),children:y.jsx(It,{title:"Main options",className:"card",children:j})}),x&&y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(It,{title:"Device-specific long URLs",bodyClassName:"flex flex-col gap-y-4",className:"card",children:[y.jsx(EC,{type:"url",icon:Pre,placeholder:"Android-specific redirection",value:((s=p.deviceLongUrls)==null?void 0:s.android)??"",onChange:({target:R})=>O("android",R.value)}),y.jsx(EC,{type:"url",icon:jre,placeholder:"iOS-specific redirection",value:((u=p.deviceLongUrls)==null?void 0:u.ios)??"",onChange:({target:R})=>O("ios",R.value)}),y.jsx(EC,{type:"url",icon:TK,placeholder:"Desktop-specific redirection",value:((f=p.deviceLongUrls)==null?void 0:f.desktop)??"",onChange:({target:R})=>O("desktop",R.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(It,{title:"Customize the short URL",bodyClassName:"flex flex-col gap-4",className:"card h-full",children:[y.jsx(ei,{placeholder:"Title",value:p.title??"",onChange:({target:R})=>m($=>({...$,title:C(R.value,r.title)}))}),v&&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(ei,{placeholder:"Custom slug",value:p.customSlug??"",onChange:R=>m($=>({...$,customSlug:R.target.value})),disabled:Su(p.shortCodeLength)})}),y.jsx("div",{className:"lg:w-1/2",children:y.jsx(ei,{type:"number",placeholder:"Short code length",value:p.shortCodeLength??"",onChange:R=>m($=>({...$,shortCodeLength:R.target.value})),min:4,disabled:Su(p.customSlug)})})]}),y.jsx(Wwe,{value:p.domain,onChange:R=>m($=>({...$,domain:R})),domains:a.domains})]})]})}),y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(It,{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(E0,{label:"Enabled since",withTime:!0,maxDate:p.validUntil?Iv(p.validUntil):void 0,value:p.validSince?Iv(p.validSince):null,onChange:R=>m($=>({...$,validSince:Rl(R)}))})}),y.jsx("div",{className:"lg:w-1/2",children:y.jsx(E0,{label:"Enabled until",withTime:!0,minDate:p.validSince?Iv(p.validSince):void 0,value:p.validUntil?Iv(p.validUntil):null,onChange:R=>m($=>({...$,validUntil:Rl(R)}))})})]}),y.jsx(ni,{label:"Maximum visits allowed:",type:"number",min:1,placeholder:"25...",value:p.maxVisits??"",onChange:R=>m($=>({...$,maxVisits:Su(R.target.value)?Number(R.target.value):null}))})]})})]}),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(It,{title:"Extra checks",className:"h-full",children:[w&&y.jsx(TC,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:p.validateUrl,onChange:R=>m($=>({...$,validateUrl:R})),children:"Validate URL"}),v&&y.jsxs("p",{className:"inline-flex items-center gap-x-2",children:[y.jsxs(xa,{className:"inline-flex items-center gap-x-1.5",children:[y.jsx(LE,{checked:p.findIfExists,onChange:R=>m($=>({...$,findIfExists:R}))}),"Use existing URL if found"]}),y.jsx(Xwe,{})]})]})}),y.jsx("div",{className:je("w-full",{"sm:w-1/2":_}),children:y.jsxs(It,{title:"Configure behavior",children:[y.jsx(TC,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:p.crawlable,onChange:R=>m($=>({...$,crawlable:R})),children:"Make it crawlable"}),y.jsx(TC,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:p.forwardQuery,onChange:R=>m($=>({...$,forwardQuery:R})),children:"Forward query params on redirect"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(Dt,{type:"submit",inline:!0,disabled:t||!p.longUrl,className:"max-md:w-full",children:t?"Saving...":"Save"})})]})},Jwe=Nn(LF,["TagsSelector"]),e2e=({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(E0,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"flex flex-col",children:y.jsx(E0,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:a=>i(a&&Af(a))})})]}),Yb="all",DF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Yb]:void 0},kF=Object.keys(DF),t2e=e=>!e||!e.startDate&&!e.endDate,T0=e=>typeof e=="string"&&kF.includes(e),n2e=kF.filter(e=>e!==Yb),eI=e=>e?wi(e):null,IF=(e,t)=>({startDate:eI(e),endDate:eI(t)}),r2e=e=>{if(!(!e||t2e(e)))return e.startDate&&!e.endDate?`Since ${pl(e.startDate)}`:!e.startDate&&e.endDate?`Until ${pl(e.endDate)}`:`${pl(e.startDate)} - ${pl(e.endDate)}`},tI=e=>{if(!(!e||e===Yb))return T0(e)?DF[e]:r2e(e)},Wi=e=>$u(wy(Pl(),e)),Jc=e=>({startDate:e,endDate:Af(Pl())}),UF=e=>{var t;return((t=[[()=>e==="today",()=>Jc($u(Pl()))],[()=>e==="yesterday",()=>({startDate:Wi(1),endDate:Af(wy(Pl(),1))})],[()=>e==="last7Days",()=>Jc(Wi(7))],[()=>e==="last30Days",()=>Jc(Wi(30))],[()=>e==="last90Days",()=>Jc(Wi(90))],[()=>e==="last180Days",()=>Jc(Wi(180))],[()=>e==="last365Days",()=>Jc(Wi(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},i2e=e=>{var t;const n=wi(e);return((t=[[()=>gu($u(Pl()),n),"today"],[()=>gu(Wi(1),n),"yesterday"],[()=>gu(Wi(7),n),"last7Days"],[()=>gu(Wi(30),n),"last30Days"],[()=>gu(Wi(90),n),"last90Days"],[()=>gu(Wi(180),n),"last180Days"],[()=>gu(Wi(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??Yb},BF=e=>T0(e)?UF(e):e,zF=e=>!!(e&&e.startDate),a2e=({startDate:e,endDate:t})=>{const n=sU(Af(t??new Date),$u(e))+1,r=wy($u(e),n),i=wy(Af(e),1);return{startDate:r,endDate:i}},o2e=e=>{if(zF(e))return sU(e.endDate??new Date,e.startDate)},b3=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=I.useMemo(()=>tI(t)??n,[t,n]),[a,s]=I.useMemo(()=>T0(t)?[void 0,t]:[t,void 0],[t]),u=I.useCallback(f=>{T0(f)?e(UF(f),f):e(f)},[e]);return y.jsxs(et,{buttonDisabled:r,buttonContent:i,containerClassName:"[&]:block",buttonClassName:"w-full",children:[y.jsx(et.Item,{selected:s==="all",onClick:()=>u("all"),children:n}),y.jsx(et.Separator,{}),n2e.map(f=>y.jsx(et.Item,{selected:s===f,onClick:()=>u(f),children:tI(f)},f)),y.jsx(et.Separator,{}),y.jsx(et.Misc,{children:y.jsx(e2e,{...a,onStartDateChange:f=>u({...a,startDate:f}),onEndDateChange:f=>u({...a,endDate:f})})})]})},s2e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},l2e=({onChange:e,selected:t={},domains:n})=>{const r=to("filterShortUrlsByDomain"),{excludeBots:i=!1,excludeMaxVisitsReached:a=!1,excludePastValidUntil:s=!1,domain:u}=t,f=I.useCallback(p=>e({...t,...p}),[e,t]),c=I.useCallback(p=>f({[p]:!(t!=null&&t[p])}),[f,t]);return y.jsxs(et,{buttonContent:"Filters",buttonClassName:"w-full",menuAlignment:"right",children:[y.jsx(et.Title,{children:"Visits:"}),y.jsx(et.Item,{selected:i,onClick:()=>c("excludeBots"),children:"Ignore visits from bots"}),y.jsx(et.Separator,{}),y.jsx(et.Title,{children:"Short URLs:"}),y.jsx(et.Item,{selected:a,onClick:()=>c("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(et.Item,{selected:s,onClick:()=>c("excludePastValidUntil"),children:"Exclude enabled in the past"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(et.Separator,{}),y.jsxs(et.Title,{children:["Domain: ",!n&&y.jsx("i",{children:"loading..."})]}),n==null?void 0:n.map(p=>{const m=p.isDefault?td:p.domain,v=u===m;return y.jsx(et.Item,{selected:v,onClick:()=>f({domain:v?void 0:m}),children:p.domain},p.domain)})]}),y.jsx(et.Separator,{}),y.jsx(et.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"})]})},$F=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:a})=>{const{ExportShortUrlsBtn:s,TagsSelector:u}=Mn($F),[{search:f,tags:c,startDate:p,endDate:m,excludeBots:v,excludeMaxVisitsReached:x,excludePastValidUntil:w,domain:_,tagsMode:S="any"},C]=Gb(),O=Xn("visits"),[T,P]=I.useState(),j=I.useCallback(({startDate:Y,endDate:te},ae)=>{C({startDate:Rl(Y)??void 0,endDate:Rl(te)??void 0}),P(ae)},[C]),R=I.useCallback(Y=>C({search:Y||void 0}),[C]),$=I.useCallback(Y=>C({tags:Y}),[C]),V=I.useCallback(()=>C({tagsMode:S==="any"?"all":"any"}),[S,C]),{anchor:X,tooltip:Z}=ao({placement:"left"});return y.jsxs("div",{className:je("flex flex-col gap-y-4",e),children:[y.jsx(cd,{defaultValue:f,onChange:R}),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:c,onChange:$,containerClassName:je(c.length>1&&"[&]:rounded-r-none")})}),c.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(Dt,{variant:"secondary",onClick:V,"aria-label":"Change tags mode",className:"[&]:border-l-none [&]:rounded-l-none",...X,children:y.jsx(Ke,{className:"text-2xl",icon:S==="all"?h7:tK})}),y.jsx(oo,{...Z,children:S==="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(b3,{defaultText:"All short URLs",dateRangeOrInterval:T??IF(p,m),onDatesChange:j})}),y.jsx(l2e,{selected:{excludeBots:v??(O==null?void 0:O.excludeBots),excludeMaxVisitsReached:x,excludePastValidUntil:w,domain:_},onChange:C,domains:a.loading?void 0:a.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(Om,{containerClassName:"[&]:block",buttonClassName:"w-full",prefixed:!1,items:s2e,order:n,onChange:({field:Y,dir:te})=>r(Y,te)})}),y.jsx("div",{className:"max-lg:w-1/2",children:y.jsx(s,{amount:t})})]})]})]})},u2e=Nn($F,["ExportShortUrlsBtn","TagsSelector"]);function bp({currentOrder:e,field:t,className:n="ml-1"}){return!e.dir||e.field!==t?null:y.jsx(Ke,{icon:e.dir==="ASC"?GY:p7,className:n})}const c2e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=us(),a=I.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:je("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(Q0,{urlForPage:a,currentPage:n,pagesCount:r})})},f2e={field:"dateCreated",dir:"DESC"},FF=Aa(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:a,ShortUrlsFilteringBar:s}=Mn(FF),{page:u}=od(),f=xr(),[{tags:c,search:p,startDate:m,endDate:v,orderBy:x,tagsMode:w,excludeBots:_,excludePastValidUntil:S,excludeMaxVisitsReached:C,domain:O},T]=Gb(),P=GE(),[j,R]=I.useState(x??((n=P.shortUrlsList)==null?void 0:n.defaultOrdering)??f2e),{pagination:$}=(t==null?void 0:t.shortUrls)??{},V=I.useMemo(()=>{var ne;return _??((ne=P.visits)==null?void 0:ne.excludeBots)},[_,(r=P.visits)==null?void 0:r.excludeBots]),X=I.useCallback((ne,H)=>{T({orderBy:{field:ne,dir:H}}),R({field:ne,dir:H})},[T]),Z=ne=>()=>X(ne,E9({currentOrderDir:j.dir,currentField:j.field,newField:ne})),Y=ne=>y.jsx(bp,{currentOrder:j,field:ne}),te=I.useCallback(ne=>T({tags:[...new Set([...c,ne])]}),[c,T]),ae=I.useCallback(({field:ne,dir:H})=>V&&ne==="visits"?{field:"nonBotVisits",dir:H}:{field:ne,dir:H},[V]),Q=s3();return I.useEffect(()=>{e({page:u,searchTerm:p,tags:c,startDate:m,endDate:v,orderBy:ae(j),tagsMode:w,excludePastValidUntil:S,excludeMaxVisitsReached:C,domain:O})},[e,ae,u,p,c,m,v,j,w,S,C,O]),y.jsxs(o3,{value:Q,children:[y.jsx(s,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:j,handleOrderBy:X,className:"mb-4"}),y.jsx(l3,{type:"short-urls",className:"mb-4"}),y.jsxs(It,{bodyClassName:je({"pb-0":!t.loading}),children:[y.jsx(a,{shortUrlsList:t,orderByColumn:Z,renderOrderIcon:Y,onTagClick:te}),!t.loading&&y.jsx(c2e,{paginator:$,currentQueryString:f.search})]})]})},()=>[Gr.visits]),d2e=Nn(FF,["ShortUrlsTable","ShortUrlsFilteringBar"]),jC=({children:e,danger:t})=>y.jsx(Xe.Row,{children:y.jsx(Xe.Cell,{colSpan:6,className:je("text-center",{"text-danger font-bold":t}),children:e})}),h2e=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:a}=e;return r?y.jsx(jC,{danger:!0,children:"Something went wrong while loading short URLs :("}):i?y.jsx(jC,{children:"Loading..."}):!a||a.data.length===0?y.jsx(jC,{children:"No results found"}):a==null?void 0:a.data.map(s=>y.jsx(n,{shortUrl:s,onTagClick:t},s.shortUrl))},qF=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r})=>{const{ShortUrlsRow:i}=Mn(qF),a=je({"cursor-pointer":!!e});return y.jsx(Xe,{className:"mb-[-1px] w-full",header:y.jsxs(Xe.Row,{children:[y.jsxs(Xe.Cell,{className:a,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),y.jsxs(Xe.Cell,{className:a,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),y.jsxs(Xe.Cell,{children:[y.jsxs(rd,{className:je("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",y.jsxs(rd,{className:je("p-0",a),onClick:e==null?void 0:e("longUrl"),children:[y.jsx("span",{className:"whitespace-nowrap",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),y.jsx(Xe.Cell,{children:"Tags"}),y.jsx(Xe.Cell,{className:a,onClick:e==null?void 0:e("visits"),children:y.jsxs("span",{className:"whitespace-nowrap",children:["Visits ",t==null?void 0:t("visits")]})}),y.jsx(Xe.Cell,{colSpan:2,"aria-hidden":!0})]}),children:y.jsx(h2e,{ShortUrlsRow:i,shortUrlsList:n,onTagClick:r})})},p2e=Nn(qF,["ShortUrlsRow"]),m2e=(e,t)=>{e.factory("ShortUrlsList",d2e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",p2e),e.factory("ShortUrlsRow",Dwe),e.factory("ShortUrlsRowMenu",zwe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",Jwe),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",Awe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Owe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Ewe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("ExportShortUrlsBtn",Twe),e.factory("ShortUrlsFilteringBar",u2e),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",nxe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Fwe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Hwe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",J_e,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",Gwe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",txe,"apiClientFactory"),e.serviceFactory("createShortUrl",$we,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",Q_e,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>nF),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",Vwe,"apiClientFactory")},g2e=({tag:e,onClose:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:a})=>{const{deleting:s,error:u,deleted:f,errorData:c}=i;return y.jsxs(io,{title:"Delete tag",variant:"danger",open:n,onClose:t,onClosed:()=>f&&a(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(qr,{variant:"error",size:"sm",className:"mt-2",children:y.jsx(eo,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]})},VF=({tag:e,editTag:t,onClose:n,tagEdited:r,isOpen:i,tagEdit:a})=>{const{ColorGenerator:s}=Mn(VF),[u,f]=I.useState(e),[c,p]=I.useState(s.getColorForKey(e)),{editing:m,error:v,edited:x,errorData:w}=a,_=I.useCallback(async()=>{await t({oldName:e,newName:u,color:c}),n()},[c,t,u,n,e]),S=I.useCallback(()=>x&&r({oldName:e,newName:u,color:c}),[c,x,u,e,r]);return y.jsxs(io,{title:"Edit tag",open:i,onClose:n,onClosed:S,onConfirm:_,confirmText:m?"Saving...":"Save",confirmDisabled:m,children:[y.jsxs("div",{className:"flex",children:[y.jsx(PF,{color:c,onChange:p,className:"rounded-r-none",name:"tag-color"}),y.jsx(ei,{className:"grow [&]:rounded-l-none",value:u,placeholder:"Tag",required:!0,onChange:({target:C})=>f(C.value)})]}),v&&y.jsx(qr,{variant:"error",size:"sm",className:"mt-2",children:y.jsx(eo,{errorData:w,fallbackMessage:"Something went wrong while editing the tag :("})})]})},v2e=Nn(VF,["ColorGenerator"]),HF=({onChange:e,placeholder:t,...n})=>{const{ColorGenerator:r}=Mn(HF),i=Xn("shortUrlCreation"),a=(i==null?void 0:i.tagFilteringMode)??"startsWith";return y.jsx(LJ,{...n,onTagsChange:e,getColorForTag:s=>r.getColorForKey(s),size:"lg",placeholder:t??"Add tags to the URL",searchMode:a})},y2e=Nn(HF,["ColorGenerator"]),WO="shlink/tagDelete",b2e={deleting:!1,deleted:!1,error:!1},GF=Vr(`${WO}/tagDeleted`),_2e=e=>{const t=Zn(`${WO}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Un({name:WO,initialState:b2e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({deleting:!1,deleted:!1,error:!0,errorData:Ri(a)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},_3="shlink/tagEdit",x2e={editing:!1,edited:!1,error:!1},WF=Vr(`${_3}/tagEdited`),w2e=(e,t)=>Zn(`${_3}/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})),S2e=e=>Un({name:_3,initialState:x2e,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:a}=r;return{oldName:i,newName:a,editing:!1,edited:!0,error:!1}})}}),x3="shlink/tagsList",PC={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},nI=(e,t)=>n=>n===e?t:n,rI=(e,t)=>e.filter(n=>n!==t),C2e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:a,nonBots:s}=i,u=n[r];return{...n,[r]:{...u,visitsSummary:u.visitsSummary&&{total:u.visitsSummary.total+a+s,bots:u.visitsSummary.bots+a,nonBots:u.visitsSummary.nonBots+s},visitsCount:(u.visitsCount??0)+a+s}}},{...t}),A2e=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),O2e=e=>Zn(`${x3}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...a})=>(r[i]=a,r),{});return{tags:Object.keys(n),stats:n}}),YF=Vr(`${x3}/filterTags`),E2e=(e,t)=>Un({name:x3,initialState:PC,reducers:{},extraReducers:n=>{n.addCase(YF,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(a=>a.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...PC,error:!0,errorData:Ri(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...PC,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(GF,({tags:r,filteredTags:i,...a},{payload:s})=>({...a,tags:rI(r,s),filteredTags:rI(i,s)})),n.addCase(WF,({tags:r,filteredTags:i,stats:a,...s},{payload:u})=>({...s,stats:{...a,[u.newName]:a[u.oldName]},tags:r.map(nI(u.oldName,u.newName)).sort(),filteredTags:i.map(nI(u.oldName,u.newName)).sort()})),n.addCase(Ad,(r,{payload:i})=>({...r,stats:C2e(A2e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:a})=>({...i,tags:r.concat(a.tags.filter(s=>!r.includes(s)))}))}}),T2e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},KF=Aa(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=Mn(KF),a=GE(),[s,u]=I.useState(((n=a.tags)==null?void 0:n.defaultOrdering)??{}),f=I.useMemo(()=>{const p=t.filteredTags.map(m=>{var v,x,w;const _=t.stats[m],S=((v=a.visits)!=null&&v.excludeBots?(x=_==null?void 0:_.visitsSummary)==null?void 0:x.nonBots:(w=_==null?void 0:_.visitsSummary)==null?void 0:w.total)??(_==null?void 0:_.visitsCount)??0;return{tag:m,visits:S,shortUrls:(_==null?void 0:_.shortUrlsCount)??0}});return T9(p,s)},[s,(r=a.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),c=s3();return t.loading?y.jsx(Xo,{loading:!0}):t.error?y.jsx(qr,{variant:"error",children:y.jsx(eo,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsx(o3,{value:c,children:y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(cd,{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(Om,{containerClassName:"[&]:block",buttonClassName:"w-full",items:T2e,order:s,onChange:u})})}),y.jsx(l3,{type:"tags"}),y.jsx(i,{sortedTags:f,currentOrder:s,orderByColumn:p=>()=>u(BE({currentField:s.field,currentOrderDir:s.dir,newField:p}))})]})})},()=>[Gr.visits]),j2e=Nn(KF,["TagsTable"]),P2e=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:a})=>a==null?void 0:a.contains("visits-table"))||document.querySelector(".modal")||r()};return $re({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},R2e=(e,t)=>{const[n,r]=I.useState(t),i=I.useCallback(a=>{const{location:s,history:u}=window,f=x9(s.search);f[e]=a,u.pushState(null,"",`${s.pathname}?${UE(f)}`),r(a)},[e]);return[n,i]},w3=e=>{const t=fd();return I.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},M2e=(e,t)=>{const n=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=I.useState(n());return I.useEffect(()=>{const a=()=>i(n());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n]),r},N2e=(e,t,n)=>{I.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])},L2e=20,ZF=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Mn(ZF),i=I.useRef(!0),{page:a=1}=fd(),[s,u]=R2e("page",Number(a)),f=I.useCallback(x=>{u(x),scrollTo(0,0)},[u]),c=pf(e,L2e),p=c.length>1,m=c[s-1]??[];I.useEffect(()=>{i.current||f(1),i.current=!1},[f,e]);const v="cursor-pointer top-(--header-height) sticky-cell";return y.jsxs(It,{bodyClassName:p?"pb-1":"",children:[y.jsxs(Xe,{header:y.jsxs(Xe.Row,{children:[y.jsxs(Xe.Cell,{onClick:t("tag"),className:v,children:["Tag ",y.jsx(bp,{currentOrder:n,field:"tag"})]}),y.jsxs(Xe.Cell,{onClick:t("shortUrls"),className:`lg:text-right ${v}`,children:["Short URLs ",y.jsx(bp,{currentOrder:n,field:"shortUrls"})]}),y.jsxs(Xe.Cell,{onClick:t("visits"),className:`lg:text-right ${v}`,children:["Visits ",y.jsx(bp,{currentOrder:n,field:"visits"})]}),y.jsx(Xe.Cell,{className:v,children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[m.length===0&&y.jsx(Xe.Row,{children:y.jsx(Xe.Cell,{colSpan:4,className:"text-center",children:"No tags found"})}),m.map(x=>y.jsx(r,{tag:x},x.tag))]}),p&&y.jsx("div",{className:je("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(Q0,{pagesCount:c.length,currentPage:s,onPageChange:f})})]},s)},D2e=Nn(ZF,["TagsTableRow"]),S3=({color:e,testId:t})=>y.jsx("div",{"data-testid":t,style:{backgroundColor:e},className:je("inline-block w-[20px] h-[20px] rounded-full","align-[-4px] mr-1.5")}),k2e=({tag:e,colorGenerator:t})=>y.jsx(S3,{color:t.getColorForKey(e)}),XF=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Mn(XF),{flag:i,setToFalse:a,setToTrue:s}=Sn(),{flag:u,setToFalse:f,setToTrue:c}=Sn(),p=us(),m=$b();return y.jsxs(Xe.Row,{className:"max-lg:relative",children:[y.jsxs(Xe.Cell,{columnName:"Tag",children:[y.jsx(k2e,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx(Xe.Cell,{className:"lg:text-right",columnName:"Short URLs",children:y.jsx(Pr,{to:`${p}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Rn(e.shortUrls)})}),y.jsx(Xe.Cell,{className:"lg:text-right",columnName:"Visits",children:y.jsx(Pr,{to:`${p}/tag/${e.tag}/visits`,children:Rn(e.visits)})}),y.jsx(Xe.Cell,{className:"lg:text-right max-lg:absolute max-lg:top-1.25 max-lg:right-0 max-lg:p-0",children:y.jsxs(fn,{menuAlignment:"right",children:[y.jsxs(fn.Item,{onClick:c,className:"gap-1.5",children:[y.jsx(Ke,{icon:d7,fixedWidth:!0})," Edit"]}),y.jsxs(fn.Item,{className:"gap-1.5",disabled:!m||!m.canAddItemWithName(e.tag),onClick:()=>m==null?void 0:m.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Ke,{icon:U0,fixedWidth:!0})," Compare visits"]}),y.jsx(fn.Separator,{}),y.jsxs(fn.Item,{className:"[&]:text-danger gap-1.5",onClick:s,children:[y.jsx(Ke,{icon:XY,fixedWidth:!0})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,onClose:f,isOpen:u}),y.jsx(t,{tag:e.tag,onClose:a,isOpen:i})]})},I2e=Nn(XF,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),U2e=(e,t)=>{e.factory("TagsSelector",y2e),e.serviceFactory("DeleteTagConfirmModal",()=>g2e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",v2e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",I2e),e.factory("TagsTable",D2e),e.factory("TagsList",j2e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",S2e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",_2e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",E2e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",O2e,"apiClientFactory"),e.serviceFactory("filterTags",()=>YF),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>GF),e.serviceFactory("editTag",w2e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>WF)},B2e=new pU,z2e=e=>B2e.parse(e),$2e=6,iI="0123456789ABCDEF";function F2e(){return`#${u3($2e,()=>iI[Math.floor(Math.random()*iI.length)]).join("")}`}const aI=e=>e.toLowerCase().trim();class q2e{constructor(t){yl(this,"colors"),yl(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=aI(t);return this.colors[n]||this.setColorForKey(n,F2e())}setColorForKey(t,n){var r;const i=aI(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=IE(n)),this.lights[n]}}const QF=({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)},V2e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);QF(e,i,n)};class H2e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(a=>a.blob()),i=URL.createObjectURL(r);QF(this.window,i,n)}}class G2e{constructor(t,n){yl(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),yl(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),yl(this,"exportCsv",(r,i)=>{const a=this.jsonToCsv(i);V2e(this.window,a,r)}),this.window=t,this.jsonToCsv=n}}function W2e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",H2e,"fetch","window"),e.service("ColorGenerator",q2e,"TagColorsStorage"),e.constant("jsonToCsv",z2e),e.service("ReportExporter",G2e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>Z0)}const Um=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(It,{children:[y.jsxs("h2",{className:"flex justify-between items-center",children:[y.jsx(Wb,{}),y.jsx("span",{className:"text-center hidden sm:block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:je("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(TF,{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:je("flex justify-between items-center",t),children:e}),JF=({title:e,footer:t,children:n})=>y.jsxs(vn,{role:"document",children:[y.jsx(vn.Header,{children:e}),y.jsx(vn.Body,{children:n}),t&&y.jsx(vn.Footer,{className:"sticky bottom-0",children:t})]}),eq=I.createContext(null),{Provider:EOe}=eq,A3=e=>{const t=I.useContext(eq)??void 0,n=I.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?I.Fragment:Tle,dimensions:t,wrapperDimensions:n}},tq={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},Y2e={marginBottom:"5px",fontWeight:"bold"},nq={contentStyle:tq,labelStyle:Y2e,itemStyle:{padding:0}},oI=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],rq=e=>oI[e%oI.length],j0=()=>Ku()?"#46e587":"#1DAA58",K2e=()=>Ku()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",Z2e=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"space-y-1",children:e.map(({name:n,color:r,value:i},a)=>y.jsxs("li",{className:"flex items-center",children:[y.jsx(S3,{color:r,testId:`color-bullet-${a}`}),y.jsxs("small",{className:"truncate grow","data-testid":`name-${a}`,children:[n,t&&y.jsxs("b",{children:[" (",Rn(i),")"]})]})]},n))}),sI=e=>I.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:rq(r)})),[e]),X2e=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=sI(e),i=sI(t),a=i.length>0,s=Ku()?gee:mee,{ChartWrapper:u,dimensions:f,wrapperDimensions:c}=A3(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:c,children:y.jsx(u,{children:y.jsxs(Q1e,{...f,children:[y.jsx(Gi,{formatter:Rn,contentStyle:tq,itemStyle:{color:"white"}}),y.jsx(Ja,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:r.map((p,m)=>y.jsx(ml,{fill:p.color,stroke:s},`${p.name}-${m}`))}),a&&y.jsx(Ja,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:j0()})]})})})}),y.jsx("div",{className:"md:flex-5",children:y.jsx(Z2e,{chartData:r,showNumbers:n})})]})},lI=({title:e,...t})=>{const{flag:n,toggle:r}=Sn();return y.jsx(JF,{title:y.jsxs(C3,{children:[e,y.jsx(Jo,{checked:n,onChange:r,children:"Show numbers"})]}),children:y.jsx(X2e,{...t,showNumbersInLegend:n})})},Q2e=I.forwardRef(({visitsGroups:e},t)=>{const n=I.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],a)=>y.jsxs("li",{className:"inline",children:[y.jsx(S3,{color:iq(i)}),y.jsxs("strong",{children:[r," (",Rn(i.length),")"]})]},`${r}${a}`))})}),J2e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},eSe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},tSe={hourly:Jte,daily:ib,weekly:Qte,monthly:by},O3={hourly:e=>_y(e,"yyyy-MM-dd HH:00"),daily:e=>pl(e),weekly(e){const t=pl(Pp(e)),n=pl(sne(e));return`${t} - ${n}`},monthly:e=>_y(e,"yyyy-MM")},nSe=e=>{var t;const n=Object.values(e).filter(s=>s.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(s=>Ol(s[s.length-1].date)),a=oU(i);return((t=[[()=>ib(r,a)<=2,"hourly"],[()=>by(r,a)<=1,"daily"],[()=>by(r,a)<=6,"weekly"]].find(([s])=>s()))==null?void 0:t[1])??"monthly"},rSe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=Y9(t[r],i=>O3[e](Ol(i.date))),n),{}),iSe=(e,t)=>t.reduce((n,r)=>{const i=O3[e](Ol(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),aSe=(e,t)=>{const n=Object.values(t).filter(p=>p.length>0).map(p=>[...p].reverse());if(n.length===0)return[];const r=tSe[e],i=O3[e],a=eSe[e],s=n.flat(),u=Ol(s[0].date),f=Ol(s[s.length-1].date),c=r(f,u)||1;return[{formattedDate:i(u),date:u},...u3(c,p=>{const m=Gte(u,a(p));return{formattedDate:i(m),date:m}})]},iq=e=>{if(e.color)return e.color;const t={main:Op(),highlighted:lA,previous:j0()};return e.type?t[e.type]:Op()},uI=(e,t)=>I.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),oSe=(e,t,n)=>{const r=uI(e,"main"),i=uI(e,"highlighted"),a=I.useMemo(()=>n?iSe(t,r):{},[n,t,r]),s=I.useCallback((u,{payload:f})=>{const c=a[f.formattedDate]??[];n==null||n(c===i?[]:c)},[a,i,n]);return n&&{cursor:"pointer",onClick:s}},cI=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},aq=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,a]=I.useState(nSe(e)),s=M2e(767,n??window.matchMedia),u=I.useMemo(()=>{const Y=rSe(i,e),te=Object.keys(Y);return aSe(i,e).map(({formattedDate:ae,date:Q})=>({date:Q,formattedDate:ae,...te.reduce((ne,H)=>(ne[H]=Y[H][ae]??0,ne),{})}))},[i,e]),f=oSe(e,i,t),{flag:c,toggle:p,setToFalse:m}=Sn(),v=I.useId(),x=I.useRef(null),[w,_]=I.useState(s?300:400);I.useLayoutEffect(()=>{if(!c)return _(s?300:400),()=>{};const Y=new ResizeObserver(()=>{const te=window.innerHeight,{height:ae}=x.current.getBoundingClientRect();_(te-ae-98)});return Y.observe(x.current),()=>Y.disconnect()},[c,s,x]),N2e("Escape",m,c);const{ChartWrapper:S,dimensions:C,wrapperDimensions:O}=A3(w),[T,P]=I.useState(),[j,R]=I.useState(),$=I.useCallback(()=>{P(void 0),R(void 0)},[]),V=I.useCallback((Y,te)=>{const ae=cI(Y);te.button===0&&ae&&P(ae)},[]),X=I.useCallback(Y=>{const te=cI(Y);T&&te&&R(te)},[T]),Z=I.useCallback(()=>{if(!T||!j)return;const Y=[T.date,j.date],te=Kte(Y),ae=oU(Y);$(),r({startDate:te,endDate:ae})},[r,$,j,T]);return y.jsxs(vn,{className:je({"fixed top-0 bottom-0 left-0 right-0 z-1030":c}),"data-testid":"line-chart-card",children:[y.jsxs(vn.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(X0,{"aria-label":c?"Collapse":"Expand","aria-expanded":c,"aria-controls":v,size:"sm",onClick:p,children:y.jsx(Ke,{icon:c?TY:OK})}),y.jsx(et,{buttonContent:"Group by",buttonSize:"sm",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",menuClassName:"w-40",children:Object.entries(J2e).map(([Y,te])=>y.jsx(et.Item,{selected:i===Y,onClick:()=>a(Y),children:te},Y))})]})]}),y.jsxs(vn.Body,{id:v,children:[y.jsx(S,{...O,children:y.jsxs(X1e,{className:"select-none",data:u,...C,onMouseDown:V,onMouseMove:X,onMouseUp:Z,children:[y.jsx(Sd,{dataKey:"formattedDate"}),y.jsx(Cd,{tickFormatter:Rn,yAxisId:"1"}),y.jsx(Gi,{formatter:Rn,...nq}),y.jsx(JT,{strokeOpacity:Ku()?.1:.9}),Object.entries(e).map(([Y,te])=>te.length>0&&y.jsx(wd,{yAxisId:"1",dataKey:Y,type:"monotone",stroke:iq(te),strokeWidth:2,activeDot:te.type==="previous"?void 0:f,strokeDasharray:te.type==="previous"?"8 3":void 0},Y)),T&&j&&y.jsx(Dm,{yAxisId:"1",x1:T.formattedDate,x2:j.formattedDate})]})}),y.jsx(Q2e,{visitsGroups:e,ref:x})]})]})},sSe=({ranges:e,value:t,setValue:n})=>y.jsxs(et,{buttonContent:"Paginate",buttonVariant:"link",buttonClassName:"[&]:p-0",buttonSize:"sm",menuAlignment:"right",children:[e.map(r=>y.jsxs(et.Item,{selected:r===t,onClick:()=>n(r),children:[y.jsx("b",{children:r})," items per page"]},r)),y.jsx(et.Separator,{}),y.jsx(et.Item,{disabled:t===1/0,onClick:()=>n(1/0),children:y.jsx("i",{children:"Clear pagination"})})]}),fI=e=>e.startsWith("hidden_"),lSe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:a})=>{const s=I.useMemo(()=>Object.entries(e).map(([m,v])=>{const x=(n==null?void 0:n[m])??0,w=(t==null?void 0:t[m])??0,_=fI(m);return{name:m,amount:Math.max(v,w),nonHighlightedAmount:_?null:v-x,highlightedAmount:_?null:x,prevAmount:_?null:w}}),[e,t,n]),u=I.useMemo(()=>{const m=s.reduce((v,{name:x})=>v>x.length?v:x.length,0);return Math.min(150,m*7)},[s]),{ChartWrapper:f,dimensions:c,wrapperDimensions:p}=A3(Math.max(300,s.length*(t?44:22)));return y.jsx(f,{...p,children:y.jsxs(J1e,{layout:"vertical",data:s,barCategoryGap:3,...c,children:[y.jsx(Sd,{type:"number",dataKey:"amount",tickFormatter:Rn,domain:i?[0,i]:void 0}),y.jsx(Cd,{type:"category",dataKey:"name",width:u,interval:0,style:{fontSize:".8rem"},tickFormatter:m=>fI(m)?"":m}),y.jsx(JT,{strokeOpacity:Ku()?.05:.9}),y.jsx(Gi,{filterNull:!0,...nq,formatter:(m,v)=>[Rn(m),v==="highlightedAmount"?r:v==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),y.jsx(Wo,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:Op(),onClick:({name:m})=>a==null?void 0:a(m),children:s.map(m=>y.jsx(ml,{fill:hee(),stroke:Op(),strokeWidth:2},m.name))}),n&&y.jsx(Wo,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:lA,onClick:({name:m})=>a==null?void 0:a(m),children:s.map(m=>y.jsx(ml,{fill:pee,stroke:lA,strokeWidth:2},m.name))}),t&&y.jsx(Wo,{dataKey:"prevAmount",fill:j0(),children:s.map(m=>y.jsx(ml,{fill:K2e(),stroke:j0(),strokeWidth:2},m.name))})]})})},uSe=e=>typeof e=="string"?e.toLowerCase():e,cSe=([e])=>e,fSe=([,e])=>e,Uv=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:a,withPagination:s=!0,...u})=>{const[f,c]=I.useState({}),[p,m]=I.useState(1),[v,x]=I.useState(50),w=I.useCallback((V,X)=>{const Z=Object.entries(V),Y=f.field?Cte(Z,([te,ae])=>uSe(f.field===Object.keys(X)[0]?te:ae)):Z;return!f.dir||f.dir==="ASC"?Y:[...Y].reverse()},[f.dir,f.field]),_=I.useCallback(V=>{const X=V[p-1];if(p<V.length)return X;const Z=V[0].length;return[...X,...u3(Z-X.length,Y=>[`hidden_${Y}`,0])]},[p]),S=I.useCallback(V=>y.jsx(Q0,{currentPage:p,pagesCount:V,onPageChange:m}),[p]),C=I.useCallback((V,X,Z,Y)=>{const te=w(V,X),ae=te.map(cSe),Q=Z&&Object.entries({...pM(ae,ae.map(()=>0)),...Z}),ne=Y&&Object.entries({...pM(ae,ae.map(()=>0)),...Y});if(te.length<=v)return{currentPageStats:Object.fromEntries(te),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:ne&&Object.fromEntries(ne)};const H=pf(te,v),B=Q&&pf(Q,v),U=ne&&pf(ne,v);return{currentPageStats:Object.fromEntries(_(H)),currentPageHighlightedStats:B&&Object.fromEntries(_(B)),currentPagePrevStats:U&&Object.fromEntries(_(U)),pagination:S(H.length),max:QJ(Math.max(...te.map(fSe)))}},[_,w,v,S]),{currentPageStats:O,currentPagePrevStats:T,currentPageHighlightedStats:P,pagination:j,max:R}=I.useMemo(()=>C(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[C,n,t,i,e]),$=I.useMemo(()=>Object.keys(O),[O]);return y.jsx(JF,{title:y.jsxs(C3,{children:[r,y.jsxs("div",{className:"flex items-center gap-3",children:[a==null?void 0:a(j?$:void 0),s&&Object.keys(e).length>50&&y.jsx(sSe,{ranges:[50,100,200,500],value:v,setValue:V=>{x(V),m(1)}}),y.jsx(Om,{buttonVariant:"link",menuAlignment:"right",buttonSize:"sm",buttonClassName:"[&]:p-0",items:i,order:f,onChange:V=>{c(V),m(1)}})]})]}),footer:j&&y.jsx("div",{className:"flex justify-around items-center","data-testid":"chart-paginator",children:j}),children:y.jsx(lSe,{stats:O,prevStats:T,highlightedStats:P,max:R,...u})})},E3=e=>e.type!==void 0,dSe=e=>e.type!==void 0,hSe=e=>{const t=K9(e,n=>E3(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},oq=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:a,visit:s})=>a&&yp(a,t,n)&&Im(s.date,i,r)),sq=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>i&&Z_e(i,t)&&Im(a.date,r,n)),lq=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>(i==null?void 0:i.tags.includes(t))&&Im(a.date,r,n)),Bv=(e,t)=>Y9(e,n=>n[t]),pSe=e=>{const t=((e==null?void 0:e.startDate)&&Rl(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&Rl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},YO=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=pSe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},mSe=e=>zF(e.dateRange),gSe=({dateRange:e,...t})=>({...t,dateRange:a2e(e)}),dI=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Rl(t[e])||""},uq=()=>{const e=ro(),t=fd(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:a,loadPrevInterval:s,...u}=t,f=I.useMemo(()=>({dateRange:n!=null||r!=null?IF(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:a!==void 0?a==="true":void 0},loadPrevInterval:s!==void 0?s==="true":void 0}),[r,a,s,i,n]),c=I.useCallback(p=>{const{dateRange:m,visitsFilter:v={},loadPrevInterval:x}=rb(f,p),{excludeBots:w,orphanVisitsType:_}=v,S={...u,startDate:dI("startDate",m),endDate:dI("endDate",m),excludeBots:w===void 0?void 0:qO(w),orphanVisitsType:_,loadPrevInterval:x===void 0?void 0:qO(x)},C=UE(S),O=C?`?${C}`:"";e(O,{replace:!0,relative:"route"})},[f,e,u]);return[f,c]},vSe=()=>y.jsx(y_e,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),ySe=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}},cq=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(io,{open:t,onClose:e,title:n,variant:"cover",children:y.jsxs(m_e,{...ySe(r),className:"h-full w-full",children:[y.jsx(vSe,{}),r.map(({cityName:i,latLong:a,count:s},u)=>y.jsx(g_e,{position:a,children:y.jsxs(v_e,{children:[y.jsx("b",{children:s})," visit",s>1?"s":""," from ",y.jsx("b",{children:i})]})},u))]})}),bSe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const{flag:r,setToTrue:i,setToFalse:a}=Sn(),[s,u]=I.useState([]),f=I.useCallback(c=>{u(c?n.filter(c):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(X0,{onClick:()=>f(),"aria-label":"Show in map",title:"Show in map",className:"[&]:p-0",children:y.jsx(Ke,{icon:UC})}),t&&y.jsxs(et,{buttonContent:y.jsx(Ke,{icon:UC,title:"Show in map"}),buttonLabel:"Show in map",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",caretless:!0,children:[y.jsx(et.Item,{onClick:()=>f(),children:"Show all locations"}),y.jsx(et.Item,{onClick:()=>f(({cityName:c})=>t.includes(c)),children:"Show locations in current page"})]}),y.jsx(cq,{toggle:a,isOpen:r,title:e,locations:s})]})},fq=({onChange:e,selected:t={},isOrphanVisits:n=!1,withPrevInterval:r=!1,disabled:i})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:u=!1}=t,f=m=>({selected:a===m,onClick:()=>e({...t,orphanVisitsType:m===a?void 0:m})}),c=I.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),p=I.useCallback(()=>e({...t,loadPrevInterval:!u}),[u,e,t]);return y.jsxs(et,{buttonDisabled:i,buttonContent:"More",buttonClassName:"w-full",menuAlignment:"right",children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(et.Item,{selected:u,onClick:p,children:"Compare with previous period"}),y.jsx(et.Separator,{})]}),y.jsx(et.Title,{children:"Bots:"}),y.jsx(et.Item,{selected:s,onClick:c,children:"Exclude potential bots"}),n&&y.jsxs(y.Fragment,{children:[y.jsx(et.Separator,{}),y.jsx(et.Title,{children:"Orphan visits type:"}),y.jsx(et.Item,{...f("base_url"),children:"Base URL"}),y.jsx(et.Item,{...f("invalid_short_url"),children:"Invalid short URL"}),y.jsx(et.Item,{...f("regular_404"),children:"Regular 404"})]}),y.jsx(et.Separator,{}),y.jsx(et.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"})})]})},_Se=({className:e,value:t,...n})=>{const r=Math.min(100,Math.max(0,t));return y.jsx("div",{className:je("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}%`}})})},dq=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(Xo,{loading:!0}),t&&r!==null&&y.jsxs(Xo,{loading:!0,children:["This is going to take a while... :S",y.jsx(_Se,{value:r,className:"mt-4"})]}),n&&y.jsx(qr,{variant:"error",children:y.jsx(eo,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Qv=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(Xo,{children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),xSe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,{flag:r,setToTrue:i}=Sn();return y.jsx(It,{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(Dt,{variant:"danger",solid:!0,className:"whitespace-nowrap",onClick:i,children:"Delete visits"}),r&&y.jsxs(Dt,{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..."})]})]})})},zv="Others",wSe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],SSe=e=>{if(!Su(e))return{browser:zv,os:zv};const{browser:{name:t},os:{name:n}}=C_e.parse(e);return{os:n??zv,browser:t&&wSe.includes(t)?t:zv}},CSe=e=>{var t;return Su(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},hq=(e,t)=>e[t]!==void 0,hI=e=>typeof e=="number"?e:e?parseFloat(e):0,ASe=(e,{os:t})=>{e[t]=(e[t]||0)+1},OSe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},ESe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},pq=e=>(t,n)=>{const r=hq(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},TSe=pq("country"),jSe=pq("city"),PSe=(e,t)=>{if(!hq(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,a=e[n]||{cityName:n,count:0,latLong:[hI(r),hI(i)]};a.count+=1,e[n]=a},RSe=(e,t)=>{if(!dSe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},KO=e=>e.reduce((t,n)=>(ASe(t.os,n),OSe(t.browsers,n),ESe(t.referrers,n),TSe(t.countries,n),jSe(t.cities,n),PSe(t.citiesForMap,n),RSe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),P0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:a,potentialBot:s}=t;return{date:r,potentialBot:s,userAgent:n,...SSe(n),referer:CSe(i),country:(a==null?void 0:a.countryName)||"Unknown",city:(a==null?void 0:a.cityName)||"Unknown",latitude:a==null?void 0:a.latitude,longitude:a==null?void 0:a.longitude,visitedUrl:t.visitedUrl,type:E3(t)?t.type:void 0}}),MSe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:P0,processStatsFromVisits:KO},Symbol.toStringTag,{value:"Module"})),rp=20,NSe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:a,...s},u,f)=>{const c=f?a:`${r} ${i}`;return`${e} ${t} ${n} ${c} ${s.visitedUrl}`.toLowerCase().includes(u.toLowerCase())},LSe=(e,t,n)=>t.filter(r=>NSe(r,e,n)),DSe=(e,t)=>T9(t,e),kSe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?LSe(t,e,r):[...e],a=DSe(n,i),s=a.length;return{visitsGroups:pf(a,rp),total:s}},$a="cursor-pointer md:sticky-cell-separated md:top-[calc(var(--header-height)+41px)]",ISe=()=>{const{anchor:e,tooltip:t}=ao({placement:"right"});return y.jsxs(y.Fragment,{children:[y.jsx(Ke,{icon:g7,...e}),y.jsx(oo,{...t,children:"Potentially a visit from a bot or crawler"})]})},USe=({visits:e,selectedVisits:t=[],setSelectedVisits:n})=>{var r;const[i,a]=I.useState(),s=I.useCallback(R=>{a(R),w(1),n([])},[n]),[u,f]=I.useState({}),{flag:c,toggle:p}=Sn(),m=I.useCallback(()=>{p(),f({})},[p]),v=I.useMemo(()=>kSe({visits:e,searchTerm:i,order:u,searchInRawUserAgent:c}),[e,i,u,c]),[x,w]=I.useState(1),_=x*rp,S=_-rp,C=I.useMemo(()=>{var R,$;return!!(($=(R=v.visitsGroups[x-1])==null?void 0:R[0])!=null&&$.visitedUrl)},[x,v.visitsGroups]),O=6+Number(C)+(c?1:2),T=v.total>0,P=R=>f(BE({currentField:u.field,currentOrderDir:u.dir,newField:R})),j=R=>y.jsx(bp,{currentOrder:u,field:R,className:"float-right mt-[5px] ml-[5px]"});return y.jsx(It,{bodyClassName:"[&]:p-0 [&]:pb-1",title:y.jsxs("span",{className:"flex justify-between items-center text-base",children:["Visits list",y.jsx(Jo,{checked:c,onChange:m,children:"Show user agent"})]}),children:y.jsxs(Xe,{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(Xe.Row,{children:[y.jsxs(Xe.Cell,{className:je($a,"text-center"),onClick:()=>n(t.length<v.total?v.visitsGroups.flat():[]),children:[y.jsx("span",{className:"sr-only",children:"Is selected"}),y.jsx(Ke,{icon:Lu,className:je({"text-lm-brand dark:text-dm-brand":t.length>0})})]}),y.jsxs(Xe.Cell,{className:je($a,"text-center"),onClick:()=>P("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Ke,{icon:g7}),j("potentialBot")]}),y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("date"),children:["Date",j("date")]}),y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("country"),children:["Country",j("country")]}),y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("city"),children:["City",j("city")]}),c?y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("userAgent"),children:["User agent",j("userAgent")]}):y.jsxs(y.Fragment,{children:[y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("browser"),children:["Browser",j("browser")]}),y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("os"),children:["OS",j("os")]})]}),y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("referer"),children:["Referrer",j("referer")]}),C&&y.jsxs(Xe.Cell,{className:$a,onClick:()=>P("visitedUrl"),children:["Visited URL",j("visitedUrl")]})]}),y.jsx(Xe.Row,{children:y.jsx(Xe.Cell,{colSpan:O,className:"[&]:p-0",children:y.jsx(cd,{size:"md",borderless:!0,onChange:s})})})]}),footer:v.total>rp?y.jsx(Xe.Row,{children:y.jsx(Xe.Cell,{type:"td",colSpan:O,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(Q0,{pagesCount:Math.ceil(v.total/rp),currentPage:x,onPageChange:w}),y.jsxs("div",{children:["Visits ",y.jsx("b",{children:Rn(S+1)})," to"," ",y.jsx("b",{children:Rn(Math.min(_,v.total))})," of"," ",y.jsx("b",{children:Rn(v.total)})]})]})})}):void 0,children:[!T&&y.jsx(Xe.Row,{children:y.jsx(Xe.Cell,{colSpan:O,className:"text-center",children:"There are no visits matching current filter"})}),(r=v.visitsGroups[x-1])==null?void 0:r.map((R,$)=>{const V=t.includes(R);return y.jsxs(Xe.Row,{className:je("cursor-pointer",V&&["bg-lm-table-highlight hover:[&]:bg-lm-table-highlight","dark:bg-dm-table-highlight dark:hover:[&]:bg-dm-table-highlight"]),onClick:()=>n(V?t.filter(X=>X!==R):[...t,R]),children:[y.jsx(Xe.Cell,{className:"text-center",children:V&&y.jsx(Ke,{icon:Lu,className:"text-lm-brand dark:text-dm-brand"})}),y.jsx(Xe.Cell,{className:"text-center",children:R.potentialBot&&y.jsx(ISe,{})}),y.jsx(Xe.Cell,{children:y.jsx(O0,{date:R.date})}),y.jsx(Xe.Cell,{children:R.country}),y.jsx(Xe.Cell,{children:R.city}),c?y.jsx(Xe.Cell,{children:R.userAgent}):y.jsxs(y.Fragment,{children:[y.jsx(Xe.Cell,{children:R.browser}),y.jsx(Xe.Cell,{children:R.os})]}),y.jsx(Xe.Cell,{children:R.referer}),C&&y.jsx(Xe.Cell,{children:R.visitedUrl??""})]},$)})]})})},sl={byTime:{title:"By time",subPath:"by-time",icon:PY},byContext:{title:"By context",subPath:"by-context",icon:gE},byLocation:{title:"By location",subPath:"by-location",icon:UC},list:{title:"List",subPath:"list",icon:pE},options:{title:"Options",subPath:"options",icon:v7,shouldRender:({deletion:e})=>!!e}};Object.freeze(sl);const RC=({display:e})=>e&&y.jsx("div",{className:"mx-auto w-3/4",children:y.jsx(It,{children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Ke,{icon:PK,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),Bm=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:a,exportCsv:s,isOrphanVisits:u=!1}=e,{visits:f,prevVisits:c,loading:p,errorData:m,fallbackInterval:v}=n,[{dateRange:x,visitsFilter:w,loadPrevInterval:_},S]=uq(),C=Xn("visits"),[O,T]=I.useState(),P=I.useCallback(({startDate:ee,endDate:ue},K)=>{S({dateRange:{startDate:ee??void 0,endDate:ue??void 0}}),T(K)},[S]),[j,R]=I.useState(v??(C==null?void 0:C.defaultInterval)??"last30Days"),[$,V]=I.useState([]),[X,Z]=I.useState(),Y=I.useRef(!0),{search:te}=xr(),ae=I.useCallback(ee=>ee?`../${ee}${te}`:te,[te]),Q=I.useMemo(()=>P0(f),[f]),ne=I.useMemo(()=>c&&P0(c),[c]),{os:H,browsers:B,referrers:U,countries:F,cities:M,citiesForMap:k,visitedUrls:J}=I.useMemo(()=>KO(Q),[Q]),W=I.useMemo(()=>KO(ne??[]),[ne]),ie=I.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],ne&&["Previous period",Object.assign(ne,{type:"previous"})],$.length>0&&[X??"Selected",Object.assign($,{type:"highlighted"})]].filter(Boolean)),[X,$,ne,Q]),fe=I.useMemo(()=>({...w,excludeBots:w.excludeBots??(C==null?void 0:C.excludeBots),loadPrevInterval:_??(C==null?void 0:C.loadPrevInterval)}),[_,w,C==null?void 0:C.excludeBots,C==null?void 0:C.loadPrevInterval]),ce=I.useMemo(()=>Object.values(k),[k]),ye=I.useRef(void 0),z=I.useCallback(ee=>{ye.current=void 0,V(ee)},[]),q=I.useCallback((ee,ue)=>{const K=`${ee}_${ue}`;ye.current===K?(V([]),Z(void 0),ye.current=void 0):(V(Q.filter(se=>se[ee]===ue)),Z(ue),ye.current=K)},[Q]);return I.useEffect(()=>i,[i]),I.useEffect(()=>{const ee=x??BF(j),{loadPrevInterval:ue,...K}=fe,se={doIntervalFallback:Y.current,loadPrevInterval:ue};r({dateRange:ee,filter:K},se),z([]),Y.current=!1},[j,x,r,fe,z]),I.useEffect(()=>{v&&j===((C==null?void 0:C.defaultInterval)??"last30Days")&&R(v)},[j,v,C==null?void 0:C.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(b3,{disabled:p,dateRangeOrInterval:O??x??j,defaultText:"All visits",onDatesChange:P})}),y.jsx(fq,{disabled:p,isOrphanVisits:u,withPrevInterval:!0,selected:fe,onChange:({loadPrevInterval:ee,...ue})=>S({visitsFilter:ue,loadPrevInterval:ee})})]}),y.jsx("div",{className:"lg:flex-2 xl:flex-3 flex gap-2",children:f.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(SF,{className:"max-lg:w-full",amount:Q.length,onClick:()=>s(Q)}),y.jsxs(Dt,{variant:"secondary",disabled:$.length===0,className:"max-lg:w-full",onClick:()=>z([]),children:["Clear selection ",$.length>0&&y.jsxs(y.Fragment,{children:["(",Rn($.length),")"]})]})]})})]}),y.jsxs("section",{className:"flex flex-col gap-4",children:[y.jsx(dq,{info:n}),!p&&!m&&y.jsxs(y.Fragment,{children:[y.jsx(xu,{fill:!0,className:"sticky top-(--header-height) z-2",children:Object.values(sl).map(({title:ee,icon:ue,subPath:K,shouldRender:se},de)=>!se||se(e)?y.jsxs(xu.Pill,{to:ae(K),replace:!0,children:[y.jsx(Ke,{icon:ue}),y.jsx("span",{className:"ml-2 max-lg:sr-only",children:ee})]},de):void 0).filter(Boolean)}),y.jsxs(D0,{children:[y.jsx(wt,{path:sl.byTime.subPath,element:y.jsxs(Qv,{showFallback:f.length===0,children:[y.jsx("div",{"data-testid":"line-chart-container",children:y.jsx(aq,{visitsGroups:ie,setSelectedVisits:z,onDateRangeChange:P})}),y.jsx(RC,{display:!!fe.loadPrevInterval&&!c})]})}),y.jsx(wt,{path:sl.byContext.subPath,element:y.jsxs(Qv,{showFallback:f.length===0,children:[y.jsxs("div",{className:je("grid grid-cols-1 gap-4",{"lg:grid-cols-2":u,"xl:grid-cols-3":!u}),children:[y.jsx(lI,{title:"Operating systems",stats:H,prevStats:W.os}),y.jsx(lI,{title:"Browsers",stats:B,prevStats:W.browsers}),y.jsx(Uv,{title:"Referrers",withPagination:!1,stats:U,prevStats:W.referrers,highlightedStats:Bv($,"referer"),highlightedLabel:X,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:ee=>q("referer",ee)}),u&&y.jsx(Uv,{title:"Visited URLs",stats:J,prevStats:W.visitedUrls,highlightedStats:Bv($,"visitedUrl"),highlightedLabel:X,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:ee=>q("visitedUrl",ee)})]}),y.jsx(RC,{display:!!fe.loadPrevInterval&&!c})]})}),y.jsx(wt,{path:sl.byLocation.subPath,element:y.jsxs(Qv,{showFallback:f.length===0,children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[y.jsx(Uv,{title:"Countries",stats:F,prevStats:W.countries,highlightedStats:Bv($,"country"),highlightedLabel:X,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:ee=>q("country",ee)}),y.jsx(Uv,{title:"Cities",stats:M,prevStats:W.cities,highlightedStats:Bv($,"city"),highlightedLabel:X,extraHeaderContent:ee=>ce.length>0&&y.jsx(bSe,{modalTitle:"Cities",locations:ce,activeCities:ee}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:ee=>q("city",ee)})]}),y.jsx(RC,{display:!!fe.loadPrevInterval&&!c})]})}),y.jsx(wt,{path:sl.list.subPath,element:y.jsx(USe,{visits:Q,selectedVisits:$,setSelectedVisits:z})}),a&&y.jsx(wt,{path:sl.options.subPath,element:y.jsx(xSe,{...a})}),y.jsx(wt,{path:"*",element:y.jsx(rE,{replace:!0,to:ae(sl.byTime.subPath)})})]})]})]})]})},mq=Aa(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Mn(mq),{domain:i=""}=od(),[a,s=a]=i.split("_"),u=I.useCallback((c,p)=>e({domain:s,options:p,params:c}),[s,e]),f=I.useCallback(c=>r.exportVisits(`domain_${a}_visits.csv`,c),[a,r]);return y.jsx(Bm,{getVisits:u,cancelGetVisits:n,visitsInfo:t,exportCsv:f,children:y.jsx(Um,{visits:t.visits,title:`"${a}" visits`})})},()=>[Gr.visits]),BSe=Nn(mq,["ReportExporter"]),gq=Aa(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Mn(gq),i=I.useCallback(s=>r.exportVisits("non_orphan_visits.csv",s),[r]),a=I.useCallback((s,u)=>e({options:u,params:s}),[e]);return y.jsx(Bm,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(Um,{title:"Non-orphan visits",visits:t.visits})})},()=>[Gr.visits]),zSe=Nn(gq,["ReportExporter"]),vq=Aa(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const a=to("orphanVisitsDeletion"),{ReportExporter:s}=Mn(vq),u=I.useCallback(p=>s.exportVisits("orphan_visits.csv",p),[s]),f=I.useCallback((p,m)=>{var v;return e({options:m,params:p,orphanVisitsType:(v=p.filter)==null?void 0:v.orphanVisitsType})},[e]),c=I.useMemo(()=>a?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,a]);return y.jsx(Bm,{getVisits:f,cancelGetVisits:n,visitsInfo:t,exportCsv:u,deletion:c,isOrphanVisits:!0,children:y.jsx(Um,{title:"Orphan visits",visits:t.visits})})},()=>[Gr.orphanVisits]),$Se=Nn(vq,["ReportExporter"]),pI=5e3,FSe=2,qSe=4,VSe=({currentPage:e,pagesCount:t})=>e>=t,HSe=(e,t)=>t*100/e,yq=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(s,u)=>Promise.all(u.map(async f=>e({...s,page:f,itemsPerPage:pI}).then(({data:c})=>c))).then(f=>f.flat()),a=async(s,u,f=0)=>{if(t())return[];const c=await i(s,u[f]);return n(HSe(u.length,f+1)),f<u.length-1?c.concat(await a(s,u,f+1)):c};return async s=>{const{pagination:u,data:f}=await e({...s,page:1,itemsPerPage:pI});if(VSe(u))return f;const c=X9(FSe,u.pagesCount+1),p=pf(c,r);return u.pagesCount-1>r&&n(0),f.concat(await a(s,p))}},zm=(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=Vr(`${e}/progressChanged`),i=Vr(`${e}/fallbackToInterval`),a=Zn(e,async(s,{getState:u,dispatch:f})=>{var c;const{params:p,options:m}=s,{visitsLoader:v,lastVisitLoader:x}=t(s),w=o2e(p.dateRange),_=YO(p),S=m.loadPrevInterval&&mSe(p)?YO(gSe(p)):void 0,C=qSe/(S?2:1),O=S?{main:0,prev:0}:{main:0},T=(V,X)=>{O[V]=X;const Z=Object.values(O),Y=Z.reduce((te,ae)=>te+ae,0);f(r(Y/Z.length))},P=yq({visitsLoader:v,shouldCancel:()=>n(u),progressChanged:V=>T("main",V),batchSize:C}),[j,R,$]=await Promise.all([P(_),x((c=p.filter)==null?void 0:c.excludeBots),S?P(S).then(V=>V.map(X=>{if(w===void 0)return X;const{date:Z,...Y}=X,te=KE(wi(Z),w);return{...Y,date:Rl(te)}})):Promise.resolve(void 0)]);return!j.length&&R&&f(i(i2e(R.date))),{...s,visits:j,prevVisits:$}});return Object.assign(a,{progressChanged:r,fallbackToInterval:i})},Fm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:a,rejected:s,fulfilled:u,progressChanged:f,fallbackToInterval:c}=t,{reducer:p,actions:m}=Un({name:e,initialState:n,reducers:{cancelGetVisits:x=>({...x,cancelLoad:!0})},extraReducers:x=>{x.addCase(a,()=>({...n,loading:!0})),x.addCase(s,(w,{error:_})=>({...n,errorData:Ri(_)??null})),x.addCase(u,(w,{payload:_})=>({...w,..._,loading:!1,progress:null,errorData:null})),x.addCase(f,(w,{payload:_})=>({...w,progress:_})),x.addCase(c,(w,{payload:_})=>({...w,fallbackInterval:_})),x.addCase(Ad,(w,{payload:_})=>{const{visits:S}=w,C=r(w,_.createdVisits).map(({visit:O})=>O);return C.length?{...w,visits:[...C,...S]}:w}),i==null||i(x)}}),{cancelGetVisits:v}=m;return{reducer:p,cancelGetVisits:v}},bq="shlink/domainVisits",GSe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},WSe=e=>$m({typePrefix:`${bq}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=u=>r.getDomainVisits(t,u),s=zm(i,u=>r.getDomainVisits(t,u));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().domainVisits.cancelLoad}),YSe=e=>Fm({name:bq,initialState:GSe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>sq(r,t,n==null?void 0:n.dateRange)}),_q="shlink/orphanVisits",KSe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},ZSe=e=>$m({typePrefix:`${_q}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async s=>n.getNonOrphanVisits(s),a=zm(r,s=>n.getNonOrphanVisits(s));return{visitsLoader:i,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),XSe=e=>Fm({name:_q,initialState:KSe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:a})=>Im(a.date,r,i))}}),xq="shlink/orphanVisits",QSe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},JSe=(e,t)=>!t||t===e.type,eCe=({data:e,...t},n)=>{const r=e.filter(i=>E3(i)&&JSe(i,n));return{...t,data:r}},tCe=e=>$m({typePrefix:`${xq}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=async u=>r.getOrphanVisits({...u,type:t}).then(f=>eCe(f,t)),s=zm(i,u=>r.getOrphanVisits(u));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().orphanVisits.cancelLoad}),nCe=(e,t)=>Fm({name:xq,initialState:QSe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:a}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:s,shortUrl:u})=>!u&&Im(s.date,i,a))}}),wq="shlink/orphanVisitsDeletion",mI={deletedVisits:0,deleting:!1,error:!1},rCe=e=>Zn(`${wq}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),iCe=e=>Un({name:wq,initialState:mI,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...mI,deletedVisits:i}})}}),Sq="shlink/shortUrlVisits",aCe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},oCe=e=>$m({typePrefix:`${Sq}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:a=!1}=r,s=f=>i.getShortUrlVisits({shortCode:t,domain:n},f),u=zm(a,f=>i.getShortUrlVisits({shortCode:t,domain:n},f));return{visitsLoader:s,lastVisitLoader:u}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),sCe=(e,t)=>Fm({name:Sq,initialState:aCe,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},a)=>oq(a,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),Cq="shlink/shortUrlVisitsDeletion",gI={shortCode:"",deletedVisits:0,deleting:!1,error:!1},lCe=e=>Zn(`${Cq}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),uCe=e=>Un({name:Cq,initialState:gI,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:a,deletedVisits:s}=r;return{...gI,shortCode:i,domain:a,deletedVisits:s}})}}),Aq="shlink/tagVisits",cCe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},fCe=e=>$m({typePrefix:`${Aq}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=u=>r.getTagVisits(t,u),s=zm(i,async u=>r.getTagVisits(t,u));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().tagVisits.cancelLoad}),dCe=e=>Fm({name:Aq,initialState:cCe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>lq(r,t,n==null?void 0:n.dateRange)}),Oq="shlink/visitsOverview",$v={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},vI=e=>e.filter(({visit:t})=>t.potentialBot).length,hCe=e=>Zn(`${Oq}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),pCe=e=>Un({name:Oq,initialState:$v,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...$v,loading:!0})),t.addCase(e.rejected,()=>({...$v,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...$v,...r})),t.addCase(Ad,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:a})=>{const{nonOrphanVisits:s,orphanVisits:u}=hSe(a.createdVisits),f=s.length,c=vI(s),p=f-c,m=u.length,v=vI(u),x=m-v;return{...i,nonOrphanVisits:{total:n.total+f,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+p},orphanVisits:{total:r.total+m,bots:r.bots&&r.bots+v,nonBots:r.nonBots&&r.nonBots+x}}})}}),mCe=({shortUrl:e})=>{const{anchor:t,tooltip:n}=ao({placement:"bottom"});return e?y.jsxs("span",{children:[y.jsx("b",{className:"cursor-default",...t,children:y.jsx(O0,{date:e.dateCreated,relative:!0})}),y.jsx(oo,{...n,children:y.jsx(O0,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."})},gCe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",a=(e==null?void 0:e.longUrl)??"",s=e==null?void 0:e.title;return y.jsxs(Um,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(Ci,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",y.jsx(mCe,{shortUrl:e})]}),y.jsxs("div",{"data-testid":"long-url-container",children:[`${s?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(Ci,{href:a,children:s??a})]})]})},Eq=Aa(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:a,cancelGetShortUrlVisits:s})=>{const u=to("shortUrlVisitsDeletion"),{ReportExporter:f}=Mn(Eq),c=p3(),p=I.useMemo(()=>{var w;return(w=n.shortUrls)==null?void 0:w.get(c)},[c,n.shortUrls]),m=I.useCallback((w,_)=>r({...c,options:_,params:w}),[r,c]),v=I.useCallback(w=>f.exportVisits(`short-url_${p==null?void 0:p.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,w),[f,p==null?void 0:p.shortUrl]),x=I.useMemo(()=>u?{deleteVisits:()=>a(c),visitsDeletion:t}:void 0,[a,c,t,u]);return I.useEffect(()=>{i([c])},[c,i]),y.jsx(Bm,{getVisits:m,cancelGetVisits:s,visitsInfo:e,exportCsv:v,deletion:x,children:y.jsx(gCe,{shortUrl:p,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Gr.shortUrlVisits(c3(e.shortCode))]:[]),vCe=Nn(Eq,["ReportExporter"]),yCe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(Um,{title:y.jsxs("span",{className:"flex items-center justify-center",children:[y.jsx("span",{className:"mr-2",children:"Visits for"}),y.jsx(y3,{text:r,colorGenerator:t})]}),visits:n})},Tq=Aa(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Mn(Tq),{tag:a=""}=od(),s=I.useCallback((f,c)=>e({tag:a,params:f,options:c}),[e,a]),u=I.useCallback(f=>i.exportVisits(`tag_${a}_visits.csv`,f),[i,a]);return y.jsx(Bm,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:u,children:y.jsx(yCe,{tagVisits:t,colorGenerator:r})})},()=>[Gr.visits]),bCe=Nn(Tq,["ColorGenerator","ReportExporter"]),T3=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:a,visitsGroups:s}=r,u=Xn("visits"),f=I.useMemo(()=>Object.keys(s).reduce((O,T,P)=>(O[T]=Object.assign(P0(s[T]),{color:(t==null?void 0:t[T])??rq(P)}),O),{}),[t,s]),c=I.useMemo(()=>Object.values(s).every(O=>O.length===0),[s]),[{dateRange:p,visitsFilter:m},v]=uq(),[x,w]=I.useState(),_=I.useCallback(({startDate:O,endDate:T},P)=>{v({dateRange:{startDate:O??void 0,endDate:T??void 0}}),w(P)},[v]),[S]=I.useState(()=>p??(u==null?void 0:u.defaultInterval)??"last30Days"),C=I.useMemo(()=>({...m,excludeBots:m.excludeBots??(u==null?void 0:u.excludeBots)}),[m,u==null?void 0:u.excludeBots]);return I.useEffect(()=>{const O=p??BF(S);return n({params:{dateRange:O,filter:C}}),i},[i,p,n,S,C]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs(It,{bodyClassName:"flex items-center",children:[y.jsx(Wb,{}),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(b3,{disabled:a,defaultText:"All visits",dateRangeOrInterval:x??p??S,onDatesChange:_})}),y.jsx(fq,{disabled:a,selected:C,onChange:({orphanVisitsType:O,excludeBots:T})=>v({visitsFilter:{orphanVisitsType:O,excludeBots:T}})})]}),y.jsx("div",{className:"hidden lg:block lg:flex-2 xl:flex-3"})]}),y.jsx(dq,{info:r}),!a&&y.jsx(Qv,{showFallback:c,children:y.jsx(aq,{visitsGroups:f,onDateRangeChange:_})})]})},_Ce=Aa(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=w3("domains"),i=I.useCallback(a=>e({...a,domains:r}),[r,e]);return y.jsx(T3,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Gr.visits]),xCe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),a=Object.fromEntries(r.map(f=>[f,0])),s=(f,c)=>{a[f]=c;const p=Object.values(a),m=p.reduce((v,x)=>v+x,0);n(m/p.length)},u=Object.entries(e).map(([f,c])=>[f,yq({visitsLoader:c,batchSize:i,shouldCancel:t,progressChanged:p=>s(f,p)})]);return async f=>{const c=await Promise.all(u.map(async([p,m])=>{const v=await m(f);return[p,v]}));return Object.fromEntries(c)}},j3=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Vr(`${e}/progressChanged`),i=Zn(e,async(a,{getState:s,dispatch:u})=>{const f=t(a),c=await xCe({visitsLoaders:f,shouldCancel:()=>n(s),progressChanged:p=>u(r(p))})(YO(a.params));return{...a,visitsGroups:c}});return Object.assign(i,{progressChanged:r})},P3=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:a,fulfilled:s,progressChanged:u}=t,{reducer:f,actions:c}=Un({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(a,(v,{error:x})=>({...n,errorData:Ri(x)??null})),m.addCase(s,(v,{payload:x})=>({...v,...x,loading:!1,progress:null,errorData:null})),m.addCase(u,(v,{payload:x})=>({...v,progress:x})),m.addCase(Ad,(v,{payload:x})=>{const{visitsGroups:w,..._}=v,S=Object.keys(w).map(O=>{const T=r({..._,groupKey:O},x.createdVisits).map(({visit:P})=>P);return[O,[...T,...w[O]]]}),C=Object.fromEntries(S);return{..._,visitsGroups:C}})}}),{cancelGetVisits:p}=c;return{reducer:f,cancelGetVisits:p}},jq="shlink/domainVisitsComparison",wCe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},SCe=e=>j3({typePrefix:`${jq}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getDomainVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),CCe=e=>P3({name:jq,initialState:wCe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>sq(r,t,n==null?void 0:n.dateRange)}),Pq="shlink/shortUrlVisitsComparison",ACe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},OCe=e=>j3({typePrefix:`${Pq}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[f3(i),a=>n.getShortUrlVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),ECe=e=>P3({name:Pq,initialState:ACe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>oq(r,tF(t),n==null?void 0:n.dateRange)}),Rq="shlink/tagVisitsComparison",TCe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},jCe=e=>j3({typePrefix:`${Rq}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getTagVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),PCe=e=>P3({name:Rq,initialState:TCe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>lq(r,t,n==null?void 0:n.dateRange)}),RCe=Aa(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const a=w3("short-urls"),s=I.useMemo(()=>a.map(tF),[a]),u=I.useCallback(p=>e({...p,shortUrls:s}),[e,s]),f=I.useMemo(()=>{var p;return[...((p=r.shortUrls)==null?void 0:p.values())??[]]},[r.shortUrls]),c=I.useMemo(()=>{const{visitsGroups:p,loading:m,...v}=t,x=f.reduce((w,_)=>(w[_.shortUrl]=p[f3(_)]??[],w),{});return{...v,visitsGroups:x,loading:m||r.loading}},[t,r.loading,f]);return I.useEffect(()=>{s.length>0&&i(s)},[i,s]),y.jsx(T3,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${f.length} short URLs`}),getVisitsForComparison:u,visitsComparisonInfo:c,cancelGetVisitsComparison:n})},()=>[Gr.visits]),Mq=Aa(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Mn(Mq),i=w3("tags"),a=I.useCallback(f=>e({...f,tags:i}),[e,i]),{visitsGroups:s}=t,u=I.useMemo(()=>Object.keys(s).reduce((f,c)=>(f[c]=r.getColorForKey(c),f),{}),[r,s]);return y.jsx(T3,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(f=>y.jsx(y3,{colorGenerator:r,text:f},f))]}),getVisitsForComparison:a,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:u})},()=>[Gr.visits]),MCe=Nn(Mq,["ColorGenerator"]),NCe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>cq),e.factory("ShortUrlVisits",vCe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",bCe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",MCe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>_Ce),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>RCe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",BSe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",$Se),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",zSe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>MSe),e.serviceFactory("getShortUrlVisits",oCe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",OCe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",lCe,"apiClientFactory"),e.serviceFactory("getTagVisits",fCe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",jCe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",WSe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",SCe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",tCe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",rCe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",ZSe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Ad),e.serviceFactory("loadVisitsOverview",hCe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",pCe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",YSe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",XSe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",nCe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",iCe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",sCe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",uCe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",dCe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",PCe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",CCe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",ECe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},Gh=({children:e,to:t,active:n,...r})=>y.jsx(oE,{...r,className:({isActive:i})=>je("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}),LCe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=xr(),r=i=>`${e}${i}`;return y.jsx("aside",{className:je("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(Gh,{to:r("/overview"),children:[y.jsx(Ke,{fixedWidth:!0,icon:uK}),"Overview"]}),y.jsxs(Gh,{to:r("/list-short-urls/1"),active:n.match("/list-short-urls")!==null,children:[y.jsx(Ke,{fixedWidth:!0,icon:pE}),"List short URLs"]}),y.jsxs(Gh,{to:r("/create-short-url"),children:[y.jsx(Ke,{fixedWidth:!0,icon:mK,flip:"horizontal"}),"Create short URL"]}),y.jsxs(Gh,{to:r("/manage-tags"),children:[y.jsx(Ke,{fixedWidth:!0,icon:h7}),"Manage tags"]}),y.jsxs(Gh,{to:r("/manage-domains"),children:[y.jsx(Ke,{fixedWidth:!0,icon:$Y}),"Manage domains"]})]})})},Nq=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:a,DomainVisits:s,OrphanVisits:u,NonOrphanVisits:f,Overview:c,EditShortUrl:p,ManageDomains:m,TagVisitsComparison:v,DomainVisitsComparison:x,ShortUrlVisitsComparison:w,ShortUrlRedirectRules:_}=Mn(Nq),S=xr(),C=us(),{flag:O,toggle:T,setToTrue:P,setToFalse:j}=Sn();I.useEffect(()=>j(),[S,j]);const R=P2e(P,j),$=to("shortUrlRedirectRules");return y.jsxs(y.Fragment,{children:[y.jsx(rd,{"aria-label":"Toggle sidebar",className:je("fixed top-4 left-3 z-1035","md:hidden transition-colors",{"text-white/50":!O,"text-white":O}),onClick:T,children:y.jsx(Ke,{icon:LY,size:"xl"})}),y.jsx("div",{...R,className:"h-full",children:y.jsxs("div",{className:"h-full",children:[y.jsx(LCe,{routePrefix:C,showOnMobile:O}),y.jsx("div",{className:"min-h-full pt-[20px] md:pt-[30px] md:pl-(--aside-menu-width)",onPointerDown:j,children:y.jsx("div",{className:"container mx-auto px-3",children:y.jsxs(D0,{children:[y.jsx(wt,{index:!0,element:y.jsx(rE,{replace:!0,to:"overview"})}),y.jsx(wt,{path:"/overview",element:y.jsx(c,{})}),y.jsx(wt,{path:"/list-short-urls/:page",element:y.jsx(n,{})}),y.jsx(wt,{path:"/create-short-url",element:y.jsx(r,{})}),y.jsx(wt,{path:"/short-code/:shortCode/visits",children:["","*"].map(V=>y.jsx(wt,{path:V,element:y.jsx(i,{})},V))}),y.jsx(wt,{path:"/short-code/:shortCode/edit",element:y.jsx(p,{})}),$&&y.jsx(wt,{path:"/short-code/:shortCode/redirect-rules",element:y.jsx(_,{})}),y.jsx(wt,{path:"/short-urls/compare-visits",element:y.jsx(w,{})}),y.jsx(wt,{path:"/tag/:tag/visits",children:["","*"].map(V=>y.jsx(wt,{path:V,element:y.jsx(a,{})},V))}),y.jsx(wt,{path:"/tags/compare-visits",element:y.jsx(v,{})}),y.jsx(wt,{path:"/domain/:domain/visits",children:["","*"].map(V=>y.jsx(wt,{path:V,element:y.jsx(s,{})},V))}),y.jsx(wt,{path:"/orphan-visits",children:["","*"].map(V=>y.jsx(wt,{path:V,element:y.jsx(u,{})},V))}),y.jsx(wt,{path:"/non-orphan-visits",children:["","*"].map(V=>y.jsx(wt,{path:V,element:y.jsx(f,{})},V))}),y.jsx(wt,{path:"/manage-tags",element:y.jsx(t,{})}),y.jsx(wt,{path:"/manage-domains",element:y.jsx(m,{})}),y.jsx(wt,{path:"/domains/compare-visits",element:y.jsx(x,{})}),e&&y.jsx(wt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},DCe=Nn(Nq,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),kCe=e=>F9({devTools:!1,reducer:FE({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})}),ICe=e=>{e.factory("Main",DCe),e.factory("store",kCe)},Oa=new s7,{container:UCe}=Oa,BCe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),zCe=(e,t)=>(...n)=>e[t](...n),$Ce=(e,t)=>({...e,[t]:zCe(UCe,t)}),Ed=(e,t=[])=>LI(e?BCe(e):null,t.reduce($Ce,{}));ICe(Oa);m2e(Oa,Ed);U2e(Oa,Ed);NCe(Oa,Ed);Y_e(Oa);H_e(Oa,Ed);ixe(Oa,Ed);W2e(Oa);wwe(Oa,Ed);let yI;const FCe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:a,tagColorsStorage:s})=>{const u=L_e(t),f=I.useRef(void 0),[c,p]=I.useState(),m=Yu(),v=I.useMemo(()=>m?I.Fragment:YI,[m]);return I.useEffect(()=>{yI=n,e.value("apiClientFactory",()=>yI),s&&e.value("TagColorsStorage",s);const{container:x}=e,{Main:w,store:_,loadMercureInfo:S,listTags:C,listDomains:O}=x;f.current=y.jsx(w,{createNotFound:a}),p(_),_.dispatch(S(r)),_.dispatch(C()),_.dispatch(O())},[n,a,r,s]),c?y.jsx(DI,{store:c,children:y.jsx(rU,{value:r??{},children:y.jsx(N_e,{value:u,children:y.jsx(P_e,{value:i,children:y.jsx(v,{children:f.current})})})})}):y.jsx(y.Fragment,{})},qCe="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=",VCe="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==",HCe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",GCe=()=>{delete N8.Icon.Default.prototype._getIconUrl,N8.Icon.Default.mergeOptions({iconRetinaUrl:VCe,iconUrl:qCe,shadowUrl:HCe})};GCe();const WCe=FCe(Oa);function R0(e){return t=>{const{resetSelectedServer:n}=t;return I.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let YCe=class extends I.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(j9,{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(Dt,{size:"lg",onClick:()=>n.reload(),children:"Take me back"})]});const{children:r}=this.props;return r}};const KCe=({id:e,name:t})=>y.jsxs(Pr,{to:`/server/${e}`,className:je("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(Ke,{icon:ay})]}),Lq=({servers:e,borderless:t})=>y.jsx(y.Fragment,{children:e.length>0&&y.jsx("div",{"data-testid":"list",className:je("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(KCe,{id:n,name:r},n))})}),Dq=({color:e=Op(),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"})]})}),ZCe=({servers:e})=>{const t=ro(),n=Object.values(e),r=n.length>0;return I.useEffect(()=>{const i=n.find(({autoConnect:a})=>a);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"px-3 w-full",children:y.jsx(vn,{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(Dq,{})})}),y.jsxs("div",{className:"md:border-l border-lm-border dark:border-dm-border flex-grow",children:[y.jsx("h1",{className:je("p-4 text-center border-lm-border dark:border-dm-border",{"border-b":!r}),children:"Welcome!"}),r?y.jsx(Lq,{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(Dt,{to:"/server/create",size:"lg",inline:!0,children:[y.jsx(Ke,{icon:_m})," Add a server"]})}),y.jsx("p",{children:y.jsx(Ci,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"mr-2",children:"Learn more about Shlink"}),y.jsx(Ke,{icon:eK})]})})})]})]})]})})})},kq=()=>{const{ServersDropdown:e}=wa(kq),{pathname:t}=xr(),n="/settings";return y.jsxs(oA,{className:"[&]:fixed top-0 z-900",brand:y.jsxs(Pr,{to:"/",className:"[&]:text-white no-underline flex items-center gap-2",children:[y.jsx(Dq,{className:"w-7",color:"white"})," ",y.jsx("small",{className:"font-normal",children:"Shlink"})]}),children:[y.jsxs(oA.MenuItem,{to:n,active:t.startsWith(n),className:"flex items-center gap-1.5",children:[y.jsx(Ke,{icon:SK})," Settings"]}),y.jsx(e,{})]})},XCe=Sa(kq,["ServersDropdown"]),QCe=({children:e})=>{const t=xr();return I.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},Iq=Z9(e=>e,e=>{try{return mA(e,e,"=")}catch{return!1}}),Uq=e=>Iq(e)?`v${e}`:e,Bq=(e,t="latest")=>Iq(e)?e:t,JCe="%_VERSION_%",eAe=e=>Uq(Bq(e)),bI=({project:e,version:t})=>y.jsx(Ci,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-gray-500",children:y.jsx("b",{children:t})}),tAe=({selectedServer:e,clientVersion:t=JCe})=>{const n=eAe(t);return y.jsxs("small",{className:"text-gray-500",children:[dE(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(bI,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(bI,{project:"shlink-web-client",version:n})]})},nAe=({selectedServer:e})=>y.jsx("div",{className:je("text-center",{"md:ml-(--aside-menu-width)":dE(e)}),children:y.jsx(tAe,{selectedServer:e})}),Td=({children:e,className:t})=>y.jsx("div",{className:je("container mx-auto p-5 pt-8 max-md:p-3 max-md:py-4",t),children:e});function zq(e){const t=n=>{const{ServerError:r}=wa(t),i=od(),{selectServer:a,selectedServer:s}=n;return I.useEffect(()=>{i.serverId&&a(i.serverId)},[i.serverId,a]),s?yY(s)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(Td,{children:y.jsx(Xo,{loading:!0})})};return t}const $q=zq(I.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:a}=wa($q);if(!dE(e))return y.jsx(a,{});const s=`/server/${e.id}`;return y.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:s,tagColorsStorage:r,createNotFound:u=>y.jsx(P9,{to:`${s}${u}`,children:"List short URLs"})})})),rAe=Sa($q,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),iAe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",yte,"fetch"),e.serviceFactory("ScrollToTop",()=>QCe),e.factory("MainHeader",XCe),e.serviceFactory("Home",()=>ZCe),e.decorator("Home",R0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>WCe),e.factory("ShlinkWebComponentContainer",rAe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>nAe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>YCe)},Fq=()=>{const e=ro();return I.useCallback(()=>e(-1),[e])};function aAe(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 oAe(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const sAe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function lAe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=K9(t,a=>sAe(n,a)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function M0(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const a=aAe(i);let s=a,u=1;for(;n.has(s);)s=`${a}-${u}`,u++;r.push({...i,id:s}),n.add(s)}),r}const qq=({open:e,duplicatedServers:t,onClose:n,onConfirm:r})=>{const i=t.length>1;return y.jsxs(io,{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:a,apiKey:s},u)=>i?y.jsxs("li",{children:[y.jsx("b",{children:a})," - ",y.jsx("b",{children:s})]},u):y.jsxs(I.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:a})]}),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","?"]})]})},uAe=e=>I.useCallback(t=>{t.preventDefault(),e(t)},[e]),Vq=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,a]=I.useState((t==null?void 0:t.name)??""),[s,u]=I.useState((t==null?void 0:t.url)??""),[f,c]=I.useState((t==null?void 0:t.apiKey)??""),{flag:p,toggle:m}=Sn((t==null?void 0:t.forwardCredentials)??!1),v=uAe(()=>e({name:i,url:s,apiKey:f,forwardCredentials:p}));return y.jsxs("form",{name:"serverForm",onSubmit:v,children:[y.jsxs(It,{className:"mb-4",bodyClassName:"flex flex-col gap-y-3",title:r,children:[y.jsx(ni,{label:"Name",value:i,onChange:x=>a(x.target.value),required:!0}),y.jsx(ni,{label:"URL",type:"url",value:s,onChange:x=>u(x.target.value),required:!0}),y.jsx(EJ,{label:"API key",value:f,onChange:x=>c(x.target.value),required:!0}),y.jsx(pJ,{summary:"Advanced options",children:y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsxs(xa,{className:"flex items-center gap-x-1.5 cursor-pointer",children:[y.jsx(LE,{onChange:m,checked:p}),"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})]})},_I=4e3,xI=({variant:e})=>y.jsx("div",{className:"mt-4",children:y.jsxs(qr,{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."]})}),Hq=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=wa(Hq),i=ro(),a=Fq(),s=!!Object.keys(e).length,[u,f]=r({delay:_I}),[c,p]=r({delay:_I}),{flag:m,toggle:v}=Sn(),[x,w]=I.useState(),_=I.useCallback(C=>{const[O]=M0(e,[C]);t([O]),i(`/server/${O.id}`)},[t,i,e]),S=I.useCallback(C=>{w(C),Object.values(e).some(({url:T,apiKey:P})=>C.url===T&&C.apiKey===P)?v():_(C)},[_,e,v]);return y.jsxs(Td,{children:[y.jsxs(Vq,{title:"Add new server",onSubmit:S,children:[!s&&y.jsx(n,{tooltipPlacement:"top",onImport:f,onError:p}),s&&y.jsx(Dt,{variant:"secondary",onClick:a,children:"Cancel"}),y.jsx(Dt,{type:"submit",children:"Create server"})]}),u&&y.jsx(xI,{variant:"success"}),c&&y.jsx(xI,{variant:"error"}),y.jsx(qq,{open:m,duplicatedServers:x?[x]:[],onClose:a,onConfirm:()=>x&&_(x)})]})},cAe=Sa(Hq,["ImportServersBtn","useTimeoutToggle"]),Gq=({server:e,children:t})=>{const{DeleteServerModal:n}=wa(Gq),{flag:r,setToTrue:i,setToFalse:a}=Sn(),s=ro(),u=I.useCallback(f=>{a(),f&&s("/")},[a,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})]})},fAe=Sa(Gq,["DeleteServerModal"]),dAe=({server:e,onClose:t,open:n,deleteServer:r})=>{const i=I.useCallback(a=>{a==="confirm"&&r(e)},[r,e]);return y.jsx(io,{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."})})]})})},hAe=zq(({editServer:e,selectedServer:t,selectServer:n})=>{const r=Fq(),{reconnect:i}=fd();if(!ap(t))return null;const a=s=>{e(t.id,s),i==="true"&&n(t.id),r()};return y.jsx(Td,{children:y.jsxs(Vq,{title:y.jsxs(y.Fragment,{children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:a,children:[y.jsx(Dt,{variant:"secondary",onClick:r,children:"Cancel"}),y.jsx(Dt,{type:"submit",children:"Save"})]})})}),pAe=Sa(hAe,["ServerError"]),Wq=({createServers:e,servers:t,children:n,onImport:r,onError:i=()=>{},tooltipPlacement:a="bottom",className:s=""})=>{const{ServersImporter:u}=wa(Wq),f=I.useRef(null),{anchor:c,tooltip:p}=ao({placement:a}),[m,v]=I.useState([]),{flag:x,setToTrue:w,setToFalse:_}=Sn(),S=I.useRef(!1),C=I.useCallback(async({target:P})=>{var j;return u.importServersFromFile((j=P.files)==null?void 0:j[0]).then(R=>{const{duplicatedServers:$,newServers:V}=lAe(t,R);S.current=V.length>0,e(M0(t,V)),$.length>0?(v($),w()):r==null||r()}).then(()=>{P.value=null}).catch(i)},[e,i,r,t,u,w]),O=I.useCallback(()=>{e(M0(t,m)),_(),r==null||r()},[e,m,_,r,t]),T=I.useCallback(()=>{_(),S.current&&(r==null||r())},[_,r]);return y.jsxs(y.Fragment,{children:[y.jsxs(Dt,{variant:"secondary",className:s,onClick:()=>{var P;return(P=f.current)==null?void 0:P.click()},...c,children:[y.jsx(Ke,{icon:VY,fixedWidth:!0})," ",n??"Import from file"]}),y.jsxs(oo,{...p,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:f,onChange:C,"data-testid":"csv-file-input"}),y.jsx(qq,{open:x,duplicatedServers:m,onClose:T,onConfirm:O})]})},mAe=Sa(Wq,["ServersImporter"]),Yq=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=wa(Yq);return y.jsx(Td,{children:y.jsxs("div",{className:"flex flex-col items-center gap-y-4 md:gap-y-8",children:[y.jsxs(Xo,{className:"w-full lg:w-[80%]",variant:"error",children:[!ap(t)&&"Could not find this Shlink server.",ap(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(Pr,{to:"/server/create",children:"add a new one"}),"."]}),y.jsx(vn,{className:"w-full max-w-100 overflow-hidden",children:y.jsx(Lq,{borderless:!0,servers:Object.values(e)})}),ap(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(Pr,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})]})})},gAe=Sa(Yq,["DeleteServerButton"]),vAe=4e3,Kq=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=wa(Kq),[a,s]=I.useState(""),u=I.useMemo(()=>Object.values(e),[e]),f=I.useMemo(()=>u.filter(({name:v,url:x})=>`${v} ${x}`.toLowerCase().match(a.toLowerCase())),[u,a]),c=u.some(({autoConnect:v})=>!!v),[p,m]=r({delay:vAe});return y.jsxs(Td,{className:"flex flex-col gap-y-4",children:[y.jsx(cd,{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:m,children:"Import servers"}),f.length>0&&y.jsxs(Dt,{variant:"secondary",className:"flex-grow",onClick:async()=>t.exportServers(),children:[y.jsx(Ke,{icon:m7})," Export servers"]})]}),y.jsxs(Dt,{className:"md:ml-auto",to:"/server/create",children:[y.jsx(Ke,{icon:_m})," Add a server"]})]}),y.jsx(It,{className:"card",children:y.jsxs(Xe,{header:y.jsxs(Xe.Row,{children:[c&&y.jsx(Xe.Cell,{className:"w-[35px]",children:y.jsx("span",{className:"sr-only",children:"Auto-connect"})}),y.jsx(Xe.Cell,{children:"Name"}),y.jsx(Xe.Cell,{children:"Base URL"}),y.jsx(Xe.Cell,{children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[!f.length&&y.jsx(Xe.Row,{className:"text-center",children:y.jsx(Xe.Cell,{colSpan:4,children:"No servers found."})}),f.map(v=>y.jsx(i,{server:v,hasAutoConnect:c},v.id))]})}),p&&y.jsx("div",{children:y.jsx(qr,{variant:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},yAe=Sa(Kq,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),Zq=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=wa(Zq),{anchor:r,tooltip:i}=ao();return y.jsxs(Xe.Row,{className:"relative",children:[t&&y.jsx(Xe.Cell,{columnName:"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Ke,{icon:Lu,className:"text-lm-brand dark:text-dm-brand",...r}),y.jsx(oo,{...i,children:"Auto-connect to this server"})]})}),y.jsx(Xe.Cell,{className:"font-bold",columnName:"Name",children:y.jsx(Pr,{to:`/server/${e.id}`,children:e.name})}),y.jsx(Xe.Cell,{columnName:"Base URL",className:"max-lg:border-b-0",children:e.url}),y.jsx(Xe.Cell,{className:"text-right max-lg:absolute right-0 -top-1 mx-lg:pt-0",children:y.jsx(n,{server:e})})]})},bAe=Sa(Zq,["ManageServersRowDropdown"]),Xq=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=wa(Xq),{flag:r,setToTrue:i,setToFalse:a}=Sn(),s=`/server/${e.id}`,{autoConnect:u}=e,f=u?FY:hJ;return y.jsxs(y.Fragment,{children:[y.jsxs(fn,{menuAlignment:"right",children:[y.jsxs(fn.Item,{to:s,className:"gap-1.5",children:[y.jsx(Ke,{icon:BY,fixedWidth:!0})," Connect"]}),y.jsxs(fn.Item,{to:`${s}/edit`,className:"gap-1.5",children:[y.jsx(Ke,{icon:mE,fixedWidth:!0})," Edit server"]}),y.jsxs(fn.Item,{onClick:()=>t(e,!u),className:"gap-1.5",children:[y.jsx(Ke,{icon:f,fixedWidth:!0})," ",u?"Do not a":"A","uto-connect"]}),y.jsx(fn.Separator,{}),y.jsxs(fn.Item,{className:"[&]:text-danger gap-1.5",onClick:i,children:[y.jsx(Ke,{icon:f7,fixedWidth:!0})," Remove server"]})]}),y.jsx(n,{server:e,open:r,onClose:a})]})},_Ae=Sa(Xq,["DeleteServerModal"]),Qq=(e,t)=>V9(e,t,{serializeError:n=>n}),xAe={},{actions:wAe,reducer:SAe}=Un({name:"shlink/servers",initialState:xAe,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,a])=>[i,{...a,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:oAe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:CAe,deleteServer:AAe,setAutoConnect:OAe,createServers:Jq}=wAe,EAe=SAe,TAe=e=>M0({},Array.isArray(e)?e.filter(u7):[]),jAe=e=>Qq("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${ty.homepage}/servers.json`),i=TAe(r);n(Jq(i))}),R3="shlink/selectedServer",PAe="1.0.0",RAe="999.999.999",MAe="latest",NAe=e=>Bq(e===MAe?RAe:e,PAe),LAe=Z9(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:NAe(n),printableVersion:Uq(n)}))),wI=null,M3=Vr(`${R3}/resetSelectedServer`),DAe=e=>Qq(`${R3}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(M3());const{servers:i}=r(),a=i[t];if(!a)return{serverNotFound:!0};try{const s=e(a),{version:u,printableVersion:f}=await LAe(a,()=>s.health());return{...a,version:u,printableVersion:f}}catch{return{...a,serverNotReachable:!0}}}),kAe=e=>Un({name:R3,initialState:wI,reducers:{},extraReducers:t=>{t.addCase(M3,()=>wI),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),IAe=({servers:e,selectedServer:t})=>{const n=Object.values(e);return y.jsx(oA.Dropdown,{buttonContent:y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx(Ke,{icon:ZP,fixedWidth:!0})," Servers"]}),children:n.length===0?y.jsxs(et.Item,{to:"/server/create",children:[y.jsx(Ke,{icon:_m})," Add a server"]}):y.jsxs(y.Fragment,{children:[n.map(({name:r,id:i})=>y.jsx(et.Item,{to:`/server/${i}`,selected:bY(t)===i,children:r},i)),y.jsx(et.Separator,{}),y.jsxs(et.Item,{to:"/manage-servers",children:[y.jsx(Ke,{icon:ZP})," Manage servers"]})]})})},UAe=({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)},BAe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);UAe(e,i,n)},zAe="shlink-servers.csv";var pm,mm,gm;class $Ae{constructor(t,n,r){Eh(this,pm);Eh(this,mm);Eh(this,gm);Hc(this,"exportServers",async()=>{const t=Object.values(Oh(this,pm).get("servers")??{}).map(_Y);try{const n=Oh(this,gm).call(this,t);BAe(Oh(this,mm),n,zAe)}catch(n){console.error(n)}});Th(this,pm,t),Th(this,mm,n),Th(this,gm,r)}}pm=new WeakMap,mm=new WeakMap,gm=new WeakMap;const FAe=e=>{if(!Array.isArray(e))throw new Error("Provided file does not have the right format.");return e.map(wY)};var vm;class qAe{constructor(t){Eh(this,vm);Th(this,vm,t)}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await Oh(this,vm).call(this,n);return FAe(r)}}vm=new WeakMap;const VAe=(e,t)=>{e.factory("ManageServers",yAe),e.decorator("ManageServers",R0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",bAe),e.factory("ManageServersRowDropdown",_Ae),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",cAe),e.decorator("CreateServer",R0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",pAe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>IAe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>dAe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",fAe),e.factory("ImportServersBtn",mAe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",gAe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",qAe,"csvToJson"),e.service("ServersExporter",$Ae,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",DAe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>Jq),e.serviceFactory("deleteServer",()=>AAe),e.serviceFactory("editServer",()=>CAe),e.serviceFactory("setAutoConnect",()=>OAe),e.serviceFactory("fetchServers",jAe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>M3),e.serviceFactory("selectedServerReducerCreator",kAe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},eV={field:"dateCreated",dir:"DESC"},HAe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:zE()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:eV}},{reducer:GAe,actions:WAe}=Un({name:"shlink/settings",initialState:HAe,reducers:{setSettings:(e,{payload:t})=>rb(e,t)}}),{setSettings:YAe}=WAe,KAe=GAe,ZAe=({settings:e,setSettings:t})=>y.jsx(Td,{children:y.jsx(qte,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:eV})}),XAe=(e,t)=>{e.serviceFactory("Settings",()=>ZAe),e.decorator("Settings",R0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>YAe)};var MC,SI;function QAe(){return SI||(SI=1,MC=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,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(u){return r[u]}).bind(null,s));return a},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 _=[];for(var S in w)_.push(S);return _};e.exports=m;var a=n(5);a.inherits=n(2);var s=n(23),u=n(14);a.inherits(m,s);for(var f=i(u.prototype),c=0;c<f.length;c++){var p=f[c];m.prototype[p]||(m.prototype[p]=u.prototype[p])}function m(w){if(!(this instanceof m))return new m(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",v)}function v(){this.allowHalfOpen||this._writableState.ended||r.nextTick(x,this)}function x(w){w.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.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)}}),m.prototype._destroy=function(w,_){this.push(null),this.end(),r.nextTick(_,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),a=n(39),s=n(40);function u(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(z,q){if(u()<q)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(z=new Uint8Array(q)).__proto__=c.prototype:(z===null&&(z=new c(q)),z.length=q),z}function c(z,q,ee){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(z,q,ee);if(typeof z=="number"){if(typeof q=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,z)}return p(this,z,q,ee)}function p(z,q,ee,ue){if(typeof q=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&q instanceof ArrayBuffer?function(K,se,de,ve){if(se.byteLength,de<0||se.byteLength<de)throw new RangeError("'offset' is out of bounds");if(se.byteLength<de+(ve||0))throw new RangeError("'length' is out of bounds");return se=de===void 0&&ve===void 0?new Uint8Array(se):ve===void 0?new Uint8Array(se,de):new Uint8Array(se,de,ve),c.TYPED_ARRAY_SUPPORT?(K=se).__proto__=c.prototype:K=x(K,se),K}(z,q,ee,ue):typeof q=="string"?function(K,se,de){if(typeof de=="string"&&de!==""||(de="utf8"),!c.isEncoding(de))throw new TypeError('"encoding" must be a valid string encoding');var ve=0|_(se,de),he=(K=f(K,ve)).write(se,de);return he!==ve&&(K=K.slice(0,he)),K}(z,q,ee):function(K,se){if(c.isBuffer(se)){var de=0|w(se.length);return(K=f(K,de)).length===0||se.copy(K,0,0,de),K}if(se){if(typeof ArrayBuffer<"u"&&se.buffer instanceof ArrayBuffer||"length"in se)return typeof se.length!="number"||function(ve){return ve!=ve}(se.length)?f(K,0):x(K,se);if(se.type==="Buffer"&&s(se.data))return x(K,se.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(z,q)}function m(z){if(typeof z!="number")throw new TypeError('"size" argument must be a number');if(z<0)throw new RangeError('"size" argument must not be negative')}function v(z,q){if(m(q),z=f(z,q<0?0:0|w(q)),!c.TYPED_ARRAY_SUPPORT)for(var ee=0;ee<q;++ee)z[ee]=0;return z}function x(z,q){var ee=q.length<0?0:0|w(q.length);z=f(z,ee);for(var ue=0;ue<ee;ue+=1)z[ue]=255&q[ue];return z}function w(z){if(z>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|z}function _(z,q){if(c.isBuffer(z))return z.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(z)||z instanceof ArrayBuffer))return z.byteLength;typeof z!="string"&&(z=""+z);var ee=z.length;if(ee===0)return 0;for(var ue=!1;;)switch(q){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":case void 0:return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return ce(z).length;default:if(ue)return fe(z).length;q=(""+q).toLowerCase(),ue=!0}}function S(z,q,ee){var ue=z[q];z[q]=z[ee],z[ee]=ue}function C(z,q,ee,ue,K){if(z.length===0)return-1;if(typeof ee=="string"?(ue=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),ee=+ee,isNaN(ee)&&(ee=K?0:z.length-1),ee<0&&(ee=z.length+ee),ee>=z.length){if(K)return-1;ee=z.length-1}else if(ee<0){if(!K)return-1;ee=0}if(typeof q=="string"&&(q=c.from(q,ue)),c.isBuffer(q))return q.length===0?-1:O(z,q,ee,ue,K);if(typeof q=="number")return q&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(z,q,ee):Uint8Array.prototype.lastIndexOf.call(z,q,ee):O(z,[q],ee,ue,K);throw new TypeError("val must be string, number or Buffer")}function O(z,q,ee,ue,K){var se,de=1,ve=z.length,he=q.length;if(ue!==void 0&&((ue=String(ue).toLowerCase())==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(z.length<2||q.length<2)return-1;de=2,ve/=2,he/=2,ee/=2}function xe(Ue,$e){return de===1?Ue[$e]:Ue.readUInt16BE($e*de)}if(K){var Oe=-1;for(se=ee;se<ve;se++)if(xe(z,se)===xe(q,Oe===-1?0:se-Oe)){if(Oe===-1&&(Oe=se),se-Oe+1===he)return Oe*de}else Oe!==-1&&(se-=se-Oe),Oe=-1}else for(ee+he>ve&&(ee=ve-he),se=ee;se>=0;se--){for(var Le=!0,He=0;He<he;He++)if(xe(z,se+He)!==xe(q,He)){Le=!1;break}if(Le)return se}return-1}function T(z,q,ee,ue){ee=Number(ee)||0;var K=z.length-ee;ue?(ue=Number(ue))>K&&(ue=K):ue=K;var se=q.length;if(se%2!=0)throw new TypeError("Invalid hex string");ue>se/2&&(ue=se/2);for(var de=0;de<ue;++de){var ve=parseInt(q.substr(2*de,2),16);if(isNaN(ve))return de;z[ee+de]=ve}return de}function P(z,q,ee,ue){return ye(fe(q,z.length-ee),z,ee,ue)}function j(z,q,ee,ue){return ye(function(K){for(var se=[],de=0;de<K.length;++de)se.push(255&K.charCodeAt(de));return se}(q),z,ee,ue)}function R(z,q,ee,ue){return j(z,q,ee,ue)}function $(z,q,ee,ue){return ye(ce(q),z,ee,ue)}function V(z,q,ee,ue){return ye(function(K,se){for(var de,ve,he,xe=[],Oe=0;Oe<K.length&&!((se-=2)<0);++Oe)ve=(de=K.charCodeAt(Oe))>>8,he=de%256,xe.push(he),xe.push(ve);return xe}(q,z.length-ee),z,ee,ue)}function X(z,q,ee){return q===0&&ee===z.length?i.fromByteArray(z):i.fromByteArray(z.slice(q,ee))}function Z(z,q,ee){ee=Math.min(z.length,ee);for(var ue=[],K=q;K<ee;){var se,de,ve,he,xe=z[K],Oe=null,Le=xe>239?4:xe>223?3:xe>191?2:1;if(K+Le<=ee)switch(Le){case 1:xe<128&&(Oe=xe);break;case 2:(192&(se=z[K+1]))==128&&(he=(31&xe)<<6|63&se)>127&&(Oe=he);break;case 3:se=z[K+1],de=z[K+2],(192&se)==128&&(192&de)==128&&(he=(15&xe)<<12|(63&se)<<6|63&de)>2047&&(he<55296||he>57343)&&(Oe=he);break;case 4:se=z[K+1],de=z[K+2],ve=z[K+3],(192&se)==128&&(192&de)==128&&(192&ve)==128&&(he=(15&xe)<<18|(63&se)<<12|(63&de)<<6|63&ve)>65535&&he<1114112&&(Oe=he)}Oe===null?(Oe=65533,Le=1):Oe>65535&&(Oe-=65536,ue.push(Oe>>>10&1023|55296),Oe=56320|1023&Oe),ue.push(Oe),K+=Le}return function(He){var Ue=He.length;if(Ue<=Y)return String.fromCharCode.apply(String,He);for(var $e="",_e=0;_e<Ue;)$e+=String.fromCharCode.apply(String,He.slice(_e,_e+=Y));return $e}(ue)}t.Buffer=c,t.SlowBuffer=function(z){return+z!=z&&(z=0),c.alloc(+z)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42&&typeof z.subarray=="function"&&z.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=u(),c.poolSize=8192,c._augment=function(z){return z.__proto__=c.prototype,z},c.from=function(z,q,ee){return p(null,z,q,ee)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(z,q,ee){return function(ue,K,se,de){return m(K),K<=0?f(ue,K):se!==void 0?typeof de=="string"?f(ue,K).fill(se,de):f(ue,K).fill(se):f(ue,K)}(null,z,q,ee)},c.allocUnsafe=function(z){return v(null,z)},c.allocUnsafeSlow=function(z){return v(null,z)},c.isBuffer=function(z){return!(z==null||!z._isBuffer)},c.compare=function(z,q){if(!c.isBuffer(z)||!c.isBuffer(q))throw new TypeError("Arguments must be Buffers");if(z===q)return 0;for(var ee=z.length,ue=q.length,K=0,se=Math.min(ee,ue);K<se;++K)if(z[K]!==q[K]){ee=z[K],ue=q[K];break}return ee<ue?-1:ue<ee?1:0},c.isEncoding=function(z){switch(String(z).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}},c.concat=function(z,q){if(!s(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return c.alloc(0);var ee;if(q===void 0)for(q=0,ee=0;ee<z.length;++ee)q+=z[ee].length;var ue=c.allocUnsafe(q),K=0;for(ee=0;ee<z.length;++ee){var se=z[ee];if(!c.isBuffer(se))throw new TypeError('"list" argument must be an Array of Buffers');se.copy(ue,K),K+=se.length}return ue},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var q=0;q<z;q+=2)S(this,q,q+1);return this},c.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var q=0;q<z;q+=4)S(this,q,q+3),S(this,q+1,q+2);return this},c.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var q=0;q<z;q+=8)S(this,q,q+7),S(this,q+1,q+6),S(this,q+2,q+5),S(this,q+3,q+4);return this},c.prototype.toString=function(){var z=0|this.length;return z===0?"":arguments.length===0?Z(this,0,z):(function(q,ee,ue){var K=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((ue===void 0||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(ee>>>=0))return"";for(q||(q="utf8");;)switch(q){case"hex":return Q(this,ee,ue);case"utf8":case"utf-8":return Z(this,ee,ue);case"ascii":return te(this,ee,ue);case"latin1":case"binary":return ae(this,ee,ue);case"base64":return X(this,ee,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,ee,ue);default:if(K)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),K=!0}}).apply(this,arguments)},c.prototype.equals=function(z){if(!c.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z||c.compare(this,z)===0},c.prototype.inspect=function(){var z="",q=t.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,q).match(/.{2}/g).join(" "),this.length>q&&(z+=" ... ")),"<Buffer "+z+">"},c.prototype.compare=function(z,q,ee,ue,K){if(!c.isBuffer(z))throw new TypeError("Argument must be a Buffer");if(q===void 0&&(q=0),ee===void 0&&(ee=z?z.length:0),ue===void 0&&(ue=0),K===void 0&&(K=this.length),q<0||ee>z.length||ue<0||K>this.length)throw new RangeError("out of range index");if(ue>=K&&q>=ee)return 0;if(ue>=K)return-1;if(q>=ee)return 1;if(q>>>=0,ee>>>=0,ue>>>=0,K>>>=0,this===z)return 0;for(var se=K-ue,de=ee-q,ve=Math.min(se,de),he=this.slice(ue,K),xe=z.slice(q,ee),Oe=0;Oe<ve;++Oe)if(he[Oe]!==xe[Oe]){se=he[Oe],de=xe[Oe];break}return se<de?-1:de<se?1:0},c.prototype.includes=function(z,q,ee){return this.indexOf(z,q,ee)!==-1},c.prototype.indexOf=function(z,q,ee){return C(this,z,q,ee,!0)},c.prototype.lastIndexOf=function(z,q,ee){return C(this,z,q,ee,!1)},c.prototype.write=function(z,q,ee,ue){if(q===void 0)ue="utf8",ee=this.length,q=0;else if(ee===void 0&&typeof q=="string")ue=q,ee=this.length,q=0;else{if(!isFinite(q))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");q|=0,isFinite(ee)?(ee|=0,ue===void 0&&(ue="utf8")):(ue=ee,ee=void 0)}var K=this.length-q;if((ee===void 0||ee>K)&&(ee=K),z.length>0&&(ee<0||q<0)||q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var se=!1;;)switch(ue){case"hex":return T(this,z,q,ee);case"utf8":case"utf-8":return P(this,z,q,ee);case"ascii":return j(this,z,q,ee);case"latin1":case"binary":return R(this,z,q,ee);case"base64":return $(this,z,q,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,z,q,ee);default:if(se)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;function te(z,q,ee){var ue="";ee=Math.min(z.length,ee);for(var K=q;K<ee;++K)ue+=String.fromCharCode(127&z[K]);return ue}function ae(z,q,ee){var ue="";ee=Math.min(z.length,ee);for(var K=q;K<ee;++K)ue+=String.fromCharCode(z[K]);return ue}function Q(z,q,ee){var ue=z.length;(!q||q<0)&&(q=0),(!ee||ee<0||ee>ue)&&(ee=ue);for(var K="",se=q;se<ee;++se)K+=ie(z[se]);return K}function ne(z,q,ee){for(var ue=z.slice(q,ee),K="",se=0;se<ue.length;se+=2)K+=String.fromCharCode(ue[se]+256*ue[se+1]);return K}function H(z,q,ee){if(z%1!=0||z<0)throw new RangeError("offset is not uint");if(z+q>ee)throw new RangeError("Trying to access beyond buffer length")}function B(z,q,ee,ue,K,se){if(!c.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(q>K||q<se)throw new RangeError('"value" argument is out of bounds');if(ee+ue>z.length)throw new RangeError("Index out of range")}function U(z,q,ee,ue){q<0&&(q=65535+q+1);for(var K=0,se=Math.min(z.length-ee,2);K<se;++K)z[ee+K]=(q&255<<8*(ue?K:1-K))>>>8*(ue?K:1-K)}function F(z,q,ee,ue){q<0&&(q=4294967295+q+1);for(var K=0,se=Math.min(z.length-ee,4);K<se;++K)z[ee+K]=q>>>8*(ue?K:3-K)&255}function M(z,q,ee,ue,K,se){if(ee+ue>z.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function k(z,q,ee,ue,K){return K||M(z,0,ee,4),a.write(z,q,ee,ue,23,4),ee+4}function J(z,q,ee,ue,K){return K||M(z,0,ee,8),a.write(z,q,ee,ue,52,8),ee+8}c.prototype.slice=function(z,q){var ee,ue=this.length;if(z=~~z,q=q===void 0?ue:~~q,z<0?(z+=ue)<0&&(z=0):z>ue&&(z=ue),q<0?(q+=ue)<0&&(q=0):q>ue&&(q=ue),q<z&&(q=z),c.TYPED_ARRAY_SUPPORT)(ee=this.subarray(z,q)).__proto__=c.prototype;else{var K=q-z;ee=new c(K,void 0);for(var se=0;se<K;++se)ee[se]=this[se+z]}return ee},c.prototype.readUIntLE=function(z,q,ee){z|=0,q|=0,ee||H(z,q,this.length);for(var ue=this[z],K=1,se=0;++se<q&&(K*=256);)ue+=this[z+se]*K;return ue},c.prototype.readUIntBE=function(z,q,ee){z|=0,q|=0,ee||H(z,q,this.length);for(var ue=this[z+--q],K=1;q>0&&(K*=256);)ue+=this[z+--q]*K;return ue},c.prototype.readUInt8=function(z,q){return q||H(z,1,this.length),this[z]},c.prototype.readUInt16LE=function(z,q){return q||H(z,2,this.length),this[z]|this[z+1]<<8},c.prototype.readUInt16BE=function(z,q){return q||H(z,2,this.length),this[z]<<8|this[z+1]},c.prototype.readUInt32LE=function(z,q){return q||H(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+16777216*this[z+3]},c.prototype.readUInt32BE=function(z,q){return q||H(z,4,this.length),16777216*this[z]+(this[z+1]<<16|this[z+2]<<8|this[z+3])},c.prototype.readIntLE=function(z,q,ee){z|=0,q|=0,ee||H(z,q,this.length);for(var ue=this[z],K=1,se=0;++se<q&&(K*=256);)ue+=this[z+se]*K;return ue>=(K*=128)&&(ue-=Math.pow(2,8*q)),ue},c.prototype.readIntBE=function(z,q,ee){z|=0,q|=0,ee||H(z,q,this.length);for(var ue=q,K=1,se=this[z+--ue];ue>0&&(K*=256);)se+=this[z+--ue]*K;return se>=(K*=128)&&(se-=Math.pow(2,8*q)),se},c.prototype.readInt8=function(z,q){return q||H(z,1,this.length),128&this[z]?-1*(255-this[z]+1):this[z]},c.prototype.readInt16LE=function(z,q){q||H(z,2,this.length);var ee=this[z]|this[z+1]<<8;return 32768&ee?4294901760|ee:ee},c.prototype.readInt16BE=function(z,q){q||H(z,2,this.length);var ee=this[z+1]|this[z]<<8;return 32768&ee?4294901760|ee:ee},c.prototype.readInt32LE=function(z,q){return q||H(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},c.prototype.readInt32BE=function(z,q){return q||H(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},c.prototype.readFloatLE=function(z,q){return q||H(z,4,this.length),a.read(this,z,!0,23,4)},c.prototype.readFloatBE=function(z,q){return q||H(z,4,this.length),a.read(this,z,!1,23,4)},c.prototype.readDoubleLE=function(z,q){return q||H(z,8,this.length),a.read(this,z,!0,52,8)},c.prototype.readDoubleBE=function(z,q){return q||H(z,8,this.length),a.read(this,z,!1,52,8)},c.prototype.writeUIntLE=function(z,q,ee,ue){z=+z,q|=0,ee|=0,ue||B(this,z,q,ee,Math.pow(2,8*ee)-1,0);var K=1,se=0;for(this[q]=255&z;++se<ee&&(K*=256);)this[q+se]=z/K&255;return q+ee},c.prototype.writeUIntBE=function(z,q,ee,ue){z=+z,q|=0,ee|=0,ue||B(this,z,q,ee,Math.pow(2,8*ee)-1,0);var K=ee-1,se=1;for(this[q+K]=255&z;--K>=0&&(se*=256);)this[q+K]=z/se&255;return q+ee},c.prototype.writeUInt8=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,1,255,0),c.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[q]=255&z,q+1},c.prototype.writeUInt16LE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[q]=255&z,this[q+1]=z>>>8):U(this,z,q,!0),q+2},c.prototype.writeUInt16BE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[q]=z>>>8,this[q+1]=255&z):U(this,z,q,!1),q+2},c.prototype.writeUInt32LE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[q+3]=z>>>24,this[q+2]=z>>>16,this[q+1]=z>>>8,this[q]=255&z):F(this,z,q,!0),q+4},c.prototype.writeUInt32BE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[q]=z>>>24,this[q+1]=z>>>16,this[q+2]=z>>>8,this[q+3]=255&z):F(this,z,q,!1),q+4},c.prototype.writeIntLE=function(z,q,ee,ue){if(z=+z,q|=0,!ue){var K=Math.pow(2,8*ee-1);B(this,z,q,ee,K-1,-K)}var se=0,de=1,ve=0;for(this[q]=255&z;++se<ee&&(de*=256);)z<0&&ve===0&&this[q+se-1]!==0&&(ve=1),this[q+se]=(z/de>>0)-ve&255;return q+ee},c.prototype.writeIntBE=function(z,q,ee,ue){if(z=+z,q|=0,!ue){var K=Math.pow(2,8*ee-1);B(this,z,q,ee,K-1,-K)}var se=ee-1,de=1,ve=0;for(this[q+se]=255&z;--se>=0&&(de*=256);)z<0&&ve===0&&this[q+se+1]!==0&&(ve=1),this[q+se]=(z/de>>0)-ve&255;return q+ee},c.prototype.writeInt8=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,1,127,-128),c.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[q]=255&z,q+1},c.prototype.writeInt16LE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[q]=255&z,this[q+1]=z>>>8):U(this,z,q,!0),q+2},c.prototype.writeInt16BE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[q]=z>>>8,this[q+1]=255&z):U(this,z,q,!1),q+2},c.prototype.writeInt32LE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[q]=255&z,this[q+1]=z>>>8,this[q+2]=z>>>16,this[q+3]=z>>>24):F(this,z,q,!0),q+4},c.prototype.writeInt32BE=function(z,q,ee){return z=+z,q|=0,ee||B(this,z,q,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),c.TYPED_ARRAY_SUPPORT?(this[q]=z>>>24,this[q+1]=z>>>16,this[q+2]=z>>>8,this[q+3]=255&z):F(this,z,q,!1),q+4},c.prototype.writeFloatLE=function(z,q,ee){return k(this,z,q,!0,ee)},c.prototype.writeFloatBE=function(z,q,ee){return k(this,z,q,!1,ee)},c.prototype.writeDoubleLE=function(z,q,ee){return J(this,z,q,!0,ee)},c.prototype.writeDoubleBE=function(z,q,ee){return J(this,z,q,!1,ee)},c.prototype.copy=function(z,q,ee,ue){if(ee||(ee=0),ue||ue===0||(ue=this.length),q>=z.length&&(q=z.length),q||(q=0),ue>0&&ue<ee&&(ue=ee),ue===ee||z.length===0||this.length===0)return 0;if(q<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("sourceStart out of bounds");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),z.length-q<ue-ee&&(ue=z.length-q+ee);var K,se=ue-ee;if(this===z&&ee<q&&q<ue)for(K=se-1;K>=0;--K)z[K+q]=this[K+ee];else if(se<1e3||!c.TYPED_ARRAY_SUPPORT)for(K=0;K<se;++K)z[K+q]=this[K+ee];else Uint8Array.prototype.set.call(z,this.subarray(ee,ee+se),q);return se},c.prototype.fill=function(z,q,ee,ue){if(typeof z=="string"){if(typeof q=="string"?(ue=q,q=0,ee=this.length):typeof ee=="string"&&(ue=ee,ee=this.length),z.length===1){var K=z.charCodeAt(0);K<256&&(z=K)}if(ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!c.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue)}else typeof z=="number"&&(z&=255);if(q<0||this.length<q||this.length<ee)throw new RangeError("Out of range index");if(ee<=q)return this;var se;if(q>>>=0,ee=ee===void 0?this.length:ee>>>0,z||(z=0),typeof z=="number")for(se=q;se<ee;++se)this[se]=z;else{var de=c.isBuffer(z)?z:fe(new c(z,ue).toString()),ve=de.length;for(se=0;se<ee-q;++se)this[se+q]=de[se%ve]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function ie(z){return z<16?"0"+z.toString(16):z.toString(16)}function fe(z,q){var ee;q=q||1/0;for(var ue=z.length,K=null,se=[],de=0;de<ue;++de){if((ee=z.charCodeAt(de))>55295&&ee<57344){if(!K){if(ee>56319){(q-=3)>-1&&se.push(239,191,189);continue}if(de+1===ue){(q-=3)>-1&&se.push(239,191,189);continue}K=ee;continue}if(ee<56320){(q-=3)>-1&&se.push(239,191,189),K=ee;continue}ee=65536+(K-55296<<10|ee-56320)}else K&&(q-=3)>-1&&se.push(239,191,189);if(K=null,ee<128){if((q-=1)<0)break;se.push(ee)}else if(ee<2048){if((q-=2)<0)break;se.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((q-=3)<0)break;se.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((q-=4)<0)break;se.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return se}function ce(z){return i.toByteArray(function(q){if((q=function(ee){return ee.trim?ee.trim():ee.replace(/^\s+|\s+$/g,"")}(q).replace(W,"")).length<2)return"";for(;q.length%4!=0;)q+="=";return q}(z))}function ye(z,q,ee,ue){for(var K=0;K<ue&&!(K+ee>=q.length||K>=z.length);++K)q[K+ee]=z[K];return K}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(S){if(n===setTimeout)return setTimeout(S,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(S,0);try{return n(S,0)}catch{try{return n.call(null,S,0)}catch{return n.call(this,S,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var f,c=[],p=!1,m=-1;function v(){p&&f&&(p=!1,f.length?c=f.concat(c):m=-1,c.length&&x())}function x(){if(!p){var S=u(v);p=!0;for(var C=c.length;C;){for(f=c,c=[];++m<C;)f&&f[m].run();m=-1,C=c.length}f=null,p=!1,function(O){if(r===clearTimeout)return clearTimeout(O);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(O);try{r(O)}catch{try{return r.call(null,O)}catch{return r.call(this,O)}}}(S)}}function w(S,C){this.fun=S,this.array=C}function _(){}i.nextTick=function(S){var C=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)C[O-1]=arguments[O];c.push(new w(S,C)),c.length!==1||p||u(x)},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=_,i.addListener=_,i.once=_,i.off=_,i.removeListener=_,i.removeAllListeners=_,i.emit=_,i.prependListener=_,i.prependOnceListener=_,i.listeners=function(S){return[]},i.binding=function(S){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(S){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(a){return Object.prototype.toString.call(a)}t.isArray=function(a){return Array.isArray?Array.isArray(a):i(a)==="[object Array]"},t.isBoolean=function(a){return typeof a=="boolean"},t.isNull=function(a){return a===null},t.isNullOrUndefined=function(a){return a==null},t.isNumber=function(a){return typeof a=="number"},t.isString=function(a){return typeof a=="string"},t.isSymbol=function(a){return typeof a=="symbol"},t.isUndefined=function(a){return a===void 0},t.isRegExp=function(a){return i(a)==="[object RegExp]"},t.isObject=function(a){return typeof a=="object"&&a!==null},t.isDate=function(a){return i(a)==="[object Date]"},t.isError=function(a){return i(a)==="[object Error]"||a instanceof Error},t.isFunction=function(a){return typeof a=="function"},t.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===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,a,s,u){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var f,c,p=arguments.length;switch(p){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,a)});case 3:return r.nextTick(function(){i.call(null,a,s)});case 4:return r.nextTick(function(){i.call(null,a,s,u)});default:for(f=new Array(p-1),c=0;c<f.length;)f[c++]=arguments[c];return r.nextTick(function(){i.apply(null,f)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function a(u,f){for(var c in u)f[c]=u[c]}function s(u,f,c){return i(u,f,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),a(i,s),s.from=function(u,f,c){if(typeof u=="number")throw new TypeError("Argument must not be a number");return i(u,f,c)},s.alloc=function(u,f,c){if(typeof u!="number")throw new TypeError("Argument must be a number");var p=i(u);return f!==void 0?typeof c=="string"?p.fill(f,c):p.fill(f):p.fill(0),p},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,a){for(var s=i.length;s--;)if(r(i[s][0],a))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,a){var s=i.__data__;return r(a)?s[typeof a=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function s(u,f){this._id=u,this._clearFn=f}t.setTimeout=function(){return new s(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(a.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,f){clearTimeout(u._idleTimeoutId),u._idleTimeout=f},t.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},t._unrefActive=t.active=function(u){clearTimeout(u._idleTimeoutId);var f=u._idleTimeout;f>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},f))},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 a(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,f,c,p,m,v;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 x=new Error('Uncaught, unspecified "error" event. ('+u+")");throw x.context=u,x}if(a(f=this._events[s]))return!1;if(r(f))switch(arguments.length){case 1:f.call(this);break;case 2:f.call(this,arguments[1]);break;case 3:f.call(this,arguments[1],arguments[2]);break;default:p=Array.prototype.slice.call(arguments,1),f.apply(this,p)}else if(i(f))for(p=Array.prototype.slice.call(arguments,1),c=(v=f.slice()).length,m=0;m<c;m++)v[m].apply(this,p);return!0},n.prototype.addListener=function(s,u){var f;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&&(f=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&f>0&&this._events[s].length>f&&(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 f=!1;function c(){this.removeListener(s,c),f||(f=!0,u.apply(this,arguments))}return c.listener=u,this.on(s,c),this},n.prototype.removeListener=function(s,u){var f,c,p,m;if(!r(u))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(p=(f=this._events[s]).length,c=-1,f===u||r(f.listener)&&f.listener===u)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,u);else if(i(f)){for(m=p;m-- >0;)if(f[m]===u||f[m].listener&&f[m].listener===u){c=m;break}if(c<0)return this;f.length===1?(f.length=0,delete this._events[s]):f.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,u)}return this},n.prototype.removeAllListeners=function(s){var u,f;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(f=this._events[s]))this.removeListener(s,f);else if(f)for(;f.length;)this.removeListener(s,f[f.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,a){var s=n(6);function u(Z){var Y=this;this.next=null,this.entry=null,this.finish=function(){(function(te,ae,Q){var ne=te.entry;for(te.entry=null;ne;){var H=ne.callback;ae.pendingcb--,H(void 0),ne=ne.next}ae.corkedRequestsFree?ae.corkedRequestsFree.next=te:ae.corkedRequestsFree=te})(Y,Z)}}e.exports=T;var f,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;T.WritableState=O;var p=n(5);p.inherits=n(2);var m,v={deprecate:n(44)},x=n(24),w=n(7).Buffer,_=a.Uint8Array||function(){},S=n(25);function C(){}function O(Z,Y){f=f||n(1),Z=Z||{};var te=Y instanceof f;this.objectMode=!!Z.objectMode,te&&(this.objectMode=this.objectMode||!!Z.writableObjectMode);var ae=Z.highWaterMark,Q=Z.writableHighWaterMark,ne=this.objectMode?16:16384;this.highWaterMark=ae||ae===0?ae:te&&(Q||Q===0)?Q:ne,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var H=Z.decodeStrings===!1;this.decodeStrings=!H,this.defaultEncoding=Z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function(U,F){var M=U._writableState,k=M.sync,J=M.writecb;if(function(ie){ie.writing=!1,ie.writecb=null,ie.length-=ie.writelen,ie.writelen=0}(M),F)(function(ie,fe,ce,ye,z){--fe.pendingcb,ce?(s.nextTick(z,ye),s.nextTick(X,ie,fe),ie._writableState.errorEmitted=!0,ie.emit("error",ye)):(z(ye),ie._writableState.errorEmitted=!0,ie.emit("error",ye),X(ie,fe))})(U,M,k,F,J);else{var W=$(M);W||M.corked||M.bufferProcessing||!M.bufferedRequest||R(U,M),k?c(j,U,M,W,J):j(U,M,W,J)}})(Y,B)},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 T(Z){if(f=f||n(1),!(m.call(T,this)||this instanceof f))return new T(Z);this._writableState=new O(Z,this),this.writable=!0,Z&&(typeof Z.write=="function"&&(this._write=Z.write),typeof Z.writev=="function"&&(this._writev=Z.writev),typeof Z.destroy=="function"&&(this._destroy=Z.destroy),typeof Z.final=="function"&&(this._final=Z.final)),x.call(this)}function P(Z,Y,te,ae,Q,ne,H){Y.writelen=ae,Y.writecb=H,Y.writing=!0,Y.sync=!0,te?Z._writev(Q,Y.onwrite):Z._write(Q,ne,Y.onwrite),Y.sync=!1}function j(Z,Y,te,ae){te||function(Q,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Q.emit("drain"))}(Z,Y),Y.pendingcb--,ae(),X(Z,Y)}function R(Z,Y){Y.bufferProcessing=!0;var te=Y.bufferedRequest;if(Z._writev&&te&&te.next){var ae=Y.bufferedRequestCount,Q=new Array(ae),ne=Y.corkedRequestsFree;ne.entry=te;for(var H=0,B=!0;te;)Q[H]=te,te.isBuf||(B=!1),te=te.next,H+=1;Q.allBuffers=B,P(Z,Y,!0,Y.length,Q,"",ne.finish),Y.pendingcb++,Y.lastBufferedRequest=null,ne.next?(Y.corkedRequestsFree=ne.next,ne.next=null):Y.corkedRequestsFree=new u(Y),Y.bufferedRequestCount=0}else{for(;te;){var U=te.chunk,F=te.encoding,M=te.callback;if(P(Z,Y,!1,Y.objectMode?1:U.length,U,F,M),te=te.next,Y.bufferedRequestCount--,Y.writing)break}te===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=te,Y.bufferProcessing=!1}function $(Z){return Z.ending&&Z.length===0&&Z.bufferedRequest===null&&!Z.finished&&!Z.writing}function V(Z,Y){Z._final(function(te){Y.pendingcb--,te&&Z.emit("error",te),Y.prefinished=!0,Z.emit("prefinish"),X(Z,Y)})}function X(Z,Y){var te=$(Y);return te&&(function(ae,Q){Q.prefinished||Q.finalCalled||(typeof ae._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,s.nextTick(V,ae,Q)):(Q.prefinished=!0,ae.emit("prefinish")))}(Z,Y),Y.pendingcb===0&&(Y.finished=!0,Z.emit("finish"))),te}p.inherits(T,x),O.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,Y=[];Z;)Y.push(Z),Z=Z.next;return Y},function(){try{Object.defineProperty(O.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(Z){return!!m.call(this,Z)||this===T&&Z&&Z._writableState instanceof O}})):m=function(Z){return Z instanceof this},T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},T.prototype.write=function(Z,Y,te){var ae=this._writableState,Q=!1,ne=!ae.objectMode&&function(H){return w.isBuffer(H)||H instanceof _}(Z);return ne&&!w.isBuffer(Z)&&(Z=function(H){return w.from(H)}(Z)),typeof Y=="function"&&(te=Y,Y=null),ne?Y="buffer":Y||(Y=ae.defaultEncoding),typeof te!="function"&&(te=C),ae.ended?function(H,B){var U=new Error("write after end");H.emit("error",U),s.nextTick(B,U)}(this,te):(ne||function(H,B,U,F){var M=!0,k=!1;return U===null?k=new TypeError("May not write null values to stream"):typeof U=="string"||U===void 0||B.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(H.emit("error",k),s.nextTick(F,k),M=!1),M}(this,ae,Z,te))&&(ae.pendingcb++,Q=function(H,B,U,F,M,k){if(!U){var J=function(ce,ye,z){return ce.objectMode||ce.decodeStrings===!1||typeof ye!="string"||(ye=w.from(ye,z)),ye}(B,F,M);F!==J&&(U=!0,M="buffer",F=J)}var W=B.objectMode?1:F.length;B.length+=W;var ie=B.length<B.highWaterMark;if(ie||(B.needDrain=!0),B.writing||B.corked){var fe=B.lastBufferedRequest;B.lastBufferedRequest={chunk:F,encoding:M,isBuf:U,callback:k,next:null},fe?fe.next=B.lastBufferedRequest:B.bufferedRequest=B.lastBufferedRequest,B.bufferedRequestCount+=1}else P(H,B,!1,W,F,M,k);return ie}(this,ae,ne,Z,Y,te)),Q},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var Z=this._writableState;Z.corked&&(Z.corked--,Z.writing||Z.corked||Z.finished||Z.bufferProcessing||!Z.bufferedRequest||R(this,Z))},T.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(Z,Y,te){te(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(Z,Y,te){var ae=this._writableState;typeof Z=="function"?(te=Z,Z=null,Y=null):typeof Y=="function"&&(te=Y,Y=null),Z!=null&&this.write(Z,Y),ae.corked&&(ae.corked=1,this.uncork()),ae.ending||ae.finished||function(Q,ne,H){ne.ending=!0,X(Q,ne),H&&(ne.finished?s.nextTick(H):Q.once("finish",H)),ne.ended=!0,Q.writable=!1}(this,ae,te)},Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Z){this._writableState&&(this._writableState.destroyed=Z)}}),T.prototype.destroy=S.destroy,T.prototype._undestroy=S.undestroy,T.prototype._destroy=function(Z,Y){this.end(),Y(Z)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,a){e.exports=function s(u,f,c){function p(x,w){if(!f[x]){if(!u[x]){var _=typeof _dereq_=="function"&&_dereq_;if(!w&&_)return _(x,!0);if(m)return m(x,!0);var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}var C=f[x]={exports:{}};u[x][0].call(C.exports,function(O){return p(u[x][1][O]||O)},C,C.exports,s,u,f,c)}return f[x].exports}for(var m=typeof _dereq_=="function"&&_dereq_,v=0;v<c.length;v++)p(c[v]);return p}({1:[function(s,u,f){u.exports=function(c){var p=c._SomePromiseArray;function m(v){var x=new p(v),w=x.promise();return x.setHowMany(1),x.setUnwrap(),x.init(),w}c.any=function(v){return m(v)},c.prototype.any=function(){return m(this)}}},{}],2:[function(s,u,f){var c;try{throw new Error}catch(C){c=C}var p=s("./schedule"),m=s("./queue"),v=s("./util");function x(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new m(16),this._normalQueue=new m(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var C=this;this.drainQueues=function(){C._drainQueues()},this._schedule=p}function w(C,O,T){this._lateQueue.push(C,O,T),this._queueTick()}function _(C,O,T){this._normalQueue.push(C,O,T),this._queueTick()}function S(C){this._normalQueue._pushOne(C),this._queueTick()}x.prototype.setScheduler=function(C){var O=this._schedule;return this._schedule=C,this._customScheduler=!0,O},x.prototype.hasCustomScheduler=function(){return this._customScheduler},x.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},x.prototype.disableTrampolineIfNecessary=function(){v.hasDevTools&&(this._trampolineEnabled=!1)},x.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},x.prototype.fatalError=function(C,O){O?(r.stderr.write("Fatal "+(C instanceof Error?C.stack:C)+`
|
||
`),r.exit(2)):this.throwLater(C)},x.prototype.throwLater=function(C,O){if(arguments.length===1&&(O=C,C=function(){throw O}),typeof setTimeout<"u")setTimeout(function(){C(O)},0);else try{this._schedule(function(){C(O)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},v.hasDevTools?(x.prototype.invokeLater=function(C,O,T){this._trampolineEnabled?w.call(this,C,O,T):this._schedule(function(){setTimeout(function(){C.call(O,T)},100)})},x.prototype.invoke=function(C,O,T){this._trampolineEnabled?_.call(this,C,O,T):this._schedule(function(){C.call(O,T)})},x.prototype.settlePromises=function(C){this._trampolineEnabled?S.call(this,C):this._schedule(function(){C._settlePromises()})}):(x.prototype.invokeLater=w,x.prototype.invoke=_,x.prototype.settlePromises=S),x.prototype._drainQueue=function(C){for(;C.length()>0;){var O=C.shift();if(typeof O=="function"){var T=C.shift(),P=C.shift();O.call(T,P)}else O._settlePromises()}},x.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},x.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},x.prototype._reset=function(){this._isTickUsed=!1},u.exports=x,u.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,u,f){u.exports=function(c,p,m,v){var x=!1,w=function(O,T){this._reject(T)},_=function(O,T){T.promiseRejectionQueued=!0,T.bindingPromise._then(w,w,null,this,O)},S=function(O,T){(50397184&this._bitField)==0&&this._resolveCallback(T.target)},C=function(O,T){T.promiseRejectionQueued||this._reject(O)};c.prototype.bind=function(O){x||(x=!0,c.prototype._propagateFrom=v.propagateFromFunction(),c.prototype._boundValue=v.boundValueFunction());var T=m(O),P=new c(p);P._propagateFrom(this,1);var j=this._target();if(P._setBoundTo(T),T instanceof c){var R={promiseRejectionQueued:!1,promise:P,target:j,bindingPromise:T};j._then(p,_,void 0,P,R),T._then(S,C,void 0,P,R),P._setOnCancel(T)}else P._resolveCallback(j);return P},c.prototype._setBoundTo=function(O){O!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=O):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(O,T){return c.resolve(T).bind(O)}}},{}],4:[function(s,u,f){var c;typeof Promise<"u"&&(c=Promise);var p=s("./promise")();p.noConflict=function(){try{Promise===p&&(Promise=c)}catch{}return p},u.exports=p},{"./promise":22}],5:[function(s,u,f){var c=Object.create;if(c){var p=c(null),m=c(null);p[" size"]=m[" size"]=0}u.exports=function(v){var x=s("./util"),w=x.canEvaluate;function _(O){return function(T,P){var j;if(T!=null&&(j=T[P]),typeof j!="function"){var R="Object "+x.classString(T)+" has no method '"+x.toString(P)+"'";throw new v.TypeError(R)}return j}(O,this.pop()).apply(O,this)}function S(O){return O[this]}function C(O){var T=+this;return T<0&&(T=Math.max(0,T+O.length)),O[T]}x.isIdentifier,v.prototype.call=function(O){var T=[].slice.call(arguments,1);return T.push(O),this._then(_,void 0,void 0,T,void 0)},v.prototype.get=function(O){var T;if(typeof O=="number")T=C;else if(w){var P=(void 0)(O);T=P!==null?P:S}else T=S;return this._then(T,void 0,void 0,O,void 0)}}},{"./util":36}],6:[function(s,u,f){u.exports=function(c,p,m,v){var x=s("./util"),w=x.tryCatch,_=x.errorObj,S=c._async;c.prototype.break=c.prototype.cancel=function(){if(!v.cancellation())return this._warn("cancellation is disabled");for(var C=this,O=C;C._isCancellable();){if(!C._cancelBy(O)){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}var T=C._cancellationParent;if(T==null||!T._isCancellable()){C._isFollowing()?C._followee().cancel():C._cancelBranched();break}C._isFollowing()&&C._followee().cancel(),C._setWillBeCancelled(),O=C,C=T}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(C){return C===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),S.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(C,O){if(x.isArray(C))for(var T=0;T<C.length;++T)this._doInvokeOnCancel(C[T],O);else if(C!==void 0)if(typeof C=="function"){if(!O){var P=w(C).call(this._boundValue());P===_&&(this._attachExtraTrace(P.e),S.throwLater(P.e))}}else C._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var C=this._onCancel();this._unsetOnCancel(),S.invoke(this._doInvokeOnCancel,this,C)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,u,f){u.exports=function(c){var p=s("./util"),m=s("./es5").keys,v=p.tryCatch,x=p.errorObj;return function(w,_,S){return function(C){var O=S._boundValue();e:for(var T=0;T<w.length;++T){var P=w[T];if(P===Error||P!=null&&P.prototype instanceof Error){if(C instanceof P)return v(_).call(O,C)}else if(typeof P=="function"){var j=v(P).call(O,C);if(j===x)return j;if(j)return v(_).call(O,C)}else if(p.isObject(C)){for(var R=m(P),$=0;$<R.length;++$){var V=R[$];if(P[V]!=C[V])continue e}return v(_).call(O,C)}}return c}}}},{"./es5":13,"./util":36}],8:[function(s,u,f){u.exports=function(c){var p=!1,m=[];function v(){this._trace=new v.CapturedTrace(x())}function x(){var w=m.length-1;if(w>=0)return m[w]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},v.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,m.push(this._trace))},v.prototype._popContext=function(){if(this._trace!==void 0){var w=m.pop(),_=w._promiseCreated;return w._promiseCreated=null,_}return null},v.CapturedTrace=null,v.create=function(){if(p)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var w=c.prototype._pushContext,_=c.prototype._popContext,S=c._peekContext,C=c.prototype._peekContext,O=c.prototype._promiseCreated;v.deactivateLongStackTraces=function(){c.prototype._pushContext=w,c.prototype._popContext=_,c._peekContext=S,c.prototype._peekContext=C,c.prototype._promiseCreated=O,p=!1},p=!0,c.prototype._pushContext=v.prototype._pushContext,c.prototype._popContext=v.prototype._popContext,c._peekContext=c.prototype._peekContext=x,c.prototype._promiseCreated=function(){var T=this._peekContext();T&&T._promiseCreated==null&&(T._promiseCreated=this)}},v}},{}],9:[function(s,u,f){u.exports=function(c,p){var m,v,x,w=c._getDomain,_=c._async,S=s("./errors").Warning,C=s("./util"),O=C.canAttachTrace,T=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,P=/\((?:timers\.js):\d+:\d+\)/,j=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,R=null,$=null,V=!1,X=C.env("BLUEBIRD_DEBUG")!=0,Z=!(C.env("BLUEBIRD_WARNINGS")==0||!X&&!C.env("BLUEBIRD_WARNINGS")),Y=!(C.env("BLUEBIRD_LONG_STACK_TRACES")==0||!X&&!C.env("BLUEBIRD_LONG_STACK_TRACES")),te=C.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(Z||!!C.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var _e=this._target();_e._bitField=-1048577&_e._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var _e=this;setTimeout(function(){_e._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){de("rejectionHandled",m,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var _e=this._settledValue();this._setUnhandledRejectionIsNotified(),de("unhandledRejection",v,_e,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(_e,we,De){return ee(_e,we,De||this)},c.onPossiblyUnhandledRejection=function(_e){var we=w();v=typeof _e=="function"?we===null?_e:C.domainBind(we,_e):void 0},c.onUnhandledRejectionHandled=function(_e){var we=w();m=typeof _e=="function"?we===null?_e:C.domainBind(we,_e):void 0};var ae=function(){};c.longStackTraces=function(){if(_.haveItemsQueued()&&!$e.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!$e.longStackTraces&&he()){var _e=c.prototype._captureStackTrace,we=c.prototype._attachExtraTrace;$e.longStackTraces=!0,ae=function(){if(_.haveItemsQueued()&&!$e.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=_e,c.prototype._attachExtraTrace=we,p.deactivateLongStackTraces(),_.enableTrampoline(),$e.longStackTraces=!1},c.prototype._captureStackTrace=z,c.prototype._attachExtraTrace=q,p.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return $e.longStackTraces&&he()};var Q=function(){try{if(typeof CustomEvent=="function"){var _e=new CustomEvent("CustomEvent");return C.global.dispatchEvent(_e),function(we,De){var Ne=new CustomEvent(we.toLowerCase(),{detail:De,cancelable:!0});return!C.global.dispatchEvent(Ne)}}return typeof Event=="function"?(_e=new Event("CustomEvent"),C.global.dispatchEvent(_e),function(we,De){var Ne=new Event(we.toLowerCase(),{cancelable:!0});return Ne.detail=De,!C.global.dispatchEvent(Ne)}):((_e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),C.global.dispatchEvent(_e),function(we,De){var Ne=document.createEvent("CustomEvent");return Ne.initCustomEvent(we.toLowerCase(),!1,!0,De),!C.global.dispatchEvent(Ne)})}catch{}return function(){return!1}}(),ne=C.isNode?function(){return r.emit.apply(r,arguments)}:C.global?function(_e){var we="on"+_e.toLowerCase(),De=C.global[we];return!!De&&(De.apply(C.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function H(_e,we){return{promise:we}}var B={promiseCreated:H,promiseFulfilled:H,promiseRejected:H,promiseResolved:H,promiseCancelled:H,promiseChained:function(_e,we,De){return{promise:we,child:De}},warning:function(_e,we){return{warning:we}},unhandledRejection:function(_e,we,De){return{reason:we,promise:De}},rejectionHandled:H},U=function(_e){var we=!1;try{we=ne.apply(null,arguments)}catch(Ne){_.throwLater(Ne),we=!0}var De=!1;try{De=Q(_e,B[_e].apply(null,arguments))}catch(Ne){_.throwLater(Ne),De=!0}return De||we};function F(){return!1}function M(_e,we,De){var Ne=this;try{_e(we,De,function(Te){if(typeof Te!="function")throw new TypeError("onCancel must be a function, got: "+C.toString(Te));Ne._attachCancellationCallback(Te)})}catch(Te){return Te}}function k(_e){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?C.isArray(we)?we.push(_e):this._setOnCancel([we,_e]):this._setOnCancel(_e)}function J(){return this._onCancelField}function W(_e){this._onCancelField=_e}function ie(){this._cancellationParent=void 0,this._onCancelField=void 0}function fe(_e,we){if((1&we)!=0){this._cancellationParent=_e;var De=_e._branchesRemainingToCancel;De===void 0&&(De=0),_e._branchesRemainingToCancel=De+1}(2&we)!=0&&_e._isBound()&&this._setBoundTo(_e._boundTo)}c.config=function(_e){if("longStackTraces"in(_e=Object(_e))&&(_e.longStackTraces?c.longStackTraces():!_e.longStackTraces&&c.hasLongStackTraces()&&ae()),"warnings"in _e){var we=_e.warnings;$e.warnings=!!we,te=$e.warnings,C.isObject(we)&&"wForgottenReturn"in we&&(te=!!we.wForgottenReturn)}if("cancellation"in _e&&_e.cancellation&&!$e.cancellation){if(_.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=ie,c.prototype._propagateFrom=fe,c.prototype._onCancel=J,c.prototype._setOnCancel=W,c.prototype._attachCancellationCallback=k,c.prototype._execute=M,ce=fe,$e.cancellation=!0}return"monitoring"in _e&&(_e.monitoring&&!$e.monitoring?($e.monitoring=!0,c.prototype._fireEvent=U):!_e.monitoring&&$e.monitoring&&($e.monitoring=!1,c.prototype._fireEvent=F)),c},c.prototype._fireEvent=F,c.prototype._execute=function(_e,we,De){try{_e(we,De)}catch(Ne){return Ne}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(_e){},c.prototype._attachCancellationCallback=function(_e){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(_e,we){};var ce=function(_e,we){(2&we)!=0&&_e._isBound()&&this._setBoundTo(_e._boundTo)};function ye(){var _e=this._boundTo;return _e!==void 0&&_e instanceof c?_e.isFulfilled()?_e.value():void 0:_e}function z(){this._trace=new He(this._peekContext())}function q(_e,we){if(O(_e)){var De=this._trace;if(De!==void 0&&we&&(De=De._parent),De!==void 0)De.attachExtraTrace(_e);else if(!_e.__stackCleaned__){var Ne=K(_e);C.notEnumerableProp(_e,"stack",Ne.message+`
|
||
`+Ne.stack.join(`
|
||
`)),C.notEnumerableProp(_e,"__stackCleaned__",!0)}}}function ee(_e,we,De){if($e.warnings){var Ne,Te=new S(_e);if(we)De._attachExtraTrace(Te);else if($e.longStackTraces&&(Ne=c._peekContext()))Ne.attachExtraTrace(Te);else{var Fe=K(Te);Te.stack=Fe.message+`
|
||
`+Fe.stack.join(`
|
||
`)}U("warning",Te)||se(Te,"",!0)}}function ue(_e){for(var we=[],De=0;De<_e.length;++De){var Ne=_e[De],Te=Ne===" (No stack trace)"||R.test(Ne),Fe=Te&&xe(Ne);Te&&!Fe&&(V&&Ne.charAt(0)!==" "&&(Ne=" "+Ne),we.push(Ne))}return we}function K(_e){var we=_e.stack,De=_e.toString();return we=typeof we=="string"&&we.length>0?function(Ne){for(var Te=Ne.stack.replace(/\s+$/g,"").split(`
|
||
`),Fe=0;Fe<Te.length;++Fe){var Ge=Te[Fe];if(Ge===" (No stack trace)"||R.test(Ge))break}return Fe>0&&Ne.name!="SyntaxError"&&(Te=Te.slice(Fe)),Te}(_e):[" (No stack trace)"],{message:De,stack:_e.name=="SyntaxError"?we:ue(we)}}function se(_e,we,De){if(typeof console<"u"){var Ne;if(C.isObject(_e)){var Te=_e.stack;Ne=we+$(Te,_e)}else Ne=we+String(_e);typeof x=="function"?x(Ne,De):typeof console.log!="function"&&typeof console.log!="object"||console.log(Ne)}}function de(_e,we,De,Ne){var Te=!1;try{typeof we=="function"&&(Te=!0,_e==="rejectionHandled"?we(Ne):we(De,Ne))}catch(Fe){_.throwLater(Fe)}_e==="unhandledRejection"?U(_e,De,Ne)||Te||se(De,"Unhandled rejection "):U(_e,Ne)}function ve(_e){var we;if(typeof _e=="function")we="[function "+(_e.name||"anonymous")+"]";else{if(we=_e&&typeof _e.toString=="function"?_e.toString():C.toString(_e),/\[object [a-zA-Z0-9$_]+\]/.test(we))try{we=JSON.stringify(_e)}catch{}we.length===0&&(we="(empty array)")}return"(<"+function(De){return De.length<41?De:De.substr(0,38)+"..."}(we)+">, no stack trace)"}function he(){return typeof Ue=="function"}var xe=function(){return!1},Oe=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Le(_e){var we=_e.match(Oe);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function He(_e){this._parent=_e,this._promisesCreated=0;var we=this._length=1+(_e===void 0?0:_e._length);Ue(this,He),we>32&&this.uncycle()}C.inherits(He,Error),p.CapturedTrace=He,He.prototype.uncycle=function(){var _e=this._length;if(!(_e<2)){for(var we=[],De={},Ne=0,Te=this;Te!==void 0;++Ne)we.push(Te),Te=Te._parent;for(Ne=(_e=this._length=Ne)-1;Ne>=0;--Ne){var Fe=we[Ne].stack;De[Fe]===void 0&&(De[Fe]=Ne)}for(Ne=0;Ne<_e;++Ne){var Ge=De[we[Ne].stack];if(Ge!==void 0&&Ge!==Ne){Ge>0&&(we[Ge-1]._parent=void 0,we[Ge-1]._length=1),we[Ne]._parent=void 0,we[Ne]._length=1;var Qe=Ne>0?we[Ne-1]:this;Ge<_e-1?(Qe._parent=we[Ge+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var ft=Qe._length+1,st=Ne-2;st>=0;--st)we[st]._length=ft,ft++;return}}}},He.prototype.attachExtraTrace=function(_e){if(!_e.__stackCleaned__){this.uncycle();for(var we=K(_e),De=we.message,Ne=[we.stack],Te=this;Te!==void 0;)Ne.push(ue(Te.stack.split(`
|
||
`))),Te=Te._parent;(function(Fe){for(var Ge=Fe[0],Qe=1;Qe<Fe.length;++Qe){for(var ft=Fe[Qe],st=Ge.length-1,_t=Ge[st],kt=-1,Ut=ft.length-1;Ut>=0;--Ut)if(ft[Ut]===_t){kt=Ut;break}for(Ut=kt;Ut>=0;--Ut){var Bt=ft[Ut];if(Ge[st]!==Bt)break;Ge.pop(),st--}Ge=ft}})(Ne),function(Fe){for(var Ge=0;Ge<Fe.length;++Ge)(Fe[Ge].length===0||Ge+1<Fe.length&&Fe[Ge][0]===Fe[Ge+1][0])&&(Fe.splice(Ge,1),Ge--)}(Ne),C.notEnumerableProp(_e,"stack",function(Fe,Ge){for(var Qe=0;Qe<Ge.length-1;++Qe)Ge[Qe].push("From previous event:"),Ge[Qe]=Ge[Qe].join(`
|
||
`);return Qe<Ge.length&&(Ge[Qe]=Ge[Qe].join(`
|
||
`)),Fe+`
|
||
`+Ge.join(`
|
||
`)}(De,Ne)),C.notEnumerableProp(_e,"__stackCleaned__",!0)}};var Ue=function(){var _e=/^\s*at\s*/,we=function(Fe,Ge){return typeof Fe=="string"?Fe:Ge.name!==void 0&&Ge.message!==void 0?Ge.toString():ve(Ge)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,R=_e,$=we;var De=Error.captureStackTrace;return xe=function(Fe){return T.test(Fe)},function(Fe,Ge){Error.stackTraceLimit+=6,De(Fe,Ge),Error.stackTraceLimit-=6}}var Ne,Te=new Error;if(typeof Te.stack=="string"&&Te.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return R=/@/,$=we,V=!0,function(Fe){Fe.stack=new Error().stack};try{throw new Error}catch(Fe){Ne="stack"in Fe}return"stack"in Te||!Ne||typeof Error.stackTraceLimit!="number"?($=function(Fe,Ge){return typeof Fe=="string"?Fe:typeof Ge!="object"&&typeof Ge!="function"||Ge.name===void 0||Ge.message===void 0?ve(Ge):Ge.toString()},null):(R=_e,$=we,function(Fe){Error.stackTraceLimit+=6;try{throw new Error}catch(Ge){Fe.stack=Ge.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(x=function(_e){console.warn(_e)},C.isNode&&r.stderr.isTTY?x=function(_e,we){var De=we?"\x1B[33m":"\x1B[31m";console.warn(De+_e+`\x1B[0m
|
||
`)}:C.isNode||typeof new Error().stack!="string"||(x=function(_e,we){console.warn("%c"+_e,we?"color: darkorange":"color: red")}));var $e={warnings:Z,longStackTraces:!1,cancellation:!1,monitoring:!1};return Y&&c.longStackTraces(),{longStackTraces:function(){return $e.longStackTraces},warnings:function(){return $e.warnings},cancellation:function(){return $e.cancellation},monitoring:function(){return $e.monitoring},propagateFromFunction:function(){return ce},boundValueFunction:function(){return ye},checkForgottenReturns:function(_e,we,De,Ne,Te){if(_e===void 0&&we!==null&&te){if(Te!==void 0&&Te._returnedNonUndefined()||(65535&Ne._bitField)==0)return;De&&(De+=" ");var Fe="",Ge="";if(we._trace){for(var Qe=we._trace.stack.split(`
|
||
`),ft=ue(Qe),st=ft.length-1;st>=0;--st){var _t=ft[st];if(!P.test(_t)){var kt=_t.match(j);kt&&(Fe="at "+kt[1]+":"+kt[2]+":"+kt[3]+" ");break}}if(ft.length>0){var Ut=ft[0];for(st=0;st<Qe.length;++st)if(Qe[st]===Ut){st>0&&(Ge=`
|
||
`+Qe[st-1]);break}}}var Bt="a promise was created in a "+De+"handler "+Fe+"but was not returned from it, see http://goo.gl/rRqMUw"+Ge;Ne._warn(Bt,!0,we)}},setBounds:function(_e,we){if(he()){for(var De,Ne,Te=_e.stack.split(`
|
||
`),Fe=we.stack.split(`
|
||
`),Ge=-1,Qe=-1,ft=0;ft<Te.length;++ft)if(st=Le(Te[ft])){De=st.fileName,Ge=st.line;break}for(ft=0;ft<Fe.length;++ft){var st;if(st=Le(Fe[ft])){Ne=st.fileName,Qe=st.line;break}}Ge<0||Qe<0||!De||!Ne||De!==Ne||Ge>=Qe||(xe=function(_t){if(T.test(_t))return!0;var kt=Le(_t);return!!(kt&&kt.fileName===De&&Ge<=kt.line&&kt.line<=Qe)})}},warn:ee,deprecated:function(_e,we){var De=_e+" is deprecated and will be removed in a future version.";return we&&(De+=" Use "+we+" instead."),ee(De)},CapturedTrace:He,fireDomEvent:Q,fireGlobalEvent:ne}}},{"./errors":12,"./util":36}],10:[function(s,u,f){u.exports=function(c){function p(){return this.value}function m(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(v){return v instanceof c&&v.suppressUnhandledRejections(),this._then(p,void 0,void 0,{value:v},void 0)},c.prototype.throw=c.prototype.thenThrow=function(v){return this._then(m,void 0,void 0,{reason:v},void 0)},c.prototype.catchThrow=function(v){if(arguments.length<=1)return this._then(void 0,m,void 0,{reason:v},void 0);var x=arguments[1];return this.caught(v,function(){throw x})},c.prototype.catchReturn=function(v){if(arguments.length<=1)return v instanceof c&&v.suppressUnhandledRejections(),this._then(void 0,p,void 0,{value:v},void 0);var x=arguments[1];return x instanceof c&&x.suppressUnhandledRejections(),this.caught(v,function(){return x})}}},{}],11:[function(s,u,f){u.exports=function(c,p){var m=c.reduce,v=c.all;function x(){return v(this)}c.prototype.each=function(w){return m(this,w,p,0)._then(x,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(w){return m(this,w,p,p)},c.each=function(w,_){return m(w,_,p,0)._then(x,void 0,void 0,w,void 0)},c.mapSeries=function(w,_){return m(w,_,p,p)}}},{}],12:[function(s,u,f){var c,p,m=s("./es5"),v=m.freeze,x=s("./util"),w=x.inherits,_=x.notEnumerableProp;function S(Z,Y){function te(ae){if(!(this instanceof te))return new te(ae);_(this,"message",typeof ae=="string"?ae:Y),_(this,"name",Z),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return w(te,Error),te}var C=S("Warning","warning"),O=S("CancellationError","cancellation error"),T=S("TimeoutError","timeout error"),P=S("AggregateError","aggregate error");try{c=TypeError,p=RangeError}catch{c=S("TypeError","type error"),p=S("RangeError","range error")}for(var j="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),R=0;R<j.length;++R)typeof Array.prototype[j[R]]=="function"&&(P.prototype[j[R]]=Array.prototype[j[R]]);m.defineProperty(P.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),P.prototype.isOperational=!0;var $=0;function V(Z){if(!(this instanceof V))return new V(Z);_(this,"name","OperationalError"),_(this,"message",Z),this.cause=Z,this.isOperational=!0,Z instanceof Error?(_(this,"message",Z.message),_(this,"stack",Z.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}P.prototype.toString=function(){var Z=Array(4*$+1).join(" "),Y=`
|
||
`+Z+`AggregateError of:
|
||
`;$++,Z=Array(4*$+1).join(" ");for(var te=0;te<this.length;++te){for(var ae=this[te]===this?"[Circular AggregateError]":this[te]+"",Q=ae.split(`
|
||
`),ne=0;ne<Q.length;++ne)Q[ne]=Z+Q[ne];Y+=(ae=Q.join(`
|
||
`))+`
|
||
`}return $--,Y},w(V,Error);var X=Error.__BluebirdErrorTypes__;X||(X=v({CancellationError:O,TimeoutError:T,OperationalError:V,RejectionError:V,AggregateError:P}),m.defineProperty(Error,"__BluebirdErrorTypes__",{value:X,writable:!1,enumerable:!1,configurable:!1})),u.exports={Error,TypeError:c,RangeError:p,CancellationError:X.CancellationError,OperationalError:X.OperationalError,TimeoutError:X.TimeoutError,AggregateError:X.AggregateError,Warning:C}},{"./es5":13,"./util":36}],13:[function(s,u,f){var c=function(){return this===void 0}();if(c)u.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:c,propertyIsWritable:function(w,_){var S=Object.getOwnPropertyDescriptor(w,_);return!(S&&!S.writable&&!S.set)}};else{var p={}.hasOwnProperty,m={}.toString,v={}.constructor.prototype,x=function(w){var _=[];for(var S in w)p.call(w,S)&&_.push(S);return _};u.exports={isArray:function(w){try{return m.call(w)==="[object Array]"}catch{return!1}},keys:x,names:x,defineProperty:function(w,_,S){return w[_]=S.value,w},getDescriptor:function(w,_){return{value:w[_]}},freeze:function(w){return w},getPrototypeOf:function(w){try{return Object(w).constructor.prototype}catch{return v}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,u,f){u.exports=function(c,p){var m=c.map;c.prototype.filter=function(v,x){return m(this,v,x,p)},c.filter=function(v,x,w){return m(v,x,w,p)}}},{}],15:[function(s,u,f){u.exports=function(c,p,m){var v=s("./util"),x=c.CancellationError,w=v.errorObj,_=s("./catch_filter")(m);function S(R,$,V){this.promise=R,this.type=$,this.handler=V,this.called=!1,this.cancelPromise=null}function C(R){this.finallyHandler=R}function O(R,$){return R.cancelPromise!=null&&(arguments.length>1?R.cancelPromise._reject($):R.cancelPromise._cancel(),R.cancelPromise=null,!0)}function T(){return j.call(this,this.promise._target()._settledValue())}function P(R){if(!O(this,R))return w.e=R,w}function j(R){var $=this.promise,V=this.handler;if(!this.called){this.called=!0;var X=this.isFinallyHandler()?V.call($._boundValue()):V.call($._boundValue(),R);if(X===m)return X;if(X!==void 0){$._setReturnedNonUndefined();var Z=p(X,$);if(Z instanceof c){if(this.cancelPromise!=null){if(Z._isCancelled()){var Y=new x("late cancellation observer");return $._attachExtraTrace(Y),w.e=Y,w}Z.isPending()&&Z._attachCancellationCallback(new C(this))}return Z._then(T,P,void 0,this,void 0)}}}return $.isRejected()?(O(this),w.e=R,w):(O(this),R)}return S.prototype.isFinallyHandler=function(){return this.type===0},C.prototype._resultCancelled=function(){O(this.finallyHandler)},c.prototype._passThrough=function(R,$,V,X){return typeof R!="function"?this.then():this._then(V,X,void 0,new S(this,$,R),void 0)},c.prototype.lastly=c.prototype.finally=function(R){return this._passThrough(R,0,j,j)},c.prototype.tap=function(R){return this._passThrough(R,1,j)},c.prototype.tapCatch=function(R){var $=arguments.length;if($===1)return this._passThrough(R,1,void 0,j);var V,X=new Array($-1),Z=0;for(V=0;V<$-1;++V){var Y=arguments[V];if(!v.isObject(Y))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+v.classString(Y)));X[Z++]=Y}X.length=Z;var te=arguments[V];return this._passThrough(_(X,te,this),1,void 0,j)},S}},{"./catch_filter":7,"./util":36}],16:[function(s,u,f){u.exports=function(c,p,m,v,x,w){var _=s("./errors").TypeError,S=s("./util"),C=S.errorObj,O=S.tryCatch,T=[];function P(j,R,$,V){if(w.cancellation()){var X=new c(m),Z=this._finallyPromise=new c(m);this._promise=X.lastly(function(){return Z}),X._captureStackTrace(),X._setOnCancel(this)}else(this._promise=new c(m))._captureStackTrace();this._stack=V,this._generatorFunction=j,this._receiver=R,this._generator=void 0,this._yieldHandlers=typeof $=="function"?[$].concat(T):T,this._yieldedPromise=null,this._cancellationPhase=!1}S.inherits(P,x),P.prototype._isResolved=function(){return this._promise===null},P.prototype._cleanup=function(){this._promise=this._generator=null,w.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},P.prototype._promiseCancelled=function(){if(!this._isResolved()){var j;if(this._generator.return!==void 0)this._promise._pushContext(),j=O(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var R=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=R,this._promise._attachExtraTrace(R),this._promise._pushContext(),j=O(this._generator.throw).call(this._generator,R),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(j)}},P.prototype._promiseFulfilled=function(j){this._yieldedPromise=null,this._promise._pushContext();var R=O(this._generator.next).call(this._generator,j);this._promise._popContext(),this._continue(R)},P.prototype._promiseRejected=function(j){this._yieldedPromise=null,this._promise._attachExtraTrace(j),this._promise._pushContext();var R=O(this._generator.throw).call(this._generator,j);this._promise._popContext(),this._continue(R)},P.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var j=this._yieldedPromise;this._yieldedPromise=null,j.cancel()}},P.prototype.promise=function(){return this._promise},P.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},P.prototype._continue=function(j){var R=this._promise;if(j===C)return this._cleanup(),this._cancellationPhase?R.cancel():R._rejectCallback(j.e,!1);var $=j.value;if(j.done===!0)return this._cleanup(),this._cancellationPhase?R.cancel():R._resolveCallback($);var V=v($,this._promise);if(V instanceof c||(V=function(Z,Y,te){for(var ae=0;ae<Y.length;++ae){te._pushContext();var Q=O(Y[ae])(Z);if(te._popContext(),Q===C){te._pushContext();var ne=c.reject(C.e);return te._popContext(),ne}var H=v(Q,te);if(H instanceof c)return H}return null}(V,this._yieldHandlers,this._promise))!==null){var X=(V=V._target())._bitField;(50397184&X)==0?(this._yieldedPromise=V,V._proxy(this,null)):(33554432&X)!=0?c._async.invoke(this._promiseFulfilled,this,V._value()):(16777216&X)!=0?c._async.invoke(this._promiseRejected,this,V._reason()):this._promiseCancelled()}else this._promiseRejected(new _(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String($))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(j,R){if(typeof j!="function")throw new _(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var $=Object(R).yieldHandler,V=P,X=new Error().stack;return function(){var Z=j.apply(this,arguments),Y=new V(void 0,void 0,$,X),te=Y.promise();return Y._generator=Z,Y._promiseFulfilled(void 0),te}},c.coroutine.addYieldHandler=function(j){if(typeof j!="function")throw new _("expecting a function but got "+S.classString(j));T.push(j)},c.spawn=function(j){if(w.deprecated("Promise.spawn()","Promise.coroutine()"),typeof j!="function")return p(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var R=new P(j,this),$=R.promise();return R._run(c.spawn),$}}},{"./errors":12,"./util":36}],17:[function(s,u,f){u.exports=function(c,p,m,v,x,w){var _=s("./util");_.canEvaluate,_.tryCatch,_.errorObj,c.join=function(){var S,C=arguments.length-1;C>0&&typeof arguments[C]=="function"&&(S=arguments[C]);var O=[].slice.call(arguments);S&&O.pop();var T=new p(O).promise();return S!==void 0?T.spread(S):T}}},{"./util":36}],18:[function(s,u,f){u.exports=function(c,p,m,v,x,w){var _=c._getDomain,S=s("./util"),C=S.tryCatch,O=S.errorObj,T=c._async;function P(R,$,V,X){this.constructor$(R),this._promise._captureStackTrace();var Z=_();this._callback=Z===null?$:S.domainBind(Z,$),this._preservedValues=X===x?new Array(this.length()):null,this._limit=V,this._inFlight=0,this._queue=[],T.invoke(this._asyncInit,this,void 0)}function j(R,$,V,X){if(typeof $!="function")return m("expecting a function but got "+S.classString($));var Z=0;if(V!==void 0){if(typeof V!="object"||V===null)return c.reject(new TypeError("options argument must be an object but it is "+S.classString(V)));if(typeof V.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+S.classString(V.concurrency)));Z=V.concurrency}return new P(R,$,Z=typeof Z=="number"&&isFinite(Z)&&Z>=1?Z:0,X).promise()}S.inherits(P,p),P.prototype._asyncInit=function(){this._init$(void 0,-2)},P.prototype._init=function(){},P.prototype._promiseFulfilled=function(R,$){var V=this._values,X=this.length(),Z=this._preservedValues,Y=this._limit;if($<0){if(V[$=-1*$-1]=R,Y>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(Y>=1&&this._inFlight>=Y)return V[$]=R,this._queue.push($),!1;Z!==null&&(Z[$]=R);var te=this._promise,ae=this._callback,Q=te._boundValue();te._pushContext();var ne=C(ae).call(Q,R,$,X),H=te._popContext();if(w.checkForgottenReturns(ne,H,Z!==null?"Promise.filter":"Promise.map",te),ne===O)return this._reject(ne.e),!0;var B=v(ne,this._promise);if(B instanceof c){var U=(B=B._target())._bitField;if((50397184&U)==0)return Y>=1&&this._inFlight++,V[$]=B,B._proxy(this,-1*($+1)),!1;if((33554432&U)==0)return(16777216&U)!=0?(this._reject(B._reason()),!0):(this._cancel(),!0);ne=B._value()}V[$]=ne}return++this._totalResolved>=X&&(Z!==null?this._filter(V,Z):this._resolve(V),!0)},P.prototype._drainQueue=function(){for(var R=this._queue,$=this._limit,V=this._values;R.length>0&&this._inFlight<$;){if(this._isResolved())return;var X=R.pop();this._promiseFulfilled(V[X],X)}},P.prototype._filter=function(R,$){for(var V=$.length,X=new Array(V),Z=0,Y=0;Y<V;++Y)R[Y]&&(X[Z++]=$[Y]);X.length=Z,this._resolve(X)},P.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(R,$){return j(this,R,$,null)},c.map=function(R,$,V,X){return j(R,$,V,X)}}},{"./util":36}],19:[function(s,u,f){u.exports=function(c,p,m,v,x){var w=s("./util"),_=w.tryCatch;c.method=function(S){if(typeof S!="function")throw new c.TypeError("expecting a function but got "+w.classString(S));return function(){var C=new c(p);C._captureStackTrace(),C._pushContext();var O=_(S).apply(this,arguments),T=C._popContext();return x.checkForgottenReturns(O,T,"Promise.method",C),C._resolveFromSyncValue(O),C}},c.attempt=c.try=function(S){if(typeof S!="function")return v("expecting a function but got "+w.classString(S));var C,O=new c(p);if(O._captureStackTrace(),O._pushContext(),arguments.length>1){x.deprecated("calling Promise.try with more than 1 argument");var T=arguments[1],P=arguments[2];C=w.isArray(T)?_(S).apply(P,T):_(S).call(P,T)}else C=_(S)();var j=O._popContext();return x.checkForgottenReturns(C,j,"Promise.try",O),O._resolveFromSyncValue(C),O},c.prototype._resolveFromSyncValue=function(S){S===w.errorObj?this._rejectCallback(S.e,!1):this._resolveCallback(S,!0)}}},{"./util":36}],20:[function(s,u,f){var c=s("./util"),p=c.maybeWrapAsError,m=s("./errors").OperationalError,v=s("./es5"),x=/^(?:name|message|stack|cause)$/;function w(_){var S;if(function(P){return P instanceof Error&&v.getPrototypeOf(P)===Error.prototype}(_)){(S=new m(_)).name=_.name,S.message=_.message,S.stack=_.stack;for(var C=v.keys(_),O=0;O<C.length;++O){var T=C[O];x.test(T)||(S[T]=_[T])}return S}return c.markAsOriginatingFromRejection(_),_}u.exports=function(_,S){return function(C,O){if(_!==null){if(C){var T=w(p(C));_._attachExtraTrace(T),_._reject(T)}else if(S){var P=[].slice.call(arguments,1);_._fulfill(P)}else _._fulfill(O);_=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,u,f){u.exports=function(c){var p=s("./util"),m=c._async,v=p.tryCatch,x=p.errorObj;function w(C,O){if(!p.isArray(C))return _.call(this,C,O);var T=v(O).apply(this._boundValue(),[null].concat(C));T===x&&m.throwLater(T.e)}function _(C,O){var T=this._boundValue(),P=C===void 0?v(O).call(T,null):v(O).call(T,null,C);P===x&&m.throwLater(P.e)}function S(C,O){if(!C){var T=new Error(C+"");T.cause=C,C=T}var P=v(O).call(this._boundValue(),C);P===x&&m.throwLater(P.e)}c.prototype.asCallback=c.prototype.nodeify=function(C,O){if(typeof C=="function"){var T=_;O!==void 0&&Object(O).spread&&(T=w),this._then(T,S,void 0,this,C)}return this}}},{"./util":36}],22:[function(s,u,f){u.exports=function(){var c=function(){return new P(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},p=function(){return new F.PromiseInspection(this._target())},m=function(W){return F.reject(new P(W))};function v(){}var x,w={},_=s("./util");x=_.isNode?function(){var W=r.domain;return W===void 0&&(W=null),W}:function(){return null},_.notEnumerableProp(F,"_getDomain",x);var S=s("./es5"),C=s("./async"),O=new C;S.defineProperty(F,"_async",{value:O});var T=s("./errors"),P=F.TypeError=T.TypeError;F.RangeError=T.RangeError;var j=F.CancellationError=T.CancellationError;F.TimeoutError=T.TimeoutError,F.OperationalError=T.OperationalError,F.RejectionError=T.OperationalError,F.AggregateError=T.AggregateError;var R=function(){},$={},V={},X=s("./thenables")(F,R),Z=s("./promise_array")(F,R,X,m,v),Y=s("./context")(F),te=Y.create,ae=s("./debuggability")(F,Y),Q=(ae.CapturedTrace,s("./finally")(F,X,V)),ne=s("./catch_filter")(V),H=s("./nodeback"),B=_.errorObj,U=_.tryCatch;function F(W){W!==R&&function(ie,fe){if(ie==null||ie.constructor!==F)throw new P(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof fe!="function")throw new P("expecting a function but got "+_.classString(fe))}(this,W),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(W),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function M(W){this.promise._resolveCallback(W)}function k(W){this.promise._rejectCallback(W,!1)}function J(W){var ie=new F(R);ie._fulfillmentHandler0=W,ie._rejectionHandler0=W,ie._promise0=W,ie._receiver0=W}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(W){var ie=arguments.length;if(ie>1){var fe,ce=new Array(ie-1),ye=0;for(fe=0;fe<ie-1;++fe){var z=arguments[fe];if(!_.isObject(z))return m("Catch statement predicate: expecting an object but got "+_.classString(z));ce[ye++]=z}return ce.length=ye,W=arguments[fe],this.then(void 0,ne(ce,W,this))}return this.then(void 0,W)},F.prototype.reflect=function(){return this._then(p,p,void 0,this,void 0)},F.prototype.then=function(W,ie){if(ae.warnings()&&arguments.length>0&&typeof W!="function"&&typeof ie!="function"){var fe=".then() only accepts functions but was passed: "+_.classString(W);arguments.length>1&&(fe+=", "+_.classString(ie)),this._warn(fe)}return this._then(W,ie,void 0,void 0,void 0)},F.prototype.done=function(W,ie){this._then(W,ie,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(W){return typeof W!="function"?m("expecting a function but got "+_.classString(W)):this.all()._then(W,void 0,void 0,$,void 0)},F.prototype.toJSON=function(){var W={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(W.fulfillmentValue=this.value(),W.isFulfilled=!0):this.isRejected()&&(W.rejectionReason=this.reason(),W.isRejected=!0),W},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new Z(this).promise()},F.prototype.error=function(W){return this.caught(_.originatesFromRejection,W)},F.getNewLibraryCopy=u.exports,F.is=function(W){return W instanceof F},F.fromNode=F.fromCallback=function(W){var ie=new F(R);ie._captureStackTrace();var fe=arguments.length>1&&!!Object(arguments[1]).multiArgs,ce=U(W)(H(ie,fe));return ce===B&&ie._rejectCallback(ce.e,!0),ie._isFateSealed()||ie._setAsyncGuaranteed(),ie},F.all=function(W){return new Z(W).promise()},F.cast=function(W){var ie=X(W);return ie instanceof F||((ie=new F(R))._captureStackTrace(),ie._setFulfilled(),ie._rejectionHandler0=W),ie},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(W){var ie=new F(R);return ie._captureStackTrace(),ie._rejectCallback(W,!0),ie},F.setScheduler=function(W){if(typeof W!="function")throw new P("expecting a function but got "+_.classString(W));return O.setScheduler(W)},F.prototype._then=function(W,ie,fe,ce,ye){var z=ye!==void 0,q=z?ye:new F(R),ee=this._target(),ue=ee._bitField;z||(q._propagateFrom(this,3),q._captureStackTrace(),ce===void 0&&(2097152&this._bitField)!=0&&(ce=(50397184&ue)!=0?this._boundValue():ee===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,q));var K=x();if((50397184&ue)!=0){var se,de,ve=ee._settlePromiseCtx;(33554432&ue)!=0?(de=ee._rejectionHandler0,se=W):(16777216&ue)!=0?(de=ee._fulfillmentHandler0,se=ie,ee._unsetRejectionIsUnhandled()):(ve=ee._settlePromiseLateCancellationObserver,de=new j("late cancellation observer"),ee._attachExtraTrace(de),se=ie),O.invoke(ve,ee,{handler:K===null?se:typeof se=="function"&&_.domainBind(K,se),promise:q,receiver:ce,value:de})}else ee._addCallbacks(W,ie,q,ce,K);return q},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(W){this._bitField=-65536&this._bitField|65535&W},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){O.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(W){var ie=W===0?this._receiver0:this[4*W-4+3];if(ie!==w)return ie===void 0&&this._isBound()?this._boundValue():ie},F.prototype._promiseAt=function(W){return this[4*W-4+2]},F.prototype._fulfillmentHandlerAt=function(W){return this[4*W-4+0]},F.prototype._rejectionHandlerAt=function(W){return this[4*W-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(W){W._bitField;var ie=W._fulfillmentHandler0,fe=W._rejectionHandler0,ce=W._promise0,ye=W._receiverAt(0);ye===void 0&&(ye=w),this._addCallbacks(ie,fe,ce,ye,null)},F.prototype._migrateCallbackAt=function(W,ie){var fe=W._fulfillmentHandlerAt(ie),ce=W._rejectionHandlerAt(ie),ye=W._promiseAt(ie),z=W._receiverAt(ie);z===void 0&&(z=w),this._addCallbacks(fe,ce,ye,z,null)},F.prototype._addCallbacks=function(W,ie,fe,ce,ye){var z=this._length();if(z>=65531&&(z=0,this._setLength(0)),z===0)this._promise0=fe,this._receiver0=ce,typeof W=="function"&&(this._fulfillmentHandler0=ye===null?W:_.domainBind(ye,W)),typeof ie=="function"&&(this._rejectionHandler0=ye===null?ie:_.domainBind(ye,ie));else{var q=4*z-4;this[q+2]=fe,this[q+3]=ce,typeof W=="function"&&(this[q+0]=ye===null?W:_.domainBind(ye,W)),typeof ie=="function"&&(this[q+1]=ye===null?ie:_.domainBind(ye,ie))}return this._setLength(z+1),z},F.prototype._proxy=function(W,ie){this._addCallbacks(void 0,void 0,ie,W,null)},F.prototype._resolveCallback=function(W,ie){if((117506048&this._bitField)==0){if(W===this)return this._rejectCallback(c(),!1);var fe=X(W,this);if(!(fe instanceof F))return this._fulfill(W);ie&&this._propagateFrom(fe,2);var ce=fe._target();if(ce!==this){var ye=ce._bitField;if((50397184&ye)==0){var z=this._length();z>0&&ce._migrateCallback0(this);for(var q=1;q<z;++q)ce._migrateCallbackAt(this,q);this._setFollowing(),this._setLength(0),this._setFollowee(ce)}else if((33554432&ye)!=0)this._fulfill(ce._value());else if((16777216&ye)!=0)this._reject(ce._reason());else{var ee=new j("late cancellation observer");ce._attachExtraTrace(ee),this._reject(ee)}}else this._reject(c())}},F.prototype._rejectCallback=function(W,ie,fe){var ce=_.ensureErrorObject(W),ye=ce===W;if(!ye&&!fe&&ae.warnings()){var z="a promise was rejected with a non-error: "+_.classString(W);this._warn(z,!0)}this._attachExtraTrace(ce,!!ie&&ye),this._reject(W)},F.prototype._resolveFromExecutor=function(W){if(W!==R){var ie=this;this._captureStackTrace(),this._pushContext();var fe=!0,ce=this._execute(W,function(ye){ie._resolveCallback(ye)},function(ye){ie._rejectCallback(ye,fe)});fe=!1,this._popContext(),ce!==void 0&&ie._rejectCallback(ce,!0)}},F.prototype._settlePromiseFromHandler=function(W,ie,fe,ce){var ye=ce._bitField;if((65536&ye)==0){var z;ce._pushContext(),ie===$?fe&&typeof fe.length=="number"?z=U(W).apply(this._boundValue(),fe):(z=B).e=new P("cannot .spread() a non-array: "+_.classString(fe)):z=U(W).call(ie,fe);var q=ce._popContext();(65536&(ye=ce._bitField))==0&&(z===V?ce._reject(fe):z===B?ce._rejectCallback(z.e,!1):(ae.checkForgottenReturns(z,q,"",ce,this),ce._resolveCallback(z)))}},F.prototype._target=function(){for(var W=this;W._isFollowing();)W=W._followee();return W},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(W){this._rejectionHandler0=W},F.prototype._settlePromise=function(W,ie,fe,ce){var ye=W instanceof F,z=this._bitField,q=(134217728&z)!=0;(65536&z)!=0?(ye&&W._invokeInternalOnCancel(),fe instanceof Q&&fe.isFinallyHandler()?(fe.cancelPromise=W,U(ie).call(fe,ce)===B&&W._reject(B.e)):ie===p?W._fulfill(p.call(fe)):fe instanceof v?fe._promiseCancelled(W):ye||W instanceof Z?W._cancel():fe.cancel()):typeof ie=="function"?ye?(q&&W._setAsyncGuaranteed(),this._settlePromiseFromHandler(ie,fe,ce,W)):ie.call(fe,ce,W):fe instanceof v?fe._isResolved()||((33554432&z)!=0?fe._promiseFulfilled(ce,W):fe._promiseRejected(ce,W)):ye&&(q&&W._setAsyncGuaranteed(),(33554432&z)!=0?W._fulfill(ce):W._reject(ce))},F.prototype._settlePromiseLateCancellationObserver=function(W){var ie=W.handler,fe=W.promise,ce=W.receiver,ye=W.value;typeof ie=="function"?fe instanceof F?this._settlePromiseFromHandler(ie,ce,ye,fe):ie.call(ce,ye,fe):fe instanceof F&&fe._reject(ye)},F.prototype._settlePromiseCtx=function(W){this._settlePromise(W.promise,W.handler,W.receiver,W.value)},F.prototype._settlePromise0=function(W,ie,fe){var ce=this._promise0,ye=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ce,W,ye,ie)},F.prototype._clearCallbackDataAtIndex=function(W){var ie=4*W-4;this[ie+2]=this[ie+3]=this[ie+0]=this[ie+1]=void 0},F.prototype._fulfill=function(W){var ie=this._bitField;if(!((117506048&ie)>>>16)){if(W===this){var fe=c();return this._attachExtraTrace(fe),this._reject(fe)}this._setFulfilled(),this._rejectionHandler0=W,(65535&ie)>0&&((134217728&ie)!=0?this._settlePromises():O.settlePromises(this))}},F.prototype._reject=function(W){var ie=this._bitField;if(!((117506048&ie)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=W,this._isFinal())return O.fatalError(W,_.isNode);(65535&ie)>0?O.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(W,ie){for(var fe=1;fe<W;fe++){var ce=this._fulfillmentHandlerAt(fe),ye=this._promiseAt(fe),z=this._receiverAt(fe);this._clearCallbackDataAtIndex(fe),this._settlePromise(ye,ce,z,ie)}},F.prototype._rejectPromises=function(W,ie){for(var fe=1;fe<W;fe++){var ce=this._rejectionHandlerAt(fe),ye=this._promiseAt(fe),z=this._receiverAt(fe);this._clearCallbackDataAtIndex(fe),this._settlePromise(ye,ce,z,ie)}},F.prototype._settlePromises=function(){var W=this._bitField,ie=65535&W;if(ie>0){if((16842752&W)!=0){var fe=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,fe,W),this._rejectPromises(ie,fe)}else{var ce=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ce,W),this._fulfillPromises(ie,ce)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var W=this._bitField;return(33554432&W)!=0?this._rejectionHandler0:(16777216&W)!=0?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return ae.deprecated("Promise.defer","new Promise"),{promise:new F(R),resolve:M,reject:k}},_.notEnumerableProp(F,"_makeSelfResolutionError",c),s("./method")(F,R,X,m,ae),s("./bind")(F,R,X,ae),s("./cancel")(F,Z,m,ae),s("./direct_resolve")(F),s("./synchronous_inspection")(F),s("./join")(F,Z,X,R,O,x),F.Promise=F,F.version="3.5.1",s("./map.js")(F,Z,m,X,R,ae),s("./call_get.js")(F),s("./using.js")(F,m,X,te,R,ae),s("./timers.js")(F,R,ae),s("./generators.js")(F,m,R,X,v,ae),s("./nodeify.js")(F),s("./promisify.js")(F,R),s("./props.js")(F,Z,X,m),s("./race.js")(F,R,X,m),s("./reduce.js")(F,Z,m,X,R,ae),s("./settle.js")(F,Z,ae),s("./some.js")(F,Z,m),s("./filter.js")(F,R),s("./each.js")(F,R),s("./any.js")(F),_.toFastProperties(F),_.toFastProperties(F.prototype),J({a:1}),J({b:2}),J({c:3}),J(1),J(function(){}),J(void 0),J(!1),J(new F(R)),ae.setBounds(C.firstLineError,_.lastLineError),F}},{"./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,f){u.exports=function(c,p,m,v,x){var w=s("./util");function _(S){var C=this._promise=new c(p);S instanceof c&&C._propagateFrom(S,3),C._setOnCancel(this),this._values=S,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return w.isArray,w.inherits(_,x),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function S(C,O){var T=m(this._values,this._promise);if(T instanceof c){var P=(T=T._target())._bitField;if(this._values=T,(50397184&P)==0)return this._promise._setAsyncGuaranteed(),T._then(S,this._reject,void 0,this,O);if((33554432&P)==0)return(16777216&P)!=0?this._reject(T._reason()):this._cancel();T=T._value()}if((T=w.asArray(T))!==null)T.length!==0?this._iterate(T):O===-5?this._resolveEmptyArray():this._resolve(function(R){switch(O){case-2:return[];case-3:return{};case-6:return new Map}}());else{var j=v("expecting an array or an iterable object but got "+w.classString(T)).reason();this._promise._rejectCallback(j,!1)}},_.prototype._iterate=function(S){var C=this.getActualLength(S.length);this._length=C,this._values=this.shouldCopyValues()?new Array(C):this._values;for(var O=this._promise,T=!1,P=null,j=0;j<C;++j){var R=m(S[j],O);P=R instanceof c?(R=R._target())._bitField:null,T?P!==null&&R.suppressUnhandledRejections():P!==null?(50397184&P)==0?(R._proxy(this,j),this._values[j]=R):T=(33554432&P)!=0?this._promiseFulfilled(R._value(),j):(16777216&P)!=0?this._promiseRejected(R._reason(),j):this._promiseCancelled(j):T=this._promiseFulfilled(R,j)}T||O._setAsyncGuaranteed()},_.prototype._isResolved=function(){return this._values===null},_.prototype._resolve=function(S){this._values=null,this._promise._fulfill(S)},_.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},_.prototype._reject=function(S){this._values=null,this._promise._rejectCallback(S,!1)},_.prototype._promiseFulfilled=function(S,C){return this._values[C]=S,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(S){return this._totalResolved++,this._reject(S),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var S=this._values;if(this._cancel(),S instanceof c)S.cancel();else for(var C=0;C<S.length;++C)S[C]instanceof c&&S[C].cancel()}},_.prototype.shouldCopyValues=function(){return!0},_.prototype.getActualLength=function(S){return S},_}},{"./util":36}],24:[function(s,u,f){u.exports=function(c,p){var m={},v=s("./util"),x=s("./nodeback"),w=v.withAppended,_=v.maybeWrapAsError,S=v.canEvaluate,C=s("./errors").TypeError,O={__isPromisified__:!0},T=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),P=function(te){return v.isIdentifier(te)&&te.charAt(0)!=="_"&&te!=="constructor"};function j(te){return!T.test(te)}function R(te){try{return te.__isPromisified__===!0}catch{return!1}}function $(te,ae,Q){var ne=v.getDataPropertyOrDefault(te,ae+Q,O);return!!ne&&R(ne)}function V(te,ae,Q,ne){for(var H=v.inheritedDataKeys(te),B=[],U=0;U<H.length;++U){var F=H[U],M=te[F],k=ne===P||P(F);typeof M!="function"||R(M)||$(te,F,ae)||!ne(F,M,te,k)||B.push(F,M)}return function(J,W,ie){for(var fe=0;fe<J.length;fe+=2){var ce=J[fe];if(ie.test(ce)){for(var ye=ce.replace(ie,""),z=0;z<J.length;z+=2)if(J[z]===ye)throw new C(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",W))}}}(B,ae,Q),B}var X=function(te){return te.replace(/([$])/,"\\$")},Z=S?void 0:function(te,ae,Q,ne,H,B){var U=function(){return this}(),F=te;function M(){var k=ae;ae===m&&(k=this);var J=new c(p);J._captureStackTrace();var W=typeof F=="string"&&this!==U?this[F]:te,ie=x(J,B);try{W.apply(k,w(arguments,ie))}catch(fe){J._rejectCallback(_(fe),!0,!0)}return J._isFateSealed()||J._setAsyncGuaranteed(),J}return typeof F=="string"&&(te=ne),v.notEnumerableProp(M,"__isPromisified__",!0),M};function Y(te,ae,Q,ne,H){for(var B=new RegExp(X(ae)+"$"),U=V(te,ae,B,Q),F=0,M=U.length;F<M;F+=2){var k=U[F],J=U[F+1],W=k+ae;if(ne===Z)te[W]=Z(k,m,k,J,ae,H);else{var ie=ne(J,function(){return Z(k,m,k,J,ae,H)});v.notEnumerableProp(ie,"__isPromisified__",!0),te[W]=ie}}return v.toFastProperties(te),te}c.promisify=function(te,ae){if(typeof te!="function")throw new C("expecting a function but got "+v.classString(te));if(R(te))return te;var Q=(ae=Object(ae)).context===void 0?m:ae.context,ne=!!ae.multiArgs,H=function(B,U,F){return Z(B,U,void 0,B,null,ne)}(te,Q);return v.copyDescriptors(te,H,j),H},c.promisifyAll=function(te,ae){if(typeof te!="function"&&typeof te!="object")throw new C(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Q=!!(ae=Object(ae)).multiArgs,ne=ae.suffix;typeof ne!="string"&&(ne="Async");var H=ae.filter;typeof H!="function"&&(H=P);var B=ae.promisifier;if(typeof B!="function"&&(B=Z),!v.isIdentifier(ne))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var U=v.inheritedDataKeys(te),F=0;F<U.length;++F){var M=te[U[F]];U[F]!=="constructor"&&v.isClass(M)&&(Y(M.prototype,ne,H,B,Q),Y(M,ne,H,B,Q))}return Y(te,ne,H,B,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,u,f){u.exports=function(c,p,m,v){var x,w=s("./util"),_=w.isObject,S=s("./es5");typeof Map=="function"&&(x=Map);var C=function(){var P=0,j=0;function R($,V){this[P]=$,this[P+j]=V,P++}return function($){j=$.size,P=0;var V=new Array(2*$.size);return $.forEach(R,V),V}}();function O(P){var j,R=!1;if(x!==void 0&&P instanceof x)j=C(P),R=!0;else{var $=S.keys(P),V=$.length;j=new Array(2*V);for(var X=0;X<V;++X){var Z=$[X];j[X]=P[Z],j[X+V]=Z}}this.constructor$(j),this._isMap=R,this._init$(void 0,R?-6:-3)}function T(P){var j,R=m(P);return _(R)?(j=R instanceof c?R._then(c.props,void 0,void 0,void 0,void 0):new O(R).promise(),R instanceof c&&j._propagateFrom(R,2),j):v(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}w.inherits(O,p),O.prototype._init=function(){},O.prototype._promiseFulfilled=function(P,j){if(this._values[j]=P,++this._totalResolved>=this._length){var R;if(this._isMap)R=function(Z){for(var Y=new x,te=Z.length/2|0,ae=0;ae<te;++ae){var Q=Z[te+ae],ne=Z[ae];Y.set(Q,ne)}return Y}(this._values);else{R={};for(var $=this.length(),V=0,X=this.length();V<X;++V)R[this._values[V+$]]=this._values[V]}return this._resolve(R),!0}return!1},O.prototype.shouldCopyValues=function(){return!1},O.prototype.getActualLength=function(P){return P>>1},c.prototype.props=function(){return T(this)},c.props=function(P){return T(P)}}},{"./es5":13,"./util":36}],26:[function(s,u,f){function c(p){this._capacity=p,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(p){return this._capacity<p},c.prototype._pushOne=function(p){var m=this.length();this._checkCapacity(m+1),this[this._front+m&this._capacity-1]=p,this._length=m+1},c.prototype.push=function(p,m,v){var x=this.length()+3;if(this._willBeOverCapacity(x))return this._pushOne(p),this._pushOne(m),void this._pushOne(v);var w=this._front+x-3;this._checkCapacity(x);var _=this._capacity-1;this[w+0&_]=p,this[w+1&_]=m,this[w+2&_]=v,this._length=x},c.prototype.shift=function(){var p=this._front,m=this[p];return this[p]=void 0,this._front=p+1&this._capacity-1,this._length--,m},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(p){this._capacity<p&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(p){var m=this._capacity;this._capacity=p,function(v,x,w,_,S){for(var C=0;C<S;++C)w[C+_]=v[C+0],v[C+0]=void 0}(this,0,this,m,this._front+this._length&m-1)},u.exports=c},{}],27:[function(s,u,f){u.exports=function(c,p,m,v){var x=s("./util"),w=function(S){return S.then(function(C){return _(C,S)})};function _(S,C){var O=m(S);if(O instanceof c)return w(O);if((S=x.asArray(S))===null)return v("expecting an array or an iterable object but got "+x.classString(S));var T=new c(p);C!==void 0&&T._propagateFrom(C,3);for(var P=T._fulfill,j=T._reject,R=0,$=S.length;R<$;++R){var V=S[R];(V!==void 0||R in S)&&c.cast(V)._then(P,j,void 0,T,null)}return T}c.race=function(S){return _(S,void 0)},c.prototype.race=function(){return _(this,void 0)}}},{"./util":36}],28:[function(s,u,f){u.exports=function(c,p,m,v,x,w){var _=c._getDomain,S=s("./util"),C=S.tryCatch;function O($,V,X,Z){this.constructor$($);var Y=_();this._fn=Y===null?V:S.domainBind(Y,V),X!==void 0&&(X=c.resolve(X))._attachCancellationCallback(this),this._initialValue=X,this._currentCancellable=null,this._eachValues=Z===x?Array(this._length):Z===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function T($,V){this.isFulfilled()?V._resolve($):V._reject($)}function P($,V,X,Z){return typeof V!="function"?m("expecting a function but got "+S.classString(V)):new O($,V,X,Z).promise()}function j($){this.accum=$,this.array._gotAccum($);var V=v(this.value,this.array._promise);return V instanceof c?(this.array._currentCancellable=V,V._then(R,void 0,void 0,this,void 0)):R.call(this,V)}function R($){var V,X=this.array,Z=X._promise,Y=C(X._fn);Z._pushContext(),(V=X._eachValues!==void 0?Y.call(Z._boundValue(),$,this.index,this.length):Y.call(Z._boundValue(),this.accum,$,this.index,this.length))instanceof c&&(X._currentCancellable=V);var te=Z._popContext();return w.checkForgottenReturns(V,te,X._eachValues!==void 0?"Promise.each":"Promise.reduce",Z),V}S.inherits(O,p),O.prototype._gotAccum=function($){this._eachValues!==void 0&&this._eachValues!==null&&$!==x&&this._eachValues.push($)},O.prototype._eachComplete=function($){return this._eachValues!==null&&this._eachValues.push($),this._eachValues},O.prototype._init=function(){},O.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},O.prototype.shouldCopyValues=function(){return!1},O.prototype._resolve=function($){this._promise._resolveCallback($),this._values=null},O.prototype._resultCancelled=function($){if($===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},O.prototype._iterate=function($){var V,X;this._values=$;var Z=$.length;if(this._initialValue!==void 0?(V=this._initialValue,X=0):(V=c.resolve($[0]),X=1),this._currentCancellable=V,!V.isRejected())for(;X<Z;++X){var Y={accum:null,value:$[X],index:X,length:Z,array:this};V=V._then(j,void 0,void 0,Y,void 0)}this._eachValues!==void 0&&(V=V._then(this._eachComplete,void 0,void 0,this,void 0)),V._then(T,T,void 0,V,this)},c.prototype.reduce=function($,V){return P(this,$,V,null)},c.reduce=function($,V,X,Z){return P($,V,X,Z)}}},{"./util":36}],29:[function(s,u,f){var c,p=s("./util"),m=p.getNativePromise();if(p.isNode&&typeof MutationObserver>"u"){var v=i.setImmediate,x=r.nextTick;c=p.isRecentNode?function(_){v.call(i,_)}:function(_){x.call(r,_)}}else if(typeof m=="function"&&typeof m.resolve=="function"){var w=m.resolve();c=function(_){w.then(_)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?a!==void 0?function(_){a(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var _=document.createElement("div"),S={attributes:!0},C=!1,O=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),C=!1}).observe(O,S),function(T){var P=new MutationObserver(function(){P.disconnect(),T()});P.observe(_,S),C||(C=!0,O.classList.toggle("foo"))}}();u.exports=c},{"./util":36}],30:[function(s,u,f){u.exports=function(c,p,m){var v=c.PromiseInspection;function x(w){this.constructor$(w)}s("./util").inherits(x,p),x.prototype._promiseResolved=function(w,_){return this._values[w]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseFulfilled=function(w,_){var S=new v;return S._bitField=33554432,S._settledValueField=w,this._promiseResolved(_,S)},x.prototype._promiseRejected=function(w,_){var S=new v;return S._bitField=16777216,S._settledValueField=w,this._promiseResolved(_,S)},c.settle=function(w){return m.deprecated(".settle()",".reflect()"),new x(w).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,u,f){u.exports=function(c,p,m){var v=s("./util"),x=s("./errors").RangeError,w=s("./errors").AggregateError,_=v.isArray,S={};function C(T){this.constructor$(T),this._howMany=0,this._unwrap=!1,this._initialized=!1}function O(T,P){if((0|P)!==P||P<0)return m(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var j=new C(T),R=j.promise();return j.setHowMany(P),j.init(),R}v.inherits(C,p),C.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var T=_(this._values);!this._isResolved()&&T&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},C.prototype.init=function(){this._initialized=!0,this._init()},C.prototype.setUnwrap=function(){this._unwrap=!0},C.prototype.howMany=function(){return this._howMany},C.prototype.setHowMany=function(T){this._howMany=T},C.prototype._promiseFulfilled=function(T){return this._addFulfilled(T),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},C.prototype._promiseRejected=function(T){return this._addRejected(T),this._checkOutcome()},C.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(S),this._checkOutcome())},C.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var T=new w,P=this.length();P<this._values.length;++P)this._values[P]!==S&&T.push(this._values[P]);return T.length>0?this._reject(T):this._cancel(),!0}return!1},C.prototype._fulfilled=function(){return this._totalResolved},C.prototype._rejected=function(){return this._values.length-this.length()},C.prototype._addRejected=function(T){this._values.push(T)},C.prototype._addFulfilled=function(T){this._values[this._totalResolved++]=T},C.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},C.prototype._getRangeError=function(T){var P="Input array must contain at least "+this._howMany+" items but contains only "+T+" items";return new x(P)},C.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(T,P){return O(T,P)},c.prototype.some=function(T){return O(this,T)},c._SomePromiseArray=C}},{"./errors":12,"./util":36}],32:[function(s,u,f){u.exports=function(c){function p(C){C!==void 0?(C=C._target(),this._bitField=C._bitField,this._settledValueField=C._isFateSealed()?C._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}p.prototype._settledValue=function(){return this._settledValueField};var m=p.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},v=p.prototype.error=p.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()},x=p.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},w=p.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=p.prototype.isPending=function(){return(50397184&this._bitField)==0},S=p.prototype.isResolved=function(){return(50331648&this._bitField)!=0};p.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return _.call(this._target())},c.prototype.isRejected=function(){return w.call(this._target())},c.prototype.isFulfilled=function(){return x.call(this._target())},c.prototype.isResolved=function(){return S.call(this._target())},c.prototype.value=function(){return m.call(this._target())},c.prototype.reason=function(){var C=this._target();return C._unsetRejectionIsUnhandled(),v.call(C)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=p}},{}],33:[function(s,u,f){u.exports=function(c,p){var m=s("./util"),v=m.errorObj,x=m.isObject,w={}.hasOwnProperty;return function(_,S){if(x(_)){if(_ instanceof c)return _;var C=function(T){try{return function(P){return P.then}(T)}catch(P){return v.e=P,v}}(_);if(C===v){S&&S._pushContext();var O=c.reject(C.e);return S&&S._popContext(),O}if(typeof C=="function")return function(T){try{return w.call(T,"_promise0")}catch{return!1}}(_)?(O=new c(p),_._then(O._fulfill,O._reject,void 0,O,null),O):function(T,P,j){var R=new c(p),$=R;j&&j._pushContext(),R._captureStackTrace(),j&&j._popContext();var V=!0,X=m.tryCatch(P).call(T,function(Z){R&&(R._resolveCallback(Z),R=null)},function(Z){R&&(R._rejectCallback(Z,V,!0),R=null)});return V=!1,R&&X===v&&(R._rejectCallback(X.e,!0,!0),R=null),$}(_,C,S)}return _}}},{"./util":36}],34:[function(s,u,f){u.exports=function(c,p,m){var v=s("./util"),x=c.TimeoutError;function w(T){this.handle=T}w.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(T){return S(+this).thenReturn(T)},S=c.delay=function(T,P){var j,R;return P!==void 0?(j=c.resolve(P)._then(_,null,null,T,void 0),m.cancellation()&&P instanceof c&&j._setOnCancel(P)):(j=new c(p),R=setTimeout(function(){j._fulfill()},+T),m.cancellation()&&j._setOnCancel(new w(R)),j._captureStackTrace()),j._setAsyncGuaranteed(),j};function C(T){return clearTimeout(this.handle),T}function O(T){throw clearTimeout(this.handle),T}c.prototype.delay=function(T){return S(T,this)},c.prototype.timeout=function(T,P){var j,R;T=+T;var $=new w(setTimeout(function(){j.isPending()&&function(V,X,Z){var Y;Y=typeof X!="string"?X instanceof Error?X:new x("operation timed out"):new x(X),v.markAsOriginatingFromRejection(Y),V._attachExtraTrace(Y),V._reject(Y),Z!=null&&Z.cancel()}(j,P,R)},T));return m.cancellation()?(R=this.then(),(j=R._then(C,O,void 0,$,void 0))._setOnCancel($)):j=this._then(C,O,void 0,$,void 0),j}}},{"./util":36}],35:[function(s,u,f){u.exports=function(c,p,m,v,x,w){var _=s("./util"),S=s("./errors").TypeError,C=s("./util").inherits,O=_.errorObj,T=_.tryCatch,P={};function j(Y){setTimeout(function(){throw Y},0)}function R(Y,te){var ae=0,Q=Y.length,ne=new c(x);return function H(){if(ae>=Q)return ne._fulfill();var B=function(U){var F=m(U);return F!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&F._setDisposable(U._getDisposer()),F}(Y[ae++]);if(B instanceof c&&B._isDisposable()){try{B=m(B._getDisposer().tryDispose(te),Y.promise)}catch(U){return j(U)}if(B instanceof c)return B._then(H,j,null,null,null)}H()}(),ne}function $(Y,te,ae){this._data=Y,this._promise=te,this._context=ae}function V(Y,te,ae){this.constructor$(Y,te,ae)}function X(Y){return $.isDisposer(Y)?(this.resources[this.index]._setDisposable(Y),Y.promise()):Y}function Z(Y){this.length=Y,this.promise=null,this[Y-1]=null}$.prototype.data=function(){return this._data},$.prototype.promise=function(){return this._promise},$.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},$.prototype.tryDispose=function(Y){var te=this.resource(),ae=this._context;ae!==void 0&&ae._pushContext();var Q=te!==P?this.doDispose(te,Y):null;return ae!==void 0&&ae._popContext(),this._promise._unsetDisposable(),this._data=null,Q},$.isDisposer=function(Y){return Y!=null&&typeof Y.resource=="function"&&typeof Y.tryDispose=="function"},C(V,$),V.prototype.doDispose=function(Y,te){return this.data().call(Y,Y,te)},Z.prototype._resultCancelled=function(){for(var Y=this.length,te=0;te<Y;++te){var ae=this[te];ae instanceof c&&ae.cancel()}},c.using=function(){var Y=arguments.length;if(Y<2)return p("you must pass at least 2 arguments to Promise.using");var te,ae=arguments[Y-1];if(typeof ae!="function")return p("expecting a function but got "+_.classString(ae));var Q=!0;Y===2&&Array.isArray(arguments[0])?(Y=(te=arguments[0]).length,Q=!1):(te=arguments,Y--);for(var ne=new Z(Y),H=0;H<Y;++H){var B=te[H];if($.isDisposer(B)){var U=B;(B=B.promise())._setDisposable(U)}else{var F=m(B);F instanceof c&&(B=F._then(X,null,null,{resources:ne,index:H},void 0))}ne[H]=B}var M=new Array(ne.length);for(H=0;H<M.length;++H)M[H]=c.resolve(ne[H]).reflect();var k=c.all(M).then(function(W){for(var ie=0;ie<W.length;++ie){var fe=W[ie];if(fe.isRejected())return O.e=fe.error(),O;if(!fe.isFulfilled())return void k.cancel();W[ie]=fe.value()}J._pushContext(),ae=T(ae);var ce=Q?ae.apply(void 0,W):ae(W),ye=J._popContext();return w.checkForgottenReturns(ce,ye,"Promise.using",J),ce}),J=k.lastly(function(){var W=new c.PromiseInspection(k);return R(ne,W)});return ne.promise=J,J._setOnCancel(ne),J},c.prototype._setDisposable=function(Y){this._bitField=131072|this._bitField,this._disposer=Y},c.prototype._isDisposable=function(){return(131072&this._bitField)>0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(Y){if(typeof Y=="function")return new V(Y,this,v());throw new S}}},{"./errors":12,"./util":36}],36:[function(s,u,f){var c,p=s("./es5"),m=typeof navigator>"u",v={e:{}},x=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function w(){try{var Q=c;return c=null,Q.apply(this,arguments)}catch(ne){return v.e=ne,v}}function _(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function S(Q,ne,H){if(_(Q))return Q;var B={value:H,configurable:!0,enumerable:!1,writable:!0};return p.defineProperty(Q,ne,B),Q}var C=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],ne=function(U){for(var F=0;F<Q.length;++F)if(Q[F]===U)return!0;return!1};if(p.isES5){var H=Object.getOwnPropertyNames;return function(U){for(var F=[],M=Object.create(null);U!=null&&!ne(U);){var k;try{k=H(U)}catch{return F}for(var J=0;J<k.length;++J){var W=k[J];if(!M[W]){M[W]=!0;var ie=Object.getOwnPropertyDescriptor(U,W);ie!=null&&ie.get==null&&ie.set==null&&F.push(W)}}U=p.getPrototypeOf(U)}return F}}var B={}.hasOwnProperty;return function(U){if(ne(U))return[];var F=[];e:for(var M in U)if(B.call(U,M))F.push(M);else{for(var k=0;k<Q.length;++k)if(B.call(Q[k],M))continue e;F.push(M)}return F}}(),O=/this\s*\.\s*\S+\s*=/,T=/^[a-z$_][a-z$_0-9]*$/i;function P(Q){try{return Q+""}catch{return"[no string representation]"}}function j(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function R(Q){return j(Q)&&p.propertyIsWritable(Q,"stack")}var $="stack"in new Error?function(Q){return R(Q)?Q:new Error(P(Q))}:function(Q){if(R(Q))return Q;try{throw new Error(P(Q))}catch(ne){return ne}};function V(Q){return{}.toString.call(Q)}var X=function(Q){return p.isArray(Q)?Q:null};if(typeof Symbol<"u"&&Symbol.iterator){var Z=typeof Array.from=="function"?function(Q){return Array.from(Q)}:function(Q){for(var ne,H=[],B=Q[Symbol.iterator]();!(ne=B.next()).done;)H.push(ne.value);return H};X=function(Q){return p.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?Z(Q):null}}var Y=r!==void 0&&V(r).toLowerCase()==="[object process]",te=r!==void 0&&r.env!==void 0,ae={isClass:function(Q){try{if(typeof Q=="function"){var ne=p.names(Q.prototype),H=p.isES5&&ne.length>1,B=ne.length>0&&!(ne.length===1&&ne[0]==="constructor"),U=O.test(Q+"")&&p.names(Q).length>0;if(H||B||U)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return T.test(Q)},inheritedDataKeys:C,getDataPropertyOrDefault:function(Q,ne,H){if(!p.isES5)return{}.hasOwnProperty.call(Q,ne)?Q[ne]:void 0;var B=Object.getOwnPropertyDescriptor(Q,ne);return B!=null?B.get==null&&B.set==null?B.value:H:void 0},thrower:function(Q){throw Q},isArray:p.isArray,asArray:X,notEnumerableProp:S,isPrimitive:_,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:j,canEvaluate:m,errorObj:v,tryCatch:function(Q){return c=Q,w},inherits:function(Q,ne){var H={}.hasOwnProperty;function B(){for(var U in this.constructor=Q,this.constructor$=ne,ne.prototype)H.call(ne.prototype,U)&&U.charAt(U.length-1)!=="$"&&(this[U+"$"]=ne.prototype[U])}return B.prototype=ne.prototype,Q.prototype=new B,Q.prototype},withAppended:function(Q,ne){var H,B=Q.length,U=new Array(B+1);for(H=0;H<B;++H)U[H]=Q[H];return U[H]=ne,U},maybeWrapAsError:function(Q){return _(Q)?new Error(P(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,ne,H){for(var B=new Array(Q),U=0;U<Q;++U)B[U]=ne+U+H;return B},toString:P,canAttachTrace:R,ensureErrorObject:$,originatesFromRejection:function(Q){return Q!=null&&(Q instanceof Error.__BluebirdErrorTypes__.OperationalError||Q.isOperational===!0)},markAsOriginatingFromRejection:function(Q){try{S(Q,"isOperational",!0)}catch{}},classString:V,copyDescriptors:function(Q,ne,H){for(var B=p.names(Q),U=0;U<B.length;++U){var F=B[U];if(H(F))try{p.defineProperty(ne,F,p.getDescriptor(Q,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:Y,hasEnvVariables:te,env:function(Q){return te?r.env[Q]:void 0},global:x,getNativePromise:function(){if(typeof Promise=="function")try{var Q=new Promise(function(){});if({}.toString.call(Q)==="[object Promise]")return Promise}catch{}},domainBind:function(Q,ne){return Q.bind(ne)}};ae.isRecentNode=ae.isNode&&function(){var Q=r.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),ae.isNode&&ae.toFastProperties(r);try{throw new Error}catch(Q){ae.lastLineError=Q}u.exports=ae},{"./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 a=0,s=r.length;a<s;a++)if(r[a]==="\r"){if(r[a+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[a+1]){i.eol="\r";break}}else if(r[a]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(a,s){var u=i(a,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,a=r||i||Function("return this")();e.exports=a},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(a){return typeof a=="symbol"||i(a)&&r(a)=="[object Symbol]"}},function(e,t,n){(function(r,i){var a=n(6);e.exports=P;var s,u=n(37);P.ReadableState=T,n(12).EventEmitter;var f=function(M,k){return M.listeners(k).length},c=n(24),p=n(7).Buffer,m=r.Uint8Array||function(){},v=n(5);v.inherits=n(2);var x=n(41),w=void 0;w=x&&x.debuglog?x.debuglog("stream"):function(){};var _,S=n(42),C=n(25);v.inherits(P,c);var O=["error","close","destroy","pause","resume"];function T(M,k){s=s||n(1),M=M||{};var J=k instanceof s;this.objectMode=!!M.objectMode,J&&(this.objectMode=this.objectMode||!!M.readableObjectMode);var W=M.highWaterMark,ie=M.readableHighWaterMark,fe=this.objectMode?16:16384;this.highWaterMark=W||W===0?W:J&&(ie||ie===0)?ie:fe,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,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=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(_||(_=n(26).StringDecoder),this.decoder=new _(M.encoding),this.encoding=M.encoding)}function P(M){if(s=s||n(1),!(this instanceof P))return new P(M);this._readableState=new T(M,this),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),c.call(this)}function j(M,k,J,W,ie){var fe,ce=M._readableState;return k===null?(ce.reading=!1,function(ye,z){if(!z.ended){if(z.decoder){var q=z.decoder.end();q&&q.length&&(z.buffer.push(q),z.length+=z.objectMode?1:q.length)}z.ended=!0,X(ye)}}(M,ce)):(ie||(fe=function(ye,z){var q;return function(ee){return p.isBuffer(ee)||ee instanceof m}(z)||typeof z=="string"||z===void 0||ye.objectMode||(q=new TypeError("Invalid non-string/buffer chunk")),q}(ce,k)),fe?M.emit("error",fe):ce.objectMode||k&&k.length>0?(typeof k=="string"||ce.objectMode||Object.getPrototypeOf(k)===p.prototype||(k=function(ye){return p.from(ye)}(k)),W?ce.endEmitted?M.emit("error",new Error("stream.unshift() after end event")):R(M,ce,k,!0):ce.ended?M.emit("error",new Error("stream.push() after EOF")):(ce.reading=!1,ce.decoder&&!J?(k=ce.decoder.write(k),ce.objectMode||k.length!==0?R(M,ce,k,!1):Y(M,ce)):R(M,ce,k,!1))):W||(ce.reading=!1)),function(ye){return!ye.ended&&(ye.needReadable||ye.length<ye.highWaterMark||ye.length===0)}(ce)}function R(M,k,J,W){k.flowing&&k.length===0&&!k.sync?(M.emit("data",J),M.read(0)):(k.length+=k.objectMode?1:J.length,W?k.buffer.unshift(J):k.buffer.push(J),k.needReadable&&X(M)),Y(M,k)}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),P.prototype.destroy=C.destroy,P.prototype._undestroy=C.undestroy,P.prototype._destroy=function(M,k){this.push(null),k(M)},P.prototype.push=function(M,k){var J,W=this._readableState;return W.objectMode?J=!0:typeof M=="string"&&((k=k||W.defaultEncoding)!==W.encoding&&(M=p.from(M,k),k=""),J=!0),j(this,M,k,!1,J)},P.prototype.unshift=function(M){return j(this,M,null,!0,!1)},P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(M){return _||(_=n(26).StringDecoder),this._readableState.decoder=new _(M),this._readableState.encoding=M,this};var $=8388608;function V(M,k){return M<=0||k.length===0&&k.ended?0:k.objectMode?1:M!=M?k.flowing&&k.length?k.buffer.head.data.length:k.length:(M>k.highWaterMark&&(k.highWaterMark=function(J){return J>=$?J=$:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}(M)),M<=k.length?M:k.ended?k.length:(k.needReadable=!0,0))}function X(M){var k=M._readableState;k.needReadable=!1,k.emittedReadable||(w("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?a.nextTick(Z,M):Z(M))}function Z(M){w("emit readable"),M.emit("readable"),ne(M)}function Y(M,k){k.readingMore||(k.readingMore=!0,a.nextTick(te,M,k))}function te(M,k){for(var J=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(w("maybeReadMore read 0"),M.read(0),J!==k.length);)J=k.length;k.readingMore=!1}function ae(M){w("readable nexttick read 0"),M.read(0)}function Q(M,k){k.reading||(w("resume read 0"),M.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,M.emit("resume"),ne(M),k.flowing&&!k.reading&&M.read(0)}function ne(M){var k=M._readableState;for(w("flow",k.flowing);k.flowing&&M.read()!==null;);}function H(M,k){return k.length===0?null:(k.objectMode?J=k.buffer.shift():!M||M>=k.length?(J=k.decoder?k.buffer.join(""):k.buffer.length===1?k.buffer.head.data:k.buffer.concat(k.length),k.buffer.clear()):J=function(W,ie,fe){var ce;return W<ie.head.data.length?(ce=ie.head.data.slice(0,W),ie.head.data=ie.head.data.slice(W)):ce=W===ie.head.data.length?ie.shift():fe?function(ye,z){var q=z.head,ee=1,ue=q.data;for(ye-=ue.length;q=q.next;){var K=q.data,se=ye>K.length?K.length:ye;if(se===K.length?ue+=K:ue+=K.slice(0,ye),(ye-=se)==0){se===K.length?(++ee,q.next?z.head=q.next:z.head=z.tail=null):(z.head=q,q.data=K.slice(se));break}++ee}return z.length-=ee,ue}(W,ie):function(ye,z){var q=p.allocUnsafe(ye),ee=z.head,ue=1;for(ee.data.copy(q),ye-=ee.data.length;ee=ee.next;){var K=ee.data,se=ye>K.length?K.length:ye;if(K.copy(q,q.length-ye,0,se),(ye-=se)==0){se===K.length?(++ue,ee.next?z.head=ee.next:z.head=z.tail=null):(z.head=ee,ee.data=K.slice(se));break}++ue}return z.length-=ue,q}(W,ie),ce}(M,k.buffer,k.decoder),J);var J}function B(M){var k=M._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,a.nextTick(U,k,M))}function U(M,k){M.endEmitted||M.length!==0||(M.endEmitted=!0,k.readable=!1,k.emit("end"))}function F(M,k){for(var J=0,W=M.length;J<W;J++)if(M[J]===k)return J;return-1}P.prototype.read=function(M){w("read",M),M=parseInt(M,10);var k=this._readableState,J=M;if(M!==0&&(k.emittedReadable=!1),M===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return w("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?B(this):X(this),null;if((M=V(M,k))===0&&k.ended)return k.length===0&&B(this),null;var W,ie=k.needReadable;return w("need readable",ie),(k.length===0||k.length-M<k.highWaterMark)&&w("length less than watermark",ie=!0),k.ended||k.reading?w("reading or ended",ie=!1):ie&&(w("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(M=V(J,k))),(W=M>0?H(M,k):null)===null?(k.needReadable=!0,M=0):k.length-=M,k.length===0&&(k.ended||(k.needReadable=!0),J!==M&&k.ended&&B(this)),W!==null&&this.emit("data",W),W},P.prototype._read=function(M){this.emit("error",new Error("_read() is not implemented"))},P.prototype.pipe=function(M,k){var J=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=M;break;case 1:W.pipes=[W.pipes,M];break;default:W.pipes.push(M)}W.pipesCount+=1,w("pipe count=%d opts=%j",W.pipesCount,k);var ie=k&&k.end===!1||M===i.stdout||M===i.stderr?se:fe;function fe(){w("onend"),M.end()}W.endEmitted?a.nextTick(ie):J.once("end",ie),M.on("unpipe",function de(ve,he){w("onunpipe"),ve===J&&he&&he.hasUnpiped===!1&&(he.hasUnpiped=!0,w("cleanup"),M.removeListener("close",ue),M.removeListener("finish",K),M.removeListener("drain",ce),M.removeListener("error",ee),M.removeListener("unpipe",de),J.removeListener("end",fe),J.removeListener("end",se),J.removeListener("data",q),ye=!0,!W.awaitDrain||M._writableState&&!M._writableState.needDrain||ce())});var ce=function(de){return function(){var ve=de._readableState;w("pipeOnDrain",ve.awaitDrain),ve.awaitDrain&&ve.awaitDrain--,ve.awaitDrain===0&&f(de,"data")&&(ve.flowing=!0,ne(de))}}(J);M.on("drain",ce);var ye=!1,z=!1;function q(de){w("ondata"),z=!1,M.write(de)!==!1||z||((W.pipesCount===1&&W.pipes===M||W.pipesCount>1&&F(W.pipes,M)!==-1)&&!ye&&(w("false write response, pause",J._readableState.awaitDrain),J._readableState.awaitDrain++,z=!0),J.pause())}function ee(de){w("onerror",de),se(),M.removeListener("error",ee),f(M,"error")===0&&M.emit("error",de)}function ue(){M.removeListener("finish",K),se()}function K(){w("onfinish"),M.removeListener("close",ue),se()}function se(){w("unpipe"),J.unpipe(M)}return J.on("data",q),function(de,ve,he){if(typeof de.prependListener=="function")return de.prependListener(ve,he);de._events&&de._events[ve]?u(de._events[ve])?de._events[ve].unshift(he):de._events[ve]=[he,de._events[ve]]:de.on(ve,he)}(M,"error",ee),M.once("close",ue),M.once("finish",K),M.emit("pipe",J),W.flowing||(w("pipe resume"),J.resume()),M},P.prototype.unpipe=function(M){var k=this._readableState,J={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return M&&M!==k.pipes?this:(M||(M=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,M&&M.emit("unpipe",this,J),this);if(!M){var W=k.pipes,ie=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var fe=0;fe<ie;fe++)W[fe].emit("unpipe",this,J);return this}var ce=F(k.pipes,M);return ce===-1?this:(k.pipes.splice(ce,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),M.emit("unpipe",this,J),this)},P.prototype.on=function(M,k){var J=c.prototype.on.call(this,M,k);if(M==="data")this._readableState.flowing!==!1&&this.resume();else if(M==="readable"){var W=this._readableState;W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.emittedReadable=!1,W.reading?W.length&&X(this):a.nextTick(ae,this))}return J},P.prototype.addListener=P.prototype.on,P.prototype.resume=function(){var M=this._readableState;return M.flowing||(w("resume"),M.flowing=!0,function(k,J){J.resumeScheduled||(J.resumeScheduled=!0,a.nextTick(Q,k,J))}(this,M)),this},P.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},P.prototype.wrap=function(M){var k=this,J=this._readableState,W=!1;for(var ie in M.on("end",function(){if(w("wrapped end"),J.decoder&&!J.ended){var ce=J.decoder.end();ce&&ce.length&&k.push(ce)}k.push(null)}),M.on("data",function(ce){w("wrapped data"),J.decoder&&(ce=J.decoder.write(ce)),(!J.objectMode||ce!=null)&&(J.objectMode||ce&&ce.length)&&(k.push(ce)||(W=!0,M.pause()))}),M)this[ie]===void 0&&typeof M[ie]=="function"&&(this[ie]=function(ce){return function(){return M[ce].apply(M,arguments)}}(ie));for(var fe=0;fe<O.length;fe++)M.on(O[fe],this.emit.bind(this,O[fe]));return this._read=function(ce){w("wrapped _read",ce),W&&(W=!1,M.resume())},this},Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),P._fromList=H}).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(a,s){a.emit("error",s)}e.exports={destroy:function(a,s){var u=this,f=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return f||c?(s?s(a):!a||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,a),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(p){!s&&p?(r.nextTick(i,u,p),u._writableState&&(u._writableState.errorEmitted=!0)):s&&s(p)}),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 a(w){var _;switch(this.encoding=function(S){var C=function(O){if(!O)return"utf8";for(var T;;)switch(O){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 O;default:if(T)return;O=(""+O).toLowerCase(),T=!0}}(S);if(typeof C!="string"&&(r.isEncoding===i||!i(S)))throw new Error("Unknown encoding: "+S);return C||S}(w),this.encoding){case"utf16le":this.text=f,this.end=c,_=4;break;case"utf8":this.fillLast=u,_=4;break;case"base64":this.text=p,this.end=m,_=3;break;default:return this.write=v,void(this.end=x)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(_)}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 _=this.lastTotal-this.lastNeed,S=function(C,O,T){if((192&O[0])!=128)return C.lastNeed=0,"<22>";if(C.lastNeed>1&&O.length>1){if((192&O[1])!=128)return C.lastNeed=1,"<22>";if(C.lastNeed>2&&O.length>2&&(192&O[2])!=128)return C.lastNeed=2,"<22>"}}(this,w);return S!==void 0?S:this.lastNeed<=w.length?(w.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,_,0,w.length),void(this.lastNeed-=w.length))}function f(w,_){if((w.length-_)%2==0){var S=w.toString("utf16le",_);if(S){var C=S.charCodeAt(S.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",_,w.length-1)}function c(w){var _=w&&w.length?this.write(w):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,S)}return _}function p(w,_){var S=(w.length-_)%3;return S===0?w.toString("base64",_):(this.lastNeed=3-S,this.lastTotal=3,S===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",_,w.length-S))}function m(w){var _=w&&w.length?this.write(w):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function v(w){return w.toString(this.encoding)}function x(w){return w&&w.length?this.write(w):""}t.StringDecoder=a,a.prototype.write=function(w){if(w.length===0)return"";var _,S;if(this.lastNeed){if((_=this.fillLast(w))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<w.length?_?_+this.text(w,S):this.text(w,S):_||""},a.prototype.end=function(w){var _=w&&w.length?this.write(w):"";return this.lastNeed?_+"<22>":_},a.prototype.text=function(w,_){var S=function(O,T,P){var j=T.length-1;if(j<P)return 0;var R=s(T[j]);return R>=0?(R>0&&(O.lastNeed=R-1),R):--j<P||R===-2?0:(R=s(T[j]))>=0?(R>0&&(O.lastNeed=R-2),R):--j<P||R===-2?0:(R=s(T[j]))>=0?(R>0&&(R===2?R=0:O.lastNeed=R-3),R):0}(this,w,_);if(!this.lastNeed)return w.toString("utf8",_);this.lastTotal=S;var C=w.length-(S-this.lastNeed);return w.copy(this.lastChar,0,C),w.toString("utf8",_,C)},a.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=a;var r=n(1),i=n(5);function a(f){if(!(this instanceof a))return new a(f);r.call(this,f),this._transformState={afterTransform:(function(c,p){var m=this._transformState;m.transforming=!1;var v=m.writecb;if(!v)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,p!=null&&this.push(p),v(c);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",s)}function s(){var f=this;typeof this._flush=="function"?this._flush(function(c,p){u(f,c,p)}):u(this,null,null)}function u(f,c,p){if(c)return f.emit("error",c);if(p!=null&&f.push(p),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}i.inherits=n(2),i.inherits(a,r),a.prototype.push=function(f,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,f,c)},a.prototype._transform=function(f,c,p){throw new Error("_transform() is not implemented")},a.prototype._write=function(f,c,p){var m=this._transformState;if(m.writecb=p,m.writechunk=f,m.writeencoding=c,!m.transforming){var v=this._readableState;(m.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},a.prototype._read=function(f){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},a.prototype._destroy=function(f,c){var p=this;r.prototype._destroy.call(this,f,function(m){c(m),p.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var a=r.byteLength(i),s=r.allocUnsafe?r.allocUnsafe(a):new r(a);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,a){for(var s=[],u=0;u<i.length;u++)a.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 a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var f in u)u.hasOwnProperty(f)&&(s[f]=u[f])};return function(s,u){function f(){this.constructor=s}a(s,u),s.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(a){function s(u,f,c){var p=a.call(this,"Error: "+u+". JSON Line number: "+f+(c?" near: "+c:""))||this;return p.err=u,p.line=f,p.extra=c,p.name="CSV Parse Error",p}return r(s,a),s.column_mismatched=function(u,f){return new s("column_mismatched",u,f)},s.unclosed_quote=function(u,f){return new s("unclosed_quote",u,f)},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),a=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):a(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(a,s){return new r.Converter(a,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,_){w.__proto__=_}||function(w,_){for(var S in _)_.hasOwnProperty(S)&&(w[S]=_[S])};return function(w,_){function S(){this.constructor=w}x(w,_),w.prototype=_===null?Object.create(_):(S.prototype=_.prototype,new S)}}(),a=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),u=n(50),f=n(51),c=a(n(15)),p=n(52),m=n(105),v=function(x){function w(_,S){S===void 0&&(S={});var C=x.call(this,S)||this;return C.options=S,C.params=u.mergeParams(_),C.runtime=f.initParseRuntime(C),C.result=new m.Result(C),C.processor=new p.ProcessorLocal(C),C.once("error",function(O){r(function(){C.result.processError(O),C.emit("done",O)})}),C.once("done",function(){C.processor.destroy()}),C}return i(w,x),w.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},w.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},w.prototype.subscribe=function(_,S,C){return this.parseRuntime.subscribe={onNext:_,onError:S,onCompleted:C},this},w.prototype.fromFile=function(_,S){var C=this,O=n(!function(){var T=new Error("Cannot find module 'fs'");throw T.code="MODULE_NOT_FOUND",T}());return O.exists(_,function(T){T?O.createReadStream(_,S).pipe(C):C.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(_){return _.pipe(this),this},w.prototype.fromString=function(_){_.toString();var S=new s.Readable,C=0;return S._read=function(O){if(C>=_.length)this.push(null);else{var T=_.substr(C,O);this.push(T),C+=O}},this.fromStream(S)},w.prototype.then=function(_,S){var C=this;return new c.default(function(O,T){C.parseRuntime.then={onfulfilled:function(P){O(_?_(P):P)},onrejected:function(P){S?O(S(P)):T(P)}}})},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(_,S,C){var O=this;this.processor.process(_).then(function(T){if(T.length>0)return O.runtime.started=!0,O.result.processResult(T)}).then(function(){O.emit("drained"),C()},function(T){O.runtime.hasError=!0,O.runtime.error=T,O.emit("error",T),C()})},w.prototype._flush=function(_){var S=this;this.processor.flush().then(function(C){if(C.length>0)return S.result.processResult(C)}).then(function(){S.processEnd(_)},function(C){S.emit("error",C),_()})},w.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(w.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),w}(s.Transform);t.Converter=v}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(a,s){if(!a.setImmediate){var u,f=1,c={},p=!1,m=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,{}.toString.call(a.process)==="[object process]"?u=function(_){i.nextTick(function(){w(_)})}:function(){if(a.postMessage&&!a.importScripts){var _=!0,S=a.onmessage;return a.onmessage=function(){_=!1},a.postMessage("","*"),a.onmessage=S,_}}()?function(){var _="setImmediate$"+Math.random()+"$",S=function(C){C.source===a&&typeof C.data=="string"&&C.data.indexOf(_)===0&&w(+C.data.slice(_.length))};a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),u=function(C){a.postMessage(_+C,"*")}}():a.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(S){w(S.data)},u=function(S){_.port2.postMessage(S)}}():m&&"onreadystatechange"in m.createElement("script")?function(){var _=m.documentElement;u=function(S){var C=m.createElement("script");C.onreadystatechange=function(){w(S),C.onreadystatechange=null,_.removeChild(C),C=null},_.appendChild(C)}}():u=function(_){setTimeout(w,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var S=new Array(arguments.length-1),C=0;C<S.length;C++)S[C]=arguments[C+1];var O={callback:_,args:S};return c[f]=O,u(f),f++},v.clearImmediate=x}function x(_){delete c[_]}function w(_){if(p)setTimeout(w,0,_);else{var S=c[_];if(S){p=!0;try{(function(C){var O=C.callback,T=C.args;switch(T.length){case 0:O();break;case 1:O(T[0]);break;case 2:O(T[0],T[1]);break;case 3:O(T[0],T[1],T[2]);break;default:O.apply(s,T)}})(S)}finally{x(_),p=!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(a,s){var u=this;function f(_){a.writable&&a.write(_)===!1&&u.pause&&u.pause()}function c(){u.readable&&u.resume&&u.resume()}u.on("data",f),a.on("drain",c),a._isStdio||s&&s.end===!1||(u.on("end",m),u.on("close",v));var p=!1;function m(){p||(p=!0,a.end())}function v(){p||(p=!0,typeof a.destroy=="function"&&a.destroy())}function x(_){if(w(),r.listenerCount(this,"error")===0)throw _}function w(){u.removeListener("data",f),a.removeListener("drain",c),u.removeListener("end",m),u.removeListener("close",v),u.removeListener("error",x),a.removeListener("error",x),u.removeListener("end",w),u.removeListener("close",w),a.removeListener("close",w)}return u.on("error",x),a.on("error",x),u.on("end",w),u.on("close",w),a.on("close",w),a.emit("pipe",u),a}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(v){var x=c(v),w=x[0],_=x[1];return 3*(w+_)/4-_},t.toByteArray=function(v){for(var x,w=c(v),_=w[0],S=w[1],C=new a(3*(_+S)/4-S),O=0,T=S>0?_-4:_,P=0;P<T;P+=4)x=i[v.charCodeAt(P)]<<18|i[v.charCodeAt(P+1)]<<12|i[v.charCodeAt(P+2)]<<6|i[v.charCodeAt(P+3)],C[O++]=x>>16&255,C[O++]=x>>8&255,C[O++]=255&x;return S===2&&(x=i[v.charCodeAt(P)]<<2|i[v.charCodeAt(P+1)]>>4,C[O++]=255&x),S===1&&(x=i[v.charCodeAt(P)]<<10|i[v.charCodeAt(P+1)]<<4|i[v.charCodeAt(P+2)]>>2,C[O++]=x>>8&255,C[O++]=255&x),C},t.fromByteArray=function(v){for(var x,w=v.length,_=w%3,S=[],C=0,O=w-_;C<O;C+=16383)S.push(m(v,C,C+16383>O?O:C+16383));return _===1?(x=v[w-1],S.push(r[x>>2]+r[x<<4&63]+"==")):_===2&&(x=(v[w-2]<<8)+v[w-1],S.push(r[x>>10]+r[x>>4&63]+r[x<<2&63]+"=")),S.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=s.length;u<f;++u)r[u]=s[u],i[s.charCodeAt(u)]=u;function c(v){var x=v.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=v.indexOf("=");return w===-1&&(w=x),[w,w===x?0:4-w%4]}function p(v){return r[v>>18&63]+r[v>>12&63]+r[v>>6&63]+r[63&v]}function m(v,x,w){for(var _,S=[],C=x;C<w;C+=3)_=(v[C]<<16&16711680)+(v[C+1]<<8&65280)+(255&v[C+2]),S.push(p(_));return S.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,a,s){var u,f,c=8*s-a-1,p=(1<<c)-1,m=p>>1,v=-7,x=i?s-1:0,w=i?-1:1,_=n[r+x];for(x+=w,u=_&(1<<-v)-1,_>>=-v,v+=c;v>0;u=256*u+n[r+x],x+=w,v-=8);for(f=u&(1<<-v)-1,u>>=-v,v+=a;v>0;f=256*f+n[r+x],x+=w,v-=8);if(u===0)u=1-m;else{if(u===p)return f?NaN:1/0*(_?-1:1);f+=Math.pow(2,a),u-=m}return(_?-1:1)*f*Math.pow(2,u-a)},t.write=function(n,r,i,a,s,u){var f,c,p,m=8*u-s-1,v=(1<<m)-1,x=v>>1,w=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=a?0:u-1,S=a?1:-1,C=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,f=v):(f=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-f))<1&&(f--,p*=2),(r+=f+x>=1?w/p:w*Math.pow(2,1-x))*p>=2&&(f++,p/=2),f+x>=v?(c=0,f=v):f+x>=1?(c=(r*p-1)*Math.pow(2,s),f+=x):(c=r*Math.pow(2,x-1)*Math.pow(2,s),f=0));s>=8;n[i+_]=255&c,_+=S,c/=256,s-=8);for(f=f<<s|c,m+=s;m>0;n[i+_]=255&f,_+=S,f/=256,m-=8);n[i+_-S]|=128*C}},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 a(s,u,f){s.copy(u,f)}e.exports=function(){function s(){(function(u,f){if(!(u instanceof f))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 f={data:u,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},s.prototype.unshift=function(u){var f={data:u,next:this.head};this.length===0&&(this.tail=f),this.head=f,++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 f=this.head,c=""+f.data;f=f.next;)c+=u+f.data;return c},s.prototype.concat=function(u){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var f=r.allocUnsafe(u>>>0),c=this.head,p=0;c;)a(c.data,f,p),p+=c.data.length,c=c.next;return f},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(a){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[a];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(a,s){if(i("noDeprecation"))return a;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 a.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=a;var r=n(27),i=n(5);function a(s){if(!(this instanceof a))return new a(s);r.call(this,s)}i.inherits=n(2),i.inherits(a,r),a.prototype._transform=function(s,u,f){f(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 a in r||(r={}),r)r.hasOwnProperty(a)&&(Array.isArray(r[a])?i[a]=[].concat(r[a]):i[a]=r[a]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,a={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&&(a.needProcessIgnoreColumn=!0),i.includeColumns&&(a.needProcessIncludeColumn=!0),a}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,O){C.__proto__=O}||function(C,O){for(var T in O)O.hasOwnProperty(T)&&(C[T]=O[T])};return function(C,O){function T(){this.constructor=C}S(C,O),C.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}}(),a=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),u=a(n(15)),f=n(54),c=a(n(16)),p=n(57),m=n(28),v=n(58),x=a(n(59)),w=a(n(29)),_=function(S){function C(){var O=S!==null&&S.apply(this,arguments)||this;return O.rowSplit=new v.RowSplit(O.converter),O.eolEmitted=!1,O._needEmitEol=void 0,O.headEmitted=!1,O._needEmitHead=void 0,O}return i(C,S),C.prototype.flush=function(){var O=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var T=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(T,!0).then(function(P){return O.runtime.csvLineBuffer&&O.runtime.csvLineBuffer.length>0?u.default.reject(w.default.unclosed_quote(O.runtime.parsedLineNumber,O.runtime.csvLineBuffer.toString())):u.default.resolve(P)})}return u.default.resolve([])},C.prototype.destroy=function(){return u.default.resolve()},Object.defineProperty(C.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(C.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),C.prototype.process=function(O,T){var P,j=this;return T===void 0&&(T=!1),P=T?O.toString():f.prepareData(O,this.converter.parseRuntime),u.default.resolve().then(function(){return j.runtime.preRawDataHook?j.runtime.preRawDataHook(P):P}).then(function(R){return R&&R.length>0?j.processCSV(R,T):u.default.resolve([])})},C.prototype.processCSV=function(O,T){var P=this,j=this.params,R=this.runtime;R.eol||c.default(O,R),this.needEmitEol&&!this.eolEmitted&&R.eol&&(this.converter.emit("eol",R.eol),this.eolEmitted=!0),j.ignoreEmpty&&!R.started&&(O=m.trimLeft(O));var $=p.stringToLines(O,R);return T?($.lines.push($.partial),$.partial=""):this.prependLeftBuf(m.bufFromString($.partial)),$.lines.length>0?(R.preFileLineHook?this.runPreLineHook($.lines):u.default.resolve($.lines)).then(function(V){return R.started||P.runtime.headers?P.processCSVBody(V):P.processDataWithHead(V)}):u.default.resolve([])},C.prototype.processDataWithHead=function(O){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var T="",P=[];O.length;){var j=T+O.shift(),R=this.rowSplit.parse(j);if(R.closed){P=R.cells,T="";break}T=j+c.default(j,this.runtime)}if(this.prependLeftBuf(m.bufFromString(T)),P.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=P}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(O)},C.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var O=this.runtime.headers,T=0;T<O.length;T++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(O[T])){if(!this.params.includeColumns||!this.params.includeColumns.test(O[T]))continue;this.runtime.selectedColumns.push(T)}else this.runtime.selectedColumns.push(T);else this.params.includeColumns?this.params.includeColumns.test(O[T])&&this.runtime.selectedColumns.push(T):this.runtime.selectedColumns.push(T);this.runtime.headers=m.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},C.prototype.processCSVBody=function(O){if(this.params.output==="line")return O;var T=this.rowSplit.parseMultiLines(O);return this.prependLeftBuf(m.bufFromString(T.partial)),this.params.output==="csv"?T.rowsCells:x.default(T.rowsCells,this.converter)},C.prototype.prependLeftBuf=function(O){O&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([O,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=O)},C.prototype.runPreLineHook=function(O){var T=this;return new u.default(function(P,j){(function R($,V,X,Z){if(X>=$.length)Z();else if(V.preFileLineHook){var Y=$[X],te=V.preFileLineHook(Y,V.parsedLineNumber+X);if(X++,te&&te.then)te.then(function(ae){$[X-1]=ae,R($,V,X,Z)});else{for($[X-1]=te;X<$.length;)$[X]=V.preFileLineHook($[X],V.parsedLineNumber+X),X++;Z()}}else Z()})(O,T.runtime,0,function(R){R?j(R):P(O)})})},C}(s.Processor);t.ProcessorLocal=_}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(55));t.prepareData=function(s,u){var f=function(p,m){return m.csvLineBuffer&&m.csvLineBuffer.length>0?r.concat([m.csvLineBuffer,p]):p}(s,u);u.csvLineBuffer=void 0;var c=function(p,m){var v=p.length-1;if((128&p[v])!=0){for(;(192&p[v])==128;)v--;v--}return v!=p.length-1?(m.csvLineBuffer=p.slice(v+1),p.slice(0,v+1)):p}(f,u).toString("utf8");return u.started===!1?a.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(a){return typeof a=="string"&&a.charCodeAt(0)===65279?a.slice(1):r.isBuffer(a)&&i(a)&&a[0]===239&&a[1]===187&&a[2]===191?a.slice(3):a}}).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(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(a,s){var u=i.default(a,s),f=a.split(u);return{lines:f,partial:f.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),a=n(28),s=[",","|"," ",";",":"],u=function(){function f(c){this.conv=c,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=c.parseParam.quote,this.trim=c.parseParam.trim,this.escape=c.parseParam.escape}return Object.defineProperty(f.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),f.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var p=this.quote,m=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var v=this.conv.parseRuntime.delimiter,x=c.split(v);if(p==="off"){if(m)for(var w=0;w<x.length;w++)x[w]=x[w].trim();return{cells:x,closed:!0}}return this.toCSVRow(x,m,p,v)},f.prototype.toCSVRow=function(c,p,m,v){for(var x=[],w=!1,_="",S=0,C=c.length;S<C;S++){var O=c[S];!w&&p&&(O=a.trimLeft(O));var T=O.length;if(w)this.isQuoteClose(O)?(w=!1,_+=v+(O=O.substr(0,T-1)),_=this.escapeQuote(_),p&&(_=a.trimRight(_)),x.push(_),_=""):_+=v+O;else{if(T===2&&O===this.quote+this.quote){x.push("");continue}if(this.isQuoteOpen(O)){if(O=O.substr(1),this.isQuoteClose(O)){O=O.substring(0,O.lastIndexOf(m)),O=this.escapeQuote(O),x.push(O);continue}if(O.indexOf(m)!==-1){for(var P=0,j="",R=0,$=O;R<$.length;R++){var V=$[R];V===m&&j!==this.escape?(P++,j=""):j=V}if(P%2==1){p&&(O=a.trimRight(O)),x.push(m+O);continue}w=!0,_+=O;continue}w=!0,_+=O;continue}p&&(O=a.trimRight(O)),x.push(O)}}return{cells:x,closed:!w}},f.prototype.getDelimiter=function(c){var p;if(this.conv.parseParam.delimiter==="auto")p=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;p=this.conv.parseParam.delimiter}var m=0,v=",";return p.forEach(function(x){var w=c.split(x).length;w>m&&(v=x,m=w)}),v},f.prototype.isQuoteOpen=function(c){var p=this.quote,m=this.escape;return c[0]===p&&(c[1]!==p||c[1]===m&&(c[2]===p||c.length===2))},f.prototype.isQuoteClose=function(c){var p=this.quote,m=this.escape;this.conv.parseParam.trim&&(c=a.trimRight(c));for(var v=0,x=c.length-1;c[x]===p||c[x]===m;)x--,v++;return v%2!=0},f.prototype.escapeQuote=function(c){var p="es|"+this.quote+"|"+this.escape;this.cachedRegExp[p]===void 0&&(this.cachedRegExp[p]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var m=this.cachedRegExp[p];return c.replace(m,this.quote)},f.prototype.parseMultiLines=function(c){for(var p=[],m="";c.length;){var v=m+c.shift(),x=this.parse(v);x.cells.length===0&&this.conv.parseParam.ignoreEmpty||(x.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?p.push(a.filterArray(x.cells,this.conv.parseRuntime.selectedColumns)):p.push(x.cells),m=""):m=v+(i.default(v,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:p,partial:m}},f}();t.RowSplit=u},function(e,t,n){var r=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),a=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function u(C,O,T){if(O.parseParam.checkColumn&&O.parseRuntime.headers&&C.length!==O.parseRuntime.headers.length)throw i.default.column_mismatched(O.parseRuntime.parsedLineNumber+T);return function(P,j,R){for(var $=!1,V={},X=0,Z=P.length;X<Z;X++){var Y=P[X];if(!R.parseParam.ignoreEmpty||Y!==""){$=!0;var te=j[X];te&&te!==""||(te=j[X]="field"+(X+1));var ae=c(te,X,R);if(ae){var Q=ae(Y,te,V,P,X);Q!==void 0&&p(V,te,Q,R,X)}else R.parseParam.checkType&&(Y=x(Y,te,X,R)(Y)),Y!==void 0&&p(V,te,Y,R,X)}}return $?V:null}(C,O.parseRuntime.headers||[],O)||null}t.default=function(C,O){for(var T=[],P=0,j=C.length;P<j;P++){var R=u(C[P],O,P);R&&T.push(R)}return T};var f={string:_,number:w,omit:function(){}};function c(C,O,T){if(T.parseRuntime.columnConv[O]!==void 0)return T.parseRuntime.columnConv[O];var P=T.parseParam.colParser[C];if(P===void 0)return T.parseRuntime.columnConv[O]=null;if(typeof P=="object"&&(P=P.cellParser||"string"),typeof P=="string"){P=P.trim().toLowerCase();var j=f[P];return T.parseRuntime.columnConv[O]=j||null}return T.parseRuntime.columnConv[O]=typeof P=="function"?P:null}function p(C,O,T,P,j){if(!P.parseRuntime.columnValueSetter[j])if(P.parseParam.flatKeys)P.parseRuntime.columnValueSetter[j]=m;else if(O.indexOf(".")>-1){for(var R=O.split("."),$=!0;R.length>0;)if(R.shift().length===0){$=!1;break}!$||P.parseParam.colParser[O]&&P.parseParam.colParser[O].flat?P.parseRuntime.columnValueSetter[j]=m:P.parseRuntime.columnValueSetter[j]=v}else P.parseRuntime.columnValueSetter[j]=m;P.parseParam.nullObject===!0&&T==="null"&&(T=null),P.parseRuntime.columnValueSetter[j](C,O,T)}function m(C,O,T){C[O]=T}function v(C,O,T){a.default(C,O,T)}function x(C,O,T,P){return P.parseRuntime.headerType[T]?P.parseRuntime.headerType[T]:O.indexOf("number#!")>-1?P.parseRuntime.headerType[T]=w:O.indexOf("string#!")>-1?P.parseRuntime.headerType[T]=_:P.parseParam.checkType?P.parseRuntime.headerType[T]=S:P.parseRuntime.headerType[T]=_}function w(C){var O=parseFloat(C);return isNaN(O)?C:O}function _(C){return C.toString()}function S(C){var O=C.trim();return O===""?_(C):s.test(O)?w(C):O.length===5&&O.toLowerCase()==="false"||O.length===4&&O.toLowerCase()==="true"?function(T){var P=T.trim();return P.length!==5||P.toLowerCase()!=="false"}(C):O[0]==="{"&&O[O.length-1]==="}"||O[0]==="["&&O[O.length-1]==="]"?function(T){try{return JSON.parse(T)}catch{return T}}(C):_(C)}},function(e,t,n){var r=n(61);e.exports=function(i,a,s){return i==null?i:r(i,a,s)}},function(e,t,n){var r=n(62),i=n(74),a=n(103),s=n(20),u=n(104);e.exports=function(f,c,p,m){if(!s(f))return f;for(var v=-1,x=(c=i(c,f)).length,w=x-1,_=f;_!=null&&++v<x;){var S=u(c[v]),C=p;if(v!=w){var O=_[S];(C=m?m(O,S,_):void 0)===void 0&&(C=s(O)?O:a(c[v+1])?[]:{})}r(_,S,C),_=_[S]}return f}},function(e,t,n){var r=n(63),i=n(31),a=Object.prototype.hasOwnProperty;e.exports=function(s,u,f){var c=s[u];a.call(s,u)&&i(c,f)&&(f!==void 0||u in s)||r(s,u,f)}},function(e,t,n){var r=n(64);e.exports=function(i,a,s){a=="__proto__"&&r?r(i,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[a]=s}},function(e,t,n){var r=n(17),i=function(){try{var a=r(Object,"defineProperty");return a({},"",{}),a}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),a=n(20),s=n(72),u=/^\[object .+?Constructor\]$/,f=Function.prototype,c=Object.prototype,p=f.toString,m=c.hasOwnProperty,v=RegExp("^"+p.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(x){return!(!a(x)||i(x))&&(r(x)?v:u).test(s(x))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(a){if(!i(a))return!1;var s=r(a);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,a=i.hasOwnProperty,s=i.toString,u=r?r.toStringTag:void 0;e.exports=function(f){var c=a.call(f,u),p=f[u];try{f[u]=void 0;var m=!0}catch{}var v=s.call(f);return m&&(c?f[u]=p:delete f[u]),v}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();e.exports=function(a){return!!i&&i in a}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),a=n(77),s=n(100);e.exports=function(u,f){return r(u)?u:i(u,f)?[u]:a(s(u))}},function(e,t,n){var r=n(21),i=n(22),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(u,f){if(r(u))return!1;var c=typeof u;return!(c!="number"&&c!="symbol"&&c!="boolean"&&u!=null&&!i(u))||s.test(u)||!a.test(u)||f!=null&&u in Object(f)}},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,a=n(78)(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(r,function(f,c,p,m){u.push(p?m.replace(i,"$1"):c||f)}),u});e.exports=a},function(e,t,n){var r=n(79);e.exports=function(i){var a=r(i,function(u){return s.size===500&&s.clear(),u}),s=a.cache;return a}},function(e,t,n){var r=n(80),i="Expected a function";function a(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new TypeError(i);var f=function(){var c=arguments,p=u?u.apply(this,c):c[0],m=f.cache;if(m.has(p))return m.get(p);var v=s.apply(this,c);return f.cache=m.set(p,v)||m,v};return f.cache=new(a.Cache||r),f}a.Cache=r,e.exports=a},function(e,t,n){var r=n(81),i=n(95),a=n(97),s=n(98),u=n(99);function f(c){var p=-1,m=c==null?0:c.length;for(this.clear();++p<m;){var v=c[p];this.set(v[0],v[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=s,f.prototype.set=u,e.exports=f},function(e,t,n){var r=n(82),i=n(88),a=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),a=n(85),s=n(86),u=n(87);function f(c){var p=-1,m=c==null?0:c.length;for(this.clear();++p<m;){var v=c[p];this.set(v[0],v[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=s,f.prototype.set=u,e.exports=f},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(a){var s=this.__data__;if(r){var u=s[a];return u==="__lodash_hash_undefined__"?void 0:u}return i.call(s,a)?s[a]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(a){var s=this.__data__;return r?s[a]!==void 0:i.call(s,a)}},function(e,t,n){var r=n(8);e.exports=function(i,a){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&a===void 0?"__lodash_hash_undefined__":a,this}},function(e,t,n){var r=n(89),i=n(90),a=n(91),s=n(92),u=n(93);function f(c){var p=-1,m=c==null?0:c.length;for(this.clear();++p<m;){var v=c[p];this.set(v[0],v[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=s,f.prototype.set=u,e.exports=f},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(a){var s=this.__data__,u=r(s,a);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 a=this.__data__,s=r(a,i);return s<0?void 0:a[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,a){var s=this.__data__,u=r(s,i);return u<0?(++this.size,s.push([i,a])):s[u][1]=a,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 a=r(this,i).delete(i);return this.size-=a?1:0,a}},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,a){var s=r(this,i),u=s.size;return s.set(i,a),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),a=n(21),s=n(22),u=r?r.prototype:void 0,f=u?u.toString:void 0;e.exports=function c(p){if(typeof p=="string")return p;if(a(p))return i(p,c)+"";if(s(p))return f?f.call(p):"";var m=p+"";return m=="0"&&1/p==-1/0?"-0":m}},function(e,t){e.exports=function(n,r){for(var i=-1,a=n==null?0:n.length,s=Array(a);++i<a;)s[i]=r(n[i],i,n);return s}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var a=typeof r;return!!(i=i??9007199254740991)&&(a=="number"||a!="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 a=i+"";return a=="0"&&1/i==-1/0?"-0":a}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),a=n(106),s=function(){function f(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(f.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),f.prototype.processResult=function(c){var p=this,m=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&m===0&&u(this.converter,"["+a.EOL),new i.default(function(v,x){p.needEmitLine?function w(_,S,C,O,T){if(C>=_.length)T();else if(S.parseRuntime.subscribe&&S.parseRuntime.subscribe.onNext){var P=S.parseRuntime.subscribe.onNext,j=_[C],R=P(j,S.parseRuntime.parsedLineNumber+C);if(C++,R&&R.then)R.then(function(){(function(V,X,Z,Y,te,ae,Q){te&&u(Z,Q),w(V,Z,Y,te,ae)})(_,0,S,C,O,T,j)},T);else{for(O&&u(S,j);C<_.length;){var $=_[C];P($,S.parseRuntime.parsedLineNumber+C),C++,O&&u(S,$)}T()}}else{if(O)for(;C<_.length;)$=_[C++],u(S,$);T()}}(c,p.converter,0,p.needPushDownstream,function(w){w?x(w):(p.appendFinalResult(c),v())}):(p.appendFinalResult(c),v())})},f.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},f.prototype.processError=function(c){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(c),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(c)},f.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,"]"+a.EOL)},f}();function u(f,c){if(typeof c!="object"||f.options.objectMode)f.push(c);else{var p=JSON.stringify(c);f.push(p+(f.parseParam.downstreamFormat==="array"?","+a.EOL:a.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"/"}}])),MC}var JAe=QAe();const eOe=qt(JAe),tOe=e=>new Promise(t=>{eOe().fromString(e).then(t)}),nOe=new pU,rOe=e=>nOe.parse(e),iOe="shlink",CI=e=>`${iOe}.${e}`;class aOe{constructor(t){Hc(this,"get",t=>{const n=this.localStorage.getItem(CI(t));return n?JSON.parse(n):void 0});Hc(this,"set",(t,n)=>this.localStorage.setItem(CI(t),JSON.stringify(n)));this.localStorage=t}}class oOe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const sOe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",aOe,"localStorage"),e.service("TagColorsStorage",oOe,"Storage"),e.constant("csvToJson",tOe),e.constant("jsonToCsv",rOe),e.serviceFactory("useTimeoutToggle",()=>Z0)},nc=new s7,{container:N3}=nc,lOe=(e,t)=>(...n)=>e[t](...n),uOe=(e,t)=>({...e,[t]:lOe(N3,t)}),cOe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Kb=(e,t=[])=>LI(e?cOe(e):null,t.reduce(uOe,{}));mte(nc,Kb);iAe(nc,Kb);OY(nc);VAe(nc,Kb);sOe(nc);XAe(nc,Kb);var NC={},Fv={exports:{}},AI;function fOe(){return AI||(AI=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 c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return r.apply(void 0,c)}t.main=n,n.clone=a,n.isPlainObject=s,n.recursive=i;function r(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return f(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return f(c[0]===!0,!0,c)}t.recursive=i;function a(c){if(Array.isArray(c)){for(var p=[],m=0;m<c.length;++m)p.push(a(c[m]));return p}else if(s(c)){var p={};for(var m in c)p[m]=a(c[m]);return p}else return c}t.clone=a;function s(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=s;function u(c,p){if(!s(c))return p;for(var m in p)m==="__proto__"||m==="constructor"||m==="prototype"||(c[m]=s(c[m])&&s(p[m])?u(c[m],p[m]):p[m]);return c}function f(c,p,m){var v;(c||!s(v=m.shift()))&&(v={});for(var x=0;x<m.length;++x){var w=m[x];if(s(w)){for(var _ in w)if(!(_==="__proto__"||_==="constructor"||_==="prototype")){var S=c?a(w[_]):w[_];v[_]=p?u(v[_],S):S}}}return v}}(Fv,Fv.exports)),Fv.exports}var OI;function dOe(){return OI||(OI=1,function(e){var t=n(fOe());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=ae,e.combineLoads=te,e.load=Y,e.save=Z;function n(F){return F&&F.__esModule?F:{default:F}}function r(F,M){return f(F)||u(F,M)||a(F,M)||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 a(F,M){if(F){if(typeof F=="string")return s(F,M);var k=Object.prototype.toString.call(F).slice(8,-1);return k==="Object"&&F.constructor&&(k=F.constructor.name),k==="Map"||k==="Set"?Array.from(F):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?s(F,M):void 0}}function s(F,M){(M==null||M>F.length)&&(M=F.length);for(var k=0,J=Array(M);k<M;k++)J[k]=F[k];return J}function u(F,M){var k=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(k!=null){var J,W,ie=[],fe=!0,ce=!1;try{for(k=k.call(F);!(fe=(J=k.next()).done)&&(ie.push(J.value),!(M&&ie.length===M));fe=!0);}catch(ye){ce=!0,W=ye}finally{try{fe||k.return==null||k.return()}finally{if(ce)throw W}}return ie}}function f(F){if(Array.isArray(F))return F}function c(F){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(F)}function p(F,M,k){return M in F?Object.defineProperty(F,M,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[M]=k,F}var m="[Redux-LocalStorage-Simple]",v="redux_localstorage_simple",x="_",w=[],_=[],S=0,C=!1,O=!1,T=new Map;function P(F){console.warn(m,F)}function j(){}var R=function(F){return F?j:P};function $(F,M){return M===void 0?null:F.length===1?M[F[0]]:$(F.slice(1),M[F[0]])}function V(F){function M(J,W){return J.length===0?W:M(J.slice(1),p({},J[0],W))}var k=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return M(F.split(".").reverse(),k)}function X(F){this.warnFn=F||P}Object.defineProperty(X.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),X.prototype.key=function(F){try{return localStorage.key(F)}catch(M){this.warnFn(M)}return null},X.prototype.setItem=function(F,M){try{localStorage.setItem(F,JSON.stringify(M))}catch(k){this.warnFn(k)}},X.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(M){this.warnFn(M)}return null},X.prototype.removeItem=function(F){try{localStorage.removeItem(F)}catch(M){this.warnFn(M)}};function Z(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.states,k=M===void 0?w:M,J=F.ignoreStates,W=J===void 0?_:J,ie=F.namespace,fe=ie===void 0?v:ie,ce=F.namespaceSeparator,ye=ce===void 0?x:ce,z=F.debounce,q=z===void 0?S:z,ee=F.disableWarnings,ue=ee===void 0?O:ee;return function(K){return function(se){return function(de){function ve(Ue,$e){return 1<Ue.split(".").length?$(Ue.split("."),$e):$([Ue],$e)}function he(){k.length===0?He.setItem(fe,xe):k.forEach(function(Ue){var $e=fe+ye+Ue,_e=ve(Ue,xe);_e?He.setItem($e,_e):He.removeItem($e)})}var xe,Oe=R(ue),Le=se(de);Q(k)||(console.error(m,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),k=w),Q(W)||(console.error(m,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),W=_),0<W.length&&(W=W.filter(function(Ue){return ne(Ue)?Ue:void console.error(m,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),ne(fe)||(console.error(m,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),fe=v),ne(ye)||(console.error(m,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ye=x),H(q)||(console.error(m,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),q=S),xe=0<W.length?U(W,K.getState()):K.getState();var He=new X(Oe);return q?(T.get(k+fe)&&clearTimeout(T.get(k+fe)),T.set(k+fe,setTimeout(function(){he()},q))):he(),Le}}}}function Y(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.states,k=M===void 0?w:M,J=F.immutablejs,W=J===void 0?C:J,ie=F.namespace,fe=ie===void 0?v:ie,ce=F.namespaceSeparator,ye=ce===void 0?x:ce,z=F.preloadedState,q=z===void 0?{}:z,ee=F.disableWarnings,ue=ee===void 0?O:ee,K=R(ue);Q(k)||(console.error(m,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),k=w),ne(fe)||(console.error(m,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),fe=v),ne(ye)||(console.error(m,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ye=x),W===!0&&K("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 se=new X(K),de=q;if(k.length===0){var ve=se.getItem(fe);ve&&(de=ve)}else k.forEach(function(he){var xe=fe+ye+he,Oe=se.getItem(xe);Oe?de=t.default.recursive(de,V(he,Oe)):K("Invalid load '"+xe+"' 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 de}function te(){for(var F={},M=arguments.length,k=Array(M),J=0;J<M;J++)k[J]=arguments[J];return k.forEach(function(W){for(var ie in B(W)||(console.error(m,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),W={}),W)F[ie]=W[ie]}),F}function ae(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.namespace,k=M===void 0?v:M,J=F.disableWarnings,W=J===void 0?O:J,ie=R(W);ne(k)||(console.error(m,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),k=v);for(var fe,ce=new X(ie),ye=ce.length,z=0;z<ye;z++)fe=ce.key(z),fe&&fe.slice(0,k.length)===k&&ce.removeItem(fe)}function Q(F){return Object.prototype.toString.call(F)==="[object Array]"}function ne(F){return typeof F=="string"}function H(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function B(F){return F!==null&&c(F)==="object"}function U(F,M){var k=Object.entries(M).reduce(function(J,W){var ie=r(W,2),fe=ie[0];return ie[1],F.indexOf(fe)===-1&&(J[fe]=M[fe]),J},{});return k}}(NC)),NC}var tV=dOe();const hOe=e=>FE({appUpdated:pte,servers:EAe,selectedServer:e.selectedServerReducer,settings:KAe}),pOe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),nV={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},mOe=pOe(tV.load(nV)),gOe=e=>F9({devTools:!1,reducer:hOe(e),preloadedState:mOe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(tV.save(nV))}),vOe=!!(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 yOe(e){if("serviceWorker"in navigator){if(new URL(ty.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${ty.homepage}/service-worker.js`;vOe?(bOe(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")})):rV(n,e)})}}function rV(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 bOe(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()})}):rV(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const iV=gOe(N3),{App:_Oe,ScrollToTop:xOe,ErrorHandler:wOe,appUpdateAvailable:SOe}=N3;PH.createRoot(document.getElementById("root")).render(y.jsx(DI,{store:iV,children:y.jsx(YI,{basename:ty.homepage,children:y.jsx(wOe,{children:y.jsx(xOe,{children:y.jsx(_Oe,{})})})})}));yOe({onUpdate(){iV.dispatch(SOe())}});
|