mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 02:18:20 +03:00
1009 lines
1.4 MiB
1009 lines
1.4 MiB
var q$=Object.defineProperty;var G$=(e,t,n)=>t in e?q$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qe=(e,t,n)=>(G$(e,typeof t!="symbol"?t+"":t,n),n);function Z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Of={},X$={get exports(){return Of},set exports(e){Of=e}},Gv={},H={},Q$={get exports(){return H},set exports(e){H=e}},at={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var wd=Symbol.for("react.element"),J$=Symbol.for("react.portal"),e7=Symbol.for("react.fragment"),t7=Symbol.for("react.strict_mode"),n7=Symbol.for("react.profiler"),r7=Symbol.for("react.provider"),i7=Symbol.for("react.context"),o7=Symbol.for("react.forward_ref"),s7=Symbol.for("react.suspense"),a7=Symbol.for("react.memo"),l7=Symbol.for("react.lazy"),rO=Symbol.iterator;function c7(e){return e===null||typeof e!="object"?null:(e=rO&&e[rO]||e["@@iterator"],typeof e=="function"?e:null)}var vL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yL=Object.assign,_L={};function jc(e,t,n){this.props=e,this.context=t,this.refs=_L,this.updater=n||vL}jc.prototype.isReactComponent={};jc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bL(){}bL.prototype=jc.prototype;function _x(e,t,n){this.props=e,this.context=t,this.refs=_L,this.updater=n||vL}var bx=_x.prototype=new bL;bx.constructor=_x;yL(bx,jc.prototype);bx.isPureReactComponent=!0;var iO=Array.isArray,wL=Object.prototype.hasOwnProperty,wx={current:null},xL={key:!0,ref:!0,__self:!0,__source:!0};function SL(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)wL.call(t,r)&&!xL.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:wd,type:e,key:o,ref:s,props:i,_owner:wx.current}}function u7(e,t){return{$$typeof:wd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xx(e){return typeof e=="object"&&e!==null&&e.$$typeof===wd}function f7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oO=/\/+/g;function t0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?f7(""+e.key):t.toString(36)}function Ip(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case wd:case J$:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+t0(s,0):r,iO(i)?(n="",e!=null&&(n=e.replace(oO,"$&/")+"/"),Ip(i,t,n,"",function(c){return c})):i!=null&&(xx(i)&&(i=u7(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(oO,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",iO(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+t0(o,a);s+=Ip(o,t,n,l,i)}else if(l=c7(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+t0(o,a++),s+=Ip(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Lh(e,t,n){if(e==null)return e;var r=[],i=0;return Ip(e,r,"","",function(o){return t.call(n,o,i++)}),r}function d7(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var fr={current:null},Fp={transition:null},h7={ReactCurrentDispatcher:fr,ReactCurrentBatchConfig:Fp,ReactCurrentOwner:wx};at.Children={map:Lh,forEach:function(e,t,n){Lh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lh(e,function(){t++}),t},toArray:function(e){return Lh(e,function(t){return t})||[]},only:function(e){if(!xx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};at.Component=jc;at.Fragment=e7;at.Profiler=n7;at.PureComponent=_x;at.StrictMode=t7;at.Suspense=s7;at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h7;at.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=yL({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=wx.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)wL.call(t,l)&&!xL.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:wd,type:e.type,key:i,ref:o,props:r,_owner:s}};at.createContext=function(e){return e={$$typeof:i7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r7,_context:e},e.Consumer=e};at.createElement=SL;at.createFactory=function(e){var t=SL.bind(null,e);return t.type=e,t};at.createRef=function(){return{current:null}};at.forwardRef=function(e){return{$$typeof:o7,render:e}};at.isValidElement=xx;at.lazy=function(e){return{$$typeof:l7,_payload:{_status:-1,_result:e},_init:d7}};at.memo=function(e,t){return{$$typeof:a7,type:e,compare:t===void 0?null:t}};at.startTransition=function(e){var t=Fp.transition;Fp.transition={};try{e()}finally{Fp.transition=t}};at.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};at.useCallback=function(e,t){return fr.current.useCallback(e,t)};at.useContext=function(e){return fr.current.useContext(e)};at.useDebugValue=function(){};at.useDeferredValue=function(e){return fr.current.useDeferredValue(e)};at.useEffect=function(e,t){return fr.current.useEffect(e,t)};at.useId=function(){return fr.current.useId()};at.useImperativeHandle=function(e,t,n){return fr.current.useImperativeHandle(e,t,n)};at.useInsertionEffect=function(e,t){return fr.current.useInsertionEffect(e,t)};at.useLayoutEffect=function(e,t){return fr.current.useLayoutEffect(e,t)};at.useMemo=function(e,t){return fr.current.useMemo(e,t)};at.useReducer=function(e,t,n){return fr.current.useReducer(e,t,n)};at.useRef=function(e){return fr.current.useRef(e)};at.useState=function(e){return fr.current.useState(e)};at.useSyncExternalStore=function(e,t,n){return fr.current.useSyncExternalStore(e,t,n)};at.useTransition=function(){return fr.current.useTransition()};at.version="18.2.0";(function(e){e.exports=at})(Q$);const z=gL(H),Ub=Z$({__proto__:null,default:z},[H]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var p7=H,m7=Symbol.for("react.element"),g7=Symbol.for("react.fragment"),v7=Object.prototype.hasOwnProperty,y7=p7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_7={key:!0,ref:!0,__self:!0,__source:!0};function CL(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)v7.call(t,r)&&!_7.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:m7,type:e,key:o,ref:s,props:i,_owner:y7.current}}Gv.Fragment=g7;Gv.jsx=CL;Gv.jsxs=CL;(function(e){e.exports=Gv})(X$);const We=Of.Fragment,C=Of.jsx,U=Of.jsxs;var Ba={},b7={get exports(){return Ba},set exports(e){Ba=e}},Dr={},Vb={},w7={get exports(){return Vb},set exports(e){Vb=e}},EL={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(K,$){var D=K.length;K.push($);e:for(;0<D;){var B=D-1>>>1,ne=K[B];if(0<i(ne,$))K[B]=$,K[D]=ne,D=B;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var $=K[0],D=K.pop();if(D!==$){K[0]=D;e:for(var B=0,ne=K.length,W=ne>>>1;B<W;){var G=2*(B+1)-1,re=K[G],le=G+1,me=K[le];if(0>i(re,D))le<ne&&0>i(me,re)?(K[B]=me,K[le]=D,B=le):(K[B]=re,K[G]=D,B=G);else if(le<ne&&0>i(me,D))K[B]=me,K[le]=D,B=le;else break e}}return $}function i(K,$){var D=K.sortIndex-$.sortIndex;return D!==0?D:K.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,p=3,m=!1,g=!1,_=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(K){for(var $=n(c);$!==null;){if($.callback===null)r(c);else if($.startTime<=K)r(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function E(K){if(_=!1,w(K),!g)if(n(l)!==null)g=!0,oe(P);else{var $=n(c);$!==null&&ce(E,$.startTime-K)}}function P(K,$){g=!1,_&&(_=!1,v(A),A=-1),m=!0;var D=p;try{for(w($),h=n(l);h!==null&&(!(h.expirationTime>$)||K&&!Y());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var ne=B(h.expirationTime<=$);$=e.unstable_now(),typeof ne=="function"?h.callback=ne:h===n(l)&&r(l),w($)}else r(l);h=n(l)}if(h!==null)var W=!0;else{var G=n(c);G!==null&&ce(E,G.startTime-$),W=!1}return W}finally{h=null,p=D,m=!1}}var k=!1,N=null,A=-1,V=5,I=-1;function Y(){return!(e.unstable_now()-I<V)}function q(){if(N!==null){var K=e.unstable_now();I=K;var $=!0;try{$=N(!0,K)}finally{$?X():(k=!1,N=null)}}else k=!1}var X;if(typeof b=="function")X=function(){b(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,J=Z.port2;Z.port1.onmessage=q,X=function(){J.postMessage(null)}}else X=function(){x(q,0)};function oe(K){N=K,k||(k=!0,X())}function ce(K,$){A=x(function(){K(e.unstable_now())},$)}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(K){K.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,oe(P))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(K){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var D=p;p=$;try{return K()}finally{p=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,$){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var D=p;p=K;try{return $()}finally{p=D}},e.unstable_scheduleCallback=function(K,$,D){var B=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?B+D:B):D=B,K){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=D+ne,K={id:f++,callback:$,priorityLevel:K,startTime:D,expirationTime:ne,sortIndex:-1},D>B?(K.sortIndex=D,t(c,K),n(l)===null&&K===n(c)&&(_?(v(A),A=-1):_=!0,ce(E,D-B))):(K.sortIndex=ne,t(l,K),g||m||(g=!0,oe(P))),K},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(K){var $=p;return function(){var D=p;p=$;try{return K.apply(this,arguments)}finally{p=D}}}})(EL);(function(e){e.exports=EL})(w7);/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var TL=H,Nr=Vb;function Ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var OL=new Set,Pf={};function il(e,t){mc(e,t),mc(e+"Capture",t)}function mc(e,t){for(Pf[e]=t,e=0;e<t.length;e++)OL.add(t[e])}var Co=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hb=Object.prototype.hasOwnProperty,x7=/^[: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]*$/,sO={},aO={};function S7(e){return Hb.call(aO,e)?!0:Hb.call(sO,e)?!1:x7.test(e)?aO[e]=!0:(sO[e]=!0,!1)}function C7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E7(e,t,n,r){if(t===null||typeof t>"u"||C7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dr(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vn[e]=new dr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vn[t]=new dr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vn[e]=new dr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vn[e]=new dr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Vn[e]=new dr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vn[e]=new dr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vn[e]=new dr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vn[e]=new dr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vn[e]=new dr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sx=/[\-:]([a-z])/g;function Cx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sx,Cx);Vn[t]=new dr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Sx,Cx);Vn[t]=new dr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sx,Cx);Vn[t]=new dr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vn[e]=new dr(e,1,!1,e.toLowerCase(),null,!1,!1)});Vn.xlinkHref=new dr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vn[e]=new dr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ex(e,t,n,r){var i=Vn.hasOwnProperty(t)?Vn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E7(t,n,i,r)&&(n=null),r||i===null?S7(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ao=TL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dh=Symbol.for("react.element"),Fl=Symbol.for("react.portal"),$l=Symbol.for("react.fragment"),Tx=Symbol.for("react.strict_mode"),Wb=Symbol.for("react.profiler"),PL=Symbol.for("react.provider"),kL=Symbol.for("react.context"),Ox=Symbol.for("react.forward_ref"),Yb=Symbol.for("react.suspense"),qb=Symbol.for("react.suspense_list"),Px=Symbol.for("react.memo"),Xo=Symbol.for("react.lazy"),ML=Symbol.for("react.offscreen"),lO=Symbol.iterator;function gu(e){return e===null||typeof e!="object"?null:(e=lO&&e[lO]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Object.assign,n0;function Fu(e){if(n0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);n0=t&&t[1]||""}return`
|
||
`+n0+e}var r0=!1;function i0(e,t){if(!e||r0)return"";r0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
||
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{r0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fu(e):""}function T7(e){switch(e.tag){case 5:return Fu(e.type);case 16:return Fu("Lazy");case 13:return Fu("Suspense");case 19:return Fu("SuspenseList");case 0:case 2:case 15:return e=i0(e.type,!1),e;case 11:return e=i0(e.type.render,!1),e;case 1:return e=i0(e.type,!0),e;default:return""}}function Gb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $l:return"Fragment";case Fl:return"Portal";case Wb:return"Profiler";case Tx:return"StrictMode";case Yb:return"Suspense";case qb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kL:return(e.displayName||"Context")+".Consumer";case PL:return(e._context.displayName||"Context")+".Provider";case Ox:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Px:return t=e.displayName||null,t!==null?t:Gb(e.type)||"Memo";case Xo:t=e._payload,e=e._init;try{return Gb(e(t))}catch{}}return null}function O7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gb(t);case 8:return t===Tx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function RL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P7(e){var t=RL(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ah(e){e._valueTracker||(e._valueTracker=P7(e))}function NL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=RL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ym(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zb(e,t){var n=t.checked;return qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cO(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ks(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&Ex(e,"checked",t,!1)}function Kb(e,t){LL(e,t);var n=ks(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xb(e,t.type,ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uO(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xb(e,t,n){(t!=="number"||Ym(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $u=Array.isArray;function Jl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ks(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fO(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ee(92));if($u(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ks(n)}}function DL(e,t){var n=ks(t.value),r=ks(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dO(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function AL(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?AL(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ih,IL=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ih=Ih||document.createElement("div"),Ih.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ih.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k7=["Webkit","ms","Moz","O"];Object.keys(Xu).forEach(function(e){k7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xu[t]=Xu[e]})});function FL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xu.hasOwnProperty(e)&&Xu[e]?(""+t).trim():t+"px"}function $L(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=FL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var M7=qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function e1(e,t){if(t){if(M7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function t1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 n1=null;function kx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var r1=null,ec=null,tc=null;function hO(e){if(e=Cd(e)){if(typeof r1!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=Jv(t),r1(e.stateNode,e.type,t))}}function jL(e){ec?tc?tc.push(e):tc=[e]:ec=e}function BL(){if(ec){var e=ec,t=tc;if(tc=ec=null,hO(e),t)for(e=0;e<t.length;e++)hO(t[e])}}function zL(e,t){return e(t)}function UL(){}var o0=!1;function VL(e,t,n){if(o0)return e(t,n);o0=!0;try{return zL(e,t,n)}finally{o0=!1,(ec!==null||tc!==null)&&(UL(),BL())}}function Mf(e,t){var n=e.stateNode;if(n===null)return null;var r=Jv(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ee(231,t,typeof n));return n}var i1=!1;if(Co)try{var vu={};Object.defineProperty(vu,"passive",{get:function(){i1=!0}}),window.addEventListener("test",vu,vu),window.removeEventListener("test",vu,vu)}catch{i1=!1}function R7(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Qu=!1,qm=null,Gm=!1,o1=null,N7={onError:function(e){Qu=!0,qm=e}};function L7(e,t,n,r,i,o,s,a,l){Qu=!1,qm=null,R7.apply(N7,arguments)}function D7(e,t,n,r,i,o,s,a,l){if(L7.apply(this,arguments),Qu){if(Qu){var c=qm;Qu=!1,qm=null}else throw Error(Ee(198));Gm||(Gm=!0,o1=c)}}function ol(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function HL(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pO(e){if(ol(e)!==e)throw Error(Ee(188))}function A7(e){var t=e.alternate;if(!t){if(t=ol(e),t===null)throw Error(Ee(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return pO(i),e;if(o===r)return pO(i),t;o=o.sibling}throw Error(Ee(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(Ee(189))}}if(n.alternate!==r)throw Error(Ee(190))}if(n.tag!==3)throw Error(Ee(188));return n.stateNode.current===n?e:t}function WL(e){return e=A7(e),e!==null?YL(e):null}function YL(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=YL(e);if(t!==null)return t;e=e.sibling}return null}var qL=Nr.unstable_scheduleCallback,mO=Nr.unstable_cancelCallback,I7=Nr.unstable_shouldYield,F7=Nr.unstable_requestPaint,rn=Nr.unstable_now,$7=Nr.unstable_getCurrentPriorityLevel,Mx=Nr.unstable_ImmediatePriority,GL=Nr.unstable_UserBlockingPriority,Zm=Nr.unstable_NormalPriority,j7=Nr.unstable_LowPriority,ZL=Nr.unstable_IdlePriority,Zv=null,Gi=null;function B7(e){if(Gi&&typeof Gi.onCommitFiberRoot=="function")try{Gi.onCommitFiberRoot(Zv,e,void 0,(e.current.flags&128)===128)}catch{}}var xi=Math.clz32?Math.clz32:V7,z7=Math.log,U7=Math.LN2;function V7(e){return e>>>=0,e===0?32:31-(z7(e)/U7|0)|0}var Fh=64,$h=4194304;function ju(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Km(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ju(a):(o&=s,o!==0&&(r=ju(o)))}else s=n&~i,s!==0?r=ju(s):o!==0&&(r=ju(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-xi(t),i=1<<n,r|=e[n],t&=~i;return r}function H7(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function W7(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-xi(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=H7(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function s1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function KL(){var e=Fh;return Fh<<=1,!(Fh&4194240)&&(Fh=64),e}function s0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xi(t),e[t]=n}function Y7(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-xi(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Rx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var xt=0;function XL(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var QL,Nx,JL,eD,tD,a1=!1,jh=[],ps=null,ms=null,gs=null,Rf=new Map,Nf=new Map,ns=[],q7="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gO(e,t){switch(e){case"focusin":case"focusout":ps=null;break;case"dragenter":case"dragleave":ms=null;break;case"mouseover":case"mouseout":gs=null;break;case"pointerover":case"pointerout":Rf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nf.delete(t.pointerId)}}function yu(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Cd(t),t!==null&&Nx(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function G7(e,t,n,r,i){switch(t){case"focusin":return ps=yu(ps,e,t,n,r,i),!0;case"dragenter":return ms=yu(ms,e,t,n,r,i),!0;case"mouseover":return gs=yu(gs,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Rf.set(o,yu(Rf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Nf.set(o,yu(Nf.get(o)||null,e,t,n,r,i)),!0}return!1}function nD(e){var t=Ta(e.target);if(t!==null){var n=ol(t);if(n!==null){if(t=n.tag,t===13){if(t=HL(n),t!==null){e.blockedOn=t,tD(e.priority,function(){JL(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $p(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=l1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);n1=r,n.target.dispatchEvent(r),n1=null}else return t=Cd(n),t!==null&&Nx(t),e.blockedOn=n,!1;t.shift()}return!0}function vO(e,t,n){$p(e)&&n.delete(t)}function Z7(){a1=!1,ps!==null&&$p(ps)&&(ps=null),ms!==null&&$p(ms)&&(ms=null),gs!==null&&$p(gs)&&(gs=null),Rf.forEach(vO),Nf.forEach(vO)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,a1||(a1=!0,Nr.unstable_scheduleCallback(Nr.unstable_NormalPriority,Z7)))}function Lf(e){function t(i){return _u(i,e)}if(0<jh.length){_u(jh[0],e);for(var n=1;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ps!==null&&_u(ps,e),ms!==null&&_u(ms,e),gs!==null&&_u(gs,e),Rf.forEach(t),Nf.forEach(t),n=0;n<ns.length;n++)r=ns[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ns.length&&(n=ns[0],n.blockedOn===null);)nD(n),n.blockedOn===null&&ns.shift()}var nc=Ao.ReactCurrentBatchConfig,Xm=!0;function K7(e,t,n,r){var i=xt,o=nc.transition;nc.transition=null;try{xt=1,Lx(e,t,n,r)}finally{xt=i,nc.transition=o}}function X7(e,t,n,r){var i=xt,o=nc.transition;nc.transition=null;try{xt=4,Lx(e,t,n,r)}finally{xt=i,nc.transition=o}}function Lx(e,t,n,r){if(Xm){var i=l1(e,t,n,r);if(i===null)g0(e,t,r,Qm,n),gO(e,r);else if(G7(i,e,t,n,r))r.stopPropagation();else if(gO(e,r),t&4&&-1<q7.indexOf(e)){for(;i!==null;){var o=Cd(i);if(o!==null&&QL(o),o=l1(e,t,n,r),o===null&&g0(e,t,r,Qm,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else g0(e,t,r,null,n)}}var Qm=null;function l1(e,t,n,r){if(Qm=null,e=kx(r),e=Ta(e),e!==null)if(t=ol(e),t===null)e=null;else if(n=t.tag,n===13){if(e=HL(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qm=e,null}function rD(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($7()){case Mx:return 1;case GL:return 4;case Zm:case j7:return 16;case ZL:return 536870912;default:return 16}default:return 16}}var os=null,Dx=null,jp=null;function iD(){if(jp)return jp;var e,t=Dx,n=t.length,r,i="value"in os?os.value:os.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return jp=i.slice(e,1<r?1-r:void 0)}function Bp(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bh(){return!0}function yO(){return!1}function Ar(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Bh:yO,this.isPropagationStopped=yO,this}return qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bh)},persist:function(){},isPersistent:Bh}),t}var Bc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ax=Ar(Bc),Sd=qt({},Bc,{view:0,detail:0}),Q7=Ar(Sd),a0,l0,bu,Kv=qt({},Sd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ix,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bu&&(bu&&e.type==="mousemove"?(a0=e.screenX-bu.screenX,l0=e.screenY-bu.screenY):l0=a0=0,bu=e),a0)},movementY:function(e){return"movementY"in e?e.movementY:l0}}),_O=Ar(Kv),J7=qt({},Kv,{dataTransfer:0}),ej=Ar(J7),tj=qt({},Sd,{relatedTarget:0}),c0=Ar(tj),nj=qt({},Bc,{animationName:0,elapsedTime:0,pseudoElement:0}),rj=Ar(nj),ij=qt({},Bc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oj=Ar(ij),sj=qt({},Bc,{data:0}),bO=Ar(sj),aj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lj={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"},cj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cj[e])?!!t[e]:!1}function Ix(){return uj}var fj=qt({},Sd,{key:function(e){if(e.key){var t=aj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ix,charCode:function(e){return e.type==="keypress"?Bp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dj=Ar(fj),hj=qt({},Kv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wO=Ar(hj),pj=qt({},Sd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ix}),mj=Ar(pj),gj=qt({},Bc,{propertyName:0,elapsedTime:0,pseudoElement:0}),vj=Ar(gj),yj=qt({},Kv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_j=Ar(yj),bj=[9,13,27,32],Fx=Co&&"CompositionEvent"in window,Ju=null;Co&&"documentMode"in document&&(Ju=document.documentMode);var wj=Co&&"TextEvent"in window&&!Ju,oD=Co&&(!Fx||Ju&&8<Ju&&11>=Ju),xO=String.fromCharCode(32),SO=!1;function sD(e,t){switch(e){case"keyup":return bj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jl=!1;function xj(e,t){switch(e){case"compositionend":return aD(t);case"keypress":return t.which!==32?null:(SO=!0,xO);case"textInput":return e=t.data,e===xO&&SO?null:e;default:return null}}function Sj(e,t){if(jl)return e==="compositionend"||!Fx&&sD(e,t)?(e=iD(),jp=Dx=os=null,jl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return oD&&t.locale!=="ko"?null:t.data;default:return null}}var Cj={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 CO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cj[e.type]:t==="textarea"}function lD(e,t,n,r){jL(r),t=Jm(t,"onChange"),0<t.length&&(n=new Ax("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ef=null,Df=null;function Ej(e){_D(e,0)}function Xv(e){var t=Ul(e);if(NL(t))return e}function Tj(e,t){if(e==="change")return t}var cD=!1;if(Co){var u0;if(Co){var f0="oninput"in document;if(!f0){var EO=document.createElement("div");EO.setAttribute("oninput","return;"),f0=typeof EO.oninput=="function"}u0=f0}else u0=!1;cD=u0&&(!document.documentMode||9<document.documentMode)}function TO(){ef&&(ef.detachEvent("onpropertychange",uD),Df=ef=null)}function uD(e){if(e.propertyName==="value"&&Xv(Df)){var t=[];lD(t,Df,e,kx(e)),VL(Ej,t)}}function Oj(e,t,n){e==="focusin"?(TO(),ef=t,Df=n,ef.attachEvent("onpropertychange",uD)):e==="focusout"&&TO()}function Pj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xv(Df)}function kj(e,t){if(e==="click")return Xv(t)}function Mj(e,t){if(e==="input"||e==="change")return Xv(t)}function Rj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oi=typeof Object.is=="function"?Object.is:Rj;function Af(e,t){if(Oi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Hb.call(t,i)||!Oi(e[i],t[i]))return!1}return!0}function OO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function PO(e,t){var n=OO(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=OO(n)}}function fD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dD(){for(var e=window,t=Ym();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ym(e.document)}return t}function $x(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nj(e){var t=dD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fD(n.ownerDocument.documentElement,n)){if(r!==null&&$x(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=PO(n,o);var s=PO(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Lj=Co&&"documentMode"in document&&11>=document.documentMode,Bl=null,c1=null,tf=null,u1=!1;function kO(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;u1||Bl==null||Bl!==Ym(r)||(r=Bl,"selectionStart"in r&&$x(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tf&&Af(tf,r)||(tf=r,r=Jm(c1,"onSelect"),0<r.length&&(t=new Ax("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bl)))}function zh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zl={animationend:zh("Animation","AnimationEnd"),animationiteration:zh("Animation","AnimationIteration"),animationstart:zh("Animation","AnimationStart"),transitionend:zh("Transition","TransitionEnd")},d0={},hD={};Co&&(hD=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function Qv(e){if(d0[e])return d0[e];if(!zl[e])return e;var t=zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in hD)return d0[e]=t[n];return e}var pD=Qv("animationend"),mD=Qv("animationiteration"),gD=Qv("animationstart"),vD=Qv("transitionend"),yD=new Map,MO="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Us(e,t){yD.set(e,t),il(t,[e])}for(var h0=0;h0<MO.length;h0++){var p0=MO[h0],Dj=p0.toLowerCase(),Aj=p0[0].toUpperCase()+p0.slice(1);Us(Dj,"on"+Aj)}Us(pD,"onAnimationEnd");Us(mD,"onAnimationIteration");Us(gD,"onAnimationStart");Us("dblclick","onDoubleClick");Us("focusin","onFocus");Us("focusout","onBlur");Us(vD,"onTransitionEnd");mc("onMouseEnter",["mouseout","mouseover"]);mc("onMouseLeave",["mouseout","mouseover"]);mc("onPointerEnter",["pointerout","pointerover"]);mc("onPointerLeave",["pointerout","pointerover"]);il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));il("onBeforeInput",["compositionend","keypress","textInput","paste"]);il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bu="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(" "),Ij=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bu));function RO(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,D7(r,t,void 0,e),e.currentTarget=null}function _D(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;RO(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;RO(i,a,c),o=l}}}if(Gm)throw e=o1,Gm=!1,o1=null,e}function Rt(e,t){var n=t[m1];n===void 0&&(n=t[m1]=new Set);var r=e+"__bubble";n.has(r)||(bD(t,e,2,!1),n.add(r))}function m0(e,t,n){var r=0;t&&(r|=4),bD(n,e,r,t)}var Uh="_reactListening"+Math.random().toString(36).slice(2);function If(e){if(!e[Uh]){e[Uh]=!0,OL.forEach(function(n){n!=="selectionchange"&&(Ij.has(n)||m0(n,!1,e),m0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uh]||(t[Uh]=!0,m0("selectionchange",!1,t))}}function bD(e,t,n,r){switch(rD(t)){case 1:var i=K7;break;case 4:i=X7;break;default:i=Lx}n=i.bind(null,t,n,e),i=void 0,!i1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function g0(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ta(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}VL(function(){var c=o,f=kx(n),h=[];e:{var p=yD.get(e);if(p!==void 0){var m=Ax,g=e;switch(e){case"keypress":if(Bp(n)===0)break e;case"keydown":case"keyup":m=dj;break;case"focusin":g="focus",m=c0;break;case"focusout":g="blur",m=c0;break;case"beforeblur":case"afterblur":m=c0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=_O;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=ej;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=mj;break;case pD:case mD:case gD:m=rj;break;case vD:m=vj;break;case"scroll":m=Q7;break;case"wheel":m=_j;break;case"copy":case"cut":case"paste":m=oj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=wO}var _=(t&4)!==0,x=!_&&e==="scroll",v=_?p!==null?p+"Capture":null:p;_=[];for(var b=c,w;b!==null;){w=b;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,v!==null&&(E=Mf(b,v),E!=null&&_.push(Ff(b,E,w)))),x)break;b=b.return}0<_.length&&(p=new m(p,g,null,n,f),h.push({event:p,listeners:_}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==n1&&(g=n.relatedTarget||n.fromElement)&&(Ta(g)||g[Eo]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=c,g=g?Ta(g):null,g!==null&&(x=ol(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=c),m!==g)){if(_=_O,E="onMouseLeave",v="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(_=wO,E="onPointerLeave",v="onPointerEnter",b="pointer"),x=m==null?p:Ul(m),w=g==null?p:Ul(g),p=new _(E,b+"leave",m,n,f),p.target=x,p.relatedTarget=w,E=null,Ta(f)===c&&(_=new _(v,b+"enter",g,n,f),_.target=w,_.relatedTarget=x,E=_),x=E,m&&g)t:{for(_=m,v=g,b=0,w=_;w;w=bl(w))b++;for(w=0,E=v;E;E=bl(E))w++;for(;0<b-w;)_=bl(_),b--;for(;0<w-b;)v=bl(v),w--;for(;b--;){if(_===v||v!==null&&_===v.alternate)break t;_=bl(_),v=bl(v)}_=null}else _=null;m!==null&&NO(h,p,m,_,!1),g!==null&&x!==null&&NO(h,x,g,_,!0)}}e:{if(p=c?Ul(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var P=Tj;else if(CO(p))if(cD)P=Mj;else{P=Pj;var k=Oj}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=kj);if(P&&(P=P(e,c))){lD(h,P,n,f);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&Xb(p,"number",p.value)}switch(k=c?Ul(c):window,e){case"focusin":(CO(k)||k.contentEditable==="true")&&(Bl=k,c1=c,tf=null);break;case"focusout":tf=c1=Bl=null;break;case"mousedown":u1=!0;break;case"contextmenu":case"mouseup":case"dragend":u1=!1,kO(h,n,f);break;case"selectionchange":if(Lj)break;case"keydown":case"keyup":kO(h,n,f)}var N;if(Fx)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else jl?sD(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(oD&&n.locale!=="ko"&&(jl||A!=="onCompositionStart"?A==="onCompositionEnd"&&jl&&(N=iD()):(os=f,Dx="value"in os?os.value:os.textContent,jl=!0)),k=Jm(c,A),0<k.length&&(A=new bO(A,e,null,n,f),h.push({event:A,listeners:k}),N?A.data=N:(N=aD(n),N!==null&&(A.data=N)))),(N=wj?xj(e,n):Sj(e,n))&&(c=Jm(c,"onBeforeInput"),0<c.length&&(f=new bO("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=N))}_D(h,t)})}function Ff(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jm(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Mf(e,n),o!=null&&r.unshift(Ff(e,o,i)),o=Mf(e,t),o!=null&&r.push(Ff(e,o,i))),e=e.return}return r}function bl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function NO(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Mf(n,o),l!=null&&s.unshift(Ff(n,l,a))):i||(l=Mf(n,o),l!=null&&s.push(Ff(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Fj=/\r\n?/g,$j=/\u0000|\uFFFD/g;function LO(e){return(typeof e=="string"?e:""+e).replace(Fj,`
|
||
`).replace($j,"")}function Vh(e,t,n){if(t=LO(t),LO(e)!==t&&n)throw Error(Ee(425))}function eg(){}var f1=null,d1=null;function h1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var p1=typeof setTimeout=="function"?setTimeout:void 0,jj=typeof clearTimeout=="function"?clearTimeout:void 0,DO=typeof Promise=="function"?Promise:void 0,Bj=typeof queueMicrotask=="function"?queueMicrotask:typeof DO<"u"?function(e){return DO.resolve(null).then(e).catch(zj)}:p1;function zj(e){setTimeout(function(){throw e})}function v0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Lf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Lf(t)}function vs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function AO(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zc=Math.random().toString(36).slice(2),Ui="__reactFiber$"+zc,$f="__reactProps$"+zc,Eo="__reactContainer$"+zc,m1="__reactEvents$"+zc,Uj="__reactListeners$"+zc,Vj="__reactHandles$"+zc;function Ta(e){var t=e[Ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Eo]||n[Ui]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=AO(e);e!==null;){if(n=e[Ui])return n;e=AO(e)}return t}e=n,n=e.parentNode}return null}function Cd(e){return e=e[Ui]||e[Eo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ul(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function Jv(e){return e[$f]||null}var g1=[],Vl=-1;function Vs(e){return{current:e}}function Dt(e){0>Vl||(e.current=g1[Vl],g1[Vl]=null,Vl--)}function kt(e,t){Vl++,g1[Vl]=e.current,e.current=t}var Ms={},Jn=Vs(Ms),vr=Vs(!1),za=Ms;function gc(e,t){var n=e.type.contextTypes;if(!n)return Ms;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yr(e){return e=e.childContextTypes,e!=null}function tg(){Dt(vr),Dt(Jn)}function IO(e,t,n){if(Jn.current!==Ms)throw Error(Ee(168));kt(Jn,t),kt(vr,n)}function wD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ee(108,O7(e)||"Unknown",i));return qt({},n,r)}function ng(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ms,za=Jn.current,kt(Jn,e),kt(vr,vr.current),!0}function FO(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=wD(e,t,za),r.__reactInternalMemoizedMergedChildContext=e,Dt(vr),Dt(Jn),kt(Jn,e)):Dt(vr),kt(vr,n)}var ho=null,ey=!1,y0=!1;function xD(e){ho===null?ho=[e]:ho.push(e)}function Hj(e){ey=!0,xD(e)}function Hs(){if(!y0&&ho!==null){y0=!0;var e=0,t=xt;try{var n=ho;for(xt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ho=null,ey=!1}catch(i){throw ho!==null&&(ho=ho.slice(e+1)),qL(Mx,Hs),i}finally{xt=t,y0=!1}}return null}var Hl=[],Wl=0,rg=null,ig=0,Hr=[],Wr=0,Ua=null,yo=1,_o="";function ga(e,t){Hl[Wl++]=ig,Hl[Wl++]=rg,rg=e,ig=t}function SD(e,t,n){Hr[Wr++]=yo,Hr[Wr++]=_o,Hr[Wr++]=Ua,Ua=e;var r=yo;e=_o;var i=32-xi(r)-1;r&=~(1<<i),n+=1;var o=32-xi(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,yo=1<<32-xi(t)+i|n<<i|r,_o=o+e}else yo=1<<o|n<<i|r,_o=e}function jx(e){e.return!==null&&(ga(e,1),SD(e,1,0))}function Bx(e){for(;e===rg;)rg=Hl[--Wl],Hl[Wl]=null,ig=Hl[--Wl],Hl[Wl]=null;for(;e===Ua;)Ua=Hr[--Wr],Hr[Wr]=null,_o=Hr[--Wr],Hr[Wr]=null,yo=Hr[--Wr],Hr[Wr]=null}var kr=null,Or=null,jt=!1,gi=null;function CD(e,t){var n=Gr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $O(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,kr=e,Or=vs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,kr=e,Or=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ua!==null?{id:yo,overflow:_o}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,kr=e,Or=null,!0):!1;default:return!1}}function v1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function y1(e){if(jt){var t=Or;if(t){var n=t;if(!$O(e,t)){if(v1(e))throw Error(Ee(418));t=vs(n.nextSibling);var r=kr;t&&$O(e,t)?CD(r,n):(e.flags=e.flags&-4097|2,jt=!1,kr=e)}}else{if(v1(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,jt=!1,kr=e}}}function jO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;kr=e}function Hh(e){if(e!==kr)return!1;if(!jt)return jO(e),jt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!h1(e.type,e.memoizedProps)),t&&(t=Or)){if(v1(e))throw ED(),Error(Ee(418));for(;t;)CD(e,t),t=vs(t.nextSibling)}if(jO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Or=vs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Or=null}}else Or=kr?vs(e.stateNode.nextSibling):null;return!0}function ED(){for(var e=Or;e;)e=vs(e.nextSibling)}function vc(){Or=kr=null,jt=!1}function zx(e){gi===null?gi=[e]:gi.push(e)}var Wj=Ao.ReactCurrentBatchConfig;function hi(e,t){if(e&&e.defaultProps){t=qt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var og=Vs(null),sg=null,Yl=null,Ux=null;function Vx(){Ux=Yl=sg=null}function Hx(e){var t=og.current;Dt(og),e._currentValue=t}function _1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rc(e,t){sg=e,Ux=Yl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gr=!0),e.firstContext=null)}function ei(e){var t=e._currentValue;if(Ux!==e)if(e={context:e,memoizedValue:t,next:null},Yl===null){if(sg===null)throw Error(Ee(308));Yl=e,sg.dependencies={lanes:0,firstContext:e}}else Yl=Yl.next=e;return t}var Oa=null;function Wx(e){Oa===null?Oa=[e]:Oa.push(e)}function TD(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Wx(t)):(n.next=i.next,i.next=n),t.interleaved=n,To(e,r)}function To(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qo=!1;function Yx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ys(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,dt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,To(e,n)}return i=r.interleaved,i===null?(t.next=t,Wx(r)):(t.next=i.next,i.next=t),r.interleaved=t,To(e,n)}function zp(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rx(e,n)}}function BO(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ag(e,t,n,r){var i=e.updateQueue;Qo=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,f=c=l=null,a=o;do{var p=a.lane,m=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,_=a;switch(p=t,m=n,_.tag){case 1:if(g=_.payload,typeof g=="function"){h=g.call(m,h,p);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=_.payload,p=typeof g=="function"?g.call(m,h,p):g,p==null)break e;h=qt({},h,p);break e;case 2:Qo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=m,l=h):f=f.next=m,s|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ha|=s,e.lanes=s,e.memoizedState=h}}function zO(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ee(191,i));i.call(r)}}}var PD=new TL.Component().refs;function b1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:qt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ty={isMounted:function(e){return(e=e._reactInternals)?ol(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ur(),i=bs(e),o=xo(r,i);o.payload=t,n!=null&&(o.callback=n),t=ys(e,o,i),t!==null&&(Si(t,e,i,r),zp(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ur(),i=bs(e),o=xo(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ys(e,o,i),t!==null&&(Si(t,e,i,r),zp(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ur(),r=bs(e),i=xo(n,r);i.tag=2,t!=null&&(i.callback=t),t=ys(e,i,r),t!==null&&(Si(t,e,r,n),zp(t,e,r))}};function UO(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Af(n,r)||!Af(i,o):!0}function kD(e,t,n){var r=!1,i=Ms,o=t.contextType;return typeof o=="object"&&o!==null?o=ei(o):(i=yr(t)?za:Jn.current,r=t.contextTypes,o=(r=r!=null)?gc(e,i):Ms),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ty,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function VO(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ty.enqueueReplaceState(t,t.state,null)}function w1(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=PD,Yx(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ei(o):(o=yr(t)?za:Jn.current,i.context=gc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(b1(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ty.enqueueReplaceState(i,i.state,null),ag(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function wu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ee(309));var r=n.stateNode}if(!r)throw Error(Ee(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===PD&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ee(284));if(!n._owner)throw Error(Ee(290,e))}return e}function Wh(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function HO(e){var t=e._init;return t(e._payload)}function MD(e){function t(v,b){if(e){var w=v.deletions;w===null?(v.deletions=[b],v.flags|=16):w.push(b)}}function n(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function r(v,b){for(v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function i(v,b){return v=ws(v,b),v.index=0,v.sibling=null,v}function o(v,b,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<b?(v.flags|=2,b):w):(v.flags|=2,b)):(v.flags|=1048576,b)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,b,w,E){return b===null||b.tag!==6?(b=E0(w,v.mode,E),b.return=v,b):(b=i(b,w),b.return=v,b)}function l(v,b,w,E){var P=w.type;return P===$l?f(v,b,w.props.children,E,w.key):b!==null&&(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xo&&HO(P)===b.type)?(E=i(b,w.props),E.ref=wu(v,b,w),E.return=v,E):(E=qp(w.type,w.key,w.props,null,v.mode,E),E.ref=wu(v,b,w),E.return=v,E)}function c(v,b,w,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=T0(w,v.mode,E),b.return=v,b):(b=i(b,w.children||[]),b.return=v,b)}function f(v,b,w,E,P){return b===null||b.tag!==7?(b=Na(w,v.mode,E,P),b.return=v,b):(b=i(b,w),b.return=v,b)}function h(v,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=E0(""+b,v.mode,w),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Dh:return w=qp(b.type,b.key,b.props,null,v.mode,w),w.ref=wu(v,null,b),w.return=v,w;case Fl:return b=T0(b,v.mode,w),b.return=v,b;case Xo:var E=b._init;return h(v,E(b._payload),w)}if($u(b)||gu(b))return b=Na(b,v.mode,w,null),b.return=v,b;Wh(v,b)}return null}function p(v,b,w,E){var P=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:a(v,b,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Dh:return w.key===P?l(v,b,w,E):null;case Fl:return w.key===P?c(v,b,w,E):null;case Xo:return P=w._init,p(v,b,P(w._payload),E)}if($u(w)||gu(w))return P!==null?null:f(v,b,w,E,null);Wh(v,w)}return null}function m(v,b,w,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return v=v.get(w)||null,a(b,v,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Dh:return v=v.get(E.key===null?w:E.key)||null,l(b,v,E,P);case Fl:return v=v.get(E.key===null?w:E.key)||null,c(b,v,E,P);case Xo:var k=E._init;return m(v,b,w,k(E._payload),P)}if($u(E)||gu(E))return v=v.get(w)||null,f(b,v,E,P,null);Wh(b,E)}return null}function g(v,b,w,E){for(var P=null,k=null,N=b,A=b=0,V=null;N!==null&&A<w.length;A++){N.index>A?(V=N,N=null):V=N.sibling;var I=p(v,N,w[A],E);if(I===null){N===null&&(N=V);break}e&&N&&I.alternate===null&&t(v,N),b=o(I,b,A),k===null?P=I:k.sibling=I,k=I,N=V}if(A===w.length)return n(v,N),jt&&ga(v,A),P;if(N===null){for(;A<w.length;A++)N=h(v,w[A],E),N!==null&&(b=o(N,b,A),k===null?P=N:k.sibling=N,k=N);return jt&&ga(v,A),P}for(N=r(v,N);A<w.length;A++)V=m(N,v,A,w[A],E),V!==null&&(e&&V.alternate!==null&&N.delete(V.key===null?A:V.key),b=o(V,b,A),k===null?P=V:k.sibling=V,k=V);return e&&N.forEach(function(Y){return t(v,Y)}),jt&&ga(v,A),P}function _(v,b,w,E){var P=gu(w);if(typeof P!="function")throw Error(Ee(150));if(w=P.call(w),w==null)throw Error(Ee(151));for(var k=P=null,N=b,A=b=0,V=null,I=w.next();N!==null&&!I.done;A++,I=w.next()){N.index>A?(V=N,N=null):V=N.sibling;var Y=p(v,N,I.value,E);if(Y===null){N===null&&(N=V);break}e&&N&&Y.alternate===null&&t(v,N),b=o(Y,b,A),k===null?P=Y:k.sibling=Y,k=Y,N=V}if(I.done)return n(v,N),jt&&ga(v,A),P;if(N===null){for(;!I.done;A++,I=w.next())I=h(v,I.value,E),I!==null&&(b=o(I,b,A),k===null?P=I:k.sibling=I,k=I);return jt&&ga(v,A),P}for(N=r(v,N);!I.done;A++,I=w.next())I=m(N,v,A,I.value,E),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?A:I.key),b=o(I,b,A),k===null?P=I:k.sibling=I,k=I);return e&&N.forEach(function(q){return t(v,q)}),jt&&ga(v,A),P}function x(v,b,w,E){if(typeof w=="object"&&w!==null&&w.type===$l&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Dh:e:{for(var P=w.key,k=b;k!==null;){if(k.key===P){if(P=w.type,P===$l){if(k.tag===7){n(v,k.sibling),b=i(k,w.props.children),b.return=v,v=b;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xo&&HO(P)===k.type){n(v,k.sibling),b=i(k,w.props),b.ref=wu(v,k,w),b.return=v,v=b;break e}n(v,k);break}else t(v,k);k=k.sibling}w.type===$l?(b=Na(w.props.children,v.mode,E,w.key),b.return=v,v=b):(E=qp(w.type,w.key,w.props,null,v.mode,E),E.ref=wu(v,b,w),E.return=v,v=E)}return s(v);case Fl:e:{for(k=w.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(v,b.sibling),b=i(b,w.children||[]),b.return=v,v=b;break e}else{n(v,b);break}else t(v,b);b=b.sibling}b=T0(w,v.mode,E),b.return=v,v=b}return s(v);case Xo:return k=w._init,x(v,b,k(w._payload),E)}if($u(w))return g(v,b,w,E);if(gu(w))return _(v,b,w,E);Wh(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(v,b.sibling),b=i(b,w),b.return=v,v=b):(n(v,b),b=E0(w,v.mode,E),b.return=v,v=b),s(v)):n(v,b)}return x}var yc=MD(!0),RD=MD(!1),Ed={},Zi=Vs(Ed),jf=Vs(Ed),Bf=Vs(Ed);function Pa(e){if(e===Ed)throw Error(Ee(174));return e}function qx(e,t){switch(kt(Bf,t),kt(jf,e),kt(Zi,Ed),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jb(t,e)}Dt(Zi),kt(Zi,t)}function _c(){Dt(Zi),Dt(jf),Dt(Bf)}function ND(e){Pa(Bf.current);var t=Pa(Zi.current),n=Jb(t,e.type);t!==n&&(kt(jf,e),kt(Zi,n))}function Gx(e){jf.current===e&&(Dt(Zi),Dt(jf))}var Ht=Vs(0);function lg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _0=[];function Zx(){for(var e=0;e<_0.length;e++)_0[e]._workInProgressVersionPrimary=null;_0.length=0}var Up=Ao.ReactCurrentDispatcher,b0=Ao.ReactCurrentBatchConfig,Va=0,Yt=null,mn=null,En=null,cg=!1,nf=!1,zf=0,Yj=0;function qn(){throw Error(Ee(321))}function Kx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Oi(e[n],t[n]))return!1;return!0}function Xx(e,t,n,r,i,o){if(Va=o,Yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Up.current=e===null||e.memoizedState===null?Kj:Xj,e=n(r,i),nf){o=0;do{if(nf=!1,zf=0,25<=o)throw Error(Ee(301));o+=1,En=mn=null,t.updateQueue=null,Up.current=Qj,e=n(r,i)}while(nf)}if(Up.current=ug,t=mn!==null&&mn.next!==null,Va=0,En=mn=Yt=null,cg=!1,t)throw Error(Ee(300));return e}function Qx(){var e=zf!==0;return zf=0,e}function Bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?Yt.memoizedState=En=e:En=En.next=e,En}function ti(){if(mn===null){var e=Yt.alternate;e=e!==null?e.memoizedState:null}else e=mn.next;var t=En===null?Yt.memoizedState:En.next;if(t!==null)En=t,mn=e;else{if(e===null)throw Error(Ee(310));mn=e,e={memoizedState:mn.memoizedState,baseState:mn.baseState,baseQueue:mn.baseQueue,queue:mn.queue,next:null},En===null?Yt.memoizedState=En=e:En=En.next=e}return En}function Uf(e,t){return typeof t=="function"?t(e):t}function w0(e){var t=ti(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=mn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var f=c.lane;if((Va&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,s=r):l=l.next=h,Yt.lanes|=f,Ha|=f}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Oi(r,t.memoizedState)||(gr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Yt.lanes|=o,Ha|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function x0(e){var t=ti(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Oi(o,t.memoizedState)||(gr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function LD(){}function DD(e,t){var n=Yt,r=ti(),i=t(),o=!Oi(r.memoizedState,i);if(o&&(r.memoizedState=i,gr=!0),r=r.queue,Jx(FD.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||En!==null&&En.memoizedState.tag&1){if(n.flags|=2048,Vf(9,ID.bind(null,n,r,i,t),void 0,null),On===null)throw Error(Ee(349));Va&30||AD(n,t,i)}return i}function AD(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Yt.updateQueue,t===null?(t={lastEffect:null,stores:null},Yt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ID(e,t,n,r){t.value=n,t.getSnapshot=r,$D(t)&&jD(e)}function FD(e,t,n){return n(function(){$D(t)&&jD(e)})}function $D(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oi(e,n)}catch{return!0}}function jD(e){var t=To(e,1);t!==null&&Si(t,e,1,-1)}function WO(e){var t=Bi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uf,lastRenderedState:e},t.queue=e,e=e.dispatch=Zj.bind(null,Yt,e),[t.memoizedState,e]}function Vf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Yt.updateQueue,t===null?(t={lastEffect:null,stores:null},Yt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function BD(){return ti().memoizedState}function Vp(e,t,n,r){var i=Bi();Yt.flags|=e,i.memoizedState=Vf(1|t,n,void 0,r===void 0?null:r)}function ny(e,t,n,r){var i=ti();r=r===void 0?null:r;var o=void 0;if(mn!==null){var s=mn.memoizedState;if(o=s.destroy,r!==null&&Kx(r,s.deps)){i.memoizedState=Vf(t,n,o,r);return}}Yt.flags|=e,i.memoizedState=Vf(1|t,n,o,r)}function YO(e,t){return Vp(8390656,8,e,t)}function Jx(e,t){return ny(2048,8,e,t)}function zD(e,t){return ny(4,2,e,t)}function UD(e,t){return ny(4,4,e,t)}function VD(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function HD(e,t,n){return n=n!=null?n.concat([e]):null,ny(4,4,VD.bind(null,t,e),n)}function eS(){}function WD(e,t){var n=ti();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Kx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function YD(e,t){var n=ti();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Kx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qD(e,t,n){return Va&21?(Oi(n,t)||(n=KL(),Yt.lanes|=n,Ha|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,gr=!0),e.memoizedState=n)}function qj(e,t){var n=xt;xt=n!==0&&4>n?n:4,e(!0);var r=b0.transition;b0.transition={};try{e(!1),t()}finally{xt=n,b0.transition=r}}function GD(){return ti().memoizedState}function Gj(e,t,n){var r=bs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ZD(e))KD(t,n);else if(n=TD(e,t,n,r),n!==null){var i=ur();Si(n,e,r,i),XD(n,t,r)}}function Zj(e,t,n){var r=bs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ZD(e))KD(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Oi(a,s)){var l=t.interleaved;l===null?(i.next=i,Wx(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=TD(e,t,i,r),n!==null&&(i=ur(),Si(n,e,r,i),XD(n,t,r))}}function ZD(e){var t=e.alternate;return e===Yt||t!==null&&t===Yt}function KD(e,t){nf=cg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rx(e,n)}}var ug={readContext:ei,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:!1},Kj={readContext:ei,useCallback:function(e,t){return Bi().memoizedState=[e,t===void 0?null:t],e},useContext:ei,useEffect:YO,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vp(4194308,4,VD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vp(4,2,e,t)},useMemo:function(e,t){var n=Bi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gj.bind(null,Yt,e),[r.memoizedState,e]},useRef:function(e){var t=Bi();return e={current:e},t.memoizedState=e},useState:WO,useDebugValue:eS,useDeferredValue:function(e){return Bi().memoizedState=e},useTransition:function(){var e=WO(!1),t=e[0];return e=qj.bind(null,e[1]),Bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yt,i=Bi();if(jt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),On===null)throw Error(Ee(349));Va&30||AD(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,YO(FD.bind(null,r,o,e),[e]),r.flags|=2048,Vf(9,ID.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Bi(),t=On.identifierPrefix;if(jt){var n=_o,r=yo;n=(r&~(1<<32-xi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Yj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xj={readContext:ei,useCallback:WD,useContext:ei,useEffect:Jx,useImperativeHandle:HD,useInsertionEffect:zD,useLayoutEffect:UD,useMemo:YD,useReducer:w0,useRef:BD,useState:function(){return w0(Uf)},useDebugValue:eS,useDeferredValue:function(e){var t=ti();return qD(t,mn.memoizedState,e)},useTransition:function(){var e=w0(Uf)[0],t=ti().memoizedState;return[e,t]},useMutableSource:LD,useSyncExternalStore:DD,useId:GD,unstable_isNewReconciler:!1},Qj={readContext:ei,useCallback:WD,useContext:ei,useEffect:Jx,useImperativeHandle:HD,useInsertionEffect:zD,useLayoutEffect:UD,useMemo:YD,useReducer:x0,useRef:BD,useState:function(){return x0(Uf)},useDebugValue:eS,useDeferredValue:function(e){var t=ti();return mn===null?t.memoizedState=e:qD(t,mn.memoizedState,e)},useTransition:function(){var e=x0(Uf)[0],t=ti().memoizedState;return[e,t]},useMutableSource:LD,useSyncExternalStore:DD,useId:GD,unstable_isNewReconciler:!1};function bc(e,t){try{var n="",r=t;do n+=T7(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function S0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function x1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jj=typeof WeakMap=="function"?WeakMap:Map;function QD(e,t,n){n=xo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dg||(dg=!0,N1=r),x1(e,t)},n}function JD(e,t,n){n=xo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){x1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){x1(e,t),typeof r!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function qO(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jj;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hB.bind(null,e,t,n),t.then(e,e))}function GO(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ZO(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xo(-1,1),t.tag=2,ys(n,t,1))),n.lanes|=1),e)}var eB=Ao.ReactCurrentOwner,gr=!1;function ar(e,t,n,r){t.child=e===null?RD(t,null,n,r):yc(t,e.child,n,r)}function KO(e,t,n,r,i){n=n.render;var o=t.ref;return rc(t,i),r=Xx(e,t,n,r,o,i),n=Qx(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Oo(e,t,i)):(jt&&n&&jx(t),t.flags|=1,ar(e,t,r,i),t.child)}function XO(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!lS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,e4(e,t,o,r,i)):(e=qp(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Af,n(s,r)&&e.ref===t.ref)return Oo(e,t,i)}return t.flags|=1,e=ws(o,r),e.ref=t.ref,e.return=t,t.child=e}function e4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Af(o,r)&&e.ref===t.ref)if(gr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(gr=!0);else return t.lanes=e.lanes,Oo(e,t,i)}return S1(e,t,n,r,i)}function t4(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(Gl,Cr),Cr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kt(Gl,Cr),Cr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,kt(Gl,Cr),Cr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,kt(Gl,Cr),Cr|=r;return ar(e,t,i,n),t.child}function n4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function S1(e,t,n,r,i){var o=yr(n)?za:Jn.current;return o=gc(t,o),rc(t,i),n=Xx(e,t,n,r,o,i),r=Qx(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Oo(e,t,i)):(jt&&r&&jx(t),t.flags|=1,ar(e,t,n,i),t.child)}function QO(e,t,n,r,i){if(yr(n)){var o=!0;ng(t)}else o=!1;if(rc(t,i),t.stateNode===null)Hp(e,t),kD(t,n,r),w1(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ei(c):(c=yr(n)?za:Jn.current,c=gc(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&VO(t,s,r,c),Qo=!1;var p=t.memoizedState;s.state=p,ag(t,r,s,i),l=t.memoizedState,a!==r||p!==l||vr.current||Qo?(typeof f=="function"&&(b1(t,n,f,r),l=t.memoizedState),(a=Qo||UO(t,n,a,r,p,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,OD(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:hi(t.type,a),s.props=c,h=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ei(l):(l=yr(n)?za:Jn.current,l=gc(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||p!==l)&&VO(t,s,r,l),Qo=!1,p=t.memoizedState,s.state=p,ag(t,r,s,i);var g=t.memoizedState;a!==h||p!==g||vr.current||Qo?(typeof m=="function"&&(b1(t,n,m,r),g=t.memoizedState),(c=Qo||UO(t,n,c,r,p,g,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return C1(e,t,n,r,o,i)}function C1(e,t,n,r,i,o){n4(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&FO(t,n,!1),Oo(e,t,o);r=t.stateNode,eB.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=yc(t,e.child,null,o),t.child=yc(t,null,a,o)):ar(e,t,a,o),t.memoizedState=r.state,i&&FO(t,n,!0),t.child}function r4(e){var t=e.stateNode;t.pendingContext?IO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&IO(e,t.context,!1),qx(e,t.containerInfo)}function JO(e,t,n,r,i){return vc(),zx(i),t.flags|=256,ar(e,t,n,r),t.child}var E1={dehydrated:null,treeContext:null,retryLane:0};function T1(e){return{baseLanes:e,cachePool:null,transitions:null}}function i4(e,t,n){var r=t.pendingProps,i=Ht.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),kt(Ht,i&1),e===null)return y1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=oy(s,r,0,null),e=Na(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=T1(n),t.memoizedState=E1,e):tS(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return tB(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ws(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=ws(a,o):(o=Na(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?T1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=E1,r}return o=e.child,e=o.sibling,r=ws(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function tS(e,t){return t=oy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yh(e,t,n,r){return r!==null&&zx(r),yc(t,e.child,null,n),e=tS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tB(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=S0(Error(Ee(422))),Yh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=oy({mode:"visible",children:r.children},i,0,null),o=Na(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&yc(t,e.child,null,s),t.child.memoizedState=T1(s),t.memoizedState=E1,o);if(!(t.mode&1))return Yh(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Ee(419)),r=S0(o,r,void 0),Yh(e,t,s,r)}if(a=(s&e.childLanes)!==0,gr||a){if(r=On,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,To(e,i),Si(r,e,i,-1))}return aS(),r=S0(Error(Ee(421))),Yh(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=pB.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Or=vs(i.nextSibling),kr=t,jt=!0,gi=null,e!==null&&(Hr[Wr++]=yo,Hr[Wr++]=_o,Hr[Wr++]=Ua,yo=e.id,_o=e.overflow,Ua=t),t=tS(t,r.children),t.flags|=4096,t)}function eP(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_1(e.return,t,n)}function C0(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function o4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ar(e,t,r.children,n),r=Ht.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&eP(e,n,t);else if(e.tag===19)eP(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(kt(Ht,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),C0(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}C0(t,!0,n,null,o);break;case"together":C0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ee(153));if(t.child!==null){for(e=t.child,n=ws(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ws(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nB(e,t,n){switch(t.tag){case 3:r4(t),vc();break;case 5:ND(t);break;case 1:yr(t.type)&&ng(t);break;case 4:qx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;kt(og,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(kt(Ht,Ht.current&1),t.flags|=128,null):n&t.child.childLanes?i4(e,t,n):(kt(Ht,Ht.current&1),e=Oo(e,t,n),e!==null?e.sibling:null);kt(Ht,Ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return o4(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),kt(Ht,Ht.current),r)break;return null;case 22:case 23:return t.lanes=0,t4(e,t,n)}return Oo(e,t,n)}var s4,O1,a4,l4;s4=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};O1=function(){};a4=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pa(Zi.current);var o=null;switch(n){case"input":i=Zb(e,i),r=Zb(e,r),o=[];break;case"select":i=qt({},i,{value:void 0}),r=qt({},r,{value:void 0}),o=[];break;case"textarea":i=Qb(e,i),r=Qb(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=eg)}e1(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Pf.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Pf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Rt("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};l4=function(e,t,n,r){n!==r&&(t.flags|=4)};function xu(e,t){if(!jt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rB(e,t,n){var r=t.pendingProps;switch(Bx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(t),null;case 1:return yr(t.type)&&tg(),Gn(t),null;case 3:return r=t.stateNode,_c(),Dt(vr),Dt(Jn),Zx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gi!==null&&(A1(gi),gi=null))),O1(e,t),Gn(t),null;case 5:Gx(t);var i=Pa(Bf.current);if(n=t.type,e!==null&&t.stateNode!=null)a4(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ee(166));return Gn(t),null}if(e=Pa(Zi.current),Hh(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ui]=t,r[$f]=o,e=(t.mode&1)!==0,n){case"dialog":Rt("cancel",r),Rt("close",r);break;case"iframe":case"object":case"embed":Rt("load",r);break;case"video":case"audio":for(i=0;i<Bu.length;i++)Rt(Bu[i],r);break;case"source":Rt("error",r);break;case"img":case"image":case"link":Rt("error",r),Rt("load",r);break;case"details":Rt("toggle",r);break;case"input":cO(r,o),Rt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Rt("invalid",r);break;case"textarea":fO(r,o),Rt("invalid",r)}e1(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Vh(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Vh(r.textContent,a,e),i=["children",""+a]):Pf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Rt("scroll",r)}switch(n){case"input":Ah(r),uO(r,o,!0);break;case"textarea":Ah(r),dO(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=eg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=AL(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ui]=t,e[$f]=r,s4(e,t,!1,!1),t.stateNode=e;e:{switch(s=t1(n,r),n){case"dialog":Rt("cancel",e),Rt("close",e),i=r;break;case"iframe":case"object":case"embed":Rt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Bu.length;i++)Rt(Bu[i],e);i=r;break;case"source":Rt("error",e),i=r;break;case"img":case"image":case"link":Rt("error",e),Rt("load",e),i=r;break;case"details":Rt("toggle",e),i=r;break;case"input":cO(e,r),i=Zb(e,r),Rt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=qt({},r,{value:void 0}),Rt("invalid",e);break;case"textarea":fO(e,r),i=Qb(e,r),Rt("invalid",e);break;default:i=r}e1(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?$L(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&IL(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&kf(e,l):typeof l=="number"&&kf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Pf.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Rt("scroll",e):l!=null&&Ex(e,o,l,s))}switch(n){case"input":Ah(e),uO(e,r,!1);break;case"textarea":Ah(e),dO(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ks(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Jl(e,!!r.multiple,o,!1):r.defaultValue!=null&&Jl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=eg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Gn(t),null;case 6:if(e&&t.stateNode!=null)l4(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=Pa(Bf.current),Pa(Zi.current),Hh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ui]=t,(o=r.nodeValue!==n)&&(e=kr,e!==null))switch(e.tag){case 3:Vh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vh(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ui]=t,t.stateNode=r}return Gn(t),null;case 13:if(Dt(Ht),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(jt&&Or!==null&&t.mode&1&&!(t.flags&128))ED(),vc(),t.flags|=98560,o=!1;else if(o=Hh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Ee(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ee(317));o[Ui]=t}else vc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gn(t),o=!1}else gi!==null&&(A1(gi),gi=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ht.current&1?vn===0&&(vn=3):aS())),t.updateQueue!==null&&(t.flags|=4),Gn(t),null);case 4:return _c(),O1(e,t),e===null&&If(t.stateNode.containerInfo),Gn(t),null;case 10:return Hx(t.type._context),Gn(t),null;case 17:return yr(t.type)&&tg(),Gn(t),null;case 19:if(Dt(Ht),o=t.memoizedState,o===null)return Gn(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)xu(o,!1);else{if(vn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=lg(e),s!==null){for(t.flags|=128,xu(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return kt(Ht,Ht.current&1|2),t.child}e=e.sibling}o.tail!==null&&rn()>wc&&(t.flags|=128,r=!0,xu(o,!1),t.lanes=4194304)}else{if(!r)if(e=lg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return Gn(t),null}else 2*rn()-o.renderingStartTime>wc&&n!==1073741824&&(t.flags|=128,r=!0,xu(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=rn(),t.sibling=null,n=Ht.current,kt(Ht,r?n&1|2:n&1),t):(Gn(t),null);case 22:case 23:return sS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Cr&1073741824&&(Gn(t),t.subtreeFlags&6&&(t.flags|=8192)):Gn(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function iB(e,t){switch(Bx(t),t.tag){case 1:return yr(t.type)&&tg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _c(),Dt(vr),Dt(Jn),Zx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gx(t),null;case 13:if(Dt(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));vc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(Ht),null;case 4:return _c(),null;case 10:return Hx(t.type._context),null;case 22:case 23:return sS(),null;case 24:return null;default:return null}}var qh=!1,Xn=!1,oB=typeof WeakSet=="function"?WeakSet:Set,ze=null;function ql(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Zt(e,t,r)}else n.current=null}function P1(e,t,n){try{n()}catch(r){Zt(e,t,r)}}var tP=!1;function sB(e,t){if(f1=Xm,e=dD(),$x(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(d1={focusedElem:e,selectionRange:n},Xm=!1,ze=t;ze!==null;)if(t=ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ze=e;else for(;ze!==null;){t=ze;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var _=g.memoizedProps,x=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:hi(t.type,_),x);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(E){Zt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,ze=e;break}ze=t.return}return g=tP,tP=!1,g}function rf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&P1(t,n,o)}i=i.next}while(i!==r)}}function ry(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function k1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function c4(e){var t=e.alternate;t!==null&&(e.alternate=null,c4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[$f],delete t[m1],delete t[Uj],delete t[Vj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function u4(e){return e.tag===5||e.tag===3||e.tag===4}function nP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||u4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function M1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=eg));else if(r!==4&&(e=e.child,e!==null))for(M1(e,t,n),e=e.sibling;e!==null;)M1(e,t,n),e=e.sibling}function R1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(R1(e,t,n),e=e.sibling;e!==null;)R1(e,t,n),e=e.sibling}var Bn=null,pi=!1;function Yo(e,t,n){for(n=n.child;n!==null;)f4(e,t,n),n=n.sibling}function f4(e,t,n){if(Gi&&typeof Gi.onCommitFiberUnmount=="function")try{Gi.onCommitFiberUnmount(Zv,n)}catch{}switch(n.tag){case 5:Xn||ql(n,t);case 6:var r=Bn,i=pi;Bn=null,Yo(e,t,n),Bn=r,pi=i,Bn!==null&&(pi?(e=Bn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bn.removeChild(n.stateNode));break;case 18:Bn!==null&&(pi?(e=Bn,n=n.stateNode,e.nodeType===8?v0(e.parentNode,n):e.nodeType===1&&v0(e,n),Lf(e)):v0(Bn,n.stateNode));break;case 4:r=Bn,i=pi,Bn=n.stateNode.containerInfo,pi=!0,Yo(e,t,n),Bn=r,pi=i;break;case 0:case 11:case 14:case 15:if(!Xn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&P1(n,t,s),i=i.next}while(i!==r)}Yo(e,t,n);break;case 1:if(!Xn&&(ql(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Zt(n,t,a)}Yo(e,t,n);break;case 21:Yo(e,t,n);break;case 22:n.mode&1?(Xn=(r=Xn)||n.memoizedState!==null,Yo(e,t,n),Xn=r):Yo(e,t,n);break;default:Yo(e,t,n)}}function rP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oB),t.forEach(function(r){var i=mB.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function di(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Bn=a.stateNode,pi=!1;break e;case 3:Bn=a.stateNode.containerInfo,pi=!0;break e;case 4:Bn=a.stateNode.containerInfo,pi=!0;break e}a=a.return}if(Bn===null)throw Error(Ee(160));f4(o,s,i),Bn=null,pi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Zt(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)d4(t,e),t=t.sibling}function d4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(di(t,e),Fi(e),r&4){try{rf(3,e,e.return),ry(3,e)}catch(_){Zt(e,e.return,_)}try{rf(5,e,e.return)}catch(_){Zt(e,e.return,_)}}break;case 1:di(t,e),Fi(e),r&512&&n!==null&&ql(n,n.return);break;case 5:if(di(t,e),Fi(e),r&512&&n!==null&&ql(n,n.return),e.flags&32){var i=e.stateNode;try{kf(i,"")}catch(_){Zt(e,e.return,_)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&LL(i,o),t1(a,s);var c=t1(a,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?$L(i,h):f==="dangerouslySetInnerHTML"?IL(i,h):f==="children"?kf(i,h):Ex(i,f,h,c)}switch(a){case"input":Kb(i,o);break;case"textarea":DL(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Jl(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?Jl(i,!!o.multiple,o.defaultValue,!0):Jl(i,!!o.multiple,o.multiple?[]:"",!1))}i[$f]=o}catch(_){Zt(e,e.return,_)}}break;case 6:if(di(t,e),Fi(e),r&4){if(e.stateNode===null)throw Error(Ee(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){Zt(e,e.return,_)}}break;case 3:if(di(t,e),Fi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lf(t.containerInfo)}catch(_){Zt(e,e.return,_)}break;case 4:di(t,e),Fi(e);break;case 13:di(t,e),Fi(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(iS=rn())),r&4&&rP(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Xn=(c=Xn)||f,di(t,e),Xn=c):di(t,e),Fi(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(ze=e,f=e.child;f!==null;){for(h=ze=f;ze!==null;){switch(p=ze,m=p.child,p.tag){case 0:case 11:case 14:case 15:rf(4,p,p.return);break;case 1:ql(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(_){Zt(r,n,_)}}break;case 5:ql(p,p.return);break;case 22:if(p.memoizedState!==null){oP(h);continue}}m!==null?(m.return=p,ze=m):oP(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=FL("display",s))}catch(_){Zt(e,e.return,_)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(_){Zt(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:di(t,e),Fi(e),r&4&&rP(e);break;case 21:break;default:di(t,e),Fi(e)}}function Fi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(u4(n)){var r=n;break e}n=n.return}throw Error(Ee(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(kf(i,""),r.flags&=-33);var o=nP(e);R1(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=nP(e);M1(e,a,s);break;default:throw Error(Ee(161))}}catch(l){Zt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aB(e,t,n){ze=e,h4(e)}function h4(e,t,n){for(var r=(e.mode&1)!==0;ze!==null;){var i=ze,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||qh;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Xn;a=qh;var c=Xn;if(qh=s,(Xn=l)&&!c)for(ze=i;ze!==null;)s=ze,l=s.child,s.tag===22&&s.memoizedState!==null?sP(i):l!==null?(l.return=s,ze=l):sP(i);for(;o!==null;)ze=o,h4(o),o=o.sibling;ze=i,qh=a,Xn=c}iP(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ze=o):iP(e)}}function iP(e){for(;ze!==null;){var t=ze;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xn||ry(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:hi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&zO(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}zO(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&Lf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}Xn||t.flags&512&&k1(t)}catch(p){Zt(t,t.return,p)}}if(t===e){ze=null;break}if(n=t.sibling,n!==null){n.return=t.return,ze=n;break}ze=t.return}}function oP(e){for(;ze!==null;){var t=ze;if(t===e){ze=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ze=n;break}ze=t.return}}function sP(e){for(;ze!==null;){var t=ze;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ry(4,t)}catch(l){Zt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Zt(t,i,l)}}var o=t.return;try{k1(t)}catch(l){Zt(t,o,l)}break;case 5:var s=t.return;try{k1(t)}catch(l){Zt(t,s,l)}}}catch(l){Zt(t,t.return,l)}if(t===e){ze=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ze=a;break}ze=t.return}}var lB=Math.ceil,fg=Ao.ReactCurrentDispatcher,nS=Ao.ReactCurrentOwner,Xr=Ao.ReactCurrentBatchConfig,dt=0,On=null,dn=null,Un=0,Cr=0,Gl=Vs(0),vn=0,Hf=null,Ha=0,iy=0,rS=0,of=null,hr=null,iS=0,wc=1/0,fo=null,dg=!1,N1=null,_s=null,Gh=!1,ss=null,hg=0,sf=0,L1=null,Wp=-1,Yp=0;function ur(){return dt&6?rn():Wp!==-1?Wp:Wp=rn()}function bs(e){return e.mode&1?dt&2&&Un!==0?Un&-Un:Wj.transition!==null?(Yp===0&&(Yp=KL()),Yp):(e=xt,e!==0||(e=window.event,e=e===void 0?16:rD(e.type)),e):1}function Si(e,t,n,r){if(50<sf)throw sf=0,L1=null,Error(Ee(185));xd(e,n,r),(!(dt&2)||e!==On)&&(e===On&&(!(dt&2)&&(iy|=n),vn===4&&rs(e,Un)),_r(e,r),n===1&&dt===0&&!(t.mode&1)&&(wc=rn()+500,ey&&Hs()))}function _r(e,t){var n=e.callbackNode;W7(e,t);var r=Km(e,e===On?Un:0);if(r===0)n!==null&&mO(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&mO(n),t===1)e.tag===0?Hj(aP.bind(null,e)):xD(aP.bind(null,e)),Bj(function(){!(dt&6)&&Hs()}),n=null;else{switch(XL(r)){case 1:n=Mx;break;case 4:n=GL;break;case 16:n=Zm;break;case 536870912:n=ZL;break;default:n=Zm}n=w4(n,p4.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function p4(e,t){if(Wp=-1,Yp=0,dt&6)throw Error(Ee(327));var n=e.callbackNode;if(ic()&&e.callbackNode!==n)return null;var r=Km(e,e===On?Un:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pg(e,r);else{t=r;var i=dt;dt|=2;var o=g4();(On!==e||Un!==t)&&(fo=null,wc=rn()+500,Ra(e,t));do try{fB();break}catch(a){m4(e,a)}while(1);Vx(),fg.current=o,dt=i,dn!==null?t=0:(On=null,Un=0,t=vn)}if(t!==0){if(t===2&&(i=s1(e),i!==0&&(r=i,t=D1(e,i))),t===1)throw n=Hf,Ra(e,0),rs(e,r),_r(e,rn()),n;if(t===6)rs(e,r);else{if(i=e.current.alternate,!(r&30)&&!cB(i)&&(t=pg(e,r),t===2&&(o=s1(e),o!==0&&(r=o,t=D1(e,o))),t===1))throw n=Hf,Ra(e,0),rs(e,r),_r(e,rn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:va(e,hr,fo);break;case 3:if(rs(e,r),(r&130023424)===r&&(t=iS+500-rn(),10<t)){if(Km(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ur(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=p1(va.bind(null,e,hr,fo),t);break}va(e,hr,fo);break;case 4:if(rs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-xi(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lB(r/1960))-r,10<r){e.timeoutHandle=p1(va.bind(null,e,hr,fo),r);break}va(e,hr,fo);break;case 5:va(e,hr,fo);break;default:throw Error(Ee(329))}}}return _r(e,rn()),e.callbackNode===n?p4.bind(null,e):null}function D1(e,t){var n=of;return e.current.memoizedState.isDehydrated&&(Ra(e,t).flags|=256),e=pg(e,t),e!==2&&(t=hr,hr=n,t!==null&&A1(t)),e}function A1(e){hr===null?hr=e:hr.push.apply(hr,e)}function cB(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Oi(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rs(e,t){for(t&=~rS,t&=~iy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xi(t),r=1<<n;e[n]=-1,t&=~r}}function aP(e){if(dt&6)throw Error(Ee(327));ic();var t=Km(e,0);if(!(t&1))return _r(e,rn()),null;var n=pg(e,t);if(e.tag!==0&&n===2){var r=s1(e);r!==0&&(t=r,n=D1(e,r))}if(n===1)throw n=Hf,Ra(e,0),rs(e,t),_r(e,rn()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,va(e,hr,fo),_r(e,rn()),null}function oS(e,t){var n=dt;dt|=1;try{return e(t)}finally{dt=n,dt===0&&(wc=rn()+500,ey&&Hs())}}function Wa(e){ss!==null&&ss.tag===0&&!(dt&6)&&ic();var t=dt;dt|=1;var n=Xr.transition,r=xt;try{if(Xr.transition=null,xt=1,e)return e()}finally{xt=r,Xr.transition=n,dt=t,!(dt&6)&&Hs()}}function sS(){Cr=Gl.current,Dt(Gl)}function Ra(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jj(n)),dn!==null)for(n=dn.return;n!==null;){var r=n;switch(Bx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tg();break;case 3:_c(),Dt(vr),Dt(Jn),Zx();break;case 5:Gx(r);break;case 4:_c();break;case 13:Dt(Ht);break;case 19:Dt(Ht);break;case 10:Hx(r.type._context);break;case 22:case 23:sS()}n=n.return}if(On=e,dn=e=ws(e.current,null),Un=Cr=t,vn=0,Hf=null,rS=iy=Ha=0,hr=of=null,Oa!==null){for(t=0;t<Oa.length;t++)if(n=Oa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Oa=null}return e}function m4(e,t){do{var n=dn;try{if(Vx(),Up.current=ug,cg){for(var r=Yt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cg=!1}if(Va=0,En=mn=Yt=null,nf=!1,zf=0,nS.current=null,n===null||n.return===null){vn=1,Hf=t,dn=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Un,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=a,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=GO(s);if(m!==null){m.flags&=-257,ZO(m,s,a,o,t),m.mode&1&&qO(o,c,t),t=m,l=c;var g=t.updateQueue;if(g===null){var _=new Set;_.add(l),t.updateQueue=_}else g.add(l);break e}else{if(!(t&1)){qO(o,c,t),aS();break e}l=Error(Ee(426))}}else if(jt&&a.mode&1){var x=GO(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),ZO(x,s,a,o,t),zx(bc(l,a));break e}}o=l=bc(l,a),vn!==4&&(vn=2),of===null?of=[o]:of.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=QD(o,l,t);BO(o,v);break e;case 1:a=l;var b=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(_s===null||!_s.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=JD(o,a,t);BO(o,E);break e}}o=o.return}while(o!==null)}y4(n)}catch(P){t=P,dn===n&&n!==null&&(dn=n=n.return);continue}break}while(1)}function g4(){var e=fg.current;return fg.current=ug,e===null?ug:e}function aS(){(vn===0||vn===3||vn===2)&&(vn=4),On===null||!(Ha&268435455)&&!(iy&268435455)||rs(On,Un)}function pg(e,t){var n=dt;dt|=2;var r=g4();(On!==e||Un!==t)&&(fo=null,Ra(e,t));do try{uB();break}catch(i){m4(e,i)}while(1);if(Vx(),dt=n,fg.current=r,dn!==null)throw Error(Ee(261));return On=null,Un=0,vn}function uB(){for(;dn!==null;)v4(dn)}function fB(){for(;dn!==null&&!I7();)v4(dn)}function v4(e){var t=b4(e.alternate,e,Cr);e.memoizedProps=e.pendingProps,t===null?y4(e):dn=t,nS.current=null}function y4(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=iB(n,t),n!==null){n.flags&=32767,dn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vn=6,dn=null;return}}else if(n=rB(n,t,Cr),n!==null){dn=n;return}if(t=t.sibling,t!==null){dn=t;return}dn=t=e}while(t!==null);vn===0&&(vn=5)}function va(e,t,n){var r=xt,i=Xr.transition;try{Xr.transition=null,xt=1,dB(e,t,n,r)}finally{Xr.transition=i,xt=r}return null}function dB(e,t,n,r){do ic();while(ss!==null);if(dt&6)throw Error(Ee(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ee(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Y7(e,o),e===On&&(dn=On=null,Un=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Gh||(Gh=!0,w4(Zm,function(){return ic(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Xr.transition,Xr.transition=null;var s=xt;xt=1;var a=dt;dt|=4,nS.current=null,sB(e,n),d4(n,e),Nj(d1),Xm=!!f1,d1=f1=null,e.current=n,aB(n),F7(),dt=a,xt=s,Xr.transition=o}else e.current=n;if(Gh&&(Gh=!1,ss=e,hg=i),o=e.pendingLanes,o===0&&(_s=null),B7(n.stateNode),_r(e,rn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(dg)throw dg=!1,e=N1,N1=null,e;return hg&1&&e.tag!==0&&ic(),o=e.pendingLanes,o&1?e===L1?sf++:(sf=0,L1=e):sf=0,Hs(),null}function ic(){if(ss!==null){var e=XL(hg),t=Xr.transition,n=xt;try{if(Xr.transition=null,xt=16>e?16:e,ss===null)var r=!1;else{if(e=ss,ss=null,hg=0,dt&6)throw Error(Ee(331));var i=dt;for(dt|=4,ze=e.current;ze!==null;){var o=ze,s=o.child;if(ze.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(ze=c;ze!==null;){var f=ze;switch(f.tag){case 0:case 11:case 15:rf(8,f,o)}var h=f.child;if(h!==null)h.return=f,ze=h;else for(;ze!==null;){f=ze;var p=f.sibling,m=f.return;if(c4(f),f===c){ze=null;break}if(p!==null){p.return=m,ze=p;break}ze=m}}}var g=o.alternate;if(g!==null){var _=g.child;if(_!==null){g.child=null;do{var x=_.sibling;_.sibling=null,_=x}while(_!==null)}}ze=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,ze=s;else e:for(;ze!==null;){if(o=ze,o.flags&2048)switch(o.tag){case 0:case 11:case 15:rf(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,ze=v;break e}ze=o.return}}var b=e.current;for(ze=b;ze!==null;){s=ze;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,ze=w;else e:for(s=b;ze!==null;){if(a=ze,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ry(9,a)}}catch(P){Zt(a,a.return,P)}if(a===s){ze=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,ze=E;break e}ze=a.return}}if(dt=i,Hs(),Gi&&typeof Gi.onPostCommitFiberRoot=="function")try{Gi.onPostCommitFiberRoot(Zv,e)}catch{}r=!0}return r}finally{xt=n,Xr.transition=t}}return!1}function lP(e,t,n){t=bc(n,t),t=QD(e,t,1),e=ys(e,t,1),t=ur(),e!==null&&(xd(e,1,t),_r(e,t))}function Zt(e,t,n){if(e.tag===3)lP(e,e,n);else for(;t!==null;){if(t.tag===3){lP(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_s===null||!_s.has(r))){e=bc(n,e),e=JD(t,e,1),t=ys(t,e,1),e=ur(),t!==null&&(xd(t,1,e),_r(t,e));break}}t=t.return}}function hB(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ur(),e.pingedLanes|=e.suspendedLanes&n,On===e&&(Un&n)===n&&(vn===4||vn===3&&(Un&130023424)===Un&&500>rn()-iS?Ra(e,0):rS|=n),_r(e,t)}function _4(e,t){t===0&&(e.mode&1?(t=$h,$h<<=1,!($h&130023424)&&($h=4194304)):t=1);var n=ur();e=To(e,t),e!==null&&(xd(e,t,n),_r(e,n))}function pB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_4(e,n)}function mB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ee(314))}r!==null&&r.delete(t),_4(e,n)}var b4;b4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,nB(e,t,n);gr=!!(e.flags&131072)}else gr=!1,jt&&t.flags&1048576&&SD(t,ig,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hp(e,t),e=t.pendingProps;var i=gc(t,Jn.current);rc(t,n),i=Xx(null,t,r,e,i,n);var o=Qx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yr(r)?(o=!0,ng(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yx(t),i.updater=ty,t.stateNode=i,i._reactInternals=t,w1(t,r,e,n),t=C1(null,t,r,!0,o,n)):(t.tag=0,jt&&o&&jx(t),ar(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=vB(r),e=hi(r,e),i){case 0:t=S1(null,t,r,e,n);break e;case 1:t=QO(null,t,r,e,n);break e;case 11:t=KO(null,t,r,e,n);break e;case 14:t=XO(null,t,r,hi(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),S1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),QO(e,t,r,i,n);case 3:e:{if(r4(t),e===null)throw Error(Ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,OD(e,t),ag(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bc(Error(Ee(423)),t),t=JO(e,t,r,n,i);break e}else if(r!==i){i=bc(Error(Ee(424)),t),t=JO(e,t,r,n,i);break e}else for(Or=vs(t.stateNode.containerInfo.firstChild),kr=t,jt=!0,gi=null,n=RD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vc(),r===i){t=Oo(e,t,n);break e}ar(e,t,r,n)}t=t.child}return t;case 5:return ND(t),e===null&&y1(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,h1(r,i)?s=null:o!==null&&h1(r,o)&&(t.flags|=32),n4(e,t),ar(e,t,s,n),t.child;case 6:return e===null&&y1(t),null;case 13:return i4(e,t,n);case 4:return qx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yc(t,null,r,n):ar(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),KO(e,t,r,i,n);case 7:return ar(e,t,t.pendingProps,n),t.child;case 8:return ar(e,t,t.pendingProps.children,n),t.child;case 12:return ar(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,kt(og,r._currentValue),r._currentValue=s,o!==null)if(Oi(o.value,s)){if(o.children===i.children&&!vr.current){t=Oo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=xo(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),_1(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Ee(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),_1(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ar(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rc(t,n),i=ei(i),r=r(i),t.flags|=1,ar(e,t,r,n),t.child;case 14:return r=t.type,i=hi(r,t.pendingProps),i=hi(r.type,i),XO(e,t,r,i,n);case 15:return e4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Hp(e,t),t.tag=1,yr(r)?(e=!0,ng(t)):e=!1,rc(t,n),kD(t,r,i),w1(t,r,i,n),C1(null,t,r,!0,e,n);case 19:return o4(e,t,n);case 22:return t4(e,t,n)}throw Error(Ee(156,t.tag))};function w4(e,t){return qL(e,t)}function gB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(e,t,n,r){return new gB(e,t,n,r)}function lS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vB(e){if(typeof e=="function")return lS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ox)return 11;if(e===Px)return 14}return 2}function ws(e,t){var n=e.alternate;return n===null?(n=Gr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qp(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")lS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $l:return Na(n.children,i,o,t);case Tx:s=8,i|=8;break;case Wb:return e=Gr(12,n,t,i|2),e.elementType=Wb,e.lanes=o,e;case Yb:return e=Gr(13,n,t,i),e.elementType=Yb,e.lanes=o,e;case qb:return e=Gr(19,n,t,i),e.elementType=qb,e.lanes=o,e;case ML:return oy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case PL:s=10;break e;case kL:s=9;break e;case Ox:s=11;break e;case Px:s=14;break e;case Xo:s=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=Gr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Na(e,t,n,r){return e=Gr(7,e,r,t),e.lanes=n,e}function oy(e,t,n,r){return e=Gr(22,e,r,t),e.elementType=ML,e.lanes=n,e.stateNode={isHidden:!1},e}function E0(e,t,n){return e=Gr(6,e,null,t),e.lanes=n,e}function T0(e,t,n){return t=Gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yB(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=s0(0),this.expirationTimes=s0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cS(e,t,n,r,i,o,s,a,l){return e=new yB(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Gr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yx(o),e}function _B(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function x4(e){if(!e)return Ms;e=e._reactInternals;e:{if(ol(e)!==e||e.tag!==1)throw Error(Ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ee(171))}if(e.tag===1){var n=e.type;if(yr(n))return wD(e,n,t)}return t}function S4(e,t,n,r,i,o,s,a,l){return e=cS(n,r,!0,e,i,o,s,a,l),e.context=x4(null),n=e.current,r=ur(),i=bs(n),o=xo(r,i),o.callback=t??null,ys(n,o,i),e.current.lanes=i,xd(e,i,r),_r(e,r),e}function sy(e,t,n,r){var i=t.current,o=ur(),s=bs(i);return n=x4(n),t.context===null?t.context=n:t.pendingContext=n,t=xo(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ys(i,t,s),e!==null&&(Si(e,i,s,o),zp(e,i,s)),s}function mg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uS(e,t){cP(e,t),(e=e.alternate)&&cP(e,t)}function bB(){return null}var C4=typeof reportError=="function"?reportError:function(e){console.error(e)};function fS(e){this._internalRoot=e}ay.prototype.render=fS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));sy(e,t,null,null)};ay.prototype.unmount=fS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wa(function(){sy(null,e,null,null)}),t[Eo]=null}};function ay(e){this._internalRoot=e}ay.prototype.unstable_scheduleHydration=function(e){if(e){var t=eD();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ns.length&&t!==0&&t<ns[n].priority;n++);ns.splice(n,0,e),n===0&&nD(e)}};function dS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ly(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function uP(){}function wB(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=mg(s);o.call(c)}}var s=S4(t,r,e,0,null,!1,!1,"",uP);return e._reactRootContainer=s,e[Eo]=s.current,If(e.nodeType===8?e.parentNode:e),Wa(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=mg(l);a.call(c)}}var l=cS(e,0,!1,null,null,!1,!1,"",uP);return e._reactRootContainer=l,e[Eo]=l.current,If(e.nodeType===8?e.parentNode:e),Wa(function(){sy(t,l,n,r)}),l}function cy(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=mg(s);a.call(l)}}sy(t,s,e,i)}else s=wB(n,t,e,i,r);return mg(s)}QL=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ju(t.pendingLanes);n!==0&&(Rx(t,n|1),_r(t,rn()),!(dt&6)&&(wc=rn()+500,Hs()))}break;case 13:Wa(function(){var r=To(e,1);if(r!==null){var i=ur();Si(r,e,1,i)}}),uS(e,1)}};Nx=function(e){if(e.tag===13){var t=To(e,134217728);if(t!==null){var n=ur();Si(t,e,134217728,n)}uS(e,134217728)}};JL=function(e){if(e.tag===13){var t=bs(e),n=To(e,t);if(n!==null){var r=ur();Si(n,e,t,r)}uS(e,t)}};eD=function(){return xt};tD=function(e,t){var n=xt;try{return xt=e,t()}finally{xt=n}};r1=function(e,t,n){switch(t){case"input":if(Kb(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Jv(r);if(!i)throw Error(Ee(90));NL(r),Kb(r,i)}}}break;case"textarea":DL(e,n);break;case"select":t=n.value,t!=null&&Jl(e,!!n.multiple,t,!1)}};zL=oS;UL=Wa;var xB={usingClientEntryPoint:!1,Events:[Cd,Ul,Jv,jL,BL,oS]},Su={findFiberByHostInstance:Ta,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},SB={bundleType:Su.bundleType,version:Su.version,rendererPackageName:Su.rendererPackageName,rendererConfig:Su.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ao.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=WL(e),e===null?null:e.stateNode},findFiberByHostInstance:Su.findFiberByHostInstance||bB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{Zv=Zh.inject(SB),Gi=Zh}catch{}}Dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xB;Dr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dS(t))throw Error(Ee(200));return _B(e,t,null,n)};Dr.createRoot=function(e,t){if(!dS(e))throw Error(Ee(299));var n=!1,r="",i=C4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=cS(e,1,!1,null,null,n,!1,r,i),e[Eo]=t.current,If(e.nodeType===8?e.parentNode:e),new fS(t)};Dr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ee(188)):(e=Object.keys(e).join(","),Error(Ee(268,e)));return e=WL(t),e=e===null?null:e.stateNode,e};Dr.flushSync=function(e){return Wa(e)};Dr.hydrate=function(e,t,n){if(!ly(t))throw Error(Ee(200));return cy(null,e,t,!0,n)};Dr.hydrateRoot=function(e,t,n){if(!dS(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=C4;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=S4(t,null,e,1,n??null,i,!1,o,s),e[Eo]=t.current,If(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ay(t)};Dr.render=function(e,t,n){if(!ly(t))throw Error(Ee(200));return cy(null,e,t,!1,n)};Dr.unmountComponentAtNode=function(e){if(!ly(e))throw Error(Ee(40));return e._reactRootContainer?(Wa(function(){cy(null,null,e,!1,function(){e._reactRootContainer=null,e[Eo]=null})}),!0):!1};Dr.unstable_batchedUpdates=oS;Dr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ly(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return cy(e,t,n,!1,r)};Dr.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Dr})(b7);const La=gL(Ba);var E4,fP=Ba;E4=fP.createRoot,fP.hydrateRoot;var gg={},CB={get exports(){return gg},set exports(e){gg=e}},T4={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.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 xc=H;function EB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TB=typeof Object.is=="function"?Object.is:EB,OB=xc.useState,PB=xc.useEffect,kB=xc.useLayoutEffect,MB=xc.useDebugValue;function RB(e,t){var n=t(),r=OB({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return kB(function(){i.value=n,i.getSnapshot=t,O0(i)&&o({inst:i})},[e,n,t]),PB(function(){return O0(i)&&o({inst:i}),e(function(){O0(i)&&o({inst:i})})},[e]),MB(n),n}function O0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!TB(e,n)}catch{return!0}}function NB(e,t){return t()}var LB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NB:RB;T4.useSyncExternalStore=xc.useSyncExternalStore!==void 0?xc.useSyncExternalStore:LB;(function(e){e.exports=T4})(CB);var dP={},DB={get exports(){return dP},set exports(e){dP=e}},O4={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var uy=H,AB=gg;function IB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FB=typeof Object.is=="function"?Object.is:IB,$B=AB.useSyncExternalStore,jB=uy.useRef,BB=uy.useEffect,zB=uy.useMemo,UB=uy.useDebugValue;O4.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=jB(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=zB(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&s.hasValue){var g=s.value;if(i(g,m))return h=g}return h=m}if(g=h,FB(f,m))return g;var _=r(m);return i!==void 0&&i(g,_)?g:(f=m,h=_)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var a=$B(e,o[0],o[1]);return BB(function(){s.hasValue=!0,s.value=a},[a]),UB(a),a};(function(e){e.exports=O4})(DB);function VB(e){e()}let P4=VB;const HB=e=>P4=e,WB=()=>P4,k4=H.createContext(null),YB=()=>{throw new Error("uSES not initialized!")};function oc(){return oc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}function hS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var I1={},qB={get exports(){return I1},set exports(e){I1=e}},St={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Pn=typeof Symbol=="function"&&Symbol.for,pS=Pn?Symbol.for("react.element"):60103,mS=Pn?Symbol.for("react.portal"):60106,fy=Pn?Symbol.for("react.fragment"):60107,dy=Pn?Symbol.for("react.strict_mode"):60108,hy=Pn?Symbol.for("react.profiler"):60114,py=Pn?Symbol.for("react.provider"):60109,my=Pn?Symbol.for("react.context"):60110,gS=Pn?Symbol.for("react.async_mode"):60111,gy=Pn?Symbol.for("react.concurrent_mode"):60111,vy=Pn?Symbol.for("react.forward_ref"):60112,yy=Pn?Symbol.for("react.suspense"):60113,GB=Pn?Symbol.for("react.suspense_list"):60120,_y=Pn?Symbol.for("react.memo"):60115,by=Pn?Symbol.for("react.lazy"):60116,ZB=Pn?Symbol.for("react.block"):60121,KB=Pn?Symbol.for("react.fundamental"):60117,XB=Pn?Symbol.for("react.responder"):60118,QB=Pn?Symbol.for("react.scope"):60119;function Ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case pS:switch(e=e.type,e){case gS:case gy:case fy:case hy:case dy:case yy:return e;default:switch(e=e&&e.$$typeof,e){case my:case vy:case by:case _y:case py:return e;default:return t}}case mS:return t}}}function M4(e){return Ir(e)===gy}St.AsyncMode=gS;St.ConcurrentMode=gy;St.ContextConsumer=my;St.ContextProvider=py;St.Element=pS;St.ForwardRef=vy;St.Fragment=fy;St.Lazy=by;St.Memo=_y;St.Portal=mS;St.Profiler=hy;St.StrictMode=dy;St.Suspense=yy;St.isAsyncMode=function(e){return M4(e)||Ir(e)===gS};St.isConcurrentMode=M4;St.isContextConsumer=function(e){return Ir(e)===my};St.isContextProvider=function(e){return Ir(e)===py};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pS};St.isForwardRef=function(e){return Ir(e)===vy};St.isFragment=function(e){return Ir(e)===fy};St.isLazy=function(e){return Ir(e)===by};St.isMemo=function(e){return Ir(e)===_y};St.isPortal=function(e){return Ir(e)===mS};St.isProfiler=function(e){return Ir(e)===hy};St.isStrictMode=function(e){return Ir(e)===dy};St.isSuspense=function(e){return Ir(e)===yy};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fy||e===gy||e===hy||e===dy||e===yy||e===GB||typeof e=="object"&&e!==null&&(e.$$typeof===by||e.$$typeof===_y||e.$$typeof===py||e.$$typeof===my||e.$$typeof===vy||e.$$typeof===KB||e.$$typeof===XB||e.$$typeof===QB||e.$$typeof===ZB)};St.typeOf=Ir;(function(e){e.exports=St})(qB);var vS=I1,JB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yS={};yS[vS.ForwardRef]=t9;yS[vS.Memo]=R4;function hP(e){return vS.isMemo(e)?R4:yS[e.$$typeof]||JB}var n9=Object.defineProperty,r9=Object.getOwnPropertyNames,pP=Object.getOwnPropertySymbols,i9=Object.getOwnPropertyDescriptor,o9=Object.getPrototypeOf,mP=Object.prototype;function N4(e,t,n){if(typeof t!="string"){if(mP){var r=o9(t);r&&r!==mP&&N4(e,r,n)}var i=r9(t);pP&&(i=i.concat(pP(t)));for(var o=hP(e),s=hP(t),a=0;a<i.length;++a){var l=i[a];if(!e9[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var c=i9(t,l);try{n9(e,l,c)}catch{}}}}return e}var gP=N4,F1={},s9={get exports(){return F1},set exports(e){F1=e}},Ct={};/**
|
||
* @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 _S=Symbol.for("react.element"),bS=Symbol.for("react.portal"),wy=Symbol.for("react.fragment"),xy=Symbol.for("react.strict_mode"),Sy=Symbol.for("react.profiler"),Cy=Symbol.for("react.provider"),Ey=Symbol.for("react.context"),a9=Symbol.for("react.server_context"),Ty=Symbol.for("react.forward_ref"),Oy=Symbol.for("react.suspense"),Py=Symbol.for("react.suspense_list"),ky=Symbol.for("react.memo"),My=Symbol.for("react.lazy"),l9=Symbol.for("react.offscreen"),c9=Symbol.for("react.module.reference");function oi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _S:switch(e=e.type,e){case wy:case Sy:case xy:case Oy:case Py:return e;default:switch(e=e&&e.$$typeof,e){case a9:case Ey:case Ty:case My:case ky:case Cy:return e;default:return t}}case bS:return t}}}Ct.ContextConsumer=Ey;Ct.ContextProvider=Cy;Ct.Element=_S;Ct.ForwardRef=Ty;Ct.Fragment=wy;Ct.Lazy=My;Ct.Memo=ky;Ct.Portal=bS;Ct.Profiler=Sy;Ct.StrictMode=xy;Ct.Suspense=Oy;Ct.SuspenseList=Py;Ct.isAsyncMode=function(){return!1};Ct.isConcurrentMode=function(){return!1};Ct.isContextConsumer=function(e){return oi(e)===Ey};Ct.isContextProvider=function(e){return oi(e)===Cy};Ct.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_S};Ct.isForwardRef=function(e){return oi(e)===Ty};Ct.isFragment=function(e){return oi(e)===wy};Ct.isLazy=function(e){return oi(e)===My};Ct.isMemo=function(e){return oi(e)===ky};Ct.isPortal=function(e){return oi(e)===bS};Ct.isProfiler=function(e){return oi(e)===Sy};Ct.isStrictMode=function(e){return oi(e)===xy};Ct.isSuspense=function(e){return oi(e)===Oy};Ct.isSuspenseList=function(e){return oi(e)===Py};Ct.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wy||e===Sy||e===xy||e===Oy||e===Py||e===l9||typeof e=="object"&&e!==null&&(e.$$typeof===My||e.$$typeof===ky||e.$$typeof===Cy||e.$$typeof===Ey||e.$$typeof===Ty||e.$$typeof===c9||e.getModuleId!==void 0)};Ct.typeOf=oi;(function(e){e.exports=Ct})(s9);const u9=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function f9(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,c,f,h,p;function m(b,w){return l=b,c=w,f=e(l,c),h=t(r,c),p=n(f,h,c),a=!0,p}function g(){return f=e(l,c),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function _(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function x(){const b=e(l,c),w=!s(b,f);return f=b,w&&(p=n(f,h,c)),p}function v(b,w){const E=!o(w,c),P=!i(b,l,w,c);return l=b,c=w,E&&P?g():E?_():P?x():p}return function(w,E){return a?v(w,E):m(w,E)}}function d9(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=hS(t,u9);const s=n(e,o),a=r(e,o),l=i(e,o);return f9(s,a,l,e,o)}function h9(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function $1(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function vP(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):e.length!==1}function L4(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=vP(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=vP(c),c=o(a,l)),c},o}}function wS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function p9(e){return e&&typeof e=="object"?$1(t=>h9(e,t)):e?typeof e=="function"?L4(e):wS(e,"mapDispatchToProps"):$1(t=>({dispatch:t}))}function m9(e){return e?typeof e=="function"?L4(e):wS(e,"mapStateToProps"):$1(()=>({}))}function g9(e,t,n){return oc({},n,e,t)}function v9(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function y9(e){return e?typeof e=="function"?v9(e):wS(e,"mergeProps"):()=>g9}function _9(){const e=WB();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const yP={notify(){},get:()=>[]};function D4(e,t){let n,r=yP;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=_9())}function c(){n&&(n(),n=void 0,r.clear(),r=yP)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const b9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vg=b9?H.useLayoutEffect:H.useEffect;function _P(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function P0(e,t){if(_P(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])||!_P(e[n[i]],t[n[i]]))return!1;return!0}const w9=["reactReduxForwardedRef"];let A4=YB;const x9=e=>{A4=e},S9=[null,null];function C9(e,t,n){vg(()=>e(...t),n)}function E9(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function T9(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const m=()=>{if(h||!a.current)return;const _=t.getState();let x,v;try{x=r(_,i.current)}catch(b){v=b,p=b}v||(p=null),x===o.current?s.current||c():(o.current=x,l.current=x,s.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function O9(e,t){return e===t}function P9(e,t,n,{pure:r,areStatesEqual:i=O9,areOwnPropsEqual:o=P0,areStatePropsEqual:s=P0,areMergedPropsEqual:a=P0,forwardRef:l=!1,context:c=k4}={}){const f=c,h=m9(e),p=p9(t),m=y9(n),g=Boolean(e);return x=>{const v=x.displayName||x.name||"Component",b=`Connect(${v})`,w={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:v,WrappedComponent:x,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function E(N){const[A,V,I]=H.useMemo(()=>{const{reactReduxForwardedRef:Q}=N,se=hS(N,w9);return[N.context,Q,se]},[N]),Y=H.useMemo(()=>A&&A.Consumer&&F1.isContextConsumer(z.createElement(A.Consumer,null))?A:f,[A,f]),q=H.useContext(Y),X=Boolean(N.store)&&Boolean(N.store.getState)&&Boolean(N.store.dispatch),Z=Boolean(q)&&Boolean(q.store),J=X?N.store:q.store,oe=Z?q.getServerState:J.getState,ce=H.useMemo(()=>d9(J.dispatch,w),[J]),[K,$]=H.useMemo(()=>{if(!g)return S9;const Q=D4(J,X?void 0:q.subscription),se=Q.notifyNestedSubs.bind(Q);return[Q,se]},[J,X,q]),D=H.useMemo(()=>X?q:oc({},q,{subscription:K}),[X,q,K]),B=H.useRef(),ne=H.useRef(I),W=H.useRef(),G=H.useRef(!1);H.useRef(!1);const re=H.useRef(!1),le=H.useRef();vg(()=>(re.current=!0,()=>{re.current=!1}),[]);const me=H.useMemo(()=>()=>W.current&&I===ne.current?W.current:ce(J.getState(),I),[J,I]),O=H.useMemo(()=>se=>K?T9(g,J,K,ce,ne,B,G,re,W,$,se):()=>{},[K]);C9(E9,[ne,B,G,I,W,$]);let R;try{R=A4(O,me,oe?()=>ce(oe(),I):me)}catch(Q){throw le.current&&(Q.message+=`
|
||
The error may be correlated with this previous error:
|
||
${le.current.stack}
|
||
|
||
`),Q}vg(()=>{le.current=void 0,W.current=void 0,B.current=R});const F=H.useMemo(()=>z.createElement(x,oc({},R,{ref:V})),[V,x,R]);return H.useMemo(()=>g?z.createElement(Y.Provider,{value:D},F):F,[Y,F,D])}const k=z.memo(E);if(k.WrappedComponent=x,k.displayName=E.displayName=b,l){const A=z.forwardRef(function(I,Y){return z.createElement(k,oc({},I,{reactReduxForwardedRef:Y}))});return A.displayName=b,A.WrappedComponent=x,gP(A,x)}return gP(k,x)}}function k9({store:e,context:t,children:n,serverState:r}){const i=H.useMemo(()=>{const a=D4(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=H.useMemo(()=>e.getState(),[e]);vg(()=>{const{subscription:a}=i;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[i,o]);const s=t||k4;return z.createElement(s.Provider,{value:i},n)}x9(gg.useSyncExternalStore);HB(Ba.unstable_batchedUpdates);/**
|
||
* @remix-run/router v1.0.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function yg(){return yg=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},yg.apply(this,arguments)}var as;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(as||(as={}));const bP="popstate";function M9(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return j1("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:B1(i)}return N9(t,n,null,e)}function R9(){return Math.random().toString(36).substr(2,8)}function wP(e){return{usr:e.state,key:e.key}}function j1(e,t,n,r){return n===void 0&&(n=null),yg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uc(t):t,{state:n,key:t&&t.key||r||R9()})}function B1(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Uc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function N9(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=as.Pop,l=null;function c(){a=as.Pop,l&&l({action:a,location:p.location})}function f(m,g){a=as.Push;let _=j1(p.location,m,g);n&&n(_,m);let x=wP(_),v=p.createHref(_);try{s.pushState(x,"",v)}catch{i.location.assign(v)}o&&l&&l({action:a,location:_})}function h(m,g){a=as.Replace;let _=j1(p.location,m,g);n&&n(_,m);let x=wP(_),v=p.createHref(_);s.replaceState(x,"",v),o&&l&&l({action:a,location:_})}let p={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(bP,c),l=m,()=>{i.removeEventListener(bP,c),l=null}},createHref(m){return t(i,m)},push:f,replace:h,go(m){return s.go(m)}};return p}var xP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xP||(xP={}));function L9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Uc(t):t,i=F4(r.pathname||"/",n);if(i==null)return null;let o=I4(e);D9(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=V9(o[a],i);return s}function I4(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((i,o)=>{let s={relativePath:i.path||"",caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(er(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=xs([r,s.relativePath]),l=n.concat(s);i.children&&i.children.length>0&&(er(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),I4(i.children,t,l,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:z9(a,i.index),routesMeta:l})}),t}function D9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const A9=/^:\w+$/,I9=3,F9=2,$9=1,j9=10,B9=-2,SP=e=>e==="*";function z9(e,t){let n=e.split("/"),r=n.length;return n.some(SP)&&(r+=B9),t&&(r+=F9),n.filter(i=>!SP(i)).reduce((i,o)=>i+(A9.test(o)?I9:o===""?$9:j9),r)}function U9(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 V9(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=xS({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=a.route;o.push({params:r,pathname:xs([i,f.pathname]),pathnameBase:G9(xs([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=xs([i,f.pathnameBase]))}return o}function xS(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=H9(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,f,h)=>{if(f==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=W9(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function H9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$4(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,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[@.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),r]}function W9(e,t){try{return decodeURIComponent(e)}catch(n){return $4(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function F4(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 er(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Y9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Uc(e):e;return{pathname:n?n.startsWith("/")?n:q9(n,t):t,search:Z9(r),hash:K9(i)}}function q9(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 j4(e,t,n,r){r===void 0&&(r=!1);let i=typeof e=="string"?Uc(e):yg({},e),o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=Y9(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const xs=e=>e.join("/").replace(/\/\/+/g,"/"),G9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class X9{constructor(t,n,r){this.status=t,this.statusText=n||"",this.data=r}}function Q9(e){return e instanceof X9}/**
|
||
* React Router v6.4.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function z1(){return z1=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},z1.apply(this,arguments)}function J9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const ez=typeof Object.is=="function"?Object.is:J9,{useState:tz,useEffect:nz,useLayoutEffect:rz,useDebugValue:iz}=Ub;function oz(e,t,n){const r=t(),[{inst:i},o]=tz({inst:{value:r,getSnapshot:t}});return rz(()=>{i.value=r,i.getSnapshot=t,k0(i)&&o({inst:i})},[e,r,t]),nz(()=>(k0(i)&&o({inst:i}),e(()=>{k0(i)&&o({inst:i})})),[e]),iz(r),r}function k0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!ez(n,r)}catch{return!0}}function sz(e,t,n){return t()}const az=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lz=!az,cz=lz?sz:oz;"useSyncExternalStore"in Ub&&(e=>e.useSyncExternalStore)(Ub);const uz=H.createContext(null),fz=H.createContext(null),Ry=H.createContext(null),SS=H.createContext(null),Ny=H.createContext(null),Vc=H.createContext({outlet:null,matches:[]}),B4=H.createContext(null);function dz(e,t){let{relative:n}=t===void 0?{}:t;sl()||er(!1);let{basename:r,navigator:i}=H.useContext(SS),{hash:o,pathname:s,search:a}=_g(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:xs([r,s])),i.createHref({pathname:l,search:a,hash:o})}function sl(){return H.useContext(Ny)!=null}function Wn(){return sl()||er(!1),H.useContext(Ny).location}function hz(e){sl()||er(!1);let{pathname:t}=Wn();return H.useMemo(()=>xS(e,t),[t,e])}function z4(e){return e.filter((t,n)=>n===0||!t.route.index&&t.pathnameBase!==e[n-1].pathnameBase)}function Io(){sl()||er(!1);let{basename:e,navigator:t}=H.useContext(SS),{matches:n}=H.useContext(Vc),{pathname:r}=Wn(),i=JSON.stringify(z4(n).map(a=>a.pathnameBase)),o=H.useRef(!1);return H.useEffect(()=>{o.current=!0}),H.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=j4(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:xs([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function Ws(){let{matches:e}=H.useContext(Vc),t=e[e.length-1];return t?t.params:{}}function _g(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=H.useContext(Vc),{pathname:i}=Wn(),o=JSON.stringify(z4(r).map(s=>s.pathnameBase));return H.useMemo(()=>j4(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function pz(e,t){sl()||er(!1);let n=H.useContext(Ry),{matches:r}=H.useContext(Vc),i=r[r.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Wn(),l;if(t){var c;let g=typeof t=="string"?Uc(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||er(!1),l=g}else l=a;let f=l.pathname||"/",h=s==="/"?f:f.slice(s.length)||"/",p=L9(e,{pathname:h}),m=yz(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:xs([s,g.pathname]),pathnameBase:g.pathnameBase==="/"?s:xs([s,g.pathnameBase])})),r,n||void 0);return t?H.createElement(Ny.Provider,{value:{location:z1({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:as.Pop}},m):m}function mz(){let e=bz(),t=Q9(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unhandled Thrown Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:i},n):null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:o},"errorElement")," props on ",H.createElement("code",{style:o},"<Route>")))}class gz extends H.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?H.createElement(B4.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function vz(e){let{routeContext:t,match:n,children:r}=e,i=H.useContext(uz);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),H.createElement(Vc.Provider,{value:t},r)}function yz(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));o>=0||er(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,s,a)=>{let l=s.route.id?i==null?void 0:i[s.route.id]:null,c=n?s.route.errorElement||H.createElement(mz,null):null,f=()=>H.createElement(vz,{match:s,routeContext:{outlet:o,matches:t.concat(r.slice(0,a+1))}},l?c:s.route.element!==void 0?s.route.element:o);return n&&(s.route.errorElement||a===0)?H.createElement(gz,{location:n.location,component:c,error:l,children:f()}):f()},null)}var U1;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(U1||(U1={}));function _z(e){let t=H.useContext(Ry);return t||er(!1),t}function bz(){var e;let t=H.useContext(B4),n=_z(U1.UseRouteError),r=H.useContext(Vc),i=r.matches[r.matches.length-1];return t||(r||er(!1),i.route.id||er(!1),(e=n.errors)==null?void 0:e[i.route.id])}function CS(e){let{to:t,replace:n,state:r,relative:i}=e;sl()||er(!1);let o=H.useContext(Ry),s=Io();return H.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function _t(e){er(!1)}function wz(e){let{basename:t="/",children:n=null,location:r,navigationType:i=as.Pop,navigator:o,static:s=!1}=e;sl()&&er(!1);let a=t.replace(/^\/*/,"/"),l=H.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Uc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=H.useMemo(()=>{let _=F4(c,a);return _==null?null:{pathname:_,search:f,hash:h,state:p,key:m}},[a,c,f,h,p,m]);return g==null?null:H.createElement(SS.Provider,{value:l},H.createElement(Ny.Provider,{children:n,value:{location:g,navigationType:i}}))}function Ly(e){let{children:t,location:n}=e,r=H.useContext(fz),i=r&&!t?r.router.routes:V1(t);return pz(i,n)}var CP;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(CP||(CP={}));new Promise(()=>{});function V1(e,t){t===void 0&&(t=[]);let n=[];return H.Children.forEach(e,(r,i)=>{if(!H.isValidElement(r))return;if(r.type===H.Fragment){n.push.apply(n,V1(r.props.children,t));return}r.type!==_t&&er(!1);let o=[...t,i],s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=V1(r.props.children,o)),n.push(s)}),n}/**
|
||
* React Router DOM v6.4.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function bg(){return bg=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},bg.apply(this,arguments)}function U4(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sz(e,t){return e.button===0&&(!t||t==="_self")&&!xz(e)}const Cz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Ez=["aria-current","caseSensitive","className","end","style","to","children"];function Tz(e){let{basename:t,children:n,window:r}=e,i=H.useRef();i.current==null&&(i.current=M9({window:r,v5Compat:!0}));let o=i.current,[s,a]=H.useState({action:o.action,location:o.location});return H.useLayoutEffect(()=>o.listen(a),[o]),H.createElement(wz,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const It=H.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=U4(t,Cz),p=dz(c,{relative:i}),m=Oz(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function g(_){r&&r(_),_.defaultPrevented||m(_)}return H.createElement("a",bg({},h,{href:p,onClick:o?r:g,ref:n,target:l}))}),V4=H.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,children:c}=t,f=U4(t,Ez),h=_g(l),p=hz({path:h.pathname,end:s,caseSensitive:i}),m=H.useContext(Ry),g=m==null?void 0:m.navigation.location,_=_g(g||""),v=H.useMemo(()=>g?xS({path:h.pathname,end:s,caseSensitive:i},_.pathname):null,[g,h.pathname,i,s,_.pathname])!=null,b=p!=null,w=b?r:void 0,E;typeof o=="function"?E=o({isActive:b,isPending:v}):E=[o,b?"active":null,v?"pending":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:b,isPending:v}):a;return H.createElement(It,bg({},f,{"aria-current":w,className:E,ref:n,style:P,to:l}),typeof c=="function"?c({isActive:b,isPending:v}):c)});function Oz(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Io(),l=Wn(),c=_g(e,{relative:s});return H.useCallback(f=>{if(Sz(f,n)){f.preventDefault();let h=r!==void 0?r:B1(l)===B1(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const Pz="shlink-web-client",kz="A React-based progressive web application for shlink",Mz="/shlink-web-client/feature/vite",Rz="https://github.com/shlinkio/shlink-web-client",Nz="MIT",Lz={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",start:"vite serve --host=0.0.0.0",build:"tsc && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs","build:serve":"serve -p 5000 ./build",test:"jest --env=jsdom --colors","test:coverage":"npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary","test:ci":"npm run test:coverage -- --coverageReporters=clover --ci","test:pretty":"npm run test:coverage -- --coverageReporters=html","test:verbose":"npm run test -- --verbose",mutate:"./node_modules/.bin/stryker run --concurrency 4 --ignoreStatic"},Dz={"@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.18.6","@fortawesome/fontawesome-free":"^6.2.0","@fortawesome/fontawesome-svg-core":"^6.2.0","@fortawesome/free-regular-svg-icons":"^6.2.0","@fortawesome/free-solid-svg-icons":"^6.2.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.0",bootstrap:"^5.2.2",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^3.9.1",classnames:"^2.3.1","compare-versions":"^5.0.1",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.2",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^4.3.1","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.0.0","react-leaflet":"^4.1.0","react-redux":"^8.0.4","react-router-dom":"^6.4.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.4",redux:"^4.2.0","redux-localstorage-simple":"^2.5.1","redux-thunk":"^2.4.1",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},Az={"@shlinkio/eslint-config-js-coding-standard":"~2.0.2","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@stryker-mutator/core":"^6.2.2","@stryker-mutator/jest-runner":"^6.2.2","@stryker-mutator/typescript-checker":"^6.2.2","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^14.4.3","@types/jest":"^29.1.1","@types/json2csv":"^5.0.3","@types/leaflet":"^1.8.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.21","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.4.2","@types/react-dom":"^18.0.6","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^3.0.0","adm-zip":"^0.5.9","babel-jest":"^29.3.1",chalk:"^5.0.1",eslint:"^8.24.0","identity-obj-proxy":"^3.0.0",jest:"^29.1.2","jest-canvas-mock":"^2.4.0","jest-environment-jsdom":"^29.1.2","resize-observer-polyfill":"^1.5.1",sass:"^1.55.0",serve:"^14.1.1","stryker-cli":"^1.0.2",stylelint:"^14.13.0","ts-mockery":"^1.2.0",typescript:"^4.8.4",vite:"^4.0.3"},Iz=[">0.2%","not dead","not ie <= 11","not op_mini all"],H4={name:Pz,description:kz,private:!1,homepage:Mz,repository:Rz,license:Nz,scripts:Lz,dependencies:Dz,devDependencies:Az,browserslist:Iz};var Pi,Ji=".",W4="function",Y4="string",q4="__global__",ES="Provider",Fz=0,TS=Array.prototype.slice,$z=function(t,n){var r=t[n];if(r===void 0&&Pi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Dy=function(t){var n;return this.nested[t]||(n=Pi.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},G4=function(t){return t.split(Ji).reduce($z,this)},jz=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var a=0,l=function(f){if(f)throw f;t[a]&&t[a++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},Bz=function(t,n){var r,i;return typeof t===W4&&(n=t,t=q4),r=t.split(Ji),i=r.shift(),r.length?Dy.call(this,i).middleware(r.join(Ji),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},zz=function(t,n){return n(t)},EP=function(t,n){return(t[n]||[]).concat(t.__global__||[])},Uz=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+ES,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=EP(s,t).reduce(zz,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:jz(EP(a,t),t,f,o)}},Object.defineProperties(o,i),this},Z4=function(t,n){var r,i;return r=t.split(Ji),this.providerMap[t]&&r.length===1&&!this.container[t+ES]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Dy.call(this,i).provider(r.join(Ji),n),this):Uz.call(this,i,n))},OS=function(t,n){return Z4.call(this,t,function(){this.$get=n})},K4=function(t,n,r){var i=arguments.length>3?TS.call(arguments,3):[],o=this;return OS.call(this,t,function(){var a=n,l=i.map(G4,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},Vz=function(t,n){return K4.apply(this,[t,n,!0].concat(TS.call(arguments,2)))},Hz=function(t,n){return K4.apply(this,[t,n,!1].concat(TS.call(arguments,2)))},X4=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},Q4=function(t,n){var r=t[n];return r||(r={},X4.call(t,n,r)),r},Wz=function(t,n){var r;return r=t.split(Ji),t=r.pop(),X4.call(r.reduce(Q4,this.container),t,n),this},Yz=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},qz=function(t,n){var r=t.split(Ji);return t=r.pop(),Yz.call(r.reduce(Q4,this.container),t,n),this},J4=function(t,n){var r,i;return typeof t===W4&&(n=t,t=q4),r=t.split(Ji),i=r.shift(),r.length?Dy.call(this,i).decorator(r.join(Ji),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},Gz=function(t){return this.deferred.push(t),this},Zz=function(t){return(t||[]).map(G4,this.container)},Kz=function(t,n){return OS.call(this,t,function(i){return{instance:n.bind(n,i)}})},Xz=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},PS=function(t){return Object.keys(t||this.container||{}).filter(Xz)},wg={},Qz=function(t){var n;return typeof t===Y4?(n=wg[t],n||(wg[t]=n=new Pi,n.constant("BOTTLE_NAME",t)),n):new Pi},Jz=function(t){typeof t===Y4?delete wg[t]:wg={}},eA=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},TP=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+ES]},eU=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(Ji);s.length>1&&s.forEach(TP,Dy.call(this,s[0])),TP.call(this,o),this.provider(o,n[o])}},this)},tU=function(t){return this.deferred.forEach(function(r){r(t)}),this};Pi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=Fz++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:J4.bind(this),$register:eA.bind(this),$list:PS.bind(this)}};Pi.prototype={constant:qz,decorator:J4,defer:Gz,digest:Zz,factory:OS,instanceFactory:Kz,list:PS,middleware:Bz,provider:Z4,resetProviders:eU,register:eA,resolve:tU,service:Vz,serviceFactory:Hz,value:Wz};Pi.pop=Qz;Pi.clear=Jz;Pi.list=PS;Pi.config={strict:!1};const nU=Pi;var rU=function(){return!0};const kS=rU;function Nt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function wt(e){return function t(n){return arguments.length===0||Nt(n)?t:e.apply(this,arguments)}}function ft(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Nt(n)?t:wt(function(i){return e(n,i)});default:return Nt(n)&&Nt(r)?t:Nt(n)?wt(function(i){return e(i,r)}):Nt(r)?wt(function(i){return e(n,i)}):e(n,r)}}}function iU(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}function Hc(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,i){return t.apply(this,arguments)};case 4:return function(n,r,i,o){return t.apply(this,arguments)};case 5:return function(n,r,i,o,s){return t.apply(this,arguments)};case 6:return function(n,r,i,o,s,a){return t.apply(this,arguments)};case 7:return function(n,r,i,o,s,a,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,s,a,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,s,a,l,c,f){return t.apply(this,arguments)};case 10:return function(n,r,i,o,s,a,l,c,f,h){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ay(e,t,n){return function(){for(var r=[],i=0,o=e,s=0;s<t.length||i<arguments.length;){var a;s<t.length&&(!Nt(t[s])||i>=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,Nt(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Hc(o,Ay(e,r,n))}}var oU=ft(function(t,n){return t===1?wt(n):Hc(t,Ay(t,[],n))});const xg=oU;function Ys(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Nt(n)?t:ft(function(o,s){return e(n,o,s)});case 2:return Nt(n)&&Nt(r)?t:Nt(n)?ft(function(o,s){return e(o,r,s)}):Nt(r)?ft(function(o,s){return e(n,o,s)}):wt(function(o){return e(n,r,o)});default:return Nt(n)&&Nt(r)&&Nt(i)?t:Nt(n)&&Nt(r)?ft(function(o,s){return e(o,s,i)}):Nt(n)&&Nt(i)?ft(function(o,s){return e(o,r,s)}):Nt(r)&&Nt(i)?ft(function(o,s){return e(n,o,s)}):Nt(n)?wt(function(o){return e(o,r,i)}):Nt(r)?wt(function(o){return e(n,o,i)}):Nt(i)?wt(function(o){return e(n,r,o)}):e(n,r,i)}}}const Td=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function sU(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function MS(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Td(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if(sU(i)){var s=t.apply(null,r);return s(i)}}return n.apply(this,arguments)}}const Wf={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var aU=ft(function(t,n){return n>t?n:t});const tA=aU;function Gp(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function Iy(e){return Object.prototype.toString.call(e)==="[object String]"}var lU=wt(function(t){return Td(t)?!0:!t||typeof t!="object"||Iy(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const nA=lU;var cU=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function uU(e){return new cU(e)}var fU=ft(function(t,n){return Hc(t.length,function(){return t.apply(n,arguments)})});const dU=fU;function hU(e,t,n){for(var r=0,i=n.length;r<i;){if(t=e["@@transducer/step"](t,n[r]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}function OP(e,t,n){for(var r=n.next();!r.done;){if(t=e["@@transducer/step"](t,r.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function PP(e,t,n,r){return e["@@transducer/result"](n[r](dU(e["@@transducer/step"],e),t))}var kP=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Wc(e,t,n){if(typeof e=="function"&&(e=uU(e)),nA(n))return hU(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return PP(e,t,n,"fantasy-land/reduce");if(n[kP]!=null)return OP(e,t,n[kP]());if(typeof n.next=="function")return OP(e,t,n);if(typeof n.reduce=="function")return PP(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var pU=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Wf.init,e.prototype["@@transducer/result"]=Wf.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),mU=ft(function(t,n){return new pU(t,n)});const gU=mU;function Pr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var MP=Object.prototype.toString,vU=function(){return MP.call(arguments)==="[object Arguments]"?function(t){return MP.call(t)==="[object Arguments]"}:function(t){return Pr("callee",t)}}();const rA=vU;var yU=!{toString:null}.propertyIsEnumerable("toString"),RP=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],NP=function(){return arguments.propertyIsEnumerable("length")}(),_U=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},bU=wt(typeof Object.keys=="function"&&!NP?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=NP&&rA(t);for(n in t)Pr(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(yU)for(r=RP.length-1;r>=0;)n=RP[r],Pr(n,t)&&!_U(i,n)&&(i[i.length]=n),r-=1;return i});const eo=bU;var wU=ft(MS(["fantasy-land/map","map"],gU,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return xg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Wc(function(r,i){return r[i]=t(n[i]),r},{},eo(n));default:return Gp(t,n)}}));const Od=wU,H1=Number.isInteger||function(t){return t<<0===t};var xU=ft(function(t,n){var r=t<0?n.length+t:t;return Iy(n)?n.charAt(r):n[r]});const iA=xU;var SU=ft(function(t,n){return t.map(function(r){for(var i=n,o=0,s;o<r.length;){if(i==null)return;s=r[o],i=H1(s)?iA(s,i):i[s],o+=1}return i})});const CU=SU;var EU=ft(function(t,n){return CU([t],n)[0]});const TU=EU;var OU=ft(function(t,n){return TU([t],n)});const rt=OU;var PU=Ys(Wc);const RS=PU;var kU=wt(function(t){return function(){return t}});const M0=kU;var MU=ft(function(t,n){return typeof n["fantasy-land/ap"]=="function"?n["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(n):typeof t=="function"?function(r){return t(r)(n(r))}:Wc(function(r,i){return iU(r,Od(i,n))},[],t)});const RU=MU;var NU=wt(function(t){for(var n=eo(t),r=n.length,i=[],o=0;o<r;)i[o]=t[n[o]],o+=1;return i});const Yc=NU;var LU=Ys(function(t,n,r){var i={};for(var o in r)i[o]=r[o];return i[t]=n,i});const Yf=LU;var DU=wt(function(t){return t==null});const Fo=DU;var AU=Ys(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var o=!Fo(r)&&Pr(i,r)?r[i]:H1(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(H1(i)&&Td(r)){var s=[].concat(r);return s[i]=n,s}else return Yf(i,n,r)});const wl=AU;function IU(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var FU=ft(function(t,n){var r=xg(t,n);return xg(t,function(){return Wc(RU,Od(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const $U=FU;var jU=wt(function(t){return $U(t.length,t)});const BU=jU;function zU(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a<l;){if(nA(n[a]))for(r=e?t(n[a]):n[a],o=0,i=r.length;o<i;)s[s.length]=r[o],o+=1;else s[s.length]=n[a];a+=1}return s}}function UU(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var VU=wt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const Sg=VU;function oA(e,t,n,r){var i=function(s){for(var a=t.length,l=0;l<a;){if(e===t[l])return n[l];l+=1}t[l+1]=e,n[l+1]=s;for(var c in e)s[c]=r?oA(e[c],t,n,!0):e[c];return s};switch(Sg(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return UU(e);default:return e}}var HU=wt(function(t){return!t});const WU=HU;var YU=BU(WU);const qU=YU;function GU(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function NS(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return Td(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var ZU=Ys(NS("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}));const sA=ZU;var KU=wt(NS("tail",sA(1,1/0)));const XU=KU;function Ft(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Hc(arguments[0].length,RS(GU,arguments[0],XU(arguments)))}var QU=wt(function(t){return Iy(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const W1=QU;function JU(e){return e}var eV=wt(JU);const Fy=eV;function LP(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function DP(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function tV(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function nV(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const R0=typeof Object.is=="function"?Object.is:nV;function AP(e,t,n,r){var i=LP(e),o=LP(t);function s(a,l){return LS(a,l,n.slice(),r.slice())}return!DP(function(a,l){return!DP(s,l,a)},o,i)}function LS(e,t,n,r){if(R0(e,t))return!0;var i=Sg(e);if(i!==Sg(t)||e==null||t==null)return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&tV(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&R0(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!R0(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:AP(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:AP(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=eo(e);if(s.length!==eo(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!(Pr(c,t)&&LS(t[c],e[c],a,l)))return!1;o-=1}return!0}var rV=ft(function(t,n){return LS(t,n,[],[])});const DS=rV;function iV(e,t,n){var r,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n<e.length;){if(i=e[n],i===0&&1/i===r)return n;n+=1}return-1}else if(t!==t){for(;n<e.length;){if(i=e[n],typeof i=="number"&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(t===null)return e.indexOf(t,n)}for(;n<e.length;){if(DS(e[n],t))return n;n+=1}return-1}function oV(e,t){return iV(t,e,0)>=0}function N0(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var Cu=function(t){return(t<10?"0":"")+t},sV=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Cu(t.getUTCMonth()+1)+"-"+Cu(t.getUTCDate())+"T"+Cu(t.getUTCHours())+":"+Cu(t.getUTCMinutes())+":"+Cu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const aV=sV;function lV(e){return function(){return!e.apply(this,arguments)}}function cV(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}function Cg(e){return Object.prototype.toString.call(e)==="[object Object]"}var uV=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Wf.init,e.prototype["@@transducer/result"]=Wf.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),fV=ft(function(t,n){return new uV(t,n)});const dV=fV;var hV=ft(MS(["filter"],dV,function(e,t){return Cg(t)?Wc(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},eo(t)):cV(e,t)}));const aA=hV;var pV=ft(function(t,n){return aA(lV(t),n)});const Pd=pV;function lA(e,t){var n=function(s){var a=t.concat([e]);return oV(s,a)?"<Circular>":lA(s,a)},r=function(o,s){return Gp(function(a){return N0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Gp(n,e).join(", ")+"))";case"[object Array]":return"["+Gp(n,e).concat(r(e,Pd(function(o){return/^\d+$/.test(o)},eo(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):N0(aV(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":N0(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+r(e,eo(e)).join(", ")+"}"}}var mV=wt(function(t){return lA(t,[])});const gV=mV;var vV=wt(function(t){var n=RS(tA,0,Od(function(r){return r[0].length},t));return Hc(n,function(){for(var r=0;r<t.length;){if(t[r][0].apply(this,arguments))return t[r][1].apply(this,arguments);r+=1}})});const $y=vV;var yV=function(){function e(t,n,r,i){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=Wf.init,e.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(Pr(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},e}(),_V=Ay(4,[],function(t,n,r,i){return new yV(t,n,r,i)});const bV=_V;var wV=Ay(4,[],MS([],bV,function(t,n,r,i){return Wc(function(o,s){var a=r(s);return o[a]=t(Pr(a,o)?o[a]:oA(n,[],[],!1),s),o},{},i)}));const cA=wV;var xV=cA(function(e,t){return e+1},0);const uA=xV;var SV=ft(function(t,n){var r={};for(var i in n)r[i]=n[i];return delete r[t],r});const CV=SV;var EV=iA(-1);const TV=EV;var OV=wt(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():Td(t)?[]:Iy(t)?"":Cg(t)?{}:rA(t)?function(){return arguments}():void 0});const PV=OV;var kV=wt(zU(!0));const MV=kV;var RV=wt(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n});const zu=RV;var NV=ft(NS("groupBy",cA(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));const LV=NV;var DV=ft(function(t,n){return xg(t+1,function(){var r=arguments[t];if(r!=null&&IU(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(gV(r)+' does not have a method named "'+n+'"')})});const AV=DV;var IV=wt(function(t){return t!=null&&DS(t,PV(t))});const Hn=IV;function IP(e){return Object.prototype.toString.call(e)==="[object Number]"}var FV=ft(function(t,n){var r={};return Hc(n.length,function(){var i=t.apply(this,arguments);return Pr(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const fA=FV;var $V=Ys(function(t,n,r){var i={},o;for(o in n)Pr(o,n)&&(i[o]=Pr(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)Pr(o,r)&&!Pr(o,i)&&(i[o]=r[o]);return i});const jV=$V;var BV=Ys(function e(t,n,r){return jV(function(i,o,s){return Cg(o)&&Cg(s)?e(t,o,s):t(i,o,s)},n,r)});const zV=BV;var UV=ft(function(t,n){return zV(function(r,i,o){return o},t,n)});const dA=UV;var VV=ft(function(t,n){return n<t?n:t});const hA=VV;var HV=ft(function(t,n){for(var r={},i={},o=0,s=t.length;o<s;)i[t[o]]=1,o+=1;for(var a in n)i.hasOwnProperty(a)||(r[a]=n[a]);return r});const WV=HV;var YV=ft(function(t,n){for(var r={},i=0;i<t.length;)t[i]in n&&(r[t[i]]=n[t[i]]),i+=1;return r});const pA=YV;var qV=Ys(function(t,n,r){return DS(n,r[t])});const GV=qV;var ZV=ft(function(t,n){if(!(IP(t)&&IP(n)))throw new TypeError("Both arguments to range must be numbers");for(var r=[],i=t;i<n;)r.push(i),i+=1;return r});const AS=ZV;var KV=Ys(function(t,n,r){return r.replace(t,n)});const XV=KV;var QV=ft(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,i){var o=t(r),s=t(i);return o<s?-1:o>s?1:0})});const JV=QV;var eH=ft(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i<n.length;)r.push(sA(i,i+=t,n));return r});const qf=eH;var tH=AV(0,"toLowerCase");const nH=tH;var rH=wt(function(t){var n=[];for(var r in t)Pr(r,t)&&(n[n.length]=[r,t[r]]);return n});const Eg=rH;var Eu=`
|
||
\v\f\r \u2028\u2029\uFEFF`,iH="",oH=typeof String.prototype.trim=="function",sH=wt(!oH||Eu.trim()||!iH.trim()?function(t){var n=new RegExp("^["+Eu+"]["+Eu+"]*"),r=new RegExp("["+Eu+"]["+Eu+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()});const aH=sH;var lH=ft(function(t,n){for(var r=0,i=Math.min(t.length,n.length),o={};r<i;)o[t[r]]=n[r],r+=1;return o});const mA=lH,IS=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ss=e=>!!(e!=null&&e.id),jy=e=>!!(e!=null&&e.version),cH=e=>!!(e!=null&&e.serverNotFound),kd=e=>Ss(e)?e.id:"",uH=e=>WV(["id","autoConnect"],e),By=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",gA=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),vA=e=>e.dir?`${e.field}-${e.dir}`:void 0,fH=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};var zy=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(zy||{}),Uy=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(Uy||{});const dH=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),ro=e=>dH(e)?e:void 0,hH=e=>(e==null?void 0:e.type)===zy.INVALID_ARGUMENT||(e==null?void 0:e.type)===Uy.INVALID_ARGUMENT,pH=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===zy.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===Uy.INVALID_SHORT_URL_DELETION,mH=e=>((e==null?void 0:e.type)===zy.NOT_FOUND||(e==null?void 0:e.type)===Uy.NOT_FOUND)&&(e==null?void 0:e.status)===404;var gH=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},FP=typeof Symbol<"u"&&Symbol,vH=gH,yH=function(){return typeof FP!="function"||typeof Symbol!="function"||typeof FP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vH()},_H="Function.prototype.bind called on incompatible ",L0=Array.prototype.slice,bH=Object.prototype.toString,wH="[object Function]",xH=function(t){var n=this;if(typeof n!="function"||bH.call(n)!==wH)throw new TypeError(_H+n);for(var r=L0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(L0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(L0.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l<s;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},SH=xH,FS=Function.prototype.bind||SH,CH=FS,EH=CH.call(Function.call,Object.prototype.hasOwnProperty),ut,Gf=SyntaxError,yA=Function,sc=TypeError,D0=function(e){try{return yA('"use strict"; return ('+e+").constructor;")()}catch{}},Da=Object.getOwnPropertyDescriptor;if(Da)try{Da({},"")}catch{Da=null}var A0=function(){throw new sc},TH=Da?function(){try{return arguments.callee,A0}catch{try{return Da(arguments,"callee").get}catch{return A0}}}():A0,xl=yH(),Jo=Object.getPrototypeOf||function(e){return e.__proto__},Dl={},OH=typeof Uint8Array>"u"?ut:Jo(Uint8Array),ac={"%AggregateError%":typeof AggregateError>"u"?ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ut:ArrayBuffer,"%ArrayIteratorPrototype%":xl?Jo([][Symbol.iterator]()):ut,"%AsyncFromSyncIteratorPrototype%":ut,"%AsyncFunction%":Dl,"%AsyncGenerator%":Dl,"%AsyncGeneratorFunction%":Dl,"%AsyncIteratorPrototype%":Dl,"%Atomics%":typeof Atomics>"u"?ut:Atomics,"%BigInt%":typeof BigInt>"u"?ut:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ut:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ut:FinalizationRegistry,"%Function%":yA,"%GeneratorFunction%":Dl,"%Int8Array%":typeof Int8Array>"u"?ut:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ut:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xl?Jo(Jo([][Symbol.iterator]())):ut,"%JSON%":typeof JSON=="object"?JSON:ut,"%Map%":typeof Map>"u"?ut:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xl?ut:Jo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ut:Promise,"%Proxy%":typeof Proxy>"u"?ut:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ut:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xl?ut:Jo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xl?Jo(""[Symbol.iterator]()):ut,"%Symbol%":xl?Symbol:ut,"%SyntaxError%":Gf,"%ThrowTypeError%":TH,"%TypedArray%":OH,"%TypeError%":sc,"%Uint8Array%":typeof Uint8Array>"u"?ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ut:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ut:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ut:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ut:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ut:WeakSet},PH=function e(t){var n;if(t==="%AsyncFunction%")n=D0("async function () {}");else if(t==="%GeneratorFunction%")n=D0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=D0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=Jo(i.prototype))}return ac[t]=n,n},$P={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Vy=FS,Tg=EH,kH=Vy.call(Function.call,Array.prototype.concat),MH=Vy.call(Function.apply,Array.prototype.splice),jP=Vy.call(Function.call,String.prototype.replace),Og=Vy.call(Function.call,String.prototype.slice),RH=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,NH=/\\(\\)?/g,LH=function(t){var n=Og(t,0,1),r=Og(t,-1);if(n==="%"&&r!=="%")throw new Gf("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Gf("invalid intrinsic syntax, expected opening `%`");var i=[];return jP(t,RH,function(o,s,a,l){i[i.length]=a?jP(l,NH,"$1"):s||o}),i},DH=function(t,n){var r=t,i;if(Tg($P,r)&&(i=$P[r],r="%"+i[0]+"%"),Tg(ac,r)){var o=ac[r];if(o===Dl&&(o=PH(r)),typeof o>"u"&&!n)throw new sc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Gf("intrinsic "+t+" does not exist!")},$S=function(t,n){if(typeof t!="string"||t.length===0)throw new sc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new sc('"allowMissing" argument must be a boolean');var r=LH(t),i=r.length>0?r[0]:"",o=DH("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],MH(r,kH([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],m=Og(p,0,1),g=Og(p,-1);if((m==='"'||m==="'"||m==="`"||g==='"'||g==="'"||g==="`")&&m!==g)throw new Gf("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,s="%"+i+"%",Tg(ac,s))a=ac[s];else if(a!=null){if(!(p in a)){if(!n)throw new sc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Da&&f+1>=r.length){var _=Da(a,p);h=!!_,h&&"get"in _&&!("originalValue"in _.get)?a=_.get:a=a[p]}else h=Tg(a,p),a=a[p];h&&!l&&(ac[s]=a)}}return a},Y1={},AH={get exports(){return Y1},set exports(e){Y1=e}};(function(e){var t=FS,n=$S,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var m=s(p,"length");m.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(AH);var _A=$S,bA=Y1,IH=bA(_A("String.prototype.indexOf")),FH=function(t,n){var r=_A(t,!!n);return typeof r=="function"&&IH(t,".prototype.")>-1?bA(r):r};const $H={},jH=Object.freeze(Object.defineProperty({__proto__:null,default:$H},Symbol.toStringTag,{value:"Module"})),BH=K$(jH);var jS=typeof Map=="function"&&Map.prototype,I0=Object.getOwnPropertyDescriptor&&jS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pg=jS&&I0&&typeof I0.get=="function"?I0.get:null,zH=jS&&Map.prototype.forEach,BS=typeof Set=="function"&&Set.prototype,F0=Object.getOwnPropertyDescriptor&&BS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kg=BS&&F0&&typeof F0.get=="function"?F0.get:null,UH=BS&&Set.prototype.forEach,VH=typeof WeakMap=="function"&&WeakMap.prototype,af=VH?WeakMap.prototype.has:null,HH=typeof WeakSet=="function"&&WeakSet.prototype,lf=HH?WeakSet.prototype.has:null,WH=typeof WeakRef=="function"&&WeakRef.prototype,BP=WH?WeakRef.prototype.deref:null,YH=Boolean.prototype.valueOf,qH=Object.prototype.toString,GH=Function.prototype.toString,ZH=String.prototype.match,zS=String.prototype.slice,ls=String.prototype.replace,KH=String.prototype.toUpperCase,zP=String.prototype.toLowerCase,wA=RegExp.prototype.test,UP=Array.prototype.concat,zi=Array.prototype.join,XH=Array.prototype.slice,VP=Math.floor,q1=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$0=Object.getOwnPropertySymbols,G1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Sc||"symbol")?Symbol.toStringTag:null,xA=Object.prototype.propertyIsEnumerable,HP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function WP(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||wA.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-VP(-e):VP(e);if(r!==e){var i=String(r),o=zS.call(t,i.length+1);return ls.call(i,n,"$&_")+"."+ls.call(ls.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ls.call(t,n,"$&_")}var j0=BH.custom,B0=j0&&CA(j0)?j0:null,QH=function e(t,n,r,i){var o=n||{};if(es(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(es(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=es(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(es(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(es(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return TA(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?WP(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?WP(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return Z1(t)?"[Array]":"[Object]";var h=vW(o,r);if(typeof i>"u")i=[];else if(EA(i,t)>=0)return"[Circular]";function p(X,Z,J){if(Z&&(i=XH.call(i),i.push(Z)),J){var oe={depth:o.depth};return es(o,"quoteStyle")&&(oe.quoteStyle=o.quoteStyle),e(X,oe,r+1,i)}return e(X,o,r+1,i)}if(typeof t=="function"){var m=lW(t),g=Kh(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(g.length>0?" { "+zi.call(g,", ")+" }":"")}if(CA(t)){var _=Sc?ls.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):G1.call(t);return typeof t=="object"&&!Sc?Tu(_):_}if(pW(t)){for(var x="<"+zP.call(String(t.nodeName)),v=t.attributes||[],b=0;b<v.length;b++)x+=" "+v[b].name+"="+SA(JH(v[b].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+zP.call(String(t.nodeName))+">",x}if(Z1(t)){if(t.length===0)return"[]";var w=Kh(t,p);return h&&!gW(w)?"["+K1(w,h)+"]":"[ "+zi.call(w,", ")+" ]"}if(nW(t)){var E=Kh(t,p);return"cause"in t&&!xA.call(t,"cause")?"{ ["+String(t)+"] "+zi.call(UP.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+zi.call(E,", ")+" }"}if(typeof t=="object"&&s){if(B0&&typeof t[B0]=="function")return t[B0]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(cW(t)){var P=[];return zH.call(t,function(X,Z){P.push(p(Z,t,!0)+" => "+p(X,t))}),YP("Map",Pg.call(t),P,h)}if(dW(t)){var k=[];return UH.call(t,function(X){k.push(p(X,t))}),YP("Set",kg.call(t),k,h)}if(uW(t))return z0("WeakMap");if(hW(t))return z0("WeakSet");if(fW(t))return z0("WeakRef");if(iW(t))return Tu(p(Number(t)));if(sW(t))return Tu(p(q1.call(t)));if(oW(t))return Tu(YH.call(t));if(rW(t))return Tu(p(String(t)));if(!eW(t)&&!tW(t)){var N=Kh(t,p),A=HP?HP(t)===Object.prototype:t instanceof Object||t.constructor===Object,V=t instanceof Object?"":"null prototype",I=!A&&tr&&Object(t)===t&&tr in t?zS.call(qs(t),8,-1):V?"Object":"",Y=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",q=Y+(I||V?"["+zi.call(UP.call([],I||[],V||[]),": ")+"] ":"");return N.length===0?q+"{}":h?q+"{"+K1(N,h)+"}":q+"{ "+zi.call(N,", ")+" }"}return String(t)};function SA(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function JH(e){return ls.call(String(e),/"/g,""")}function Z1(e){return qs(e)==="[object Array]"&&(!tr||!(typeof e=="object"&&tr in e))}function eW(e){return qs(e)==="[object Date]"&&(!tr||!(typeof e=="object"&&tr in e))}function tW(e){return qs(e)==="[object RegExp]"&&(!tr||!(typeof e=="object"&&tr in e))}function nW(e){return qs(e)==="[object Error]"&&(!tr||!(typeof e=="object"&&tr in e))}function rW(e){return qs(e)==="[object String]"&&(!tr||!(typeof e=="object"&&tr in e))}function iW(e){return qs(e)==="[object Number]"&&(!tr||!(typeof e=="object"&&tr in e))}function oW(e){return qs(e)==="[object Boolean]"&&(!tr||!(typeof e=="object"&&tr in e))}function CA(e){if(Sc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!G1)return!1;try{return G1.call(e),!0}catch{}return!1}function sW(e){if(!e||typeof e!="object"||!q1)return!1;try{return q1.call(e),!0}catch{}return!1}var aW=Object.prototype.hasOwnProperty||function(e){return e in this};function es(e,t){return aW.call(e,t)}function qs(e){return qH.call(e)}function lW(e){if(e.name)return e.name;var t=ZH.call(GH.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function EA(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function cW(e){if(!Pg||!e||typeof e!="object")return!1;try{Pg.call(e);try{kg.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function uW(e){if(!af||!e||typeof e!="object")return!1;try{af.call(e,af);try{lf.call(e,lf)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function fW(e){if(!BP||!e||typeof e!="object")return!1;try{return BP.call(e),!0}catch{}return!1}function dW(e){if(!kg||!e||typeof e!="object")return!1;try{kg.call(e);try{Pg.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function hW(e){if(!lf||!e||typeof e!="object")return!1;try{lf.call(e,lf);try{af.call(e,af)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function pW(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function TA(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return TA(zS.call(e,0,t.maxStringLength),t)+r}var i=ls.call(ls.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mW);return SA(i,"single",t)}function mW(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+KH.call(t.toString(16))}function Tu(e){return"Object("+e+")"}function z0(e){return e+" { ? }"}function YP(e,t,n,r){var i=r?K1(n,r):zi.call(n,", ");return e+" ("+t+") {"+i+"}"}function gW(e){for(var t=0;t<e.length;t++)if(EA(e[t],`
|
||
`)>=0)return!1;return!0}function vW(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=zi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:zi.call(Array(t+1),n)}}function K1(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+zi.call(e,","+n)+`
|
||
`+t.prev}function Kh(e,t){var n=Z1(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=es(e,i)?t(e[i],e):""}var o=typeof $0=="function"?$0(e):[],s;if(Sc){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)es(e,l)&&(n&&String(Number(l))===l&&l<e.length||Sc&&s["$"+l]instanceof Symbol||(wA.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof $0=="function")for(var c=0;c<o.length;c++)xA.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var US=$S,qc=FH,yW=QH,_W=US("%TypeError%"),Xh=US("%WeakMap%",!0),Qh=US("%Map%",!0),bW=qc("WeakMap.prototype.get",!0),wW=qc("WeakMap.prototype.set",!0),xW=qc("WeakMap.prototype.has",!0),SW=qc("Map.prototype.get",!0),CW=qc("Map.prototype.set",!0),EW=qc("Map.prototype.has",!0),VS=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},TW=function(e,t){var n=VS(e,t);return n&&n.value},OW=function(e,t,n){var r=VS(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},PW=function(e,t){return!!VS(e,t)},kW=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new _W("Side channel does not contain "+yW(o))},get:function(o){if(Xh&&o&&(typeof o=="object"||typeof o=="function")){if(t)return bW(t,o)}else if(Qh){if(n)return SW(n,o)}else if(r)return TW(r,o)},has:function(o){if(Xh&&o&&(typeof o=="object"||typeof o=="function")){if(t)return xW(t,o)}else if(Qh){if(n)return EW(n,o)}else if(r)return PW(r,o);return!1},set:function(o,s){Xh&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Xh),wW(t,o,s)):Qh?(n||(n=new Qh),CW(n,o,s)):(r||(r={key:{},next:null}),OW(r,o,s))}};return i},MW=String.prototype.replace,RW=/%20/g,U0={RFC1738:"RFC1738",RFC3986:"RFC3986"},HS={default:U0.RFC3986,formatters:{RFC1738:function(e){return MW.call(e,RW,"+")},RFC3986:function(e){return String(e)}},RFC1738:U0.RFC1738,RFC3986:U0.RFC3986},NW=HS,V0=Object.prototype.hasOwnProperty,Ca=Array.isArray,$i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),LW=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ca(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},OA=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},DW=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ca(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!V0.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Ca(t)&&!Ca(n)&&(i=OA(t,r)),Ca(t)&&Ca(n)?(n.forEach(function(o,s){if(V0.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,r):t.push(o)}else t[s]=o}),t):Object.keys(n).reduce(function(o,s){var a=n[s];return V0.call(o,s)?o[s]=e(o[s],a,r):o[s]=a,o},i)},AW=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},IW=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},FW=function(t,n,r,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===NW.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+$i[c];continue}if(c<2048){a=a+($i[192|c>>6]+$i[128|c&63]);continue}if(c<55296||c>=57344){a=a+($i[224|c>>12]+$i[128|c>>6&63]+$i[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=$i[240|c>>18]+$i[128|c>>12&63]+$i[128|c>>6&63]+$i[128|c&63]}return a},$W=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],f=s[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:s,prop:c}),r.push(f))}return LW(n),t},jW=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},BW=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},zW=function(t,n){return[].concat(t,n)},UW=function(t,n){if(Ca(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},PA={arrayToObject:OA,assign:AW,combine:zW,compact:$W,decode:IW,encode:FW,isBuffer:BW,isRegExp:jW,maybeMap:UW,merge:DW},kA=kW,X1=PA,cf=HS,VW=Object.prototype.hasOwnProperty,qP={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},po=Array.isArray,HW=String.prototype.split,WW=Array.prototype.push,MA=function(e,t){WW.apply(e,po(t)?t:[t])},YW=Date.prototype.toISOString,GP=cf.default,jn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:X1.encode,encodeValuesOnly:!1,format:GP,formatter:cf.formatters[GP],indices:!1,serializeDate:function(t){return YW.call(t)},skipNulls:!1,strictNullHandling:!1},qW=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},H0={},GW=function e(t,n,r,i,o,s,a,l,c,f,h,p,m,g,_,x){for(var v=t,b=x,w=0,E=!1;(b=b.get(H0))!==void 0&&!E;){var P=b.get(t);if(w+=1,typeof P<"u"){if(P===w)throw new RangeError("Cyclic object value");E=!0}typeof b.get(H0)>"u"&&(w=0)}if(typeof l=="function"?v=l(n,v):v instanceof Date?v=h(v):r==="comma"&&po(v)&&(v=X1.maybeMap(v,function($){return $ instanceof Date?h($):$})),v===null){if(o)return a&&!g?a(n,jn.encoder,_,"key",p):n;v=""}if(qW(v)||X1.isBuffer(v)){if(a){var k=g?n:a(n,jn.encoder,_,"key",p);if(r==="comma"&&g){for(var N=HW.call(String(v),","),A="",V=0;V<N.length;++V)A+=(V===0?"":",")+m(a(N[V],jn.encoder,_,"value",p));return[m(k)+(i&&po(v)&&N.length===1?"[]":"")+"="+A]}return[m(k)+"="+m(a(v,jn.encoder,_,"value",p))]}return[m(n)+"="+m(String(v))]}var I=[];if(typeof v>"u")return I;var Y;if(r==="comma"&&po(v))Y=[{value:v.length>0?v.join(",")||null:void 0}];else if(po(l))Y=l;else{var q=Object.keys(v);Y=c?q.sort(c):q}for(var X=i&&po(v)&&v.length===1?n+"[]":n,Z=0;Z<Y.length;++Z){var J=Y[Z],oe=typeof J=="object"&&typeof J.value<"u"?J.value:v[J];if(!(s&&oe===null)){var ce=po(v)?typeof r=="function"?r(X,J):X:X+(f?"."+J:"["+J+"]");x.set(t,w);var K=kA();K.set(H0,x),MA(I,e(oe,ce,r,i,o,s,a,l,c,f,h,p,m,g,_,K))}}return I},ZW=function(t){if(!t)return jn;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||jn.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=cf.default;if(typeof t.format<"u"){if(!VW.call(cf.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=cf.formatters[r],o=jn.filter;return(typeof t.filter=="function"||po(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:jn.addQueryPrefix,allowDots:typeof t.allowDots>"u"?jn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:jn.charsetSentinel,delimiter:typeof t.delimiter>"u"?jn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:jn.encode,encoder:typeof t.encoder=="function"?t.encoder:jn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:jn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:jn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:jn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:jn.strictNullHandling}},KW=function(e,t){var n=e,r=ZW(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):po(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in qP?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=qP[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=kA(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||MA(s,GW(n[p],p,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var m=s.join(r.delimiter),g=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""},Cc=PA,Q1=Object.prototype.hasOwnProperty,XW=Array.isArray,Cn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Cc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},QW=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},RA=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},JW="utf8=%26%2310003%3B",eY="utf8=%E2%9C%93",tY=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===eY?c="utf-8":s[l]===JW&&(c="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var f=s[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,m,g;p===-1?(m=n.decoder(f,Cn.decoder,c,"key"),g=n.strictNullHandling?null:""):(m=n.decoder(f.slice(0,p),Cn.decoder,c,"key"),g=Cc.maybeMap(RA(f.slice(p+1),n),function(_){return n.decoder(_,Cn.decoder,c,"value")})),g&&n.interpretNumericEntities&&c==="iso-8859-1"&&(g=QW(g)),f.indexOf("[]=")>-1&&(g=XW(g)?[g]:g),Q1.call(r,m)?r[m]=Cc.combine(r[m],g):r[m]=g}return r},nY=function(e,t,n,r){for(var i=r?t:RA(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},rY=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&Q1.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&Q1.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),nY(f,n,r,i)}},iY=function(t){if(!t)return Cn;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Cn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Cn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Cn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Cn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Cn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Cn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Cn.comma,decoder:typeof t.decoder=="function"?t.decoder:Cn.decoder,delimiter:typeof t.delimiter=="string"||Cc.isRegExp(t.delimiter)?t.delimiter:Cn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Cn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Cn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Cn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Cn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Cn.strictNullHandling}},oY=function(e,t){var n=iY(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?tY(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var a=o[s],l=rY(a,r[a],n,typeof e=="string");i=Cc.merge(i,l,n)}return n.allowSparse===!0?i:Cc.compact(i)},sY=KW,aY=oY,lY=HS,NA={formats:lY,parse:aY,stringify:sY};const Gc=e=>NA.parse(e,{ignoreQueryPrefix:!0}),Md=e=>NA.stringify(e,{arrayFormat:"brackets"}),cY=(e,t)=>`${e}/rest/v${t}`,uY=Pd(Fo),fY=({orderBy:e={},...t})=>({...t,orderBy:vA(e)});class dY{constructor(t,n,r){Qe(this,"apiVersion");Qe(this,"listShortUrls",async(t={})=>this.performRequest("/short-urls","GET",fY(t)).then(({shortUrls:n})=>n));Qe(this,"createShortUrl",async t=>{const n=Pd(r=>Hn(r)||Fo(r),t);return this.performRequest("/short-urls","POST",{},n)});Qe(this,"getShortUrlVisits",async(t,n)=>this.performRequest(`/short-urls/${t}/visits`,"GET",n).then(({visits:r})=>r));Qe(this,"getTagVisits",async(t,n)=>this.performRequest(`/tags/${t}/visits`,"GET",n).then(({visits:r})=>r));Qe(this,"getDomainVisits",async(t,n)=>this.performRequest(`/domains/${t}/visits`,"GET",n).then(({visits:r})=>r));Qe(this,"getOrphanVisits",async t=>this.performRequest("/visits/orphan","GET",t).then(({visits:n})=>n));Qe(this,"getNonOrphanVisits",async t=>this.performRequest("/visits/non-orphan","GET",t).then(({visits:n})=>n));Qe(this,"getVisitsOverview",async()=>this.performRequest("/visits").then(({visits:t})=>t));Qe(this,"getShortUrl",async(t,n)=>this.performRequest(`/short-urls/${t}`,"GET",{domain:n}));Qe(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest(`/short-urls/${t}`,"DELETE",{domain:n}));Qe(this,"updateShortUrl",async(t,n,r)=>this.performRequest(`/short-urls/${t}`,"PATCH",{domain:n},r));Qe(this,"listTags",async()=>this.performRequest("/tags","GET",{withStats:"true"}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));Qe(this,"deleteTags",async t=>this.performEmptyRequest("/tags","DELETE",{tags:t}).then(()=>({tags:t})));Qe(this,"editTag",async(t,n)=>this.performEmptyRequest("/tags","PUT",{},{oldName:t,newName:n}).then(()=>({oldName:t,newName:n})));Qe(this,"health",async()=>this.performRequest("/health","GET"));Qe(this,"mercureInfo",async()=>this.performRequest("/mercure-info","GET"));Qe(this,"listDomains",async()=>this.performRequest("/domains").then(({domains:t})=>t));Qe(this,"editDomainRedirects",async t=>this.performRequest("/domains/redirects","PATCH",{},t));Qe(this,"performRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)))));Qe(this,"performEmptyRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)))));Qe(this,"toFetchParams",(t,n,r={},i)=>{const o=Md(uY(r)),s=Hn(o)?"":`?${o}`;return[`${cY(this.baseUrl,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});Qe(this,"handleFetchError",t=>n=>{if(!mH(ro(n)))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const W0={},hY=e=>typeof e=="function",pY=e=>{const{selectedServer:t}=e();if(!IS(t))throw new Error("There's no selected server or it is not found");return t},mY=e=>t=>{const{url:n,apiKey:r}=hY(t)?pY(t):t,i=`${n}_${r}`;return W0[i]||(W0[i]=new dY(e,n,r)),W0[i]},gY=e=>{e.serviceFactory("buildShlinkApiClient",mY,"HttpClient")},vY=({children:e})=>{const t=Wn();return H.useEffect(()=>{scrollTo(0,0)},[t]),C(We,{children:e})};var yY={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},_Y=yY,bY={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},WS=bY,wY={prefix:"fas",iconName:"file-csv",icon:[384,512,[],"f6dd","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM80 224H96c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H80c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8H96c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H80c-22.1 0-40-17.9-40-40V264c0-22.1 17.9-40 40-40zm72 46.4c0-25.6 20.8-46.4 46.4-46.4H216c8.8 0 16 7.2 16 16s-7.2 16-16 16H198.4c-7.9 0-14.4 6.4-14.4 14.4c0 5.2 2.8 9.9 7.2 12.5l25.4 14.5c14.4 8.3 23.4 23.6 23.4 40.3c0 25.6-20.8 46.4-46.4 46.4H168c-8.8 0-16-7.2-16-16s7.2-16 16-16h25.6c7.9 0 14.4-6.4 14.4-14.4c0-5.2-2.8-9.9-7.2-12.5l-25.4-14.5C160.9 302.4 152 287 152 270.4zM280 240v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V240c0-8.8 7.2-16 16-16s16 7.2 16 16v31.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.6V240c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},xY={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M421.7 220.3l-11.3 11.3-22.6 22.6-205 205c-6.6 6.6-14.8 11.5-23.8 14.1L30.8 511c-8.4 2.5-17.5 .2-23.7-6.1S-1.5 489.7 1 481.2L38.7 353.1c2.6-9 7.5-17.2 14.1-23.8l205-205 22.6-22.6 11.3-11.3 33.9 33.9 62.1 62.1 33.9 33.9zM96 353.9l-9.3 9.3c-.9 .9-1.6 2.1-2 3.4l-25.3 86 86-25.3c1.3-.4 2.5-1.1 3.4-2l9.3-9.3H112c-8.8 0-16-7.2-16-16V353.9zM453.3 19.3l39.4 39.4c25 25 25 65.5 0 90.5l-14.5 14.5-22.6 22.6-11.3 11.3-33.9-33.9-62.1-62.1L314.3 67.7l11.3-11.3 22.6-22.6 14.5-14.5c25-25 65.5-25 90.5 0z"]},SY=xY,LA={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"]},CY={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},DA={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},EY={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zm0-160c-53 0-96-43-96-96s43-96 96-96s96 43 96 96s-43 96-96 96z"]},TY=EY,OY={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.8 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},YS=OY,PY={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},kY={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.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 21 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.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.6H344.3c-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 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},MY={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.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z"]},ZP={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},RY={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-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-31V408z"]},NY=RY,LY={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 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z"]},AA=LY,DY={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.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},AY={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.3H344c-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 288c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm0-96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm96 96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32z"]},IY={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.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.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-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},FY=IY,qS={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.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 288H558.4z"]},IA={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.5V80C0 53.5 21.5 32 48 32H197.5c17 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 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},$Y={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},KP={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 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"]},jY={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},FA={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"]},BY={prefix:"fas",iconName:"up-right-from-square",icon:[448,512,["external-link-alt"],"f35d","M288 32c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L306.7 128 169.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L352 173.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V64c0-17.7-14.3-32-32-32H288zM80 64C35.8 64 0 99.8 0 144V400c0 44.2 35.8 80 80 80H336c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v80c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h80c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},zY=BY,UY={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.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.7H48C21.5 32 0 53.5 0 80zm112 96c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},VY={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},GS=VY,HY={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.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"]},WY=HY,YY={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"]},qY={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zm0-160c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zM120 96c0 30.9-25.1 56-56 56S8 126.9 8 96S33.1 40 64 40s56 25.1 56 56z"]},GY=qY,ZY={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.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-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"]},KY=ZY,XY={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.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},QY=XY,JY={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-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 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},$A=JY,eq={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.6zM352 256c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zm32 0c0-70.7-57.3-128-128-128s-128 57.3-128 128s57.3 128 128 128s128-57.3 128-128z"]},tq={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"]},nq={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 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},rq=nq,iq={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"]},ZS={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},oq={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},J1=oq,sq={prefix:"fas",iconName:"chevron-right",icon:[384,512,[9002],"f054","M342.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.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},aq={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},lq=aq,XP={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H480c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H160c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256c0-22.1-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40s40-17.9 40-40zm152 40c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},cq={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.7 8.4 166.9 8 160 8s-13.7 .4-20.4 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.8zM208 176c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48zM504.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 400c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"]},uq=cq,fq={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M48 32C21.5 32 0 53.5 0 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm80 64v64H64V96h64zM48 288c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V336c0-26.5-21.5-48-48-48H48zm80 64v64H64V352h64zM256 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H304c-26.5 0-48 21.5-48 48zm64 16h64v64H320V96zm32 352v32h32V448H352zm96 0H416v32h32V448zM416 288v32H352V288H256v96 96h64V384h32v32h96V352 320 288H416z"]},dq={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"]},hq={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"]},Zf={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.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 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function QP(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 Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){wn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mg(e){return Mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mg(e)}function pq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JP(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 mq(e,t,n){return t&&JP(e.prototype,t),n&&JP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KS(e,t){return vq(e)||_q(e,t)||jA(e,t)||wq()}function Rd(e){return gq(e)||yq(e)||jA(e)||bq()}function gq(e){if(Array.isArray(e))return ew(e)}function vq(e){if(Array.isArray(e))return e}function yq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _q(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function jA(e,t){if(e){if(typeof e=="string")return ew(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 ew(e,t)}}function ew(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 bq(){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 wq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ek=function(){},XS={},BA={},zA=null,UA={mark:ek,measure:ek};try{typeof window<"u"&&(XS=window),typeof document<"u"&&(BA=document),typeof MutationObserver<"u"&&(zA=MutationObserver),typeof performance<"u"&&(UA=performance)}catch{}var xq=XS.navigator||{},tk=xq.userAgent,nk=tk===void 0?"":tk,Rs=XS,At=BA,rk=zA,Jh=UA;Rs.document;var $o=!!At.documentElement&&!!At.head&&typeof At.addEventListener=="function"&&typeof At.createElement=="function",VA=~nk.indexOf("MSIE")||~nk.indexOf("Trident/"),ep,tp,np,rp,ip,Po="___FONT_AWESOME___",tw=16,HA="fa",WA="svg-inline--fa",Ya="data-fa-i2svg",nw="data-fa-pseudo-element",Sq="data-fa-pseudo-element-pending",QS="data-prefix",JS="data-icon",ik="fontawesome-i2svg",Cq="async",Eq=["HTML","HEAD","STYLE","SCRIPT"],YA=function(){try{return!0}catch{return!1}}(),Lt="classic",Kt="sharp",eC=[Lt,Kt];function Nd(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Lt]}})}var Kf=Nd((ep={},wn(ep,Lt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),wn(ep,Kt,{fa:"solid",fass:"solid","fa-solid":"solid"}),ep)),Xf=Nd((tp={},wn(tp,Lt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),wn(tp,Kt,{solid:"fass"}),tp)),Qf=Nd((np={},wn(np,Lt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),wn(np,Kt,{fass:"fa-solid"}),np)),Tq=Nd((rp={},wn(rp,Lt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),wn(rp,Kt,{"fa-solid":"fass"}),rp)),Oq=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,qA="fa-layers-text",Pq=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,kq=Nd((ip={},wn(ip,Lt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),wn(ip,Kt,{900:"fass"}),ip)),GA=[1,2,3,4,5,6,7,8,9,10],Mq=GA.concat([11,12,13,14,15,16,17,18,19,20]),Rq=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ka={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Jf=new Set;Object.keys(Xf[Lt]).map(Jf.add.bind(Jf));Object.keys(Xf[Kt]).map(Jf.add.bind(Jf));var Nq=[].concat(eC,Rd(Jf),["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",ka.GROUP,ka.SWAP_OPACITY,ka.PRIMARY,ka.SECONDARY]).concat(GA.map(function(e){return"".concat(e,"x")})).concat(Mq.map(function(e){return"w-".concat(e)})),uf=Rs.FontAwesomeConfig||{};function Lq(e){var t=At.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Dq(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(At&&typeof At.querySelector=="function"){var Aq=[["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"]];Aq.forEach(function(e){var t=KS(e,2),n=t[0],r=t[1],i=Dq(Lq(n));i!=null&&(uf[r]=i)})}var ZA={styleDefault:"solid",familyDefault:"classic",cssPrefix:HA,replacementClass:WA,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};uf.familyPrefix&&(uf.cssPrefix=uf.familyPrefix);var Ec=Be(Be({},ZA),uf);Ec.autoReplaceSvg||(Ec.observeMutations=!1);var Ue={};Object.keys(ZA).forEach(function(e){Object.defineProperty(Ue,e,{enumerable:!0,set:function(n){Ec[e]=n,ff.forEach(function(r){return r(Ue)})},get:function(){return Ec[e]}})});Object.defineProperty(Ue,"familyPrefix",{enumerable:!0,set:function(t){Ec.cssPrefix=t,ff.forEach(function(n){return n(Ue)})},get:function(){return Ec.cssPrefix}});Rs.FontAwesomeConfig=Ue;var ff=[];function Iq(e){return ff.push(e),function(){ff.splice(ff.indexOf(e),1)}}var qo=tw,Yi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Fq(e){if(!(!e||!$o)){var t=At.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=At.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return At.head.insertBefore(t,r),e}}var $q="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ed(){for(var e=12,t="";e-- >0;)t+=$q[Math.random()*62|0];return t}function Zc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function tC(e){return e.classList?Zc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function KA(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function jq(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(KA(e[n]),'" ')},"").trim()}function Hy(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function nC(e){return e.size!==Yi.size||e.x!==Yi.x||e.y!==Yi.y||e.rotate!==Yi.rotate||e.flipX||e.flipY}function Bq(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function zq(e){var t=e.transform,n=e.width,r=n===void 0?tw:n,i=e.height,o=i===void 0?tw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&VA?l+="translate(".concat(t.x/qo-r/2,"em, ").concat(t.y/qo-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/qo,"em), calc(-50% + ").concat(t.y/qo,"em)) "):l+="translate(".concat(t.x/qo,"em, ").concat(t.y/qo,"em) "),l+="scale(".concat(t.size/qo*(t.flipX?-1:1),", ").concat(t.size/qo*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var Uq=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
}
|
||
|
||
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 {
|
||
-webkit-transform-origin: center center;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
-webkit-transform: translate(-50%, -50%);
|
||
transform: translate(-50%, -50%);
|
||
-webkit-transform-origin: center center;
|
||
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);
|
||
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom right;
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom left;
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top left;
|
||
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(var(--fa-li-width, 2em) * -1);
|
||
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 {
|
||
-webkit-animation-name: fa-beat;
|
||
animation-name: fa-beat;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
-webkit-animation-name: fa-bounce;
|
||
animation-name: fa-bounce;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
-webkit-animation-name: fa-fade;
|
||
animation-name: fa-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
-webkit-animation-name: fa-beat-fade;
|
||
animation-name: fa-beat-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
-webkit-animation-name: fa-flip;
|
||
animation-name: fa-flip;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
-webkit-animation-name: fa-shake;
|
||
animation-name: fa-shake;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
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 {
|
||
-webkit-animation-delay: -1ms;
|
||
animation-delay: -1ms;
|
||
-webkit-animation-duration: 1ms;
|
||
animation-duration: 1ms;
|
||
-webkit-animation-iteration-count: 1;
|
||
animation-iteration-count: 1;
|
||
transition-delay: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-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));
|
||
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% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-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));
|
||
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% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
-webkit-transform: rotate(90deg);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
-webkit-transform: rotate(180deg);
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
-webkit-transform: rotate(270deg);
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
-webkit-transform: scale(-1, 1);
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
-webkit-transform: scale(1, -1);
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
-webkit-transform: scale(-1, -1);
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
-webkit-transform: rotate(var(--fa-rotate-angle, none));
|
||
transform: rotate(var(--fa-rotate-angle, none));
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
.fad.fa-inverse,
|
||
.fa-duotone.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}`;function XA(){var e=HA,t=WA,n=Ue.cssPrefix,r=Ue.replacementClass,i=Uq;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var ok=!1;function Y0(){Ue.autoAddCss&&!ok&&(Fq(XA()),ok=!0)}var Vq={mixout:function(){return{dom:{css:XA,insertCss:Y0}}},hooks:function(){return{beforeDOMElementCreation:function(){Y0()},beforeI2svg:function(){Y0()}}}},ko=Rs||{};ko[Po]||(ko[Po]={});ko[Po].styles||(ko[Po].styles={});ko[Po].hooks||(ko[Po].hooks={});ko[Po].shims||(ko[Po].shims=[]);var _i=ko[Po],QA=[],Hq=function e(){At.removeEventListener("DOMContentLoaded",e),Rg=1,QA.map(function(t){return t()})},Rg=!1;$o&&(Rg=(At.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(At.readyState),Rg||At.addEventListener("DOMContentLoaded",Hq));function Wq(e){$o&&(Rg?setTimeout(e,0):QA.push(e))}function Ld(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?KA(e):"<".concat(t," ").concat(jq(r),">").concat(o.map(Ld).join(""),"</").concat(t,">")}function sk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Yq=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},q0=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?Yq(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<s;l++)c=o[l],f=a(f,t[c],c,t);return f};function qq(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function rw(e){var t=qq(e);return t.length===1?t[0].toString(16):null}function Gq(e,t){var n=e.length,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 ak(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function iw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=ak(t);typeof _i.hooks.addPack=="function"&&!i?_i.hooks.addPack(e,ak(t)):_i.styles[e]=Be(Be({},_i.styles[e]||{}),o),e==="fas"&&iw("fa",t)}var op,sp,ap,Zl=_i.styles,Zq=_i.shims,Kq=(op={},wn(op,Lt,Object.values(Qf[Lt])),wn(op,Kt,Object.values(Qf[Kt])),op),rC=null,JA={},eI={},tI={},nI={},rI={},Xq=(sp={},wn(sp,Lt,Object.keys(Kf[Lt])),wn(sp,Kt,Object.keys(Kf[Kt])),sp);function Qq(e){return~Nq.indexOf(e)}function Jq(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Qq(i)?i:null}var iI=function(){var t=function(o){return q0(Zl,function(s,a,l){return s[l]=q0(a,o,{}),s},{})};JA=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=s})}return i}),eI=t(function(i,o,s){if(i[s]=s,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=s})}return i}),rI=t(function(i,o,s){var a=o[2];return i[s]=s,a.forEach(function(l){i[l]=s}),i});var n="far"in Zl||Ue.autoFetchSvg,r=q0(Zq,function(i,o){var s=o[0],a=o[1],l=o[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(i.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});tI=r.names,nI=r.unicodes,rC=Wy(Ue.styleDefault,{family:Ue.familyDefault})};Iq(function(e){rC=Wy(e.styleDefault,{family:Ue.familyDefault})});iI();function iC(e,t){return(JA[e]||{})[t]}function eG(e,t){return(eI[e]||{})[t]}function Ma(e,t){return(rI[e]||{})[t]}function oI(e){return tI[e]||{prefix:null,iconName:null}}function tG(e){var t=nI[e],n=iC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ns(){return rC}var oC=function(){return{prefix:null,iconName:null,rest:[]}};function Wy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Lt:n,i=Kf[r][e],o=Xf[r][e]||Xf[r][i],s=e in _i.styles?e:null;return o||s||null}var lk=(ap={},wn(ap,Lt,Object.keys(Qf[Lt])),wn(ap,Kt,Object.keys(Qf[Kt])),ap);function Yy(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},wn(t,Lt,"".concat(Ue.cssPrefix,"-").concat(Lt)),wn(t,Kt,"".concat(Ue.cssPrefix,"-").concat(Kt)),t),s=null,a=Lt;(e.includes(o[Lt])||e.some(function(c){return lk[Lt].includes(c)}))&&(a=Lt),(e.includes(o[Kt])||e.some(function(c){return lk[Kt].includes(c)}))&&(a=Kt);var l=e.reduce(function(c,f){var h=Jq(Ue.cssPrefix,f);if(Zl[f]?(f=Kq[a].includes(f)?Tq[a][f]:f,s=f,c.prefix=f):Xq[a].indexOf(f)>-1?(s=f,c.prefix=Wy(f,{family:a})):h?c.iconName=h:f!==Ue.replacementClass&&f!==o[Lt]&&f!==o[Kt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?oI(c.iconName):{},m=Ma(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Zl.far&&Zl.fas&&!Ue.autoFetchSvg&&(c.prefix="fas")}return c},oC());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Kt&&(Zl.fass||Ue.autoFetchSvg)&&(l.prefix="fass",l.iconName=Ma(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Ns()||"fas"),l}var nG=function(){function e(){pq(this,e),this.definitions={}}return mq(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(a){n.definitions[a]=Be(Be({},n.definitions[a]||{}),s[a]),iw(a,s[a]);var l=Qf[Lt][a];l&&iw(l,s[a]),iI()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var s=i[o],a=s.prefix,l=s.iconName,c=s.icon,f=c[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(h){typeof h=="string"&&(n[a][h]=c)}),n[a][l]=c}),n}}]),e}(),ck=[],Kl={},lc={},rG=Object.keys(lc);function iG(e,t){var n=t.mixoutsTo;return ck=e,Kl={},Object.keys(lc).forEach(function(r){rG.indexOf(r)===-1&&delete lc[r]}),ck.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),Mg(i[s])==="object"&&Object.keys(i[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=i[s][a]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){Kl[s]||(Kl[s]=[]),Kl[s].push(o[s])})}r.provides&&r.provides(lc)}),n}function ow(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=Kl[e]||[];return o.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function qa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Kl[e]||[];i.forEach(function(o){o.apply(null,n)})}function Mo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return lc[e]?lc[e].apply(null,t):void 0}function sw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Ns();if(t)return t=Ma(n,t)||t,sk(sI.definitions,n,t)||sk(_i.styles,n,t)}var sI=new nG,oG=function(){Ue.autoReplaceSvg=!1,Ue.observeMutations=!1,qa("noAuto")},sG={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return $o?(qa("beforeI2svg",t),Mo("pseudoElements2svg",t),Mo("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Ue.autoReplaceSvg===!1&&(Ue.autoReplaceSvg=!0),Ue.observeMutations=!0,Wq(function(){lG({autoReplaceSvgRoot:n}),qa("watch",t)})}},aG={icon:function(t){if(t===null)return null;if(Mg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ma(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Wy(t[0]);return{prefix:r,iconName:Ma(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Ue.cssPrefix,"-"))>-1||t.match(Oq))){var i=Yy(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ns(),iconName:Ma(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Ns();return{prefix:o,iconName:Ma(o,t)||t}}}},Fr={noAuto:oG,config:Ue,dom:sG,parse:aG,library:sI,findIconDefinition:sw,toHtml:Ld},lG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?At:n;(Object.keys(_i.styles).length>0||Ue.autoFetchSvg)&&$o&&Ue.autoReplaceSvg&&Fr.dom.i2svg({node:r})};function qy(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ld(r)})}}),Object.defineProperty(e,"node",{get:function(){if($o){var r=At.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function cG(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(nC(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=Hy(Be(Be({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function uG(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(Ue.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Be(Be({},i),{},{id:s}),children:r}]}]}function sC(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,m=p===void 0?!1:p,g=r.found?r:n,_=g.width,x=g.height,v=i==="fak",b=[Ue.replacementClass,o?"".concat(Ue.cssPrefix,"-").concat(o):""].filter(function(V){return h.classes.indexOf(V)===-1}).filter(function(V){return V!==""||!!V}).concat(h.classes).join(" "),w={children:[],attributes:Be(Be({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(x)})},E=v&&!~h.classes.indexOf("fa-fw")?{width:"".concat(_/x*16*.0625,"em")}:{};m&&(w.attributes[Ya]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(f||ed())},children:[l]}),delete w.attributes.title);var P=Be(Be({},w),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:Be(Be({},E),h.styles)}),k=r.found&&n.found?Mo("generateAbstractMask",P)||{children:[],attributes:{}}:Mo("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,A=k.attributes;return P.children=N,P.attributes=A,a?uG(P):cG(P)}function uk(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=a===void 0?!1:a,c=Be(Be(Be({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[Ya]="");var f=Be({},s.styles);nC(i)&&(f.transform=zq({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=Hy(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function fG(e){var t=e.content,n=e.title,r=e.extra,i=Be(Be(Be({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Hy(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var G0=_i.styles;function aw(e){var t=e[0],n=e[1],r=e.slice(4),i=KS(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(Ue.cssPrefix,"-").concat(ka.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ue.cssPrefix,"-").concat(ka.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Ue.cssPrefix,"-").concat(ka.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var dG={found:!1,width:512,height:512};function hG(e,t){!YA&&!Ue.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function lw(e,t){var n=t;return t==="fa"&&Ue.styleDefault!==null&&(t=Ns()),new Promise(function(r,i){if(Mo("missingIconAbstract"),n==="fa"){var o=oI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&G0[t]&&G0[t][e]){var s=G0[t][e];return r(aw(s))}hG(e,t),r(Be(Be({},dG),{},{icon:Ue.showMissingIcons&&e?Mo("missingIconAbstract")||{}:{}}))})}var fk=function(){},cw=Ue.measurePerformance&&Jh&&Jh.mark&&Jh.measure?Jh:{mark:fk,measure:fk},Uu='FA "6.2.0"',pG=function(t){return cw.mark("".concat(Uu," ").concat(t," begins")),function(){return aI(t)}},aI=function(t){cw.mark("".concat(Uu," ").concat(t," ends")),cw.measure("".concat(Uu," ").concat(t),"".concat(Uu," ").concat(t," begins"),"".concat(Uu," ").concat(t," ends"))},aC={begin:pG,end:aI},Zp=function(){};function dk(e){var t=e.getAttribute?e.getAttribute(Ya):null;return typeof t=="string"}function mG(e){var t=e.getAttribute?e.getAttribute(QS):null,n=e.getAttribute?e.getAttribute(JS):null;return t&&n}function gG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ue.replacementClass)}function vG(){if(Ue.autoReplaceSvg===!0)return Kp.replace;var e=Kp[Ue.autoReplaceSvg];return e||Kp.replace}function yG(e){return At.createElementNS("http://www.w3.org/2000/svg",e)}function _G(e){return At.createElement(e)}function lI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?yG:_G:n;if(typeof e=="string")return At.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(lI(s,{ceFn:r}))}),i}function bG(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Kp={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(lI(i),n)}),n.getAttribute(Ya)===null&&Ue.keepOriginalSource){var r=At.createComment(bG(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~tC(n).indexOf(Ue.replacementClass))return Kp.replace(t);var i=new RegExp("".concat(Ue.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===Ue.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(a){return Ld(a)}).join(`
|
||
`);n.setAttribute(Ya,""),n.innerHTML=s}};function hk(e){e()}function cI(e,t){var n=typeof t=="function"?t:Zp;if(e.length===0)n();else{var r=hk;Ue.mutateApproach===Cq&&(r=Rs.requestAnimationFrame||hk),r(function(){var i=vG(),o=aC.begin("mutate");e.map(i),o(),n()})}}var lC=!1;function uI(){lC=!0}function uw(){lC=!1}var Ng=null;function pk(e){if(rk&&Ue.observeMutations){var t=e.treeCallback,n=t===void 0?Zp:t,r=e.nodeCallback,i=r===void 0?Zp:r,o=e.pseudoElementsCallback,s=o===void 0?Zp:o,a=e.observeMutationsRoot,l=a===void 0?At:a;Ng=new rk(function(c){if(!lC){var f=Ns();Zc(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!dk(h.addedNodes[0])&&(Ue.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&Ue.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&dk(h.target)&&~Rq.indexOf(h.attributeName))if(h.attributeName==="class"&&mG(h.target)){var p=Yy(tC(h.target)),m=p.prefix,g=p.iconName;h.target.setAttribute(QS,m||f),g&&h.target.setAttribute(JS,g)}else gG(h.target)&&i(h.target)})}}),$o&&Ng.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function wG(){Ng&&Ng.disconnect()}function xG(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function SG(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Yy(tC(e));return i.prefix||(i.prefix=Ns()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=eG(i.prefix,e.innerText)||iC(i.prefix,rw(e.innerText))),!i.iconName&&Ue.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function CG(e){var t=Zc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ue.autoA11y&&(n?t["aria-labelledby"]="".concat(Ue.replacementClass,"-title-").concat(r||ed()):(t["aria-hidden"]="true",t.focusable="false")),t}function EG(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Yi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function mk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=SG(e),r=n.iconName,i=n.prefix,o=n.rest,s=CG(e),a=ow("parseNodeAttributes",{},e),l=t.styleParser?xG(e):[];return Be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Yi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var TG=_i.styles;function fI(e){var t=Ue.autoReplaceSvg==="nest"?mk(e,{styleParser:!1}):mk(e);return~t.extra.classes.indexOf(qA)?Mo("generateLayersText",e,t):Mo("generateSvgReplacementMutation",e,t)}var Ls=new Set;eC.map(function(e){Ls.add("fa-".concat(e))});Object.keys(Kf[Lt]).map(Ls.add.bind(Ls));Object.keys(Kf[Kt]).map(Ls.add.bind(Ls));Ls=Rd(Ls);function gk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!$o)return Promise.resolve();var n=At.documentElement.classList,r=function(h){return n.add("".concat(ik,"-").concat(h))},i=function(h){return n.remove("".concat(ik,"-").concat(h))},o=Ue.autoFetchSvg?Ls:eC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(TG));o.includes("fa")||o.push("fa");var s=[".".concat(qA,":not([").concat(Ya,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Ya,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=Zc(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=aC.begin("onTree"),c=a.reduce(function(f,h){try{var p=fI(h);p&&f.push(p)}catch(m){YA||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){cI(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function OG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;fI(e).then(function(n){n&&cI([n],t)})}function PG(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:sw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:sw(i||{})),e(r,Be(Be({},n),{},{mask:i}))}}var kG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Yi:r,o=n.symbol,s=o===void 0?!1:o,a=n.mask,l=a===void 0?null:a,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,g=m===void 0?null:m,_=n.classes,x=_===void 0?[]:_,v=n.attributes,b=v===void 0?{}:v,w=n.styles,E=w===void 0?{}:w;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return qy(Be({type:"icon"},t),function(){return qa("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ue.autoA11y&&(p?b["aria-labelledby"]="".concat(Ue.replacementClass,"-title-").concat(g||ed()):(b["aria-hidden"]="true",b.focusable="false")),sC({icons:{main:aw(N),mask:l?aw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:Be(Be({},Yi),i),symbol:s,title:p,maskId:f,titleId:g,extra:{attributes:b,styles:E,classes:x}})})}},MG={mixout:function(){return{icon:PG(kG)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=gk,n.nodeCallback=OG,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?At:r,o=n.callback,s=o===void 0?function(){}:o;return gk(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,a=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,g){Promise.all([lw(i,a),f.iconName?lw(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var x=KS(_,2),v=x[0],b=x[1];m([n,sC({icons:{main:v,mask:b},prefix:a,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:s,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,a=n.styles,l=Hy(a);l.length>0&&(i.style=l);var c;return nC(s)&&(c=Mo("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},RG={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return qy({type:"layer"},function(){qa("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Ue.cssPrefix,"-layers")].concat(Rd(o)).join(" ")},children:s}]})}}}},NG={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,s=r.classes,a=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return qy({type:"counter",content:n},function(){return qa("beforeDOMElementCreation",{content:n,params:r}),fG({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(Ue.cssPrefix,"-layers-counter")].concat(Rd(a))}})})}}}},LG={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Yi:i,s=r.title,a=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return qy({type:"text",content:n},function(){return qa("beforeDOMElementCreation",{content:n,params:r}),uk({content:n,transform:Be(Be({},Yi),o),title:a,extra:{attributes:h,styles:m,classes:["".concat(Ue.cssPrefix,"-layers-text")].concat(Rd(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(VA){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return Ue.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,uk({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},DG=new RegExp('"',"ug"),vk=[1105920,1112319];function AG(e){var t=e.replace(DG,""),n=Gq(t,0),r=n>=vk[0]&&n<=vk[1],i=t.length===2?t[0]===t[1]:!1;return{value:rw(i?t[0]:t),isSecondary:r||i}}function yk(e,t){var n="".concat(Sq).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Zc(e.children),s=o.filter(function(N){return N.getAttribute(nw)===t})[0],a=Rs.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Pq),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&f!=="none"&&f!==""){var h=a.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Kt:Lt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Xf[p][l[2].toLowerCase()]:kq[p][c],g=AG(h),_=g.value,x=g.isSecondary,v=l[0].startsWith("FontAwesome"),b=iC(m,_),w=b;if(v){var E=tG(_);E.iconName&&E.prefix&&(b=E.iconName,m=E.prefix)}if(b&&!x&&(!s||s.getAttribute(QS)!==m||s.getAttribute(JS)!==w)){e.setAttribute(n,w),s&&e.removeChild(s);var P=EG(),k=P.extra;k.attributes[nw]=t,lw(b,m).then(function(N){var A=sC(Be(Be({},P),{},{icons:{main:N,mask:oC()},prefix:m,iconName:w,extra:k,watchable:!0})),V=At.createElement("svg");t==="::before"?e.insertBefore(V,e.firstChild):e.appendChild(V),V.outerHTML=A.map(function(I){return Ld(I)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function IG(e){return Promise.all([yk(e,"::before"),yk(e,"::after")])}function FG(e){return e.parentNode!==document.head&&!~Eq.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(nw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function _k(e){if($o)return new Promise(function(t,n){var r=Zc(e.querySelectorAll("*")).filter(FG).map(IG),i=aC.begin("searchPseudoElements");uI(),Promise.all(r).then(function(){i(),uw(),t()}).catch(function(){i(),uw(),n()})})}var $G={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=_k,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?At:r;Ue.searchPseudoElements&&_k(i)}}},bk=!1,jG={mixout:function(){return{dom:{unwatch:function(){uI(),bk=!0}}}},hooks:function(){return{bootstrap:function(){pk(ow("mutationObserverCallbacks",{}))},noAuto:function(){wG()},watch:function(n){var r=n.observeMutationsRoot;bk?uw():pk(ow("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},wk=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],a=o.slice(1).join("-");if(s&&a==="h")return r.flipX=!0,r;if(s&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(s){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},BG={mixout:function(){return{parse:{transform:function(n){return wk(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=wk(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:Be({},m.outer),children:[{tag:"g",attributes:Be({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Be(Be({},r.icon.attributes),m.path)}]}]}}}},Z0={x:0,y:0,width:"100%",height:"100%"};function xk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function zG(e){return e.tag==="g"?e.children:[e]}var UG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Yy(i.split(" ").map(function(s){return s.trim()})):oC();return o.prefix||(o.prefix=Ns()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,a=n.maskId,l=n.transform,c=o.width,f=o.icon,h=s.width,p=s.icon,m=Bq({transform:l,containerWidth:h,iconWidth:c}),g={tag:"rect",attributes:Be(Be({},Z0),{},{fill:"white"})},_=f.children?{children:f.children.map(xk)}:{},x={tag:"g",attributes:Be({},m.inner),children:[xk(Be({tag:f.tag,attributes:Be(Be({},f.attributes),m.path)},_))]},v={tag:"g",attributes:Be({},m.outer),children:[x]},b="mask-".concat(a||ed()),w="clip-".concat(a||ed()),E={tag:"mask",attributes:Be(Be({},Z0),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,v]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:zG(p)},E]};return r.push(P,{tag:"rect",attributes:Be({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(b,")")},Z0)}),{children:r,attributes:i}}}},VG={provides:function(t){var n=!1;Rs.matchMedia&&(n=Rs.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Be(Be({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=Be(Be({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Be(Be({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:Be(Be({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Be(Be({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:Be(Be({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Be(Be({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Be(Be({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Be(Be({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},HG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},WG=[Vq,MG,RG,NG,LG,$G,jG,BG,UG,VG,HG];iG(WG,{mixoutsTo:Fr});Fr.noAuto;Fr.config;Fr.library;Fr.dom;var fw=Fr.parse;Fr.findIconDefinition;Fr.toHtml;var YG=Fr.icon;Fr.layer;Fr.text;Fr.counter;var S={},qG={get exports(){return S},set exports(e){S=e}},GG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ZG=GG,KG=ZG;function dI(){}function hI(){}hI.resetWarningCache=dI;var XG=function(){function e(r,i,o,s,a,l){if(l!==KG){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hI,resetWarningCache:dI};return n.PropTypes=n,n};qG.exports=XG();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 cs(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){Xl(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 Lg(e){return Lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lg(e)}function Xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function JG(e,t){if(e==null)return{};var n=QG(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dw(e){return eZ(e)||tZ(e)||nZ(e)||rZ()}function eZ(e){if(Array.isArray(e))return hw(e)}function tZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nZ(e,t){if(e){if(typeof e=="string")return hw(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 hw(e,t)}}function hw(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 rZ(){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 iZ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,f=e.spinReverse,h=e.pulse,p=e.fixedWidth,m=e.inverse,g=e.border,_=e.listItem,x=e.flip,v=e.size,b=e.rotation,w=e.pull,E=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":p,"fa-inverse":m,"fa-border":g,"fa-li":_,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Xl(t,"fa-".concat(v),typeof v<"u"&&v!==null),Xl(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),Xl(t,"fa-pull-".concat(w),typeof w<"u"&&w!==null),Xl(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(E).map(function(P){return E[P]?P:null}).filter(function(P){return P})}function oZ(e){return e=e-0,e===e}function pI(e){return oZ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var sZ=["style"];function aZ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function lZ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=pI(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[aZ(i)]=o:t[i]=o,t},{})}function mI(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(l){return mI(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=lZ(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[pI(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=JG(n,sZ);return i.attrs.style=cs(cs({},i.attrs.style),s),e.apply(void 0,[t.tag,cs(cs({},i.attrs),a)].concat(dw(r)))}var gI=!1;try{gI=!0}catch{}function cZ(){if(!gI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ck(e){if(e&&Lg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(fw.icon)return fw.icon(e);if(e===null)return null;if(e&&Lg(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function K0(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Xl({},e,t):{}}var $e=z.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,s=e.title,a=e.titleId,l=e.maskId,c=Ck(n),f=K0("classes",[].concat(dw(iZ(e)),dw(o.split(" ")))),h=K0("transform",typeof e.transform=="string"?fw.transform(e.transform):e.transform),p=K0("mask",Ck(r)),m=YG(c,cs(cs(cs(cs({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!m)return cZ("Could not find icon",c),null;var g=m.abstract,_={ref:t};return Object.keys(e).forEach(function(x){$e.defaultProps.hasOwnProperty(x)||(_[x]=e[x])}),uZ(g[0],_)});$e.displayName="FontAwesomeIcon";$e.propTypes={beat:S.bool,border:S.bool,beatFade:S.bool,bounce:S.bool,className:S.string,fade:S.bool,flash:S.bool,mask:S.oneOfType([S.object,S.array,S.string]),maskId:S.string,fixedWidth:S.bool,inverse:S.bool,flip:S.oneOf([!0,!1,"horizontal","vertical","both"]),icon:S.oneOfType([S.object,S.array,S.string]),listItem:S.bool,pull:S.oneOf(["right","left"]),pulse:S.bool,rotation:S.oneOf([0,90,180,270]),shake:S.bool,size:S.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:S.bool,spinPulse:S.bool,spinReverse:S.bool,symbol:S.oneOfType([S.bool,S.string]),title:S.string,titleId:S.string,transform:S.oneOfType([S.string,S.object]),swapOpacity:S.bool};$e.defaultProps={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};var uZ=mI.bind(null,z.createElement),pw={},fZ={get exports(){return pw},set exports(e){pw=e}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="object")if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&r.push(l);else r.push(o.toString())}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(fZ);const ge=pw;var vI=H.createContext(),yI=H.createContext();function Ek(e){var t=e.children,n=H.useState(null),r=n[0],i=n[1],o=H.useRef(!1);H.useEffect(function(){return function(){o.current=!0}},[]);var s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(vI.Provider,{value:r},H.createElement(yI.Provider,{value:s},t))}var _I=function(t){return Array.isArray(t)?t[0]:t},bI=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},mw=function(t,n){if(typeof t=="function")return bI(t,n);t!=null&&(t.current=n)},Tk=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},Ok=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,br="top",ni="bottom",ri="right",wr="left",cC="auto",Dd=[br,ni,ri,wr],Tc="start",td="end",dZ="clippingParents",wI="viewport",Ou="popper",hZ="reference",Pk=Dd.reduce(function(e,t){return e.concat([t+"-"+Tc,t+"-"+td])},[]),xI=[].concat(Dd,[cC]).reduce(function(e,t){return e.concat([t,t+"-"+Tc,t+"-"+td])},[]),pZ="beforeRead",mZ="read",gZ="afterRead",vZ="beforeMain",yZ="main",_Z="afterMain",bZ="beforeWrite",wZ="write",xZ="afterWrite",SZ=[pZ,mZ,gZ,vZ,yZ,_Z,bZ,wZ,xZ];function to(e){return e?(e.nodeName||"").toLowerCase():null}function si(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ga(e){var t=si(e).Element;return e instanceof t||e instanceof Element}function Qr(e){var t=si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uC(e){if(typeof ShadowRoot>"u")return!1;var t=si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CZ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Qr(o)||!to(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function EZ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Qr(i)||!to(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const TZ={name:"applyStyles",enabled:!0,phase:"write",fn:CZ,effect:EZ,requires:["computeStyles"]};function Ki(e){return e.split("-")[0]}var Aa=Math.max,Dg=Math.min,Oc=Math.round;function gw(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SI(){return!/^((?!chrome|android).)*safari/i.test(gw())}function Pc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Qr(e)&&(i=e.offsetWidth>0&&Oc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Oc(r.height)/e.offsetHeight||1);var s=Ga(e)?si(e):window,a=s.visualViewport,l=!SI()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function fC(e){var t=Pc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function CI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return si(e).getComputedStyle(e)}function OZ(e){return["table","td","th"].indexOf(to(e))>=0}function Gs(e){return((Ga(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gy(e){return to(e)==="html"?e:e.assignedSlot||e.parentNode||(uC(e)?e.host:null)||Gs(e)}function kk(e){return!Qr(e)||Ro(e).position==="fixed"?null:e.offsetParent}function PZ(e){var t=/firefox/i.test(gw()),n=/Trident/i.test(gw());if(n&&Qr(e)){var r=Ro(e);if(r.position==="fixed")return null}var i=Gy(e);for(uC(i)&&(i=i.host);Qr(i)&&["html","body"].indexOf(to(i))<0;){var o=Ro(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ad(e){for(var t=si(e),n=kk(e);n&&OZ(n)&&Ro(n).position==="static";)n=kk(n);return n&&(to(n)==="html"||to(n)==="body"&&Ro(n).position==="static")?t:n||PZ(e)||t}function dC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function df(e,t,n){return Aa(e,Dg(t,n))}function kZ(e,t,n){var r=df(e,t,n);return r>n?n:r}function EI(){return{top:0,right:0,bottom:0,left:0}}function TI(e){return Object.assign({},EI(),e)}function OI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var MZ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,TI(typeof t!="number"?t:OI(t,Dd))};function RZ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ki(n.placement),l=dC(a),c=[wr,ri].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=MZ(i.padding,n),p=fC(o),m=l==="y"?br:wr,g=l==="y"?ni:ri,_=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],x=s[l]-n.rects.reference[l],v=Ad(o),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,w=_/2-x/2,E=h[m],P=b-p[f]-h[g],k=b/2-p[f]/2+w,N=df(E,k,P),A=l;n.modifiersData[r]=(t={},t[A]=N,t.centerOffset=N-k,t)}}function NZ(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||CI(t.elements.popper,i)&&(t.elements.arrow=i))}const LZ={name:"arrow",enabled:!0,phase:"main",fn:RZ,effect:NZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kc(e){return e.split("-")[1]}var DZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AZ(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Oc(t*i)/i||0,y:Oc(n*i)/i||0}}function Mk(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,m=p===void 0?0:p,g=s.y,_=g===void 0?0:g,x=typeof f=="function"?f({x:m,y:_}):{x:m,y:_};m=x.x,_=x.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),w=wr,E=br,P=window;if(c){var k=Ad(n),N="clientHeight",A="clientWidth";if(k===si(n)&&(k=Gs(n),Ro(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",A="scrollWidth")),k=k,i===br||(i===wr||i===ri)&&o===td){E=ni;var V=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];_-=V-r.height,_*=l?1:-1}if(i===wr||(i===br||i===ni)&&o===td){w=ri;var I=h&&k===P&&P.visualViewport?P.visualViewport.width:k[A];m-=I-r.width,m*=l?1:-1}}var Y=Object.assign({position:a},c&&DZ),q=f===!0?AZ({x:m,y:_}):{x:m,y:_};if(m=q.x,_=q.y,l){var X;return Object.assign({},Y,(X={},X[E]=b?"0":"",X[w]=v?"0":"",X.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+_+"px)":"translate3d("+m+"px, "+_+"px, 0)",X))}return Object.assign({},Y,(t={},t[E]=b?_+"px":"",t[w]=v?m+"px":"",t.transform="",t))}function IZ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Ki(t.placement),variation:kc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const FZ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IZ,data:{}};var lp={passive:!0};function $Z(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,lp)}),a&&l.addEventListener("resize",n.update,lp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,lp)}),a&&l.removeEventListener("resize",n.update,lp)}}const jZ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$Z,data:{}};var BZ={left:"right",right:"left",bottom:"top",top:"bottom"};function Xp(e){return e.replace(/left|right|bottom|top/g,function(t){return BZ[t]})}var zZ={start:"end",end:"start"};function Rk(e){return e.replace(/start|end/g,function(t){return zZ[t]})}function hC(e){var t=si(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pC(e){return Pc(Gs(e)).left+hC(e).scrollLeft}function UZ(e,t){var n=si(e),r=Gs(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=SI();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+pC(e),y:l}}function VZ(e){var t,n=Gs(e),r=hC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Aa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Aa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+pC(e),l=-r.scrollTop;return Ro(i||n).direction==="rtl"&&(a+=Aa(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function mC(e){var t=Ro(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function PI(e){return["html","body","#document"].indexOf(to(e))>=0?e.ownerDocument.body:Qr(e)&&mC(e)?e:PI(Gy(e))}function hf(e,t){var n;t===void 0&&(t=[]);var r=PI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=si(r),s=i?[o].concat(o.visualViewport||[],mC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(hf(Gy(s)))}function vw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HZ(e,t){var n=Pc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Nk(e,t,n){return t===wI?vw(UZ(e,n)):Ga(t)?HZ(t,n):vw(VZ(Gs(e)))}function WZ(e){var t=hf(Gy(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&Qr(e)?Ad(e):e;return Ga(r)?t.filter(function(i){return Ga(i)&&CI(i,r)&&to(i)!=="body"}):[]}function YZ(e,t,n,r){var i=t==="clippingParents"?WZ(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=Nk(e,c,r);return l.top=Aa(f.top,l.top),l.right=Dg(f.right,l.right),l.bottom=Dg(f.bottom,l.bottom),l.left=Aa(f.left,l.left),l},Nk(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function kI(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ki(r):null,o=r?kc(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case br:l={x:s,y:t.y-n.height};break;case ni:l={x:s,y:t.y+t.height};break;case ri:l={x:t.x+t.width,y:a};break;case wr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?dC(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Tc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case td:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function nd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?dZ:a,c=n.rootBoundary,f=c===void 0?wI:c,h=n.elementContext,p=h===void 0?Ou:h,m=n.altBoundary,g=m===void 0?!1:m,_=n.padding,x=_===void 0?0:_,v=TI(typeof x!="number"?x:OI(x,Dd)),b=p===Ou?hZ:Ou,w=e.rects.popper,E=e.elements[g?b:p],P=YZ(Ga(E)?E:E.contextElement||Gs(e.elements.popper),l,f,s),k=Pc(e.elements.reference),N=kI({reference:k,element:w,strategy:"absolute",placement:i}),A=vw(Object.assign({},w,N)),V=p===Ou?A:k,I={top:P.top-V.top+v.top,bottom:V.bottom-P.bottom+v.bottom,left:P.left-V.left+v.left,right:V.right-P.right+v.right},Y=e.modifiersData.offset;if(p===Ou&&Y){var q=Y[i];Object.keys(I).forEach(function(X){var Z=[ri,ni].indexOf(X)>=0?1:-1,J=[br,ni].indexOf(X)>=0?"y":"x";I[X]+=q[J]*Z})}return I}function qZ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?xI:l,f=kc(r),h=f?a?Pk:Pk.filter(function(g){return kc(g)===f}):Dd,p=h.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,_){return g[_]=nd(e,{placement:_,boundary:i,rootBoundary:o,padding:s})[Ki(_)],g},{});return Object.keys(m).sort(function(g,_){return m[g]-m[_]})}function GZ(e){if(Ki(e)===cC)return[];var t=Xp(e);return[Rk(e),t,Rk(t)]}function ZZ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,_=n.allowedAutoPlacements,x=t.options.placement,v=Ki(x),b=v===x,w=l||(b||!g?[Xp(x)]:GZ(x)),E=[x].concat(w).reduce(function(G,re){return G.concat(Ki(re)===cC?qZ(t,{placement:re,boundary:f,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:_}):re)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,A=!0,V=E[0],I=0;I<E.length;I++){var Y=E[I],q=Ki(Y),X=kc(Y)===Tc,Z=[br,ni].indexOf(q)>=0,J=Z?"width":"height",oe=nd(t,{placement:Y,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),ce=Z?X?ri:wr:X?ni:br;P[J]>k[J]&&(ce=Xp(ce));var K=Xp(ce),$=[];if(o&&$.push(oe[q]<=0),a&&$.push(oe[ce]<=0,oe[K]<=0),$.every(function(G){return G})){V=Y,A=!1;break}N.set(Y,$)}if(A)for(var D=g?3:1,B=function(re){var le=E.find(function(me){var O=N.get(me);if(O)return O.slice(0,re).every(function(R){return R})});if(le)return V=le,"break"},ne=D;ne>0;ne--){var W=B(ne);if(W==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const KZ={name:"flip",enabled:!0,phase:"main",fn:ZZ,requiresIfExists:["offset"],data:{_skip:!1}};function Lk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dk(e){return[br,ri,ni,wr].some(function(t){return e[t]>=0})}function XZ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=nd(t,{elementContext:"reference"}),a=nd(t,{altBoundary:!0}),l=Lk(s,r),c=Lk(a,i,o),f=Dk(l),h=Dk(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const QZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XZ};function JZ(e,t,n){var r=Ki(e),i=[wr,br].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[wr,ri].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function eK(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=xI.reduce(function(f,h){return f[h]=JZ(h,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const tK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eK};function nK(e){var t=e.state,n=e.name;t.modifiersData[n]=kI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rK={name:"popperOffsets",enabled:!0,phase:"read",fn:nK,data:{}};function iK(e){return e==="x"?"y":"x"}function oK(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,_=g===void 0?0:g,x=nd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),v=Ki(t.placement),b=kc(t.placement),w=!b,E=dC(v),P=iK(E),k=t.modifiersData.popperOffsets,N=t.rects.reference,A=t.rects.popper,V=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,I=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(k){if(o){var X,Z=E==="y"?br:wr,J=E==="y"?ni:ri,oe=E==="y"?"height":"width",ce=k[E],K=ce+x[Z],$=ce-x[J],D=m?-A[oe]/2:0,B=b===Tc?N[oe]:A[oe],ne=b===Tc?-A[oe]:-N[oe],W=t.elements.arrow,G=m&&W?fC(W):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EI(),le=re[Z],me=re[J],O=df(0,N[oe],G[oe]),R=w?N[oe]/2-D-O-le-I.mainAxis:B-O-le-I.mainAxis,F=w?-N[oe]/2+D+O+me+I.mainAxis:ne+O+me+I.mainAxis,ee=t.elements.arrow&&Ad(t.elements.arrow),Q=ee?E==="y"?ee.clientTop||0:ee.clientLeft||0:0,se=(X=Y==null?void 0:Y[E])!=null?X:0,ve=ce+R-se-Q,Le=ce+F-se,fe=df(m?Dg(K,ve):K,ce,m?Aa($,Le):$);k[E]=fe,q[E]=fe-ce}if(a){var ye,be=E==="x"?br:wr,Te=E==="x"?ni:ri,De=k[P],Re=P==="y"?"height":"width",Ne=De+x[be],ue=De-x[Te],he=[br,wr].indexOf(v)!==-1,we=(ye=Y==null?void 0:Y[P])!=null?ye:0,_e=he?Ne:De-N[Re]-A[Re]-we+I.altAxis,Ce=he?De+N[Re]+A[Re]-we-I.altAxis:ue,ke=m&&he?kZ(_e,De,Ce):df(m?_e:Ne,De,m?Ce:ue);k[P]=ke,q[P]=ke-De}t.modifiersData[r]=q}}const sK={name:"preventOverflow",enabled:!0,phase:"main",fn:oK,requiresIfExists:["offset"]};function aK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lK(e){return e===si(e)||!Qr(e)?hC(e):aK(e)}function cK(e){var t=e.getBoundingClientRect(),n=Oc(t.width)/e.offsetWidth||1,r=Oc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uK(e,t,n){n===void 0&&(n=!1);var r=Qr(t),i=Qr(t)&&cK(t),o=Gs(t),s=Pc(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((to(t)!=="body"||mC(o))&&(a=lK(t)),Qr(t)?(l=Pc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=pC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function fK(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function dK(e){var t=fK(e);return SZ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function hK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pK(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ak={placement:"bottom",modifiers:[],strategy:"absolute"};function Ik(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Ak:i;return function(a,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ak,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],p=!1,m={state:f,setOptions:function(v){var b=typeof v=="function"?v(f.options):v;_(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:Ga(a)?hf(a):a.contextElement?hf(a.contextElement):[],popper:hf(l)};var w=dK(pK([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(E){return E.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var v=f.elements,b=v.reference,w=v.popper;if(Ik(b,w)){f.rects={reference:uK(b,Ad(w),f.options.strategy==="fixed"),popper:fC(w)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(I){return f.modifiersData[I.name]=Object.assign({},I.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var P=f.orderedModifiers[E],k=P.fn,N=P.options,A=N===void 0?{}:N,V=P.name;typeof k=="function"&&(f=k({state:f,options:A,name:V,instance:m})||f)}}}},update:hK(function(){return new Promise(function(x){m.forceUpdate(),x(f)})}),destroy:function(){_(),p=!0}};if(!Ik(a,l))return m;m.setOptions(c).then(function(x){!p&&c.onFirstUpdate&&c.onFirstUpdate(x)});function g(){f.orderedModifiers.forEach(function(x){var v=x.name,b=x.options,w=b===void 0?{}:b,E=x.effect;if(typeof E=="function"){var P=E({state:f,name:v,instance:m,options:w}),k=function(){};h.push(P||k)}})}function _(){h.forEach(function(x){return x()}),h=[]}return m}}var gK=[jZ,rK,FZ,TZ,tK,KZ,sK,LZ,QZ],MI=mK({defaultModifiers:gK}),vK=typeof Element<"u",yK=typeof Map=="function",_K=typeof Set=="function",bK=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Qp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Qp(e[r],t[r]))return!1;return!0}var o;if(yK&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Qp(r.value[1],t.get(r.value[0])))return!1;return!0}if(_K&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bK&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(vK&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Qp(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var RI=function(t,n){try{return Qp(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},wK=[],xK=function(t,n,r){r===void 0&&(r={});var i=H.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||wK},s=H.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=H.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var g=m.state,_=Object.keys(g.elements);l({styles:Tk(_.map(function(x){return[x,g.styles[x]||{}]})),attributes:Tk(_.map(function(x){return[x,g.attributes[x]]}))})},requires:["computeStyles"]}},[]),f=H.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return RI(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=H.useRef();return Ok(function(){h.current&&h.current.setOptions(f)},[f]),Ok(function(){if(!(t==null||n==null)){var p=r.createPopper||MI,m=p(t,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:a.styles,attributes:a.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},SK=function(){},CK=function(){return Promise.resolve(null)},EK=[];function NI(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,s=o===void 0?EK:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=H.useContext(vI),p=H.useState(null),m=p[0],g=p[1],_=H.useState(null),x=_[0],v=_[1];H.useEffect(function(){mw(c,m)},[c,m]);var b=H.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,s,x]),w=xK(a||h,m,b),E=w.state,P=w.styles,k=w.forceUpdate,N=w.update,A=H.useMemo(function(){return{ref:g,style:P.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:v},forceUpdate:k||SK,update:N||CK}},[g,v,n,E,P,N,k]);return _I(f)(A)}function TK(e){var t=e.children,n=e.innerRef,r=H.useContext(yI),i=H.useCallback(function(o){mw(n,o),bI(r,o)},[n,r]);return H.useEffect(function(){return function(){return mw(n,null)}}),H.useEffect(function(){},[r]),_I(t)({ref:i})}function yw(e,t){return yw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yw(e,t)}function OK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yw(e,t)}const Fk={disabled:!1},LI=z.createContext(null);var Vu="unmounted",ya="exited",_a="entering",Al="entered",_w="exiting",jo=function(e){OK(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=ya,o.appearStatus=_a):l=Al:r.unmountOnExit||r.mountOnEnter?l=Vu:l=ya,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Vu?{status:ya}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==_a&&s!==Al&&(o=_a):(s===_a||s===Al)&&(o=_w)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===_a?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===ya&&this.setState({status:Vu})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[La.findDOMNode(this),a],c=l[0],f=l[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||Fk.disabled){this.safeSetState({status:Al},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:_a},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Al},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:La.findDOMNode(this);if(!o||Fk.disabled){this.safeSetState({status:ya},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:_w},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:ya},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:La.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Vu)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=hS(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(LI.Provider,{value:null},typeof s=="function"?s(i,a):z.cloneElement(z.Children.only(s),a))},t}(z.Component);jo.contextType=LI;jo.propTypes={};function Sl(){}jo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sl,onEntering:Sl,onEntered:Sl,onExit:Sl,onExiting:Sl,onExited:Sl};jo.UNMOUNTED=Vu;jo.EXITED=ya;jo.ENTERING=_a;jo.ENTERED=Al;jo.EXITING=_w;const Bo=jo;function $k(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?$k(Object(n),!0).forEach(function(r){PK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$k(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(){return je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(this,arguments)}function kK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ze(e,t){if(e==null)return{};var n=kK(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MK(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function gC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function RK(){return document.body.clientWidth<window.innerWidth}function DI(){const e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function AI(){const e=MK(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;RK()&&gC(n+e)}let NK;function Fe(e="",t=NK){return t?e.split(" ").map(n=>t[n]||n).join(" "):e}function Sr(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function II(e,t){const n=Array.isArray(t)?t:[t];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=e[i];return o}let jk={};function bw(e){jk[e]||(typeof console<"u"&&console.error(e),jk[e]=!0)}function FI(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&bw(`"${i}" property of "${o}" has been deprecated.
|
||
${t}`),e(r,i,o,...s)}}const LK=typeof window=="object"&&window.Element||function(){};function vC(e,t,n){if(!(e[t]instanceof LK))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Ds=S.oneOfType([S.string,S.func,vC,S.shape({current:S.any})]),Pe=S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func}),S.arrayOf(S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func})]))]),Za={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Ag=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],go={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},yt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},DK=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],yC=!!(typeof window<"u"&&window.document&&window.document.createElement);function AK(e){return e&&typeof e=="object"?"current"in e:!1}function $I(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Ig(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function Bk(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&$I(e)==="[object Symbol]")return n;if(Ig(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=Ig(i)?`${i}`:i}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function IK(e){if(!Ig(e))return!1;const t=$I(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function jI(e){if(AK(e))return e.current;if(IK(e))return e();if(typeof e=="string"&&yC){let t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll(`#${e}`)),!t.length)throw new Error(`The target '${e}' could not be identified in the dom, tip: check spelling`);return t}return e}function Fg(e){return e===null?!1:Array.isArray(e)||yC&&typeof e.length=="number"}function Mc(e,t){const n=jI(e);return t?Fg(n)?n:n===null?[]:[n]:Fg(n)?n[0]:n}const FK=["touchstart","click"];function $K(e,t,n,r){let i=e;Fg(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!Fg(i)||typeof t!="function"||!Array.isArray(o))throw new Error(`
|
||
The first argument of this function must be DOM node or an array on DOM nodes or NodeList.
|
||
The second must be a function.
|
||
The third is a string or an array of strings that represents DOM events
|
||
`);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const BI=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];S.oneOfType([S.bool,S.string]),S.string,S.object;const jK=["className","cssModule","noGutters","tag","widths"],BK=["xs","sm","md","lg","xl","xxl"],Cl=S.oneOfType([S.number,S.string]),zK={tag:Pe,noGutters:FI(S.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:S.string,cssModule:S.object,xs:Cl,sm:Cl,md:Cl,lg:Cl,xl:Cl,xxl:Cl,widths:S.array},UK={tag:"div",widths:BK};function cr(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=Ze(e,jK),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=Fe(ge(t,r?"gx-0":null,"row",a),n);return z.createElement(i,je({},s,{className:l}))}cr.propTypes=zK;cr.defaultProps=UK;const VK=["className","cssModule","widths","tag"],zI=["xs","sm","md","lg","xl","xxl"],zk=S.oneOfType([S.number,S.string]),El=S.oneOfType([S.bool,S.number,S.string,S.shape({size:S.oneOfType([S.bool,S.number,S.string]),order:zk,offset:zk})]),HK={tag:Pe,xs:El,sm:El,md:El,lg:El,xl:El,xxl:El,className:S.string,cssModule:S.object,widths:S.array},WK={tag:"div",widths:zI},Uk=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,YK=(e,t,n=zI)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(Ig(a)){const c=l?"-":`-${o}-`,f=Uk(l,o,a.size);i.push(Fe(ge({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=Uk(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function _C(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=Ze(e,VK);let{modifiedAttributes:s,colClasses:a}=YK(o,n,r);a.length||a.push("col");const l=Fe(ge(t,a),n);return z.createElement(i,je({},s,{className:l}))}_C.propTypes=HK;_C.defaultProps=WK;const qK=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],GK={children:S.node,className:S.string,color:S.string,container:S.oneOfType([S.bool,S.string]),cssModule:S.object,dark:S.bool,expand:S.oneOfType([S.bool,S.string]),fixed:S.string,full:S.bool,light:S.bool,role:S.string,sticky:S.string,tag:Pe},ZK={tag:"nav",expand:!1,container:"fluid"},KK=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function bC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=Ze(e,qK),m=Fe(ge(n,"navbar",KK(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),g=c&&c===!0?"container":`container-${c}`;return z.createElement(f,je({},p,{className:m}),c?z.createElement("div",{className:g},h):h)}bC.propTypes=GK;bC.defaultProps=ZK;const XK=["className","cssModule","tag"],QK={className:S.string,cssModule:S.object,tag:Pe},JK={tag:"a"};function wC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,XK),o=Fe(ge(t,"navbar-brand"),n);return z.createElement(r,je({},i,{className:o}))}wC.propTypes=QK;wC.defaultProps=JK;S.string,S.object,S.bool;const eX=["className","cssModule","children","tag"],tX={className:S.string,cssModule:S.object,tag:Pe,type:S.string,children:S.node},nX={tag:"button",type:"button"};function xC(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=Ze(e,eX),s=Fe(ge(t,"navbar-toggler"),n);return z.createElement(i,je({"aria-label":"Toggle navigation"},o,{className:s}),r||z.createElement("span",{className:Fe("navbar-toggler-icon",n)}))}xC.propTypes=tX;xC.defaultProps=nX;const rX=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],iX={card:S.bool,className:S.string,cssModule:S.object,fill:S.bool,horizontal:S.oneOf(["center","end"]),justified:S.bool,navbar:S.bool,pills:S.bool,tabs:S.bool,tag:Pe,vertical:S.oneOfType([S.bool,S.string])},oX={tag:"ul",vertical:!1},sX=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function Zy(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=Ze(e,rX),m=Fe(ge(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,sX(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return z.createElement(h,je({},p,{className:m}))}Zy.propTypes=iX;Zy.defaultProps=oX;const aX=["className","cssModule","active","tag"],lX={active:S.bool,className:S.string,cssModule:S.object,tag:Pe},cX={tag:"li"};function SC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=Ze(e,aX),s=Fe(ge(t,"nav-item",r?"active":!1),n);return z.createElement(i,je({},o,{className:s}))}SC.propTypes=lX;SC.defaultProps=cX;const uX=["className","cssModule","active","tag","innerRef"],fX={active:S.bool,className:S.string,cssModule:S.object,disabled:S.bool,href:S.any,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,tag:Pe},dX={tag:"a"};class CC extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=Ze(t,uX);const l=Fe(ge(n,"nav-link",{disabled:a.disabled,active:i}),r);return z.createElement(o,je({},a,{ref:s,onClick:this.onClick,className:l}))}}CC.propTypes=fX;CC.defaultProps=dX;var UI=CC;S.string,S.node,S.string,S.object,S.string;S.bool,S.string,S.object;const hX=["className","cssModule","variant","innerRef"],pX={active:S.bool,"aria-label":S.string,onClick:S.func,variant:S.oneOf(["white"]),className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])},mX={"aria-label":"close"};function EC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=Ze(e,hX),s=Fe(ge(t,"btn-close",r&&`btn-close-${r}`));return z.createElement("button",je({ref:i,type:"button",className:s},o))}EC.propTypes=pX;EC.defaultProps=mX;const gX=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],vX={active:S.bool,"aria-label":S.string,block:S.bool,children:S.node,className:S.string,cssModule:S.object,close:S.bool,color:S.string,disabled:S.bool,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,outline:S.bool,size:S.string,tag:Pe},yX={color:"secondary",tag:"button"};function gt(e){const t=H.useCallback(x=>{if(e.disabled){x.preventDefault();return}if(e.onClick)return e.onClick(x)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,m=Ze(e,gX);if(s)return z.createElement(EC,m);const g=`btn${c?"-outline":""}-${l}`,_=Fe(ge(o,"btn",g,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return m.href&&h==="button"&&(h="a"),z.createElement(h,je({type:h==="button"&&m.onClick?"button":void 0},m,{className:_,ref:p,onClick:t,"aria-label":r}))}gt.propTypes=vX;gt.defaultProps=yX;S.func,S.func,S.func,S.bool,S.string,S.object;const rd=z.createContext({}),VI=z.createContext({}),_X=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],bX={a11y:S.bool,disabled:S.bool,direction:S.oneOf(["up","down","start","end","left","right"]),group:S.bool,isOpen:S.bool,nav:S.bool,active:S.bool,size:S.string,tag:Pe,toggle:S.func,children:S.node,className:S.string,cssModule:S.object,dropup:S.bool,inNavbar:S.bool,setActiveFromChild:S.bool,menuRole:S.oneOf(["listbox","menu"])},wX={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},xX=[yt.space,yt.enter,yt.up,yt.down,yt.end,yt.home];class Ky extends z.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=z.createRef(),this.menuRef=z.createRef(),this.toggleRef=z.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==yt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===yt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=yt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((xX.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([yt.space,yt.enter,yt.up,yt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===yt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([yt.tab,yt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([yt.space,yt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([yt.down,yt.up].indexOf(t.which)>-1||[yt.n,yt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);yt.up===t.which||yt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(yt.down===t.which||yt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(yt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(yt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;a<o.length;a+=1)if((o[a].textContent&&o[a].textContent[0].toLowerCase())===s){o[a].focus();break}}}}handleProps(){this.props.isOpen?this.addEvents():this.removeEvents()}getContextValue(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}getContainer(){return this.containerRef.current}getMenu(){return this.menuRef.current}getToggle(){return this.toggleRef.current}getMenuCtrl(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}getItemType(){return this.props.menuRole==="listbox"?"option":"menuitem"}getMenuItems(){const t=this.getMenu()||this.getContainer();return[].slice.call(t.querySelectorAll(`[role="${this.getItemType()}"]`))}addEvents(){["click","touchstart","keyup"].forEach(t=>document.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Sr(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,m=Ze(t,_X),g=h||(l?"li":"div");let _=!1;c&&z.Children.map(this.props.children[1].props.children,v=>{v&&v.props.active&&(_=!0)});const x=Fe(ge(n,l&&f?"active":!1,c&&_?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?z.createElement(rd.Provider,{value:this.getContextValue()},z.createElement(Ek,null,z.Children.map(this.props.children,v=>z.cloneElement(v,{onKeyDown:this.handleKeyDown})))):z.createElement(rd.Provider,{value:this.getContextValue()},z.createElement(Ek,null,z.createElement(g,je({},m,{[typeof g=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:x}))))}}Ky.propTypes=bX;Ky.defaultProps=wX;Ky.contextType=VI;var Kc=Ky;const SX={children:S.node};function Xy(e){return z.createElement(Kc,je({group:!0},e))}Xy.propTypes=SX;S.string,S.string,S.object,S.string,S.string,S.bool;S.string,S.string,S.object,S.string;const CX=["className","cssModule","divider","tag","header","active","text"],EX={children:S.node,active:S.bool,disabled:S.bool,divider:S.bool,tag:Pe,header:S.bool,onClick:S.func,className:S.string,cssModule:S.object,toggle:S.bool,text:S.bool},TX={tag:"button",toggle:!0};class Qy extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Sr(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=Ze(r,CX);const p=Fe(ge(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),z.createElement(a,je({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}Qy.propTypes=EX;Qy.defaultProps=TX;Qy.contextType=rd;var Ve=Qy;const OX=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],PX={tag:Pe,children:S.node.isRequired,dark:S.bool,end:S.bool,flip:S.bool,modifiers:S.array,className:S.string,cssModule:S.object,style:S.object,persist:S.bool,strategy:S.string,container:Ds,updateOnSelect:S.bool,right:FI(S.bool,'Please use "end" instead.')},kX={tag:"div",flip:!0,modifiers:[]},MX={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class Jy extends z.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=t,g=Ze(t,OX),_=Fe(ge(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),x=a;if(f||this.context.isOpen&&!this.context.inNavbar){const E=`${MX[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=z.createElement(NI,{placement:E,modifiers:P,strategy:h},({ref:N,style:A,placement:V,update:I})=>{let Y=Ye(Ye({},this.props.style),A);const q=X=>{N(X);const{onMenuRef:Z}=this.context;Z&&Z(X)};return z.createElement(x,je({tabIndex:"-1",role:this.getRole(),ref:q},g,{style:Y,"aria-hidden":!this.context.isOpen,className:_,"data-popper-placement":V,onClick:()=>m&&I()}))});return p?La.createPortal(k,Mc(p)):k}const{onMenuRef:v}=this.context;return z.createElement(x,je({tabIndex:"-1",role:this.getRole()},g,{ref:v,"aria-hidden":!this.context.isOpen,className:_,"data-popper-placement":g.placement}))}}Jy.propTypes=PX;Jy.defaultProps=kX;Jy.contextType=rd;var al=Jy;const RX=["className","color","cssModule","caret","split","nav","tag","innerRef"],NX={caret:S.bool,color:S.string,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,onClick:S.func,"aria-haspopup":S.bool,split:S.bool,tag:Pe,nav:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func])},LX={color:"secondary","aria-haspopup":!0};class e_ extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=Ze(t,RX),h=f["aria-label"]||"Toggle Dropdown",p=Fe(ge(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),m=typeof f.children<"u"?f.children:z.createElement("span",{className:"visually-hidden"},h);let g;return a&&!l?(g="a",f.href="#"):l?g=l:(g=gt,f.color=r,f.cssModule=i),this.context.inNavbar?z.createElement(g,je({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):z.createElement(TK,{innerRef:c},({ref:_})=>{const x=v=>{_(v);const{onToggleRef:b}=this.context;b&&b(v)};return z.createElement(g,je({},f,{[typeof g=="string"?"ref":"innerRef"]:x,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}e_.propTypes=NX;e_.defaultProps=LX;e_.contextType=rd;var Xc=e_;const DX=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],AX=Ye(Ye({},Bo.propTypes),{},{children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:Pe,baseClass:S.string,baseClassActive:S.string,className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])}),IX=Ye(Ye({},Bo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Za.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Xt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=Ze(e,DX),c=II(l,Ag),f=Sr(l,Ag);return z.createElement(Bo,c,h=>{const m=Fe(ge(i,n,h==="entered"&&r),o);return z.createElement(t,je({className:m},f,{ref:a}),s)})}Xt.propTypes=AX;Xt.defaultProps=IX;z.createContext({});S.node,S.string,S.object,S.bool,S.oneOfType([S.object,S.string,S.func]),S.oneOfType([S.array,S.string]).isRequired,S.func.isRequired;S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.node,S.oneOfType([S.array,S.string]),S.bool;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.string.isRequired;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]);const FX=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],$X=Ye(Ye({},Bo.propTypes),{},{horizontal:S.bool,isOpen:S.bool,children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:Pe,className:S.node,navbar:S.bool,cssModule:S.object,innerRef:S.shape({current:S.object})}),jX=Ye(Ye({},Bo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Za.Collapse}),BX={[go.ENTERING]:"collapsing",[go.ENTERED]:"collapse show",[go.EXITING]:"collapsing",[go.EXITED]:"collapse"};function zX(e){return BX[e]||"collapse"}class TC extends H.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||z.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=Ze(t,FX),{dimension:h}=this.state,p=II(f,Ag),m=Sr(f,Ag);return z.createElement(Bo,je({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),g=>{let _=zX(g);const x=Fe(ge(o,r&&"collapse-horizontal",_,s&&"navbar-collapse"),a),v=h===null?null:{[r?"width":"height"]:h};return z.createElement(n,je({},m,{style:Ye(Ye({},m.style),v),className:x,ref:this.nodeRef}),l)})}}TC.propTypes=$X;TC.defaultProps=jX;var HI=TC;S.string.isRequired,S.string,S.node,S.object,S.oneOfType([S.object,S.string,S.func]);S.node,S.string,S.string,S.object,S.oneOfType([S.object,S.func,S.string]),S.bool;const UX=["className","cssModule","color","body","inverse","outline","tag","innerRef"],VX={body:S.bool,className:S.string,color:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),inverse:S.bool,outline:S.bool,tag:Pe},HX={tag:"div"};function xr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=Ze(e,UX),f=Fe(ge(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return z.createElement(a,je({},c,{className:f,ref:l}))}xr.propTypes=VX;xr.defaultProps=HX;S.string,S.object;S.string,S.object;S.string,S.object;const WX=["className","cssModule","innerRef","tag"],YX={className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),tag:Pe},qX={tag:"div"};function Ka(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=Ze(e,WX),s=Fe(ge(t,"card-body"),n);return z.createElement(i,je({},o,{className:s,ref:r}))}Ka.propTypes=YX;Ka.defaultProps=qX;S.oneOfType([S.object,S.func,S.string]),S.string,S.object;const GX=["className","cssModule","tag"],ZX={className:S.string,cssModule:S.object,tag:Pe},KX={tag:"div"};function OC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,GX),o=Fe(ge(t,"card-footer"),n);return z.createElement(r,je({},i,{className:o}))}OC.propTypes=ZX;OC.defaultProps=KX;const XX=["className","cssModule","tag"],QX={className:S.string,cssModule:S.object,tag:Pe},JX={tag:"div"};function Xa(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,XX),o=Fe(ge(t,"card-header"),n);return z.createElement(r,je({},i,{className:o}))}Xa.propTypes=QX;Xa.defaultProps=JX;S.bool,S.string,S.object,S.bool;S.string,S.object;const Jp=z.createContext({}),eQ=["in","children","cssModule","slide","tag","className"];class t_ extends z.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=Ze(t,eQ);return z.createElement(Bo,je({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===go.ENTERED||c===go.EXITING,p=(c===go.ENTERING||c===go.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===go.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),g=Fe(ge(a,"carousel-item",h&&"active",p,m),i);return z.createElement(s,{className:g},r)})}}t_.propTypes=Ye(Ye({},Bo.propTypes),{},{tag:Pe,in:S.bool,cssModule:S.object,children:S.node,slide:S.bool,className:S.string});t_.defaultProps=Ye(Ye({},Bo.defaultProps),{},{tag:"div",timeout:Za.Carousel,slide:!0});t_.contextType=Jp;var WI=t_;const tQ=40,YI={activeIndex:S.number,next:S.func.isRequired,previous:S.func.isRequired,keyboard:S.bool,pause:S.oneOf(["hover",!1]),ride:S.oneOf(["carousel"]),interval:S.oneOfType([S.number,S.string,S.bool]),children:S.array,mouseEnter:S.func,mouseLeave:S.func,slide:S.bool,dark:S.bool,fade:S.bool,cssModule:S.object,className:S.string,enableTouch:S.bool},nQ=Object.keys(YI),rQ={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class PC extends z.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex<i?o=s?"start":"end":t.activeIndex!==i&&(o=s?"end":"start"),r={activeIndex:t.activeIndex,direction:o,indicatorClicked:!1}),r}componentDidUpdate(t,n){n.activeIndex!==this.state.activeIndex&&this.setInterval()}componentWillUnmount(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}handleKeyPress(t){this.props.keyboard&&(t.keyCode===37?this.props.previous():t.keyCode===39&&this.props.next())}handleTouchStart(t){this.props.enableTouch&&(this.touchStartX=t.changedTouches[0].screenX,this.touchStartY=t.changedTouches[0].screenY)}handleTouchEnd(t){if(!this.props.enableTouch)return;const n=t.changedTouches[0].screenX,r=t.changedTouches[0].screenY,i=Math.abs(this.touchStartX-n),o=Math.abs(this.touchStartY-r);i<o||i<tQ||(n<this.touchStartX?this.props.next():this.props.previous())}getContextValue(){return{direction:this.state.direction}}setInterval(){this.clearInterval(),this.props.interval&&(this.cycleInterval=setInterval(()=>{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return z.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return z.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Sr(this.props,nQ),a=Fe(ge(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=Fe(ge("carousel-inner"),t),c=this.props.children.filter(v=>v!=null&&typeof v!="boolean");if(c.every(v=>v.type===WI))return z.createElement("div",je({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),z.createElement(Jp.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const v=c[0],b=c[1],w=c[2];return z.createElement("div",je({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),z.createElement(Jp.Provider,{value:this.getContextValue()},this.renderItems(v,l),b,w))}const h=c[0],p=v=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(v))},m=z.cloneElement(h,{onClickHandler:p}),g=c[1],_=c[2],x=c[3];return z.createElement("div",je({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),z.createElement(Jp.Provider,{value:this.getContextValue()},m,this.renderItems(g,l),_,x))}}PC.propTypes=YI;PC.defaultProps=rQ;var iQ=PC;const oQ=["direction","onClickHandler","cssModule","directionText","className"];function ww(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=Ze(e,oQ),a=Fe(ge(o,`carousel-control-${t}`),r),l=Fe(ge(`carousel-control-${t}-icon`),r),c=Fe(ge("visually-hidden"),r);return z.createElement("a",je({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),z.createElement("span",{className:l,"aria-hidden":"true"}),z.createElement("span",{className:c},i||t))}ww.propTypes={direction:S.oneOf(["prev","next"]).isRequired,onClickHandler:S.func.isRequired,cssModule:S.object,directionText:S.string,className:S.string};const sQ=["items","activeIndex","cssModule","onClickHandler","className"];function qI(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=Ze(e,sQ),a=Fe(ge(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=Fe(ge({active:n===f}),r);return z.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return z.createElement("div",je({className:a},s),l)}qI.propTypes={activeIndex:S.number.isRequired,className:S.string,cssModule:S.object,items:S.array.isRequired,onClickHandler:S.func.isRequired};function GI(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=Fe(ge(i,"carousel-caption","d-none","d-md-block"),r);return z.createElement("div",{className:o},z.createElement("h3",null,t),z.createElement("p",null,n))}GI.propTypes={captionHeader:S.node,captionText:S.node.isRequired,className:S.string,cssModule:S.object};const aQ=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],lQ={items:S.array.isRequired,indicators:S.bool,controls:S.bool,autoPlay:S.bool,defaultActiveIndex:S.number,activeIndex:S.number,next:S.func,previous:S.func,goToIndex:S.func};class ZI extends H.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=Ze(t,aQ),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return z.createElement(WI,{onExiting:this.onExiting,onExited:this.onExited,key:p},z.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),z.createElement(GI,{captionText:h.caption,captionHeader:h.header||h.caption}))});return z.createElement(iQ,je({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&z.createElement(qI,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&z.createElement(ww,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&z.createElement(ww,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}ZI.propTypes=lQ;ZI.defaultProps={controls:!0,indicators:!0,autoPlay:!0};S.string,S.object;const cQ=["className","cssModule","tag"],uQ={className:S.string,cssModule:S.object,tag:Pe},fQ={tag:"p"};function kC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,cQ),o=Fe(ge(t,"card-text"),n);return z.createElement(r,je({},i,{className:o}))}kC.propTypes=uQ;kC.defaultProps=fQ;const dQ=["className","cssModule","tag"],hQ={className:S.string,cssModule:S.object,tag:Pe},pQ={tag:"div"};function MC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,dQ),o=Fe(ge(t,"card-title"),n);return z.createElement(r,je({},i,{className:o}))}MC.propTypes=hQ;MC.defaultProps=pQ;const mQ=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function gQ(){}const vQ={children:S.oneOfType([S.node,S.func]).isRequired,popperClassName:S.string,placement:S.string,placementPrefix:S.string,arrowClassName:S.string,hideArrow:S.bool,tag:Pe,isOpen:S.bool,cssModule:S.object,offset:S.arrayOf(S.number),fallbackPlacements:S.array,flip:S.bool,container:Ds,target:Ds.isRequired,modifiers:S.array,strategy:S.string,boundariesElement:S.oneOfType([S.string,vC]),onClosed:S.func,fade:S.bool,transition:S.shape(Xt.propTypes)},yQ={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:gQ,fade:!0,transition:Ye({},Xt.defaultProps)};class RC extends z.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return Mc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?Mc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:g,modifiers:_,strategy:x,boundariesElement:v,onClosed:b,fade:w,transition:E,placement:P}=t,k=Ze(t,mQ),N=Fe(ge("arrow",f),n),A=Fe(ge(p,c?`${c}-auto`:""),this.props.cssModule),V=_.map(X=>X.name),Y=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:v}}].filter(X=>!V.includes(X.name)),..._],q=Ye(Ye(Ye({},Xt.defaultProps),E),{},{baseClass:w?E.baseClass:"",timeout:w?E.timeout:0});return z.createElement(Xt,je({},q,k,{in:i,onExited:this.onClosed,tag:m}),z.createElement(NI,{referenceElement:this.targetNode,modifiers:Y,placement:P,strategy:x},({ref:X,style:Z,placement:J,isReferenceHidden:oe,arrowProps:ce,update:K})=>z.createElement("div",{ref:X,style:Z,className:A,"data-popper-placement":J,"data-popper-reference-hidden":oe?"true":void 0},typeof r=="function"?r({update:K}):r,!h&&z.createElement("span",{ref:ce.ref,className:N,style:ce.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():La.createPortal(z.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}RC.propTypes=vQ;RC.defaultProps=yQ;var _Q=RC;S.object.isRequired;Ds.isRequired;const n_={children:S.oneOfType([S.node,S.func]),placement:S.oneOf(DK),target:Ds.isRequired,container:Ds,isOpen:S.bool,disabled:S.bool,hideArrow:S.bool,boundariesElement:S.oneOfType([S.string,vC]),className:S.string,innerClassName:S.string,arrowClassName:S.string,popperClassName:S.string,cssModule:S.object,toggle:S.func,autohide:S.bool,placementPrefix:S.string,delay:S.oneOfType([S.shape({show:S.number,hide:S.number}),S.number]),modifiers:S.array,strategy:S.string,offset:S.arrayOf(S.number),innerRef:S.oneOfType([S.func,S.string,S.object]),trigger:S.string,fade:S.bool,flip:S.bool},KI={show:0,hide:50},bQ={isOpen:!1,hideArrow:!1,autohide:!1,delay:KI,toggle:function(){},trigger:"click",fade:!0};function XI(e,t){return t&&(e===t||t.contains(e))}function Vk(e,t=[]){return t&&t.length&&t.filter(n=>XI(e,n))[0]}class NC extends z.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||Vk(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!XI(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&Vk(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?KI[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTarget(){const t=Mc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:g,offset:_,fade:x,flip:v,children:b}=this.props,w=Sr(this.props,Object.keys(n_)),E=Fe(h,r),P=Fe(i,r);return z.createElement(_Q,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:E,container:p,modifiers:m,strategy:g,offset:_,cssModule:r,fade:x,flip:v},({update:k})=>z.createElement("div",je({},w,{ref:this.getRef,className:P,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof b=="function"?b({update:k}):b))}}NC.propTypes=n_;NC.defaultProps=bQ;var QI=NC;const wQ={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Id(e){const t=ge("popover","show",e.popperClassName),n=ge("popover-inner",e.innerClassName);return z.createElement(QI,je({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Id.propTypes=n_;Id.defaultProps=wQ;const xQ=["defaultOpen"];class SQ extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(Id,je({isOpen:this.state.isOpen,toggle:this.toggle},Sr(this.props,xQ)))}}SQ.propTypes=Ye({defaultOpen:S.bool},Id.propTypes);S.string,S.object;S.string,S.object;const CQ=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],EQ={animated:S.bool,bar:S.bool,barAriaLabelledBy:S.string,barAriaValueText:S.string,barClassName:S.string,barStyle:S.object,children:S.node,className:S.string,cssModule:S.object,color:S.string,max:S.oneOfType([S.string,S.number]),min:S.oneOfType([S.string,S.number]),multi:S.bool,striped:S.bool,style:S.object,tag:Pe,value:S.oneOfType([S.string,S.number])},TQ={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function LC(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:g,barStyle:_,barAriaValueText:x,barAriaLabelledBy:v}=e,b=Ze(e,CQ),w=Bk(o)/Bk(a)*100,E=Fe(ge(n,"progress"),i),k={className:Fe(ge("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:Ye(Ye(Ye({},h?g:{}),_),{},{width:`${w}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":x,"aria-labelledby":v,children:t};return h?z.createElement(m,je({},b,k)):z.createElement(m,je({},b,{style:g,className:E}),p?t:z.createElement("div",k))}LC.propTypes=EQ;LC.defaultProps=TQ;const OQ={children:S.node.isRequired,node:S.any};class JI extends z.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return yC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),La.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}JI.propTypes=OQ;var e6=JI;function $g(){}const Hk=S.shape(Xt.propTypes),t6={autoFocus:S.bool,backdrop:S.oneOfType([S.bool,S.oneOf(["static"])]),backdropClassName:S.string,backdropTransition:Hk,centered:S.bool,children:S.node,contentClassName:S.string,className:S.string,container:Ds,cssModule:S.object,external:S.node,fade:S.bool,fullscreen:S.oneOfType([S.bool,S.oneOf(["sm","md","lg","xl"])]),innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,modalClassName:S.string,modalTransition:Hk,onClosed:S.func,onEnter:S.func,onExit:S.func,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,size:S.string,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,wrapClassName:S.string,zIndex:S.oneOfType([S.number,S.string])},PQ=Object.keys(t6),kQ={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:$g,onClosed:$g,modalTransition:{timeout:Za.Modal},backdropTransition:{mountOnEnter:!0,timeout:Za.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Er extends z.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this._originalBodyOverflow=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex<Er.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let s=0;s<r;s+=1)if(n[s]===i){o=s;break}t.shiftKey&&o===0?(t.preventDefault(),n[r-1].focus()):!t.shiftKey&&o===r-1&&(t.preventDefault(),n[0].focus())}handleBackdropMouseDown(t){this._mouseDownElement=t.target}handleEscape(t){this.props.isOpen&&t.keyCode===yt.esc&&this.props.toggle&&(this.props.keyboard?(t.preventDefault(),t.stopPropagation(),this.props.toggle(t)):this.props.backdrop==="static"&&(t.preventDefault(),t.stopPropagation(),this.handleStaticBackdropAnimation()))}handleStaticBackdropAnimation(){this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(()=>{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||$g)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||$g)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(BI.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex<Er.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Mc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=DI(),this._originalBodyOverflow=window.getComputedStyle(document.body).overflow,AI(),Er.openCount===0&&(document.body.className=ge(document.body.className,Fe("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Er.openCount,Er.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(Er.openCount<=1){const t=Fe("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=this._originalBodyOverflow}this.manageFocusAfterClose(),Er.openCount=Math.max(0,Er.openCount-1),gC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Sr(this.props,PQ),n="modal-dialog";return z.createElement("div",je({},t,{className:Fe(ge(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),z.createElement("div",{className:Fe(ge("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},g=this.props.fade,_=Ye(Ye(Ye({},Xt.defaultProps),this.props.modalTransition),{},{baseClass:g?this.props.modalTransition.baseClass:"",timeout:g?this.props.modalTransition.timeout:0}),x=Ye(Ye(Ye({},Xt.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),v=l&&(g?z.createElement(Xt,je({},x,{in:a&&!!l,cssModule:s,className:Fe(ge("modal-backdrop",o),s)})):z.createElement("div",{className:Fe(ge("modal-backdrop","show",o),s)}));return z.createElement(e6,{node:this._element},z.createElement("div",{className:Fe(r)},z.createElement(Xt,je({},m,_,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Fe(ge("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),v))}return null}}Er.propTypes=t6;Er.defaultProps=kQ;Er.openCount=0;var zo=Er;const MQ=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],RQ={children:S.node,className:S.string,close:S.object,closeAriaLabel:S.string,cssModule:S.object,tag:Pe,toggle:S.func,wrapTag:Pe},NQ={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function io(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=Ze(e,MQ),h=Fe(ge(n,"modal-header"),r);return!c&&o&&(t=z.createElement("button",{type:"button",onClick:o,className:Fe("btn-close",r),"aria-label":l})),z.createElement(a,je({},f,{className:h}),z.createElement(s,{className:Fe("modal-title",r)},i),c||t)}io.propTypes=RQ;io.defaultProps=NQ;const LQ=["className","cssModule","tag"],DQ={className:S.string,cssModule:S.object,tag:Pe},AQ={tag:"div"};function ki(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,LQ),o=Fe(ge(t,"modal-body"),n);return z.createElement(r,je({},i,{className:o}))}ki.propTypes=DQ;ki.defaultProps=AQ;const IQ=["className","cssModule","tag"],FQ={className:S.string,cssModule:S.object,tag:Pe},$Q={tag:"div"};function Zs(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,IQ),o=Fe(ge(t,"modal-footer"),n);return z.createElement(r,je({},i,{className:o}))}Zs.propTypes=FQ;Zs.defaultProps=$Q;const jQ={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Fd(e){const t=ge("tooltip","show",e.popperClassName),n=ge("tooltip-inner",e.innerClassName);return z.createElement(QI,je({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Fd.propTypes=n_;Fd.defaultProps=jQ;S.bool,S.bool,S.string,S.object,S.bool,S.bool,S.oneOfType([S.func,S.string,S.object]),S.oneOfType([S.bool,S.string]),S.string,S.bool;const BQ=["className","cssModule","tag","flush","horizontal","numbered"],zQ={className:S.string,cssModule:S.object,flush:S.bool,horizontal:S.oneOfType([S.bool,S.string]),numbered:S.bool,tag:Pe},UQ={tag:"ul",horizontal:!1,numbered:!1},VQ=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function DC(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=Ze(e,BQ),l=Fe(ge(t,"list-group",i?"list-group-flush":VQ(o),{"list-group-numbered":s}),n);return z.createElement(r,je({},a,{className:l}))}DC.propTypes=zQ;DC.defaultProps=UQ;const HQ=["className","cssModule","tag","innerRef"],WQ={children:S.node,tag:Pe,innerRef:S.oneOfType([S.object,S.func,S.string]),className:S.string,cssModule:S.object},YQ={tag:"form"};class n6 extends H.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=Ze(t,HQ),a=Fe(n,r);return z.createElement(i,je({},s,{ref:o,className:a}))}}n6.propTypes=WQ;n6.defaultProps=YQ;S.node,S.string,S.object,S.bool,S.bool;const qQ=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],GQ={children:S.node,row:S.bool,check:S.bool,switch:S.bool,inline:S.bool,floating:S.bool,disabled:S.bool,tag:Pe,className:S.string,cssModule:S.object},ZQ={tag:"div"};function Zr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=Ze(e,qQ),h=o||c,p=Fe(ge(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),z.createElement(l,je({},f,{className:p}))}Zr.propTypes=GQ;Zr.defaultProps=ZQ;S.node,S.bool,S.string,S.string,S.object;const KQ=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],XQ={children:S.node,type:S.string,size:S.oneOfType([S.number,S.string]),bsSize:S.string,valid:S.bool,invalid:S.bool,tag:Pe,innerRef:S.oneOfType([S.object,S.func,S.string]),plaintext:S.bool,addon:S.bool,className:S.string,cssModule:S.object},QQ={type:"text"};let AC=class extends z.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=Ze(t,KQ);const m=["switch","radio","checkbox"].indexOf(i)>-1,g=/\D/g,_=i==="textarea",x=i==="select",v=i==="range";let b=l||(x||_?i:"input"),w="form-control";f?(w=`${w}-plaintext`,b=l||"input"):v?w="form-range":x?w="form-select":m&&(c?w=null:w="form-check-input"),p.size&&g.test(p.size)&&(bw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const E=Fe(ge(n,a&&"is-invalid",s&&"is-valid",o?x?`form-select-${o}`:`form-control-${o}`:!1,w),r);return(b==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof b!="string"||b==="select")&&(bw(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),z.createElement(b,je({},p,{ref:h,className:E,"aria-invalid":a}))}};AC.propTypes=XQ;AC.defaultProps=QQ;var id=AC;const JQ=["className","cssModule","tag","type","size"],eJ={className:S.string,cssModule:S.object,size:S.string,tag:Pe,type:S.string},tJ={tag:"div"};function $d(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=Ze(e,JQ),a=Fe(ge(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?z.createElement(Kc,je({},s,{className:a})):z.createElement(VI.Provider,{value:{insideInputGroup:!0}},z.createElement(r,je({},s,{className:a})))}$d.propTypes=eJ;$d.defaultProps=tJ;S.string,S.object;const X0=S.oneOfType([S.number,S.string]),Tl=S.oneOfType([S.bool,S.string,S.number,S.shape({size:X0,order:X0,offset:X0})]);S.node,S.bool,S.bool,S.string,S.string,S.string,S.object,S.array;S.bool,S.bool,S.node,S.string,S.object,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool;function jg(){}const Wk=S.shape(Xt.propTypes),r6={autoFocus:S.bool,backdrop:S.bool,backdropClassName:S.string,backdropTransition:Wk,children:S.node,className:S.string,container:Ds,cssModule:S.object,direction:S.oneOf(["start","end","bottom","top"]),fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,offcanvasTransition:Wk,onClosed:S.func,onEnter:S.func,onExit:S.func,style:S.object,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,zIndex:S.oneOfType([S.number,S.string])},nJ=Object.keys(r6),rJ={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:jg,onClosed:jg,offcanvasTransition:{timeout:Za.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Za.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class mi extends z.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex<mi.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let s=0;s<r;s+=1)if(n[s]===i){o=s;break}t.shiftKey&&o===0?(t.preventDefault(),n[r-1].focus()):!t.shiftKey&&o===r-1&&(t.preventDefault(),n[0].focus())}handleBackdropMouseDown(t){this._mouseDownElement=t.target}handleEscape(t){this.props.isOpen&&t.keyCode===yt.esc&&this.props.toggle&&this.props.keyboard&&(t.preventDefault(),t.stopPropagation(),this.props.toggle(t))}onOpened(t,n){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||jg)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.offcanvasTransition.onExited||jg)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&typeof this._dialog.focus=="function"&&this._dialog.focus()}getFocusableChildren(){return this._element.querySelectorAll(BI.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog===t.target||this.offcanvasIndex<mi.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Mc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=DI(),AI(),mi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=mi.openCount,mi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),mi.openCount=Math.max(0,mi.openCount-1),document.body.style.overflow=null,gC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,g=Ye(Ye(Ye({},Xt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),_=Ye(Ye(Ye({},Xt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),x=l&&(m?z.createElement(Xt,je({},_,{in:a&&!!l,innerRef:b=>{this._backdrop=b},cssModule:s,className:Fe(ge("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):z.createElement("div",{className:Fe(ge("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),v=Sr(this.props,nJ);return z.createElement(e6,{node:this._element},z.createElement(Xt,je({},v,p,g,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Fe(ge("offcanvas",i,`offcanvas-${t}`),s),innerRef:b=>{this._dialog=b},style:Ye(Ye({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),x)}return null}}mi.propTypes=r6;mi.defaultProps=rJ;mi.openCount=0;S.string,S.object;S.node,S.string,S.object,S.string,S.object,S.func;const iJ=["className","listClassName","cssModule","size","tag","listTag","aria-label"],oJ={children:S.node,className:S.string,listClassName:S.string,cssModule:S.object,size:S.string,tag:Pe,listTag:Pe,"aria-label":S.string},sJ={tag:"nav",listTag:"ul","aria-label":"pagination"};function r_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=Ze(e,iJ),c=Fe(ge(t),r),f=Fe(ge(n,"pagination",{[`pagination-${i}`]:!!i}),r);return z.createElement(o,{className:c,"aria-label":a},z.createElement(s,je({},l,{className:f})))}r_.propTypes=oJ;r_.defaultProps=sJ;const aJ=["active","className","cssModule","disabled","tag"],lJ={active:S.bool,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,tag:Pe},cJ={tag:"li"};function Cs(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=Ze(e,aJ),a=Fe(ge(n,"page-item",{active:t,disabled:i}),r);return z.createElement(o,je({},s,{className:a}))}Cs.propTypes=lJ;Cs.defaultProps=cJ;const uJ=["className","cssModule","next","previous","first","last","tag"],fJ={"aria-label":S.string,children:S.node,className:S.string,cssModule:S.object,next:S.bool,previous:S.bool,first:S.bool,last:S.bool,tag:Pe},dJ={tag:"a"};function Es(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=Ze(e,uJ);const c=Fe(ge(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":s&&(p="»");let{children:m}=e;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(m=[z.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),z.createElement(a,je({},l,{className:c,"aria-label":h}),m)}Es.propTypes=fJ;Es.defaultProps=dJ;const hJ=z.createContext({}),i6={tag:Pe,activeTab:S.any,className:S.string,cssModule:S.object},pJ={tag:"div"};class o6 extends H.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Sr(this.props,Object.keys(i6)),o=Fe(ge("tab-content",t),n);return z.createElement(hJ.Provider,{value:{activeTabId:this.state.activeTab}},z.createElement(r,je({},i,{className:o})))}}o6.propTypes=i6;o6.defaultProps=pJ;S.string,S.object,S.any;const mJ=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],gJ={children:S.node,className:S.string,closeClassName:S.string,closeAriaLabel:S.string,color:S.string,cssModule:S.object,fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,tag:Pe,toggle:S.func,transition:S.shape(Xt.propTypes)},vJ={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:Ye(Ye({},Xt.defaultProps),{},{unmountOnExit:!0})};function IC(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,m=Ze(e,mJ),g=Fe(ge(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),_=Fe(ge("btn-close",n),i),x=Ye(Ye(Ye({},Xt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return z.createElement(Xt,je({},m,x,{tag:o,className:g,in:a,role:"alert",innerRef:p}),l?z.createElement("button",{type:"button",className:_,"aria-label":r,onClick:l}):null,c)}IC.propTypes=gJ;IC.defaultProps=vJ;S.node,S.string,S.object,S.bool,S.bool,S.shape(Xt.propTypes),S.oneOfType([S.object,S.string,S.func]);Ye(Ye({},Xt.defaultProps),{},{unmountOnExit:!0});S.string,S.object,S.oneOfType([S.object,S.string,S.func]);S.oneOfType([S.string,S.node]),S.func,S.string,S.object,S.node,S.string,S.oneOfType([S.string,S.number]),S.object,S.string;const yJ=["className","cssModule","tag","active","disabled","action","color"],_J={action:S.bool,active:S.bool,className:S.string,cssModule:S.object,color:S.string,disabled:S.bool,tag:Pe},bJ={tag:"li"},wJ=e=>{e.preventDefault()};function FC(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=Ze(e,yJ),c=Fe(ge(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=wJ),z.createElement(r,je({},l,{className:c}))}FC.propTypes=_J;FC.defaultProps=bJ;S.string,S.object;S.string,S.object;const xJ=["className","cssModule","tag","type"],SJ={className:S.string,cssModule:S.object,tag:Pe,type:S.string},CJ={tag:"ul"},$C=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=Ze(e,xJ),a=Fe(ge(n,o?`list-${o}`:!1),r);return z.createElement(i,je({},s,{className:a,ref:t}))});$C.name="List";$C.propTypes=SJ;$C.defaultProps=CJ;const EJ=["className","cssModule","tag"],TJ={className:S.string,cssModule:S.object,tag:Pe},OJ={tag:"li"},jC=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=Ze(e,EJ),s=Fe(ge(n,"list-inline-item"),r);return z.createElement(i,je({},o,{className:s,ref:t}))});jC.name="ListInlineItem";jC.propTypes=TJ;jC.defaultProps=OJ;const PJ=["defaultOpen"];class kJ extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(Xy,je({isOpen:this.state.isOpen,toggle:this.toggle},Sr(this.props,PJ)))}}kJ.propTypes=Ye({defaultOpen:S.bool},Xy.propTypes);const MJ=["toggleEvents","defaultOpen"],RJ={defaultOpen:S.bool,toggler:S.string.isRequired,toggleEvents:S.arrayOf(S.string)},NJ={toggleEvents:FK};class s6 extends H.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=jI(this.props.toggler),this.togglers.length&&(this.removeEventListeners=$K(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return z.createElement(HI,je({isOpen:this.state.isOpen},Sr(this.props,MJ)))}}s6.propTypes=RJ;s6.defaultProps=NJ;const LJ=["defaultOpen"];class jd extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return z.createElement(Kc,je({isOpen:this.state.isOpen,toggle:this.toggle},Sr(this.props,LJ)))}}jd.propTypes=Ye({defaultOpen:S.bool,onToggle:S.func},Kc.propTypes);const DJ=["defaultOpen"];class $r extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(Fd,je({isOpen:this.state.isOpen,toggle:this.toggle},Sr(this.props,DJ)))}}$r.propTypes=Ye({defaultOpen:S.bool},Fd.propTypes);S.oneOf(["border","grow"]),S.oneOf(["sm"]),S.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),S.string,S.object,S.string;Ye(Ye({},_C.propTypes),{},{color:S.string,tag:Pe,animation:S.oneOf(["glow","wave"]),innerRef:S.oneOfType([S.object,S.func,S.string]),size:S.oneOf(["lg","sm","xs"])});S.string,S.string,S.bool,S.string,S.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const AJ="Left",IJ="Right",FJ="Up",$J="Down",Ql={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},xw={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Yk="mousemove",qk="mouseup",jJ="touchend",BJ="touchmove",zJ="touchstart";function UJ(e,t,n,r){return e>t?n>0?IJ:AJ:r>0?$J:FJ}function Gk(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 VJ(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(Yk,r),document.addEventListener(qk,s));const{clientX:g,clientY:_}=h?f.touches[0]:f,x=Gk([g,_],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),xw),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const m="touches"in f;if(m&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:g,clientY:_}=m?f.touches[0]:f,[x,v]=Gk([g,_],p.rotationAngle),b=x-h.xy[0],w=v-h.xy[1],E=Math.abs(b),P=Math.abs(w),k=(f.timeStamp||0)-h.start,N=Math.sqrt(E*E+P*P)/(k||1),A=[b/(k||1),w/(k||1)],V=UJ(E,P,b,w),I=typeof p.delta=="number"?p.delta:p.delta[V.toLowerCase()]||Ql.delta;if(E<I&&P<I&&!h.swiping)return h;const Y={absX:E,absY:P,deltaX:b,deltaY:w,dir:V,event:f,first:h.first,initial:h.initial,velocity:N,vxvy:A};Y.first&&p.onSwipeStart&&p.onSwipeStart(Y),p.onSwiping&&p.onSwiping(Y);let q=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${V}`])&&(q=!0),q&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},h),{first:!1,eventData:Y,swiping:!0})})},i=f=>{e((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start<p.swipeDuration){m=Object.assign(Object.assign({},h.eventData),{event:f}),p.onSwiped&&p.onSwiped(m);const g=p[`onSwiped${m.dir}`];g&&g(m)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},h),xw),{eventData:m})})},o=()=>{document.removeEventListener(Yk,r),document.removeEventListener(qk,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},Ql.touchEventOptions),h.touchEventOptions),g=[[zJ,n,m],[BJ,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[jJ,i,m]];g.forEach(([_,x,v])=>f.addEventListener(_,x,v)),p=()=>g.forEach(([_,x])=>f.removeEventListener(_,x))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function HJ(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 WJ(e){const{trackMouse:t}=e,n=H.useRef(Object.assign({},xw)),r=H.useRef(Object.assign({},Ql)),i=H.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Ql),e);let o;for(o in Ql)r.current[o]===void 0&&(r.current[o]=Ql[o]);const[s,a]=H.useMemo(()=>VJ(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=HJ(n.current,r.current,i.current,a),s}var cp,YJ=new Uint8Array(16);function qJ(){if(!cp&&(cp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!cp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cp(YJ)}const GJ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ZJ(e){return typeof e=="string"&&GJ.test(e)}var $n=[];for(var Q0=0;Q0<256;++Q0)$n.push((Q0+256).toString(16).substr(1));function KJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=($n[e[t+0]]+$n[e[t+1]]+$n[e[t+2]]+$n[e[t+3]]+"-"+$n[e[t+4]]+$n[e[t+5]]+"-"+$n[e[t+6]]+$n[e[t+7]]+"-"+$n[e[t+8]]+$n[e[t+9]]+"-"+$n[e[t+10]]+$n[e[t+11]]+$n[e[t+12]]+$n[e[t+13]]+$n[e[t+14]]+$n[e[t+15]]).toLowerCase();if(!ZJ(n))throw TypeError("Stringified UUID is invalid");return n}function BC(e,t,n){e=e||{};var r=e.random||(e.rng||qJ)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return KJ(r)}const XJ=2e3,QJ=(e,t)=>(n=!1,r=XJ)=>{const[i,o]=H.useState(n),s=H.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},Bt=(e=!1)=>{const[t,n]=H.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},JJ=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:s})=>s==null?void 0:s.contains("visits-table"))||document.querySelector(".modal")||r()};return WJ({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},eee=(e,t)=>{const[n,r]=H.useState(t);return[n,o=>{const{location:s,history:a}=window,l=Gc(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${Md(l)}`),r(o)}]},tee=(e,t)=>{const n=H.useRef(!0);H.useEffect(()=>{!n.current&&e(),n.current=!1},t)},Ks=()=>{const e=Io();return()=>e(-1)},i_=()=>{const{current:e}=H.useRef(`dom-${BC()}`);return e},zC="#4696e5",nee="rgba(70, 150, 229, 0.4)",a6="#f77f28",ree="rgba(247, 127, 40, 0.4)",iee="white",oee="#161b22",l6=e=>{var t,n;return(n=(t=document.getElementsByTagName("html"))==null?void 0:t[0])==null?void 0:n.setAttribute("data-theme",e)},see=()=>{var e,t;return((t=(e=document.getElementsByTagName("html"))==null?void 0:e[0])==null?void 0:t.getAttribute("data-theme"))==="dark"},c6=({color:e=zC,className:t})=>C("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:U("g",{fill:e,children:[C("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"}),C("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"}),C("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"}),C("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"})]})});const aee=e=>()=>{const[t,n,,r]=Bt(),i=Wn(),{pathname:o}=i;H.useEffect(r,[i]);const s="/settings",a=ge("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return U(bC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[U(wC,{tag:It,to:"/",children:[C(c6,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),C(xC,{onClick:n,children:C($e,{icon:iq,className:a})}),C(HI,{navbar:!0,isOpen:t,children:U(Zy,{navbar:!0,className:"ms-auto",children:[C(SC,{children:U(UI,{tag:It,to:s,active:o.startsWith(s),children:[C($e,{icon:uq})," Settings"]})}),C(e,{})]})})]})};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Sw=function(){return Sw=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Sw.apply(this,arguments)};function lee(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ci=function(e){var t=e.href,n=e.children,r=lee(e,["href","children"]);return z.createElement("a",Sw({target:"_blank",rel:"noopener noreferrer",href:t},r),n??t)};const cee=({id:e,name:t})=>U(FC,{tag:It,to:`/server/${e}`,className:"servers-list__server-item",children:[t,C($e,{icon:sq,className:"servers-list__server-item-icon"})]}),u6=({servers:e,children:t,embedded:n=!1})=>U(We,{children:[t&&C("h5",{className:"mb-md-3",children:t}),e.length>0&&C(DC,{className:ge("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>C(cee,{id:r,name:i},r))})]});const uee=({servers:e})=>{const t=Io(),n=Yc(e),r=!Hn(n);return H.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),C("div",{className:"home",children:C(xr,{className:"home__main-card",children:U(cr,{className:"g-0",children:[C("div",{className:"col-md-5 d-none d-md-block",children:C("div",{className:"home__logo-wrapper",children:C("div",{className:"home__logo",children:C(c6,{})})})}),U("div",{className:"col-md-7 home__servers-container",children:[C("div",{className:"home__title-wrapper",children:C("h1",{className:"home__title",children:"Welcome!"})}),C(u6,{embedded:!0,servers:n,children:!r&&U("div",{className:"p-4 text-center",children:[C("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),C("p",{children:U(It,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[C($e,{icon:ZS})," ",C("span",{className:"ms-1",children:"Add a server"})]})}),C("p",{className:"mb-0 mt-5",children:C(Ci,{href:"https://shlink.io/documentation",children:U("small",{children:[C("span",{className:"me-1",children:"Learn more about Shlink"})," ",C($e,{icon:zY})]})})})]})})]})]})})})},fee=e=>({error:"border-danger",default:""})[e],dee=e=>({error:"text-danger",default:"text-muted"})[e],So=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=ge({"col-md-12":i,"col-md-10 offset-md-1":!i});return C(cr,{className:ge("g-0",e),children:C("div",{className:o,children:C(xr,{className:fee(r),body:!0,children:U("h3",{className:ge("text-center mb-0",dee(r)),children:[n&&C($e,{icon:LA,spin:!0}),n&&C("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})};const Qc=({children:e})=>C("div",{className:"no-menu-wrapper container-xl",children:e});function f6(e,t){return n=>{const r=Ws(),{selectServer:i,selectedServer:o}=n;return H.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?cH(o)?C(t,{}):C(e,{...n}):C(Qc,{children:C(So,{loading:!0})})}}const hee=(e,t)=>{const n=Zk(e),r=Zk(t),i=n.pop(),o=r.pop(),s=Qk(n,r);return s!==0?s:i&&o?Qk(i.split("."),o.split(".")):i||o?i?-1:1:0},Cw=(e,t,n)=>{vee(n);const r=hee(e,t);return d6[n].includes(r)},pee=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Zk=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(pee);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},Kk=e=>e==="*"||e==="x"||e==="X",Xk=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},mee=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],gee=(e,t)=>{if(Kk(e)||Kk(t))return 0;const[n,r]=mee(Xk(e),Xk(t));return n>r?1:n<r?-1:0},Qk=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=gee(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},d6={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},Jk=Object.keys(d6),vee=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(Jk.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${Jk.join("|")}`)},UC=(e,t,n=1)=>AS(n,e+1).map(t),vi=e=>!Fo(e)&&!Hn(e),Bd=e=>Ft(t=>t.preventDefault(),e),J0=e=>Hn(e)?null:e,ua=e=>t=>e===t,yee=e=>e?"true":"false",_ee=(e,{maxVersion:t,minVersion:n})=>{if(!vi(e))return!1;const r=!n||Cw(e,n,">=");return(!t||Cw(e,t,"<="))&&r},h6=fA(Fy,e=>{try{return Cw(e,e,"=")}catch{return!1}}),p6=e=>h6(e)?`v${e}`:e,m6=(e="latest")=>t=>h6(t)?t:e,zd=e=>t=>jy(t)&&_ee(t.version,{minVersion:e}),g6=zd("2.9.0"),bee=g6,wee=zd("2.10.0"),VC=zd("3.0.0"),xee=VC,v6=zd("3.1.0"),See=zd("3.4.0"),gn=({title:e,children:t,bodyClassName:n,...r})=>U(xr,{...r,children:[e&&C(Xa,{role:"heading",children:e}),C(Ka,{className:n,children:t})]}),y6=({to:e="/",children:t="Home"})=>C("div",{className:"home",children:U(gn,{className:"p-4",children:[C("h2",{children:"Oops! We could not find requested route."}),C("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),C("br",{}),C(It,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});const Cee=(e,t,n,r,i,o,s,a,l,c,f,h,p)=>f6(({selectedServer:m,sidebarNotPresent:g,sidebarPresent:_})=>{const x=Wn(),[v,b,w,E]=Bt(),P=jy(m);if(H.useEffect(()=>E(),[x]),H.useEffect(()=>(P&&_(),()=>g()),[]),!P)return C(c,{});const k=VC(m),N=v6(m),A=ge("menu-layout__burger-icon",{"menu-layout__burger-icon--active":v}),V=JJ(w,E);return U(We,{children:[C($e,{icon:CY,className:A,onClick:b}),C("div",{...V,className:"menu-layout__swipeable",children:U("div",{className:"menu-layout__swipeable-inner",children:[C(n,{selectedServer:m,showOnMobile:v}),C("div",{className:"menu-layout__container",onClick:()=>E(),children:C("div",{className:"container-xl",children:U(Ly,{children:[C(_t,{index:!0,element:C(CS,{replace:!0,to:"overview"})}),C(_t,{path:"/overview",element:C(f,{})}),C(_t,{path:"/list-short-urls/:page",element:C(t,{})}),C(_t,{path:"/create-short-url",element:C(r,{})}),C(_t,{path:"/short-code/:shortCode/visits/*",element:C(i,{})}),C(_t,{path:"/short-code/:shortCode/edit",element:C(h,{})}),C(_t,{path:"/tag/:tag/visits/*",element:C(o,{})}),N&&C(_t,{path:"/domain/:domain/visits/*",element:C(s,{})}),C(_t,{path:"/orphan-visits/*",element:C(a,{})}),k&&C(_t,{path:"/non-orphan-visits/*",element:C(l,{})}),C(_t,{path:"/manage-tags",element:C(e,{})}),C(_t,{path:"/manage-domains",element:C(p,{})}),C(_t,{path:"*",element:C(y6,{to:`/server/${m.id}/list-short-urls/1`,children:"List short URLs"})})]})})})]})})]})},c);const Ol=({children:e,to:t,className:n,...r})=>C(V4,{className:({isActive:i})=>ge("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Eee=e=>({selectedServer:t,showOnMobile:n=!1})=>{const r=Ss(t),i=r?t.id:"",{pathname:o}=Wn(),s=ge("aside-menu",{"aside-menu--hidden":!n}),a=l=>`/server/${i}${l}`;return C("aside",{className:s,children:U("nav",{className:"nav flex-column aside-menu__nav",children:[U(Ol,{to:a("/overview"),children:[C($e,{fixedWidth:!0,icon:KY}),C("span",{className:"aside-menu__item-text",children:"Overview"})]}),U(Ol,{to:a("/list-short-urls/1"),className:ge({"aside-menu__item--selected":o.match("/list-short-urls")!==null}),children:[C($e,{fixedWidth:!0,icon:DA}),C("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),U(Ol,{to:a("/create-short-url"),children:[C($e,{fixedWidth:!0,icon:tq,flip:"horizontal"}),C("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),U(Ol,{to:a("/manage-tags"),children:[C($e,{fixedWidth:!0,icon:IA}),C("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),U(Ol,{to:a("/manage-domains"),children:[C($e,{fixedWidth:!0,icon:kY}),C("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),U(Ol,{to:a("/edit"),className:"aside-menu__item--push",children:[C($e,{fixedWidth:!0,icon:$Y}),C("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),r&&C(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:t})]})})},Tee=({location:e},{error:t})=>class extends H.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){t(n)}render(){const{hasError:n}=this.state;if(n)return C("div",{className:"home",children:U(gn,{className:"p-4",children:[C("h1",{children:"Oops! This is awkward :S"}),C("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),C("br",{}),C(gt,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}},Oee="%_VERSION_%",Pee=Ft(m6(),p6),e3=({project:e,version:t})=>C(Ci,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:C("b",{children:t})}),kee=({selectedServer:e,clientVersion:t=Oee})=>{const n=Pee(t);return U("small",{className:"text-muted",children:[jy(e)&&U(We,{children:["Server: ",C(e3,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",C(e3,{project:"shlink-web-client",version:n})]})};const Mee=({selectedServer:e,sidebar:t})=>{const n=ge("text-center",{"shlink-versions-container--with-sidebar":t.sidebarPresent});return C("div",{className:n,children:C(kee,{selectedServer:e})})};function Bg(e){return t=>{const{resetSelectedServer:n}=t;return H.useEffect(()=>{n()},[]),C(e,{...t})}}function yi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function As(e){return!!e&&!!e[$t]}function No(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===jee}(e)||Array.isArray(e)||!!e[a3]||!!(!((t=e.constructor)===null||t===void 0)&&t[a3])||HC(e)||WC(e))}function Qa(e,t,n){n===void 0&&(n=!1),Jc(e)===0?(n?Object.keys:uc)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Jc(e){var t=e[$t];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:HC(e)?2:WC(e)?3:0}function cc(e,t){return Jc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ree(e,t){return Jc(e)===2?e.get(t):e[t]}function _6(e,t,n){var r=Jc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function b6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function HC(e){return Fee&&e instanceof Map}function WC(e){return $ee&&e instanceof Set}function ba(e){return e.o||e.t}function YC(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=x6(e);delete t[$t];for(var n=uc(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function qC(e,t){return t===void 0&&(t=!1),GC(e)||As(e)||!No(e)||(Jc(e)>1&&(e.set=e.add=e.clear=e.delete=Nee),Object.freeze(e),t&&Qa(e,function(n,r){return qC(r,!0)},!0)),e}function Nee(){yi(2)}function GC(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Xi(e){var t=Pw[e];return t||yi(18,e),t}function Lee(e,t){Pw[e]||(Pw[e]=t)}function Ew(){return od}function eb(e,t){t&&(Xi("Patches"),e.u=[],e.s=[],e.v=t)}function zg(e){Tw(e),e.p.forEach(Dee),e.p=null}function Tw(e){e===od&&(od=e.l)}function t3(e){return od={p:[],l:od,h:e,m:!0,_:0}}function Dee(e){var t=e[$t];t.i===0||t.i===1?t.j():t.O=!0}function tb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Xi("ES5").S(t,e,r),r?(n[$t].P&&(zg(t),yi(4)),No(e)&&(e=Ug(t,e),t.l||Vg(t,e)),t.u&&Xi("Patches").M(n[$t].t,e,t.u,t.s)):e=Ug(t,n,[]),zg(t),t.u&&t.v(t.u,t.s),e!==w6?e:void 0}function Ug(e,t,n){if(GC(t))return t;var r=t[$t];if(!r)return Qa(t,function(o,s){return n3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=YC(r.k):r.o;Qa(r.i===3?new Set(i):i,function(o,s){return n3(e,r,i,o,s,n)}),Vg(e,i,!1),n&&e.u&&Xi("Patches").R(r,n,e.u,e.s)}return r.o}function n3(e,t,n,r,i,o){if(As(i)){var s=Ug(e,i,o&&t&&t.i!==3&&!cc(t.D,r)?o.concat(r):void 0);if(_6(n,r,s),!As(s))return;e.m=!1}if(No(i)&&!GC(i)){if(!e.h.F&&e._<1)return;Ug(e,i),t&&t.A.l||Vg(e,i)}}function Vg(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&qC(t,n)}function nb(e,t){var n=e[$t];return(n?ba(n):e)[t]}function r3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function is(e){e.P||(e.P=!0,e.l&&is(e.l))}function rb(e){e.o||(e.o=YC(e.t))}function Ow(e,t,n){var r=HC(t)?Xi("MapSet").N(t,n):WC(t)?Xi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Ew(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=sd;s&&(l=[a],c=Hu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Xi("ES5").J(t,n);return(n?n.A:Ew()).p.push(r),r}function Aee(e){return As(e)||yi(22,e),function t(n){if(!No(n))return n;var r,i=n[$t],o=Jc(n);if(i){if(!i.P&&(i.i<4||!Xi("ES5").K(i)))return i.t;i.I=!0,r=i3(n,o),i.I=!1}else r=i3(n,o);return Qa(r,function(s,a){i&&Ree(i.t,s)===a||_6(r,s,t(a))}),o===3?new Set(r):r}(e)}function i3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return YC(e)}function Iee(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[$t];return sd.get(l,o)},set:function(l){var c=this[$t];sd.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][$t];if(!a.P)switch(a.i){case 5:r(a)&&is(a);break;case 4:n(a)&&is(a)}}}function n(o){for(var s=o.t,a=o.k,l=uc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==$t){var h=s[f];if(h===void 0&&!cc(s,f))return!0;var p=a[f],m=p&&p[$t];if(m?m.t!==h:!b6(p,h))return!0}}var g=!!s[$t];return l.length!==uc(s).length+(g?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}var i={};Lee("ES5",{J:function(o,s){var a=Array.isArray(o),l=function(f,h){if(f){for(var p=Array(h.length),m=0;m<h.length;m++)Object.defineProperty(p,""+m,e(m,!0));return p}var g=x6(h);delete g[$t];for(var _=uc(g),x=0;x<_.length;x++){var v=_[x];g[v]=e(v,f||!!g[v].enumerable)}return Object.create(Object.getPrototypeOf(h),g)}(a,o),c={i:a?5:4,A:s?s.A:Ew(),P:!1,I:!1,D:{},l:s,t:o,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,$t,{value:c,writable:!0}),l},S:function(o,s,a){a?As(s)&&s[$t].A===o&&t(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var f=c[$t];if(f){var h=f.t,p=f.k,m=f.D,g=f.i;if(g===4)Qa(p,function(w){w!==$t&&(h[w]!==void 0||cc(h,w)?m[w]||l(p[w]):(m[w]=!0,is(f)))}),Qa(h,function(w){p[w]!==void 0||cc(p,w)||(m[w]=!1,is(f))});else if(g===5){if(r(f)&&(is(f),m.length=!0),p.length<h.length)for(var _=p.length;_<h.length;_++)m[_]=!1;else for(var x=h.length;x<p.length;x++)m[x]=!0;for(var v=Math.min(p.length,h.length),b=0;b<v;b++)p.hasOwnProperty(b)||(m[b]=!0),m[b]===void 0&&l(p[b])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var o3,od,ZC=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fee=typeof Map<"u",$ee=typeof Set<"u",s3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",w6=ZC?Symbol.for("immer-nothing"):((o3={})["immer-nothing"]=!0,o3),a3=ZC?Symbol.for("immer-draftable"):"__$immer_draftable",$t=ZC?Symbol.for("immer-state"):"__$immer_state",jee=""+Object.prototype.constructor,uc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,x6=Object.getOwnPropertyDescriptors||function(e){var t={};return uc(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Pw={},sd={get:function(e,t){if(t===$t)return e;var n=ba(e);if(!cc(n,t))return function(i,o,s){var a,l=r3(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!No(r)?r:r===nb(e.t,t)?(rb(e),e.o[t]=Ow(e.A.h,r,e)):r},has:function(e,t){return t in ba(e)},ownKeys:function(e){return Reflect.ownKeys(ba(e))},set:function(e,t,n){var r=r3(ba(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=nb(ba(e),t),o=i==null?void 0:i[$t];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(b6(n,i)&&(n!==void 0||cc(e.t,t)))return!0;rb(e),is(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return nb(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,rb(e),is(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ba(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){yi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yi(12)}},Hu={};Qa(sd,function(e,t){Hu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Hu.deleteProperty=function(e,t){return Hu.set.call(this,e,t,void 0)},Hu.set=function(e,t,n){return sd.set.call(this,e[0],t,n,e[0])};var Bee=function(){function e(n){var r=this;this.g=s3,this.F=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=r;return function(_){var x=this;_===void 0&&(_=a);for(var v=arguments.length,b=Array(v>1?v-1:0),w=1;w<v;w++)b[w-1]=arguments[w];return l.produce(_,function(E){var P;return(P=o).call.apply(P,[x,E].concat(b))})}}var c;if(typeof o!="function"&&yi(6),s!==void 0&&typeof s!="function"&&yi(7),No(i)){var f=t3(r),h=Ow(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?zg(f):Tw(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(_){return eb(f,s),tb(_,f)},function(_){throw zg(f),_}):(eb(f,s),tb(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===w6&&(c=void 0),r.F&&qC(c,!0),s){var m=[],g=[];Xi("Patches").M(i,c,m,g),s(m,g)}return c}yi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return r.produceWithPatches(c,function(m){return i.apply(void 0,[m].concat(h))})};var s,a,l=r.produce(i,o,function(c,f){s=c,a=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,a]}):[l,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){No(n)||yi(8),As(n)&&(n=Aee(n));var r=t3(this),i=Ow(this,n,void 0);return i[$t].C=!0,Tw(r),i},t.finishDraft=function(n,r){var i=n&&n[$t],o=i.A;return eb(o,r),tb(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!s3&&yi(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Xi("Patches").$;return As(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Lr=new Bee,S6=Lr.produce;Lr.produceWithPatches.bind(Lr);Lr.setAutoFreeze.bind(Lr);Lr.setUseProxies.bind(Lr);Lr.applyPatches.bind(Lr);Lr.createDraft.bind(Lr);Lr.finishDraft.bind(Lr);function zee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l3(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 c3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l3(Object(n),!0).forEach(function(r){zee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zn(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 u3=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ib=function(){return Math.random().toString(36).substring(7).split("").join(".")},Hg={INIT:"@@redux/INIT"+ib(),REPLACE:"@@redux/REPLACE"+ib(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ib()}};function Uee(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function C6(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Zn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Zn(1));return n(C6)(e,t)}if(typeof e!="function")throw new Error(Zn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Zn(3));return o}function h(_){if(typeof _!="function")throw new Error(Zn(4));if(l)throw new Error(Zn(5));var x=!0;return c(),a.push(_),function(){if(x){if(l)throw new Error(Zn(6));x=!1,c();var b=a.indexOf(_);a.splice(b,1),s=null}}}function p(_){if(!Uee(_))throw new Error(Zn(7));if(typeof _.type>"u")throw new Error(Zn(8));if(l)throw new Error(Zn(9));try{l=!0,o=i(o,_)}finally{l=!1}for(var x=s=a,v=0;v<x.length;v++){var b=x[v];b()}return _}function m(_){if(typeof _!="function")throw new Error(Zn(10));i=_,p({type:Hg.REPLACE})}function g(){var _,x=h;return _={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(Zn(11));function w(){b.next&&b.next(f())}w();var E=x(w);return{unsubscribe:E}}},_[u3]=function(){return this},_}return p({type:Hg.INIT}),r={dispatch:p,subscribe:h,getState:f,replaceReducer:m},r[u3]=g,r}function Vee(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Hg.INIT});if(typeof r>"u")throw new Error(Zn(12));if(typeof n(void 0,{type:Hg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Zn(13))})}function E6(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),s;try{Vee(n)}catch(a){s=a}return function(l,c){if(l===void 0&&(l={}),s)throw s;for(var f=!1,h={},p=0;p<o.length;p++){var m=o[p],g=n[m],_=l[m],x=g(_,c);if(typeof x>"u")throw c&&c.type,new Error(Zn(14));h[m]=x,f=f||x!==_}return f=f||o.length!==Object.keys(l).length,f?h:l}}function Wg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function Hee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(Zn(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Wg.apply(void 0,a)(i.dispatch),c3(c3({},i),{},{dispatch:o})}}}function T6(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var O6=T6();O6.withExtraArgument=T6;const f3=O6;var Wee=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ad=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Yee=Object.defineProperty,qee=Object.defineProperties,Gee=Object.getOwnPropertyDescriptors,d3=Object.getOwnPropertySymbols,Zee=Object.prototype.hasOwnProperty,Kee=Object.prototype.propertyIsEnumerable,h3=function(e,t,n){return t in e?Yee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ts=function(e,t){for(var n in t||(t={}))Zee.call(t,n)&&h3(e,n,t[n]);if(d3)for(var r=0,i=d3(t);r<i.length;r++){var n=i[r];Kee.call(t,n)&&h3(e,n,t[n])}return e},ob=function(e,t){return qee(e,Gee(t))},Vd=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(c){i(c)}},s=function(l){try{a(n.throw(l))}catch(c){i(c)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(e,t)).next())})},Xee=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Wg:Wg.apply(null,arguments)};function Qee(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var Jee=function(e){Wee(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,ad([void 0],n[0].concat(this)))):new(t.bind.apply(t,ad([void 0],n.concat(this))))},t}(Array);function kw(e){return No(e)?S6(e,function(){}):e}function ete(e){return typeof e=="boolean"}function tte(){return function(t){return nte(t)}}function nte(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new Jee;return n&&(ete(n)?r.push(f3):r.push(f3.withExtraArgument(n.extraArgument))),r}var rte=!0;function ite(e){var t=tte(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,s=o===void 0?t():o,a=n.devTools,l=a===void 0?!0:a,c=n.preloadedState,f=c===void 0?void 0:c,h=n.enhancers,p=h===void 0?void 0:h,m;if(typeof i=="function")m=i;else if(Qee(i))m=E6(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;typeof g=="function"&&(g=g(t));var _=Hee.apply(void 0,g),x=Wg;l&&(x=Xee(Ts({trace:!rte},typeof l=="object"&&l)));var v=[_];Array.isArray(p)?v=ad([_],p):typeof p=="function"&&(v=p(v));var b=x.apply(void 0,v);return C6(m,f,b)}function bn(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return Ts(Ts({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function P6(e){var t={},n=[],r,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(a in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function ote(e){return typeof e=="function"}function ste(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?P6(t):[t,n,r],o=i[0],s=i[1],a=i[2],l;if(ote(e))l=function(){return kw(e())};else{var c=kw(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var m=ad([o[p.type]],s.filter(function(g){var _=g.matcher;return _(p)}).map(function(g){var _=g.reducer;return _}));return m.filter(function(g){return!!g}).length===0&&(m=[a]),m.reduce(function(g,_){if(_)if(As(g)){var x=g,v=_(x,p);return v===void 0?g:v}else{if(No(g))return S6(g,function(b){return _(b,p)});var v=_(g,p);if(v===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return g},h)}return f.getInitialState=l,f}function ate(e,t){return e+"/"+t}function Yn(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:kw(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},s={},a={};i.forEach(function(f){var h=r[f],p=ate(t,f),m,g;"reducer"in h?(m=h.reducer,g=h.prepare):m=h,o[f]=m,s[p]=m,a[f]=g?bn(p,g):bn(p)});function l(){var f=typeof e.extraReducers=="function"?P6(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,m=f[1],g=m===void 0?[]:m,_=f[2],x=_===void 0?void 0:_,v=Ts(Ts({},p),s);return ste(n,function(b){for(var w in v)b.addCase(w,v[w]);for(var E=0,P=g;E<P.length;E++){var k=P[E];b.addMatcher(k.matcher,k.reducer)}x&&b.addDefaultCase(x)})}var c;return{name:t,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var lte="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",k6=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=lte[Math.random()*64|0];return t},cte=["name","message","stack","code"],sb=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),p3=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),ute=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=cte;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},fte=function(){function e(t,n,r){var i=bn(t+"/fulfilled",function(c,f,h,p){return{payload:c,meta:ob(Ts({},p||{}),{arg:h,requestId:f,requestStatus:"fulfilled"})}}),o=bn(t+"/pending",function(c,f,h){return{payload:void 0,meta:ob(Ts({},h||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),s=bn(t+"/rejected",function(c,f,h,p,m){return{payload:p,error:(r&&r.serializeError||ute)(c||"Rejected"),meta:ob(Ts({},m||{}),{arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),a=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(f,h,p){var m=r!=null&&r.idGenerator?r.idGenerator(c):k6(),g=new a,_,x=new Promise(function(E,P){return g.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),v=!1;function b(E){v&&(_=E,g.abort())}var w=function(){return Vd(this,null,function(){var E,P,k,N,A,V;return Ud(this,function(I){switch(I.label){case 0:return I.trys.push([0,4,,5]),N=(E=r==null?void 0:r.condition)==null?void 0:E.call(r,c,{getState:h,extra:p}),hte(N)?[4,N]:[3,2];case 1:N=I.sent(),I.label=2;case 2:if(N===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,f(o(m,c,(P=r==null?void 0:r.getPendingMeta)==null?void 0:P.call(r,{requestId:m,arg:c},{getState:h,extra:p}))),[4,Promise.race([x,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:m,signal:g.signal,abort:b,rejectWithValue:function(Y,q){return new sb(Y,q)},fulfillWithValue:function(Y,q){return new p3(Y,q)}})).then(function(Y){if(Y instanceof sb)throw Y;return Y instanceof p3?i(Y.payload,m,c,Y.meta):i(Y,m,c)})])];case 3:return k=I.sent(),[3,5];case 4:return A=I.sent(),k=A instanceof sb?s(null,m,c,A.payload,A.meta):s(A,m,c),[3,5];case 5:return V=r&&!r.dispatchConditionRejection&&s.match(k)&&k.meta.condition,V||f(k),[2,k]}})})}();return Object.assign(w,{abort:b,requestId:m,arg:c,unwrap:function(){return w.then(dte)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=e,e}();function dte(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hte(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var KC=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},pte=function(){},XC=function(e,t){return t===void 0&&(t=pte),e.catch(t),e},M6=function(e,t){e.addEventListener("abort",t,{once:!0})},fc=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},mte="task",R6="listener",N6="completed",QC="cancelled",gte="task-"+QC,vte="task-"+N6,L6=R6+"-"+QC,yte=R6+"-"+N6,o_=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=mte+" "+QC+" (reason: "+t+")"}return e}(),dc=function(e){if(e.aborted)throw new o_(e.reason)},D6=function(e){return XC(new Promise(function(t,n){var r=function(){return n(new o_(e.reason))};e.aborted?r():M6(e,r)}))},_te=function(e,t){return Vd(void 0,null,function(){var n,r;return Ud(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof o_?"cancelled":"rejected",error:r}];case 4:return t==null||t(),[7];case 5:return[2]}})})},Yg=function(e){return function(t){return XC(Promise.race([D6(e),t]).then(function(n){return dc(e),n}))}},A6=function(e){var t=Yg(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},bte=Object.assign,m3={},Hd="listenerMiddleware",wte=function(e){var t=function(n){return M6(e,function(){return fc(n,e.reason)})};return function(n){KC(n,"taskExecutor");var r=new AbortController;t(r);var i=_te(function(){return Vd(void 0,null,function(){var o;return Ud(this,function(s){switch(s.label){case 0:return dc(e),dc(r.signal),[4,n({pause:Yg(r.signal),delay:A6(r.signal),signal:r.signal})];case 1:return o=s.sent(),dc(r.signal),[2,o]}})})},function(){return fc(r,vte)});return{result:Yg(e)(i),cancel:function(){fc(r,gte)}}}},xte=function(e,t){var n=function(r,i){return Vd(void 0,null,function(){var o,s,a,l;return Ud(this,function(c){switch(c.label){case 0:dc(t),o=function(){},s=new Promise(function(f){o=e({predicate:r,effect:function(h,p){p.unsubscribe(),f([h,p.getState(),p.getOriginalState()])}})}),a=[D6(t),s],i!=null&&a.push(new Promise(function(f){return setTimeout(f,i,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,Promise.race(a)];case 2:return l=c.sent(),dc(t),[2,l];case 3:return o(),[7];case 4:return[2]}})})};return function(r,i){return XC(n(r,i))}},I6=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,o=e.effect;if(t)i=bn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return KC(o,"options.listener"),{predicate:i,type:t,effect:o}},Ste=function(e){var t=I6(e),n=t.type,r=t.predicate,i=t.effect,o=k6(),s={id:o,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return s},Cte=function(e){return function(){e.forEach(Mw),e.clear()}},g3=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},Ete=bn(Hd+"/add"),Tte=bn(Hd+"/removeAll"),Ote=bn(Hd+"/remove"),Pte=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,ad([Hd+"/error"],e))},Mw=function(e){e.pending.forEach(function(t){fc(t,L6)})};function kte(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,o=i===void 0?Pte:i;KC(o,"onError");var s=function(m){return m.unsubscribe=function(){return n.delete(m.id)},n.set(m.id,m),function(g){m.unsubscribe(),g!=null&&g.cancelActive&&Mw(m)}},a=function(m){for(var g=0,_=Array.from(n.values());g<_.length;g++){var x=_[g];if(m(x))return x}},l=function(m){var g=a(function(_){return _.effect===m.effect});return g||(g=Ste(m)),s(g)},c=function(m){var g=I6(m),_=g.type,x=g.effect,v=g.predicate,b=a(function(w){var E=typeof _=="string"?w.type===_:w.predicate===v;return E&&w.effect===x});return b&&(b.unsubscribe(),m.cancelActive&&Mw(b)),!!b},f=function(m,g,_,x){return Vd(t,null,function(){var v,b,w;return Ud(this,function(E){switch(E.label){case 0:v=new AbortController,b=xte(l,v.signal),E.label=1;case 1:return E.trys.push([1,3,4,5]),m.pending.add(v),[4,Promise.resolve(m.effect(g,bte({},_,{getOriginalState:x,condition:function(P,k){return b(P,k).then(Boolean)},take:b,delay:A6(v.signal),pause:Yg(v.signal),extra:r,signal:v.signal,fork:wte(v.signal),unsubscribe:m.unsubscribe,subscribe:function(){n.set(m.id,m)},cancelActiveListeners:function(){m.pending.forEach(function(P,k,N){P!==v&&(fc(P,L6),N.delete(P))})}})))];case 2:return E.sent(),[3,5];case 3:return w=E.sent(),w instanceof o_||g3(o,w,{raisedBy:"effect"}),[3,5];case 4:return fc(v,yte),m.pending.delete(v),[7];case 5:return[2]}})})},h=Cte(n),p=function(m){return function(g){return function(_){if(Ete.match(_))return l(_.payload);if(Tte.match(_)){h();return}if(Ote.match(_))return c(_.payload);var x=m.getState(),v=function(){if(x===m3)throw new Error(Hd+": getOriginalState can only be called synchronously");return x},b;try{if(b=g(_),n.size>0)for(var w=m.getState(),E=Array.from(n.values()),P=0,k=E;P<k.length;P++){var N=k[P],A=!1;try{A=N.predicate(_,w,x)}catch(V){A=!1,g3(o,V,{raisedBy:"predicate"})}A&&f(N,_,m,v)}}finally{x=m3}return b}}};return{middleware:p,startListening:l,stopListening:c,clearListeners:h}}var v3;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:global);Iee();const Mte={sidebarPresent:!1},{actions:Rte,reducer:Nte}=Yn({name:"shlink/sidebar",initialState:Mte,reducers:{sidebarPresent:()=>({sidebarPresent:!0}),sidebarNotPresent:()=>({sidebarPresent:!1})}}),{sidebarPresent:Lte,sidebarNotPresent:Dte}=Rte,Ate=Nte,F6=({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)},$6=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);F6(e,i,n)};class Ite{constructor(t,n){this.httpClient=t,this.window=n}async saveImage(t,n){const r=await this.httpClient.fetchBlob(t),i=URL.createObjectURL(r);F6(this.window,i,n)}}class Fte{constructor(t,n){Qe(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});Qe(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});Qe(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);$6(this.window,r,t)});this.window=t,this.jsonToCsv=n}}const y3={"Content-Type":"application/json"},_3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...y3}}:{headers:y3}:e;class $te{constructor(t){Qe(this,"fetchJson",(t,n)=>this.fetch(t,_3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));Qe(this,"fetchEmpty",(t,n)=>this.fetch(t,_3(n)).then(async r=>{if(!r.ok)throw await r.json()}));Qe(this,"fetchBlob",t=>this.fetch(t).then(n=>n.blob()));this.fetch=t}}const jte=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",$te,"fetch"),e.service("ImageDownloader",Ite,"HttpClient","window"),e.service("ReportExporter",Fte,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",()=>vY),e.serviceFactory("MainHeader",aee,"ServersDropdown"),e.serviceFactory("Home",()=>uee),e.decorator("Home",Bg),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",Cee,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",Eee,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",()=>Mee),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",Tee,"window","console"),e.serviceFactory("sidebarPresent",()=>Lte),e.serviceFactory("sidebarNotPresent",()=>Dte)};const Bte=500;let up;const Wd=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=H.useState(i),a=()=>{up&&clearTimeout(up),up=null},l=(c,f=Bte)=>{s(c),a(),up=setTimeout(()=>{e(c),a()},f)};return U("div",{className:ge("search-field",t),children:[C("input",{type:"text",className:ge("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),C($e,{icon:rq,className:"search-field__icon"}),C("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const Xs=({text:e,disabled:t=!1,className:n="",children:r,dropdownClassName:i,right:o=!1,minWidth:s})=>{const[a,l]=Bt(),c=`dropdown-btn__toggle btn-block ${n}`,f={minWidth:s&&`${s}px`};return U(Kc,{isOpen:a,toggle:l,disabled:t,className:i,children:[C(Xc,{caret:!0,className:c,color:"primary",children:e}),C(al,{className:"w-100",end:o,style:f,children:r})]})};function tt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Oe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?em=function(n){return typeof n}:em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},em(e)}function Me(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||em(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ll(e,t){Oe(2,arguments);var n=Me(e),r=tt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function no(e,t){Oe(2,arguments);var n=Me(e),r=tt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tm=function(n){return typeof n}:tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tm(e)}function zte(e,t){if(Oe(2,arguments),!t||tm(t)!=="object")return new Date(NaN);var n=t.years?tt(t.years):0,r=t.months?tt(t.months):0,i=t.weeks?tt(t.weeks):0,o=t.days?tt(t.days):0,s=t.hours?tt(t.hours):0,a=t.minutes?tt(t.minutes):0,l=t.seconds?tt(t.seconds):0,c=Me(e),f=r||n?no(c,r+n*12):c,h=o||i?ll(f,o+i*7):f,p=a+s*60,m=l+p*60,g=m*1e3,_=new Date(h.getTime()+g);return _}function JC(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=tt(t);return new Date(n+r)}var Ute=36e5;function Vte(e,t){Oe(2,arguments);var n=tt(t);return JC(e,n*Ute)}var Hte={};function Uo(){return Hte}function j6(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Uo(),h=tt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getDay(),g=(m<h?7:0)+m-h;return p.setDate(p.getDate()-g),p.setHours(0,0,0,0),p}function ld(e){return Oe(1,arguments),j6(e,{weekStartsOn:1})}function Wte(e){Oe(1,arguments);var t=Me(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=ld(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var s=ld(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Yte(e){Oe(1,arguments);var t=Wte(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=ld(n);return r}function Rc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Mr(e){Oe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}var qte=864e5;function cd(e,t){Oe(2,arguments);var n=Mr(e),r=Mr(t),i=n.getTime()-Rc(n),o=r.getTime()-Rc(r);return Math.round((i-o)/qte)}var Gte=6e4;function Rw(e,t){Oe(2,arguments);var n=tt(t);return JC(e,n*Gte)}function eE(e,t){Oe(2,arguments);var n=tt(t),r=n*7;return ll(e,r)}function Nc(e,t){Oe(2,arguments);var n=tt(t);return no(e,n*12)}function nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nm=function(n){return typeof n}:nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nm(e)}function b3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(nm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rm=function(n){return typeof n}:rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rm(e)}function w3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(rm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function im(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var tE=6e4,s_=36e5,Zte=1e3;function Kte(e,t){Oe(2,arguments);var n=Mr(e),r=Mr(t);return n.getTime()===r.getTime()}function om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?om=function(n){return typeof n}:om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},om(e)}function nE(e){return Oe(1,arguments),e instanceof Date||om(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function B6(e){if(Oe(1,arguments),!nE(e)&&typeof e!="number")return!1;var t=Me(e);return!isNaN(Number(t))}function ud(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Nw(e){Oe(1,arguments);var t=Me(e),n=Math.floor(t.getMonth()/3)+1;return n}function qg(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()-r.getFullYear()}function x3(e,t){var 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 rE(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=x3(n,r),o=Math.abs(cd(n,r));n.setDate(n.getDate()-i*o);var s=Number(x3(n,r)===-i),a=i*(o-s);return a===0?0:a}function z6(e,t){return Oe(2,arguments),Me(e).getTime()-Me(t).getTime()}var S3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Xte="trunc";function iE(e){return e?S3[e]:S3[Xte]}function Qte(e,t,n){Oe(2,arguments);var r=z6(e,t)/s_;return iE(n==null?void 0:n.roundingMethod)(r)}function Ja(e){Oe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}function Jte(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ene(e){Oe(1,arguments);var t=Me(e);return Ja(t).getTime()===Jte(t).getTime()}function Gg(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=im(n,r),o=Math.abs(ud(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=im(n,r)===-i;ene(Me(e))&&o===1&&im(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function tne(e,t,n){Oe(2,arguments);var r=z6(e,t)/1e3;return iE(n==null?void 0:n.roundingMethod)(r)}function nne(e,t,n){Oe(2,arguments);var r=rE(e,t)/7;return iE(n==null?void 0:n.roundingMethod)(r)}function Lw(e){Oe(1,arguments);var t=Me(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function rne(e){Oe(1,arguments);var t=Me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ine(e){Oe(1,arguments);var t=Me(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function one(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Uo(),h=tt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getDay(),g=(m<h?-7:0)+6-(m-h);return p.setDate(p.getDate()+g),p.setHours(23,59,59,999),p}function sne(e){return Oe(1,arguments),one(e,{weekStartsOn:1})}function U6(e,t){Oe(2,arguments);var n=tt(t);return JC(e,-n)}var ane=864e5;function lne(e){Oe(1,arguments);var t=Me(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/ane)+1}function Lc(e){Oe(1,arguments);var t=1,n=Me(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function V6(e){Oe(1,arguments);var t=Me(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Lc(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Lc(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function cne(e){Oe(1,arguments);var t=V6(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Lc(n);return r}var une=6048e5;function H6(e){Oe(1,arguments);var t=Me(e),n=Lc(t).getTime()-cne(t).getTime();return Math.round(n/une)+1}function el(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Uo(),h=tt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getUTCDay(),g=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function oE(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Me(e),h=f.getUTCFullYear(),p=Uo(),m=tt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,m),g.setUTCHours(0,0,0,0);var _=el(g,t),x=new Date(0);x.setUTCFullYear(h,0,m),x.setUTCHours(0,0,0,0);var v=el(x,t);return f.getTime()>=_.getTime()?h+1:f.getTime()>=v.getTime()?h:h-1}function fne(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Uo(),h=tt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=oE(e,t),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var g=el(m,t);return g}var dne=6048e5;function W6(e,t){Oe(1,arguments);var n=Me(e),r=el(n,t).getTime()-fne(n,t).getTime();return Math.round(r/dne)+1}function ot(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var hne={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return ot(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ot(r+1,2)},d:function(t,n){return ot(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return ot(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ot(t.getUTCHours(),n.length)},m:function(t,n){return ot(t.getUTCMinutes(),n.length)},s:function(t,n){return ot(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ot(o,n.length)}};const Go=hne;var Pl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pne={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Go.y(t,n)},Y:function(t,n,r,i){var o=oE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return ot(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ot(s,n.length)},R:function(t,n){var r=V6(t);return ot(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ot(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return ot(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return ot(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Go.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return ot(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=W6(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):ot(o,n.length)},I:function(t,n,r){var i=H6(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):ot(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Go.d(t,n)},D:function(t,n,r){var i=lne(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ot(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ot(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ot(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return ot(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Pl.noon:i===0?o=Pl.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Pl.evening:i>=12?o=Pl.afternoon:i>=4?o=Pl.morning:o=Pl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Go.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Go.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ot(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):ot(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Go.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Go.s(t,n)},S:function(t,n){return Go.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return E3(s);case"XXXX":case"XX":return wa(s);case"XXXXX":case"XXX":default:return wa(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return E3(s);case"xxxx":case"xx":return wa(s);case"xxxxx":case"xxx":default:return wa(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+C3(s,":");case"OOOO":default:return"GMT"+wa(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+C3(s,":");case"zzzz":default:return"GMT"+wa(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return ot(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return ot(s,n.length)}};function C3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+ot(o,2)}function E3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ot(Math.abs(e)/60,2)}return wa(e,t)}function wa(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=ot(Math.floor(i/60),2),s=ot(i%60,2);return r+o+n+s}const mne=pne;var T3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Y6=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},gne=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return T3(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",T3(i,n)).replace("{{time}}",Y6(o,n))},vne={p:Y6,P:gne};const Dw=vne;var yne=["D","DD"],_ne=["YY","YYYY"];function q6(e){return yne.indexOf(e)!==-1}function G6(e){return _ne.indexOf(e)!==-1}function Zg(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var bne={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"}},wne=function(t,n,r){var i,o=bne[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const xne=wne;function ab(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Sne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ene={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tne={date:ab({formats:Sne,defaultWidth:"full"}),time:ab({formats:Cne,defaultWidth:"full"}),dateTime:ab({formats:Ene,defaultWidth:"full"})};const One=Tne;var Pne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},kne=function(t,n,r,i){return Pne[t]};const Mne=kne;function Pu(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var Rne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Lne={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"]},Dne={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"]},Ane={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"}},Ine={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"}},Fne=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$ne={ordinalNumber:Fne,era:Pu({values:Rne,defaultWidth:"wide"}),quarter:Pu({values:Nne,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pu({values:Lne,defaultWidth:"wide"}),day:Pu({values:Dne,defaultWidth:"wide"}),dayPeriod:Pu({values:Ane,defaultWidth:"wide",formattingValues:Ine,defaultFormattingWidth:"wide"})};const jne=$ne;function ku(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?zne(a,function(h){return h.test(s)}):Bne(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function Bne(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function zne(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Une(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Vne=/^(\d+)(th|st|nd|rd)?/i,Hne=/\d+/i,Wne={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},Yne={any:[/^b/i,/^(a|c)/i]},qne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gne={any:[/1/i,/2/i,/3/i,/4/i]},Zne={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},Kne={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]},Xne={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},Qne={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]},Jne={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},ere={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}},tre={ordinalNumber:Une({matchPattern:Vne,parsePattern:Hne,valueCallback:function(t){return parseInt(t,10)}}),era:ku({matchPatterns:Wne,defaultMatchWidth:"wide",parsePatterns:Yne,defaultParseWidth:"any"}),quarter:ku({matchPatterns:qne,defaultMatchWidth:"wide",parsePatterns:Gne,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ku({matchPatterns:Zne,defaultMatchWidth:"wide",parsePatterns:Kne,defaultParseWidth:"any"}),day:ku({matchPatterns:Xne,defaultMatchWidth:"wide",parsePatterns:Qne,defaultParseWidth:"any"}),dayPeriod:ku({matchPatterns:Jne,defaultMatchWidth:"any",parsePatterns:ere,defaultParseWidth:"any"})};const nre=tre;var rre={code:"en-US",formatDistance:xne,formatLong:One,formatRelative:Mne,localize:jne,match:nre,options:{weekStartsOn:0,firstWeekContainsDate:1}};const sE=rre;var ire=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ore=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sre=/^'([^]*?)'?$/,are=/''/g,lre=/[a-zA-Z]/;function vo(e,t,n){var r,i,o,s,a,l,c,f,h,p,m,g,_,x,v,b,w,E;Oe(2,arguments);var P=String(t),k=Uo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:sE,A=tt((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:k.firstWeekContainsDate)!==null&&s!==void 0?s:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=tt((m=(g=(_=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(v=n.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&_!==void 0?_:k.weekStartsOn)!==null&&g!==void 0?g:(w=k.locale)===null||w===void 0||(E=w.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var I=Me(e);if(!B6(I))throw new RangeError("Invalid time value");var Y=Rc(I),q=U6(I,Y),X={firstWeekContainsDate:A,weekStartsOn:V,locale:N,_originalDate:I},Z=P.match(ore).map(function(J){var oe=J[0];if(oe==="p"||oe==="P"){var ce=Dw[oe];return ce(J,N.formatLong)}return J}).join("").match(ire).map(function(J){if(J==="''")return"'";var oe=J[0];if(oe==="'")return cre(J);var ce=mne[oe];if(ce)return!(n!=null&&n.useAdditionalWeekYearTokens)&&G6(J)&&Zg(J,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&q6(J)&&Zg(J,t,String(e)),ce(q,J,N.localize,X);if(oe.match(lre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return J}).join("");return Z}function cre(e){var t=e.match(sre);return t?t[1].replace(are,"'"):e}function aE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ure(e){return aE({},e)}var O3=1440,fre=2520,lb=43200,dre=86400;function hre(e,t,n){var r,i;Oe(2,arguments);var o=Uo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:sE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=im(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=aE(ure(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:a}),c,f;a>0?(c=Me(t),f=Me(e)):(c=Me(e),f=Me(t));var h=tne(f,c),p=(Rc(f)-Rc(c))/1e3,m=Math.round((h-p)/60),g;if(m<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(m<O3){var _=Math.round(m/60);return s.formatDistance("aboutXHours",_,l)}else{if(m<fre)return s.formatDistance("xDays",1,l);if(m<lb){var x=Math.round(m/O3);return s.formatDistance("xDays",x,l)}else if(m<dre)return g=Math.round(m/lb),s.formatDistance("aboutXMonths",g,l)}if(g=Gg(f,c),g<12){var v=Math.round(m/lb);return s.formatDistance("xMonths",v,l)}else{var b=g%12,w=Math.floor(g/12);return b<3?s.formatDistance("aboutXYears",w,l):b<9?s.formatDistance("overXYears",w,l):s.formatDistance("almostXYears",w+1,l)}}function pre(e,t){var n,r;Oe(1,arguments);var i=Me(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),s=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(s!=="date"&&s!=="time"&&s!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",l="",c=o==="extended"?"-":"",f=o==="extended"?":":"";if(s!=="time"){var h=ot(i.getDate(),2),p=ot(i.getMonth()+1,2),m=ot(i.getFullYear(),4);a="".concat(m).concat(c).concat(p).concat(c).concat(h)}if(s!=="date"){var g=i.getTimezoneOffset();if(g!==0){var _=Math.abs(g),x=ot(Math.floor(_/60),2),v=ot(_%60,2),b=g<0?"+":"-";l="".concat(b).concat(x,":").concat(v)}else l="Z";var w=ot(i.getHours(),2),E=ot(i.getMinutes(),2),P=ot(i.getSeconds(),2),k=a===""?"":"T",N=[w,E,P].join(f);a="".concat(a).concat(k).concat(N).concat(l)}return a}function P3(e){Oe(1,arguments);var t=Me(e),n=t.getDate();return n}function mre(e){Oe(1,arguments);var t=Me(e),n=t.getDay();return n}function gre(e){Oe(1,arguments);var t=Me(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Ei(e){Oe(1,arguments);var t=Me(e),n=t.getHours();return n}var vre=6048e5;function yre(e){Oe(1,arguments);var t=Me(e),n=ld(t).getTime()-Yte(t).getTime();return Math.round(n/vre)+1}function Ti(e){Oe(1,arguments);var t=Me(e),n=t.getMinutes();return n}function lr(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return n}function _re(e){Oe(1,arguments);var t=Me(e),n=t.getSeconds();return n}function Kg(e){Oe(1,arguments);var t=Me(e),n=t.getTime();return n}function bre(e){return Oe(1,arguments),Math.floor(Kg(e)/1e3)}function mt(e){return Oe(1,arguments),Me(e).getFullYear()}function Is(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()>r.getTime()}function Kr(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()<r.getTime()}function Z6(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()===r.getTime()}function sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sm=function(n){return typeof n}:sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sm(e)}function K6(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}}),t&&Aw(e,t)}function Aw(e,t){return Aw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Aw(e,t)}function X6(e){var t=xre();return function(){var r=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wre(this,i)}}function wre(e,t){return t&&(sm(t)==="object"||typeof t=="function")?t:Iw(e)}function Iw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}function lE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k3(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 cE(e,t,n){return t&&k3(e.prototype,t),n&&k3(e,n),e}function Fw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sre=10,Q6=function(){function e(){lE(this,e),Fw(this,"subPriority",0)}return cE(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),Cre=function(e){K6(n,e);var t=X6(n);function n(r,i,o,s,a){var l;return lE(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=s,a&&(l.subPriority=a),l}return cE(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,s){return this.setValue(i,o,this.value,s)}}]),n}(Q6),Ere=function(e){K6(n,e);var t=X6(n);function n(){var r;lE(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Fw(Iw(r),"priority",Sre),Fw(Iw(r),"subPriority",-1),r}return cE(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}}]),n}(Q6);function Tre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(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 Ore(e,t,n){return t&&M3(e.prototype,t),n&&M3(e,n),e}var vt=function(){function e(){Tre(this,e)}return Ore(e,[{key:"run",value:function(n,r,i,o){var s=this.parse(n,r,i,o);return s?{setter:new Cre(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}();function am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?am=function(n){return typeof n}:am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},am(e)}function Pre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R3(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 kre(e,t,n){return t&&R3(e.prototype,t),n&&R3(e,n),e}function Mre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$w(e,t)}function $w(e,t){return $w=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$w(e,t)}function Rre(e){var t=Lre();return function(){var r=Qg(e),i;if(t){var o=Qg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nre(this,i)}}function Nre(e,t){return t&&(am(t)==="object"||typeof t=="function")?t:jw(e)}function jw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qg(e)}function N3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dre=function(e){Mre(n,e);var t=Rre(n);function n(){var r;Pre(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),N3(jw(r),"priority",140),N3(jw(r),"incompatibleTokens",["R","u","t","T"]),r}return kre(n,[{key:"parse",value:function(i,o,s){switch(o){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"});case"GGGGG":return s.era(i,{width:"narrow"});case"GGGG":default:return s.era(i,{width:"wide"})||s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,s){return o.era=s,i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt),on={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function sn(e,t){return e&&{value:t(e.value),rest:e.rest}}function Wt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Hi(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*s_+o*tE+s*Zte),rest:t.slice(n[0].length)}}function J6(e){return Wt(on.anyDigitsSigned,e)}function Jt(e,t){switch(e){case 1:return Wt(on.singleDigit,t);case 2:return Wt(on.twoDigits,t);case 3:return Wt(on.threeDigits,t);case 4:return Wt(on.fourDigits,t);default:return Wt(new RegExp("^\\d{1,"+e+"}"),t)}}function Jg(e,t){switch(e){case 1:return Wt(on.singleDigitSigned,t);case 2:return Wt(on.twoDigitsSigned,t);case 3:return Wt(on.threeDigitsSigned,t);case 4:return Wt(on.fourDigitsSigned,t);default:return Wt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function uE(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function e5(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function t5(e){return e%400===0||e%4===0&&e%100!==0}function lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lm=function(n){return typeof n}:lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lm(e)}function Are(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L3(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 Ire(e,t,n){return t&&L3(e.prototype,t),n&&L3(e,n),e}function Fre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bw(e,t)}function Bw(e,t){return Bw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Bw(e,t)}function $re(e){var t=Bre();return function(){var r=ev(e),i;if(t){var o=ev(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jre(this,i)}}function jre(e,t){return t&&(lm(t)==="object"||typeof t=="function")?t:zw(e)}function zw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bre(){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 ev(e){return ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ev(e)}function D3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zre=function(e){Fre(n,e);var t=$re(n);function n(){var r;Are(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),D3(zw(r),"priority",130),D3(zw(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Ire(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return sn(Jt(4,i),a);case"yo":return sn(s.ordinalNumber(i,{unit:"year"}),a);default:return sn(Jt(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=e5(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cm=function(n){return typeof n}:cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cm(e)}function Ure(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A3(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 Vre(e,t,n){return t&&A3(e.prototype,t),n&&A3(e,n),e}function Hre(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}}),t&&Uw(e,t)}function Uw(e,t){return Uw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Uw(e,t)}function Wre(e){var t=qre();return function(){var r=tv(e),i;if(t){var o=tv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yre(this,i)}}function Yre(e,t){return t&&(cm(t)==="object"||typeof t=="function")?t:Vw(e)}function Vw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qre(){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 tv(e){return tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tv(e)}function I3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gre=function(e){Hre(n,e);var t=Wre(n);function n(){var r;Ure(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),I3(Vw(r),"priority",130),I3(Vw(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Vre(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return sn(Jt(4,i),a);case"Yo":return sn(s.ordinalNumber(i,{unit:"year"}),a);default:return sn(Jt(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s,a){var l=oE(i,a);if(s.isTwoDigitYear){var c=e5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),el(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),el(i,a)}}]),n}(vt);function um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?um=function(n){return typeof n}:um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},um(e)}function Zre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F3(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 Kre(e,t,n){return t&&F3(e.prototype,t),n&&F3(e,n),e}function Xre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hw(e,t)}function Hw(e,t){return Hw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Hw(e,t)}function Qre(e){var t=eie();return function(){var r=nv(e),i;if(t){var o=nv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Jre(this,i)}}function Jre(e,t){return t&&(um(t)==="object"||typeof t=="function")?t:Ww(e)}function Ww(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eie(){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 nv(e){return nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nv(e)}function $3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tie=function(e){Xre(n,e);var t=Qre(n);function n(){var r;Zre(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),$3(Ww(r),"priority",130),$3(Ww(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Kre(n,[{key:"parse",value:function(i,o){return Jg(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,s){var a=new Date(0);return a.setUTCFullYear(s,0,4),a.setUTCHours(0,0,0,0),Lc(a)}}]),n}(vt);function fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fm=function(n){return typeof n}:fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fm(e)}function nie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rie(e,t,n){return t&&j3(e.prototype,t),n&&j3(e,n),e}function iie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yw(e,t)}function Yw(e,t){return Yw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Yw(e,t)}function oie(e){var t=aie();return function(){var r=rv(e),i;if(t){var o=rv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return sie(this,i)}}function sie(e,t){return t&&(fm(t)==="object"||typeof t=="function")?t:qw(e)}function qw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aie(){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 rv(e){return rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rv(e)}function B3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lie=function(e){iie(n,e);var t=oie(n);function n(){var r;nie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),B3(qw(r),"priority",130),B3(qw(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return rie(n,[{key:"parse",value:function(i,o){return Jg(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,s){return i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dm=function(n){return typeof n}:dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dm(e)}function cie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z3(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 uie(e,t,n){return t&&z3(e.prototype,t),n&&z3(e,n),e}function fie(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}}),t&&Gw(e,t)}function Gw(e,t){return Gw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Gw(e,t)}function die(e){var t=pie();return function(){var r=iv(e),i;if(t){var o=iv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hie(this,i)}}function hie(e,t){return t&&(dm(t)==="object"||typeof t=="function")?t:Zw(e)}function Zw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pie(){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 iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},iv(e)}function U3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mie=function(e){fie(n,e);var t=die(n);function n(){var r;cie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),U3(Zw(r),"priority",120),U3(Zw(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return uie(n,[{key:"parse",value:function(i,o,s){switch(o){case"Q":case"QQ":return Jt(o.length,i);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(i,{width:"wide",context:"formatting"})||s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hm=function(n){return typeof n}:hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hm(e)}function gie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(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 vie(e,t,n){return t&&V3(e.prototype,t),n&&V3(e,n),e}function yie(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}}),t&&Kw(e,t)}function Kw(e,t){return Kw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kw(e,t)}function _ie(e){var t=wie();return function(){var r=ov(e),i;if(t){var o=ov(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bie(this,i)}}function bie(e,t){return t&&(hm(t)==="object"||typeof t=="function")?t:Xw(e)}function Xw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ov(e){return ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ov(e)}function H3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xie=function(e){yie(n,e);var t=_ie(n);function n(){var r;gie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),H3(Xw(r),"priority",120),H3(Xw(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return vie(n,[{key:"parse",value:function(i,o,s){switch(o){case"q":case"qq":return Jt(o.length,i);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(i,{width:"wide",context:"standalone"})||s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pm=function(n){return typeof n}:pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pm(e)}function Sie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W3(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 Cie(e,t,n){return t&&W3(e.prototype,t),n&&W3(e,n),e}function Eie(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}}),t&&Qw(e,t)}function Qw(e,t){return Qw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Qw(e,t)}function Tie(e){var t=Pie();return function(){var r=sv(e),i;if(t){var o=sv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Oie(this,i)}}function Oie(e,t){return t&&(pm(t)==="object"||typeof t=="function")?t:Jw(e)}function Jw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pie(){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 sv(e){return sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sv(e)}function Y3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kie=function(e){Eie(n,e);var t=Tie(n);function n(){var r;Sie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Y3(Jw(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Y3(Jw(r),"priority",110),r}return Cie(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"M":return sn(Wt(on.month,i),a);case"MM":return sn(Jt(2,i),a);case"Mo":return sn(s.ordinalNumber(i,{unit:"month"}),a);case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(i,{width:"wide",context:"formatting"})||s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mm=function(n){return typeof n}:mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mm(e)}function Mie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rie(e,t,n){return t&&q3(e.prototype,t),n&&q3(e,n),e}function Nie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&e2(e,t)}function e2(e,t){return e2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},e2(e,t)}function Lie(e){var t=Aie();return function(){var r=av(e),i;if(t){var o=av(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Die(this,i)}}function Die(e,t){return t&&(mm(t)==="object"||typeof t=="function")?t:t2(e)}function t2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aie(){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 av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},av(e)}function G3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iie=function(e){Nie(n,e);var t=Lie(n);function n(){var r;Mie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),G3(t2(r),"priority",110),G3(t2(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Rie(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"L":return sn(Wt(on.month,i),a);case"LL":return sn(Jt(2,i),a);case"Lo":return sn(s.ordinalNumber(i,{unit:"month"}),a);case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(i,{width:"wide",context:"standalone"})||s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function Fie(e,t,n){Oe(2,arguments);var r=Me(e),i=tt(t),o=W6(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gm=function(n){return typeof n}:gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gm(e)}function $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z3(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 jie(e,t,n){return t&&Z3(e.prototype,t),n&&Z3(e,n),e}function Bie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n2(e,t)}function n2(e,t){return n2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},n2(e,t)}function zie(e){var t=Vie();return function(){var r=lv(e),i;if(t){var o=lv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Uie(this,i)}}function Uie(e,t){return t&&(gm(t)==="object"||typeof t=="function")?t:r2(e)}function r2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vie(){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 lv(e){return lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lv(e)}function K3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hie=function(e){Bie(n,e);var t=zie(n);function n(){var r;$ie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),K3(r2(r),"priority",100),K3(r2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return jie(n,[{key:"parse",value:function(i,o,s){switch(o){case"w":return Wt(on.week,i);case"wo":return s.ordinalNumber(i,{unit:"week"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s,a){return el(Fie(i,s,a),a)}}]),n}(vt);function Wie(e,t){Oe(2,arguments);var n=Me(e),r=tt(t),i=H6(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function Yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X3(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 qie(e,t,n){return t&&X3(e.prototype,t),n&&X3(e,n),e}function Gie(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}}),t&&i2(e,t)}function i2(e,t){return i2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},i2(e,t)}function Zie(e){var t=Xie();return function(){var r=cv(e),i;if(t){var o=cv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Kie(this,i)}}function Kie(e,t){return t&&(vm(t)==="object"||typeof t=="function")?t:o2(e)}function o2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xie(){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 cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cv(e)}function Q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qie=function(e){Gie(n,e);var t=Zie(n);function n(){var r;Yie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Q3(o2(r),"priority",100),Q3(o2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return qie(n,[{key:"parse",value:function(i,o,s){switch(o){case"I":return Wt(on.week,i);case"Io":return s.ordinalNumber(i,{unit:"week"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s){return Lc(Wie(i,s))}}]),n}(vt);function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function Jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J3(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 eoe(e,t,n){return t&&J3(e.prototype,t),n&&J3(e,n),e}function toe(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}}),t&&s2(e,t)}function s2(e,t){return s2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},s2(e,t)}function noe(e){var t=ioe();return function(){var r=uv(e),i;if(t){var o=uv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return roe(this,i)}}function roe(e,t){return t&&(ym(t)==="object"||typeof t=="function")?t:_m(e)}function _m(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ioe(){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 uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uv(e)}function cb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ooe=[31,28,31,30,31,30,31,31,30,31,30,31],soe=[31,29,31,30,31,30,31,31,30,31,30,31],aoe=function(e){toe(n,e);var t=noe(n);function n(){var r;Jie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),cb(_m(r),"priority",90),cb(_m(r),"subPriority",1),cb(_m(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return eoe(n,[{key:"parse",value:function(i,o,s){switch(o){case"d":return Wt(on.date,i);case"do":return s.ordinalNumber(i,{unit:"date"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){var s=i.getUTCFullYear(),a=t5(s),l=i.getUTCMonth();return a?o>=1&&o<=soe[l]:o>=1&&o<=ooe[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bm=function(n){return typeof n}:bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bm(e)}function loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eM(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 coe(e,t,n){return t&&eM(e.prototype,t),n&&eM(e,n),e}function uoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a2(e,t)}function a2(e,t){return a2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},a2(e,t)}function foe(e){var t=hoe();return function(){var r=fv(e),i;if(t){var o=fv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return doe(this,i)}}function doe(e,t){return t&&(bm(t)==="object"||typeof t=="function")?t:wm(e)}function wm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hoe(){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 fv(e){return fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fv(e)}function ub(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var poe=function(e){uoe(n,e);var t=foe(n);function n(){var r;loe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ub(wm(r),"priority",90),ub(wm(r),"subpriority",1),ub(wm(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return coe(n,[{key:"parse",value:function(i,o,s){switch(o){case"D":case"DD":return Wt(on.dayOfYear,i);case"Do":return s.ordinalNumber(i,{unit:"date"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){var s=i.getUTCFullYear(),a=t5(s);return a?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function fE(e,t,n){var r,i,o,s,a,l,c,f;Oe(2,arguments);var h=Uo(),p=tt((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Me(e),g=tt(t),_=m.getUTCDay(),x=g%7,v=(x+7)%7,b=(v<p?7:0)+g-_;return m.setUTCDate(m.getUTCDate()+b),m}function xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xm=function(n){return typeof n}:xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xm(e)}function moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tM(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 goe(e,t,n){return t&&tM(e.prototype,t),n&&tM(e,n),e}function voe(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}}),t&&l2(e,t)}function l2(e,t){return l2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},l2(e,t)}function yoe(e){var t=boe();return function(){var r=dv(e),i;if(t){var o=dv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _oe(this,i)}}function _oe(e,t){return t&&(xm(t)==="object"||typeof t=="function")?t:c2(e)}function c2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function boe(){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 dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dv(e)}function nM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var woe=function(e){voe(n,e);var t=yoe(n);function n(){var r;moe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),nM(c2(r),"priority",90),nM(c2(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return goe(n,[{key:"parse",value:function(i,o,s){switch(o){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=fE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function xoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rM(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 Soe(e,t,n){return t&&rM(e.prototype,t),n&&rM(e,n),e}function Coe(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}}),t&&u2(e,t)}function u2(e,t){return u2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},u2(e,t)}function Eoe(e){var t=Ooe();return function(){var r=hv(e),i;if(t){var o=hv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Toe(this,i)}}function Toe(e,t){return t&&(Sm(t)==="object"||typeof t=="function")?t:f2(e)}function f2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ooe(){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 hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}function iM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Poe=function(e){Coe(n,e);var t=Eoe(n);function n(){var r;xoe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),iM(f2(r),"priority",90),iM(f2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Soe(n,[{key:"parse",value:function(i,o,s,a){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+a.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return sn(Jt(o.length,i),l);case"eo":return sn(s.ordinalNumber(i,{unit:"day"}),l);case"eee":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=fE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oM(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 Moe(e,t,n){return t&&oM(e.prototype,t),n&&oM(e,n),e}function Roe(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}}),t&&d2(e,t)}function d2(e,t){return d2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},d2(e,t)}function Noe(e){var t=Doe();return function(){var r=pv(e),i;if(t){var o=pv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Loe(this,i)}}function Loe(e,t){return t&&(Cm(t)==="object"||typeof t=="function")?t:h2(e)}function h2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Doe(){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 pv(e){return pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pv(e)}function sM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aoe=function(e){Roe(n,e);var t=Noe(n);function n(){var r;koe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),sM(h2(r),"priority",90),sM(h2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Moe(n,[{key:"parse",value:function(i,o,s,a){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+a.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return sn(Jt(o.length,i),l);case"co":return sn(s.ordinalNumber(i,{unit:"day"}),l);case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(i,{width:"wide",context:"standalone"})||s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=fE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function Ioe(e,t){Oe(2,arguments);var n=tt(t);n%7===0&&(n=n-7);var r=1,i=Me(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function Foe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aM(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 $oe(e,t,n){return t&&aM(e.prototype,t),n&&aM(e,n),e}function joe(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}}),t&&p2(e,t)}function p2(e,t){return p2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},p2(e,t)}function Boe(e){var t=Uoe();return function(){var r=mv(e),i;if(t){var o=mv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zoe(this,i)}}function zoe(e,t){return t&&(Em(t)==="object"||typeof t=="function")?t:m2(e)}function m2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uoe(){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 mv(e){return mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mv(e)}function lM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Voe=function(e){joe(n,e);var t=Boe(n);function n(){var r;Foe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),lM(m2(r),"priority",90),lM(m2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return $oe(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c===0?7:c};switch(o){case"i":case"ii":return Jt(o.length,i);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return sn(s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiii":return sn(s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiiii":return sn(s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiii":default:return sn(s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,s){return i=Ioe(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(vt);function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function Hoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cM(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 Woe(e,t,n){return t&&cM(e.prototype,t),n&&cM(e,n),e}function Yoe(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}}),t&&g2(e,t)}function g2(e,t){return g2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},g2(e,t)}function qoe(e){var t=Zoe();return function(){var r=gv(e),i;if(t){var o=gv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Goe(this,i)}}function Goe(e,t){return t&&(Tm(t)==="object"||typeof t=="function")?t:v2(e)}function v2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zoe(){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 gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}function uM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Koe=function(e){Yoe(n,e);var t=qoe(n);function n(){var r;Hoe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),uM(v2(r),"priority",80),uM(v2(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Woe(n,[{key:"parse",value:function(i,o,s){switch(o){case"a":case"aa":case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(uE(s),0,0,0),i}}]),n}(vt);function Om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Om=function(n){return typeof n}:Om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function Xoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fM(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 Qoe(e,t,n){return t&&fM(e.prototype,t),n&&fM(e,n),e}function Joe(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}}),t&&y2(e,t)}function y2(e,t){return y2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},y2(e,t)}function ese(e){var t=nse();return function(){var r=vv(e),i;if(t){var o=vv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return tse(this,i)}}function tse(e,t){return t&&(Om(t)==="object"||typeof t=="function")?t:_2(e)}function _2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nse(){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 vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}function dM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rse=function(e){Joe(n,e);var t=ese(n);function n(){var r;Xoe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),dM(_2(r),"priority",80),dM(_2(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Qoe(n,[{key:"parse",value:function(i,o,s){switch(o){case"b":case"bb":case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(uE(s),0,0,0),i}}]),n}(vt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function ise(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hM(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 ose(e,t,n){return t&&hM(e.prototype,t),n&&hM(e,n),e}function sse(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}}),t&&b2(e,t)}function b2(e,t){return b2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},b2(e,t)}function ase(e){var t=cse();return function(){var r=yv(e),i;if(t){var o=yv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return lse(this,i)}}function lse(e,t){return t&&(Pm(t)==="object"||typeof t=="function")?t:w2(e)}function w2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cse(){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 yv(e){return yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yv(e)}function pM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var use=function(e){sse(n,e);var t=ase(n);function n(){var r;ise(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),pM(w2(r),"priority",80),pM(w2(r),"incompatibleTokens",["a","b","t","T"]),r}return ose(n,[{key:"parse",value:function(i,o,s){switch(o){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(uE(s),0,0,0),i}}]),n}(vt);function km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?km=function(n){return typeof n}:km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},km(e)}function fse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mM(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 dse(e,t,n){return t&&mM(e.prototype,t),n&&mM(e,n),e}function hse(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}}),t&&x2(e,t)}function x2(e,t){return x2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},x2(e,t)}function pse(e){var t=gse();return function(){var r=_v(e),i;if(t){var o=_v(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return mse(this,i)}}function mse(e,t){return t&&(km(t)==="object"||typeof t=="function")?t:S2(e)}function S2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gse(){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 _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function gM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vse=function(e){hse(n,e);var t=pse(n);function n(){var r;fse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),gM(S2(r),"priority",70),gM(S2(r),"incompatibleTokens",["H","K","k","t","T"]),r}return dse(n,[{key:"parse",value:function(i,o,s){switch(o){case"h":return Wt(on.hour12h,i);case"ho":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(vt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function yse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vM(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 _se(e,t,n){return t&&vM(e.prototype,t),n&&vM(e,n),e}function bse(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}}),t&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},C2(e,t)}function wse(e){var t=Sse();return function(){var r=bv(e),i;if(t){var o=bv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return xse(this,i)}}function xse(e,t){return t&&(Mm(t)==="object"||typeof t=="function")?t:E2(e)}function E2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sse(){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 bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}function yM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cse=function(e){bse(n,e);var t=wse(n);function n(){var r;yse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),yM(E2(r),"priority",70),yM(E2(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return _se(n,[{key:"parse",value:function(i,o,s){switch(o){case"H":return Wt(on.hour23h,i);case"Ho":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(vt);function Rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rm=function(n){return typeof n}:Rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rm(e)}function Ese(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _M(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 Tse(e,t,n){return t&&_M(e.prototype,t),n&&_M(e,n),e}function Ose(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}}),t&&T2(e,t)}function T2(e,t){return T2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},T2(e,t)}function Pse(e){var t=Mse();return function(){var r=wv(e),i;if(t){var o=wv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kse(this,i)}}function kse(e,t){return t&&(Rm(t)==="object"||typeof t=="function")?t:O2(e)}function O2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mse(){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 wv(e){return wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wv(e)}function bM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rse=function(e){Ose(n,e);var t=Pse(n);function n(){var r;Ese(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),bM(O2(r),"priority",70),bM(O2(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Tse(n,[{key:"parse",value:function(i,o,s){switch(o){case"K":return Wt(on.hour11h,i);case"Ko":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(vt);function Nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nm=function(n){return typeof n}:Nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nm(e)}function Nse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wM(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 Lse(e,t,n){return t&&wM(e.prototype,t),n&&wM(e,n),e}function Dse(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}}),t&&P2(e,t)}function P2(e,t){return P2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},P2(e,t)}function Ase(e){var t=Fse();return function(){var r=xv(e),i;if(t){var o=xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ise(this,i)}}function Ise(e,t){return t&&(Nm(t)==="object"||typeof t=="function")?t:k2(e)}function k2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fse(){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 xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $se=function(e){Dse(n,e);var t=Ase(n);function n(){var r;Nse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),xM(k2(r),"priority",70),xM(k2(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Lse(n,[{key:"parse",value:function(i,o,s){switch(o){case"k":return Wt(on.hour24h,i);case"ko":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(vt);function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SM(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 Bse(e,t,n){return t&&SM(e.prototype,t),n&&SM(e,n),e}function zse(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}}),t&&M2(e,t)}function M2(e,t){return M2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},M2(e,t)}function Use(e){var t=Hse();return function(){var r=Sv(e),i;if(t){var o=Sv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vse(this,i)}}function Vse(e,t){return t&&(Lm(t)==="object"||typeof t=="function")?t:R2(e)}function R2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hse(){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 Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function CM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wse=function(e){zse(n,e);var t=Use(n);function n(){var r;jse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),CM(R2(r),"priority",60),CM(R2(r),"incompatibleTokens",["t","T"]),r}return Bse(n,[{key:"parse",value:function(i,o,s){switch(o){case"m":return Wt(on.minute,i);case"mo":return s.ordinalNumber(i,{unit:"minute"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(vt);function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function Yse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EM(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 qse(e,t,n){return t&&EM(e.prototype,t),n&&EM(e,n),e}function Gse(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}}),t&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},N2(e,t)}function Zse(e){var t=Xse();return function(){var r=Cv(e),i;if(t){var o=Cv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Kse(this,i)}}function Kse(e,t){return t&&(Dm(t)==="object"||typeof t=="function")?t:L2(e)}function L2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xse(){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 Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function TM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qse=function(e){Gse(n,e);var t=Zse(n);function n(){var r;Yse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),TM(L2(r),"priority",50),TM(L2(r),"incompatibleTokens",["t","T"]),r}return qse(n,[{key:"parse",value:function(i,o,s){switch(o){case"s":return Wt(on.second,i);case"so":return s.ordinalNumber(i,{unit:"second"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(vt);function Am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Am=function(n){return typeof n}:Am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function Jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OM(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 eae(e,t,n){return t&&OM(e.prototype,t),n&&OM(e,n),e}function tae(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}}),t&&D2(e,t)}function D2(e,t){return D2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},D2(e,t)}function nae(e){var t=iae();return function(){var r=Ev(e),i;if(t){var o=Ev(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rae(this,i)}}function rae(e,t){return t&&(Am(t)==="object"||typeof t=="function")?t:A2(e)}function A2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iae(){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 Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function PM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oae=function(e){tae(n,e);var t=nae(n);function n(){var r;Jse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),PM(A2(r),"priority",30),PM(A2(r),"incompatibleTokens",["t","T"]),r}return eae(n,[{key:"parse",value:function(i,o){var s=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return sn(Jt(o.length,i),s)}},{key:"set",value:function(i,o,s){return i.setUTCMilliseconds(s),i}}]),n}(vt);function Im(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Im=function(n){return typeof n}:Im=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Im(e)}function sae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kM(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 aae(e,t,n){return t&&kM(e.prototype,t),n&&kM(e,n),e}function lae(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}}),t&&I2(e,t)}function I2(e,t){return I2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},I2(e,t)}function cae(e){var t=fae();return function(){var r=Tv(e),i;if(t){var o=Tv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return uae(this,i)}}function uae(e,t){return t&&(Im(t)==="object"||typeof t=="function")?t:F2(e)}function F2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fae(){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 Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function MM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dae=function(e){lae(n,e);var t=cae(n);function n(){var r;sae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),MM(F2(r),"priority",10),MM(F2(r),"incompatibleTokens",["t","T","x"]),r}return aae(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Hi(Vi.basicOptionalMinutes,i);case"XX":return Hi(Vi.basic,i);case"XXXX":return Hi(Vi.basicOptionalSeconds,i);case"XXXXX":return Hi(Vi.extendedOptionalSeconds,i);case"XXX":default:return Hi(Vi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(vt);function Fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fm=function(n){return typeof n}:Fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fm(e)}function hae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RM(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 pae(e,t,n){return t&&RM(e.prototype,t),n&&RM(e,n),e}function mae(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}}),t&&$2(e,t)}function $2(e,t){return $2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$2(e,t)}function gae(e){var t=yae();return function(){var r=Ov(e),i;if(t){var o=Ov(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vae(this,i)}}function vae(e,t){return t&&(Fm(t)==="object"||typeof t=="function")?t:j2(e)}function j2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yae(){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 Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function NM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _ae=function(e){mae(n,e);var t=gae(n);function n(){var r;hae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),NM(j2(r),"priority",10),NM(j2(r),"incompatibleTokens",["t","T","X"]),r}return pae(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Hi(Vi.basicOptionalMinutes,i);case"xx":return Hi(Vi.basic,i);case"xxxx":return Hi(Vi.basicOptionalSeconds,i);case"xxxxx":return Hi(Vi.extendedOptionalSeconds,i);case"xxx":default:return Hi(Vi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(vt);function $m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$m=function(n){return typeof n}:$m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$m(e)}function bae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LM(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 wae(e,t,n){return t&&LM(e.prototype,t),n&&LM(e,n),e}function xae(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}}),t&&B2(e,t)}function B2(e,t){return B2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},B2(e,t)}function Sae(e){var t=Eae();return function(){var r=Pv(e),i;if(t){var o=Pv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Cae(this,i)}}function Cae(e,t){return t&&($m(t)==="object"||typeof t=="function")?t:z2(e)}function z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eae(){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 Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function DM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tae=function(e){xae(n,e);var t=Sae(n);function n(){var r;bae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),DM(z2(r),"priority",40),DM(z2(r),"incompatibleTokens","*"),r}return wae(n,[{key:"parse",value:function(i){return J6(i)}},{key:"set",value:function(i,o,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(vt);function jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jm=function(n){return typeof n}:jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jm(e)}function Oae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AM(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 Pae(e,t,n){return t&&AM(e.prototype,t),n&&AM(e,n),e}function kae(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}}),t&&U2(e,t)}function U2(e,t){return U2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},U2(e,t)}function Mae(e){var t=Nae();return function(){var r=kv(e),i;if(t){var o=kv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Rae(this,i)}}function Rae(e,t){return t&&(jm(t)==="object"||typeof t=="function")?t:V2(e)}function V2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nae(){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 kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function IM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lae=function(e){kae(n,e);var t=Mae(n);function n(){var r;Oae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),IM(V2(r),"priority",20),IM(V2(r),"incompatibleTokens","*"),r}return Pae(n,[{key:"parse",value:function(i){return J6(i)}},{key:"set",value:function(i,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(vt),Dae={G:new Dre,y:new zre,Y:new Gre,R:new tie,u:new lie,Q:new mie,q:new xie,M:new kie,L:new Iie,w:new Hie,I:new Qie,d:new aoe,D:new poe,E:new woe,e:new Poe,c:new Aoe,i:new Voe,a:new Koe,b:new rse,B:new use,h:new vse,H:new Cse,K:new Rse,k:new $se,m:new Wse,s:new Qse,S:new oae,X:new dae,x:new _ae,t:new Tae,T:new Lae};function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function FM(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Aae(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Aae(e,t){if(e){if(typeof e=="string")return $M(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 $M(e,t)}}function $M(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 Iae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$ae=/^'([^]*?)'?$/,jae=/''/g,Bae=/\S/,zae=/[a-zA-Z]/;function fb(e,t,n,r){var i,o,s,a,l,c,f,h,p,m,g,_,x,v,b,w,E,P;Oe(3,arguments);var k=String(e),N=String(t),A=Uo(),V=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:A.locale)!==null&&i!==void 0?i:sE;if(!V.match)throw new RangeError("locale must contain match property");var I=tt((s=(a=(l=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&l!==void 0?l:A.firstWeekContainsDate)!==null&&a!==void 0?a:(p=A.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=tt((g=(_=(x=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(b=r.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&x!==void 0?x:A.weekStartsOn)!==null&&_!==void 0?_:(E=A.locale)===null||E===void 0||(P=E.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&g!==void 0?g:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return k===""?Me(n):new Date(NaN);var q={firstWeekContainsDate:I,weekStartsOn:Y,locale:V},X=[new Ere],Z=N.match(Fae).map(function(O){var R=O[0];if(R in Dw){var F=Dw[R];return F(O,V.formatLong)}return O}).join("").match(Iae),J=[],oe=FM(Z),ce;try{var K=function(){var R=ce.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&G6(R)&&Zg(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&q6(R)&&Zg(R,N,e);var F=R[0],ee=Dae[F];if(ee){var Q=ee.incompatibleTokens;if(Array.isArray(Q)){var se=J.find(function(Le){return Q.includes(Le.token)||Le.token===F});if(se)throw new RangeError("The format string mustn't contain `".concat(se.fullToken,"` and `").concat(R,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&J.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));J.push({token:F,fullToken:R});var ve=ee.run(k,R,V.match,q);if(!ve)return{v:new Date(NaN)};X.push(ve.setter),k=ve.rest}else{if(F.match(zae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");if(R==="''"?R="'":F==="'"&&(R=Uae(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(oe.s();!(ce=oe.n()).done;){var $=K();if(Bm($)==="object")return $.v}}catch(O){oe.e(O)}finally{oe.f()}if(k.length>0&&Bae.test(k))return new Date(NaN);var D=X.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,F){return F.indexOf(O)===R}).map(function(O){return X.filter(function(R){return R.priority===O}).sort(function(R,F){return F.subPriority-R.subPriority})}).map(function(O){return O[0]}),B=Me(n);if(isNaN(B.getTime()))return new Date(NaN);var ne=U6(B,Rc(B)),W={},G=FM(D),re;try{for(G.s();!(re=G.n()).done;){var le=re.value;if(!le.validate(ne,q))return new Date(NaN);var me=le.set(ne,W,q);Array.isArray(me)?(ne=me[0],aE(W,me[1])):ne=me}}catch(O){G.e(O)}finally{G.f()}return ne}function Uae(e){return e.match($ae)[1].replace(jae,"'")}function Vae(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Hae(e,t){Oe(2,arguments);var n=Lw(e),r=Lw(t);return n.getTime()===r.getTime()}function Wae(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()}function Dc(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Me(t.start).getTime(),i=Me(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function dE(e,t){Oe(2,arguments);var n=tt(t);return ll(e,-n)}function Lo(e,t){var n;Oe(1,arguments);var r=tt((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Zae(e),o;if(i.date){var s=Kae(i.date,r);o=Xae(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=Qae(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Jae(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(a+l+c)}var fp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Yae=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qae=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Gae=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Zae(e){var t={},n=e.split(fp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],fp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(fp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=fp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Kae(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Xae(e,t){if(t===null)return new Date(NaN);var n=e.match(Yae);if(!n)return new Date(NaN);var r=!!n[4],i=Mu(n[1]),o=Mu(n[2])-1,s=Mu(n[3]),a=Mu(n[4]),l=Mu(n[5])-1;if(r)return ile(t,a,l)?ele(t,a,l):new Date(NaN);var c=new Date(0);return!nle(t,o,s)||!rle(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Mu(e){return e?parseInt(e):1}function Qae(e){var t=e.match(qae);if(!t)return NaN;var n=db(t[1]),r=db(t[2]),i=db(t[3]);return ole(n,r,i)?n*s_+r*tE+i*1e3:NaN}function db(e){return e&&parseFloat(e.replace(",","."))||0}function Jae(e){if(e==="Z")return 0;var t=e.match(Gae);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return sle(r,i)?n*(r*s_+i*tE):NaN}function ele(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var tle=[31,null,31,30,31,30,31,31,30,31,30,31];function n5(e){return e%400===0||e%4===0&&e%100!==0}function nle(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(tle[t]||(n5(e)?29:28))}function rle(e,t){return t>=1&&t<=(n5(e)?366:365)}function ile(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function ole(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function sle(e,t){return t>=0&&t<=59}function Wi(e,t){Oe(2,arguments);var n=Me(e),r=tt(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=gre(s);return n.setMonth(r,Math.min(o,a)),n}function pf(e,t){Oe(2,arguments);var n=Me(e),r=tt(t);return n.setHours(r),n}function mf(e,t){Oe(2,arguments);var n=Me(e),r=tt(t);return n.setMinutes(r),n}function Wu(e,t){Oe(2,arguments);var n=Me(e),r=tt(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Wi(n,n.getMonth()+o*3)}function ale(e,t){Oe(2,arguments);var n=Me(e),r=tt(t);return n.setSeconds(r),n}function Mv(e,t){Oe(2,arguments);var n=Me(e),r=tt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function fd(e,t){Oe(2,arguments);var n=tt(t);return no(e,-n)}function lle(e,t){Oe(2,arguments);var n=tt(t);return eE(e,-n)}function dd(e,t){Oe(2,arguments);var n=tt(t);return Nc(e,-n)}const gf="yyyy-MM-dd",hE="yyyy-MM-dd HH:mm",Fs=()=>new Date,pE=e=>typeof e!="string",r5=(e,t)=>!e||!pE(e)?e:t?vo(e,t):pre(e),i5=(e=gf)=>t=>r5(t,e),$s=e=>r5(e,void 0),dp=i5(),Rv=i5(hE),bi=e=>pE(e)?e:Lo(e),jM=e=>e?bi(e):null,Yd=(e,t,n)=>{try{return Dc(bi(e),{start:bi(t??e),end:bi(n??e)})}catch{return!1}},fa=(e,t)=>Z6(e,t)||Kr(e,t),qd="all",o5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[qd]:void 0},s5=Object.keys(o5),a5=e=>e===void 0||Hn(aA(Boolean,e)),Nv=e=>typeof e=="string"&&s5.includes(e),cle=s5.filter(e=>e!==qd),l5=(e,t)=>({startDate:jM(e),endDate:jM(t)}),ule=e=>{if(!(!e||a5(e)))return e.startDate&&!e.endDate?`Since ${dp(e.startDate)}`:!e.startDate&&e.endDate?`Until ${dp(e.endDate)}`:`${dp(e.startDate)} - ${dp(e.endDate)}`},mE=e=>{if(!(!e||e===qd))return Nv(e)?o5[e]:ule(e)},Yr=e=>Mr(dE(Fs(),e)),kl=e=>({startDate:e,endDate:Ja(Fs())}),c5=$y([[ua("today"),()=>kl(Mr(Fs()))],[ua("yesterday"),()=>({startDate:Yr(1),endDate:Ja(dE(Fs(),1))})],[ua("last7Days"),()=>kl(Yr(7))],[ua("last30Days"),()=>kl(Yr(30))],[ua("last90Days"),()=>kl(Yr(90))],[ua("last180Days"),()=>kl(Yr(180))],[ua("last365Days"),()=>kl(Yr(365))],[kS,()=>({})]]),fle=e=>{const t=bi(e);return $y([[()=>fa(Mr(Fs()),t),()=>"today"],[()=>fa(Yr(1),t),()=>"yesterday"],[()=>fa(Yr(7),t),()=>"last7Days"],[()=>fa(Yr(30),t),()=>"last30Days"],[()=>fa(Yr(90),t),()=>"last90Days"],[()=>fa(Yr(180),t),()=>"last180Days"],[()=>fa(Yr(365),t),()=>"last365Days"],[kS,()=>qd]])()},dle=e=>Nv(e)?c5(e):e;function hle(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H2(e,t)}function H2(e,t){return H2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},H2(e,t)}function ple(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function BM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mle(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function gle(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&mle(e,t,n))return!0;e=e.parentNode||e.host}return e}function vle(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var yle=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function _le(e){return e===void 0&&(e=0),function(){return++e}}var ble=_le(),W2,hp={},hb={},wle=["touchstart","touchmove"],xle="ignore-react-onclickoutside";function zM(e,t){var n=null,r=wle.indexOf(t)!==-1;return r&&W2&&(n={passive:!e.props.preventDefault}),n}function a_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){hle(s,o);function s(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():Ba.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||hb[c._uid])){typeof W2>"u"&&(W2=yle()),hb[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),hp[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&vle(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;gle(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,hp[c._uid],zM(BM(c),h))})}},c.disableOnClickOutside=function(){delete hb[c._uid];var f=hp[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,zM(BM(c),p))}),delete hp[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=ble(),c}var a=s.prototype;return a.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var f=ple(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,H.createElement(e,f)},s}(H.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:xle,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var u5=H.createContext(),f5=H.createContext();function Sle(e){var t=e.children,n=H.useState(null),r=n[0],i=n[1],o=H.useRef(!1);H.useEffect(function(){return function(){o.current=!0}},[]);var s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(u5.Provider,{value:r},H.createElement(f5.Provider,{value:s},t))}var d5=function(t){return Array.isArray(t)?t[0]:t},h5=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},Y2=function(t,n){if(typeof t=="function")return h5(t,n);t!=null&&(t.current=n)},UM=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},VM=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,Cle=[],Ele=function(t,n,r){r===void 0&&(r={});var i=H.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Cle},s=H.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=H.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var g=m.state,_=Object.keys(g.elements);l({styles:UM(_.map(function(x){return[x,g.styles[x]||{}]})),attributes:UM(_.map(function(x){return[x,g.attributes[x]]}))})},requires:["computeStyles"]}},[]),f=H.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return RI(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=H.useRef();return VM(function(){h.current&&h.current.setOptions(f)},[f]),VM(function(){if(!(t==null||n==null)){var p=r.createPopper||MI,m=p(t,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:a.styles,attributes:a.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},Tle=function(){},Ole=function(){return Promise.resolve(null)},Ple=[];function kle(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,s=o===void 0?Ple:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=H.useContext(u5),p=H.useState(null),m=p[0],g=p[1],_=H.useState(null),x=_[0],v=_[1];H.useEffect(function(){Y2(c,m)},[c,m]);var b=H.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,s,x]),w=Ele(a||h,m,b),E=w.state,P=w.styles,k=w.forceUpdate,N=w.update,A=H.useMemo(function(){return{ref:g,style:P.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:v},forceUpdate:k||Tle,update:N||Ole}},[g,v,n,E,P,N,k]);return d5(f)(A)}function Mle(e){var t=e.children,n=e.innerRef,r=H.useContext(f5),i=H.useCallback(function(o){Y2(n,o),h5(r,o)},[n,r]);return H.useEffect(function(){return function(){return Y2(n,null)}}),H.useEffect(function(){},[r]),d5(t)({ref:i})}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p5(e){return(p5=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})(e)}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YM(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 Mn(e,t,n){return t&&YM(e.prototype,t),n&&YM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l_(){return(l_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&m5(e,t)}function q2(e){return(q2=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function m5(e,t){return(m5=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(e,t)}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rle(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function Nn(e){var t=function(){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}}();return function(){var n,r=q2(e);if(t){var i=q2(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rle(this,n)}}function g5(e){return function(t){if(Array.isArray(t))return pb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return pb(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pb(t,n)}}(e)||function(){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 pb(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 qM(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"})}}function GM(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"})}}var Nle={p:GM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return qM(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",qM(i,t)).replace("{{time}}",GM(o,t))}},Lle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function hn(e){var t=e?typeof e=="string"||e instanceof String?Lo(e):Me(e):new Date;return ts(t)?t:null}function Dle(e,t,n,r,i){var o=null,s=Os(n)||Os(Fa()),a=!0;return Array.isArray(t)?(t.forEach(function(l){var c=fb(e,l,new Date,{locale:s});r&&(a=ts(c,i)&&e===an(c,l,n)),ts(c,i)&&a&&(o=c)}),o):(o=fb(e,t,new Date,{locale:s}),r?a=ts(o)&&e===an(o,t,n):ts(o)||(t=t.match(Lle).map(function(l){var c=l[0];return c==="p"||c==="P"?s?(0,Nle[c])(l,s.formatLong):c:l}).join(""),e.length>0&&(o=fb(e,t.slice(0,e.length),new Date)),ts(o)||(o=new Date(e))),ts(o)&&a?o:null)}function ts(e,t){return t=t||new Date("1/1/1000"),B6(e)&&!Kr(e,t)}function an(e,t,n){if(n==="en")return vo(e,t,{awareOfUnicodeTokens:!0});var r=Os(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Fa()&&Os(Fa())&&(r=Os(Fa())),vo(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function mb(e,t){var n=t.dateFormat,r=t.locale;return e&&an(e,Array.isArray(n)?n[0]:n,r)||""}function ZM(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second;return pf(mf(ale(e,s===void 0?0:s),o),r)}function Ale(e,t){var n=t&&Os(t)||Fa()&&Os(Fa());return yre(e,n?{locale:n}:null)}function Ile(e,t){return an(e,"ddd",t)}function Fle(e){return Mr(e)}function gE(e,t,n){var r=Os(t||Fa());return j6(e,{locale:r,weekStartsOn:n})}function Ia(e){return rne(e)}function Yu(e){return ine(e)}function $le(e){return Lw(e)}function v5(e,t){return e&&t?Wae(e,t):!e&&!t}function us(e,t){return e&&t?Vae(e,t):!e&&!t}function Lv(e,t){return e&&t?Hae(e,t):!e&&!t}function pr(e,t){return e&&t?Kte(e,t):!e&&!t}function fs(e,t){return e&&t?Z6(e,t):!e&&!t}function zm(e,t,n){var r,i=Mr(t),o=Ja(n);try{r=Dc(e,{start:i,end:o})}catch{r=!1}return r}function Fa(){return(typeof window<"u"?window:globalThis).__localeId__}function Os(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function y5(e,t){return an(Wi(hn(),e),"LLLL",t)}function _5(e,t){return an(Wi(hn(),e),"LLL",t)}function jle(e,t){return an(Wu(hn(),e),"QQQ",t)}function c_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,s=t.includeDates,a=t.includeDateIntervals,l=t.filterDate;return u_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return pr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return Dc(e,{start:f,end:h})})||s&&!s.some(function(c){return pr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return Dc(e,{start:f,end:h})})||l&&!l(hn(e))||!1}function vE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,s=i.end;return Dc(e,{start:o,end:s})}):n&&n.some(function(i){return pr(e,i)})||!1}function Ble(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return u_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return us(e,a)})||o&&!o.some(function(a){return us(e,a)})||s&&!s(hn(e))||!1}function zle(e,t,n,r){var i=mt(e),o=lr(e),s=mt(t),a=lr(t),l=mt(r);return i===s&&i===l?o<=n&&n<=a:i<s?l===i&&o<=n||l===s&&a>=n||l<s&&l>i:void 0}function Ule(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return u_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return Lv(e,a)})||o&&!o.some(function(a){return Lv(e,a)})||s&&!s(hn(e))||!1}function Vle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=new Date(e,0,1);return u_(i,{minDate:n,maxDate:r})||!1}function Hle(e,t,n,r){var i=mt(e),o=Nw(e),s=mt(t),a=Nw(t),l=mt(r);return i===s&&i===l?o<=n&&n<=a:i<s?l===i&&o<=n||l===s&&a>=n||l<s&&l>i:void 0}function u_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&cd(e,n)<0||r&&cd(e,r)>0}function KM(e,t){return t.some(function(n){return Ei(n)===Ei(e)&&Ti(n)===Ti(e)})}function XM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&KM(e,n)||r&&!KM(e,r)||i&&!i(e)||!1}function QM(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=hn(),s=pf(mf(o,Ti(e)),Ei(e)),a=pf(mf(o,Ti(n)),Ei(n)),l=pf(mf(o,Ti(r)),Ei(r));try{i=!Dc(s,{start:a,end:l})}catch{i=!1}return i}function JM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=fd(e,1);return n&&ud(n,i)>0||r&&r.every(function(o){return ud(o,i)>0})||!1}function eR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=no(e,1);return n&&ud(i,n)>0||r&&r.every(function(o){return ud(i,o)>0})||!1}function tR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=dd(e,1);return n&&qg(n,i)>0||r&&r.every(function(o){return qg(o,i)>0})||!1}function nR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Nc(e,1);return n&&qg(i,n)>0||r&&r.every(function(o){return qg(i,o)>0})||!1}function b5(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return cd(i,t)>=0});return w3(r)}return n?w3(n):t}function w5(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return cd(i,t)<=0});return b3(r)}return n?b3(n):t}function rR(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(nE(o)){var s=an(o,"MM.dd.yyyy"),a=n.get(s)||[];a.includes(t)||(a.push(t),n.set(s,a))}else if(p5(o)==="object"){var l=Object.keys(o),c=l[0],f=o[l[0]];if(typeof c=="string"&&f.constructor===Array)for(var h=0,p=f.length;h<p;h++){var m=an(f[h],"MM.dd.yyyy"),g=n.get(m)||[];g.includes(c)||(g.push(c),n.set(m,g))}}}return n}function Wle(e,t,n,r,i){for(var o=i.length,s=[],a=0;a<o;a++){var l=Rw(Vte(e,Ei(i[a])),Ti(i[a])),c=Rw(e,(n+1)*r);Is(l,t)&&Kr(l,c)&&s.push(i[a])}return s}function iR(e){return e<10?"0".concat(e):"".concat(e)}function vf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(mt(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function Yle(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=mt(n)<=s),r&&a&&(a=mt(r)>=s),a&&i.push(s)}return i}var qle=a_(function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;kn(this,n),ie(ae(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return z.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(ae(i),p),"aria-selected":l===p?"true":void 0},l===p?z.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?mt(i.props.minDate):null,h=i.props.maxDate?mt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(z.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(z.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),ie(ae(i),"onChange",function(l){i.props.onChange(l)}),ie(ae(i),"handleClickOutside",function(){i.props.onCancel()}),ie(ae(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),ie(ae(i),"incrementYears",function(){return i.shiftYears(1)}),ie(ae(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:Yle(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=H.createRef(),i}return Mn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=ge({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return z.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),Gle=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ie(ae(r),"renderSelectOptions",function(){for(var a=r.props.minDate?mt(r.props.minDate):1900,l=r.props.maxDate?mt(r.props.maxDate):2100,c=[],f=a;f<=l;f++)c.push(z.createElement("option",{key:f,value:f},f));return c}),ie(ae(r),"onSelectChange",function(a){r.onChange(a.target.value)}),ie(ae(r),"renderSelectMode",function(){return z.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ie(ae(r),"renderReadView",function(a){return z.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},z.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),z.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),ie(ae(r),"renderDropdown",function(){return z.createElement(qle,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),ie(ae(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),ie(ae(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.year&&r.props.onChange(a)}),ie(ae(r),"toggleDropdown",function(a){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,a)})}),ie(ae(r),"handleYearChange",function(a,l){r.onSelect(a,l),r.setOpen()}),ie(ae(r),"onSelect",function(a,l){r.props.onSelect&&r.props.onSelect(a,l)}),ie(ae(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Mn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return z.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),Zle=a_(function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(a){return r.props.month===a}),ie(ae(r),"renderOptions",function(){return r.props.monthNames.map(function(a,l){return z.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:a,onClick:r.onChange.bind(ae(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?z.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",a)})}),ie(ae(r),"onChange",function(a){return r.props.onChange(a)}),ie(ae(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Mn(n,[{key:"render",value:function(){return z.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),Kle=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ie(ae(r),"renderSelectOptions",function(a){return a.map(function(l,c){return z.createElement("option",{key:c,value:c},l)})}),ie(ae(r),"renderSelectMode",function(a){return z.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(a))}),ie(ae(r),"renderReadView",function(a,l){return z.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},z.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),z.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),ie(ae(r),"renderDropdown",function(a){return z.createElement(Zle,{key:"dropdown",month:r.props.month,monthNames:a,onChange:r.onChange,onCancel:r.toggleDropdown})}),ie(ae(r),"renderScrollMode",function(a){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,a)];return l&&c.unshift(r.renderDropdown(a)),c}),ie(ae(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.month&&r.props.onChange(a)}),ie(ae(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Mn(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return _5(s,i.props.locale)}:function(s){return y5(s,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return z.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function Xle(e,t){for(var n=[],r=Ia(e),i=Ia(t);!Is(r,i);)n.push(hn(r)),r=no(r,1);return n}var Qle=a_(function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),ie(ae(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var s=Kg(o),a=v5(i.props.date,o)&&us(i.props.date,o);return z.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:i.onChange.bind(ae(i),s),"aria-selected":a?"true":void 0},a?z.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",an(o,i.props.dateFormat,i.props.locale))})}),ie(ae(i),"onChange",function(o){return i.props.onChange(o)}),ie(ae(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:Xle(i.props.minDate,i.props.maxDate)},i}return Mn(n,[{key:"render",value:function(){var r=ge({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return z.createElement("div",{className:r},this.renderOptions())}}]),n}()),Jle=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ie(ae(r),"renderSelectOptions",function(){for(var a=Ia(r.props.minDate),l=Ia(r.props.maxDate),c=[];!Is(a,l);){var f=Kg(a);c.push(z.createElement("option",{key:f,value:f},an(a,r.props.dateFormat,r.props.locale))),a=no(a,1)}return c}),ie(ae(r),"onSelectChange",function(a){r.onChange(a.target.value)}),ie(ae(r),"renderSelectMode",function(){return z.createElement("select",{value:Kg(Ia(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ie(ae(r),"renderReadView",function(a){var l=an(r.props.date,r.props.dateFormat,r.props.locale);return z.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},z.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),z.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),ie(ae(r),"renderDropdown",function(){return z.createElement(Qle,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),ie(ae(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),ie(ae(r),"onChange",function(a){r.toggleDropdown();var l=hn(parseInt(a));v5(r.props.date,l)&&us(r.props.date,l)||r.props.onChange(l)}),ie(ae(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Mn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return z.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),ece=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"dayEl",z.createRef()),ie(ae(r),"handleClick",function(a){!r.isDisabled()&&r.props.onClick&&r.props.onClick(a)}),ie(ae(r),"handleMouseEnter",function(a){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(a)}),ie(ae(r),"handleOnKeyDown",function(a){a.key===" "&&(a.preventDefault(),a.key="Enter"),r.props.handleOnKeyDown(a)}),ie(ae(r),"isSameDay",function(a){return pr(r.props.day,a)}),ie(ae(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),ie(ae(r),"isDisabled",function(){return c_(r.props.day,r.props)}),ie(ae(r),"isExcluded",function(){return vE(r.props.day,r.props)}),ie(ae(r),"getHighLightedClass",function(a){var l=r.props,c=l.day,f=l.highlightDates;if(!f)return!1;var h=an(c,"MM.dd.yyyy");return f.get(h)}),ie(ae(r),"isInRange",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&zm(l,c,f)}),ie(ae(r),"isInSelectingRange",function(){var a,l=r.props,c=l.day,f=l.selectsStart,h=l.selectsEnd,p=l.selectsRange,m=l.selectsDisabledDaysInRange,g=l.startDate,_=l.endDate,x=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return!(!(f||h||p)||!x||!m&&r.isDisabled())&&(f&&_&&(Kr(x,_)||fs(x,_))?zm(c,x,_):(h&&g&&(Is(x,g)||fs(x,g))||!(!p||!g||_||!Is(x,g)&&!fs(x,g)))&&zm(c,g,x))}),ie(ae(r),"isSelectingRangeStart",function(){var a;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.startDate,h=l.selectsStart,p=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return pr(c,h?p:f)}),ie(ae(r),"isSelectingRangeEnd",function(){var a;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.endDate,h=l.selectsEnd,p=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return pr(c,h?p:f)}),ie(ae(r),"isRangeStart",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&pr(c,l)}),ie(ae(r),"isRangeEnd",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&pr(f,l)}),ie(ae(r),"isWeekend",function(){var a=mre(r.props.day);return a===0||a===6}),ie(ae(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===lr(r.props.day)}),ie(ae(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(lr(r.props.day)+1)%12===r.props.month}),ie(ae(r),"isCurrentDay",function(){return r.isSameDay(hn())}),ie(ae(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),ie(ae(r),"getClassNames",function(a){var l=r.props.dayClassName?r.props.dayClassName(a):void 0;return ge("react-datepicker__day",l,"react-datepicker__day--"+Ile(r.props.day),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))}),ie(ae(r),"getAriaLabel",function(){var a=r.props,l=a.day,c=a.ariaLabelPrefixWhenEnabled,f=c===void 0?"Choose":c,h=a.ariaLabelPrefixWhenDisabled,p=h===void 0?"Not available":h,m=r.isDisabled()||r.isExcluded()?p:f;return"".concat(m," ").concat(an(l,"PPPP",r.props.locale))}),ie(ae(r),"getTabIndex",function(a,l){var c=a||r.props.selected,f=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&pr(f,c)?0:-1}),ie(ae(r),"handleFocusDay",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!a.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),ie(ae(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(P3(r.props.day),r.props.day):P3(r.props.day)}),ie(ae(r),"render",function(){return z.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return Mn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),tce=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"handleClick",function(a){r.props.onClick&&r.props.onClick(a)}),r}return Mn(n,[{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,s=o===void 0?"week ":o,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick};return z.createElement("div",{className:ge(a),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}]),n}(),nce=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l)}),ie(ae(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),ie(ae(r),"handleWeekClick",function(a,l,c){typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(a,l,c),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),ie(ae(r),"formatWeekNumber",function(a){return r.props.formatWeekNumber?r.props.formatWeekNumber(a):Ale(a)}),ie(ae(r),"renderDays",function(){var a=gE(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(a);if(r.props.showWeekNumber){var f=r.props.onWeekSelect?r.handleWeekClick.bind(ae(r),a,c):void 0;l.push(z.createElement(tce,{key:"W",weekNumber:c,onClick:f,ariaLabelPrefix:r.props.ariaLabelPrefix}))}return l.concat([0,1,2,3,4,5,6].map(function(h){var p=ll(a,h);return z.createElement(ece,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(ae(r),p),onMouseEnter:r.handleDayMouseEnter.bind(ae(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),r}return Mn(n,[{key:"render",value:function(){return z.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),rce=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",g5(Array(12)).map(function(){return z.createRef()})),ie(ae(r),"isDisabled",function(a){return c_(a,r.props)}),ie(ae(r),"isExcluded",function(a){return vE(a,r.props)}),ie(ae(r),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l,r.props.orderInDisplay)}),ie(ae(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),ie(ae(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),ie(ae(r),"isRangeStartMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&us(Wi(c,a),f)}),ie(ae(r),"isRangeStartQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Lv(Wu(c,a),f)}),ie(ae(r),"isRangeEndMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&us(Wi(c,a),h)}),ie(ae(r),"isRangeEndQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Lv(Wu(c,a),h)}),ie(ae(r),"isWeekInMonth",function(a){var l=r.props.day,c=ll(a,6);return us(a,l)||us(c,l)}),ie(ae(r),"isCurrentMonth",function(a,l){return mt(a)===mt(hn())&&l===lr(hn())}),ie(ae(r),"isSelectedMonth",function(a,l,c){return lr(a)===l&&mt(a)===mt(c)}),ie(ae(r),"isSelectedQuarter",function(a,l,c){return Nw(a)===l&&mt(a)===mt(c)}),ie(ae(r),"renderWeeks",function(){for(var a=[],l=r.props.fixedHeight,c=0,f=!1,h=gE(Ia(r.props.day),r.props.locale,r.props.calendarStartDay);a.push(z.createElement(nce,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:h,month:lr(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!f;){c++,h=eE(h,1);var p=l&&c>=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return a}),ie(ae(r),"onMonthClick",function(a,l){r.handleDayClick(Ia(Wi(r.props.day,l)),a)}),ie(ae(r),"handleMonthNavigation",function(a,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[a].current&&r.MONTH_REFS[a].current.focus())}),ie(ae(r),"onMonthKeyDown",function(a,l){var c=a.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(a,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,no(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,fd(r.props.preSelection,1))}}),ie(ae(r),"onQuarterClick",function(a,l){r.handleDayClick($le(Wu(r.props.day,l)),a)}),ie(ae(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate,_=l.preSelection,x=l.monthClassName,v=x?x(c):void 0;return ge("react-datepicker__month-text","react-datepicker__month-".concat(a),v,{"react-datepicker__month--disabled":(m||g)&&Ble(Wi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":lr(_)===a,"react-datepicker__month--in-range":zle(f,h,a,c),"react-datepicker__month--range-start":r.isRangeStartMonth(a),"react-datepicker__month--range-end":r.isRangeEndMonth(a),"react-datepicker__month-text--today":r.isCurrentMonth(c,a)})}),ie(ae(r),"getTabIndex",function(a){var l=lr(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),ie(ae(r),"getAriaLabel",function(a){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,g=Wi(m,a),_=r.isDisabled(g)||r.isExcluded(g)?p:f;return"".concat(_," ").concat(an(g,"MMMM yyyy"))}),ie(ae(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate;return ge("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(m||g)&&Ule(Wu(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":Hle(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),ie(ae(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,m=a.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(g,_){return z.createElement("div",{className:"react-datepicker__month-wrapper",key:_},g.map(function(x,v){return z.createElement("div",{ref:r.MONTH_REFS[x],key:v,onClick:function(b){r.onMonthClick(b,x)},onKeyDown:function(b){r.onMonthKeyDown(b,x)},tabIndex:r.getTabIndex(x),className:r.getMonthClassNames(x),role:"option","aria-label":r.getAriaLabel(x),"aria-current":r.isCurrentMonth(p,x)?"date":void 0,"aria-selected":r.isSelectedMonth(p,x,m)},l?y5(x,h):_5(x,h))}))})}),ie(ae(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return z.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return z.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},jle(f,r.props.locale))}))}),ie(ae(r),"getClassNames",function(){var a=r.props;a.day;var l=a.selectingDate,c=a.selectsStart,f=a.selectsEnd,h=a.showMonthYearPicker,p=a.showQuarterYearPicker;return ge("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Mn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,a=r.ariaLabelPrefix,l=a===void 0?"month ":a;return z.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(an(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),x5=function(e){Rn(n,z.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ie(ae(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),ie(ae(r),"handleClick",function(a){(r.props.minTime||r.props.maxTime)&&QM(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&XM(a,r.props)||r.props.onChange(a)}),ie(ae(r),"isSelectedTime",function(a,l,c){return r.props.selected&&l===Ei(a)&&c===Ti(a)}),ie(ae(r),"liClasses",function(a,l,c){var f=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(a,l,c):void 0];return r.isSelectedTime(a,l,c)&&f.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&QM(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&XM(a,r.props))&&f.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Ei(a)+Ti(a))%r.props.intervals!=0&&f.push("react-datepicker__time-list-item--injected"),f.join(" ")}),ie(ae(r),"handleOnKeyDown",function(a,l){a.key===" "&&(a.preventDefault(),a.key="Enter"),a.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(a)}),ie(ae(r),"renderTimes",function(){for(var a=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,f=Fle(hn(r.props.selected)),h=1440/c,p=r.props.injectTimes&&r.props.injectTimes.sort(function(E,P){return E-P}),m=r.props.selected||r.props.openToDate||hn(),g=Ei(m),_=Ti(m),x=pf(mf(f,_),g),v=0;v<h;v++){var b=Rw(f,v*c);if(a.push(b),p){var w=Wle(f,b,v,c,p);a=a.concat(w)}}return a.map(function(E,P){return z.createElement("li",{key:P,onClick:r.handleClick.bind(ae(r),E),className:r.liClasses(E,g,_),ref:function(k){(Kr(E,x)||fs(E,x))&&(r.centerLi=k)},onKeyDown:function(k){r.handleOnKeyDown(k,E)},tabIndex:"0","aria-selected":r.isSelectedTime(E,g,_)?"true":void 0},an(E,l,r.props.locale))})}),r}return Mn(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return z.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},z.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},z.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),z.createElement("div",{className:"react-datepicker__time"},z.createElement("div",{className:"react-datepicker__time-box"},z.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();ie(x5,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var ice=function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),ie(ae(i=t.call(this,r)),"YEAR_REFS",g5(Array(i.props.yearItemNumber)).map(function(){return z.createRef()})),ie(ae(i),"isDisabled",function(o){return c_(o,i.props)}),ie(ae(i),"isExcluded",function(o){return vE(o,i.props)}),ie(ae(i),"updateFocusOnPaginate",function(o){var s=function(){this.YEAR_REFS[o].current.focus()}.bind(ae(i));window.requestAnimationFrame(s)}),ie(ae(i),"handleYearClick",function(o,s){i.props.onDayClick&&i.props.onDayClick(o,s)}),ie(ae(i),"handleYearNavigation",function(o,s){var a=i.props,l=a.date,c=a.yearItemNumber,f=vf(l,c).startPeriod;i.isDisabled(s)||i.isExcluded(s)||(i.props.setPreSelection(s),o-f==-1?i.updateFocusOnPaginate(c-1):o-f===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-f].current.focus())}),ie(ae(i),"isSameDay",function(o,s){return pr(o,s)}),ie(ae(i),"isCurrentYear",function(o){return o===mt(hn())}),ie(ae(i),"isKeyboardSelected",function(o){var s=Yu(Mv(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!pr(s,Yu(i.props.selected))&&pr(s,Yu(i.props.preSelection))}),ie(ae(i),"onYearClick",function(o,s){var a=i.props.date;i.handleYearClick(Yu(Mv(a,s)),o)}),ie(ae(i),"onYearKeyDown",function(o,s){var a=o.key;if(!i.props.disabledKeyboardNavigation)switch(a){case"Enter":i.onYearClick(o,s),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(s+1,Nc(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(s-1,dd(i.props.preSelection,1))}}),ie(ae(i),"getYearClassNames",function(o){var s=i.props,a=s.minDate,l=s.maxDate,c=s.selected;return ge("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===mt(c),"react-datepicker__year-text--disabled":(a||l)&&Vle(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),ie(ae(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===mt(i.props.preSelection)?"0":"-1"}),i}return Mn(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,s=vf(o.date,o.yearItemNumber),a=s.startPeriod,l=s.endPeriod,c=function(h){i.push(z.createElement("div",{ref:r.YEAR_REFS[h-a],onClick:function(p){r.onYearClick(p,h)},onKeyDown:function(p){r.onYearKeyDown(p,h)},tabIndex:r.getYearTabIndex(h),className:r.getYearClassNames(h),key:h,"aria-current":r.isCurrentYear(h)?"date":void 0},h))},f=a;f<=l;f++)c(f);return z.createElement("div",{className:"react-datepicker__year"},z.createElement("div",{className:"react-datepicker__year-wrapper"},i))}}]),n}(),oce=function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),ie(ae(i=t.call(this,r)),"onTimeChange",function(o){i.setState({time:o});var s=new Date;s.setHours(o.split(":")[0]),s.setMinutes(o.split(":")[1]),i.props.onChange(s)}),ie(ae(i),"renderTimeInput",function(){var o=i.state.time,s=i.props,a=s.date,l=s.timeString,c=s.customTimeInput;return c?z.cloneElement(c,{date:a,value:o,onChange:i.onTimeChange}):z.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(f){i.onTimeChange(f.target.value||l)}})}),i.state={time:i.props.timeString},i}return Mn(n,[{key:"render",value:function(){return z.createElement("div",{className:"react-datepicker__input-time-container"},z.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),z.createElement("div",{className:"react-datepicker-time__input-container"},z.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n}();function sce(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return z.createElement("div",{className:t},r&&z.createElement("div",l_({className:"react-datepicker__triangle"},o)),n)}var ace=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],lce=function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),ie(ae(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),ie(ae(i),"setClickOutsideRef",function(){return i.containerRef.current}),ie(ae(i),"handleDropdownFocus",function(o){(function(){var s=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return ace.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),ie(ae(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=b5(i.props),f=w5(i.props),h=hn(),p=l||a||s;return p||(c&&Kr(h,c)?c:f&&Is(h,f)?f:h)}),ie(ae(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:no(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),ie(ae(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:fd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),ie(ae(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),ie(ae(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ie(ae(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ie(ae(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ie(ae(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ie(ae(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ie(ae(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:Mv(a,o)}},function(){return i.handleYearChange(i.state.date)})}),ie(ae(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:Wi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),ie(ae(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:Mv(Wi(a,lr(o)),mt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ie(ae(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=gE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(z.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(l){var c=ll(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return z.createElement("div",{key:l,className:ge("react-datepicker__day-name",h)},f)}))}),ie(ae(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(a,l,c){return l(an(a,"EEEE",c))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(a,l){return an(a,"EEE",l)}(o,s):function(a,l){return an(a,"EEEEEE",l)}(o,s)}),ie(ae(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:dd(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ie(ae(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=tR(i.state.date,i.props);break;case i.props.showYearPicker:o=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=b.minDate,E=b.yearItemNumber,P=E===void 0?12:E,k=vf(Yu(dd(v,P)),P).endPeriod,N=w&&mt(w);return N&&N>k||!1}(i.state.date,i.props);break;default:o=JM(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,g=m===void 0?typeof f=="string"?f:"Previous Month":m,_=p.previousYearAriaLabel,x=_===void 0?typeof h=="string"?h:"Previous Year":_;return z.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:g},z.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),ie(ae(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:Nc(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ie(ae(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=nR(i.state.date,i.props);break;case i.props.showYearPicker:o=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=b.maxDate,E=b.yearItemNumber,P=E===void 0?12:E,k=vf(Nc(v,P),P).startPeriod,N=w&&mt(w);return N&&N<k||!1}(i.state.date,i.props);break;default:o=eR(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var a=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.nextMonthButtonLabel,h=c.nextYearButtonLabel,p=i.props,m=p.nextMonthAriaLabel,g=m===void 0?typeof f=="string"?f:"Next Month":m,_=p.nextYearAriaLabel,x=_===void 0?typeof h=="string"?h:"Next Year":_;return z.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:g},z.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),ie(ae(i),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),z.createElement("div",{className:s.join(" ")},an(o,i.props.dateFormat,i.props.locale))}),ie(ae(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return z.createElement(Gle,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:mt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ie(ae(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return z.createElement(Kle,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:lr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ie(ae(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return z.createElement(Jle,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),ie(ae(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return z.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Mr(hn()),o)}},i.props.todayButton)}),ie(ae(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return z.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),z.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(a!==0),i.renderMonthYearDropdown(a!==0),i.renderYearDropdown(a!==0)),z.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),ie(ae(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,a=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=JM(i.state.date,i.props),c=eR(i.state.date,i.props),f=tR(i.state.date,i.props),h=nR(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return z.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(WM(WM({},i.state),{},{customHeaderCount:a,monthDate:s,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&z.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),ie(ae(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=vf(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return z.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):mt(o))}),ie(ae(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),ie(ae(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=fd(i.state.date,s),l=0;l<i.props.monthsShown;++l){var c=l-i.props.monthSelectedIn,f=no(a,c),h="month-".concat(l),p=l<i.props.monthsShown-1,m=l>0;o.push(z.createElement("div",{key:h,ref:function(g){i.monthContainer=g},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),z.createElement(rce,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),ie(ae(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?z.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),z.createElement(ice,l_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),ie(ae(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return z.createElement(x5,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),ie(ae(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=ts(o)&&Boolean(i.props.selected)?"".concat(iR(o.getHours()),":").concat(iR(o.getMinutes())):"";if(i.props.showTimeInput)return z.createElement(oce,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=z.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return Mn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!pr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!pr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||sce;return z.createElement("div",{ref:this.containerRef},z.createElement(r,{className:ge("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),S5=function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Mn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return La.createPortal(this.props.children,this.el)}}]),n}(),cce=function(e){return!e.disabled&&e.tabIndex!==-1},uce=function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),ie(ae(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(cce)}),ie(ae(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),ie(ae(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=z.createRef(),i}return Mn(n,[{key:"render",value:function(){return this.props.enableTabLoop?z.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},z.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,z.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),fce=function(e){Rn(n,z.Component);var t=Nn(n);function n(){return kn(this,n),t.apply(this,arguments)}return Mn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,a=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,g=i.popperOnKeyDown,_=i.portalId,x=i.portalHost;if(!a){var v=ge("react-datepicker-popper",o);r=z.createElement(kle,l_({modifiers:c,placement:f},h),function(w){var E=w.ref,P=w.style,k=w.placement,N=w.arrowProps;return z.createElement(uce,{enableTabLoop:m},z.createElement("div",{ref:E,style:P,className:v,"data-placement":k,onKeyDown:g},z.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=z.createElement(this.props.popperContainer,{},r)),_&&!a&&(r=z.createElement(S5,{portalId:_,portalHost:x},r));var b=ge("react-datepicker-wrapper",s);return z.createElement(Sle,{className:"react-datepicker-manager"},z.createElement(Mle,null,function(w){var E=w.ref;return z.createElement("div",{ref:E,className:b},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),dce=a_(lce),hce=function(e){Rn(n,z.Component);var t=Nn(n);function n(r){var i;return kn(this,n),ie(ae(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:hn()}),ie(ae(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=b5(i.props),l=w5(i.props),c=a&&Kr(s,Mr(a))?a:l&&Is(s,Ja(l))?l:s;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:rR(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),ie(ae(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ie(ae(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ie(ae(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ie(ae(i),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:gb},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),ie(ae(i),"inputOk",function(){return nE(i.state.preSelection)}),ie(ae(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ie(ae(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),ie(ae(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ie(ae(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ie(ae(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ie(ae(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ie(ae(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ie(ae(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=s[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(ae(i),s),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:pce});var c=Dle(l.target.value,i.props.dateFormat,i.props.locale,i.props.strictParsing,i.props.minDate);!c&&l.target.value||i.setSelected(c,l,!0)}}),ie(ae(i),"handleSelect",function(o,s,a){if(i.setState({preventFocus:!0},function(){return i.preventFocusTimeout=setTimeout(function(){return i.setState({preventFocus:!1})},50),i.preventFocusTimeout}),i.props.onChangeRaw&&i.props.onChangeRaw(s),i.setSelected(o,s,!1,a),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,f=l.endDate;!c||f||Kr(o,c)||i.setOpen(!1)}}),ie(ae(i),"setSelected",function(o,s,a,l){var c=o;if(c===null||!c_(c,i.props)){var f=i.props,h=f.onChange,p=f.selectsRange,m=f.startDate,g=f.endDate;if(!fs(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||a&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=ZM(c,{hour:Ei(i.props.selected),minute:Ti(i.props.selected),second:_re(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var _=m&&!g,x=m&&g;!m&&!g?h([c,null],s):_&&(Kr(c,m)?h([c,null],s):h([m,c],s)),x&&h([c,null],s)}else h(c,s);a||(i.props.onSelect(c,s),i.setState({inputValue:null}))}}),ie(ae(i),"setPreSelection",function(o){var s=i.props.minDate!==void 0,a=i.props.maxDate!==void 0,l=!0;if(o){var c=Mr(o);if(s&&a)l=zm(o,i.props.minDate,i.props.maxDate);else if(s){var f=Mr(i.props.minDate);l=Is(o,f)||fs(c,f)}else if(a){var h=Ja(i.props.maxDate);l=Kr(o,h)||fs(c,h)}}l&&i.setState({preSelection:o})}),ie(ae(i),"handleTimeChange",function(o){var s=ZM(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Ei(o),minute:Ti(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),i.setState({inputValue:null})}),ie(ae(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),ie(ae(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var s=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(s==="ArrowDown"||s==="ArrowUp"){o.preventDefault();var a=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(a&&a.focus({preventScroll:!0}))}var l=hn(i.state.preSelection);s==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===gb?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):s==="Escape"&&(o.preventDefault(),i.setOpen(!1)),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."})}}else s!=="ArrowDown"&&s!=="ArrowUp"&&s!=="Enter"||i.onInputClick()}),ie(ae(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var s=o.key,a=hn(i.state.preSelection);if(s==="Enter")o.preventDefault(),i.handleSelect(a,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(a);else if(s==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."});else if(!i.props.disabledKeyboardNavigation){var l;switch(s){case"ArrowLeft":l=dE(a,1);break;case"ArrowRight":l=ll(a,1);break;case"ArrowUp":l=lle(a,1);break;case"ArrowDown":l=eE(a,1);break;case"PageUp":l=fd(a,1);break;case"PageDown":l=no(a,1);break;case"Home":l=dd(a,1);break;case"End":l=Nc(a,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:"Date input not valid."}));if(o.preventDefault(),i.setState({lastPreSelectChange:gb}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=lr(a),f=lr(l),h=mt(a),p=mt(l);c!==f||h!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),ie(ae(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),ie(ae(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),ie(ae(i),"clear",function(){i.onClearClick()}),ie(ae(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),ie(ae(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?z.createElement(dce,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),ie(ae(i),"renderDateInput",function(){var o,s=ge(i.props.className,ie({},"react-datepicker-ignore-onclickoutside",i.state.open)),a=i.props.customInput||z.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(f,h,p){if(!f)return"";var m=mb(f,p),g=h?mb(h,p):"";return"".concat(m," - ").concat(g)}(i.props.startDate,i.props.endDate,i.props):mb(i.props.selected,i.props);return z.cloneElement(a,(ie(o={},l,function(f){i.input=f}),ie(o,"value",c),ie(o,"onBlur",i.handleBlur),ie(o,"onChange",i.handleChange),ie(o,"onClick",i.onInputClick),ie(o,"onFocus",i.handleFocus),ie(o,"onKeyDown",i.onInputKeyDown),ie(o,"id",i.props.id),ie(o,"name",i.props.name),ie(o,"autoFocus",i.props.autoFocus),ie(o,"placeholder",i.props.placeholderText),ie(o,"disabled",i.props.disabled),ie(o,"autoComplete",i.props.autoComplete),ie(o,"className",ge(a.props.className,s)),ie(o,"title",i.props.title),ie(o,"readOnly",i.props.readOnly),ie(o,"required",i.props.required),ie(o,"tabIndex",i.props.tabIndex),ie(o,"aria-describedby",i.props.ariaDescribedBy),ie(o,"aria-invalid",i.props.ariaInvalid),ie(o,"aria-labelledby",i.props.ariaLabelledBy),ie(o,"aria-required",i.props.ariaRequired),o))}),ie(ae(i),"renderClearButton",function(){var o=i.props,s=o.isClearable,a=o.selected,l=o.startDate,c=o.endDate,f=o.clearButtonTitle,h=o.clearButtonClassName,p=h===void 0?"":h,m=o.ariaLabelClose,g=m===void 0?"Close":m;return!s||a==null&&l==null&&c==null?null:z.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":g,onClick:i.onClearClick,title:f,tabIndex:-1})}),i.state=i.calcInitialState(),i}return Mn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,s;r.inline&&(o=r.selected,s=this.props.selected,o&&s?lr(o)!==lr(s)||mt(o)!==mt(s):o!==s)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:rR(this.props.highlightDates)}),i.focused||fs(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return z.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?z.createElement("div",{className:"react-datepicker__portal"},r):null;return this.state.open&&this.props.portalId&&(i=z.createElement(S5,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),z.createElement("div",null,this.renderInputContainer(),i)}return z.createElement(fce,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,renderDayContents:function(r){return r},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),pce="input",gb="navigate",mce={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 248H128V192H48V248zM48 296V360H128V296H48zM176 296V360H272V296H176zM320 296V360H400V296H320zM400 192H320V248H400V192zM400 408H320V464H384C392.8 464 400 456.8 400 448V408zM272 408H176V464H272V408zM128 408H48V448C48 456.8 55.16 464 64 464H128V408zM272 192H176V248H272V192z"]},gce=mce,vce={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M280.2 150.2C273.1 143.8 262.1 142.2 254.3 146.1S239.1 158.5 239.1 167.1l.002 56L152 224C138.8 224 128 234.8 128 248v16C128 277.3 138.8 288 152 288L240 287.1v56c0 9.531 5.656 18.16 14.38 22c8.75 3.812 18.91 2.094 25.91-4.375l96-88.75C381.2 268.3 384 261.9 384 255.2c-.3125-7.781-2.875-13.25-7.844-17.75L280.2 150.2zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"]},yce=vce,_ce={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},C5={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]};const G2=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||Fo(r),s=H.useRef();return U("div",{className:"date-input-container",children:[C(hce,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??gf,className:ge("date-input-container__input form-control",t),ref:s}),o&&C($e,{icon:gce,className:"date-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},bce=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>U("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(G2,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),C("div",{className:"col-md-6",children:C(G2,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Ja(o))})})]}),E5=({active:e,allText:t,onChange:n})=>U(We,{children:[C(Ve,{active:e==="all",onClick:()=>n("all"),children:t}),C(Ve,{divider:!0}),cle.map(r=>C(Ve,{active:e===r,onClick:()=>n(r),children:mE(r)},r))]}),T5=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=Nv(t),[s,a]=H.useState(o?t:void 0),[l,c]=H.useState(o?void 0:t),f=p=>{a(a5(p)?qd:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(c5(p))};return i&&tee(()=>{const p=Nv(t);p&&h(t),t&&!p&&f(t)},[t]),U(Xs,{disabled:r,text:mE(s??l)??n,children:[C(E5,{allText:n,active:s,onChange:h}),C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Custom:"}),C(Ve,{text:!0,children:C(bce,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})};function Gd({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=By(a,t.field,t.dir);n(l?a:void 0,l)};return U(jd,{children:[U(Xc,{caret:!0,color:r?"primary":"link",className:ge({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&C(We,{children:"Order by"}),r&&!t.field&&C("i",{children:"Order by..."}),r&&t.field&&U(We,{children:[o&&"Order by: ",e[t.field]," - ",C("small",{children:t.dir??"DESC"})]})]}),U(al,{end:i,className:ge("w-100",{"ordering-dropdown__menu--link":!r}),children:[Eg(e).map(([a,l])=>U(Ve,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&C($e,{icon:t.dir==="ASC"?QY:FY,className:"ordering-dropdown__sort-icon"})]},a)),C(Ve,{divider:!0}),C(Ve,{disabled:!t.field,onClick:()=>n(),children:C("i",{children:"Clear selection"})})]})]})}const f_=()=>{const e=Io(),{search:t}=Wn(),{serverId:n=""}=Ws(),r=H.useMemo(Ft(()=>Gc(t),({orderBy:o,tags:s,excludeBots:a,...l})=>{const c=o?fH(o):void 0,f=(s==null?void 0:s.split(","))??[];return{...l,orderBy:c,tags:f,excludeBots:a!==void 0?a==="true":void 0}}),[t]);return[r,o=>{const{orderBy:s,tags:a,excludeBots:l,...c}={...r,...o},f={...c,orderBy:s&&vA(s),tags:a.length>0?a.join(","):void 0,excludeBots:l===void 0?void 0:yee(l)},h=Md(f),p=Hn(h)?"":`?${h}`;e(`/server/${n}/list-short-urls/1${p}`)}]},O5={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},wce=({onChange:e,selected:t={},className:n})=>{const{excludeBots:r=!1}=t;return U(Xs,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Bots:"}),C(Ve,{active:r,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude bots visits"}),C(Ve,{divider:!0}),C(Ve,{disabled:!vi(t),onClick:()=>e({excludeBots:!1}),children:C("i",{children:"Clear filters"})})]})};const xce=(e,t)=>({selectedServer:n,className:r,shortUrlsAmount:i,order:o,handleOrderBy:s,settings:a})=>{var E;const[{search:l,tags:c,startDate:f,endDate:h,excludeBots:p,tagsMode:m="any"},g]=f_(),_=Ft(({startDate:P,endDate:k})=>({startDate:$s(P)??void 0,endDate:$s(k)??void 0}),g),x=Ft(P=>Hn(P)?void 0:P,P=>g({search:P})),v=P=>g({tags:P}),b=xee(n),w=Ft(()=>m==="any"?"all":"any",P=>g({tagsMode:P}));return U("div",{className:ge("short-urls-filtering-bar-container",r),children:[C(Wd,{initialValue:l,onChange:x}),U($d,{className:"mt-3",children:[C(t,{allowNew:!1,placeholder:"With tags...",selectedTags:c,onChange:v}),b&&c.length>1&&U(We,{children:[C(gt,{outline:!0,color:"secondary",onClick:w,id:"tagsModeBtn","aria-label":"Change tags mode",children:C($e,{className:"short-urls-filtering-bar__tags-icon",icon:m==="all"?IA:UY})}),C($r,{target:"tagsModeBtn",placement:"left",children:m==="all"?"With all the tags.":"With any of the tags."})]})]}),U(cr,{className:"flex-lg-row-reverse",children:[C("div",{className:"col-lg-8 col-xl-6 mt-3",children:U("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(T5,{defaultText:"All short URLs",initialDateRange:l5(f,h),onDatesChange:_})}),C(wce,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:p??((E=a.visits)==null?void 0:E.excludeBots)},onChange:g})]})}),C("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:C(e,{amount:i})}),C("div",{className:"col-6 d-lg-none mt-3",children:C(Gd,{prefixed:!1,items:O5,order:o,onChange:s})})]})]})};var Dv={},Sce={get exports(){return Dv},set exports(e){Dv=e}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,g=n.TextEncoder,_=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(fe){c.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(fe){function ye(){}return ye.prototype=fe,new ye}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var x=h;h=function(fe,ye){var be=ye.signal;return x(fe,{headers:ye.headers,credentials:ye.credentials,cache:ye.cache}).then(function(Te){var De=Te.body.getReader();return be._reader=De,be._aborted&&be._reader.cancel(),{status:Te.status,statusText:Te.statusText,headers:Te.headers,body:{getReader:function(){return De}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function v(){this.bitsNeeded=0,this.codePoint=0}v.prototype.decode=function(fe){function ye(we,_e,Ce){if(Ce===1)return we>=128>>_e&&we<<_e<=2047;if(Ce===2)return we>=2048>>_e&&we<<_e<=55295||we>=57344>>_e&&we<<_e<=65535;if(Ce===3)return we>=65536>>_e&&we<<_e<=1114111;throw new Error}function be(we,_e){if(we===6*1)return _e>>6>15?3:_e>31?2:1;if(we===6*2)return _e>15?3:2;if(we===6*3)return 3;throw new Error}for(var Te=65533,De="",Re=this.bitsNeeded,Ne=this.codePoint,ue=0;ue<fe.length;ue+=1){var he=fe[ue];Re!==0&&(he<128||he>191||!ye(Ne<<6|he&63,Re-6,be(Re,Ne)))&&(Re=0,Ne=Te,De+=String.fromCharCode(Ne)),Re===0?(he>=0&&he<=127?(Re=0,Ne=he):he>=192&&he<=223?(Re=6*1,Ne=he&31):he>=224&&he<=239?(Re=6*2,Ne=he&15):he>=240&&he<=247?(Re=6*3,Ne=he&7):(Re=0,Ne=Te),Re!==0&&!ye(Ne,Re,be(Re,Ne))&&(Re=0,Ne=Te)):(Re-=6,Ne=Ne<<6|he&63),Re===0&&(Ne<=65535?De+=String.fromCharCode(Ne):(De+=String.fromCharCode(55296+(Ne-65535-1>>10)),De+=String.fromCharCode(56320+(Ne-65535-1&1023))))}return this.bitsNeeded=Re,this.codePoint=Ne,De};var b=function(){try{return new m().decode(new g().encode("test"),{stream:!0})==="test"}catch(fe){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+fe)}return!1};(m==null||g==null||!b())&&(m=v);var w=function(){};function E(fe){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=fe,this._sendTimeout=0,this._abort=w}E.prototype.open=function(fe,ye){this._abort(!0);var be=this,Te=this._xhr,De=1,Re=0;this._abort=function(Ce){be._sendTimeout!==0&&(i(be._sendTimeout),be._sendTimeout=0),(De===1||De===2||De===3)&&(De=4,Te.onload=w,Te.onerror=w,Te.onabort=w,Te.onprogress=w,Te.onreadystatechange=w,Te.abort(),Re!==0&&(i(Re),Re=0),Ce||(be.readyState=4,be.onabort(null),be.onreadystatechange())),De=0};var Ne=function(){if(De===1){var Ce=0,ke="",Ie=void 0;if("contentType"in Te)Ce=200,ke="OK",Ie=Te.contentType;else try{Ce=Te.status,ke=Te.statusText,Ie=Te.getResponseHeader("Content-Type")}catch{Ce=0,ke="",Ie=void 0}Ce!==0&&(De=2,be.readyState=2,be.status=Ce,be.statusText=ke,be._contentType=Ie,be.onreadystatechange())}},ue=function(){if(Ne(),De===2||De===3){De=3;var Ce="";try{Ce=Te.responseText}catch{}be.readyState=3,be.responseText=Ce,be.onprogress()}},he=function(Ce,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:w}),ue(),De===1||De===2||De===3){if(De=4,Re!==0&&(i(Re),Re=0),be.readyState=4,Ce==="load")be.onload(ke);else if(Ce==="error")be.onerror(ke);else if(Ce==="abort")be.onabort(ke);else throw new TypeError;be.onreadystatechange()}},we=function(Ce){Te!=null&&(Te.readyState===4?(!("onload"in Te)||!("onerror"in Te)||!("onabort"in Te))&&he(Te.responseText===""?"error":"load",Ce):Te.readyState===3?"onprogress"in Te||ue():Te.readyState===2&&Ne())},_e=function(){Re=r(function(){_e()},500),Te.readyState===3&&ue()};"onload"in Te&&(Te.onload=function(Ce){he("load",Ce)}),"onerror"in Te&&(Te.onerror=function(Ce){he("error",Ce)}),"onabort"in Te&&(Te.onabort=function(Ce){he("abort",Ce)}),"onprogress"in Te&&(Te.onprogress=ue),"onreadystatechange"in Te&&(Te.onreadystatechange=function(Ce){we(Ce)}),("contentType"in Te||!("ontimeout"in o.prototype))&&(ye+=(ye.indexOf("?")===-1?"?":"&")+"padding=true"),Te.open(fe,ye,!0),"readyState"in Te&&(Re=r(function(){_e()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(fe){return this._contentType},E.prototype.setRequestHeader=function(fe,ye){var be=this._xhr;"setRequestHeader"in be&&be.setRequestHeader(fe,ye)},E.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},E.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var fe=this;fe._sendTimeout=r(function(){fe._sendTimeout=0,fe.send()},4);return}var ye=this._xhr;"withCredentials"in ye&&(ye.withCredentials=this.withCredentials);try{ye.send(void 0)}catch(be){throw be}};function P(fe){return fe.replace(/[A-Z]/g,function(ye){return String.fromCharCode(ye.charCodeAt(0)+32)})}function k(fe){for(var ye=Object.create(null),be=fe.split(`\r
|
||
`),Te=0;Te<be.length;Te+=1){var De=be[Te],Re=De.split(": "),Ne=Re.shift(),ue=Re.join(": ");ye[P(Ne)]=ue}this._map=ye}k.prototype.get=function(fe){return this._map[P(fe)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(fe,ye,be,Te,De,Re,Ne){fe.open("GET",De);var ue=0;fe.onprogress=function(){var we=fe.responseText,_e=we.slice(ue);ue+=_e.length,be(_e)},fe.onerror=function(we){we.preventDefault(),Te(new Error("NetworkError"))},fe.onload=function(){Te(null)},fe.onabort=function(){Te(null)},fe.onreadystatechange=function(){if(fe.readyState===o.HEADERS_RECEIVED){var we=fe.status,_e=fe.statusText,Ce=fe.getResponseHeader("Content-Type"),ke=fe.getAllResponseHeaders();ye(we,_e,Ce,new k(ke))}},fe.withCredentials=Re;for(var he in Ne)Object.prototype.hasOwnProperty.call(Ne,he)&&fe.setRequestHeader(he,Ne[he]);return fe.send(),fe};function A(fe){this._headers=fe}A.prototype.get=function(fe){return this._headers.get(fe)};function V(){}V.prototype.open=function(fe,ye,be,Te,De,Re,Ne){var ue=null,he=new _,we=he.signal,_e=new m;return h(De,{headers:Ne,credentials:Re?"include":"same-origin",signal:we,cache:"no-store"}).then(function(Ce){return ue=Ce.body.getReader(),ye(Ce.status,Ce.statusText,Ce.headers.get("Content-Type"),new A(Ce.headers)),new f(function(ke,Ie){var nt=function(){ue.read().then(function(it){if(it.done)ke(void 0);else{var Ke=_e.decode(it.value,{stream:!0});be(Ke),nt()}}).catch(function(it){Ie(it)})};nt()})}).catch(function(Ce){if(Ce.name!=="AbortError")return Ce}).then(function(Ce){Te(Ce)}),{abort:function(){ue!=null&&ue.cancel(),he.abort()}}};function I(){this._listeners=Object.create(null)}function Y(fe){r(function(){throw fe},0)}I.prototype.dispatchEvent=function(fe){fe.target=this;var ye=this._listeners[fe.type];if(ye!=null)for(var be=ye.length,Te=0;Te<be;Te+=1){var De=ye[Te];try{typeof De.handleEvent=="function"?De.handleEvent(fe):De.call(this,fe)}catch(Re){Y(Re)}}},I.prototype.addEventListener=function(fe,ye){fe=String(fe);var be=this._listeners,Te=be[fe];Te==null&&(Te=[],be[fe]=Te);for(var De=!1,Re=0;Re<Te.length;Re+=1)Te[Re]===ye&&(De=!0);De||Te.push(ye)},I.prototype.removeEventListener=function(fe,ye){fe=String(fe);var be=this._listeners,Te=be[fe];if(Te!=null){for(var De=[],Re=0;Re<Te.length;Re+=1)Te[Re]!==ye&&De.push(Te[Re]);De.length===0?delete be[fe]:be[fe]=De}};function q(fe){this.type=fe,this.target=void 0}function X(fe,ye){q.call(this,fe),this.data=ye.data,this.lastEventId=ye.lastEventId}X.prototype=Object.create(q.prototype);function Z(fe,ye){q.call(this,fe),this.status=ye.status,this.statusText=ye.statusText,this.headers=ye.headers}Z.prototype=Object.create(q.prototype);function J(fe,ye){q.call(this,fe),this.error=ye.error}J.prototype=Object.create(q.prototype);var oe=-1,ce=0,K=1,$=2,D=-1,B=0,ne=1,W=2,G=3,re=/^text\/event\-stream(;.*)?$/i,le=1e3,me=18e6,O=function(fe,ye){var be=fe==null?ye:parseInt(fe,10);return be!==be&&(be=ye),R(be)},R=function(fe){return Math.min(Math.max(fe,le),me)},F=function(fe,ye,be){try{typeof ye=="function"&&ye.call(fe,be)}catch(Te){Y(Te)}};function ee(fe,ye){I.call(this),ye=ye||{},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,ve(this,fe,ye)}function Q(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var se=h!=null&&p!=null&&"body"in p.prototype;function ve(fe,ye,be){ye=String(ye);var Te=Boolean(be.withCredentials),De=be.lastEventIdQueryParameterName||"lastEventId",Re=R(1e3),Ne=O(be.heartbeatTimeout,45e3),ue="",he=Re,we=!1,_e=0,Ce=be.headers||{},ke=be.Transport,Ie=se&&ke==null?void 0:new E(ke!=null?new ke:Q()),nt=ke!=null&&typeof ke!="string"?new ke:Ie==null?new V:new N,it=void 0,Ke=0,Gt=oe,Ut="",xn="",ir="",Ni="",Ln=B,nu=0,Li=0,fh=function(cn,en,or,Dn){if(Gt===ce)if(cn===200&&or!=null&&re.test(or)){Gt=K,we=Date.now(),he=Re,fe.readyState=K;var An=new Z("open",{status:cn,statusText:en,headers:Dn});fe.dispatchEvent(An),F(fe,fe.onopen,An)}else{var pn="";cn!==200?(en&&(en=en.replace(/\s+/g," ")),pn="EventSource's response has a status "+cn+" "+en+" that is not 200. Aborting the connection."):pn="EventSource's response has a Content-Type specifying an unsupported type: "+(or==null?"-":or.replace(/\s+/g," "))+". Aborting the connection.",ru();var An=new Z("error",{status:cn,statusText:en,headers:Dn});fe.dispatchEvent(An),F(fe,fe.onerror,An),console.error(pn)}},dh=function(cn){if(Gt===K){for(var en=-1,or=0;or<cn.length;or+=1){var Dn=cn.charCodeAt(or);(Dn===`
|
||
`.charCodeAt(0)||Dn==="\r".charCodeAt(0))&&(en=or)}var An=(en!==-1?Ni:"")+cn.slice(0,en+1);Ni=(en===-1?Ni:"")+cn.slice(en+1),cn!==""&&(we=Date.now(),_e+=cn.length);for(var pn=0;pn<An.length;pn+=1){var Dn=An.charCodeAt(pn);if(Ln===D&&Dn===`
|
||
`.charCodeAt(0))Ln=B;else if(Ln===D&&(Ln=B),Dn==="\r".charCodeAt(0)||Dn===`
|
||
`.charCodeAt(0)){if(Ln!==B){Ln===ne&&(Li=pn+1);var li=An.slice(nu,Li-1),ci=An.slice(Li+(Li<pn&&An.charCodeAt(Li)===" ".charCodeAt(0)?1:0),pn);li==="data"?(Ut+=`
|
||
`,Ut+=ci):li==="id"?xn=ci:li==="event"?ir=ci:li==="retry"?(Re=O(ci,Re),he=Re):li==="heartbeatTimeout"&&(Ne=O(ci,Ne),Ke!==0&&(i(Ke),Ke=r(function(){na()},Ne)))}if(Ln===B){if(Ut!==""){ue=xn,ir===""&&(ir="message");var In=new X(ir,{data:Ut.slice(1),lastEventId:xn});if(fe.dispatchEvent(In),ir==="open"?F(fe,fe.onopen,In):ir==="message"?F(fe,fe.onmessage,In):ir==="error"&&F(fe,fe.onerror,In),Gt===$)return}Ut="",ir=""}Ln=Dn==="\r".charCodeAt(0)?D:B}else Ln===B&&(nu=pn,Ln=ne),Ln===ne?Dn===":".charCodeAt(0)&&(Li=pn+1,Ln=W):Ln===W&&(Ln=G)}}},hh=function(cn){if(Gt===K||Gt===ce){Gt=oe,Ke!==0&&(i(Ke),Ke=0),Ke=r(function(){na()},he),he=R(Math.min(Re*16,he*2)),fe.readyState=ce;var en=new J("error",{error:cn});fe.dispatchEvent(en),F(fe,fe.onerror,en),cn!=null&&console.error(cn)}},ru=function(){Gt=$,it!=null&&(it.abort(),it=void 0),Ke!==0&&(i(Ke),Ke=0),fe.readyState=$},na=function(){if(Ke=0,Gt!==oe){if(!we&&it!=null)hh(new Error("No activity within "+Ne+" milliseconds. "+(Gt===ce?"No response received.":_e+" chars received.")+" Reconnecting.")),it!=null&&(it.abort(),it=void 0);else{var cn=Math.max((we||Date.now())+Ne-Date.now(),1);we=!1,Ke=r(function(){na()},cn)}return}we=!1,_e=0,Ke=r(function(){na()},Ne),Gt=ce,Ut="",ir="",xn=ue,Ni="",nu=0,Li=0,Ln=B;var en=ye;if(ye.slice(0,5)!=="data:"&&ye.slice(0,5)!=="blob:"&&ue!==""){var or=ye.indexOf("?");en=or===-1?ye:ye.slice(0,or+1)+ye.slice(or+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ci,In){return In===De?"":ci}),en+=(ye.indexOf("?")===-1?"?":"&")+De+"="+encodeURIComponent(ue)}var Dn=fe.withCredentials,An={};An.Accept="text/event-stream";var pn=fe.headers;if(pn!=null)for(var li in pn)Object.prototype.hasOwnProperty.call(pn,li)&&(An[li]=pn[li]);try{it=nt.open(Ie,fh,dh,hh,en,Dn,An)}catch(ci){throw ru(),ci}};fe.url=ye,fe.readyState=ce,fe.withCredentials=Te,fe.headers=Ce,fe._close=ru,na()}ee.prototype=Object.create(I.prototype),ee.prototype.CONNECTING=ce,ee.prototype.OPEN=K,ee.prototype.CLOSED=$,ee.prototype.close=function(){this._close()},ee.CONNECTING=ce,ee.OPEN=K,ee.CLOSED=$,ee.prototype.withCredentials=void 0;var Le=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Le=ee),function(fe){{var ye=fe(t);ye!==void 0&&(e.exports=ye)}}(function(fe){fe.EventSourcePolyfill=ee,fe.NativeEventSource=l,fe.EventSource=Le})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Il:globalThis)})(Sce,Dv);const Cce=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:a}=e;if(s||a||!i)return;const l=({data:h})=>n(JSON.parse(h)),c=({status:h})=>h===401&&r(),f=t.map(h=>{const p=new URL(i);p.searchParams.append("topic",h);const m=new Dv.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>f.forEach(h=>h.close())};function Qs(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=Ws();return H.useEffect(()=>{const c=m=>a?n.add(m):i([m]),f=t(r,l),h=Cce(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return Ft(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),C(e,{...r})}}class Jr{}Qe(Jr,"visits","https://shlink.io/new-visit"),Qe(Jr,"orphanVisits","https://shlink.io/new-orphan-visit"),Qe(Jr,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);function yf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:C($e,{icon:e.dir==="ASC"?DY:YY,className:n})}const yE={field:"dateCreated",dir:"DESC"},Ece={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:yE}},Tce=(e,{payload:t})=>dA(e,t),da=e=>({reducer:Tce,prepare:e}),ha=e=>({payload:e}),{reducer:Oce,actions:Pce}=Yn({name:"shlink/settings",initialState:Ece,reducers:{toggleRealTimeUpdates:da(e=>ha({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:da(e=>ha({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:da(e=>ha({shortUrlCreation:e})),setShortUrlsListSettings:da(e=>ha({shortUrlsList:e})),setUiSettings:da(e=>ha({ui:e})),setVisitsSettings:da(e=>ha({visits:e})),setTagsSettings:da(e=>ha({tags:e}))}}),{toggleRealTimeUpdates:kce,setRealTimeUpdatesInterval:Mce,setShortUrlCreationSettings:Rce,setShortUrlsListSettings:Nce,setUiSettings:Lce,setVisitsSettings:Dce,setTagsSettings:Ace}=Pce,Ice=Oce,oR=10,{ceil:Fce}=Math,$ce=new Intl.NumberFormat("en-US"),yn=e=>$ce.format(Number(e)),jce=e=>Fce(e/oR)*oR,Ml=2,Z2="...",P5=(e,t)=>{const n=AS(tA(Ml,e-Ml),hA(t-1,e+Ml)+1);return e-Ml>Ml&&n.unshift(Z2),e+Ml<t-1&&n.push(Z2),n.unshift(1),n.push(t),n},hd=e=>e===Z2,k5=e=>hd(e)?e:yn(e),M5=(e,t)=>hd(e)?`${e}_${t}`:`${e}`,Bce=({paginator:e,serverId:t,currentQueryString:n=""})=>{const{currentPage:r=0,pagesCount:i=0}=e??{},o=a=>`/server/${t}/list-short-urls/${a}${n}`;if(i<=1)return C("div",{className:"pb-3"});const s=()=>P5(r,i).map((a,l)=>C(Cs,{disabled:hd(a),active:r===a,children:C(Es,{tag:It,to:o(a),children:k5(a)})},M5(a,l)));return U(r_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[C(Cs,{disabled:r===1,children:C(Es,{previous:!0,tag:It,to:o(r-1)})}),s(),C(Cs,{disabled:r>=i,children:C(Es,{next:!0,tag:It,to:o(r+1)})})]})},zce=(e,t)=>Qs(({listShortUrls:n,shortUrlsList:r,selectedServer:i,settings:o})=>{var I,Y,q;const s=kd(i),{page:a}=Ws(),l=Wn(),[{tags:c,search:f,startDate:h,endDate:p,orderBy:m,tagsMode:g,excludeBots:_},x]=f_(),[v,b]=H.useState(m??((I=o.shortUrlsList)==null?void 0:I.defaultOrdering)??yE),{pagination:w}=(r==null?void 0:r.shortUrls)??{},E=_??((Y=o.visits)==null?void 0:Y.excludeBots),P=(X,Z)=>{x({orderBy:{field:X,dir:Z}}),b({field:X,dir:Z})},k=X=>()=>P(X,By(X,v.field,v.dir)),N=X=>C(yf,{currentOrder:v,field:X}),A=Ft(X=>[...new Set([...c,X])],X=>x({tags:X})),V=({field:X,dir:Z})=>See(i)&&E&&X==="visits"?{field:"nonBotVisits",dir:Z}:{field:X,dir:Z};return H.useEffect(()=>{n({page:a,searchTerm:f,tags:c,startDate:h,endDate:p,orderBy:V(v),tagsMode:g})},[a,f,c,h,p,v.field,v.dir,g]),U(We,{children:[C(t,{selectedServer:i,shortUrlsAmount:(q=r.shortUrls)==null?void 0:q.pagination.totalItems,order:v,handleOrderBy:P,settings:o,className:"mb-3"}),U(xr,{body:!0,className:"pb-0",children:[C(e,{selectedServer:i,shortUrlsList:r,orderByColumn:k,renderOrderIcon:N,onTagClick:A}),C(Bce,{paginator:w,serverId:s,currentQueryString:l.search})]})]})},()=>[Jr.visits]);var d_={},Uce=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Vce=Uce,sR={"text/plain":"Text","text/html":"Url",default:"Text"},Hce="Copy to clipboard: #{key}, Enter";function Wce(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Yce(e,t){var n,r,i,o,s,a,l=!1;t||(t={}),n=t.debug||!1;try{i=Vce(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(f){if(f.stopPropagation(),t.format)if(f.preventDefault(),typeof f.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=sR[t.format]||sR.default;window.clipboardData.setData(h,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=Wce("message"in t?t.message:Hce),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var qce=Yce;function K2(e){return K2=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},K2(e)}Object.defineProperty(d_,"__esModule",{value:!0});d_.CopyToClipboard=void 0;var pp=R5(H),Gce=R5(qce),Zce=["text","onCopy","options","children"];function R5(e){return e&&e.__esModule?e:{default:e}}function aR(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 lR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aR(Object(n),!0).forEach(function(r){_E(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kce(e,t){if(e==null)return{};var n=Xce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xce(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Qce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cR(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 Jce(e,t,n){return t&&cR(e.prototype,t),n&&cR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eue(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&&X2(e,t)}function X2(e,t){return X2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},X2(e,t)}function tue(e){var t=rue();return function(){var r=Av(e),i;if(t){var o=Av(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nue(this,i)}}function nue(e,t){if(t&&(K2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N5(e)}function N5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rue(){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 Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function _E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L5=function(e){eue(n,e);var t=tue(n);function n(){var r;Qce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),_E(N5(r),"onClick",function(a){var l=r.props,c=l.text,f=l.onCopy,h=l.children,p=l.options,m=pp.default.Children.only(h),g=(0,Gce.default)(c,p);f&&f(c,g),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(a)}),r}return Jce(n,[{key:"render",value:function(){var i=this.props;i.text,i.onCopy,i.options;var o=i.children,s=Kce(i,Zce),a=pp.default.Children.only(o);return pp.default.cloneElement(a,lR(lR({},s),{},{onClick:this.onClick}))}}]),n}(pp.default.PureComponent);d_.CopyToClipboard=L5;_E(L5,"defaultProps",{onCopy:void 0,options:void 0});var iue=d_,Q2=iue.CopyToClipboard;Q2.CopyToClipboard=Q2;var D5=Q2;const A5=({text:e,onCopy:t})=>C(D5,{text:e,onCopy:t,children:C($e,{icon:C5,className:"ms-2 copy-to-clipboard-icon"})}),Iv=({date:e,format:t=hE,relative:n=!1})=>{const r=pE(e)?e:Lo(e);return C("time",{dateTime:`${bre(r)}000`,children:n?`${hre(Fs(),r)} ago`:vo(r,t)})},nr=(e,t)=>fte(e,t,{serializeError:Fy}),Zd=bn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),uR=5e3,fR=4,dR=2,oue=({currentPage:e,pagesCount:t})=>e>=t,sue=(e,t)=>t*100/e,Kd=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=bn(`${e}/progressChanged`),o=bn(`${e}/large`),s=bn(`${e}/fallbackToInterval`);return{asyncThunk:nr(e,async(l,{getState:c,dispatch:f})=>{const[h,p]=t(l,c),m=async b=>Promise.all(b.map(async w=>h(w,uR).then(rt("data")))).then(MV),g=async(b,w=0)=>{if(r(c))return[];const E=await m(b[w]);return f(i(sue(b.length,w+dR))),w<b.length-1?E.concat(await g(b,w+1)):E},_=async(b=1)=>{const{pagination:w,data:E}=await h(b,uR);if(!w||oue(w))return E;const P=AS(dR,w.pagesCount+1),k=qf(fR,P);return w.pagesCount-1>fR&&f(o()),E.concat(await g(k))},[x,v]=await Promise.all([_(),p()]);return!x.length&&v&&f(s(fle(v.date))),{...n(l),visits:x}}),progressChangedAction:i,largeAction:o,fallbackToIntervalAction:s}},Xd=(e,t)=>e?async()=>t({page:1,itemsPerPage:1}).then(({data:n})=>n[0]):async()=>Promise.resolve(void 0),Qd=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{asyncThunk:i,largeAction:o,fallbackToIntervalAction:s,progressChangedAction:a}=t,{reducer:l,actions:c}=Yn({name:e,initialState:n,reducers:{cancelGetVisits:h=>({...h,cancelLoad:!0})},extraReducers:h=>{h.addCase(i.pending,()=>({...n,loading:!0})),h.addCase(i.rejected,(p,{error:m})=>({...n,error:!0,errorData:ro(m)})),h.addCase(i.fulfilled,(p,{payload:m})=>({...p,...m,loading:!1,loadingLarge:!1,error:!1})),h.addCase(o,p=>({...p,loadingLarge:!0})),h.addCase(a,(p,{payload:m})=>({...p,progress:m})),h.addCase(s,(p,{payload:m})=>({...p,fallbackInterval:m})),h.addCase(Zd,(p,{payload:m})=>{const{visits:g}=p,_=r(p,m.createdVisits).map(({visit:x})=>x);return _.length?{...p,visits:[..._,...g]}:p})}}),{cancelGetVisits:f}=c;return{reducer:l,cancelGetVisits:f}},I5="shlink/domainVisits",F5="DEFAULT",aue={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},lue=e=>Kd({typePrefix:`${I5}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getDomainVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=Xd(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),cue=e=>Qd({name:I5,initialState:aue,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&uue(s,t)&&Yd(a.date,i,o))}}),_f=(e,t,n)=>Fo(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,uue=(e,t)=>!e.domain&&t===F5?!0:e.domain===t,fue=(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,validateUrl:n}:{longUrl:"",validateUrl:n}},$5="__",due=e=>e.replaceAll("/",$5),Um=e=>e.replaceAll($5,"/"),hue=({id:e},{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`/server/${e}/short-code/${due(t)}/${r}${i}`},J2=({selectedServer:e,shortUrl:t,suffix:n,children:r,...i})=>!e||!Ss(e)||!t?C("span",{...i,children:r}):C(It,{to:hue(e,t,n),...i,children:r}),Jd=e=>t=>{e.current=t??void 0};const j5=({visitsCount:e,shortUrl:t,selectedServer:n,active:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=C(J2,{selectedServer:n,shortUrl:t,suffix:"visits",children:C("strong",{className:ge("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:yn(e)})});if(!a)return l;const c=H.useRef();return U(We,{children:[U("span",{className:"indivisible",children:[l,U("small",{className:"short-urls-visits-count__max-visits-control",ref:Jd(c),children:[i&&U(We,{children:[" / ",yn(i)]}),C("sup",{className:"ms-1",children:C($e,{icon:GS})})]})]}),C($r,{target:()=>c.current,placement:"bottom",children:U("ul",{className:"list-unstyled mb-0",children:[i&&U("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",C("b",{children:yn(i)})," visit",i===1?"":"s","."]}),o&&U("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",C("b",{className:"indivisible",children:Rv(bi(o))}),"."]}),s&&U("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",C("b",{className:"indivisible",children:Rv(bi(s))}),"."]})]})})]})};const bE=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>U("span",{className:ge("badge tag",r,{"tag--light-bg":i.isColorLightForKey(e)}),style:{backgroundColor:i.getColorForKey(e),cursor:n||!o?"auto":"pointer"},onClick:o,children:[t??e,n&&C("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),pue=({tags:e,onTagClick:t,colorGenerator:n})=>Hn(e)?C("i",{className:"indivisible",children:C("small",{children:"No tags"})}):C(We,{children:e.map(r=>C(bE,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),mue=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,a=(r==null?void 0:r.total)??n;return i&&a>=i?{icon:hq,className:"text-danger",description:U(We,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",C("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Kr(bi(s),Fs())?{icon:KP,className:"text-danger",description:U(We,{children:["This short URL cannot be visited since ",C("b",{className:"indivisible",children:Rv(bi(s))}),"."]})}:o&&Kr(Fs(),bi(o))?{icon:KP,className:"text-warning",description:U(We,{children:["This short URL will start working on ",C("b",{className:"indivisible",children:Rv(bi(o))}),"."]})}:{icon:Zf,className:"text-primary",description:"This short URL can be visited normally."}},gue=({shortUrl:e})=>{const t=H.useRef(),{icon:n,className:r,description:i}=mue(e);return U(We,{children:[C("span",{style:{cursor:i?"help":void 0},ref:Jd(t),children:C($e,{icon:n,className:r})}),C($r,{target:()=>t.current,placement:"bottom",children:i})]})};const vue=(e,t,n)=>({shortUrl:r,selectedServer:i,onTagClick:o,settings:s})=>{var _,x,v,b;const[a,l]=n(),[c,f]=n(!1,500),h=H.useRef(!0),[{excludeBots:p}]=f_(),{visits:m}=s,g=p??(m==null?void 0:m.excludeBots);return H.useEffect(()=>{!h.current&&f(),h.current=!1},[(_=r.visitsSummary)==null?void 0:_.total,(x=r.visitsSummary)==null?void 0:x.nonBots,r.visitsCount]),U("tr",{className:"responsive-table__row",children:[C("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:C(Iv,{date:r.dateCreated})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:U("span",{className:"position-relative short-urls-row__cell--indivisible",children:[C("span",{className:"short-urls-row__short-url-wrapper",children:C(Ci,{href:r.shortUrl})}),C(A5,{text:r.shortUrl,onCopy:l}),C("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!a,children:"Copied short URL!"})]})}),C("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:C(Ci,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&C("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:C(Ci,{href:r.longUrl})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:C(pue,{tags:r.tags,colorGenerator:t,onTagClick:o})}),C("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:C(j5,{visitsCount:(g?(v=r.visitsSummary)==null?void 0:v.nonBots:(b=r.visitsSummary)==null?void 0:b.total)??r.visitsCount,shortUrl:r,selectedServer:i,active:c})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:C(gue,{shortUrl:r})}),C("td",{className:"responsive-table__cell short-urls-row__cell",children:C(e,{selectedServer:i,shortUrl:r})})]})};const h_=({isOpen:e,toggle:t,children:n,right:r=!0})=>U(Xy,{toggle:t,isOpen:e,children:[U(Xc,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:[" ",C($e,{icon:GY})," "]}),C(al,{end:r,children:n})]}),yue=(e,t)=>({shortUrl:n,selectedServer:r})=>{const[i,o]=Bt(),[s,,a,l]=Bt(),[c,,f,h]=Bt();return U(h_,{toggle:o,isOpen:i,children:[U(Ve,{tag:J2,selectedServer:r,shortUrl:n,suffix:"visits",children:[C($e,{icon:qS,fixedWidth:!0})," Visit stats"]}),U(Ve,{tag:J2,selectedServer:r,shortUrl:n,suffix:"edit",children:[C($e,{icon:YS,fixedWidth:!0})," Edit short URL"]}),U(Ve,{onClick:a,children:[C($e,{icon:fq,fixedWidth:!0})," QR code"]}),C(t,{shortUrl:n,isOpen:s,toggle:l}),C(Ve,{divider:!0}),U(Ve,{className:"dropdown-item--danger",onClick:f,children:[C($e,{icon:WS,fixedWidth:!0})," Delete short URL"]}),C(e,{shortUrl:n,isOpen:c,toggle:h})]})},_ue=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}),bue=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,selectedServer:o,basicMode:s=!1,settings:{shortUrlCreation:a}})=>{const l=H.useMemo(()=>_ue(a),[a]);return U(We,{children:[C(e,{initialState:l,saving:r.saving,selectedServer:o,mode:s?"create-basic":"create",onSave:async c=>(i(),n(c))}),C(t,{creation:r,resetCreateShortUrl:i,canBeClosed:s})]})},Rr=({children:e,type:t,className:n,small:r=!1})=>C(cr,{className:n,children:C("div",{className:ge({"col-md-10 offset-md-1":!r,"col-12":r}),children:C(gn,{role:"document",className:ge("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:ge({"p-2":r}),children:e})})}),Do=({errorData:e,fallbackMessage:t})=>U(We,{children:[(e==null?void 0:e.detail)??t,hH(e)&&U("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),vb="delete",wue=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=H.useState("");H.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,m=Ft(i,t),g=Bd(()=>o(e).then(t));return C(zo,{isOpen:n,toggle:m,centered:!0,onClosed:()=>h&&s(e),children:U("form",{onSubmit:g,children:[C(io,{toggle:m,children:C("span",{className:"text-danger",children:"Delete short URL"})}),U(ki,{children:[U("p",{children:[C("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),C("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),U("p",{children:["Write ",C("b",{children:vb})," to confirm deletion."]}),C("input",{type:"text",className:"form-control",placeholder:`Insert ${vb}`,value:a,onChange:_=>l(_.target.value)}),f&&C(Rr,{type:pH(p)?"warning":"error",small:!0,className:"mt-2",children:C(Do,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),U(Zs,{children:[C("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),C("button",{type:"submit",className:"btn btn-danger",disabled:a!==vb||c,children:c?"Deleting...":"Delete"})]})]})})};const xue=e=>({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(H.useEffect(()=>{n()},[]),s)return U(Rr,{type:"error",className:"mt-3",children:[r&&C($e,{icon:J1,className:"float-end pointer",onClick:n}),C(Do,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return U(Rr,{type:"success",className:"mt-3",children:[r&&C($e,{icon:J1,className:"float-end pointer",onClick:n}),U("span",{children:[C("b",{children:"Great!"})," The short URL is ",C("b",{children:l})]}),C(D5,{text:l,onCopy:o,children:U("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[C($e,{icon:C5})," Copy"]})}),C(Fd,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},wE="shlink/shortUrlDeletion",hR={shortCode:"",loading:!1,deleted:!1,error:!1},Sue=e=>nr(`${wE}/deleteShortUrl`,async({shortCode:t,domain:n},{getState:r})=>{const{deleteShortUrl:i}=e(r);return await i(t,n),{shortCode:t,domain:n}}),B5=bn(`${wE}/shortUrlDeleted`),Cue=e=>{const{actions:t,reducer:n}=Yn({name:wE,initialState:hR,reducers:{resetDeleteShortUrl:()=>hR},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:ro(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},z5="shlink/shortUrlsList",U5=5,Eue={loading:!0,error:!1},Tue=e=>nr(`${z5}/listShortUrls`,(t,{getState:n})=>{const{listShortUrls:r}=e(n);return r(t??{})}),Oue=(e,t,n)=>Yn({name:z5,initialState:Eue,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,Ft((i,{payload:o})=>i.shortUrls?wl(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,U5-1)],i):i,i=>i.shortUrls?wl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?wl(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return _f(s,a,l)?o:s}),i):i),r.addCase(B5,Ft((i,{payload:o})=>i.shortUrls?wl(["shortUrls","data"],Pd(s=>_f(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?wl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(Zd,(i,{payload:o})=>{var s,a;return wl(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=TV(o.createdVisits.filter(({shortUrl:f})=>f&&_f(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),V5="shlink/shortUrlCreation",pR={saving:!1,saved:!1,error:!1},Pue=e=>nr(`${V5}/createShortUrl`,(t,{getState:n})=>{const{createShortUrl:r}=e(n);return r(t)}),kue=e=>{const{reducer:t,actions:n}=Yn({name:V5,initialState:pR,reducers:{resetCreateShortUrl:()=>pR},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:ro(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},H5="shlink/shortUrlEdition",Mue={saving:!1,saved:!1,error:!1},Rue=e=>nr(`${H5}/editShortUrl`,({shortCode:t,domain:n,data:r},{getState:i})=>{const{updateShortUrl:o}=e(i);return o(t,n,r)}),Nue=e=>Yn({name:H5,initialState:Mue,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:ro(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),mR="shlink/shortUrlDetail",gR={loading:!1,error:!1},Lue=e=>{const t=nr(`${mR}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:s}=o();return((l=s==null?void 0:s.shortUrls)==null?void 0:l.data.find(c=>_f(c,r,i)))??await e(o).getShortUrl(r,i)}),{reducer:n}=Yn({name:mR,initialState:gR,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:ro(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...gR,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}};const Due=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,selectedServer:o,className:s})=>{const{error:a,loading:l,shortUrls:c}=r,f=ge({"short-urls-table__header-cell--with-action":!!t}),h=ge("short-urls-table__header-cell",f),p=ge("table table-hover responsive-table short-urls-table",s),m=()=>a?C("tr",{children:C("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&Hn(c==null?void 0:c.data)?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(g=>C(e,{shortUrl:g,selectedServer:o,onTagClick:i},g.shortUrl));return U("table",{className:p,children:[C("thead",{className:"responsive-table__header short-urls-table__header",children:U("tr",{children:[U("th",{className:h,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),U("th",{className:h,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),U("th",{className:"short-urls-table__header-cell",children:[U("span",{className:f,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]})," / ",U("span",{className:f,onClick:t==null?void 0:t("longUrl"),children:[C("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),C("th",{className:"short-urls-table__header-cell",children:"Tags"}),C("th",{className:h,onClick:t==null?void 0:t("visits"),children:U("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),C("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),C("tbody",{children:m()})]})},Aue=e=>C(G2,{...e,dateFormat:hE,showTimeSelect:!0,timeIntervals:10}),W5=({checked:e=!1,onChange:t=Fy,className:n,children:r,type:i,inline:o=!1})=>{const s=i_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return U("span",{className:ge("form-check",l,n),style:c,children:[C("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),C("label",{className:"form-check-label",htmlFor:s,children:r})]})},Y5=e=>C(W5,{type:"checkbox",...e});const Iue=({isOpen:e,toggle:t})=>U(zo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[C(io,{toggle:t,children:"Info"}),U(ki,{children:[U("p",{children:["When the ",C("b",{children:C("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),C("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),U("ul",{children:[C("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."}),U("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.",C("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),C("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"})]})]})]}),Fue=()=>{const[e,t]=Bt();return U(We,{children:[C("span",{title:"What does this mean?",children:C($e,{icon:GS,style:{cursor:"pointer"},onClick:t})}),C(Iue,{isOpen:e,toggle:t})]})},Vm=({className:e="",placement:t,children:n})=>{const r=H.useRef();return U(We,{children:[C("span",{className:e,ref:Jd(r),children:C($e,{icon:GS})}),C($r,{target:()=>r.current,placement:t,children:n})]})},yb=({children:e,infoTooltip:t,checked:n,onChange:r})=>U("p",{children:[C(Y5,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&C(Vm,{placement:"right",children:t})]});const $ue=Ft(aH,XV(/ /g,"-")),_b=e=>typeof e=="string"?Lo(e):e,jue=(e,t)=>({mode:n,saving:r,onSave:i,initialState:o,selectedServer:s})=>{const[a,l]=H.useState(o),c=n==="edit",f=n==="create-basic",h=vi(o.title),p=E=>l({...a,tags:E.map($ue)}),m=()=>l(o),g=()=>{const E=vi(a.title);return $y([[()=>!E&&!h,()=>{}],[()=>!E&&h,()=>null],[kS,()=>a.title]])()},_=Bd(async()=>i({...a,validSince:$s(a.validSince)??null,validUntil:$s(a.validUntil)??null,maxVisits:vi(a.maxVisits)?Number(a.maxVisits):null,title:g()}).then(()=>!c&&m()).catch(()=>{}));H.useEffect(()=>{l(o)},[o]);const x=(E,P,k="text",N={},A={})=>C(Zr,{...A,children:C(id,{id:E,type:k,placeholder:P,value:a[E]??"",onChange:V=>l({...a,[E]:V.target.value}),...N})}),v=(E,P,k={})=>C(Aue,{selected:a[E]?_b(a[E]):null,placeholderText:P,isClearable:!0,onChange:N=>l({...a,[E]:N}),...k}),b=U(We,{children:[C(Zr,{children:C(id,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:E=>l({...a,longUrl:E.target.value})})}),U(cr,{children:[f&&x("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),C("div",{className:f?"col-lg-6 mb-3":"col-12",children:C(e,{selectedTags:a.tags??[],onChange:p})})]})]}),w=g6(s);return U("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:_,children:[f&&b,!f&&U(We,{children:[C(gn,{title:"Main options",className:"mb-3",children:b}),U(cr,{children:[C("div",{className:"col-sm-6 mb-3",children:U(gn,{title:"Customize the short URL",children:[x("title","Title"),!c&&U(We,{children:[U(cr,{children:[C("div",{className:"col-lg-6",children:x("customSlug","Custom slug","text",{disabled:vi(a.shortCodeLength)})}),C("div",{className:"col-lg-6",children:x("shortCodeLength","Short code length","number",{min:4,disabled:vi(a.customSlug)})})]}),C(t,{value:a.domain,onChange:E=>l({...a,domain:E})})]})]})}),C("div",{className:"col-sm-6 mb-3",children:U(gn,{title:"Limit access to the short URL",children:[x("maxVisits","Maximum number of visits allowed","number",{min:1}),C("div",{className:"mb-3",children:v("validSince","Enabled since...",{maxDate:a.validUntil?_b(a.validUntil):void 0})}),v("validUntil","Enabled until...",{minDate:a.validSince?_b(a.validSince):void 0})]})})]}),U(cr,{children:[C("div",{className:"col-sm-6 mb-3",children:U(gn,{title:"Extra checks",children:[C(yb,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:a.validateUrl,onChange:E=>l({...a,validateUrl:E}),children:"Validate URL"}),!c&&U("p",{children:[C(Y5,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:E=>l({...a,findIfExists:E}),children:"Use existing URL if found"}),C(Fue,{})]})]})}),C("div",{className:"col-sm-6 mb-3",children:U(gn,{title:"Configure behavior",children:[C(yb,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:a.crawlable,onChange:E=>l({...a,crawlable:E}),children:"Make it crawlable"}),w&&C(yb,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:a.forwardQuery,onChange:E=>l({...a,forwardQuery:E}),children:"Forward query params on redirect"})]})})]})]}),C("div",{className:"text-center",children:C(gt,{outline:!0,color:"primary",disabled:r||Hn(a.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},Bue=e=>({settings:{shortUrlCreation:t},selectedServer:n,shortUrlDetail:r,getShortUrlDetail:i,shortUrlEdition:o,editShortUrl:s})=>{const{search:a}=Wn(),l=Ws(),c=Ks(),{loading:f,error:h,errorData:p,shortUrl:m}=r,{saving:g,saved:_,error:x,errorData:v}=o,{domain:b}=Gc(a),w=H.useMemo(()=>fue(m,t),[m,t]);return H.useEffect(()=>{l.shortCode&&i({shortCode:Um(l.shortCode),domain:b})},[]),f?C(So,{loading:!0}):h?C(Rr,{type:"error",children:C(Do,{errorData:p,fallbackMessage:"An error occurred while loading short URL detail :("})}):U(We,{children:[C("header",{className:"mb-3",children:C(xr,{body:!0,children:U("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[C(gt,{color:"link",size:"lg",className:"p-0 me-3",onClick:c,children:C($e,{icon:FA})}),C("span",{className:"text-center",children:U("small",{children:["Edit ",C(Ci,{href:(m==null?void 0:m.shortUrl)??""})]})}),C("span",{})]})})}),C(e,{initialState:w,saving:g,selectedServer:n,mode:"edit",onSave:async E=>{m&&s({...m,data:E})}}),_&&x&&C(Rr,{type:"error",className:"mt-3",children:C(Do,{errorData:v,fallbackMessage:"An error occurred while updating short URL :("})}),_&&!x&&C(Rr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},zue=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=Md({...n,margin:t>0?t:void 0});return`${r}${Hn(i)?"":`?${i}`}`},Uue=({format:e,setFormat:t})=>U(Xs,{text:`Format (${e})`,children:[C(Ve,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),C(Ve,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),Vue=({errorCorrection:e,setErrorCorrection:t})=>U(Xs,{text:`Error correction (${e})`,children:[U(Ve,{active:e==="L",onClick:()=>t("L"),children:[C("b",{children:"L"}),"ow"]}),U(Ve,{active:e==="M",onClick:()=>t("M"),children:[C("b",{children:"M"}),"edium"]}),U(Ve,{active:e==="Q",onClick:()=>t("Q"),children:[C("b",{children:"Q"}),"uartile"]}),U(Ve,{active:e==="H",onClick:()=>t("H"),children:[C("b",{children:"H"}),"igh"]})]});const Hue=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i,selectedServer:o})=>{const[s,a]=H.useState(300),[l,c]=H.useState(0),[f,h]=H.useState("png"),[p,m]=H.useState("L"),g=bee(o),_=H.useMemo(()=>zue(t,{size:s,format:f,margin:l,errorCorrection:p}),[t,s,f,l,p]),x=H.useMemo(()=>s+l,[s,l]),v=H.useMemo(()=>{if(!(x<500))return x<800?"lg":"xl"},[x]);return U(zo,{isOpen:i,toggle:r,centered:!0,size:v,children:[U(io,{toggle:r,children:["QR code for ",C(Ci,{href:t,children:t})]}),U(ki,{children:[U(cr,{children:[U(Zr,{className:"d-grid col-md-4",children:[U("label",{children:["Size: ",s,"px"]}),C("input",{type:"range",className:"form-control-range",value:s,step:10,min:50,max:1e3,onChange:b=>a(Number(b.target.value))})]}),U(Zr,{className:"d-grid col-md-4",children:[U("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),C("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:b=>c(Number(b.target.value))})]}),C(Zr,{className:"d-grid col-md-4",children:C(Uue,{format:f,setFormat:h})}),C(Zr,{className:"col-md-6",children:C(Vue,{errorCorrection:p,setErrorCorrection:m})})]}),U("div",{className:"text-center",children:[U("div",{className:"mb-3",children:[C(Ci,{href:_}),C(A5,{text:_})]}),C("img",{src:_,className:"qr-code-modal__img",alt:"QR code"}),g&&C("div",{className:"mt-3",children:U(gt,{block:!0,color:"primary",onClick:()=>{e.saveImage(_,`${n}-qr-code.${f}`).catch(()=>{})},children:["Download ",C($e,{icon:$A,className:"ms-1"})]})})]})]})]})},q5=({amount:e=0,loading:t=!1,...n})=>U(gt,{...n,outline:!0,color:"primary",disabled:t,children:[C($e,{icon:wY})," ",t?"Exporting...":U(We,{children:["Export (",yn(e),")"]})]}),vR=20,Wue=(e,{exportShortUrls:t})=>({amount:n=0,selectedServer:r})=>{const[{tags:i,search:o,startDate:s,endDate:a,orderBy:l,tagsMode:c}]=f_(),[f,,h,p]=Bt();return C(q5,{loading:f,className:"btn-md-block",amount:n,onClick:async()=>{if(!Ss(r))return;const g=n/vR,{listShortUrls:_}=e(r),x=async(b=1)=>{const{data:w}=await _({page:`${b}`,tags:i,searchTerm:o,startDate:s,endDate:a,orderBy:l,tagsMode:c,itemsPerPage:vR});return b>=g?w:w.concat(await x(b+1))};h();const v=await x();t(v.map(b=>{var w;return{createdAt:b.dateCreated,shortUrl:b.shortUrl,longUrl:b.longUrl,title:b.title??"",tags:b.tags.join(","),visits:((w=b==null?void 0:b.visitsSummary)==null?void 0:w.total)??b.visitsCount}})),p()}})},Yue=(e,t)=>{e.serviceFactory("ShortUrlsList",zce,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Due,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",vue,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.decorator("ShortUrlsRow",t(["settings"])),e.serviceFactory("ShortUrlsRowMenu",yue,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",xue,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",jue,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",bue,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Bue,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>wue),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",Hue,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",xce,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",Wue,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("shortUrlsListReducerCreator",Oue,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",rt("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",kue,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",rt("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Nue,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",rt("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Cue,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",rt("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",Lue,"buildShlinkApiClient"),e.serviceFactory("shortUrlDetailReducer",rt("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Tue,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",Pue,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",rt("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",Sue,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",rt("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>B5),e.serviceFactory("getShortUrlDetail",rt("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",Rue,"buildShlinkApiClient")},eu=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>U("div",{className:`${n} ${i?"":"mb-3"}`,children:[C("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Hm=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=i_();return C(eu,{label:U(We,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:C("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},G5=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=H.useState(""),[s,a]=H.useState(""),[l,c]=H.useState(""),f=Bd(()=>e({name:i,url:s,apiKey:l}));return H.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),U("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[U(gn,{className:"mb-3",title:r,children:[C(Hm,{value:i,onChange:o,children:"Name"}),C(Hm,{type:"url",value:s,onChange:a,children:"URL"}),C(Hm,{value:l,onChange:c,children:"API key"})]}),C("div",{className:"text-end",children:n})]})},Z5=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return U(zo,{centered:!0,isOpen:e,children:[U(io,{children:["Duplicated server",i&&"s"]}),U(ki,{children:[C("p",{children:i?"The next servers already exist:":"There is already a server with:"}),C("ul",{children:t.map(({url:o,apiKey:s},a)=>i?U("li",{children:[C("b",{children:o})," - ",C("b",{children:s})]},a):U(H.Fragment,{children:[U("li",{children:["URL: ",C("b",{children:o})]}),U("li",{children:["API key: ",C("b",{children:s})]})]},a))}),U("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),U(Zs,{children:[C(gt,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),C(gt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},yR=4e3,_R=({type:e})=>C("div",{className:"mt-3",children:U(Rr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),que=(e,t)=>({servers:n,createServers:r})=>{const i=Io(),o=Ks(),s=!!Object.keys(n).length,[a,l]=t(!1,yR),[c,f]=t(!1,yR),[h,p]=Bt(),[m,g]=H.useState(),_=()=>{if(!m)return;const x=BC();r([{...m,id:x}]),i(`/server/${x}`)};return H.useEffect(()=>{Object.values(n).some(({url:v,apiKey:b})=>(m==null?void 0:m.url)===v&&(m==null?void 0:m.apiKey)===b)?p():_()},[m]),U(Qc,{children:[U(G5,{title:C("h5",{className:"mb-0",children:"Add new server"}),onSubmit:g,children:[!s&&C(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&C(gt,{outline:!0,onClick:o,children:"Cancel"}),C(gt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&C(_R,{type:"success"}),c&&C(_R,{type:"error"}),C(Z5,{isOpen:h,duplicatedServers:m?[m]:[],onDiscard:o,onSave:_})]})},Gue=({servers:e,selectedServer:t})=>{const n=Yc(e);return U(jd,{nav:!0,inNavbar:!0,children:[U(Xc,{nav:!0,caret:!0,children:[C($e,{icon:ZP})," ",C("span",{className:"ms-1",children:"Servers"})]}),C(al,{end:!0,style:{right:0},children:(()=>Hn(n)?U(Ve,{tag:It,to:"/server/create",children:[C($e,{icon:ZS})," ",C("span",{className:"ms-1",children:"Add a server"})]}):U(We,{children:[n.map(({name:i,id:o})=>C(Ve,{tag:It,to:`/server/${o}`,active:kd(t)===o,children:i},o)),C(Ve,{divider:!0}),U(Ve,{tag:It,to:"/manage-servers",children:[C($e,{icon:ZP})," ",C("span",{className:"ms-1",children:"Manage servers"})]})]}))()})]})},Zue=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Io(),s=H.useRef(!1),a=()=>{s.current=!0,t()};return U(zo,{isOpen:n,toggle:t,centered:!0,onClosed:()=>{s.current&&(r(e),i&&o("/"))},children:[C(io,{toggle:t,className:"text-danger",children:"Remove server"}),U(ki,{children:[U("p",{children:["Are you sure you want to remove ",C("b",{children:e?e.name:""}),"?"]}),C("p",{children:C("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."})})]}),U(Zs,{children:[C(gt,{color:"link",onClick:t,children:"Cancel"}),C(gt,{color:"danger",onClick:a,children:"Delete"})]})]})},Kue=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=Bt();return U(We,{children:[U("span",{className:n,onClick:s,children:[!r&&C($e,{fixedWidth:!0,icon:WS}),C("span",{className:i,children:r??"Remove this server"})]}),C(e,{server:t,isOpen:o,toggle:a})]})},Xue=e=>f6(({editServer:t,selectedServer:n})=>{const r=Ks();if(!Ss(n))return null;const i=o=>{t(n.id,o),r()};return C(Qc,{children:U(G5,{title:U("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:i,children:[C(gt,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),C(gt,{outline:!0,color:"primary",children:"Save"})]})})},e);const bR=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),Que=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=H.useRef(),[c,f]=H.useState(),[h,p]=H.useState([]),[m,,g,_]=Bt(),x=Ft(t,i),v=Ft(()=>x(c??[]),_),b=Ft(()=>x((c??[]).filter(qU(bR(h)))),_),w=async({target:E})=>{var P;return e((P=E.files)==null?void 0:P[0]).then(f).then(()=>{E.value=null}).catch(o)};return H.useEffect(()=>{if(!c)return;const E=Object.values(n),P=c.filter(bR(E)),k=!!P.length;k?p(P):x(c),k&&g()},[c]),U(We,{children:[U(gt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var E;return(E=l.current)==null?void 0:E.click()},children:[C($e,{icon:NY,fixedWidth:!0})," ",r??"Import from file"]}),U($r,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",C("b",{children:"name"}),", ",C("b",{children:"apiKey"})," and ",C("b",{children:"url"}),"."]}),C("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:Jd(l),onChange:w}),C(Z5,{isOpen:m,duplicatedServers:h,onDiscard:b,onSave:v})]})},xE="shlink/selectedServer",Jue="1.0.0",efe="999.999.999",tfe="latest",nfe=Ft(e=>e===tfe?efe:e,m6(Jue)),rfe=fA(Fy,async(e,t)=>t().then(({version:n})=>({version:nfe(n),printableVersion:p6(n)}))),wR=null,SE=bn(`${xE}/resetSelectedServer`),ife=e=>nr(`${xE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(SE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await rfe(t,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),ofe=(e,t)=>{const n=kte();return n.startListening({actionCreator:e.fulfilled,effect:({payload:r},{dispatch:i})=>{jy(r)&&i(t())}}),n},sfe=e=>Yn({name:xE,initialState:wR,reducers:{},extraReducers:t=>{t.addCase(SE,()=>wR),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),afe={},lfe=e=>e.id?e:Yf("id",BC(),e),cfe=RS((e,t)=>Yf(t.id,t,e),{}),{actions:ufe,reducer:ffe}=Yn({name:"shlink/servers",initialState:afe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?Yf(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>CV(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?zu(Eg(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):Yf(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:Ft(Od(lfe),cfe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:dfe,deleteServer:hfe,setAutoConnect:pfe,createServers:K5}=ufe,mfe=ffe,gfe=e=>Array.isArray(e)?e.filter(IS):[],vfe=e=>nr("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${H4.homepage}/servers.json`),i=gfe(r);n(K5(i))});const yfe=e=>({servers:t,selectedServer:n})=>C(Qc,{children:U("div",{className:"server-error__container flex-column",children:[U(So,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ss(n)&&"Could not find this Shlink server.",Ss(n)&&U(We,{children:[C("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."]})]}),U(u6,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",C(It,{to:"/server/create",children:"add a new one"}),"."]}),Ss(n)&&C("div",{className:"container mt-3 mt-md-5",children:U("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",C(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",C(It,{to:`/server/${n.id}/edit`,children:"edit it"}),"."]})})]})});const _fe=e=>e?{tag:It,to:e}:{},mp=({children:e,title:t,link:n})=>U(xr,{className:"highlight-card",body:!0,..._fe(n),children:[n&&C($e,{size:"3x",className:"highlight-card__link-icon",icon:yce}),C(MC,{tag:"h5",className:"highlight-card__title",children:t}),C(kC,{tag:"h2",children:e})]}),bfe=(e,t)=>Qs(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,selectedServer:s,loadVisitsOverview:a,visitsOverview:l})=>{const{loading:c,shortUrls:f}=n,{loading:h}=o,{loading:p,visitsCount:m,orphanVisitsCount:g}=l,_=kd(s),x=VC(s),v=Io();return H.useEffect(()=>{r({itemsPerPage:U5,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),U(We,{children:[U(cr,{children:[C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(mp,{title:"Visits",link:x&&`/server/${_}/non-orphan-visits`,children:p?"Loading...":yn(m)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(mp,{title:"Orphan visits",link:`/server/${_}/orphan-visits`,children:p?"Loading...":yn(g)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(mp,{title:"Short URLs",link:`/server/${_}/list-short-urls/1`,children:c?"Loading...":yn((f==null?void 0:f.pagination.totalItems)??0)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(mp,{title:"Tags",link:`/server/${_}/manage-tags`,children:h?"Loading...":yn(o.tags.length)})})]}),U(xr,{className:"mb-3",children:[U(Xa,{children:[C("span",{className:"d-sm-none",children:"Create a short URL"}),C("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),C(It,{className:"float-end",to:`/server/${_}/create-short-url`,children:"Advanced options »"})]}),C(Ka,{children:C(t,{basicMode:!0})})]}),U(xr,{children:[U(Xa,{children:[C("span",{className:"d-sm-none",children:"Recently created URLs"}),C("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),C(It,{className:"float-end",to:`/server/${_}/list-short-urls/1`,children:"See all »"})]}),C(Ka,{children:C(e,{shortUrlsList:n,selectedServer:s,className:"mb-0",onTagClick:b=>v(`/server/${_}/list-short-urls/1?tags=${encodeURIComponent(b)}`)})})]})]})},()=>[Jr.visits,Jr.orphanVisits]),wfe=4e3,xfe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=H.useState(o),l=p=>a(o.filter(({name:m,url:g})=>`${m} ${g}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,wfe);return H.useEffect(()=>{a(Object.values(i))},[i]),U(Qc,{children:[C(Wd,{className:"mb-3",onChange:l}),U(cr,{className:"mb-3",children:[U("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[C(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&U(gt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[C($e,{icon:$A,fixedWidth:!0})," Export servers"]})]}),C("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:U(gt,{outline:!0,color:"primary",className:"flex-fill",tag:It,to:"/server/create",children:[C($e,{icon:ZS,fixedWidth:!0})," Add a server"]})})]}),C(gn,{children:U("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:U("tr",{children:[c&&C("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),C("th",{children:"Name"}),C("th",{children:"Base URL"}),C("th",{"aria-label":"Options"})]})}),U("tbody",{children:[!s.length&&C("tr",{className:"text-center",children:C("td",{colSpan:4,children:"No servers found."})}),s.map(p=>C(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&C("div",{className:"mt-3",children:C(Rr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Sfe=e=>({server:t,hasAutoConnect:n})=>U("tr",{className:"responsive-table__row",children:[n&&C("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&U(We,{children:[C($e,{icon:Zf,className:"text-primary",id:"autoConnectIcon"}),C($r,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),C("th",{className:"responsive-table__cell","data-th":"Name",children:C(It,{to:`/server/${t.id}`,children:t.name})}),C("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),C("td",{className:"responsive-table__cell text-end",children:C(e,{server:t})})]}),Cfe=e=>({server:t,setAutoConnect:n})=>{const[r,i]=Bt(),[o,,s,a]=Bt(),l=`/server/${t.id}`,{autoConnect:c}=t,f=c?MY:_ce;return U(h_,{isOpen:r,toggle:i,children:[U(Ve,{tag:It,to:l,children:[C($e,{icon:PY,fixedWidth:!0})," Connect"]}),U(Ve,{tag:It,to:`${l}/edit`,children:[C($e,{icon:YS,fixedWidth:!0})," Edit server"]}),U(Ve,{onClick:()=>n(t,!c),children:[C($e,{icon:f,fixedWidth:!0})," ",c?"Do not a":"A","uto-connect"]}),C(Ve,{divider:!0}),U(Ve,{className:"dropdown-item--danger",onClick:s,children:[C($e,{icon:WS,fixedWidth:!0})," Remove server"]}),C(e,{redirectHome:!1,server:t,isOpen:o,toggle:a})]})},Efe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",Tfe=e=>Array.isArray(e)&&e.every(Efe);class Ofe{constructor(t,n){Qe(this,"importServersFromFile",async t=>{if(!t)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var s,a;try{const l=((a=(s=o.target)==null?void 0:s.result)==null?void 0:a.toString())??"",c=await this.csvToJson(l);if(!Tfe(c))throw new Error("Provided file does not have the right format.");r(c)}catch(l){i(l)}}),n.readAsText(t)})});this.csvToJson=t,this.fileReaderFactory=n}}const Pfe="shlink-servers.csv";class kfe{constructor(t,n,r){Qe(this,"exportServers",async()=>{const t=Yc(this.storage.get("servers")??{}).map(uH);try{const n=this.jsonToCsv(t);$6(this.window,n,Pfe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const Mfe=(e,t)=>{e.serviceFactory("ManageServers",xfe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",Bg),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Sfe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Cfe,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",que,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",Bg),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",Xue,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>Gue),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Zue),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",Kue,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",Que,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",yfe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",bfe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",Ofe,"csvToJson","fileReaderFactory"),e.service("ServersExporter",kfe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",ife,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>K5),e.serviceFactory("deleteServer",()=>hfe),e.serviceFactory("editServer",()=>dfe),e.serviceFactory("setAutoConnect",()=>pfe),e.serviceFactory("fetchServers",vfe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>SE),e.serviceFactory("selectServerListener",ofe,"selectServer","loadMercureInfo"),e.serviceFactory("selectedServerReducerCreator",sfe,"selectServer"),e.serviceFactory("selectedServerReducer",rt("reducer"),"selectedServerReducerCreator")};function X5(e,t){const n=H.useRef(t);H.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 Rfe=1;function Nfe(e){return Object.freeze({__version:Rfe,map:e})}function Lfe(e,t){return Object.freeze({...e,...t})}const Q5=H.createContext(null),J5=Q5.Provider;function e8(){const e=H.useContext(Q5);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Dfe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return H.useImperativeHandle(r,()=>i),n.children==null?null:z.createElement(J5,{value:o},n.children)}return H.forwardRef(t)}function Afe(e){function t(n,r){const[i,o]=H.useState(!1),{instance:s}=e(n,o).current;H.useImperativeHandle(r,()=>s),H.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Ba.createPortal(n.children,a):null}return H.forwardRef(t)}function Ife(e){function t(n,r){const{instance:i}=e(n).current;return H.useImperativeHandle(r,()=>i),null}return H.forwardRef(t)}function t8(e,t){const n=H.useRef();H.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 CE(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Ffe(e,t){return function(r,i){const o=e8(),s=e(CE(r,o),o);return X5(o.map,r.attribution),t8(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var js={},$fe={get exports(){return js},set exports(e){js=e}};/* @preserve
|
||
* Leaflet 1.9.2, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/(function(e,t){(function(n,r){r(t)})(Il,function(n){var r="1.9.2";function i(u){var d,y,T,M;for(y=1,T=arguments.length;y<T;y++){M=arguments[y];for(d in M)u[d]=M[d]}return u}var o=Object.create||function(){function u(){}return function(d){return u.prototype=d,new u}}();function s(u,d){var y=Array.prototype.slice;if(u.bind)return u.bind.apply(u,y.call(arguments,1));var T=y.call(arguments,2);return function(){return u.apply(d,T.length?T.concat(y.call(arguments)):arguments)}}var a=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++a),u._leaflet_id}function c(u,d,y){var T,M,j,te;return te=function(){T=!1,M&&(j.apply(y,M),M=!1)},j=function(){T?M=arguments:(u.apply(y,arguments),setTimeout(te,d),T=!0)},j}function f(u,d,y){var T=d[1],M=d[0],j=T-M;return u===T&&y?u:((u-M)%j+j)%j+M}function h(){return!1}function p(u,d){if(d===!1)return u;var y=Math.pow(10,d===void 0?6:d);return Math.round(u*y)/y}function m(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function g(u){return m(u).split(/\s+/)}function _(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var y in d)u.options[y]=d[y];return u.options}function x(u,d,y){var T=[];for(var M in u)T.push(encodeURIComponent(y?M.toUpperCase():M)+"="+encodeURIComponent(u[M]));return(!d||d.indexOf("?")===-1?"?":"&")+T.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function b(u,d){return u.replace(v,function(y,T){var M=d[T];if(M===void 0)throw new Error("No value provided for variable "+y);return typeof M=="function"&&(M=M(d)),M})}var w=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function E(u,d){for(var y=0;y<u.length;y++)if(u[y]===d)return y;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var N=0;function A(u){var d=+new Date,y=Math.max(0,16-(d-N));return N=d+y,window.setTimeout(u,y)}var V=window.requestAnimationFrame||k("RequestAnimationFrame")||A,I=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function Y(u,d,y){if(y&&V===A)u.call(d);else return V.call(window,s(u,d))}function q(u){u&&I.call(window,u)}var X={__proto__:null,extend:i,create:o,bind:s,get lastId(){return a},stamp:l,throttle:c,wrapNum:f,falseFn:h,formatNum:p,trim:m,splitWords:g,setOptions:_,getParamString:x,template:b,isArray:w,indexOf:E,emptyImageUrl:P,requestFn:V,cancelFn:I,requestAnimFrame:Y,cancelAnimFrame:q};function Z(){}Z.extend=function(u){var d=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},y=d.__super__=this.prototype,T=o(y);T.constructor=d,d.prototype=T;for(var M in this)Object.prototype.hasOwnProperty.call(this,M)&&M!=="prototype"&&M!=="__super__"&&(d[M]=this[M]);return u.statics&&i(d,u.statics),u.includes&&(J(u.includes),i.apply(null,[T].concat(u.includes))),i(T,u),delete T.statics,delete T.includes,T.options&&(T.options=y.options?o(y.options):{},i(T.options,u.options)),T._initHooks=[],T.callInitHooks=function(){if(!this._initHooksCalled){y.callInitHooks&&y.callInitHooks.call(this),this._initHooksCalled=!0;for(var j=0,te=T._initHooks.length;j<te;j++)T._initHooks[j].call(this)}},d},Z.include=function(u){var d=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},Z.mergeOptions=function(u){return i(this.prototype.options,u),this},Z.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),y=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(y),this};function J(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=w(u)?u:[u];for(var d=0;d<u.length;d++)u[d]===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 oe={on:function(u,d,y){if(typeof u=="object")for(var T in u)this._on(T,u[T],d);else{u=g(u);for(var M=0,j=u.length;M<j;M++)this._on(u[M],d,y)}return this},off:function(u,d,y){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var T in u)this._off(T,u[T],d);else{u=g(u);for(var M=arguments.length===1,j=0,te=u.length;j<te;j++)M?this._off(u[j]):this._off(u[j],d,y)}return this},_on:function(u,d,y,T){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,y)===!1){y===this&&(y=void 0);var M={fn:d,ctx:y};T&&(M.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(M)}},_off:function(u,d,y){var T,M,j;if(this._events&&(T=this._events[u],!!T)){if(arguments.length===1){if(this._firingCount)for(M=0,j=T.length;M<j;M++)T[M].fn=h;delete this._events[u];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var te=this._listens(u,d,y);if(te!==!1){var de=T[te];this._firingCount&&(de.fn=h,this._events[u]=T=T.slice()),T.splice(te,1)}}},fire:function(u,d,y){if(!this.listens(u,y))return this;var T=i({},d,{type:u,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var M=this._events[u];if(M){this._firingCount=this._firingCount+1||1;for(var j=0,te=M.length;j<te;j++){var de=M[j],pe=de.fn;de.once&&this.off(u,pe,de.ctx),pe.call(de.ctx||this,T)}this._firingCount--}}return y&&this._propagateEvent(T),this},listens:function(u,d,y,T){typeof u!="string"&&console.warn('"string" type argument expected');var M=d;typeof d!="function"&&(T=!!d,M=void 0,y=void 0);var j=this._events&&this._events[u];if(j&&j.length&&this._listens(u,M,y)!==!1)return!0;if(T){for(var te in this._eventParents)if(this._eventParents[te].listens(u,d,y,T))return!0}return!1},_listens:function(u,d,y){if(!this._events)return!1;var T=this._events[u]||[];if(!d)return!!T.length;y===this&&(y=void 0);for(var M=0,j=T.length;M<j;M++)if(T[M].fn===d&&T[M].ctx===y)return M;return!1},once:function(u,d,y){if(typeof u=="object")for(var T in u)this._on(T,u[T],d,!0);else{u=g(u);for(var M=0,j=u.length;M<j;M++)this._on(u[M],d,y,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[l(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[l(u)],this},_propagateEvent:function(u){for(var d in this._eventParents)this._eventParents[d].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!0)}};oe.addEventListener=oe.on,oe.removeEventListener=oe.clearAllEventListeners=oe.off,oe.addOneTimeEventListener=oe.once,oe.fireEvent=oe.fire,oe.hasEventListeners=oe.listens;var ce=Z.extend(oe);function K(u,d,y){this.x=y?Math.round(u):u,this.y=y?Math.round(d):d}var $=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};K.prototype={clone:function(){return new K(this.x,this.y)},add:function(u){return this.clone()._add(D(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(D(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new K(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new K(this.x/u.x,this.y/u.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=$(this.x),this.y=$(this.y),this},distanceTo:function(u){u=D(u);var d=u.x-this.x,y=u.y-this.y;return Math.sqrt(d*d+y*y)},equals:function(u){return u=D(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=D(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function D(u,d,y){return u instanceof K?u:w(u)?new K(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new K(u.x,u.y):new K(u,d,y)}function B(u,d){if(u)for(var y=d?[u,d]:u,T=0,M=y.length;T<M;T++)this.extend(y[T])}B.prototype={extend:function(u){var d,y;if(!u)return this;if(u instanceof K||typeof u[0]=="number"||"x"in u)d=y=D(u);else if(u=ne(u),d=u.min,y=u.max,!d||!y)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=y.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(y.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(y.y,this.max.y)),this},getCenter:function(u){return D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return D(this.min.x,this.max.y)},getTopRight:function(){return D(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(u){var d,y;return typeof u[0]=="number"||u instanceof K?u=D(u):u=ne(u),u instanceof B?(d=u.min,y=u.max):d=y=u,d.x>=this.min.x&&y.x<=this.max.x&&d.y>=this.min.y&&y.y<=this.max.y},intersects:function(u){u=ne(u);var d=this.min,y=this.max,T=u.min,M=u.max,j=M.x>=d.x&&T.x<=y.x,te=M.y>=d.y&&T.y<=y.y;return j&&te},overlaps:function(u){u=ne(u);var d=this.min,y=this.max,T=u.min,M=u.max,j=M.x>d.x&&T.x<y.x,te=M.y>d.y&&T.y<y.y;return j&&te},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,y=this.max,T=Math.abs(d.x-y.x)*u,M=Math.abs(d.y-y.y)*u;return ne(D(d.x-T,d.y-M),D(y.x+T,y.y+M))},equals:function(u){return u?(u=ne(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function ne(u,d){return!u||u instanceof B?u:new B(u,d)}function W(u,d){if(u)for(var y=d?[u,d]:u,T=0,M=y.length;T<M;T++)this.extend(y[T])}W.prototype={extend:function(u){var d=this._southWest,y=this._northEast,T,M;if(u instanceof re)T=u,M=u;else if(u instanceof W){if(T=u._southWest,M=u._northEast,!T||!M)return this}else return u?this.extend(le(u)||G(u)):this;return!d&&!y?(this._southWest=new re(T.lat,T.lng),this._northEast=new re(M.lat,M.lng)):(d.lat=Math.min(T.lat,d.lat),d.lng=Math.min(T.lng,d.lng),y.lat=Math.max(M.lat,y.lat),y.lng=Math.max(M.lng,y.lng)),this},pad:function(u){var d=this._southWest,y=this._northEast,T=Math.abs(d.lat-y.lat)*u,M=Math.abs(d.lng-y.lng)*u;return new W(new re(d.lat-T,d.lng-M),new re(y.lat+T,y.lng+M))},getCenter:function(){return new re((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 re(this.getNorth(),this.getWest())},getSouthEast:function(){return new re(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(u){typeof u[0]=="number"||u instanceof re||"lat"in u?u=le(u):u=G(u);var d=this._southWest,y=this._northEast,T,M;return u instanceof W?(T=u.getSouthWest(),M=u.getNorthEast()):T=M=u,T.lat>=d.lat&&M.lat<=y.lat&&T.lng>=d.lng&&M.lng<=y.lng},intersects:function(u){u=G(u);var d=this._southWest,y=this._northEast,T=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>=d.lat&&T.lat<=y.lat,te=M.lng>=d.lng&&T.lng<=y.lng;return j&&te},overlaps:function(u){u=G(u);var d=this._southWest,y=this._northEast,T=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>d.lat&&T.lat<y.lat,te=M.lng>d.lng&&T.lng<y.lng;return j&&te},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=G(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function G(u,d){return u instanceof W?u:new W(u,d)}function re(u,d,y){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,y!==void 0&&(this.alt=+y)}re.prototype={equals:function(u,d){if(!u)return!1;u=le(u);var y=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return y<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return O.distance(this,le(u))},wrap:function(){return O.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,y=d/Math.cos(Math.PI/180*this.lat);return G([this.lat-d,this.lng-y],[this.lat+d,this.lng+y])},clone:function(){return new re(this.lat,this.lng,this.alt)}};function le(u,d,y){return u instanceof re?u:w(u)&&typeof u[0]!="object"?u.length===3?new re(u[0],u[1],u[2]):u.length===2?new re(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new re(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new re(u,d,y)}var me={latLngToPoint:function(u,d){var y=this.projection.project(u),T=this.scale(d);return this.transformation._transform(y,T)},pointToLatLng:function(u,d){var y=this.scale(d),T=this.transformation.untransform(u,y);return this.projection.unproject(T)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var d=this.projection.bounds,y=this.scale(u),T=this.transformation.transform(d.min,y),M=this.transformation.transform(d.max,y);return new B(T,M)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,y=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,T=u.alt;return new re(y,d,T)},wrapLatLngBounds:function(u){var d=u.getCenter(),y=this.wrapLatLng(d),T=d.lat-y.lat,M=d.lng-y.lng;if(T===0&&M===0)return u;var j=u.getSouthWest(),te=u.getNorthEast(),de=new re(j.lat-T,j.lng-M),pe=new re(te.lat-T,te.lng-M);return new W(de,pe)}},O=i({},me,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var y=Math.PI/180,T=u.lat*y,M=d.lat*y,j=Math.sin((d.lat-u.lat)*y/2),te=Math.sin((d.lng-u.lng)*y/2),de=j*j+Math.cos(T)*Math.cos(M)*te*te,pe=2*Math.atan2(Math.sqrt(de),Math.sqrt(1-de));return this.R*pe}}),R=6378137,F={R,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,y=this.MAX_LATITUDE,T=Math.max(Math.min(y,u.lat),-y),M=Math.sin(T*d);return new K(this.R*u.lng*d,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(u){var d=180/Math.PI;return new re((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:function(){var u=R*Math.PI;return new B([-u,-u],[u,u])}()};function ee(u,d,y,T){if(w(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=d,this._c=y,this._d=T}ee.prototype={transform:function(u,d){return this._transform(u.clone(),d)},_transform:function(u,d){return d=d||1,u.x=d*(this._a*u.x+this._b),u.y=d*(this._c*u.y+this._d),u},untransform:function(u,d){return d=d||1,new K((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function Q(u,d,y,T){return new ee(u,d,y,T)}var se=i({},O,{code:"EPSG:3857",projection:F,transformation:function(){var u=.5/(Math.PI*F.R);return Q(u,.5,-u,.5)}()}),ve=i({},se,{code:"EPSG:900913"});function Le(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function fe(u,d){var y="",T,M,j,te,de,pe;for(T=0,j=u.length;T<j;T++){for(de=u[T],M=0,te=de.length;M<te;M++)pe=de[M],y+=(M?"L":"M")+pe.x+" "+pe.y;y+=d?He.svg?"z":"x":""}return y||"M0 0"}var ye=document.documentElement.style,be="ActiveXObject"in window,Te=be&&!document.addEventListener,De="msLaunchUri"in navigator&&!("documentMode"in document),Re=In("webkit"),Ne=In("android"),ue=In("android 2")||In("android 3"),he=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),we=Ne&&In("Google")&&he<537&&!("AudioNode"in window),_e=!!window.opera,Ce=!De&&In("chrome"),ke=In("gecko")&&!Re&&!_e&&!be,Ie=!Ce&&In("safari"),nt=In("phantom"),it="OTransition"in ye,Ke=navigator.platform.indexOf("Win")===0,Gt=be&&"transition"in ye,Ut="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ue,xn="MozPerspective"in ye,ir=!window.L_DISABLE_3D&&(Gt||Ut||xn)&&!it&&!nt,Ni=typeof orientation<"u"||In("mobile"),Ln=Ni&&Re,nu=Ni&&Ut,Li=!window.PointerEvent&&window.MSPointerEvent,fh=!!(window.PointerEvent||Li),dh="ontouchstart"in window||!!window.TouchEvent,hh=!window.L_NO_TOUCH&&(dh||fh),ru=Ni&&_e,na=Ni&&ke,cn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,en=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),or=function(){return!!document.createElement("canvas").getContext}(),Dn=!!(document.createElementNS&&Le("svg").createSVGRect),An=!!Dn&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),pn=!Dn&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),li=navigator.platform.indexOf("Mac")===0,ci=navigator.platform.indexOf("Linux")===0;function In(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var He={ie:be,ielt9:Te,edge:De,webkit:Re,android:Ne,android23:ue,androidStock:we,opera:_e,chrome:Ce,gecko:ke,safari:Ie,phantom:nt,opera12:it,win:Ke,ie3d:Gt,webkit3d:Ut,gecko3d:xn,any3d:ir,mobile:Ni,mobileWebkit:Ln,mobileWebkit3d:nu,msPointer:Li,pointer:fh,touch:hh,touchNative:dh,mobileOpera:ru,mobileGecko:na,retina:cn,passiveEvents:en,canvas:or,svg:Dn,vml:pn,inlineSvg:An,mac:li,linux:ci},lT=He.msPointer?"MSPointerDown":"pointerdown",cT=He.msPointer?"MSPointerMove":"pointermove",uT=He.msPointer?"MSPointerUp":"pointerup",fT=He.msPointer?"MSPointerCancel":"pointercancel",k_={touchstart:lT,touchmove:cT,touchend:uT,touchcancel:fT},dT={touchstart:qF,touchmove:ph,touchend:ph,touchcancel:ph},dl={},hT=!1;function UF(u,d,y){return d==="touchstart"&&YF(),dT[d]?(y=dT[d].bind(this,y),u.addEventListener(k_[d],y,!1),y):(console.warn("wrong event specified:",d),L.Util.falseFn)}function VF(u,d,y){if(!k_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(k_[d],y,!1)}function HF(u){dl[u.pointerId]=u}function WF(u){dl[u.pointerId]&&(dl[u.pointerId]=u)}function pT(u){delete dl[u.pointerId]}function YF(){hT||(document.addEventListener(lT,HF,!0),document.addEventListener(cT,WF,!0),document.addEventListener(uT,pT,!0),document.addEventListener(fT,pT,!0),hT=!0)}function ph(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var y in dl)d.touches.push(dl[y]);d.changedTouches=[d],u(d)}}function qF(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&Fn(d),ph(u,d)}function GF(u){var d={},y,T;for(T in u)y=u[T],d[T]=y&&y.bind?y.bind(u):y;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var ZF=200;function KF(u,d){u.addEventListener("dblclick",d);var y=0,T;function M(j){if(j.detail!==1){T=j.detail;return}if(!(j.pointerType==="mouse"||j.sourceCapabilities&&!j.sourceCapabilities.firesTouchEvents)){var te=_T(j);if(!(te.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!te.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var de=Date.now();de-y<=ZF?(T++,T===2&&d(GF(j))):T=1,y=de}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function XF(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var M_=vh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iu=vh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),mT=iu==="webkitTransition"||iu==="OTransition"?iu+"End":"transitionend";function gT(u){return typeof u=="string"?document.getElementById(u):u}function ou(u,d){var y=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!y||y==="auto")&&document.defaultView){var T=document.defaultView.getComputedStyle(u,null);y=T?T[d]:null}return y==="auto"?null:y}function pt(u,d,y){var T=document.createElement(u);return T.className=d||"",y&&y.appendChild(T),T}function Vt(u){var d=u.parentNode;d&&d.removeChild(u)}function mh(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function hl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function pl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function R_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var y=gh(u);return y.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(y)}function et(u,d){if(u.classList!==void 0)for(var y=g(d),T=0,M=y.length;T<M;T++)u.classList.add(y[T]);else if(!R_(u,d)){var j=gh(u);N_(u,(j?j+" ":"")+d)}}function tn(u,d){u.classList!==void 0?u.classList.remove(d):N_(u,m((" "+gh(u)+" ").replace(" "+d+" "," ")))}function N_(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function gh(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function jr(u,d){"opacity"in u.style?u.style.opacity=d:"filter"in u.style&&QF(u,d)}function QF(u,d){var y=!1,T="DXImageTransform.Microsoft.Alpha";try{y=u.filters.item(T)}catch{if(d===1)return}d=Math.round(d*100),y?(y.Enabled=d!==100,y.Opacity=d):u.style.filter+=" progid:"+T+"(opacity="+d+")"}function vh(u){for(var d=document.documentElement.style,y=0;y<u.length;y++)if(u[y]in d)return u[y];return!1}function ra(u,d,y){var T=d||new K(0,0);u.style[M_]=(He.ie3d?"translate("+T.x+"px,"+T.y+"px)":"translate3d("+T.x+"px,"+T.y+"px,0)")+(y?" scale("+y+")":"")}function un(u,d){u._leaflet_pos=d,He.any3d?ra(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function ia(u){return u._leaflet_pos||new K(0,0)}var su,au,L_;if("onselectstart"in document)su=function(){Ge(window,"selectstart",Fn)},au=function(){Ot(window,"selectstart",Fn)};else{var lu=vh(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);su=function(){if(lu){var u=document.documentElement.style;L_=u[lu],u[lu]="none"}},au=function(){lu&&(document.documentElement.style[lu]=L_,L_=void 0)}}function D_(){Ge(window,"dragstart",Fn)}function A_(){Ot(window,"dragstart",Fn)}var yh,I_;function F_(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(_h(),yh=u,I_=u.style.outline,u.style.outline="none",Ge(window,"keydown",_h))}function _h(){yh&&(yh.style.outline=I_,yh=void 0,I_=void 0,Ot(window,"keydown",_h))}function vT(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function $_(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var JF={__proto__:null,TRANSFORM:M_,TRANSITION:iu,TRANSITION_END:mT,get:gT,getStyle:ou,create:pt,remove:Vt,empty:mh,toFront:hl,toBack:pl,hasClass:R_,addClass:et,removeClass:tn,setClass:N_,getClass:gh,setOpacity:jr,testProp:vh,setTransform:ra,setPosition:un,getPosition:ia,get disableTextSelection(){return su},get enableTextSelection(){return au},disableImageDrag:D_,enableImageDrag:A_,preventOutline:F_,restoreOutline:_h,getSizedParentNode:vT,getScale:$_};function Ge(u,d,y,T){if(d&&typeof d=="object")for(var M in d)B_(u,M,d[M],y);else{d=g(d);for(var j=0,te=d.length;j<te;j++)B_(u,d[j],y,T)}return this}var Di="_leaflet_events";function Ot(u,d,y,T){if(arguments.length===1)yT(u),delete u[Di];else if(d&&typeof d=="object")for(var M in d)z_(u,M,d[M],y);else if(d=g(d),arguments.length===2)yT(u,function(de){return E(d,de)!==-1});else for(var j=0,te=d.length;j<te;j++)z_(u,d[j],y,T);return this}function yT(u,d){for(var y in u[Di]){var T=y.split(/\d/)[0];(!d||d(T))&&z_(u,T,null,null,y)}}var j_={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function B_(u,d,y,T){var M=d+l(y)+(T?"_"+l(T):"");if(u[Di]&&u[Di][M])return this;var j=function(de){return y.call(T||u,de||window.event)},te=j;!He.touchNative&&He.pointer&&d.indexOf("touch")===0?j=UF(u,d,j):He.touch&&d==="dblclick"?j=KF(u,j):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(j_[d]||d,j,He.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(j=function(de){de=de||window.event,V_(u,de)&&te(de)},u.addEventListener(j_[d],j,!1)):u.addEventListener(d,te,!1):u.attachEvent("on"+d,j),u[Di]=u[Di]||{},u[Di][M]=j}function z_(u,d,y,T,M){M=M||d+l(y)+(T?"_"+l(T):"");var j=u[Di]&&u[Di][M];if(!j)return this;!He.touchNative&&He.pointer&&d.indexOf("touch")===0?VF(u,d,j):He.touch&&d==="dblclick"?XF(u,j):"removeEventListener"in u?u.removeEventListener(j_[d]||d,j,!1):u.detachEvent("on"+d,j),u[Di][M]=null}function oa(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function U_(u){return B_(u,"wheel",oa),this}function cu(u){return Ge(u,"mousedown touchstart dblclick contextmenu",oa),u._leaflet_disable_click=!0,this}function Fn(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function sa(u){return Fn(u),oa(u),this}function _T(u){if(u.composedPath)return u.composedPath();for(var d=[],y=u.target;y;)d.push(y),y=y.parentNode;return d}function bT(u,d){if(!d)return new K(u.clientX,u.clientY);var y=$_(d),T=y.boundingClientRect;return new K((u.clientX-T.left)/y.x-d.clientLeft,(u.clientY-T.top)/y.y-d.clientTop)}var e$=He.linux&&He.chrome?window.devicePixelRatio:He.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function wT(u){return He.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/e$:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function V_(u,d){var y=d.relatedTarget;if(!y)return!0;try{for(;y&&y!==u;)y=y.parentNode}catch{return!1}return y!==u}var t$={__proto__:null,on:Ge,off:Ot,stopPropagation:oa,disableScrollPropagation:U_,disableClickPropagation:cu,preventDefault:Fn,stop:sa,getPropagationPath:_T,getMousePosition:bT,getWheelDelta:wT,isExternalTarget:V_,addListener:Ge,removeListener:Ot},xT=ce.extend({run:function(u,d,y,T){this.stop(),this._el=u,this._inProgress=!0,this._duration=y||.25,this._easeOutPower=1/Math.max(T||.5,.2),this._startPos=ia(u),this._offset=d.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(u){var d=+new Date-this._startTime,y=this._duration*1e3;d<y?this._runFrame(this._easeOut(d/y),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var y=this._startPos.add(this._offset.multiplyBy(u));d&&y._round(),un(this._el,y),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),ct=ce.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(u,d){d=_(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(le(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=iu&&He.any3d&&!He.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ge(this._proxy,mT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,y){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(le(u),d,this.options.maxBounds),y=y||{},this._stop(),this._loaded&&!y.reset&&y!==!0){y.animate!==void 0&&(y.zoom=i({animate:y.animate},y.zoom),y.pan=i({animate:y.animate,duration:y.duration},y.pan));var T=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,y.zoom):this._tryAnimatedPan(u,y.pan);if(T)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,y.pan&&y.pan.noMoveStart),this},setZoom:function(u,d){return this._loaded?this.setView(this.getCenter(),u,{zoom:d}):(this._zoom=u,this)},zoomIn:function(u,d){return u=u||(He.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(He.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,y){var T=this.getZoomScale(d),M=this.getSize().divideBy(2),j=u instanceof K?u:this.latLngToContainerPoint(u),te=j.subtract(M).multiplyBy(1-1/T),de=this.containerPointToLatLng(M.add(te));return this.setView(de,d,{zoom:y})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():G(u);var y=D(d.paddingTopLeft||d.padding||[0,0]),T=D(d.paddingBottomRight||d.padding||[0,0]),M=this.getBoundsZoom(u,!1,y.add(T));if(M=typeof d.maxZoom=="number"?Math.min(d.maxZoom,M):M,M===1/0)return{center:u.getCenter(),zoom:M};var j=T.subtract(y).divideBy(2),te=this.project(u.getSouthWest(),M),de=this.project(u.getNorthEast(),M),pe=this.unproject(te.add(de).divideBy(2).add(j),M);return{center:pe,zoom:M}},fitBounds:function(u,d){if(u=G(u),!u.isValid())throw new Error("Bounds are not valid.");var y=this._getBoundsCenterZoom(u,d);return this.setView(y.center,y.zoom,d)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,d){return this.setView(u,this._zoom,{pan:d})},panBy:function(u,d){if(u=D(u).round(),d=d||{},!u.x&&!u.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new xT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){et(this._mapPane,"leaflet-pan-anim");var y=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,y,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,y){if(y=y||{},y.animate===!1||!He.any3d)return this.setView(u,d,y);this._stop();var T=this.project(this.getCenter()),M=this.project(u),j=this.getSize(),te=this._zoom;u=le(u),d=d===void 0?te:d;var de=Math.max(j.x,j.y),pe=de*this.getZoomScale(te,d),Se=M.distanceTo(T)||1,Ae=1.42,qe=Ae*Ae;function Xe(fn){var Nh=fn?-1:1,V$=fn?pe:de,H$=pe*pe-de*de+Nh*qe*qe*Se*Se,W$=2*V$*qe*Se,e0=H$/W$,nO=Math.sqrt(e0*e0+1)-e0,Y$=nO<1e-9?-18:Math.log(nO);return Y$}function zr(fn){return(Math.exp(fn)-Math.exp(-fn))/2}function ca(fn){return(Math.exp(fn)+Math.exp(-fn))/2}function Rh(fn){return zr(fn)/ca(fn)}var Wo=Xe(0);function J_(fn){return de*(ca(Wo)/ca(Wo+Ae*fn))}function j$(fn){return de*(ca(Wo)*Rh(Wo+Ae*fn)-zr(Wo))/qe}function B$(fn){return 1-Math.pow(1-fn,1.5)}var z$=Date.now(),eO=(Xe(1)-Wo)/Ae,U$=y.duration?1e3*y.duration:1e3*eO*.8;function tO(){var fn=(Date.now()-z$)/U$,Nh=B$(fn)*eO;fn<=1?(this._flyToFrame=Y(tO,this),this._move(this.unproject(T.add(M.subtract(T).multiplyBy(j$(Nh)/Se)),te),this.getScaleZoom(de/J_(Nh),te),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,y.noMoveStart),tO.call(this),this},flyToBounds:function(u,d){var y=this._getBoundsCenterZoom(u,d);return this.flyTo(y.center,y.zoom,d)},setMaxBounds:function(u){return u=G(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var d=this.options.minZoom;return this.options.minZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var d=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var y=this.getCenter(),T=this._limitCenter(y,this._zoom,G(u));return y.equals(T)||this.panTo(T,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var y=D(d.paddingTopLeft||d.padding||[0,0]),T=D(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),j=this.project(u),te=this.getPixelBounds(),de=ne([te.min.add(y),te.max.subtract(T)]),pe=de.getSize();if(!de.contains(j)){this._enforcingBounds=!0;var Se=j.subtract(de.getCenter()),Ae=de.extend(j).getSize().subtract(pe);M.x+=Se.x<0?-Ae.x:Ae.x,M.y+=Se.y<0?-Ae.y:Ae.y,this.panTo(this.unproject(M),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var y=this.getSize(),T=d.divideBy(2).round(),M=y.divideBy(2).round(),j=T.subtract(M);return!j.x&&!j.y?this:(u.animate&&u.pan?this.panBy(j):(u.pan&&this._rawPanBy(j),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:y}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=s(this._handleGeolocationResponse,this),y=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,y,u):navigator.geolocation.getCurrentPosition(d,y,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,y=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+y+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,y=u.coords.longitude,T=new re(d,y),M=T.toBounds(u.coords.accuracy*2),j=this._locateOptions;if(j.setView){var te=this.getBoundsZoom(M);this.setView(T,j.maxZoom?Math.min(te,j.maxZoom):te)}var de={latlng:T,bounds:M,timestamp:u.timestamp};for(var pe in u.coords)typeof u.coords[pe]=="number"&&(de[pe]=u.coords[pe]);this.fire("locationfound",de)}},addHandler:function(u,d){if(!d)return this;var y=this[u]=new d(this);return this._handlers.push(y),this.options[u]&&y.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(),Vt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Vt(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var y="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),T=pt("div",y,d||this._mapPane);return u&&(this._panes[u]=T),T},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),y=this.unproject(u.getTopRight());return new W(d,y)},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(u,d,y){u=G(u),y=D(y||[0,0]);var T=this.getZoom()||0,M=this.getMinZoom(),j=this.getMaxZoom(),te=u.getNorthWest(),de=u.getSouthEast(),pe=this.getSize().subtract(y),Se=ne(this.project(de,T),this.project(te,T)).getSize(),Ae=He.any3d?this.options.zoomSnap:1,qe=pe.x/Se.x,Xe=pe.y/Se.y,zr=d?Math.max(qe,Xe):Math.min(qe,Xe);return T=this.getScaleZoom(zr,T),Ae&&(T=Math.round(T/(Ae/100))*(Ae/100),T=d?Math.ceil(T/Ae)*Ae:Math.floor(T/Ae)*Ae),Math.max(M,Math.min(j,T))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new K(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var y=this._getTopLeftPoint(u,d);return new B(y,y.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var y=this.options.crs;return d=d===void 0?this._zoom:d,y.scale(u)/y.scale(d)},getScaleZoom:function(u,d){var y=this.options.crs;d=d===void 0?this._zoom:d;var T=y.zoom(u*y.scale(d));return isNaN(T)?1/0:T},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(le(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(D(u),d)},layerPointToLatLng:function(u){var d=D(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(le(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(le(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(G(u))},distance:function(u,d){return this.options.crs.distance(le(u),le(d))},containerPointToLayerPoint:function(u){return D(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return D(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(D(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(le(u)))},mouseEventToContainerPoint:function(u){return bT(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=gT(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ge(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&He.any3d,et(u,"leaflet-container"+(He.touch?" leaflet-touch":"")+(He.retina?" leaflet-retina":"")+(He.ielt9?" leaflet-oldie":"")+(He.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=ou(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),un(this._mapPane,new K(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(et(u.markerPane,"leaflet-zoom-hide"),et(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,y){un(this._mapPane,new K(0,0));var T=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var M=this._zoom!==d;this._moveStart(M,y)._move(u,d)._moveEnd(M),this.fire("viewreset"),T&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,y,T){d===void 0&&(d=this._zoom);var M=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),T?y&&y.pinch&&this.fire("zoom",y):((M||y&&y.pinch)&&this.fire("zoom",y),this.fire("move",y)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){un(this._mapPane,this._getMapPanePos().subtract(u))},_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(u){this._targets={},this._targets[l(this._container)]=this;var d=u?Ot:Ge;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),He.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var y=[],T,M=d==="mouseout"||d==="mouseover",j=u.target||u.srcElement,te=!1;j;){if(T=this._targets[l(j)],T&&(d==="click"||d==="preclick")&&this._draggableMoved(T)){te=!0;break}if(T&&T.listens(d,!0)&&(M&&!V_(j,u)||(y.push(T),M))||j===this._container)break;j=j.parentNode}return!y.length&&!te&&!M&&this.listens(d,!0)&&(y=[this]),y},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var y=u.type;y==="mousedown"&&F_(d),this._fireDOMEvent(u,y)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,y){if(u.type==="click"){var T=i({},u);T.type="preclick",this._fireDOMEvent(T,T.type,y)}var M=this._findEventTargets(u,d);if(y){for(var j=[],te=0;te<y.length;te++)y[te].listens(d,!0)&&j.push(y[te]);M=j.concat(M)}if(M.length){d==="contextmenu"&&Fn(u);var de=M[0],pe={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Se=de.getLatLng&&(!de._radius||de._radius<=10);pe.containerPoint=Se?this.latLngToContainerPoint(de.getLatLng()):this.mouseEventToContainerPoint(u),pe.layerPoint=this.containerPointToLayerPoint(pe.containerPoint),pe.latlng=Se?de.getLatLng():this.layerPointToLatLng(pe.layerPoint)}for(te=0;te<M.length;te++)if(M[te].fire(d,pe,!0),pe.originalEvent._stopped||M[te].options.bubblingMouseEvents===!1&&E(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,d=this._handlers.length;u<d;u++)this._handlers[u].disable()},whenReady:function(u,d){return this._loaded?u.call(d||this,{target:this}):this.on("load",u,d),this},_getMapPanePos:function(){return ia(this._mapPane)||new K(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var y=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return y.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var y=this.getSize()._divideBy(2);return this.project(u,d)._subtract(y)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,y){var T=this._getNewPixelOrigin(y,d);return this.project(u,d)._subtract(T)},_latLngBoundsToNewLayerBounds:function(u,d,y){var T=this._getNewPixelOrigin(y,d);return ne([this.project(u.getSouthWest(),d)._subtract(T),this.project(u.getNorthWest(),d)._subtract(T),this.project(u.getSouthEast(),d)._subtract(T),this.project(u.getNorthEast(),d)._subtract(T)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,d,y){if(!y)return u;var T=this.project(u,d),M=this.getSize().divideBy(2),j=new B(T.subtract(M),T.add(M)),te=this._getBoundsOffset(j,y,d);return te.round().equals([0,0])?u:this.unproject(T.add(te),d)},_limitOffset:function(u,d){if(!d)return u;var y=this.getPixelBounds(),T=new B(y.min.add(u),y.max.add(u));return u.add(this._getBoundsOffset(T,d))},_getBoundsOffset:function(u,d,y){var T=ne(this.project(d.getNorthEast(),y),this.project(d.getSouthWest(),y)),M=T.min.subtract(u.min),j=T.max.subtract(u.max),te=this._rebound(M.x,-j.x),de=this._rebound(M.y,-j.y);return new K(te,de)},_rebound:function(u,d){return u+d>0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),y=this.getMaxZoom(),T=He.any3d?this.options.zoomSnap:1;return T&&(u=Math.round(u/T)*T),Math.max(d,Math.min(y,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var y=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(y)?!1:(this.panBy(y,d),!0)},_createAnimProxy:function(){var u=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var y=M_,T=this._proxy.style[y];ra(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),T===this._proxy.style[y]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Vt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();ra(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,y){if(this._animatingZoom)return!0;if(y=y||{},!this._zoomAnimated||y.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var T=this.getZoomScale(d),M=this._getCenterOffset(u)._divideBy(1-1/T);return y.animate!==!0&&!this.getSize().contains(M)?!1:(Y(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,y,T){this._mapPane&&(y&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,et(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:T}),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&&tn(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 n$(u,d){return new ct(u,d)}var ui=Z.extend({options:{position:"topright"},initialize:function(u){_(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),y=this.getPosition(),T=u._controlCorners[y];return et(d,"leaflet-control"),y.indexOf("bottom")!==-1?T.insertBefore(d,T.firstChild):T.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Vt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),uu=function(u){return new ui(u)};ct.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",y=this._controlContainer=pt("div",d+"control-container",this._container);function T(M,j){var te=d+M+" "+d+j;u[M+j]=pt("div",te,y)}T("top","left"),T("top","right"),T("bottom","left"),T("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Vt(this._controlCorners[u]);Vt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ST=ui.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,y,T){return y<T?-1:T<y?1:0}},initialize:function(u,d,y){_(this,y),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var T in u)this._addLayer(u[T],T);for(T in d)this._addLayer(d[T],T,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return ui.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,d){return this._addLayer(u,d),this._map?this._update():this},addOverlay:function(u,d){return this._addLayer(u,d,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var d=this._getLayer(l(u));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){et(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(et(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):tn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",d=this._container=pt("div",u),y=this.options.collapsed;d.setAttribute("aria-haspopup",!0),cu(d),U_(d);var T=this._section=pt("section",u+"-list");y&&(this._map.on("click",this.collapse,this),Ge(d,{mouseenter:function(){Ge(T,"click",Fn),this.expand(),setTimeout(function(){Ot(T,"click",Fn)})},mouseleave:this.collapse},this));var M=this._layersLink=pt("a",u+"-toggle",d);M.href="#",M.title="Layers",M.setAttribute("role","button"),Ge(M,"click",Fn),Ge(M,"focus",this.expand,this),y||this.expand(),this._baseLayersList=pt("div",u+"-base",T),this._separator=pt("div",u+"-separator",T),this._overlaysList=pt("div",u+"-overlays",T),d.appendChild(T)},_getLayer:function(u){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&l(this._layers[d].layer)===u)return this._layers[d]},_addLayer:function(u,d,y){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:y}),this.options.sortLayers&&this._layers.sort(s(function(T,M){return this.options.sortFunction(T.layer,M.layer,T.name,M.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;mh(this._baseLayersList),mh(this._overlaysList),this._layerControlInputs=[];var u,d,y,T,M=0;for(y=0;y<this._layers.length;y++)T=this._layers[y],this._addItem(T),d=d||T.overlay,u=u||!T.overlay,M+=T.overlay?0:1;return this.options.hideSingleBase&&(u=u&&M>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),y=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;y&&this._map.fire(y,d)},_createRadioElement:function(u,d){var y='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",T=document.createElement("div");return T.innerHTML=y,T.firstChild},_addItem:function(u){var d=document.createElement("label"),y=this._map.hasLayer(u.layer),T;u.overlay?(T=document.createElement("input"),T.type="checkbox",T.className="leaflet-control-layers-selector",T.defaultChecked=y):T=this._createRadioElement("leaflet-base-layers_"+l(this),y),this._layerControlInputs.push(T),T.layerId=l(u.layer),Ge(T,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+u.name;var j=document.createElement("span");d.appendChild(j),j.appendChild(T),j.appendChild(M);var te=u.overlay?this._overlaysList:this._baseLayersList;return te.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,y,T=[],M=[];this._handlingClick=!0;for(var j=u.length-1;j>=0;j--)d=u[j],y=this._getLayer(d.layerId).layer,d.checked?T.push(y):d.checked||M.push(y);for(j=0;j<M.length;j++)this._map.hasLayer(M[j])&&this._map.removeLayer(M[j]);for(j=0;j<T.length;j++)this._map.hasLayer(T[j])||this._map.addLayer(T[j]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,d,y,T=this._map.getZoom(),M=u.length-1;M>=0;M--)d=u[M],y=this._getLayer(d.layerId).layer,d.disabled=y.options.minZoom!==void 0&&T<y.options.minZoom||y.options.maxZoom!==void 0&&T>y.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),r$=function(u,d,y){return new ST(u,d,y)},H_=ui.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",y=pt("div",d+" leaflet-bar"),T=this.options;return this._zoomInButton=this._createButton(T.zoomInText,T.zoomInTitle,d+"-in",y,this._zoomIn),this._zoomOutButton=this._createButton(T.zoomOutText,T.zoomOutTitle,d+"-out",y,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),y},onRemove:function(u){u.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(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,y,T,M){var j=pt("a",y,T);return j.innerHTML=u,j.href="#",j.title=d,j.setAttribute("role","button"),j.setAttribute("aria-label",d),cu(j),Ge(j,"click",sa),Ge(j,"click",M,this),Ge(j,"click",this._refocusOnMap,this),j},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";tn(this._zoomInButton,d),tn(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(et(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(et(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});ct.mergeOptions({zoomControl:!0}),ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new H_,this.addControl(this.zoomControl))});var i$=function(u){return new H_(u)},CT=ui.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",y=pt("div",d),T=this.options;return this._addScales(T,d+"-line",y),u.on(T.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),y},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,y){u.metric&&(this._mScale=pt("div",d,y)),u.imperial&&(this._iScale=pt("div",d,y))},_update:function(){var u=this._map,d=u.getSize().y/2,y=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(y)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),y=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,y,d/u)},_updateImperial:function(u){var d=u*3.2808399,y,T,M;d>5280?(y=d/5280,T=this._getRoundNum(y),this._updateScale(this._iScale,T+" mi",T/y)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,y){u.style.width=Math.round(this.options.maxWidth*y)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),y=u/d;return y=y>=10?10:y>=5?5:y>=3?3:y>=2?2:1,d*y}}),o$=function(u){return new CT(u)},s$='<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>',W_=ui.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(He.inlineSvg?s$+" ":"")+"Leaflet</a>"},initialize:function(u){_(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),cu(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var y=[];this.options.prefix&&y.push(this.options.prefix),u.length&&y.push(u.join(", ")),this._container.innerHTML=y.join(' <span aria-hidden="true">|</span> ')}}});ct.mergeOptions({attributionControl:!0}),ct.addInitHook(function(){this.options.attributionControl&&new W_().addTo(this)});var a$=function(u){return new W_(u)};ui.Layers=ST,ui.Zoom=H_,ui.Scale=CT,ui.Attribution=W_,uu.layers=r$,uu.zoom=i$,uu.scale=o$,uu.attribution=a$;var Ai=Z.extend({initialize:function(u){this._map=u},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}});Ai.addTo=function(u,d){return u.addHandler(d,this),this};var l$={Events:oe},ET=He.touch?"touchstart mousedown":"mousedown",Vo=ce.extend({options:{clickTolerance:3},initialize:function(u,d,y,T){_(this,T),this._element=u,this._dragStartTarget=d||u,this._preventOutline=y},enable:function(){this._enabled||(Ge(this._dragStartTarget,ET,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Vo._dragging===this&&this.finishDrag(!0),Ot(this._dragStartTarget,ET,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!R_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Vo._dragging===this&&this.finishDrag();return}if(!(Vo._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Vo._dragging=this,this._preventOutline&&F_(this._element),D_(),su(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,y=vT(this._element);this._startPoint=new K(d.clientX,d.clientY),this._startPos=ia(this._element),this._parentScale=$_(y);var T=u.type==="mousedown";Ge(document,T?"mousemove":"touchmove",this._onMove,this),Ge(document,T?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,y=new K(d.clientX,d.clientY)._subtract(this._startPoint);!y.x&&!y.y||Math.abs(y.x)+Math.abs(y.y)<this.options.clickTolerance||(y.x/=this._parentScale.x,y.y/=this._parentScale.y,Fn(u),this._moved||(this.fire("dragstart"),this._moved=!0,et(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),et(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(y),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),un(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){tn(document.body,"leaflet-dragging"),this._lastTarget&&(tn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ot(document,"mousemove touchmove",this._onMove,this),Ot(document,"mouseup touchend touchcancel",this._onUp,this),A_(),au(),this._moved&&this._moving&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,Vo._dragging=!1}});function TT(u,d){if(!d||!u.length)return u.slice();var y=d*d;return u=f$(u,y),u=u$(u,y),u}function OT(u,d,y){return Math.sqrt(fu(u,d,y,!0))}function c$(u,d,y){return fu(u,d,y)}function u$(u,d){var y=u.length,T=typeof Uint8Array!=void 0+""?Uint8Array:Array,M=new T(y);M[0]=M[y-1]=1,Y_(u,M,d,0,y-1);var j,te=[];for(j=0;j<y;j++)M[j]&&te.push(u[j]);return te}function Y_(u,d,y,T,M){var j=0,te,de,pe;for(de=T+1;de<=M-1;de++)pe=fu(u[de],u[T],u[M],!0),pe>j&&(te=de,j=pe);j>y&&(d[te]=1,Y_(u,d,y,T,te),Y_(u,d,y,te,M))}function f$(u,d){for(var y=[u[0]],T=1,M=0,j=u.length;T<j;T++)d$(u[T],u[M])>d&&(y.push(u[T]),M=T);return M<j-1&&y.push(u[j-1]),y}var PT;function kT(u,d,y,T,M){var j=T?PT:aa(u,y),te=aa(d,y),de,pe,Se;for(PT=te;;){if(!(j|te))return[u,d];if(j&te)return!1;de=j||te,pe=bh(u,d,de,y,M),Se=aa(pe,y),de===j?(u=pe,j=Se):(d=pe,te=Se)}}function bh(u,d,y,T,M){var j=d.x-u.x,te=d.y-u.y,de=T.min,pe=T.max,Se,Ae;return y&8?(Se=u.x+j*(pe.y-u.y)/te,Ae=pe.y):y&4?(Se=u.x+j*(de.y-u.y)/te,Ae=de.y):y&2?(Se=pe.x,Ae=u.y+te*(pe.x-u.x)/j):y&1&&(Se=de.x,Ae=u.y+te*(de.x-u.x)/j),new K(Se,Ae,M)}function aa(u,d){var y=0;return u.x<d.min.x?y|=1:u.x>d.max.x&&(y|=2),u.y<d.min.y?y|=4:u.y>d.max.y&&(y|=8),y}function d$(u,d){var y=d.x-u.x,T=d.y-u.y;return y*y+T*T}function fu(u,d,y,T){var M=d.x,j=d.y,te=y.x-M,de=y.y-j,pe=te*te+de*de,Se;return pe>0&&(Se=((u.x-M)*te+(u.y-j)*de)/pe,Se>1?(M=y.x,j=y.y):Se>0&&(M+=te*Se,j+=de*Se)),te=u.x-M,de=u.y-j,T?te*te+de*de:new K(M,j)}function Br(u){return!w(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function MT(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Br(u)}function RT(u,d){var y,T,M,j,te,de,pe,Se;if(!u||u.length===0)throw new Error("latlngs not passed");Br(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ae=[];for(var qe in u)Ae.push(d.project(le(u[qe])));var Xe=Ae.length;for(y=0,T=0;y<Xe-1;y++)T+=Ae[y].distanceTo(Ae[y+1])/2;if(T===0)Se=Ae[0];else for(y=0,j=0;y<Xe-1;y++)if(te=Ae[y],de=Ae[y+1],M=te.distanceTo(de),j+=M,j>T){pe=(j-T)/M,Se=[de.x-pe*(de.x-te.x),de.y-pe*(de.y-te.y)];break}return d.unproject(D(Se))}var h$={__proto__:null,simplify:TT,pointToSegmentDistance:OT,closestPointOnSegment:c$,clipSegment:kT,_getEdgeIntersection:bh,_getBitCode:aa,_sqClosestPointOnSegment:fu,isFlat:Br,_flat:MT,polylineCenter:RT};function NT(u,d,y){var T,M=[1,4,2,8],j,te,de,pe,Se,Ae,qe,Xe;for(j=0,Ae=u.length;j<Ae;j++)u[j]._code=aa(u[j],d);for(de=0;de<4;de++){for(qe=M[de],T=[],j=0,Ae=u.length,te=Ae-1;j<Ae;te=j++)pe=u[j],Se=u[te],pe._code&qe?Se._code&qe||(Xe=bh(Se,pe,qe,d,y),Xe._code=aa(Xe,d),T.push(Xe)):(Se._code&qe&&(Xe=bh(Se,pe,qe,d,y),Xe._code=aa(Xe,d),T.push(Xe)),T.push(pe));u=T}return u}function LT(u,d){var y,T,M,j,te,de,pe,Se,Ae;if(!u||u.length===0)throw new Error("latlngs not passed");Br(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var qe=[];for(var Xe in u)qe.push(d.project(le(u[Xe])));var zr=qe.length;for(de=pe=Se=0,y=0,T=zr-1;y<zr;T=y++)M=qe[y],j=qe[T],te=M.y*j.x-j.y*M.x,pe+=(M.x+j.x)*te,Se+=(M.y+j.y)*te,de+=te*3;return de===0?Ae=qe[0]:Ae=[pe/de,Se/de],d.unproject(D(Ae))}var p$={__proto__:null,clipPolygon:NT,polygonCenter:LT},q_={project:function(u){return new K(u.lng,u.lat)},unproject:function(u){return new re(u.y,u.x)},bounds:new B([-180,-90],[180,90])},G_={R:6378137,R_MINOR:6356752314245179e-9,bounds:new B([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var d=Math.PI/180,y=this.R,T=u.lat*d,M=this.R_MINOR/y,j=Math.sqrt(1-M*M),te=j*Math.sin(T),de=Math.tan(Math.PI/4-T/2)/Math.pow((1-te)/(1+te),j/2);return T=-y*Math.log(Math.max(de,1e-10)),new K(u.lng*d*y,T)},unproject:function(u){for(var d=180/Math.PI,y=this.R,T=this.R_MINOR/y,M=Math.sqrt(1-T*T),j=Math.exp(-u.y/y),te=Math.PI/2-2*Math.atan(j),de=0,pe=.1,Se;de<15&&Math.abs(pe)>1e-7;de++)Se=M*Math.sin(te),Se=Math.pow((1-Se)/(1+Se),M/2),pe=Math.PI/2-2*Math.atan(j*Se)-te,te+=pe;return new re(te*d,u.x*d/y)}},m$={__proto__:null,LonLat:q_,Mercator:G_,SphericalMercator:F},g$=i({},O,{code:"EPSG:3395",projection:G_,transformation:function(){var u=.5/(Math.PI*G_.R);return Q(u,.5,-u,.5)}()}),DT=i({},O,{code:"EPSG:4326",projection:q_,transformation:Q(1/180,1,-1/180,.5)}),v$=i({},me,{projection:q_,transformation:Q(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var y=d.lng-u.lng,T=d.lat-u.lat;return Math.sqrt(y*y+T*T)},infinite:!0});me.Earth=O,me.EPSG3395=g$,me.EPSG3857=se,me.EPSG900913=ve,me.EPSG4326=DT,me.Simple=v$;var fi=ce.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var y=this.getEvents();d.on(y,this),this.once("remove",function(){d.off(y,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});ct.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return l(u)in this._layers},eachLayer:function(u,d){for(var y in this._layers)u.call(d,this._layers[y]);return this},_addLayers:function(u){u=u?w(u)?u:[u]:[];for(var d=0,y=u.length;d<y;d++)this.addLayer(u[d])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var d=l(u);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,d=-1/0,y=this._getZoomSpan();for(var T in this._zoomBoundLayers){var M=this._zoomBoundLayers[T].options;u=M.minZoom===void 0?u:Math.min(u,M.minZoom),d=M.maxZoom===void 0?d:Math.max(d,M.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,y!==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 ml=fi.extend({initialize:function(u,d){_(this,d),this._layers={};var y,T;if(u)for(y=0,T=u.length;y<T;y++)this.addLayer(u[y])},addLayer:function(u){var d=this.getLayerId(u);return this._layers[d]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var d=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(u){var d=typeof u=="number"?u:this.getLayerId(u);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var d=Array.prototype.slice.call(arguments,1),y,T;for(y in this._layers)T=this._layers[y],T[u]&&T[u].apply(T,d);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,d){for(var y in this._layers)u.call(d,this._layers[y]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return l(u)}}),y$=function(u,d){return new ml(u,d)},la=ml.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),ml.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),ml.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new W;for(var d in this._layers){var y=this._layers[d];u.extend(y.getBounds?y.getBounds():y.getLatLng())}return u}}),_$=function(u,d){return new la(u,d)},gl=Z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){_(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,d){var y=this._getIconUrl(u);if(!y){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var T=this._createImg(y,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(T,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(T.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),T},_setIconStyles:function(u,d){var y=this.options,T=y[d+"Size"];typeof T=="number"&&(T=[T,T]);var M=D(T),j=D(d==="shadow"&&y.shadowAnchor||y.iconAnchor||M&&M.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(y.className||""),j&&(u.style.marginLeft=-j.x+"px",u.style.marginTop=-j.y+"px"),M&&(u.style.width=M.x+"px",u.style.height=M.y+"px")},_createImg:function(u,d){return d=d||document.createElement("img"),d.src=u,d},_getIconUrl:function(u){return He.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function b$(u){return new gl(u)}var du=gl.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(u){return typeof du.imagePath!="string"&&(du.imagePath=this._detectIconPath()),(this.options.imagePath||du.imagePath)+gl.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(y,T,M){var j=T.exec(y);return j&&j[M]};return u=d(u,/^url\((['"])?(.+)\1\)$/,2),u&&d(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=pt("div","leaflet-default-icon-path",document.body),d=ou(u,"background-image")||ou(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var y=document.querySelector('link[href$="leaflet.css"]');return y?y.href.substring(0,y.href.length-11-1):""}}),AT=Ai.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new Vo(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),et(u,"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&&tn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var d=this._marker,y=d._map,T=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,j=ia(d._icon),te=y.getPixelBounds(),de=y.getPixelOrigin(),pe=ne(te.min._subtract(de).add(M),te.max._subtract(de).subtract(M));if(!pe.contains(j)){var Se=D((Math.max(pe.max.x,j.x)-pe.max.x)/(te.max.x-pe.max.x)-(Math.min(pe.min.x,j.x)-pe.min.x)/(te.min.x-pe.min.x),(Math.max(pe.max.y,j.y)-pe.max.y)/(te.max.y-pe.max.y)-(Math.min(pe.min.y,j.y)-pe.min.y)/(te.min.y-pe.min.y)).multiplyBy(T);y.panBy(Se,{animate:!1}),this._draggable._newPos._add(Se),this._draggable._startPos._add(Se),un(d._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=Y(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(q(this._panRequest),this._panRequest=Y(this._adjustPan.bind(this,u)))},_onDrag:function(u){var d=this._marker,y=d._shadow,T=ia(d._icon),M=d._map.layerPointToLatLng(T);y&&un(y,T),d._latlng=M,u.latlng=M,u.oldLatLng=this._oldLatLng,d.fire("move",u).fire("drag",u)},_onDragEnd:function(u){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),wh=fi.extend({options:{icon:new du,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(u,d){_(this,d),this._latlng=le(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.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(u){var d=this._latlng;return this._latlng=le(u),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,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 u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),y=u.icon.createIcon(this._icon),T=!1;y!==this._icon&&(this._icon&&this._removeIcon(),T=!0,u.title&&(y.title=u.title),y.tagName==="IMG"&&(y.alt=u.alt||"")),et(y,d),u.keyboard&&(y.tabIndex="0",y.setAttribute("role","button")),this._icon=y,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ge(y,"focus",this._panOnFocus,this);var M=u.icon.createShadow(this._shadow),j=!1;M!==this._shadow&&(this._removeShadow(),j=!0),M&&(et(M,d),M.alt=""),this._shadow=M,u.opacity<1&&this._updateOpacity(),T&&this.getPane().appendChild(this._icon),this._initInteraction(),M&&j&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ot(this._icon,"focus",this._panOnFocus,this),Vt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Vt(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&un(this._icon,u),this._shadow&&un(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(et(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),AT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new AT(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&jr(this._icon,u),this._shadow&&jr(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var d=this.options.icon.options,y=d.iconSize?D(d.iconSize):D(0,0),T=d.iconAnchor?D(d.iconAnchor):D(0,0);u.panInside(this._latlng,{paddingTopLeft:T,paddingBottomRight:y.subtract(T)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function w$(u,d){return new wh(u,d)}var Ho=fi.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(u){this._renderer=u.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(u){return _(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"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)}}),xh=Ho.extend({options:{fill:!0,radius:10},initialize:function(u,d){_(this,d),this._latlng=le(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=le(u),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var d=u&&u.radius||this._radius;return Ho.prototype.setStyle.call(this,u),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,d=this._radiusY||u,y=this._clickTolerance(),T=[u+y,d+y];this._pxBounds=new B(this._point.subtract(T),this._point.add(T))},_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(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function x$(u,d){return new xh(u,d)}var Z_=xh.extend({initialize:function(u,d,y){if(typeof d=="number"&&(d=i({},y,{radius:d})),_(this,d),this._latlng=le(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new W(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:Ho.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,y=this._map,T=y.options.crs;if(T.distance===O.distance){var M=Math.PI/180,j=this._mRadius/O.R/M,te=y.project([d+j,u]),de=y.project([d-j,u]),pe=te.add(de).divideBy(2),Se=y.unproject(pe).lat,Ae=Math.acos((Math.cos(j*M)-Math.sin(d*M)*Math.sin(Se*M))/(Math.cos(d*M)*Math.cos(Se*M)))/M;(isNaN(Ae)||Ae===0)&&(Ae=j/Math.cos(Math.PI/180*d)),this._point=pe.subtract(y.getPixelOrigin()),this._radius=isNaN(Ae)?0:pe.x-y.project([Se,u-Ae]).x,this._radiusY=pe.y-te.y}else{var qe=T.unproject(T.project(this._latlng).subtract([this._mRadius,0]));this._point=y.latLngToLayerPoint(this._latlng),this._radius=this._point.x-y.latLngToLayerPoint(qe).x}this._updateBounds()}});function S$(u,d,y){return new Z_(u,d,y)}var oo=Ho.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,d){_(this,d),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var d=1/0,y=null,T=fu,M,j,te=0,de=this._parts.length;te<de;te++)for(var pe=this._parts[te],Se=1,Ae=pe.length;Se<Ae;Se++){M=pe[Se-1],j=pe[Se];var qe=T(u,M,j,!0);qe<d&&(d=qe,y=T(u,M,j))}return y&&(y.distance=Math.sqrt(d)),y},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return RT(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=le(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new W,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Br(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],y=Br(u),T=0,M=u.length;T<M;T++)y?(d[T]=le(u[T]),this._bounds.extend(d[T])):d[T]=this._convertLatLngs(u[T]);return d},_project:function(){var u=new B;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),d=new K(u,u);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,y){var T=u[0]instanceof re,M=u.length,j,te;if(T){for(te=[],j=0;j<M;j++)te[j]=this._map.latLngToLayerPoint(u[j]),y.extend(te[j]);d.push(te)}else for(j=0;j<M;j++)this._projectLatlngs(u[j],d,y)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,y,T,M,j,te,de,pe;for(y=0,M=0,j=this._rings.length;y<j;y++)for(pe=this._rings[y],T=0,te=pe.length;T<te-1;T++)de=kT(pe[T],pe[T+1],u,T,!0),de&&(d[M]=d[M]||[],d[M].push(de[0]),(de[1]!==pe[T+1]||T===te-2)&&(d[M].push(de[1]),M++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,y=0,T=u.length;y<T;y++)u[y]=TT(u[y],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var y,T,M,j,te,de,pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(y=0,j=this._parts.length;y<j;y++)for(de=this._parts[y],T=0,te=de.length,M=te-1;T<te;M=T++)if(!(!d&&T===0)&&OT(u,de[M],de[T])<=pe)return!0;return!1}});function C$(u,d){return new oo(u,d)}oo._flat=MT;var vl=oo.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 LT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=oo.prototype._convertLatLngs.call(this,u),y=d.length;return y>=2&&d[0]instanceof re&&d[0].equals(d[y-1])&&d.pop(),d},_setLatLngs:function(u){oo.prototype._setLatLngs.call(this,u),Br(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Br(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,y=new K(d,d);if(u=new B(u.min.subtract(y),u.max.add(y)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var T=0,M=this._rings.length,j;T<M;T++)j=NT(this._rings[T],u,!0),j.length&&this._parts.push(j)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,y,T,M,j,te,de,pe,Se;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(j=0,pe=this._parts.length;j<pe;j++)for(y=this._parts[j],te=0,Se=y.length,de=Se-1;te<Se;de=te++)T=y[te],M=y[de],T.y>u.y!=M.y>u.y&&u.x<(M.x-T.x)*(u.y-T.y)/(M.y-T.y)+T.x&&(d=!d);return d||oo.prototype._containsPoint.call(this,u,!0)}});function E$(u,d){return new vl(u,d)}var so=la.extend({initialize:function(u,d){_(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=w(u)?u:u.features,y,T,M;if(d){for(y=0,T=d.length;y<T;y++)M=d[y],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var j=this.options;if(j.filter&&!j.filter(u))return this;var te=Sh(u,j);return te?(te.feature=Th(u),te.defaultOptions=te.options,this.resetStyle(te),j.onEachFeature&&j.onEachFeature(u,te),this.addLayer(te)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=i({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(d){this._setLayerStyle(d,u)},this)},_setLayerStyle:function(u,d){u.setStyle&&(typeof d=="function"&&(d=d(u.feature)),u.setStyle(d))}});function Sh(u,d){var y=u.type==="Feature"?u.geometry:u,T=y?y.coordinates:null,M=[],j=d&&d.pointToLayer,te=d&&d.coordsToLatLng||K_,de,pe,Se,Ae;if(!T&&!y)return null;switch(y.type){case"Point":return de=te(T),IT(j,u,de,d);case"MultiPoint":for(Se=0,Ae=T.length;Se<Ae;Se++)de=te(T[Se]),M.push(IT(j,u,de,d));return new la(M);case"LineString":case"MultiLineString":return pe=Ch(T,y.type==="LineString"?0:1,te),new oo(pe,d);case"Polygon":case"MultiPolygon":return pe=Ch(T,y.type==="Polygon"?1:2,te),new vl(pe,d);case"GeometryCollection":for(Se=0,Ae=y.geometries.length;Se<Ae;Se++){var qe=Sh({geometry:y.geometries[Se],type:"Feature",properties:u.properties},d);qe&&M.push(qe)}return new la(M);case"FeatureCollection":for(Se=0,Ae=y.features.length;Se<Ae;Se++){var Xe=Sh(y.features[Se],d);Xe&&M.push(Xe)}return new la(M);default:throw new Error("Invalid GeoJSON object.")}}function IT(u,d,y,T){return u?u(d,y):new wh(y,T&&T.markersInheritOptions&&T)}function K_(u){return new re(u[1],u[0],u[2])}function Ch(u,d,y){for(var T=[],M=0,j=u.length,te;M<j;M++)te=d?Ch(u[M],d-1,y):(y||K_)(u[M]),T.push(te);return T}function X_(u,d){return u=le(u),u.alt!==void 0?[p(u.lng,d),p(u.lat,d),p(u.alt,d)]:[p(u.lng,d),p(u.lat,d)]}function Eh(u,d,y,T){for(var M=[],j=0,te=u.length;j<te;j++)M.push(d?Eh(u[j],Br(u[j])?0:d-1,y,T):X_(u[j],T));return!d&&y&&M.push(M[0]),M}function yl(u,d){return u.feature?i({},u.feature,{geometry:d}):Th(d)}function Th(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var Q_={toGeoJSON:function(u){return yl(this,{type:"Point",coordinates:X_(this.getLatLng(),u)})}};wh.include(Q_),Z_.include(Q_),xh.include(Q_),oo.include({toGeoJSON:function(u){var d=!Br(this._latlngs),y=Eh(this._latlngs,d?1:0,!1,u);return yl(this,{type:(d?"Multi":"")+"LineString",coordinates:y})}}),vl.include({toGeoJSON:function(u){var d=!Br(this._latlngs),y=d&&!Br(this._latlngs[0]),T=Eh(this._latlngs,y?2:d?1:0,!0,u);return d||(T=[T]),yl(this,{type:(y?"Multi":"")+"Polygon",coordinates:T})}}),ml.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(y){d.push(y.toGeoJSON(u).geometry.coordinates)}),yl(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(u){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(u);var y=d==="GeometryCollection",T=[];return this.eachLayer(function(M){if(M.toGeoJSON){var j=M.toGeoJSON(u);if(y)T.push(j.geometry);else{var te=Th(j);te.type==="FeatureCollection"?T.push.apply(T,te.features):T.push(te)}}}),y?yl(this,{geometries:T,type:"GeometryCollection"}):{type:"FeatureCollection",features:T}}});function FT(u,d){return new so(u,d)}var T$=FT,Oh=fi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,y){this._url=u,this._bounds=G(d),_(this,y)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(et(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Vt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&hl(this._image),this},bringToBack:function(){return this._map&&pl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=G(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",d=this._image=u?this._url:pt("img");if(et(d,"leaflet-image-layer"),this._zoomAnimated&&et(d,"leaflet-zoom-animated"),this.options.className&&et(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onload=s(this.fire,this,"load"),d.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(u){var d=this._map.getZoomScale(u.zoom),y=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;ra(this._image,y,d)},_reset:function(){var u=this._image,d=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),y=d.getSize();un(u,d.min),u.style.width=y.x+"px",u.style.height=y.y+"px"},_updateOpacity:function(){jr(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 u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),O$=function(u,d,y){return new Oh(u,d,y)},$T=Oh.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",d=this._image=u?this._url:pt("video");if(et(d,"leaflet-image-layer"),this._zoomAnimated&&et(d,"leaflet-zoom-animated"),this.options.className&&et(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onloadeddata=s(this.fire,this,"load"),u){for(var y=d.getElementsByTagName("source"),T=[],M=0;M<y.length;M++)T.push(y[M].src);this._url=y.length>0?T:[d.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var j=0;j<this._url.length;j++){var te=pt("source");te.src=this._url[j],d.appendChild(te)}}});function P$(u,d,y){return new $T(u,d,y)}var jT=Oh.extend({_initImage:function(){var u=this._image=this._url;et(u,"leaflet-image-layer"),this._zoomAnimated&&et(u,"leaflet-zoom-animated"),this.options.className&&et(u,this.options.className),u.onselectstart=h,u.onmousemove=h}});function k$(u,d,y){return new jT(u,d,y)}var Ii=fi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof L.LatLng||w(u))?(this._latlng=le(u),_(this,d)):(_(this,u),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&jr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&jr(this._container,1),this.bringToFront(),this.options.interactive&&(et(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(jr(this._container,0),this._removeTimeout=setTimeout(s(Vt,void 0,this._container),200)):Vt(this._container),this.options.interactive&&(tn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=le(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,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 u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&hl(this._container),this},bringToBack:function(){return this._map&&pl(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof la){d=null;var y=this._source._layers;for(var T in y)if(y[T]._map){d=y[T];break}if(!d)return!1;this._source=d}if(!u)if(d.getCenter)u=d.getCenter();else if(d.getLatLng)u=d.getLatLng();else if(d.getBounds)u=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")u.innerHTML=d;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),d=D(this.options.offset),y=this._getAnchor();this._zoomAnimated?un(this._container,u.add(y)):d=d.add(u).add(y);var T=this._containerBottom=-d.y,M=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=T+"px",this._container.style.left=M+"px"}},_getAnchor:function(){return[0,0]}});ct.include({_initOverlay:function(u,d,y,T){var M=d;return M instanceof u||(M=new u(T).setContent(d)),y&&M.setLatLng(y),M}}),fi.include({_initOverlay:function(u,d,y,T){var M=y;return M instanceof u?(_(M,T),M._source=this):(M=d&&!T?d:new u(T,this),M.setContent(y)),M}});var Ph=Ii.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(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,Ii.prototype.openOn.call(this,u)},onAdd:function(u){Ii.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ho||this._source.on("preclick",oa))},onRemove:function(u){Ii.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ho||this._source.off("preclick",oa))},getEvents:function(){var u=Ii.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",d=this._container=pt("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),y=this._wrapper=pt("div",u+"-content-wrapper",d);if(this._contentNode=pt("div",u+"-content",y),cu(d),U_(this._contentNode),Ge(d,"contextmenu",oa),this._tipContainer=pt("div",u+"-tip-container",d),this._tip=pt("div",u+"-tip",this._tipContainer),this.options.closeButton){var T=this._closeButton=pt("a",u+"-close-button",d);T.setAttribute("role","button"),T.setAttribute("aria-label","Close popup"),T.href="#close",T.innerHTML='<span aria-hidden="true">×</span>',Ge(T,"click",function(M){Fn(M),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,d=u.style;d.width="",d.whiteSpace="nowrap";var y=u.offsetWidth;y=Math.min(y,this.options.maxWidth),y=Math.max(y,this.options.minWidth),d.width=y+1+"px",d.whiteSpace="",d.height="";var T=u.offsetHeight,M=this.options.maxHeight,j="leaflet-popup-scrolled";M&&T>M?(d.height=M+"px",et(u,j)):tn(u,j),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),y=this._getAnchor();un(this._container,d.add(y))},_adjustPan:function(u){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var d=this._map,y=parseInt(ou(this._container,"marginBottom"),10)||0,T=this._container.offsetHeight+y,M=this._containerWidth,j=new K(this._containerLeft,-T-this._containerBottom);j._add(ia(this._container));var te=d.layerPointToContainerPoint(j),de=D(this.options.autoPanPadding),pe=D(this.options.autoPanPaddingTopLeft||de),Se=D(this.options.autoPanPaddingBottomRight||de),Ae=d.getSize(),qe=0,Xe=0;te.x+M+Se.x>Ae.x&&(qe=te.x+M-Ae.x+Se.x),te.x-qe-pe.x<0&&(qe=te.x-pe.x),te.y+T+Se.y>Ae.y&&(Xe=te.y+T-Ae.y+Se.y),te.y-Xe-pe.y<0&&(Xe=te.y-pe.y),(qe||Xe)&&d.fire("autopanstart").panBy([qe,Xe],{animate:u&&u.type==="moveend"})}},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),M$=function(u,d){return new Ph(u,d)};ct.mergeOptions({closePopupOnClick:!0}),ct.include({openPopup:function(u,d,y){return this._initOverlay(Ph,u,d,y).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),fi.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Ph,this._popup,u,d),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(u){return this._popup&&this._popup._prepareOpen(u||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(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){sa(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof Ho)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var kh=Ii.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ii.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Ii.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Ii.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,y,T=this._map,M=this._container,j=T.latLngToContainerPoint(T.getCenter()),te=T.layerPointToContainerPoint(u),de=this.options.direction,pe=M.offsetWidth,Se=M.offsetHeight,Ae=D(this.options.offset),qe=this._getAnchor();de==="top"?(d=pe/2,y=Se):de==="bottom"?(d=pe/2,y=0):de==="center"?(d=pe/2,y=Se/2):de==="right"?(d=0,y=Se/2):de==="left"?(d=pe,y=Se/2):te.x<j.x?(de="right",d=0,y=Se/2):(de="left",d=pe+(Ae.x+qe.x)*2,y=Se/2),u=u.subtract(D(d,y,!0)).add(Ae).add(qe),tn(M,"leaflet-tooltip-right"),tn(M,"leaflet-tooltip-left"),tn(M,"leaflet-tooltip-top"),tn(M,"leaflet-tooltip-bottom"),et(M,"leaflet-tooltip-"+de),un(M,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&jr(this._container,u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(d)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),R$=function(u,d){return new kh(u,d)};ct.include({openTooltip:function(u,d,y){return this._initOverlay(kh,u,d,y).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),fi.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(kh,this._tooltip,u,d),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(u){if(!(!u&&this._tooltipHandlersAdded)){var d=u?"off":"on",y={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?y.add=this._openTooltip:(y.mouseover=this._openTooltip,y.mouseout=this.closeTooltip,y.click=this._openTooltip,this._map?this._addFocusListeners():y.add=this._addFocusListeners),this._tooltip.options.sticky&&(y.mousemove=this._moveTooltip),this[d](y),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&this._tooltip._prepareOpen(u)&&(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(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var d=u.getElement();d&&(Ge(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ge(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0))},_moveTooltip:function(u){var d=u.latlng,y,T;this._tooltip.options.sticky&&u.originalEvent&&(y=this._map.mouseEventToContainerPoint(u.originalEvent),T=this._map.containerPointToLayerPoint(y),d=this._map.layerPointToLatLng(T)),this._tooltip.setLatLng(d)}});var BT=gl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var d=u&&u.tagName==="DIV"?u:document.createElement("div"),y=this.options;if(y.html instanceof Element?(mh(d),d.appendChild(y.html)):d.innerHTML=y.html!==!1?y.html:"",y.bgPos){var T=D(y.bgPos);d.style.backgroundPosition=-T.x+"px "+-T.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function N$(u){return new BT(u)}gl.Default=du;var hu=fi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:He.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(u){_(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Vt(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(hl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={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)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof K?u:new K(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var d=this.getPane().children,y=-u(-1/0,1/0),T=0,M=d.length,j;T<M;T++)j=d[T].style.zIndex,d[T]!==this._container&&j&&(y=u(y,+j));isFinite(y)&&(this.options.zIndex=y+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!He.ielt9){jr(this._container,this.options.opacity);var u=+new Date,d=!1,y=!1;for(var T in this._tiles){var M=this._tiles[T];if(!(!M.current||!M.loaded)){var j=Math.min(1,(u-M.loaded)/200);jr(M.el,j),j<1?d=!0:(M.active?y=!0:this._onOpaqueTile(M),M.active=!0)}}y&&!this._noPrune&&this._pruneTiles(),d&&(q(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,d=this.options.maxZoom;if(u!==void 0){for(var y in this._levels)y=Number(y),this._levels[y].el.children.length||y===u?(this._levels[y].el.style.zIndex=d-Math.abs(u-y),this._onUpdateLevel(y)):(Vt(this._levels[y].el),this._removeTilesAtZoom(y),this._onRemoveLevel(y),delete this._levels[y]);var T=this._levels[u],M=this._map;return T||(T=this._levels[u]={},T.el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),T.el.style.zIndex=d,T.origin=M.project(M.unproject(M.getPixelOrigin()),u).round(),T.zoom=u,this._setZoomTransform(T,M.getCenter(),M.getZoom()),h(T.el.offsetWidth),this._onCreateLevel(T)),this._level=T,T}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,d,y=this._map.getZoom();if(y>this.options.maxZoom||y<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)d=this._tiles[u],d.retain=d.current;for(u in this._tiles)if(d=this._tiles[u],d.current&&!d.active){var T=d.coords;this._retainParent(T.x,T.y,T.z,T.z-5)||this._retainChildren(T.x,T.y,T.z,T.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var d in this._tiles)this._tiles[d].coords.z===u&&this._removeTile(d)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Vt(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,d,y,T){var M=Math.floor(u/2),j=Math.floor(d/2),te=y-1,de=new K(+M,+j);de.z=+te;var pe=this._tileCoordsToKey(de),Se=this._tiles[pe];return Se&&Se.active?(Se.retain=!0,!0):(Se&&Se.loaded&&(Se.retain=!0),te>T?this._retainParent(M,j,te,T):!1)},_retainChildren:function(u,d,y,T){for(var M=2*u;M<2*u+2;M++)for(var j=2*d;j<2*d+2;j++){var te=new K(M,j);te.z=y+1;var de=this._tileCoordsToKey(te),pe=this._tiles[de];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);y+1<T&&this._retainChildren(M,j,y+1,T)}},_resetView:function(u){var d=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var d=this.options;return d.minNativeZoom!==void 0&&u<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<u?d.maxNativeZoom:u},_setView:function(u,d,y,T){var M=Math.round(d);this.options.maxZoom!==void 0&&M>this.options.maxZoom||this.options.minZoom!==void 0&&M<this.options.minZoom?M=void 0:M=this._clampZoom(M);var j=this.options.updateWhenZooming&&M!==this._tileZoom;(!T||j)&&(this._tileZoom=M,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),M!==void 0&&this._update(u),y||this._pruneTiles(),this._noPrune=!!y),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var y in this._levels)this._setZoomTransform(this._levels[y],u,d)},_setZoomTransform:function(u,d,y){var T=this._map.getZoomScale(y,u.zoom),M=u.origin.multiplyBy(T).subtract(this._map._getNewPixelOrigin(d,y)).round();He.any3d?ra(u.el,M,T):un(u.el,M)},_resetGrid:function(){var u=this._map,d=u.options.crs,y=this._tileSize=this.getTileSize(),T=this._tileZoom,M=this._map.getPixelWorldBounds(this._tileZoom);M&&(this._globalTileRange=this._pxBoundsToTileRange(M)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,d.wrapLng[0]],T).x/y.x),Math.ceil(u.project([0,d.wrapLng[1]],T).x/y.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],T).y/y.x),Math.ceil(u.project([d.wrapLat[1],0],T).y/y.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,y=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),T=d.getZoomScale(y,this._tileZoom),M=d.project(u,this._tileZoom).floor(),j=d.getSize().divideBy(T*2);return new B(M.subtract(j),M.add(j))},_update:function(u){var d=this._map;if(d){var y=this._clampZoom(d.getZoom());if(u===void 0&&(u=d.getCenter()),this._tileZoom!==void 0){var T=this._getTiledPixelBounds(u),M=this._pxBoundsToTileRange(T),j=M.getCenter(),te=[],de=this.options.keepBuffer,pe=new B(M.getBottomLeft().subtract([de,-de]),M.getTopRight().add([de,-de]));if(!(isFinite(M.min.x)&&isFinite(M.min.y)&&isFinite(M.max.x)&&isFinite(M.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Se in this._tiles){var Ae=this._tiles[Se].coords;(Ae.z!==this._tileZoom||!pe.contains(new K(Ae.x,Ae.y)))&&(this._tiles[Se].current=!1)}if(Math.abs(y-this._tileZoom)>1){this._setView(u,y);return}for(var qe=M.min.y;qe<=M.max.y;qe++)for(var Xe=M.min.x;Xe<=M.max.x;Xe++){var zr=new K(Xe,qe);if(zr.z=this._tileZoom,!!this._isValidTile(zr)){var ca=this._tiles[this._tileCoordsToKey(zr)];ca?ca.current=!0:te.push(zr)}}if(te.sort(function(Wo,J_){return Wo.distanceTo(j)-J_.distanceTo(j)}),te.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Rh=document.createDocumentFragment();for(Xe=0;Xe<te.length;Xe++)this._addTile(te[Xe],Rh);this._level.el.appendChild(Rh)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var y=this._globalTileRange;if(!d.wrapLng&&(u.x<y.min.x||u.x>y.max.x)||!d.wrapLat&&(u.y<y.min.y||u.y>y.max.y))return!1}if(!this.options.bounds)return!0;var T=this._tileCoordsToBounds(u);return G(this.options.bounds).overlaps(T)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,y=this.getTileSize(),T=u.scaleBy(y),M=T.add(y),j=d.unproject(T,u.z),te=d.unproject(M,u.z);return[j,te]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),y=new W(d[0],d[1]);return this.options.noWrap||(y=this._map.wrapLatLngBounds(y)),y},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),y=new K(+d[0],+d[1]);return y.z=+d[2],y},_removeTile:function(u){var d=this._tiles[u];d&&(Vt(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){et(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,He.ielt9&&this.options.opacity<1&&jr(u,this.options.opacity)},_addTile:function(u,d){var y=this._getTilePos(u),T=this._tileCoordsToKey(u),M=this.createTile(this._wrapCoords(u),s(this._tileReady,this,u));this._initTile(M),this.createTile.length<2&&Y(s(this._tileReady,this,u,null,M)),un(M,y),this._tiles[T]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,y){d&&this.fire("tileerror",{error:d,tile:y,coords:u});var T=this._tileCoordsToKey(u);y=this._tiles[T],y&&(y.loaded=+new Date,this._map._fadeAnimated?(jr(y.el,0),q(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(y.active=!0,this._pruneTiles()),d||(et(y.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:y.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),He.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new K(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function L$(u){return new hu(u)}var _l=hu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=_(this,d),d.detectRetina&&He.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var y=document.createElement("img");return Ge(y,"load",s(this._tileOnLoad,this,d,y)),Ge(y,"error",s(this._tileOnError,this,d,y)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(y.referrerPolicy=this.options.referrerPolicy),y.alt="",y.src=this.getTileUrl(u),y},getTileUrl:function(u){var d={r:He.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var y=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=y),d["-y"]=y}return b(this._url,i(d,this.options))},_tileOnLoad:function(u,d){He.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,y){var T=this.options.errorTileUrl;T&&d.getAttribute("src")!==T&&(d.src=T),u(y,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,y=this.options.zoomReverse,T=this.options.zoomOffset;return y&&(u=d-u),u+T},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=P;var y=this._tiles[u].coords;Vt(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:y})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),hu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,y){if(!(!this._map||y&&y.getAttribute("src")===P))return hu.prototype._tileReady.call(this,u,d,y)}});function zT(u,d){return new _l(u,d)}var UT=_l.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var y=i({},this.defaultWmsParams);for(var T in d)T in this.options||(y[T]=d[T]);d=_(this,d);var M=d.detectRetina&&He.retina?2:1,j=this.getTileSize();y.width=j.x*M,y.height=j.y*M,this.wmsParams=y},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,_l.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),y=this._crs,T=ne(y.project(d[0]),y.project(d[1])),M=T.min,j=T.max,te=(this._wmsVersion>=1.3&&this._crs===DT?[M.y,M.x,j.y,j.x]:[M.x,M.y,j.x,j.y]).join(","),de=_l.prototype.getTileUrl.call(this,u);return de+x(this.wmsParams,de,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+te},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function D$(u,d){return new UT(u,d)}_l.WMS=UT,zT.wms=D$;var ao=fi.extend({options:{padding:.1},initialize:function(u){_(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&et(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 u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var y=this._map.getZoomScale(d,this._zoom),T=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),j=T.multiplyBy(-y).add(M).subtract(this._map._getNewPixelOrigin(u,d));He.any3d?ra(this._container,j,y):un(this._container,j)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),y=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(y,y.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),VT=ao.extend({options:{tolerance:0},getEvents:function(){var u=ao.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ao.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ge(u,"mousemove",this._onMouseMove,this),Ge(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ge(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,Vt(this._container),Ot(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ao.prototype._update.call(this);var u=this._bounds,d=this._container,y=u.getSize(),T=He.retina?2:1;un(d,u.min),d.width=T*y.x,d.height=T*y.y,d.style.width=y.x+"px",d.style.height=y.y+"px",He.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){ao.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,y=d.next,T=d.prev;y?y.prev=T:this._drawLast=T,T?T.next=y:this._drawFirst=y,delete u._order,delete this._layers[l(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),y=[],T,M;for(M=0;M<d.length;M++){if(T=Number(d[M]),isNaN(T))return;y.push(T)}u.options._dashArray=y}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||Y(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var d=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B,this._redrawBounds.extend(u._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(u._pxBounds.max.add([d,d]))}},_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 u=this._redrawBounds;if(u){var d=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,d.x,d.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 u,d=this._redrawBounds;if(this._ctx.save(),d){var y=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,y.x,y.y),this._ctx.clip()}this._drawing=!0;for(var T=this._drawFirst;T;T=T.next)u=T.layer,(!d||u._pxBounds&&u._pxBounds.intersects(d))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,d){if(this._drawing){var y,T,M,j,te=u._parts,de=te.length,pe=this._ctx;if(de){for(pe.beginPath(),y=0;y<de;y++){for(T=0,M=te[y].length;T<M;T++)j=te[y][T],pe[T?"lineTo":"moveTo"](j.x,j.y);d&&pe.closePath()}this._fillStroke(pe,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var d=u._point,y=this._ctx,T=Math.max(Math.round(u._radius),1),M=(Math.max(Math.round(u._radiusY),1)||T)/T;M!==1&&(y.save(),y.scale(1,M)),y.beginPath(),y.arc(d.x,d.y/M,T,0,Math.PI*2,!1),M!==1&&y.restore(),this._fillStroke(y,u)}},_fillStroke:function(u,d){var y=d.options;y.fill&&(u.globalAlpha=y.fillOpacity,u.fillStyle=y.fillColor||y.color,u.fill(y.fillRule||"evenodd")),y.stroke&&y.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=y.opacity,u.lineWidth=y.weight,u.strokeStyle=y.color,u.lineCap=y.lineCap,u.lineJoin=y.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),y,T,M=this._drawFirst;M;M=M.next)y=M.layer,y.options.interactive&&y._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(y))&&(T=y);this._fireEvent(T?[T]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,d)}},_handleMouseOut:function(u){var d=this._hoveredLayer;d&&(tn(this._container,"leaflet-interactive"),this._fireEvent([d],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,d){if(!this._mouseHoverThrottled){for(var y,T,M=this._drawFirst;M;M=M.next)y=M.layer,y.options.interactive&&y._containsPoint(d)&&(T=y);T!==this._hoveredLayer&&(this._handleMouseOut(u),T&&(et(this._container,"leaflet-interactive"),this._fireEvent([T],u,"mouseover"),this._hoveredLayer=T)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,d,y){this._map._fireDOMEvent(d,y||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var y=d.next,T=d.prev;if(y)y.prev=T;else return;T?T.next=y:y&&(this._drawFirst=y),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(u)}},_bringToBack:function(u){var d=u._order;if(d){var y=d.next,T=d.prev;if(T)T.next=y;else return;y?y.prev=T:T&&(this._drawLast=T),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function HT(u){return He.canvas?new VT(u):null}var pu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),A$={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ao.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=pu("shape");et(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=pu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;Vt(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,y=u._fill,T=u.options,M=u._container;M.stroked=!!T.stroke,M.filled=!!T.fill,T.stroke?(d||(d=u._stroke=pu("stroke")),M.appendChild(d),d.weight=T.weight+"px",d.color=T.color,d.opacity=T.opacity,T.dashArray?d.dashStyle=w(T.dashArray)?T.dashArray.join(" "):T.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=T.lineCap.replace("butt","flat"),d.joinstyle=T.lineJoin):d&&(M.removeChild(d),u._stroke=null),T.fill?(y||(y=u._fill=pu("fill")),M.appendChild(y),y.color=T.fillColor||T.color,y.opacity=T.fillOpacity):y&&(M.removeChild(y),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),y=Math.round(u._radius),T=Math.round(u._radiusY||y);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+y+","+T+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){hl(u._container)},_bringToBack:function(u){pl(u._container)}},Mh=He.vml?pu:Le,mu=ao.extend({_initContainer:function(){this._container=Mh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Mh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Vt(this._container),Ot(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ao.prototype._update.call(this);var u=this._bounds,d=u.getSize(),y=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,y.setAttribute("width",d.x),y.setAttribute("height",d.y)),un(y,u.min),y.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Mh("path");u.options.className&&et(d,u.options.className),u.options.interactive&&et(d,"leaflet-interactive"),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Vt(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,y=u.options;d&&(y.stroke?(d.setAttribute("stroke",y.color),d.setAttribute("stroke-opacity",y.opacity),d.setAttribute("stroke-width",y.weight),d.setAttribute("stroke-linecap",y.lineCap),d.setAttribute("stroke-linejoin",y.lineJoin),y.dashArray?d.setAttribute("stroke-dasharray",y.dashArray):d.removeAttribute("stroke-dasharray"),y.dashOffset?d.setAttribute("stroke-dashoffset",y.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),y.fill?(d.setAttribute("fill",y.fillColor||y.color),d.setAttribute("fill-opacity",y.fillOpacity),d.setAttribute("fill-rule",y.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,fe(u._parts,d))},_updateCircle:function(u){var d=u._point,y=Math.max(Math.round(u._radius),1),T=Math.max(Math.round(u._radiusY),1)||y,M="a"+y+","+T+" 0 1,0 ",j=u._empty()?"M0 0":"M"+(d.x-y)+","+d.y+M+y*2+",0 "+M+-y*2+",0 ";this._setPath(u,j)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){hl(u._path)},_bringToBack:function(u){pl(u._path)}});He.vml&&mu.include(A$);function WT(u){return He.svg||He.vml?new mu(u):null}ct.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&HT(u)||WT(u)}});var YT=vl.extend({initialize:function(u,d){vl.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=G(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function I$(u,d){return new YT(u,d)}mu.create=Mh,mu.pointsToPath=fe,so.geometryToLayer=Sh,so.coordsToLatLng=K_,so.coordsToLatLngs=Ch,so.latLngToCoords=X_,so.latLngsToCoords=Eh,so.getFeature=yl,so.asFeature=Th,ct.mergeOptions({boxZoom:!0});var qT=Ai.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ge(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ot(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Vt(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(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),su(),D_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ge(document,{contextmenu:sa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),et(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),y=d.getSize();un(this._box,d.min),this._box.style.width=y.x+"px",this._box.style.height=y.y+"px"},_finish:function(){this._moved&&(Vt(this._box),tn(this._container,"leaflet-crosshair")),au(),A_(),Ot(document,{contextmenu:sa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var d=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ct.addInitHook("addHandler","boxZoom",qT),ct.mergeOptions({doubleClickZoom:!0});var GT=Ai.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,y=d.getZoom(),T=d.options.zoomDelta,M=u.originalEvent.shiftKey?y-T:y+T;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});ct.addInitHook("addHandler","doubleClickZoom",GT),ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ZT=Ai.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Vo(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}et(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tn(this._map._container,"leaflet-grab"),tn(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 u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=G(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,y=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(y),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.x<d.min.x&&(u.x=this._viscousLimit(u.x,d.min.x)),u.y<d.min.y&&(u.y=this._viscousLimit(u.y,d.min.y)),u.x>d.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),y=this._initialWorldOffset,T=this._draggable._newPos.x,M=(T-d+y)%u+d-y,j=(T+d+y)%u-d-y,te=Math.abs(M+y)<Math.abs(j+y)?M:j;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=te},_onDragEnd:function(u){var d=this._map,y=d.options,T=!y.inertia||u.noInertia||this._times.length<2;if(d.fire("dragend",u),T)d.fire("moveend");else{this._prunePositions(+new Date);var M=this._lastPos.subtract(this._positions[0]),j=(this._lastTime-this._times[0])/1e3,te=y.easeLinearity,de=M.multiplyBy(te/j),pe=de.distanceTo([0,0]),Se=Math.min(y.inertiaMaxSpeed,pe),Ae=de.multiplyBy(Se/pe),qe=Se/(y.inertiaDeceleration*te),Xe=Ae.multiplyBy(-qe/2).round();!Xe.x&&!Xe.y?d.fire("moveend"):(Xe=d._limitOffset(Xe,d.options.maxBounds),Y(function(){d.panBy(Xe,{duration:qe,easeLinearity:te,noMoveStart:!0,animate:!0})}))}}});ct.addInitHook("addHandler","dragging",ZT),ct.mergeOptions({keyboard:!0,keyboardPanDelta:80});var KT=Ai.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Ge(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ot(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 u=document.body,d=document.documentElement,y=u.scrollTop||d.scrollTop,T=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(T,y)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var d=this._panKeys={},y=this.keyCodes,T,M;for(T=0,M=y.left.length;T<M;T++)d[y.left[T]]=[-1*u,0];for(T=0,M=y.right.length;T<M;T++)d[y.right[T]]=[u,0];for(T=0,M=y.down.length;T<M;T++)d[y.down[T]]=[0,u];for(T=0,M=y.up.length;T<M;T++)d[y.up[T]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},y=this.keyCodes,T,M;for(T=0,M=y.zoomIn.length;T<M;T++)d[y.zoomIn[T]]=u;for(T=0,M=y.zoomOut.length;T<M;T++)d[y.zoomOut[T]]=-u},_addHooks:function(){Ge(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ot(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var d=u.keyCode,y=this._map,T;if(d in this._panKeys)(!y._panAnim||!y._panAnim._inProgress)&&(T=this._panKeys[d],u.shiftKey&&(T=D(T).multiplyBy(3)),y.panBy(T),y.options.maxBounds&&y.panInsideBounds(y.options.maxBounds));else if(d in this._zoomKeys)y.setZoom(y.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&y._popup&&y._popup.options.closeOnEscapeKey)y.closePopup();else return;sa(u)}}});ct.addInitHook("addHandler","keyboard",KT),ct.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var XT=Ai.extend({addHooks:function(){Ge(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ot(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var d=wT(u),y=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var T=Math.max(y-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),T),sa(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),y=this._map.options.zoomSnap||0;u._stop();var T=this._delta/(this._map.options.wheelPxPerZoomLevel*4),M=4*Math.log(2/(1+Math.exp(-Math.abs(T))))/Math.LN2,j=y?Math.ceil(M/y)*y:M,te=u._limitZoom(d+(this._delta>0?j:-j))-d;this._delta=0,this._startTime=null,te&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+te):u.setZoomAround(this._lastMousePos,d+te))}});ct.addInitHook("addHandler","scrollWheelZoom",XT);var F$=600;ct.mergeOptions({tapHold:He.touchNative&&He.safari&&He.mobile,tapTolerance:15});var QT=Ai.extend({addHooks:function(){Ge(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ot(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new K(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Ge(document,"touchend",Fn),Ge(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),F$),Ge(document,"touchend touchcancel contextmenu",this._cancel,this),Ge(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Ot(document,"touchend",Fn),Ot(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Ot(document,"touchend touchcancel contextmenu",this._cancel,this),Ot(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new K(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var y=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});y._simulated=!0,d.target.dispatchEvent(y)}});ct.addInitHook("addHandler","tapHold",QT),ct.mergeOptions({touchZoom:He.touch,bounceAtZoomLimits:!0});var JT=Ai.extend({addHooks:function(){et(this._map._container,"leaflet-touch-zoom"),Ge(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tn(this._map._container,"leaflet-touch-zoom"),Ot(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var y=d.mouseEventToContainerPoint(u.touches[0]),T=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(y.add(T)._divideBy(2))),this._startDist=y.distanceTo(T),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ge(document,"touchmove",this._onTouchMove,this),Ge(document,"touchend touchcancel",this._onTouchEnd,this),Fn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,y=d.mouseEventToContainerPoint(u.touches[0]),T=d.mouseEventToContainerPoint(u.touches[1]),M=y.distanceTo(T)/this._startDist;if(this._zoom=d.getScaleZoom(M,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&M<1||this._zoom>d.getMaxZoom()&&M>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var j=y._add(T)._divideBy(2)._subtract(this._centerPoint);if(M===1&&j.x===0&&j.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(j),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var te=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(te,this,!0),Fn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Ot(document,"touchmove",this._onTouchMove,this),Ot(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))}});ct.addInitHook("addHandler","touchZoom",JT),ct.BoxZoom=qT,ct.DoubleClickZoom=GT,ct.Drag=ZT,ct.Keyboard=KT,ct.ScrollWheelZoom=XT,ct.TapHold=QT,ct.TouchZoom=JT,n.Bounds=B,n.Browser=He,n.CRS=me,n.Canvas=VT,n.Circle=Z_,n.CircleMarker=xh,n.Class=Z,n.Control=ui,n.DivIcon=BT,n.DivOverlay=Ii,n.DomEvent=t$,n.DomUtil=JF,n.Draggable=Vo,n.Evented=ce,n.FeatureGroup=la,n.GeoJSON=so,n.GridLayer=hu,n.Handler=Ai,n.Icon=gl,n.ImageOverlay=Oh,n.LatLng=re,n.LatLngBounds=W,n.Layer=fi,n.LayerGroup=ml,n.LineUtil=h$,n.Map=ct,n.Marker=wh,n.Mixin=l$,n.Path=Ho,n.Point=K,n.PolyUtil=p$,n.Polygon=vl,n.Polyline=oo,n.Popup=Ph,n.PosAnimation=xT,n.Projection=m$,n.Rectangle=YT,n.Renderer=ao,n.SVG=mu,n.SVGOverlay=jT,n.TileLayer=_l,n.Tooltip=kh,n.Transformation=ee,n.Util=X,n.VideoOverlay=$T,n.bind=s,n.bounds=ne,n.canvas=HT,n.circle=S$,n.circleMarker=x$,n.control=uu,n.divIcon=N$,n.extend=i,n.featureGroup=_$,n.geoJSON=FT,n.geoJson=T$,n.gridLayer=L$,n.icon=b$,n.imageOverlay=O$,n.latLng=le,n.latLngBounds=G,n.layerGroup=y$,n.map=n$,n.marker=w$,n.point=D,n.polygon=E$,n.polyline=C$,n.popup=M$,n.rectangle=I$,n.setOptions=_,n.stamp=l,n.svg=WT,n.svgOverlay=k$,n.tileLayer=zT,n.tooltip=R$,n.transformation=Q,n.version=r,n.videoOverlay=P$;var $$=window.L;n.noConflict=function(){return window.L=$$,this},window.L=n})})($fe,js);const xR=js;function EE(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function TE(e,t){return t==null?function(r,i){const o=H.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=H.useRef();o.current||(o.current=e(r,i));const s=H.useRef(r),{instance:a}=o.current;return H.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function jfe(e,t){H.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function n8(e){return function(n){const r=e8(),i=e(CE(n,r),r);return X5(r.map,n.attribution),t8(i.current,n.eventHandlers),jfe(i.current,r),i}}function Bfe(e,t){const n=TE(e,t),r=n8(n);return Dfe(r)}function zfe(e,t){const n=TE(e),r=Ffe(n,t);return Afe(r)}function Ufe(e,t){const n=TE(e,t),r=n8(n);return Ife(r)}function Vfe(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 ex(){return ex=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(this,arguments)}function Hfe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:a,whenReady:l,zoom:c,...f},h){const[p]=H.useState({className:i,id:o,style:a}),[m,g]=H.useState(null);H.useImperativeHandle(h,()=>(m==null?void 0:m.map)??null,[m]);const _=H.useCallback(v=>{if(v!==null&&m===null){const b=new js.Map(v,f);n!=null&&c!=null?b.setView(n,c):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),g(Nfe(b))}},[]);H.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?z.createElement(J5,{value:m},r):s??null;return z.createElement("div",ex({},p,{ref:_}),x)}const Wfe=H.forwardRef(Hfe),Yfe=Bfe(function({position:t,...n},r){const i=new js.Marker(t,n);return EE(i,Lfe(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())}),qfe=zfe(function(t,n){const r=new js.Popup(t,n.overlayContainer);return EE(r,n)},function(t,n,{position:r},i){H.useEffect(function(){const{instance:s}=t;function a(c){c.popup===s&&(s.update(),i(!0))}function l(c){c.popup===s&&i(!1)}return n.map.on({popupopen:a,popupclose:l}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var f;n.map.off({popupopen:a,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),Gfe=Ufe(function({url:t,...n},r){const i=new js.TileLayer(t,CE(n,r));return EE(i,r)},Vfe);const Zfe=()=>C(Gfe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),Kfe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(rt("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},r8=({toggle:e,isOpen:t,title:n,locations:r=[]})=>C(zo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:U(ki,{className:"map-modal__modal-body",children:[U("h3",{className:"map-modal__modal-title",children:[n,C("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),U(Wfe,{...Kfe(r),children:[C(Zfe,{}),r.map(({cityName:i,latLong:o,count:s},a)=>C(Yfe,{position:o,children:U(qfe,{children:[C("b",{children:s})," visit",s>1?"s":""," from ",C("b",{children:i})]})},a))]})]})}),eh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>C("header",{children:U(xr,{body:!0,children:[U("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[C(gt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:C($e,{icon:FA})}),C("span",{className:"text-center d-none d-sm-block",children:C("small",{children:i})}),U("span",{className:"badge badge-main ms-3",children:["Visits:"," ",C(j5,{visitsCount:e.length,shortUrl:n})]})]}),C("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:C("small",{children:i})}),r&&C("div",{className:"mt-md-2",children:r})]})});const Xfe=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,s=(r==null?void 0:r.shortUrl)??"",a=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return U(eh,{title:U(We,{children:["Visits for ",C(Ci,{href:s})]}),goBack:n,visits:o,shortUrl:r,children:[C("hr",{}),U("div",{children:["Created: ",(()=>r?U("span",{children:[C("b",{id:"created",className:"short-url-visits-header__created-at",children:C(Iv,{date:r.dateCreated,relative:!0})}),C($r,{placement:"bottom",target:"created",children:C(Iv,{date:r.dateCreated})})]}):C("small",{children:"Loading..."}))()]}),U("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&C("small",{children:"Loading..."}),!i&&C(Ci,{href:a,children:l??a})]})]})};const bf=({children:e,...t})=>C(UI,{className:"nav-pills__nav-link",tag:V4,...t,children:e}),i8=({children:e,fill:t=!1,className:n=""})=>C(xr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:C(Zy,{pills:!0,fill:t,children:H.Children.map(e,r=>{if(!H.isValidElement(r)||r.type!==bf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})});/*!
|
||
* Chart.js v3.9.1
|
||
* https://www.chartjs.org
|
||
* (c) 2022 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/function lo(){}const Qfe=function(){let e=0;return function(){return e++}}();function ht(e){return e===null||typeof e>"u"}function Mt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function st(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}const ln=e=>(typeof e=="number"||e instanceof Number)&&isFinite(+e);function Vr(e,t){return ln(e)?e:t}function Je(e,t){return typeof e>"u"?t:e}const Jfe=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:e/t,o8=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Pt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function bt(e,t,n,r){let i,o,s;if(Mt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(st(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function Fv(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function $v(e){if(Mt(e))return e.map($v);if(st(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=$v(e[n[i]]);return t}return e}function s8(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function ede(e,t,n,r){if(!s8(e))return;const i=t[e],o=n[e];st(i)&&st(o)?pd(i,o,r):t[e]=$v(o)}function pd(e,t,n){const r=Mt(t)?t:[t],i=r.length;if(!st(e))return e;n=n||{};const o=n.merger||ede;for(let s=0;s<i;++s){if(t=r[s],!st(t))continue;const a=Object.keys(t);for(let l=0,c=a.length;l<c;++l)o(a[l],e,t,n)}return e}function wf(e,t){return pd(e,t,{merger:tde})}function tde(e,t,n){if(!s8(e))return;const r=t[e],i=n[e];st(r)&&st(i)?wf(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=$v(i))}const SR={"":e=>e,x:e=>e.x,y:e=>e.y};function Bs(e,t){return(SR[t]||(SR[t]=nde(t)))(e)}function nde(e){const t=rde(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function rde(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function OE(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ii=e=>typeof e<"u",zs=e=>typeof e=="function",CR=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function ide(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const zt=Math.PI,Et=2*zt,ode=Et+zt,jv=Number.POSITIVE_INFINITY,sde=zt/180,Qt=zt/2,Ru=zt/4,ER=zt*2/3,qr=Math.log10,Qi=Math.sign;function TR(e){const t=Math.round(e);e=xf(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(qr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ade(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function Ac(e){return!isNaN(parseFloat(e))&&isFinite(e)}function xf(e,t,n){return Math.abs(e-t)<n}function lde(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function a8(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function wi(e){return e*(zt/180)}function PE(e){return e*(180/zt)}function OR(e){if(!ln(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function l8(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*zt&&(o+=Et),{angle:o,distance:i}}function tx(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function cde(e,t){return(e-t+ode)%Et-zt}function Tr(e){return(e%Et+Et)%Et}function md(e,t,n,r){const i=Tr(e),o=Tr(t),s=Tr(n),a=Tr(o-i),l=Tr(s-i),c=Tr(i-o),f=Tr(i-s);return i===o||i===s||r&&o===s||a>l&&c<f}function Tn(e,t,n){return Math.max(t,Math.min(n,e))}function ude(e){return Tn(e,-32768,32767)}function bo(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function kE(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const wo=(e,t,n,r)=>kE(e,n,r?i=>e[i][t]<=n:i=>e[i][t]<n),fde=(e,t,n)=>kE(e,n,r=>e[r][t]>=n);function dde(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const c8=["push","pop","shift","splice","unshift"];function hde(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),c8.forEach(n=>{const r="_onData"+OE(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function PR(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(c8.forEach(o=>{delete e[o]}),delete e._chartjs)}function u8(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const f8=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function d8(e,t,n){const r=n||(s=>Array.prototype.slice.call(s));let i=!1,o=[];return function(...s){o=r(s),i||(i=!0,f8.call(window,()=>{i=!1,e.apply(t,o)}))}}function pde(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const ME=e=>e==="start"?"left":e==="end"?"right":"center",Kn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,mde=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function h8(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(i=Tn(Math.min(wo(a,s.axis,c).lo,n?r:wo(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=Tn(Math.max(wo(a,s.axis,f,!0).hi+1,n?0:wo(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function p8(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const gp=e=>e===0||e===1,kR=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Et/n)),MR=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Et/n)+1,Sf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Qt)+1,easeOutSine:e=>Math.sin(e*Qt),easeInOutSine:e=>-.5*(Math.cos(zt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>gp(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>gp(e)?e:kR(e,.075,.3),easeOutElastic:e=>gp(e)?e:MR(e,.075,.3),easeInOutElastic(e){return gp(e)?e:e<.5?.5*kR(e*2,.1125,.45):.5+.5*MR(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Sf.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Sf.easeInBounce(e*2)*.5:Sf.easeOutBounce(e*2-1)*.5+.5};/*!
|
||
* @kurkle/color v0.2.1
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2022 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/function th(e){return e+.5|0}const ds=(e,t,n)=>Math.max(Math.min(e,n),t);function qu(e){return ds(th(e*2.55),0,255)}function Ps(e){return ds(th(e*255),0,255)}function mo(e){return ds(th(e/2.55)/100,0,1)}function RR(e){return ds(th(e*100),0,100)}const Ur={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},nx=[..."0123456789ABCDEF"],gde=e=>nx[e&15],vde=e=>nx[(e&240)>>4]+nx[e&15],vp=e=>(e&240)>>4===(e&15),yde=e=>vp(e.r)&&vp(e.g)&&vp(e.b)&&vp(e.a);function _de(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Ur[e[1]]*17,g:255&Ur[e[2]]*17,b:255&Ur[e[3]]*17,a:t===5?Ur[e[4]]*17:255}:(t===7||t===9)&&(n={r:Ur[e[1]]<<4|Ur[e[2]],g:Ur[e[3]]<<4|Ur[e[4]],b:Ur[e[5]]<<4|Ur[e[6]],a:t===9?Ur[e[7]]<<4|Ur[e[8]]:255})),n}const bde=(e,t)=>e<255?t(e):"";function wde(e){var t=yde(e)?gde:vde;return e?"#"+t(e.r)+t(e.g)+t(e.b)+bde(e.a,t):void 0}const xde=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m8(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function Sde(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Cde(e,t,n){const r=m8(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Ede(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function RE(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;let l,c,f;return o!==s&&(f=o-s,c=a>.5?f/(2-o-s):f/(o+s),l=Ede(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function NE(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ps)}function LE(e,t,n){return NE(m8,e,t,n)}function Tde(e,t,n){return NE(Cde,e,t,n)}function Ode(e,t,n){return NE(Sde,e,t,n)}function g8(e){return(e%360+360)%360}function Pde(e){const t=xde.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?qu(+t[5]):Ps(+t[5]));const i=g8(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=Tde(i,o,s):t[1]==="hsv"?r=Ode(i,o,s):r=LE(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function kde(e,t){var n=RE(e);n[0]=g8(n[0]+t),n=LE(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Mde(e){if(!e)return;const t=RE(e),n=t[0],r=RR(t[1]),i=RR(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${mo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const NR={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},LR={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Rde(){const e={},t=Object.keys(LR),n=Object.keys(NR);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,NR[o]);o=parseInt(LR[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let yp;function Nde(e){yp||(yp=Rde(),yp.transparent=[0,0,0,0]);const t=yp[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Lde=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dde(e){const t=Lde.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?qu(s):ds(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?qu(r):ds(r,0,255)),i=255&(t[4]?qu(i):ds(i,0,255)),o=255&(t[6]?qu(o):ds(o,0,255)),{r,g:i,b:o,a:n}}}function Ade(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${mo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const bb=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Rl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ide(e,t,n){const r=Rl(mo(e.r)),i=Rl(mo(e.g)),o=Rl(mo(e.b));return{r:Ps(bb(r+n*(Rl(mo(t.r))-r))),g:Ps(bb(i+n*(Rl(mo(t.g))-i))),b:Ps(bb(o+n*(Rl(mo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function _p(e,t,n){if(e){let r=RE(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=LE(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function v8(e,t){return e&&Object.assign(t||{},e)}function DR(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ps(e[3]))):(t=v8(e,{r:0,g:0,b:0,a:1}),t.a=Ps(t.a)),t}function Fde(e){return e.charAt(0)==="r"?Dde(e):Pde(e)}class Bv{constructor(t){if(t instanceof Bv)return t;const n=typeof t;let r;n==="object"?r=DR(t):n==="string"&&(r=_de(t)||Nde(t)||Fde(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=v8(this._rgb);return t&&(t.a=mo(t.a)),t}set rgb(t){this._rgb=DR(t)}rgbString(){return this._valid?Ade(this._rgb):void 0}hexString(){return this._valid?wde(this._rgb):void 0}hslString(){return this._valid?Mde(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Ide(this._rgb,t._rgb,n)),this}clone(){return new Bv(this.rgb)}alpha(t){return this._rgb.a=Ps(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=th(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return _p(this._rgb,2,t),this}darken(t){return _p(this._rgb,2,-t),this}saturate(t){return _p(this._rgb,1,t),this}desaturate(t){return _p(this._rgb,1,-t),this}rotate(t){return kde(this._rgb,t),this}}function y8(e){return new Bv(e)}function _8(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function AR(e){return _8(e)?e:y8(e)}function wb(e){return _8(e)?e:y8(e).saturate(.5).darken(.1).hexString()}const tl=Object.create(null),rx=Object.create(null);function Cf(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function xb(e,t,n){return typeof t=="string"?pd(Cf(e,t),n):pd(Cf(e,""),t)}class $de{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>wb(r.backgroundColor),this.hoverBorderColor=(n,r)=>wb(r.borderColor),this.hoverColor=(n,r)=>wb(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,n){return xb(this,t,n)}get(t){return Cf(this,t)}describe(t,n){return xb(rx,t,n)}override(t,n){return xb(tl,t,n)}route(t,n,r,i){const o=Cf(this,t),s=Cf(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return st(l)?Object.assign({},c,l):Je(l,c)},set(l){this[a]=l}}})}}var lt=new $de({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function jde(e){return!e||ht(e.size)||ht(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function zv(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Bde(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,f,h,p;for(l=0;l<a;l++)if(h=n[l],h!=null&&Mt(h)!==!0)s=zv(e,i,o,s,h);else if(Mt(h))for(c=0,f=h.length;c<f;c++)p=h[c],p!=null&&!Mt(p)&&(s=zv(e,i,o,s,p));e.restore();const m=o.length/2;if(m>n.length){for(l=0;l<m;l++)delete i[o[l]];o.splice(0,m)}return s}function pa(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function IR(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function ix(e,t,n,r){b8(e,t,n,r,null)}function b8(e,t,n,r,i){let o,s,a,l,c,f;const h=t.pointStyle,p=t.rotation,m=t.radius;let g=(p||0)*sde;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,Et):e.arc(n,r,m,0,Et),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(g)*m,r-Math.cos(g)*m),g+=ER,e.lineTo(n+Math.sin(g)*m,r-Math.cos(g)*m),g+=ER,e.lineTo(n+Math.sin(g)*m,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,s=Math.cos(g+Ru)*l,a=Math.sin(g+Ru)*l,e.arc(n-s,r-a,c,g-zt,g-Qt),e.arc(n+a,r-s,c,g-Qt,g),e.arc(n+s,r+a,c,g,g+Qt),e.arc(n-a,r+s,c,g+Qt,g+zt),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,f=i?i/2:l,e.rect(n-f,r-l,2*f,2*l);break}g+=Ru;case"rectRot":s=Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+a,r-s),e.lineTo(n+s,r+a),e.lineTo(n-a,r+s),e.closePath();break;case"crossRot":g+=Ru;case"cross":s=Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a),e.moveTo(n+a,r-s),e.lineTo(n-a,r+s);break;case"star":s=Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a),e.moveTo(n+a,r-s),e.lineTo(n-a,r+s),g+=Ru,s=Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a),e.moveTo(n+a,r-s),e.lineTo(n-a,r+s);break;case"line":s=i?i/2:Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*m,r+Math.sin(g)*m);break}e.fill(),t.borderWidth>0&&e.stroke()}}function gd(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function p_(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function m_(e){e.restore()}function zde(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Ude(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function nl(e,t,n,r,i,o={}){const s=Mt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,Vde(e,o),l=0;l<s.length;++l)c=s[l],a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),ht(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),Hde(e,n,r,c,o),r+=i.lineHeight;e.restore()}function Vde(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ht(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Hde(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,f=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,f),e.lineTo(a,f),e.stroke()}}function vd(e,t){const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-Qt,zt,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,zt,Qt,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,Qt,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-Qt,!0),e.lineTo(n+s.topLeft,r)}const Wde=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Yde=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function qde(e,t){const n=(""+e).match(Wde);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const Gde=e=>+e||0;function DE(e,t){const n={},r=st(t),i=r?Object.keys(t):t,o=st(e)?r?s=>Je(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=Gde(o(s));return n}function w8(e){return DE(e,{top:"y",right:"x",bottom:"y",left:"x"})}function $a(e){return DE(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rr(e){const t=w8(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _n(e,t){e=e||{},t=t||lt.font;let n=Je(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Je(e.style,t.style);r&&!(""+r).match(Yde)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:Je(e.family,t.family),lineHeight:qde(Je(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Je(e.weight,t.weight),string:""};return i.string=jde(i),i}function Gu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;o<s;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&Mt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function Zde(e,t,n){const{min:r,max:i}=e,o=o8(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function Js(e,t){return Object.assign(Object.create(e),t)}function AE(e,t=[""],n=e,r,i=()=>e[0]){ii(r)||(r=E8("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>AE([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return S8(s,a,()=>rhe(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return $R(s).includes(a)},ownKeys(s){return $R(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function Ic(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:x8(e,r),setContext:o=>Ic(e,o,n,r),override:o=>Ic(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return S8(o,s,()=>Xde(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function x8(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:zs(n)?n:()=>n,isIndexable:zs(r)?r:()=>r}}const Kde=(e,t)=>e?e+OE(t):t,IE=(e,t)=>st(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function S8(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Xde(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return zs(a)&&s.isScriptable(t)&&(a=Qde(t,a,e,n)),Mt(a)&&a.length&&(a=Jde(t,a,e,s.isIndexable)),IE(t,a)&&(a=Ic(a,i,o&&o[t],s)),a}function Qde(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),IE(e,t)&&(t=FE(i._scopes,i,e,t)),t}function Jde(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(ii(o.index)&&r(e))t=t[o.index%t.length];else if(st(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=FE(c,i,e,f);t.push(Ic(h,o,s&&s[e],a))}}return t}function C8(e,t,n){return zs(e)?e(t,n):e}const ehe=(e,t)=>e===!0?t:typeof e=="string"?Bs(t,e):void 0;function the(e,t,n,r,i){for(const o of t){const s=ehe(n,o);if(s){e.add(s);const a=C8(s._fallback,n,i);if(ii(a)&&a!==n&&a!==r)return a}else if(s===!1&&ii(r)&&n!==r)return null}return!1}function FE(e,t,n,r){const i=t._rootScopes,o=C8(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=FR(a,s,n,o||n,r);return l===null||ii(o)&&o!==n&&(l=FR(a,s,o,l,r),l===null)?!1:AE(Array.from(a),[""],i,o,()=>nhe(t,n,r))}function FR(e,t,n,r,i){for(;n;)n=the(e,t,n,r,i);return n}function nhe(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Mt(i)&&st(n)?n:i}function rhe(e,t,n,r){let i;for(const o of t)if(i=E8(Kde(o,e),n),ii(i))return IE(e,i)?FE(n,r,e,i):i}function E8(e,t){for(const n of t){if(!n)continue;const r=n[e];if(ii(r))return r}}function $R(e){let t=e._keys;return t||(t=e._keys=ihe(e._scopes)),t}function ihe(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function T8(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,f;for(a=0,l=r;a<l;++a)c=a+n,f=t[c],s[a]={r:i.parse(Bs(f,o),c)};return s}const ohe=Number.EPSILON||1e-14,Fc=(e,t)=>t<e.length&&!e[t].skip&&e[t],O8=e=>e==="x"?"y":"x";function she(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=tx(o,i),l=tx(s,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-h*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function ahe(e,t,n){const r=e.length;let i,o,s,a,l,c=Fc(e,0);for(let f=0;f<r-1;++f)if(l=c,c=Fc(e,f+1),!(!l||!c)){if(xf(t[f],0,ohe)){n[f]=n[f+1]=0;continue}i=n[f]/t[f],o=n[f+1]/t[f],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[f]=i*s*t[f],n[f+1]=o*s*t[f])}}function lhe(e,t,n="x"){const r=O8(n),i=e.length;let o,s,a,l=Fc(e,0);for(let c=0;c<i;++c){if(s=a,a=l,l=Fc(e,c+1),!a)continue;const f=a[n],h=a[r];s&&(o=(f-s[n])/3,a[`cp1${n}`]=f-o,a[`cp1${r}`]=h-o*t[c]),l&&(o=(l[n]-f)/3,a[`cp2${n}`]=f+o,a[`cp2${r}`]=h+o*t[c])}}function che(e,t="x"){const n=O8(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,c=Fc(e,0);for(s=0;s<r;++s)if(a=l,l=c,c=Fc(e,s+1),!!l){if(c){const f=c[t]-l[t];i[s]=f!==0?(c[n]-l[n])/f:0}o[s]=a?c?Qi(i[s-1])!==Qi(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}ahe(e,i,o),lhe(e,o,t)}function bp(e,t,n){return Math.max(Math.min(e,n),t)}function uhe(e,t){let n,r,i,o,s,a=gd(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&gd(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=bp(i.cp1x,t.left,t.right),i.cp1y=bp(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=bp(i.cp2x,t.left,t.right),i.cp2y=bp(i.cp2y,t.top,t.bottom)))}function fhe(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")che(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=she(c,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&uhe(e,n)}function P8(){return typeof window<"u"&&typeof document<"u"}function $E(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Uv(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const g_=e=>window.getComputedStyle(e,null);function dhe(e,t){return g_(e).getPropertyValue(t)}const hhe=["top","right","bottom","left"];function ja(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=hhe[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const phe=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function mhe(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(phe(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function xa(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=g_(n),o=i.boxSizing==="border-box",s=ja(i,"padding"),a=ja(i,"border","width"),{x:l,y:c,box:f}=mhe(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:m,height:g}=t;return o&&(m-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function ghe(e,t,n){let r,i;if(t===void 0||n===void 0){const o=$E(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=g_(o),l=ja(a,"border","width"),c=ja(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=Uv(a.maxWidth,o,"clientWidth"),i=Uv(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||jv,maxHeight:i||jv}}const Sb=e=>Math.round(e*10)/10;function vhe(e,t,n,r){const i=g_(e),o=ja(i,"margin"),s=Uv(i.maxWidth,e,"clientWidth")||jv,a=Uv(i.maxHeight,e,"clientHeight")||jv,l=ghe(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const h=ja(i,"border","width"),p=ja(i,"padding");c-=p.width+h.width,f-=p.height+h.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?Math.floor(c/r):f-o.height),c=Sb(Math.min(c,s,l.maxWidth)),f=Sb(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Sb(c/2)),{width:c,height:f}}function jR(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=i/r,e.width=o/r;const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const yhe=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function BR(e,t){const n=dhe(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Sa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function _he(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function bhe(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Sa(e,i,n),a=Sa(i,o,n),l=Sa(o,t,n),c=Sa(s,a,n),f=Sa(a,l,n);return Sa(c,f,n)}const zR=new Map;function whe(e,t){t=t||{};const n=e+JSON.stringify(t);let r=zR.get(n);return r||(r=new Intl.NumberFormat(e,t),zR.set(n,r)),r}function nh(e,t,n){return whe(t,n).format(e)}const xhe=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},She=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function hc(e,t,n){return e?xhe(t,n):She()}function k8(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function M8(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function R8(e){return e==="angle"?{between:md,compare:cde,normalize:Tr}:{between:bo,compare:(t,n)=>t-n,normalize:t=>t}}function UR({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Che(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=R8(r),l=t.length;let{start:c,end:f,loop:h}=e,p,m;if(h){for(c+=l,f+=l,p=0,m=l;p<m&&s(a(t[c%l][r]),i,o);++p)c--,f--;c%=l,f%=l}return f<c&&(f+=l),{start:c,end:f,loop:h,style:e.style}}function N8(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=R8(r),{start:f,end:h,loop:p,style:m}=Che(e,t,n),g=[];let _=!1,x=null,v,b,w;const E=()=>l(i,w,v)&&a(i,w)!==0,P=()=>a(o,v)===0||l(o,w,v),k=()=>_||E(),N=()=>!_||P();for(let A=f,V=f;A<=h;++A)b=t[A%s],!b.skip&&(v=c(b[r]),v!==w&&(_=l(v,i,o),x===null&&k()&&(x=a(v,i)===0?A:V),x!==null&&N()&&(g.push(UR({start:x,end:A,loop:p,count:s,style:m})),x=null),V=A,w=v));return x!==null&&g.push(UR({start:x,end:h,loop:p,count:s,style:m})),g}function L8(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=N8(r[i],e.points,t);o.length&&n.push(...o)}return n}function Ehe(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function The(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function Ohe(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=Ehe(n,i,o,r);if(r===!0)return VR(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+i:a,c=!!e._fullLoop&&s===0&&a===i-1;return VR(e,The(n,s,l,c),n,t)}function VR(e,t,n,r){return!r||!r.setContext||!n?t:Phe(e,t,n,r)}function Phe(e,t,n,r){const i=e._chart.getContext(),o=HR(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let f=o,h=t[0].start,p=h;function m(g,_,x,v){const b=a?-1:1;if(g!==_){for(g+=l;n[g%l].skip;)g-=b;for(;n[_%l].skip;)_+=b;g%l!==_%l&&(c.push({start:g%l,end:_%l,loop:x,style:v}),f=v,h=_%l)}}for(const g of t){h=a?h:g.start;let _=n[h%l],x;for(p=h+1;p<=g.end;p++){const v=n[p%l];x=HR(r.setContext(Js(i,{type:"segment",p0:_,p1:v,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:s}))),khe(x,f)&&m(h,p-1,g.loop,f),_=v,f=x}h<p-1&&m(h,p-1,g.loop,f)}return c}function HR(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function khe(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
|
||
* Chart.js v3.9.1
|
||
* https://www.chartjs.org
|
||
* (c) 2022 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/class Mhe{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=f8.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var co=new Mhe;const WR="transparent",Rhe={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=AR(e||WR),i=r.valid&&AR(t||WR);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Nhe{constructor(t,n,r,i){const o=n[r];i=Gu([t.to,i,o,t.from]);const s=Gu([t.from,o,i]);this._active=!0,this._fn=t.fn||Rhe[t.type||typeof s],this._easing=Sf[t.easing]||Sf.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Gu([t.to,n,i,t.from]),this._from=Gu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}const Lhe=["x","y","borderWidth","radius","tension"],Dhe=["color","borderColor","backgroundColor"];lt.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Ahe=Object.keys(lt.animation);lt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"});lt.set("animations",{colors:{type:"color",properties:Dhe},numbers:{type:"number",properties:Lhe}});lt.describe("animations",{_fallback:"animation"});lt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}});class D8{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!st(t))return;const n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!st(i))return;const o={};for(const s of Ahe)o[s]=i[s];(Mt(i.properties)&&i.properties||[r]).forEach(s=>{(s===r||!n.has(s))&&n.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=Fhe(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Ihe(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,a);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new Nhe(p,t,c,f),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return co.add(this._chart,r),!0}}function Ihe(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Fhe(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function YR(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function $he(e,t,n){if(n===!1)return!1;const r=YR(e,n),i=YR(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function jhe(e){let t,n,r,i;return st(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function A8(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function qR(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let s,a,l,c;if(t!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=e.values[l],ln(c)&&(o||t===0||Qi(t)===Qi(c))&&(t+=c)}return t}}function Bhe(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function GR(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function zhe(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Uhe(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Vhe(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ZR(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function KR(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,f=zhe(o,s,r),h=t.length;let p;for(let m=0;m<h;++m){const g=t[m],{[l]:_,[c]:x}=g,v=g._stacks||(g._stacks={});p=v[c]=Vhe(i,f,_),p[a]=x,p._top=ZR(p,s,!0,r.type),p._bottom=ZR(p,s,!1,r.type)}}function Cb(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function Hhe(e,t){return Js(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Whe(e,t,n){return Js(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Nu(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n]}}}const Eb=e=>e==="reset"||e==="none",XR=(e,t)=>t?e:Object.assign({},e),Yhe=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:A8(n,!0),values:null};class Mi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=GR(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Nu(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,g)=>h==="x"?p:h==="r"?g:m,o=n.xAxisID=Je(r.xAxisID,Cb(t,"x")),s=n.yAxisID=Je(r.yAxisID,Cb(t,"y")),a=n.rAxisID=Je(r.rAxisID,Cb(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),f=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&PR(this._data,this),t._stacked&&Nu(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(st(n))this._data=Bhe(n);else if(r!==n){if(r){PR(r,this);const i=this._cachedMeta;Nu(i),i._parsed=[]}n&&Object.isExtensible(n)&&hde(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=GR(n.vScale,n),n.stack!==r.stack&&(i=!0,Nu(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&KR(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{Mt(i[t])?p=this.parseArrayData(r,i,t,n):st(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]<c[a];for(f=0;f<n;++f)r._parsed[f+t]=h=p[f],l&&(m()&&(l=!1),c=h);r._sorted=l}s&&KR(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),f=o===s,h=new Array(i);let p,m,g;for(p=0,m=i;p<m;++p)g=p+r,h[p]={[a]:f||o.parse(c[g],g),[l]:s.parse(n[g],g)};return h}parseArrayData(t,n,r,i){const{xScale:o,yScale:s}=t,a=new Array(i);let l,c,f,h;for(l=0,c=i;l<c;++l)f=l+r,h=n[f],a[l]={x:o.parse(h[0],f),y:s.parse(h[1],f)};return a}parseObjectData(t,n,r,i){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let f,h,p,m;for(f=0,h=i;f<h;++f)p=f+r,m=n[p],c[f]={x:o.parse(Bs(m,a),p),y:s.parse(Bs(m,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:A8(i,!0),values:n._stacks[t.axis]};return qR(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=qR(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=Yhe(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=Uhe(a);let p,m;function g(){m=i[p];const _=m[a.axis];return!ln(m[t.axis])||f>_||h<_}for(p=0;p<s&&!(!g()&&(this.updateRangeFromParsed(c,t,m,l),o));++p);if(o){for(p=s-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],ln(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=jhe(Je(this.options.clip,$he(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,o,a,l),f=a;f<a+l;++f){const h=i[f];h.hidden||(h.active&&c?s.push(h):h.draw(t,o))}for(f=0;f<s.length;++f)s[f].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=Whe(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Hhe(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&ii(r);if(a)return XR(a,l);const c=this.chart.config,f=c.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),f),m=Object.keys(lt.elements[t]),g=()=>this.getContext(r,i),_=c.resolveNamedOptions(p,m,g,h);return _.$shared&&(_.$shared=l,o[s]=Object.freeze(XR(_,l))),_}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,r,n))}const c=new D8(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Eb(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){Eb(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Eb(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,s=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Nu(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Mi.defaults={};Mi.prototype.datasetElementType=null;Mi.prototype.dataElementType=null;function qhe(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=u8(r.sort((i,o)=>i-o))}return e._cache.$bar}function Ghe(e){const t=e.iScale,n=qhe(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(ii(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function Zhe(e,t,n,r){const i=n.barThickness;let o,s;return ht(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function Khe(e,t,n,r){const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function Xhe(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function I8(e,t,n,r){return Mt(e)?Xhe(e,t,n,r):t[n.axis]=n.parse(e,r),t}function QR(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c<f;++c)p=t[c],h={},h[i.axis]=a||i.parse(s[c],c),l.push(I8(p,h,o,c));return l}function Tb(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function Qhe(e,t,n){return e!==0?Qi(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function Jhe(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function epe(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:f}=Jhe(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[JR(f,s,a,l)]=!0,i=c)),o[JR(i,s,a,l)]=!0,e.borderSkipped=o}function JR(e,t,n,r){return r?(e=tpe(e,t,n),e=eN(e,n,t)):e=eN(e,t,n),e}function tpe(e,t,n){return e===t?n:e===n?t:e}function eN(e,t,n){return e==="start"?t:e==="end"?n:e}function npe(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class rh extends Mi{parsePrimitiveData(t,n,r,i){return QR(t,n,r,i)}parseArrayData(t,n,r,i){return QR(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,f=s.axis==="x"?a:l,h=[];let p,m,g,_;for(p=r,m=r+i;p<m;++p)_=n[p],g={},g[o.axis]=o.parse(Bs(_,c),p),h.push(I8(Bs(_,f),g,s,p));return h}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),s=o._custom,a=Tb(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(n,i);for(let m=n;m<n+r;m++){const g=this.getParsed(m),_=o||ht(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),x=this._calculateBarIndexPixels(m,f),v=(g._stacks||{})[a.axis],b={horizontal:c,base:_.base,enableBorderRadius:!v||Tb(g._custom)||s===v._top||s===v._bottom,x:c?_.head:x.center,y:c?x.center:_.head,height:c?x.size:Math.abs(_.size),width:c?Math.abs(_.size):x.size};p&&(b.options=h||this.resolveDataElementOptions(m,t[m].active?"active":i));const w=b.options||t[m].options;epe(b,w,v,s),npe(b,w,f.ratio),this.updateElement(t[m],m,b,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(ht(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||Ghe(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r},options:{base:i,minBarLength:o}}=this,s=i||0,a=this.getParsed(t),l=a._custom,c=Tb(l);let f=a[n.axis],h=0,p=r?this.applyStack(n,a,r):f,m,g;p!==f&&(h=p-f,p=f),c&&(f=l.barStart,p=l.barEnd-l.barStart,f!==0&&Qi(f)!==Qi(l.barEnd)&&(h=0),h+=f);const _=!ht(i)&&!c?i:h;let x=n.getPixelForValue(_);if(this.chart.getDataVisibility(t)?m=n.getPixelForValue(h+p):m=x,g=m-x,Math.abs(g)<o){g=Qhe(g,n,s)*o,f===s&&(x-=g/2);const v=n.getPixelForDecimal(0),b=n.getPixelForDecimal(1),w=Math.min(v,b),E=Math.max(v,b);x=Math.max(Math.min(x,E),w),m=x+g}if(x===n.getPixelForValue(s)){const v=Qi(g)*n.getLineWidthForValue(s)/2;x+=v,g-=v}return{size:g,base:x,head:m,center:m+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,s=Je(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,f=i.barThickness==="flex"?Khe(t,n,i,c):Zhe(t,n,i,c),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=f.start+f.chunk*h+f.chunk/2,l=Math.min(s,f.chunk*f.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}rh.id="bar";rh.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};rh.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class v_ extends Mi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=Je(a[2],this.resolveDataElementOptions(s+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=Je(a&&a.r&&+a.r,this.resolveDataElementOptions(s+r).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,{xScale:r,yScale:i}=n,o=this.getParsed(t),s=r.getLabelForValue(o.x),a=i.getLabelForValue(o.y),l=o._custom;return{label:n.label,value:"("+s+", "+a+(l?", "+l:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=s.axis,h=a.axis;for(let p=n;p<n+r;p++){const m=t[p],g=!o&&this.getParsed(p),_={},x=_[f]=o?s.getPixelForDecimal(.5):s.getPixelForValue(g[f]),v=_[h]=o?a.getBasePixel():a.getPixelForValue(g[h]);_.skip=isNaN(x)||isNaN(v),c&&(_.options=l||this.resolveDataElementOptions(p,m.active?"active":i),o&&(_.options.radius=0)),this.updateElement(m,p,_,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=Je(r&&r._custom,o),i}}v_.id="bubble";v_.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};v_.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function rpe(e,t,n){let r=1,i=1,o=0,s=0;if(t<Et){const a=e,l=a+t,c=Math.cos(a),f=Math.sin(a),h=Math.cos(l),p=Math.sin(l),m=(w,E,P)=>md(w,a,l,!0)?1:Math.max(E,E*n,P,P*n),g=(w,E,P)=>md(w,a,l,!0)?-1:Math.min(E,E*n,P,P*n),_=m(0,c,h),x=m(Qt,f,p),v=g(zt,c,h),b=g(zt+Qt,f,p);r=(_-v)/2,i=(x-b)/2,o=-(_+v)/2,s=-(x+b)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class cl extends Mi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(st(r[t])){const{key:l="value"}=this._parsing;o=c=>+Bs(r[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return wi(this.options.rotation-90)}_getCircumference(){return wi(this.options.circumference)}_getRotationExtents(){let t=Et,n=-Et;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(Jfe(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:g,offsetY:_}=rpe(h,f,l),x=(r.width-s)/p,v=(r.height-s)/m,b=Math.max(Math.min(x,v)/2,0),w=o8(this.options.radius,b),E=Math.max(w*l,0),P=(w-E)/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=_*w,i.total=this.calculateTotal(),this.outerRadius=w-P*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-P*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Et)}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,f=(a.left+a.right)/2,h=(a.top+a.bottom)/2,p=o&&c.animateScale,m=p?0:this.innerRadius,g=p?0:this.outerRadius,{sharedOptions:_,includeOptions:x}=this._getSharedOptions(n,i);let v=this._getRotation(),b;for(b=0;b<n;++b)v+=this._circumference(b,o);for(b=n;b<n+r;++b){const w=this._circumference(b,o),E=t[b],P={x:f+this.offsetX,y:h+this.offsetY,startAngle:v,endAngle:v+w,circumference:w,outerRadius:g,innerRadius:m};x&&(P.options=_||this.resolveDataElementOptions(b,E.active?"active":i)),v+=w,this.updateElement(E,b,P,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Et*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=nh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Je(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}cl.id="doughnut";cl.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};cl.descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"};cl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){let t=e.label;const n=": "+e.formattedValue;return Mt(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class ih extends Mi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=h8(n,i,s);this._drawStart=a,this._drawCount=l,p8(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=s.axis,m=a.axis,{spanGaps:g,segment:_}=this.options,x=Ac(g)?g:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||i==="none";let b=n>0&&this.getParsed(n-1);for(let w=n;w<n+r;++w){const E=t[w],P=this.getParsed(w),k=v?E:{},N=ht(P[m]),A=k[p]=s.getPixelForValue(P[p],w),V=k[m]=o||N?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,P,l):P[m],w);k.skip=isNaN(A)||isNaN(V)||N,k.stop=w>0&&Math.abs(P[p]-b[p])>x,_&&(k.parsed=P,k.raw=c.data[w]),h&&(k.options=f||this.resolveDataElementOptions(w,E.active?"active":i)),v||this.updateElement(E,w,k,i),b=P}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ih.id="line";ih.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};ih.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class y_ extends Mi{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=nh(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return T8.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*zt;let m=p,g;const _=360/this.countVisibleElements();for(g=0;g<n;++g)m+=this._computeAngle(g,i,_);for(g=n;g<n+r;g++){const x=t[g];let v=m,b=m+this._computeAngle(g,i,_),w=s.getDataVisibility(g)?c.getDistanceFromCenterForValue(this.getParsed(g).r):0;m=b,o&&(l.animateScale&&(w=0),l.animateRotate&&(v=b=p));const E={x:f,y:h,innerRadius:0,outerRadius:w,startAngle:v,endAngle:b,options:this.resolveDataElementOptions(g,x.active?"active":i)};this.updateElement(x,g,E,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?wi(this.resolveDataElementOptions(t,n).angle||r):0}}y_.id="polarArea";y_.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};y_.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class jE extends cl{}jE.id="pie";jE.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class __ extends Mi{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return T8.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a<n+r;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":i),f=o.getPointPositionForValue(a,this.getParsed(a).r),h=s?o.xCenter:f.x,p=s?o.yCenter:f.y,m={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:c};this.updateElement(l,a,m,i)}}}__.id="radar";__.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};__.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};let Ri=class{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Ac(this.x)&&Ac(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};Ri.defaults={};Ri.defaultRoutes=void 0;const F8={values(e){return Mt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=ipe(e,n)}const s=qr(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),nh(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=e/Math.pow(10,Math.floor(qr(e)));return r===1||r===2||r===5?F8.numeric.call(this,e,t,n):""}};function ipe(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var b_={formatters:F8};lt.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:b_.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});lt.route("scale.ticks","color","","color");lt.route("scale.grid","color","","borderColor");lt.route("scale.grid","borderColor","","borderColor");lt.route("scale.title","color","","color");lt.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"});lt.describe("scales",{_fallback:"scale"});lt.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"});function ope(e,t){const n=e.options.ticks,r=n.maxTicksLimit||spe(e),i=n.major.enabled?lpe(t):[],o=i.length,s=i[0],a=i[o-1],l=[];if(o>r)return cpe(t,l,i,o/r),l;const c=ape(i,t,r);if(o>0){let f,h;const p=o>1?Math.round((a-s)/(o-1)):null;for(wp(t,l,c,ht(p)?0:s-p,s),f=0,h=o-1;f<h;f++)wp(t,l,c,i[f],i[f+1]);return wp(t,l,c,a,ht(p)?t.length:a+p),l}return wp(t,l,c),l}function spe(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function ape(e,t,n){const r=upe(e),i=t.length/n;if(!r)return Math.max(i,1);const o=ade(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function lpe(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function cpe(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function wp(e,t,n,r,i){const o=Je(r,0),s=Math.min(Je(i,e.length),e.length);let a=0,l,c,f;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),f=o;f<0;)a++,f=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===f&&(t.push(e[c]),a++,f=Math.round(o+a*n))}function upe(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const fpe=e=>e==="left"?"right":e==="right"?"left":e,tN=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function nN(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function dpe(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-a||l>s+a)))return l}function hpe(e,t){bt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Lu(e){return e.drawTicks?e.tickLength:0}function rN(e,t){if(!e.display)return 0;const n=_n(e.font,t),r=rr(e.padding);return(Mt(e.text)?e.text.length:1)*n.lineHeight+r.height}function ppe(e,t){return Js(e,{scale:t,type:"scale"})}function mpe(e,t,n){return Js(e,{tick:n,index:t,type:"tick"})}function gpe(e,t,n){let r=ME(e);return(n&&t!=="right"||!n&&t==="right")&&(r=fpe(r)),r}function vpe(e,t,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:f}=l;let h=0,p,m,g;const _=s-i,x=a-o;if(e.isHorizontal()){if(m=Kn(r,o,a),st(n)){const v=Object.keys(n)[0],b=n[v];g=f[v].getPixelForValue(b)+_-t}else n==="center"?g=(c.bottom+c.top)/2+_-t:g=tN(e,n,t);p=a-o}else{if(st(n)){const v=Object.keys(n)[0],b=n[v];m=f[v].getPixelForValue(b)-x+t}else n==="center"?m=(c.left+c.right)/2-x+t:m=tN(e,n,t);g=Kn(r,s,i),h=n==="left"?-Qt:Qt}return{titleX:m,titleY:g,maxWidth:p,rotation:h}}class ul extends Ri{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Vr(t,Number.POSITIVE_INFINITY),n=Vr(n,Number.NEGATIVE_INFINITY),r=Vr(r,Number.POSITIVE_INFINITY),i=Vr(i,Number.NEGATIVE_INFINITY),{min:Vr(t,r),max:Vr(n,i),minDefined:ln(t),maxDefined:ln(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Vr(n,Vr(r,n)),max:Vr(r,Vr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Zde(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?nN(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=ope(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Pt(this.options.afterUpdate,[this])}beforeSetDimensions(){Pt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Pt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Pt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Pt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Pt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Pt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Pt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=Tn(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-Lu(t.grid)-n.padding-rN(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=PE(Math.min(Math.asin(Tn((f.highest.height+6)/a,-1,1)),Math.asin(Tn(l/c,-1,1))-Math.asin(Tn(p/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Pt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=rN(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Lu(o)+l):(t.height=this.maxHeight,t.width=Lu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,g=wi(this.labelRotation),_=Math.cos(g),x=Math.sin(g);if(a){const v=r.mirror?0:x*h.width+_*p.height;t.height=Math.min(this.maxHeight,t.height+v+m)}else{const v=r.mirror?0:_*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+v+m)}this._calculatePadding(c,f,x,_)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=i*t.width,m=r*n.height):(p=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=n.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Pt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ht(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=nN(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,f,h,p,m,g,_,x,v,b,w;for(c=0;c<n;++c){if(p=t[c].label,m=this._resolveTickFontOptions(c),r.font=g=m.string,_=i[g]=i[g]||{data:{},gc:[]},x=m.lineHeight,v=b=0,!ht(p)&&!Mt(p))v=zv(r,_.data,_.gc,v,p),b=x;else if(Mt(p))for(f=0,h=p.length;f<h;++f)w=p[f],!ht(w)&&!Mt(w)&&(v=zv(r,_.data,_.gc,v,w),b+=x);o.push(v),s.push(b),a=Math.max(v,a),l=Math.max(b,l)}hpe(i,n);const E=o.indexOf(a),P=s.indexOf(l),k=N=>({width:o[N]||0,height:s[N]||0});return{first:k(0),last:k(n-1),widest:k(E),highest:k(P),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return ude(this._alignToPixels?pa(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=mpe(this.getContext(),t,r))}return this.$context||(this.$context=ppe(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=wi(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s}=i,a=o.offset,l=this.isHorizontal(),f=this.ticks.length+(a?1:0),h=Lu(o),p=[],m=o.setContext(this.getContext()),g=m.drawBorder?m.borderWidth:0,_=g/2,x=function(J){return pa(r,J,g)};let v,b,w,E,P,k,N,A,V,I,Y,q;if(s==="top")v=x(this.bottom),k=this.bottom-h,A=v-_,I=x(t.top)+_,q=t.bottom;else if(s==="bottom")v=x(this.top),I=t.top,q=x(t.bottom)-_,k=v+_,A=this.top+h;else if(s==="left")v=x(this.right),P=this.right-h,N=v-_,V=x(t.left)+_,Y=t.right;else if(s==="right")v=x(this.left),V=t.left,Y=x(t.right)-_,P=v+_,N=this.left+h;else if(n==="x"){if(s==="center")v=x((t.top+t.bottom)/2+.5);else if(st(s)){const J=Object.keys(s)[0],oe=s[J];v=x(this.chart.scales[J].getPixelForValue(oe))}I=t.top,q=t.bottom,k=v+_,A=k+h}else if(n==="y"){if(s==="center")v=x((t.left+t.right)/2);else if(st(s)){const J=Object.keys(s)[0],oe=s[J];v=x(this.chart.scales[J].getPixelForValue(oe))}P=v-_,N=P-h,V=t.left,Y=t.right}const X=Je(i.ticks.maxTicksLimit,f),Z=Math.max(1,Math.ceil(f/X));for(b=0;b<f;b+=Z){const J=o.setContext(this.getContext(b)),oe=J.lineWidth,ce=J.color,K=J.borderDash||[],$=J.borderDashOffset,D=J.tickWidth,B=J.tickColor,ne=J.tickBorderDash||[],W=J.tickBorderDashOffset;w=dpe(this,b,a),w!==void 0&&(E=pa(r,w,oe),l?P=N=V=Y=E:k=A=I=q=E,p.push({tx1:P,ty1:k,tx2:N,ty2:A,x1:V,y1:I,x2:Y,y2:q,width:oe,color:ce,borderDash:K,borderDashOffset:$,tickWidth:D,tickColor:B,tickBorderDash:ne,tickBorderDashOffset:W}))}return this._ticksLength=f,this._borderValue=v,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=o,p=Lu(r.grid),m=p+f,g=h?-f:m,_=-wi(this.labelRotation),x=[];let v,b,w,E,P,k,N,A,V,I,Y,q,X="middle";if(i==="top")k=this.bottom-g,N=this._getXAxisLabelAlignment();else if(i==="bottom")k=this.top+g,N=this._getXAxisLabelAlignment();else if(i==="left"){const J=this._getYAxisLabelAlignment(p);N=J.textAlign,P=J.x}else if(i==="right"){const J=this._getYAxisLabelAlignment(p);N=J.textAlign,P=J.x}else if(n==="x"){if(i==="center")k=(t.top+t.bottom)/2+m;else if(st(i)){const J=Object.keys(i)[0],oe=i[J];k=this.chart.scales[J].getPixelForValue(oe)+m}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")P=(t.left+t.right)/2-m;else if(st(i)){const J=Object.keys(i)[0],oe=i[J];P=this.chart.scales[J].getPixelForValue(oe)}N=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?X="top":l==="end"&&(X="bottom"));const Z=this._getLabelSizes();for(v=0,b=a.length;v<b;++v){w=a[v],E=w.label;const J=o.setContext(this.getContext(v));A=this.getPixelForTick(v)+o.labelOffset,V=this._resolveTickFontOptions(v),I=V.lineHeight,Y=Mt(E)?E.length:1;const oe=Y/2,ce=J.color,K=J.textStrokeColor,$=J.textStrokeWidth;let D=N;s?(P=A,N==="inner"&&(v===b-1?D=this.options.reverse?"left":"right":v===0?D=this.options.reverse?"right":"left":D="center"),i==="top"?c==="near"||_!==0?q=-Y*I+I/2:c==="center"?q=-Z.highest.height/2-oe*I+I:q=-Z.highest.height+I/2:c==="near"||_!==0?q=I/2:c==="center"?q=Z.highest.height/2-oe*I:q=Z.highest.height-Y*I,h&&(q*=-1)):(k=A,q=(1-Y)*I/2);let B;if(J.showLabelBackdrop){const ne=rr(J.backdropPadding),W=Z.heights[v],G=Z.widths[v];let re=k+q-ne.top,le=P-ne.left;switch(X){case"middle":re-=W/2;break;case"bottom":re-=W;break}switch(N){case"center":le-=G/2;break;case"right":le-=G;break}B={left:le,top:re,width:G+ne.width,height:W+ne.height,color:J.backdropColor}}x.push({rotation:_,label:E,font:V,color:ce,strokeColor:K,strokeWidth:$,textOffset:q,textAlign:D,textBaseline:X,translation:[P,k],backdrop:B})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-wi(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width;let c,f;return n==="left"?i?(f=this.right+o,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f+=l)):(f=this.right-a,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f=this.left)):n==="right"?i?(f=this.left+o,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f-=l)):(f=this.left+a,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f=this.right)):c="right",{textAlign:c,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{grid:r}}=this,i=r.setContext(this.getContext()),o=r.drawBorder?i.borderWidth:0;if(!o)return;const s=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,f,h;this.isHorizontal()?(l=pa(t,this.left,o)-o/2,c=pa(t,this.right,s)+s/2,f=h=a):(f=pa(t,this.top,o)-o/2,h=pa(t,this.bottom,s)+s/2,l=c=a),n.save(),n.lineWidth=i.borderWidth,n.strokeStyle=i.borderColor,n.beginPath(),n.moveTo(l,f),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&p_(r,i);const o=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,a;for(s=0,a=o.length;s<a;++s){const l=o[s],c=l.font,f=l.label;l.backdrop&&(r.fillStyle=l.backdrop.color,r.fillRect(l.backdrop.left,l.backdrop.top,l.backdrop.width,l.backdrop.height));let h=l.textOffset;nl(r,f,0,h,c,l)}i&&m_(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=_n(r.font),s=rr(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||st(n)?(l+=s.bottom,Mt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=vpe(this,l,n,a);nl(t,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:gpe(a,n,i),textBaseline:"middle",translation:[c,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Je(t.grid&&t.grid.z,-1);return!this._isVisible()||this.draw!==ul.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return _n(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class xp{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;bpe(n)&&(r=this.register(n));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,ype(t,s,r),this.override&<.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in lt[i]&&(delete lt[i][r],this.override&&delete tl[r])}}function ype(e,t,n){const r=pd(Object.create(null),[n?lt.get(n):{},lt.get(t),e.defaults]);lt.set(t,r),e.defaultRoutes&&_pe(t,e.defaultRoutes),e.descriptors&<.describe(t,e.descriptors)}function _pe(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");lt.route(o,i,l,a)})}function bpe(e){return"id"in e&&"defaults"in e}class wpe{constructor(){this.controllers=new xp(Mi,"datasets",!0),this.elements=new xp(Ri,"elements"),this.plugins=new xp(Object,"plugins"),this.scales=new xp(ul,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):bt(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=OE(t);Pt(r["before"+i],[],r),n[t](r),Pt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var qi=new wpe;class w_ extends Mi{update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:s}=h8(n,r,i);if(this._drawStart=o,this._drawCount=s,p8(n)&&(o=0,s=r.length),this.options.showLine){const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},t)}this.updateElements(r,o,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=qi.getElement("line")),super.addElements()}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,f=this.resolveDataElementOptions(n,i),h=this.getSharedOptions(f),p=this.includeOptions(i,h),m=s.axis,g=a.axis,{spanGaps:_,segment:x}=this.options,v=Ac(_)?_:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||i==="none";let w=n>0&&this.getParsed(n-1);for(let E=n;E<n+r;++E){const P=t[E],k=this.getParsed(E),N=b?P:{},A=ht(k[g]),V=N[m]=s.getPixelForValue(k[m],E),I=N[g]=o||A?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[g],E);N.skip=isNaN(V)||isNaN(I)||A,N.stop=E>0&&Math.abs(k[m]-w[m])>v,x&&(N.parsed=k,N.raw=c.data[E]),p&&(N.options=h||this.resolveDataElementOptions(E,P.active?"active":i)),b||this.updateElement(P,E,N,i),w=k}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}w_.id="scatter";w_.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};w_.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var xpe=Object.freeze({__proto__:null,BarController:rh,BubbleController:v_,DoughnutController:cl,LineController:ih,PolarAreaController:y_,PieController:jE,RadarController:__,ScatterController:w_});function ma(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ox{constructor(t){this.options=t||{}}init(t){}formats(){return ma()}parse(t,n){return ma()}format(t,n){return ma()}add(t,n,r){return ma()}diff(t,n,r){return ma()}startOf(t,n,r){return ma()}endOf(t,n){return ma()}}ox.override=function(e){Object.assign(ox.prototype,e)};var Spe={_date:ox};function Cpe(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?fde:wo;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(t);if(f){const h=l(o,t,n-f),p=l(o,t,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function oh(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:f}=o[a],{lo:h,hi:p}=Cpe(o[a],t,s,i);for(let m=h;m<=p;++m){const g=f[m];g.skip||r(g,c,m)}}}function Epe(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function Ob(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||oh(e,n,t,function(a,l,c){!i&&!gd(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function Tpe(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:f}=s.getProps(["startAngle","endAngle"],r),{angle:h}=l8(s,{x:t.x,y:t.y});md(h,c,f)&&i.push({element:s,datasetIndex:a,index:l})}return oh(e,n,t,o),i}function Ope(e,t,n,r,i,o){let s=[];const a=Epe(n);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const m=f.inRange(t.x,t.y,i);if(r&&!m)return;const g=f.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!m)return;const x=a(t,g);x<l?(s=[{element:f,datasetIndex:h,index:p}],l=x):x===l&&s.push({element:f,datasetIndex:h,index:p})}return oh(e,n,t,c),s}function Pb(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?Tpe(e,t,n,i):Ope(e,t,n,r,i,o)}function iN(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return oh(e,n,t,(l,c,f)=>{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var Ppe={evaluateInteractionItems:oh,modes:{index(e,t,n,r){const i=xa(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Ob(e,i,o,r,s):Pb(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,n,r){const i=xa(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Ob(e,i,o,r,s):Pb(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;f<c.length;++f)a.push({element:c[f],datasetIndex:l,index:f})}return a},point(e,t,n,r){const i=xa(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return Ob(e,i,o,r,s)},nearest(e,t,n,r){const i=xa(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return Pb(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=xa(t,e);return iN(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=xa(t,e);return iN(e,i,"y",n.intersect,r)}}};const $8=["left","top","right","bottom"];function Du(e,t){return e.filter(n=>n.pos===t)}function oN(e,t){return e.filter(n=>$8.indexOf(n.pos)===-1&&n.box.axis===t)}function Au(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function kpe(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function Mpe(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!$8.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function Rpe(e,t){const n=Mpe(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],f=c&&a.stackWeight/c.weight;a.horizontal?(a.width=f?f*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=f?f*i:l&&t.availableHeight)}return n}function Npe(e){const t=kpe(e),n=Au(t.filter(c=>c.box.fullSize),!0),r=Au(Du(t,"left"),!0),i=Au(Du(t,"right")),o=Au(Du(t,"top"),!0),s=Au(Du(t,"bottom")),a=oN(t,"x"),l=oN(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:Du(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function sN(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function j8(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Lpe(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!st(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&j8(s,o.getPadding());const a=Math.max(0,t.outerWidth-sN(s,e,"left","right")),l=Math.max(0,t.outerHeight-sN(s,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function Dpe(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ape(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function Zu(e,t,n,r){const i=[];let o,s,a,l,c,f;for(o=0,s=e.length,c=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,Ape(a.horizontal,t));const{same:h,other:p}=Lpe(t,n,a,r);c|=h&&i.length,f=f||p,l.fullSize||i.push(a)}return c&&Zu(i,t,n,r)||f}function Sp(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function aN(e,t,n,r){const i=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},f=a.stackWeight/c.weight||1;if(a.horizontal){const h=t.w*f,p=c.size||l.height;ii(c.start)&&(s=c.start),l.fullSize?Sp(l,i.left,s,n.outerWidth-i.right-i.left,p):Sp(l,t.left+c.placed,s,h,p),c.start=s,c.placed+=h,s=l.bottom}else{const h=t.h*f,p=c.size||l.width;ii(c.start)&&(o=c.start),l.fullSize?Sp(l,o,i.top,p,n.outerHeight-i.bottom-i.top):Sp(l,o,t.top+c.placed,p,h),c.start=o,c.placed+=h,o=l.right}}t.x=o,t.y=s}lt.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Qn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=rr(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=Npe(e.boxes),l=a.vertical,c=a.horizontal;bt(e.boxes,_=>{typeof _.beforeLayout=="function"&&_.beforeLayout()});const f=l.reduce((_,x)=>x.box.options&&x.box.options.display===!1?_:_+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);j8(p,rr(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),g=Rpe(l.concat(c),h);Zu(a.fullSize,m,h,g),Zu(l,m,h,g),Zu(c,m,h,g)&&Zu(l,m,h,g),Dpe(m),aN(a.leftAndTop,m,h,g),m.x+=m.w,m.y+=m.h,aN(a.rightAndBottom,m,h,g),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},bt(a.chartArea,_=>{const x=_.box;Object.assign(x,e.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class B8{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class Ipe extends B8{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Wm="$chartjs",Fpe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},lN=e=>e===null||e==="";function $pe(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Wm]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",lN(i)){const o=BR(e,"width");o!==void 0&&(e.width=o)}if(lN(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=BR(e,"height");o!==void 0&&(e.height=o)}return e}const z8=yhe?{passive:!0}:!1;function jpe(e,t,n){e.addEventListener(t,n,z8)}function Bpe(e,t,n){e.canvas.removeEventListener(t,n,z8)}function zpe(e,t){const n=Fpe[e.type]||e.type,{x:r,y:i}=xa(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Vv(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Upe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Vv(a.addedNodes,r),s=s&&!Vv(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Vpe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Vv(a.removedNodes,r),s=s&&!Vv(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const yd=new Map;let cN=0;function U8(){const e=window.devicePixelRatio;e!==cN&&(cN=e,yd.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Hpe(e,t){yd.size||window.addEventListener("resize",U8),yd.set(e,t)}function Wpe(e){yd.delete(e),yd.size||window.removeEventListener("resize",U8)}function Ype(e,t,n){const r=e.canvas,i=r&&$E(r);if(!i)return;const o=d8((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return s.observe(i),Hpe(e,o),s}function kb(e,t,n){n&&n.disconnect(),t==="resize"&&Wpe(e)}function qpe(e,t,n){const r=e.canvas,i=d8(o=>{e.ctx!==null&&n(zpe(o,e))},e,o=>{const s=o[0];return[s,s.offsetX,s.offsetY]});return jpe(r,t,i),i}class Gpe extends B8{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?($pe(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Wm])return!1;const r=n[Wm].initial;["height","width"].forEach(o=>{const s=r[o];ht(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Wm],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:Upe,detach:Vpe,resize:Ype}[n]||qpe;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:kb,detach:kb,resize:kb}[n]||Bpe)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return vhe(t,n,r,i)}isAttached(t){const n=$E(t);return!!(n&&n.isConnected)}}function Zpe(e){return!P8()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Ipe:Gpe}class Kpe{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const o of t){const s=o.plugin,a=s[r],l=[n,i,o.options];if(Pt(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ht(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Je(r.options&&r.options.plugins,{}),o=Xpe(r);return i===!1&&!n?[]:Jpe(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function Xpe(e){const t={},n=[],r=Object.keys(qi.plugins.items);for(let o=0;o<r.length;o++)n.push(qi.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function Qpe(e,t){return!t&&e===!1?null:e===!0?{}:e}function Jpe(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=Qpe(r[l],i);c!==null&&o.push({plugin:a,options:eme(e.config,{plugin:a,local:n[l]},c,s)})}return o}function eme(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function sx(e,t){const n=lt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function tme(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function nme(e,t){return e===t?"_index_":"_value_"}function rme(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function ax(e,t){return e==="x"||e==="y"?e:t.axis||rme(t.position)||e.charAt(0).toLowerCase()}function ime(e,t){const n=tl[e.type]||{scales:{}},r=t.scales||{},i=sx(e.type,t),o=Object.create(null),s=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!st(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=ax(a,l),f=nme(c,i),h=n.scales||{};o[c]=o[c]||a,s[a]=wf(Object.create(null),[{axis:c},l,h[c],h[f]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,c=a.indexAxis||sx(l,t),h=(tl[l]||{}).scales||{};Object.keys(h).forEach(p=>{const m=tme(p,c),g=a[m+"AxisID"]||o[m]||m;s[g]=s[g]||Object.create(null),wf(s[g],[{axis:m},r[g],h[p]])})}),Object.keys(s).forEach(a=>{const l=s[a];wf(l,[lt.scales[l.type],lt.scale])}),s}function V8(e){const t=e.options||(e.options={});t.plugins=Je(t.plugins,{}),t.scales=ime(e,t)}function H8(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function ome(e){return e=e||{},e.data=H8(e.data),V8(e),e}const uN=new Map,W8=new Set;function Cp(e,t){let n=uN.get(e);return n||(n=t(),uN.set(e,n),W8.add(n)),n}const Iu=(e,t,n)=>{const r=Bs(t,n);r!==void 0&&e.add(r)};class sme{constructor(t){this._config=ome(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=H8(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),V8(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Cp(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Cp(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Cp(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Cp(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>Iu(l,t,h))),f.forEach(h=>Iu(l,i,h)),f.forEach(h=>Iu(l,tl[o]||{},h)),f.forEach(h=>Iu(l,lt,h)),f.forEach(h=>Iu(l,rx,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),W8.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,tl[n]||{},lt.datasets[n]||{},{type:n},lt,rx]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=fN(this._resolverCache,t,i);let l=s;if(lme(s,n)){o.$shared=!1,r=zs(r)?r():r;const c=this.createResolver(t,r,a);l=Ic(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=fN(this._resolverCache,t,r);return st(n)?Ic(o,n,void 0,i):o}}function fN(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:AE(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const ame=e=>st(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||zs(e[n]),!1);function lme(e,t){const{isScriptable:n,isIndexable:r}=x8(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(zs(a)||ame(a))||s&&Mt(a))return!0}return!1}var cme="3.9.1";const ume=["top","bottom","left","right","chartArea"];function dN(e,t){return e==="top"||e==="bottom"||ume.indexOf(e)===-1&&t==="x"}function hN(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function pN(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Pt(n&&n.onComplete,[e],t)}function fme(e){const t=e.chart,n=t.options.animation;Pt(n&&n.onProgress,[e],t)}function Y8(e){return P8()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Hv={},q8=e=>{const t=Y8(e);return Object.values(Hv).filter(n=>n.canvas===t).pop()};function dme(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function hme(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let sh=class{constructor(t,n){const r=this.config=new sme(n),i=Y8(t),o=q8(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Zpe(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=Qfe(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Kpe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=pde(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],Hv[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}co.listen(this,"complete",pN),co.listen(this,"progress",fme),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ht(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():jR(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return IR(this.canvas,this.ctx),this}stop(){return co.stop(this),this}resize(t,n){co.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,jR(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Pt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};bt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=ax(s,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),bt(o,s=>{const a=s.options,l=a.id,c=ax(l,a),f=Je(a.type,s.dtype);(a.position===void 0||dN(a.position,c)!==dN(s.dposition))&&(a.position=s.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=qi.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),bt(i,(s,a)=>{s||delete r[a]}),bt(r,s=>{Qn.configure(this,s,s.options),Qn.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(hN("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||sx(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=qi.getController(a),{datasetElementType:c,dataElementType:f}=lt.datasets[a];Object.assign(l.prototype,{dataElementType:qi.getElement(f),datasetElementType:c&&qi.getElement(c)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){bt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,f=this.data.datasets.length;c<f;c++){const{controller:h}=this.getDatasetMeta(c),p=!i&&o.indexOf(h)===-1;h.buildOrUpdateElements(p),s=Math.max(+h.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||bt(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hN("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){bt(this.scales,t=>{Qn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!CR(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;dme(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!CR(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Qn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],bt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,zs(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(co.has(this)?this.attached&&!co.running(this)&&co.start(this):(this.draw(),pN({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&p_(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&m_(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return gd(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=Ppe.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Js(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);ii(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),co.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),IR(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Hv[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};bt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){bt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},bt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:s})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!Fv(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=ide(t),c=hme(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Pt(o.onHover,[t,a,this],this),l&&Pt(o.onClick,[t,a,this],this));const f=!Fv(a,i);return(f||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};const mN=()=>bt(sh.instances,e=>e._plugins.invalidate()),Zo=!0;Object.defineProperties(sh,{defaults:{enumerable:Zo,value:lt},instances:{enumerable:Zo,value:Hv},overrides:{enumerable:Zo,value:tl},registry:{enumerable:Zo,value:qi},version:{enumerable:Zo,value:cme},getChart:{enumerable:Zo,value:q8},register:{enumerable:Zo,value:(...e)=>{qi.add(...e),mN()}},unregister:{enumerable:Zo,value:(...e)=>{qi.remove(...e),mN()}}});function G8(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+Qt,r-Qt),e.closePath(),e.clip()}function pme(e){return DE(e,["outerStart","outerEnd","innerStart","innerEnd"])}function mme(e,t,n,r){const i=pme(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return Tn(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Tn(i.innerStart,0,s),innerEnd:Tn(i.innerEnd,0,s)}}function Nl(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function lx(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let m=0;const g=i-l;if(r){const J=f>0?f-r:0,oe=h>0?h-r:0,ce=(J+oe)/2,K=ce!==0?g*ce/(ce+r):g;m=(g-K)/2}const _=Math.max(.001,g*h-n/zt)/h,x=(g-_)/2,v=l+x+m,b=i-x-m,{outerStart:w,outerEnd:E,innerStart:P,innerEnd:k}=mme(t,p,h,b-v),N=h-w,A=h-E,V=v+w/N,I=b-E/A,Y=p+P,q=p+k,X=v+P/Y,Z=b-k/q;if(e.beginPath(),o){if(e.arc(s,a,h,V,I),E>0){const ce=Nl(A,I,s,a);e.arc(ce.x,ce.y,E,I,b+Qt)}const J=Nl(q,b,s,a);if(e.lineTo(J.x,J.y),k>0){const ce=Nl(q,Z,s,a);e.arc(ce.x,ce.y,k,b+Qt,Z+Math.PI)}if(e.arc(s,a,p,b-k/p,v+P/p,!0),P>0){const ce=Nl(Y,X,s,a);e.arc(ce.x,ce.y,P,X+Math.PI,v-Qt)}const oe=Nl(N,v,s,a);if(e.lineTo(oe.x,oe.y),w>0){const ce=Nl(N,V,s,a);e.arc(ce.x,ce.y,w,v-Qt,V)}}else{e.moveTo(s,a);const J=Math.cos(V)*h+s,oe=Math.sin(V)*h+a;e.lineTo(J,oe);const ce=Math.cos(I)*h+s,K=Math.sin(I)*h+a;e.lineTo(ce,K)}e.closePath()}function gme(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){lx(e,t,n,r,s+Et,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+a%Et,a%Et===0&&(l+=Et))}return lx(e,t,n,r,l,i),e.fill(),l}function vme(e,t,n){const{x:r,y:i,startAngle:o,pixelMargin:s,fullCircles:a}=t,l=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;let f;for(n&&G8(e,t,o+Et),e.beginPath(),e.arc(r,i,c,o+Et,o,!0),f=0;f<a;++f)e.stroke();for(e.beginPath(),e.arc(r,i,l,o,o+Et),f=0;f<a;++f)e.stroke()}function yme(e,t,n,r,i,o){const{options:s}=t,{borderWidth:a,borderJoinStyle:l}=s,c=s.borderAlign==="inner";a&&(c?(e.lineWidth=a*2,e.lineJoin=l||"round"):(e.lineWidth=a,e.lineJoin=l||"bevel"),t.fullCircles&&vme(e,t,c),c&&G8(e,t,i),lx(e,t,n,r,i,o),e.stroke())}class x_ extends Ri{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=l8(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=this.options.spacing/2,g=Je(h,l-a)>=Et||md(o,a,l),_=bo(s,c+p,f+p);return g&&_}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(s+a+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/2,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Et?Math.floor(r/Et):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const c=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=zt&&(a=i)}t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor;const l=gme(t,this,a,o,s);yme(t,this,a,o,l,s),t.restore()}}x_.id="arc";x_.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};x_.defaultRoutes={backgroundColor:"backgroundColor"};function Z8(e,t,n=t){e.lineCap=Je(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Je(n.borderDash,t.borderDash)),e.lineDashOffset=Je(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Je(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Je(n.borderWidth,t.borderWidth),e.strokeStyle=Je(n.borderColor,t.borderColor)}function _me(e,t,n){e.lineTo(n.x,n.y)}function bme(e){return e.stepped?zde:e.tension||e.cubicInterpolationMode==="monotone"?Ude:_me}function K8(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),f=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:c<l&&!f?r+c-l:c-l}}function wme(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:c}=K8(i,n,r),f=bme(o);let{move:h=!0,reverse:p}=r||{},m,g,_;for(m=0;m<=c;++m)g=i[(a+(p?c-m:m))%s],!g.skip&&(h?(e.moveTo(g.x,g.y),h=!1):f(e,_,g,p,o.stepped),_=g);return l&&(g=i[(a+(p?c:0))%s],f(e,_,g,p,o.stepped)),!!l}function xme(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=K8(i,n,r),{move:l=!0,reverse:c}=r||{};let f=0,h=0,p,m,g,_,x,v;const b=E=>(s+(c?a-E:E))%o,w=()=>{_!==x&&(e.lineTo(f,x),e.lineTo(f,_),e.lineTo(f,v))};for(l&&(m=i[b(0)],e.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[b(p)],m.skip)continue;const E=m.x,P=m.y,k=E|0;k===g?(P<_?_=P:P>x&&(x=P),f=(h*f+E)/++h):(w(),e.lineTo(E,P),g=k,h=0,_=x=P),v=P}w()}function cx(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?xme:wme}function Sme(e){return e.stepped?_he:e.tension||e.cubicInterpolationMode==="monotone"?bhe:Sa}function Cme(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Z8(e,t.options),e.stroke(i)}function Eme(e,t,n,r){const{segments:i,options:o}=t,s=cx(t);for(const a of i)Z8(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Tme=typeof Path2D=="function";function Ome(e,t,n,r){Tme&&!t.options.segment?Cme(e,t,n,r):Eme(e,t,n,r)}class ea extends Ri{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;fhe(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ohe(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=L8(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=Sme(r);let c,f;for(c=0,f=s.length;c<f;++c){const{start:h,end:p}=s[c],m=o[h],g=o[p];if(m===g){a.push(m);continue}const _=Math.abs((i-m[n])/(g[n]-m[n])),x=l(m,g,_,r.stepped);x[n]=t[n],a.push(x)}return a.length===1?a[0]:a}pathSegment(t,n,r){return cx(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=cx(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Ome(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ea.id="line";ea.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};ea.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};ea.descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};function gN(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class S_ extends Ri{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return gN(this,t,"x",n)}inYRange(t,n){return gN(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!gd(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,ix(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}S_.id="point";S_.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};S_.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function X8(e,t){const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,c,f,h;return e.horizontal?(h=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-h,f=r+h):(h=o/2,a=n-h,l=n+h,c=Math.min(r,i),f=Math.max(r,i)),{left:a,top:c,right:l,bottom:f}}function hs(e,t,n,r){return e?0:Tn(t,n,r)}function Pme(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=w8(r);return{t:hs(i.top,o.top,0,n),r:hs(i.right,o.right,0,t),b:hs(i.bottom,o.bottom,0,n),l:hs(i.left,o.left,0,t)}}function kme(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=$a(i),s=Math.min(t,n),a=e.borderSkipped,l=r||st(i);return{topLeft:hs(!l||a.top||a.left,o.topLeft,0,s),topRight:hs(!l||a.top||a.right,o.topRight,0,s),bottomLeft:hs(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:hs(!l||a.bottom||a.right,o.bottomRight,0,s)}}function Mme(e){const t=X8(e),n=t.right-t.left,r=t.bottom-t.top,i=Pme(e,n/2,r/2),o=kme(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Mb(e,t,n,r){const i=t===null,o=n===null,a=e&&!(i&&o)&&X8(e,r);return a&&(i||bo(t,a.left,a.right))&&(o||bo(n,a.top,a.bottom))}function Rme(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Nme(e,t){e.rect(t.x,t.y,t.w,t.h)}function Rb(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}class C_ extends Ri{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=Mme(this),a=Rme(s.radius)?vd:Nme;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,Rb(s,n,o)),t.clip(),a(t,Rb(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,Rb(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return Mb(this,t,n,r)}inXRange(t,n){return Mb(this,t,null,n)}inYRange(t,n){return Mb(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}C_.id="bar";C_.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};C_.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Lme=Object.freeze({__proto__:null,ArcElement:x_,LineElement:ea,PointElement:S_,BarElement:C_});function Dme(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,m,g,_;for(s[l++]=e[f],h=0;h<o-2;h++){let x=0,v=0,b;const w=Math.floor((h+1)*a)+1+t,E=Math.min(Math.floor((h+2)*a)+1,n)+t,P=E-w;for(b=w;b<E;b++)x+=e[b].x,v+=e[b].y;x/=P,v/=P;const k=Math.floor(h*a)+1+t,N=Math.min(Math.floor((h+1)*a)+1,n)+t,{x:A,y:V}=e[f];for(m=g=-1,b=k;b<N;b++)g=.5*Math.abs((A-x)*(e[b].y-V)-(A-e[b].x)*(v-V)),g>m&&(m=g,p=e[b],_=b);s[l++]=p,f=_}return s[l++]=e[c],s}function Ame(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,m,g,_;const x=[],v=t+n-1,b=e[t].x,E=e[v].x-b;for(s=t;s<t+n;++s){a=e[s],l=(a.x-b)/E*r,c=a.y;const P=l|0;if(P===f)c<g?(g=c,h=s):c>_&&(_=c,p=s),i=(o*i+a.x)/++o;else{const k=s-1;if(!ht(h)&&!ht(p)){const N=Math.min(h,p),A=Math.max(h,p);N!==m&&N!==k&&x.push({...e[N],x:i}),A!==m&&A!==k&&x.push({...e[A],x:i})}s>0&&k!==m&&x.push(e[k]),x.push(a),f=P,o=0,g=_=c,h=p=m=s}}return x}function Q8(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function vN(e){e.data.datasets.forEach(t=>{Q8(t)})}function Ime(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=Tn(wo(t,o.axis,s).lo,0,n-1)),c?i=Tn(wo(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Fme={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){vN(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(Gu([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=e.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||e.options.parsing)return;let{start:h,count:p}=Ime(l,c);const m=n.threshold||4*r;if(p<=m){Q8(i);return}ht(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(_){this._data=_}}));let g;switch(n.algorithm){case"lttb":g=Dme(c,h,p,r,n);break;case"min-max":g=Ame(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=g})},destroy(e){vN(e)}};function $me(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=BE(l,c,i);const f=ux(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:f,start:i[l],end:i[c]});continue}const h=L8(t,f);for(const p of h){const m=ux(n,o[p.start],o[p.end],p.loop),g=N8(a,i,m);for(const _ of g)s.push({source:_,target:p,start:{[n]:yN(f,m,"start",Math.max)},end:{[n]:yN(f,m,"end",Math.min)}})}}return s}function ux(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Tr(i),o=Tr(o)),{property:e,start:i,end:o}}function jme(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=BE(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function BE(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function yN(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function J8(e,t){let n=[],r=!1;return Mt(e)?(r=!0,n=e):n=jme(e,t),n.length?new ea({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function _N(e){return e&&e.fill!==!1}function Bme(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!ln(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function zme(e,t,n){const r=Wme(e);if(st(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return ln(i)&&Math.floor(i)===i?Ume(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Ume(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function Vme(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:st(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Hme(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:st(e)?r=e.value:r=t.getBaseValue(),r}function Wme(e){const t=e.options,n=t.fill;let r=Je(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Yme(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=qme(t,n);a.push(J8({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const c=o[l];for(let f=c.start;f<=c.end;f++)Gme(i,s[f],a)}return new ea({points:i,options:{}})}function qme(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function Gme(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=Zme(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function Zme(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const f=o[c],h=s[f.start][n],p=s[f.end][n];if(bo(i,h,p)){a=i===h,l=i===p;break}}return{first:a,last:l,point:r}}class eF{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:s}=this;return n=n||{start:0,end:Et},t.arc(i,o,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function Kme(e){const{chart:t,fill:n,line:r}=e;if(ln(n))return Xme(t,n);if(n==="stack")return Yme(e);if(n==="shape")return!0;const i=Qme(e);return i instanceof eF?i:J8(i,r)}function Xme(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Qme(e){return(e.scale||{}).getPointPositionForValue?ege(e):Jme(e)}function Jme(e){const{scale:t={},fill:n}=e,r=Vme(n,t);if(ln(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function ege(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=Hme(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new eF({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function Nb(e,t,n){const r=Kme(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,c=a.backgroundColor,{above:f=c,below:h=c}=l||{};r&&i.points.length&&(p_(e,n),tge(e,{line:i,target:r,above:f,below:h,area:n,scale:o,axis:s}),m_(e))}function tge(e,t){const{line:n,target:r,above:i,below:o,area:s,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(bN(e,r,s.top),wN(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),bN(e,r,s.bottom)),wN(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function bN(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:c}=a,f=i[l],h=i[BE(l,c,i)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(f.x,n),e.lineTo(f.x,f.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(h.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function wN(e,t){const{line:n,target:r,property:i,color:o,scale:s}=t,a=$me(n,r,i);for(const{source:l,target:c,start:f,end:h}of a){const{style:{backgroundColor:p=o}={}}=l,m=r!==!0;e.save(),e.fillStyle=p,nge(e,s,m&&ux(i,f,h)),e.beginPath();const g=!!n.pathSegment(e,l);let _;if(m){g?e.closePath():xN(e,r,h,i);const x=!!r.pathSegment(e,c,{move:g,reverse:!0});_=g&&x,_||xN(e,r,f,i)}e.closePath(),e.fill(_?"evenodd":"nonzero"),e.restore()}}function nge(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function xN(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var rge={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof ea&&(l={visible:e.isDatasetVisible(s),index:s,fill:zme(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=Bme(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&Nb(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;_N(o)&&Nb(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!_N(r)||n.drawTime!=="beforeDatasetDraw"||Nb(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const SN=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},ige=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class CN extends Ri{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Pt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=_n(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=SN(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+a;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((g,_)=>{const x=r+n/2+o.measureText(g.text).width;(_===0||c[c.length-1]+x+2*a>s)&&(h+=f,c[c.length-(_>0?0:1)]=0,m+=f,p++),l[_]={left:0,top:m,row:p,width:x,height:i},c[c.length-1]+=x+a}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=a,p=0,m=0,g=0,_=0;return this.legendItems.forEach((x,v)=>{const b=r+n/2+o.measureText(x.text).width;v>0&&m+i+2*a>f&&(h+=p+a,c.push({width:p,height:m}),g+=p+a,_++,p=m=0),l[v]={left:g,top:m,col:_,width:b,height:i},p=Math.max(p,b),m+=i+a}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=hc(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Kn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Kn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Kn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Kn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;p_(t,this),this._draw(),m_(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=lt.color,l=hc(t.rtl,this.left,this.width),c=_n(s.font),{color:f,padding:h}=s,p=c.size,m=p/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:_,boxHeight:x,itemHeight:v}=SN(s,p),b=function(N,A,V){if(isNaN(_)||_<=0||isNaN(x)||x<0)return;i.save();const I=Je(V.lineWidth,1);if(i.fillStyle=Je(V.fillStyle,a),i.lineCap=Je(V.lineCap,"butt"),i.lineDashOffset=Je(V.lineDashOffset,0),i.lineJoin=Je(V.lineJoin,"miter"),i.lineWidth=I,i.strokeStyle=Je(V.strokeStyle,a),i.setLineDash(Je(V.lineDash,[])),s.usePointStyle){const Y={radius:x*Math.SQRT2/2,pointStyle:V.pointStyle,rotation:V.rotation,borderWidth:I},q=l.xPlus(N,_/2),X=A+m;b8(i,Y,q,X,s.pointStyleWidth&&_)}else{const Y=A+Math.max((p-x)/2,0),q=l.leftForLtr(N,_),X=$a(V.borderRadius);i.beginPath(),Object.values(X).some(Z=>Z!==0)?vd(i,{x:q,y:Y,w:_,h:x,radius:X}):i.rect(q,Y,_,x),i.fill(),I!==0&&i.stroke()}i.restore()},w=function(N,A,V){nl(i,V.text,N,A+v/2,c,{strikethrough:V.hidden,textAlign:l.textAlign(V.textAlign)})},E=this.isHorizontal(),P=this._computeTitleHeight();E?g={x:Kn(o,this.left+h,this.right-r[0]),y:this.top+h+P,line:0}:g={x:this.left+h,y:Kn(o,this.top+P+h,this.bottom-n[0].height),line:0},k8(this.ctx,t.textDirection);const k=v+h;this.legendItems.forEach((N,A)=>{i.strokeStyle=N.fontColor||f,i.fillStyle=N.fontColor||f;const V=i.measureText(N.text).width,I=l.textAlign(N.textAlign||(N.textAlign=s.textAlign)),Y=_+m+V;let q=g.x,X=g.y;l.setWidth(this.width),E?A>0&&q+Y+h>this.right&&(X=g.y+=k,g.line++,q=g.x=Kn(o,this.left+h,this.right-r[g.line])):A>0&&X+k>this.bottom&&(q=g.x=q+n[g.line].width+h,g.line++,X=g.y=Kn(o,this.top+P+h,this.bottom-n[g.line].height));const Z=l.x(q);b(Z,X,N),q=mde(I,q+_+m,E?q+Y:this.right,t.rtl),w(l.x(q),X,N),E?g.x+=Y+h:g.y+=k}),M8(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=_n(n.font),i=rr(n.padding);if(!n.display)return;const o=hc(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Kn(t.align,h,this.right-p);else{const g=this.columnSizes.reduce((_,x)=>Math.max(_,x.height),0);f=c+Kn(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const m=Kn(a,h,h+p);s.textAlign=o.textAlign(ME(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,nl(s,n.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,n=_n(t.font),r=rr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(bo(t,this.left,this.right)&&bo(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],bo(t,i.left,i.left+i.width)&&bo(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!oge(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=ige(i,r);i&&!o&&Pt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Pt(n.onHover,[t,r,this],this)}else r&&Pt(n.onClick,[t,r,this],this)}}function oge(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var sge={id:"legend",_element:CN,start(e,t,n){const r=e.legend=new CN({ctx:e.ctx,options:n,chart:e});Qn.configure(e,r,n),Qn.addBox(e,r)},stop(e){Qn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Qn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const a=s.controller.getStyle(n?0:void 0),l=rr(a.borderWidth);return{text:t[s.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!s.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:r||a.pointStyle,rotation:a.rotation,textAlign:i||a.textAlign,borderRadius:0,datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class zE extends Ri{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Mt(r.text)?r.text.length:1;this._padding=rr(r.padding);const o=i*_n(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,f,h;return this.isHorizontal()?(f=Kn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Kn(a,i,n),l=zt*-.5):(f=o-t,h=Kn(a,n,i),l=zt*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=_n(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);nl(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:ME(n.align),textBaseline:"middle",translation:[s,a]})}}function age(e,t){const n=new zE({ctx:e.ctx,options:t,chart:e});Qn.configure(e,n,t),Qn.addBox(e,n),e.titleBlock=n}var lge={id:"title",_element:zE,start(e,t,n){age(e,n)},stop(e){const t=e.titleBlock;Qn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Qn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ep=new WeakMap;var cge={id:"subtitle",start(e,t,n){const r=new zE({ctx:e.ctx,options:n,chart:e});Qn.configure(e,r,n),Qn.addBox(e,r),Ep.set(e,r)},stop(e){Qn.removeBox(e,Ep.get(e)),Ep.delete(e)},beforeUpdate(e,t,n){const r=Ep.get(e);Qn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ef={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=tx(t,c);f<i&&(i=f,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function ji(e,t){return t&&(Mt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function uo(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
||
`)>-1?e.split(`
|
||
`):e}function uge(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function EN(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=_n(t.bodyFont),c=_n(t.titleFont),f=_n(t.footerFont),h=o.length,p=i.length,m=r.length,g=rr(t.padding);let _=g.height,x=0,v=r.reduce((E,P)=>E+P.before.length+P.lines.length+P.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,h&&(_+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),v){const E=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;_+=m*E+(v-m)*l.lineHeight+(v-1)*t.bodySpacing}p&&(_+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let b=0;const w=function(E){x=Math.max(x,n.measureText(E).width+b)};return n.save(),n.font=c.string,bt(e.title,w),n.font=l.string,bt(e.beforeBody.concat(e.afterBody),w),b=t.displayColors?s+2+t.boxPadding:0,bt(r,E=>{bt(E.before,w),bt(E.lines,w),bt(E.after,w)}),b=0,n.font=f.string,bt(e.footer,w),n.restore(),x+=g.width,{width:x,height:_}}function fge(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function dge(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function hge(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),dge(c,e,t,n)&&(c="center"),c}function TN(e,t,n){const r=n.yAlign||t.yAlign||fge(e,n);return{xAlign:n.xAlign||t.xAlign||hge(e,t,n,r),yAlign:r}}function pge(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function mge(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function ON(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=$a(s);let g=pge(t,a);const _=mge(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(f,p)+i:a==="right"&&(g+=Math.max(h,m)+i),{x:Tn(g,0,r.width-t.width),y:Tn(_,0,r.height-t.height)}}function Tp(e,t,n){const r=rr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function PN(e){return ji([],uo(e))}function gge(e,t,n){return Js(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function kN(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class fx extends Ri{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new D8(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=gge(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=r.beforeTitle.apply(this,[t]),o=r.title.apply(this,[t]),s=r.afterTitle.apply(this,[t]);let a=[];return a=ji(a,uo(i)),a=ji(a,uo(o)),a=ji(a,uo(s)),a}getBeforeBody(t,n){return PN(n.callbacks.beforeBody.apply(this,[t]))}getBody(t,n){const{callbacks:r}=n,i=[];return bt(t,o=>{const s={before:[],lines:[],after:[]},a=kN(r,o);ji(s.before,uo(a.beforeLabel.call(this,o))),ji(s.lines,a.label.call(this,o)),ji(s.after,uo(a.afterLabel.call(this,o))),i.push(s)}),i}getAfterBody(t,n){return PN(n.callbacks.afterBody.apply(this,[t]))}getFooter(t,n){const{callbacks:r}=n,i=r.beforeFooter.apply(this,[t]),o=r.footer.apply(this,[t]),s=r.afterFooter.apply(this,[t]);let a=[];return a=ji(a,uo(i)),a=ji(a,uo(o)),a=ji(a,uo(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(uge(this.chart,n[l]));return t.filter&&(a=a.filter((f,h,p)=>t.filter(f,h,p,r))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,r))),bt(a,f=>{const h=kN(t.callbacks,f);i.push(h.labelColor.call(this,f)),o.push(h.labelPointStyle.call(this,f)),s.push(h.labelTextColor.call(this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Ef[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=EN(this,r),c=Object.assign({},a,l),f=TN(this.chart,r,c),h=ON(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=$a(a),{x:p,y:m}=t,{width:g,height:_}=n;let x,v,b,w,E,P;return o==="center"?(E=m+_/2,i==="left"?(x=p,v=x-s,w=E+s,P=E-s):(x=p+g,v=x+s,w=E-s,P=E+s),b=x):(i==="left"?v=p+Math.max(l,f)+s:i==="right"?v=p+g-Math.max(c,h)-s:v=this.caretX,o==="top"?(w=m,E=w-s,x=v-s,b=v+s):(w=m+_,E=w+s,x=v+s,b=v-s),P=w),{x1:x,x2:v,x3:b,y1:w,y2:E,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=hc(r.rtl,this.x,this.width);for(t.x=Tp(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=_n(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:f}=o,h=_n(o.bodyFont),p=Tp(this,"left",o),m=i.x(p),g=l<h.lineHeight?(h.lineHeight-l)/2:0,_=n.y+g;if(o.usePointStyle){const x={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},v=i.leftForLtr(m,c)+c/2,b=_+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,ix(t,x,v,b),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,ix(t,x,v,b)}else{t.lineWidth=st(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const x=i.leftForLtr(m,c-f),v=i.leftForLtr(i.xPlus(m,1),c-f-2),b=$a(s.borderRadius);Object.values(b).some(w=>w!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,vd(t,{x,y:_,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),vd(t,{x:v,y:_+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(x,_,c,l),t.strokeRect(x,_,c,l),t.fillStyle=s.backgroundColor,t.fillRect(v,_+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=_n(r.bodyFont);let p=h.lineHeight,m=0;const g=hc(r.rtl,this.x,this.width),_=function(A){n.fillText(A,g.x(t.x+m),t.y+p/2),t.y+=p+o},x=g.textAlign(s);let v,b,w,E,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Tp(this,x,r),n.fillStyle=r.bodyColor,bt(this.beforeBody,_),m=a&&x!=="right"?s==="center"?c/2+f:c+2+f:0,E=0,k=i.length;E<k;++E){for(v=i[E],b=this.labelTextColors[E],n.fillStyle=b,bt(v.before,_),w=v.lines,a&&w.length&&(this._drawColorBox(n,t,E,g,r),p=Math.max(h.lineHeight,l)),P=0,N=w.length;P<N;++P)_(w[P]),p=h.lineHeight;bt(v.after,_)}m=0,p=h.lineHeight,bt(this.afterBody,_),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=hc(r.rtl,this.x,this.width);for(t.x=Tp(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=_n(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:f}=r,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:g}=$a(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+h,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+c-p,l),n.quadraticCurveTo(a+c,l,a+c,l+p),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+c,l+f-g),n.quadraticCurveTo(a+c,l+f,a+c-g,l+f),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+m,l+f),n.quadraticCurveTo(a,l+f,a,l+f-m),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+h),n.quadraticCurveTo(a,l,a+h,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Ef[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=EN(this,t),l=Object.assign({},s,this._size),c=TN(n,t,l),f=ON(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=rr(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),k8(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),M8(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Fv(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!Fv(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=Ef[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}fx.positioners=Ef;var vge={id:"tooltip",_element:fx,positioners:Ef,afterInit(e,t,n){n&&(e.tooltip=new fx({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",n)===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:lo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:lo,beforeBody:lo,beforeLabel:lo,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ht(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:lo,afterBody:lo,beforeFooter:lo,footer:lo,afterFooter:lo}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},yge=Object.freeze({__proto__:null,Decimation:Fme,Filler:rge,Legend:sge,SubTitle:cge,Title:lge,Tooltip:vge});const _ge=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function bge(e,t,n,r){const i=e.indexOf(t);if(i===-1)return _ge(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const wge=(e,t)=>e===null?null:Tn(Math.round(e),0,t);class Wv extends ul{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ht(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:bge(r,t,Je(n,t),this._addedLabels),wge(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){const n=this.getLabels();return t>=0&&t<n.length?n[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Wv.id="category";Wv.defaults={ticks:{callback:Wv.prototype.getLabelForValue}};function xge(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,m=o||1,g=f-1,{min:_,max:x}=t,v=!ht(s),b=!ht(a),w=!ht(c),E=(x-_)/(h+1);let P=TR((x-_)/g/m)*m,k,N,A,V;if(P<1e-14&&!v&&!b)return[{value:_},{value:x}];V=Math.ceil(x/P)-Math.floor(_/P),V>g&&(P=TR(V*P/g/m)*m),ht(l)||(k=Math.pow(10,l),P=Math.ceil(P*k)/k),i==="ticks"?(N=Math.floor(_/P)*P,A=Math.ceil(x/P)*P):(N=_,A=x),v&&b&&o&&lde((a-s)/o,P/1e3)?(V=Math.round(Math.min((a-s)/P,f)),P=(a-s)/V,N=s,A=a):w?(N=v?s:N,A=b?a:A,V=c-1,P=(A-N)/V):(V=(A-N)/P,xf(V,Math.round(V),P/1e3)?V=Math.round(V):V=Math.ceil(V));const I=Math.max(OR(P),OR(N));k=Math.pow(10,ht(l)?I:l),N=Math.round(N*k)/k,A=Math.round(A*k)/k;let Y=0;for(v&&(p&&N!==s?(n.push({value:s}),N<s&&Y++,xf(Math.round((N+Y*P)*k)/k,s,MN(s,E,e))&&Y++):N<s&&Y++);Y<V;++Y)n.push({value:Math.round((N+Y*P)*k)/k});return b&&p&&A!==a?n.length&&xf(n[n.length-1].value,a,MN(a,E,e))?n[n.length-1].value=a:n.push({value:a}):(!b||A===a)&&n.push({value:A}),n}function MN(e,t,{horizontal:n,minRotation:r}){const i=wi(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class Yv extends ul{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ht(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){const l=Qi(i),c=Qi(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(o*.05)),a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=xge(i,o);return t.bounds==="ticks"&&a8(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return nh(t,this.chart.options.locale,this.options.ticks.format)}}class UE extends Yv{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ln(t)?t:0,this.max=ln(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=wi(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}UE.id="linear";UE.defaults={ticks:{callback:b_.formatters.numeric}};function RN(e){return e/Math.pow(10,Math.floor(qr(e)))===1}function Sge(e,t){const n=Math.floor(qr(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[];let o=Vr(e.min,Math.pow(10,Math.floor(qr(t.min)))),s=Math.floor(qr(o)),a=Math.floor(o/Math.pow(10,s)),l=s<0?Math.pow(10,Math.abs(s)):1;do i.push({value:o,major:RN(o)}),++a,a===10&&(a=1,++s,l=s>=0?1:l),o=Math.round(a*Math.pow(10,s)*l)/l;while(s<n||s===n&&a<r);const c=Vr(e.max,o);return i.push({value:c,major:RN(o)}),i}class VE extends ul{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Yv.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return ln(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ln(t)?Math.max(0,t):null,this.max=ln(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=l=>r=t?r:l,s=l=>i=n?i:l,a=(l,c)=>Math.pow(10,Math.floor(qr(l))+c);r===i&&(r<=0?(o(1),s(10)):(o(a(r,-1)),s(a(i,1)))),r<=0&&o(a(i,-1)),i<=0&&s(a(r,1)),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&o(a(r,-1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=Sge(n,this);return t.bounds==="ticks"&&a8(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":nh(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=qr(t),this._valueRange=qr(this.max)-qr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(qr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}VE.id="logarithmic";VE.defaults={ticks:{callback:b_.formatters.logarithmic,major:{enabled:!0}}};function dx(e){const t=e.ticks;if(t.display&&e.display){const n=rr(t.backdropPadding);return Je(t.font&&t.font.size,lt.font.size)+n.height}return 0}function Cge(e,t,n){return n=Mt(n)?n:[n],{w:Bde(e,t.string,n),h:n.length*t.lineHeight}}function NN(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Ege(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?zt/o:0;for(let l=0;l<o;l++){const c=s.setContext(e.getPointLabelContext(l));i[l]=c.padding;const f=e.getPointPosition(l,e.drawingArea+i[l],a),h=_n(c.font),p=Cge(e.ctx,h,e._pointLabels[l]);r[l]=p;const m=Tr(e.getIndexAngle(l)+a),g=Math.round(PE(m)),_=NN(g,f.x,p.w,0,180),x=NN(g,f.y,p.h,90,270);Tge(n,t,m,_,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Oge(e,r,i)}function Tge(e,t,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function Oge(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=dx(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?zt/i:0;for(let c=0;c<i;c++){const f=e.getPointPosition(c,a+s+n[c],l),h=Math.round(PE(Tr(f.angle+Qt))),p=t[c],m=Mge(f.y,p.h,h),g=Pge(h),_=kge(f.x,p.w,g);r.push({x:f.x,y:m,textAlign:g,left:_,top:m,right:_+p.w,bottom:m+p.h})}return r}function Pge(e){return e===0||e===180?"center":e<180?"left":"right"}function kge(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Mge(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Rge(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=_n(o.font),{x:a,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=e._pointLabelItems[i],{backdropColor:g}=o;if(!ht(g)){const _=$a(o.borderRadius),x=rr(o.backdropPadding);n.fillStyle=g;const v=f-x.left,b=h-x.top,w=p-f+x.width,E=m-h+x.height;Object.values(_).some(P=>P!==0)?(n.beginPath(),vd(n,{x:v,y:b,w,h:E,radius:_}),n.fill()):n.fillRect(v,b,w,E)}nl(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function tF(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Et);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=e.getPointPosition(s,t),i.lineTo(o.x,o.y)}}function Nge(e,t,n,r){const i=e.ctx,o=t.circular,{color:s,lineWidth:a}=t;!o&&!r||!s||!a||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=a,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),tF(e,n,o,r),i.closePath(),i.stroke(),i.restore())}function Lge(e,t,n){return Js(e,{label:n,index:t,type:"pointLabel"})}class ah extends Yv{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=rr(dx(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ln(t)&&!isNaN(t)?t:0,this.max=ln(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/dx(this.options))}generateTickLabels(t){Yv.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Pt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ege(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Et/(this._pointLabels.length||1),r=this.options.startAngle||0;return Tr(t*n+wi(r))}getDistanceFromCenterForValue(t){if(ht(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ht(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return Lge(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-Qt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),tF(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i}=n,o=this._pointLabels.length;let s,a,l;if(n.pointLabels.display&&Rge(this,o),i.display&&this.ticks.forEach((c,f)=>{if(f!==0){a=this.getDistanceFromCenterForValue(c.value);const h=i.setContext(this.getContext(f-1));Nge(this,h,a,o)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const c=r.setContext(this.getPointLabelContext(s)),{color:f,lineWidth:h}=c;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=_n(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=rr(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}nl(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}ah.id="radialLinear";ah.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:b_.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};ah.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};ah.descriptors={angleLines:{_fallback:"grid"}};const E_={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mr=Object.keys(E_);function Dge(e,t){return e-t}function LN(e,t){if(ht(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),ln(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Ac(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function DN(e,t,n,r){const i=mr.length;for(let o=mr.indexOf(e);o<i-1;++o){const s=E_[mr[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return mr[o]}return mr[i-1]}function Age(e,t,n,r,i){for(let o=mr.length-1;o>=mr.indexOf(n);o--){const s=mr[o];if(E_[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return mr[n?mr.indexOf(n):0]}function Ige(e){for(let t=mr.indexOf(e)+1,n=mr.length;t<n;++t)if(E_[mr[t]].common)return mr[t]}function AN(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=kE(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Fge(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function IN(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:Fge(e,r,i,n)}class lh extends ul{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n){const r=t.time||(t.time={}),i=this._adapter=new Spe._date(t.adapters.date);i.init(n),wf(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:LN(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=ln(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=ln(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=dde(i,o,s);return this._unit=n.unit||(r.autoSkip?DN(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Age(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Ige(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),IN(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Tn(n,0,s),r=Tn(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||DN(o.minUnit,n,r,this._getLabelCapacity(n)),a=Je(o.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=Ac(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;p<r;p=+t.add(p,a,s),m++)AN(f,p,g);return(p===r||i.bounds==="ticks"||m===1)&&AN(f,p,g),Object.keys(f).sort((_,x)=>_-x).map(_=>+_)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&s[a],f=l&&s[l],h=r[n],p=l&&f&&h&&h.major,m=this._adapter.format(t,i||(p?f:c)),g=o.ticks.callback;return g?Pt(g,[m,n,r],this):m}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=wi(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,IN(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(LN(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return u8(t.sort(Dge))}}lh.id="time";lh.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Op(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=wo(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=wo(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class HE extends lh{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Op(n,this.min),this._tableRange=Op(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,f;for(s=0,a=t.length;s<a;++s)c=t[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)f=i[s+1],l=i[s-1],c=i[s],Math.round((f+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Op(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Op(this._table,r*this._tableRange+this._minPos,!0)}}HE.id="timeseries";HE.defaults=lh.defaults;var $ge=Object.freeze({__proto__:null,CategoryScale:Wv,LinearScale:UE,LogarithmicScale:VE,RadialLinearScale:ah,TimeScale:lh,TimeSeriesScale:HE});const jge=[xpe,Lme,yge,$ge],nF="label";function FN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Bge(e,t){Object.assign(e.options,t)}function rF(e,t){e.labels=t}function iF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nF;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function zge(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nF;const n={labels:[],datasets:[]};return rF(n,e.labels),iF(n,e.datasets,t),n}function oF(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function Uge(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e;const m=H.useRef(null),g=H.useRef(),_=()=>{m.current&&(g.current=new sh(m.current,{type:s,data:zge(a,o),options:l&&{...l},plugins:c}),FN(t,g.current))},x=()=>{FN(t,null),g.current&&(g.current.destroy(),g.current=null)};return H.useEffect(()=>{!i&&g.current&&l&&Bge(g.current,l)},[i,l]),H.useEffect(()=>{!i&&g.current&&rF(g.current.config.data,a.labels)},[i,a.labels]),H.useEffect(()=>{!i&&g.current&&a.datasets&&iF(g.current.config.data,a.datasets,o)},[i,a.datasets]),H.useEffect(()=>{g.current&&(i?(x(),setTimeout(_)):g.current.update(h))},[i,l,a.labels,a.datasets,h]),H.useEffect(()=>{g.current&&(x(),setTimeout(_))},[s]),H.useEffect(()=>(_(),()=>x()),[]),z.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const Vge=H.forwardRef(Uge);function WE(e,t){return sh.register(t),H.forwardRef((n,r)=>z.createElement(Vge,Object.assign({},n,{ref:r,type:e})))}const Hge=WE("line",ih),Wge=WE("bar",rh),Yge=WE("doughnut",cl),qge={"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"},sF={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"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},sr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ko={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class xe{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=xe.getVersionPrecision(t),o=xe.getVersionPrecision(n);let s=Math.max(i,o),a=0;const l=xe.map([t,n],c=>{const f=s-xe.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return xe.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(l=>{r[l]=s[l]})}return t}static getBrowserAlias(t){return qge[t]}static getBrowserTypeByAlias(t){return sF[t]||""}}const Tt=/version\/(\d+(\.?_?\d+)+)/i,Gge=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=xe.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=xe.getFirstMatch(Tt,e)||xe.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=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=xe.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=xe.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=xe.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=xe.getFirstMatch(Tt,e)||xe.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=xe.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=xe.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=xe.getFirstMatch(Tt,e)||xe.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=xe.getFirstMatch(Tt,e)||xe.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=xe.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,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=xe.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=xe.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=xe.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=xe.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=xe.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=xe.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=xe.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=xe.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=xe.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=xe.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=xe.getFirstMatch(Tt,e)||xe.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=xe.getFirstMatch(Tt,e)||xe.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=xe.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=xe.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=xe.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=xe.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=xe.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=xe.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=xe.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=xe.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=xe.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=xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=xe.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:xe.getFirstMatch(i,e),version:xe.getSecondMatch(i,e)}}}],Zge=[{test:[/Roku\/DVP/],describe(e){const t=xe.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:sr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=xe.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:sr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=xe.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=xe.getWindowsVersionName(t);return{name:sr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:sr.iOS},n=xe.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=xe.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=xe.getMacOSVersionName(t),r={name:sr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=xe.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:sr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=xe.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=xe.getAndroidVersionName(t),r={name:sr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=xe.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:sr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=xe.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||xe.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||xe.getFirstMatch(/\bbb(\d+)/i,e);return{name:sr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=xe.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:sr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=xe.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:sr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:sr.Linux}}},{test:[/CrOS/],describe(){return{name:sr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=xe.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:sr.PlayStation4,version:t}}}],Kge=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=xe.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=xe.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],Xge=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ko.Blink};const n=xe.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ko.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Ko.Trident},n=xe.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Ko.Presto},n=xe.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:Ko.Gecko},n=xe.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ko.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Ko.WebKit},n=xe.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class $N{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=xe.find(Gge,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=xe.find(Zge,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=xe.find(Kge,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=xe.find(Xge,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 xe.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,o+=1):typeof l=="object"&&(n[a]=l,r+=1)}),r>0){const a=Object.keys(n),l=xe.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=xe.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const a=Object.keys(i),l=xe.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=xe.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(xe.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class Qge{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new $N(t,n)}static parse(t){return new $N(t).getResult()}static get BROWSER_MAP(){return sF}static get ENGINE_MAP(){return Ko}static get OS_MAP(){return sr}static get PLATFORMS_MAP(){return nn}}const Pp="Others",Jge=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],eve=e=>{if(!vi(e))return{browser:Pp,os:Pp};const{browser:{name:t},os:{name:n}}=Qge.parse(e);return{os:n??Pp,browser:t&&Jge.includes(t)?t:Pp}},tve=e=>{var t;return vi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},YE=(e,t)=>Object.values({...mA(t,t.map(()=>0)),...e}),$c=e=>C(W5,{type:"switch",...e}),aF=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},lF=({dataset:e,raw:t})=>`${e.label}: ${yn(`${t}`)}`,nve=({label:e,raw:t})=>`${e}: ${yn(`${t}`)}`;const jN={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},rve={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},ive={hourly:Qte,daily:rE,weekly:nne,monthly:Gg},qE={hourly:e=>vo(e,"yyyy-MM-dd HH:00"),daily:e=>vo(e,gf),weekly(e){const t=vo(ld(e),gf),n=vo(sne(e),gf);return`${t} - ${n}`},monthly:e=>vo(e,"yyyy-MM")},ove=e=>{const t=new Date,n=Lo(e);return $y([[()=>rE(t,n)<=2,M0("hourly")],[()=>Gg(t,n)<=1,M0("daily")],[()=>Gg(t,n)<=6,M0("weekly")]])()??"monthly"},BN=(e,t)=>uA(n=>qE[e](Lo(n.date)),t),sve=(e,t)=>t.reduce((n,r)=>{const i=qE[e](Lo(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),ave=(e,t)=>{const n=ive[e],r=qE[e],i=Lo(t[0].date),o=Lo(t[t.length-1].date),s=n(i,o),a=rve[e];return[r(o),...UC(s,l=>r(zte(o,a(l))))]},lve=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=ave(n,e);return[i,YE(t,i)]},zN=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let Lb=null;const cve=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;Lb===e[i]?(r([]),Lb=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),Lb=e[i]??null)},uve=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=H.useState(t.length>0?ove(t[t.length-1].date):"monthly"),[a,l]=Bt(!0),c=H.useRef(null),f=H.useRef(null),h=H.useMemo(()=>sve(o,t),[o,t]),p=H.useMemo(()=>BN(o,W1(t)),[o,t]),[m,g]=H.useMemo(()=>lve(t,p,o,a),[t,o,a]),_=H.useMemo(()=>YE(BN(o,W1(n)),m),[n,o,m]),x=()=>{const E=zN(g,"Visits",zC);if(n.length===0)return[E];const P=zN(_,r,a6);return[E,P]},v=()=>({labels:m,datasets:x()}),b={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:lF}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:yn}},x:{title:{display:!0,text:jN[o]}}},onHover:aF},w=E=>C(Hge,{ref:E,data:v(),options:b,onClick:P=>cve(m,h,oF(E.current,P),i)});return U(xr,{children:[U(Xa,{role:"heading",children:[e,C("div",{className:"float-end",children:U(jd,{children:[C(Xc,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),C(al,{end:!0,children:Object.entries(jN).map(([E,P])=>C(Ve,{active:o===E,onClick:()=>s(E),children:P},E))})]})}),C("div",{className:"float-end me-2",children:C($c,{checked:a,onChange:l,children:C("small",{children:"Skip dates with no visits"})})})]}),U(Ka,{className:"line-chart-card__body",children:[n.length>0&&w(c),n.length===0&&w(f)]})]})};const GE=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!hd(o)&&n(o);return U(r_,{listClassName:ge("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[C(Cs,{disabled:t<=1,children:C(Es,{previous:!0,tag:"span",onClick:i(t-1)})}),P5(t,e).map((o,s)=>C(Cs,{disabled:hd(o),active:t===o,children:C(Es,{role:"link",tag:"span",onClick:i(o),children:k5(o)})},M5(o,s))),C(Cs,{disabled:t>=e,children:C(Es,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Ku=20,fve=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),dve=(e,t)=>t.filter(n=>fve(n,e)),hve=(e,t)=>gA(t,e),pve=(e,t,n)=>{const r=t?dve(t,e):[...e],i=hve(n,r),o=i.length;return{visitsGroups:qf(Ku,i),total:o}},mve=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var k,N;const o="visits-table__header-cell visits-table__sticky",s=()=>r("(max-width: 767px)").matches,[a,l]=H.useState(s()),[c,f]=H.useState(void 0),[h,p]=H.useState({}),m=H.useMemo(()=>pve(e,c,h),[c,h]),g=H.useRef(!0),[_,x]=H.useState(1),v=_*Ku,b=v-Ku,w=8+Number(i),E=A=>()=>p({field:A,dir:By(A,h.field,h.dir)}),P=A=>C(yf,{currentOrder:h,field:A,className:"visits-table__header-icon"});return H.useEffect(()=>{const A=()=>l(s());return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]),H.useEffect(()=>{x(1),!g.current&&n([]),g.current=!1},[c]),C("div",{className:"table-responsive-md",children:U("table",{className:"table table-bordered table-hover table-sm visits-table",children:[U("thead",{className:"visits-table__header",children:[U("tr",{children:[C("th",{className:`${o} text-center`,onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:C($e,{icon:Zf,className:ge({"text-primary":t.length>0})})}),U("th",{className:`${o} text-center`,onClick:E("potentialBot"),children:[C($e,{icon:XP}),P("potentialBot")]}),U("th",{className:o,onClick:E("date"),children:["Date",P("date")]}),U("th",{className:o,onClick:E("country"),children:["Country",P("country")]}),U("th",{className:o,onClick:E("city"),children:["City",P("city")]}),U("th",{className:o,onClick:E("browser"),children:["Browser",P("browser")]}),U("th",{className:o,onClick:E("os"),children:["OS",P("os")]}),U("th",{className:o,onClick:E("referer"),children:["Referrer",P("referer")]}),i&&U("th",{className:o,onClick:E("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),C("tr",{children:C("td",{colSpan:w,className:"p-0",children:C(Wd,{noBorder:!0,large:!1,onChange:f})})})]}),U("tbody",{children:[!((k=m.visitsGroups[_-1])!=null&&k.length)&&C("tr",{children:C("td",{colSpan:w,className:"text-center",children:"No visits found with current filtering"})}),(N=m.visitsGroups[_-1])==null?void 0:N.map((A,V)=>{const I=t.includes(A);return U("tr",{style:{cursor:"pointer"},className:ge({"table-active":I}),onClick:()=>n(I?t.filter(Y=>Y!==A):[...t,A]),children:[C("td",{className:"text-center",children:I&&C($e,{icon:Zf,className:"text-primary"})}),C("td",{className:"text-center",children:A.potentialBot&&U(We,{children:[C($e,{icon:XP,id:`botIcon${V}`}),C($r,{placement:"right",target:`botIcon${V}`,children:"Potentially a visit from a bot or crawler"})]})}),C("td",{children:C(Iv,{date:A.date})}),C("td",{children:A.country}),C("td",{children:A.city}),C("td",{children:A.browser}),C("td",{children:A.os}),C("td",{children:A.referer}),i&&C("td",{children:A.visitedUrl})]},V)})]}),m.total>Ku&&C("tfoot",{children:C("tr",{children:C("td",{colSpan:w,className:"visits-table__footer-cell visits-table__sticky",children:U("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(GE,{pagesCount:Math.ceil(m.total/Ku),currentPage:_,setCurrentPage:x,centered:a})}),C("div",{className:ge("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:U("div",{children:["Visits ",C("b",{children:yn(b+1)})," to"," ",C("b",{children:yn(hA(v,m.total))})," of"," ",C("b",{children:yn(m.total)})]})})]})})})})]})})};const gve=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Bt(),[s,a,l]=Bt(),[c,f]=H.useState([]),h=i_(),p=_=>t?_.filter(({cityName:x})=>t==null?void 0:t.includes(x)):_,m=()=>{if(!t){f(n),i();return}l()},g=_=>()=>{f(_?p(n):n),i()};return U(We,{children:[C(gt,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:m,children:C($e,{icon:AA})}),C($r,{placement:"left",target:h,children:"Show in map"}),C(Kc,{isOpen:s,toggle:a,inNavbar:!0,children:U(al,{end:!0,children:[C(Ve,{onClick:g(!1),children:"Show all locations"}),C(Ve,{onClick:g(!0),children:"Show locations in current page"})]})}),C(r8,{toggle:o,isOpen:r,title:e,locations:c})]})},ZE=e=>e.visitedUrl!==void 0,vve=e=>e.visitedUrl!==void 0,yve=Ft(LV(e=>ZE(e.visit)?"orphanVisits":"regularVisits"),e=>({orphanVisits:[],regularVisits:[],...e})),kp=(e,t)=>uA(rt(t),e),ch=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&$s(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&$s(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:s}},cF=(e,t)=>!Fo(e)&&vi(e[t]),UN=e=>typeof e=="number"?e:e?parseFloat(e):0,_ve=(e,{os:t})=>{e[t]=(e[t]||0)+1},bve=(e,{browser:t})=>{e[t]=(e[t]||0)+1},wve=(e,{referer:t})=>{e[t]=(e[t]||0)+1},uF=e=>(t,n)=>{const i=cF(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},xve=uF("country"),Sve=uF("city"),Cve=(e,t)=>{if(!cF(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[UN(r),UN(i)]};o.count+=1,e[n]=o},Eve=(e,t)=>{if(!vve(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},fF=e=>e.reduce((t,n)=>(_ve(t.os,n),bve(t.browsers,n),wve(t.referrers,n),xve(t.countries,n),Sve(t.cities,n),Cve(t.citiesForMap,n),Eve(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),dF=Od(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...eve(t),referer:tve(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return ZE(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),Tve=Object.freeze(Object.defineProperty({__proto__:null,processStatsFromVisits:fF,normalizeVisits:dF},Symbol.toStringTag,{value:"Module"})),Ove=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,s=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})});return U(Xs,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Bots:"}),C(Ve,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&U(We,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Orphan visits type:"}),C(Ve,{...s("base_url"),children:"Base URL"}),C(Ve,{...s("invalid_short_url"),children:"Invalid short URL"}),C(Ve,{...s("regular_404"),children:"Regular 404"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:C("i",{children:"Clear filters"})})]})};const Pve=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return C("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>U("li",{className:"doughnut-chart-legend__item d-flex",children:[C("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),C("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},kve=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:see()?oee:iee,borderWidth:2}],Mve=(e,t)=>({labels:e,datasets:kve(t)}),Rve=H.memo(({stats:e})=>{const[t,n]=H.useState(),r=eo(e),i=Yc(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:nve}}}},s=Mve(r,i);return U("div",{className:"row",children:[C("div",{className:"col-sm-12 col-md-7",children:C(Yge,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),C("div",{className:"col-sm-12 col-md-5",children:t&&C(Pve,{chart:t})})]})});const hF=({title:e,footer:t,children:n})=>U(xr,{role:"document",children:[C(Xa,{className:"chart-card__header",children:typeof e=="function"?e():e}),C(Ka,{children:n}),t&&C(OC,{className:"chart-card__footer--sticky",children:t})]}),VN=({title:e,stats:t})=>C(hF,{title:e,children:C(Rve,{stats:t})}),Nve=({toggleClassName:e,ranges:t,value:n,setValue:r})=>U(jd,{children:[C(Xc,{caret:!0,color:"link",className:e,children:"Paginate"}),U(al,{end:!0,children:[t.map(i=>U(Ve,{active:i===n,onClick:()=>r(i),children:[C("b",{children:i})," items per page"]},i)),C(Ve,{divider:!0}),C(Ve,{disabled:n===1/0,onClick:()=>r(1/0),children:C("i",{children:"Clear pagination"})})]})]}),Lve=e=>e.startsWith("hidden")?"":e,Dve=e=>!!e&&Object.keys(e).length>0,Ave=e=>e.length>20?e.length*10:void 0,Ive=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:nee,borderColor:zC,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:ree,borderColor:a6,borderWidth:2}]},Fve=(e,t,n,r)=>({labels:e,datasets:Ive(t,n,r)}),$ve=(e,[t],n)=>{!n||!t||n(e[t.index])},jve=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=eo(e).map(Lve),s=Yc(Dve(t)?eo(t).reduce((g,_)=>(g[_]&&(g[_]-=t[_]),g),{...e}):e),a=YE(t??{},o),l=H.useRef(null),c=H.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:g})=>g!=="",callbacks:{label:lF}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:yn}},y:{stacked:!0}},onHover:aF,indexAxis:"y"},h=Fve(o,s,a,n),p=Ave(o),m=(g,_)=>C(Wge,{ref:_,data:h,options:f,height:p,onClick:x=>$ve(o,oF(_.current,x),r)},`${p}_${g}`);return U(We,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},Bve=e=>Sg(e)==="String"?nH(e):e,HN=([e])=>e,WN=([,e])=>e,Mp=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=H.useState({}),[c,f]=H.useState(1),[h,p]=H.useState(50),m=(N,A)=>{const V=Eg(N),I=a.field?JV(Ft(a.field===Object.keys(A)[0]?HN:WN,Bve),V):V;return!a.dir||a.dir==="ASC"?I:W1(I)},g=N=>{const A=N[c-1];if(c<N.length)return A;const V=N[0].length;return[...A,...UC(V-A.length,I=>[`hidden_${I}`,0])]},_=N=>C(GE,{currentPage:c,pagesCount:N,setCurrentPage:f}),x=(N,A,V)=>{const I=m(N,A),Y=I.map(HN),q=V&&Eg({...mA(Y,Y.map(()=>0)),...V});if(I.length<=h)return{currentPageStats:zu(I),currentPageHighlightedStats:q&&zu(q)};const X=qf(h,I),Z=q&&qf(h,q);return{currentPageStats:zu(g(X)),currentPageHighlightedStats:Z&&zu(g(Z)),pagination:_(X.length),max:jce(Math.max(...I.map(WN)))}},{currentPageStats:v,currentPageHighlightedStats:b,pagination:w,max:E}=x(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(v);return C(hF,{title:()=>U(We,{children:[n,C("div",{className:"float-end",children:C(Gd,{isButton:!1,right:!0,items:r,order:a,onChange:(N,A)=>{l({field:N,dir:A}),f(1)}})}),o&&Object.keys(e).length>50&&C("div",{className:"float-end",children:C(Nve,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&C("div",{className:"float-end",children:i(w?P:void 0)})]}),footer:w,children:C(jve,{stats:v,highlightedStats:b,max:E,...s})})},zve=()=>{const e=Io(),{search:t}=Wn(),{filtering:n,domain:r}=H.useMemo(Ft(()=>Gc(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?l5(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:Fo(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=dA(n,o),l={startDate:(s==null?void 0:s.startDate)&&$s(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&$s(s.endDate)||"",excludeBots:a.excludeBots?"true":"false",orphanVisitsType:a.orphanVisitsType,domain:r},c=Md(l),f=Hn(c)?"":`?${c}`;e(f,{replace:!0,relative:"route"})}]},Ll={byTime:{title:"By time",subPath:"by-time",icon:_Y},byContext:{title:"By context",subPath:"by-context",icon:qS},byLocation:{title:"By location",subPath:"by-location",icon:AA},list:{title:"List",subPath:"list",icon:DA}};let Rp;const uh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,settings:i,exportCsv:o,isOrphanVisits:s=!1})=>{var W;const{visits:a,loading:l,loadingLarge:c,error:f,errorData:h,progress:p,fallbackInterval:m}=t,[{dateRange:g,visitsFilter:_},x]=zve(),v=Ft(({startDate:G,endDate:re})=>({dateRange:{startDate:G??void 0,endDate:re??void 0}}),x),b=H.useRef(g??m??((W=i.visits)==null?void 0:W.defaultInterval)??"last30Days"),[w,E]=H.useState([]),[P,k]=H.useState(),N=H.useRef(!0),{search:A}=Wn(),V=G=>G?`${G}${A}`:A,I=H.useMemo(()=>dF(a),[a]),{os:Y,browsers:q,referrers:X,countries:Z,cities:J,citiesForMap:oe,visitedUrls:ce}=H.useMemo(()=>fF(I),[I]),K=Yc(oe),$=H.useMemo(()=>{var G;return N.current?{..._,excludeBots:_.excludeBots??((G=i.visits)==null?void 0:G.excludeBots)}:_},[_]),D=G=>{Rp=void 0,E(G)},B=G=>re=>{const le=`${G}_${re}`;Rp===le?(E([]),k(void 0),Rp=void 0):(E(I.filter(GV(G,re))),k(re),Rp=le)};H.useEffect(()=>r,[]),H.useEffect(()=>{const G=N.current?g??dle(b.current):g;n({dateRange:G,filter:$},N.current),N.current=!1},[g,_]),H.useEffect(()=>{var G;m&&b.current===(((G=i.visits)==null?void 0:G.defaultInterval)??"last30Days")&&(b.current=m)},[m]);const ne=()=>c?U(So,{loading:!0,children:["This is going to take a while... :S",C(LC,{value:p,striped:p===100,className:"mt-3"})]}):l?C(So,{loading:!0}):f?C(Rr,{type:"error",children:C(Do,{errorData:h,fallbackMessage:"An error occurred while loading visits :("})}):Hn(a)?C(So,{children:"There are no visits matching current filter"}):U(We,{children:[C(i8,{fill:!0,children:Object.values(Ll).map(({title:G,icon:re,subPath:le},me)=>U(bf,{to:V(le),replace:!0,children:[C($e,{icon:re}),C("span",{className:"ms-2 d-none d-sm-inline",children:G})]},me))}),C(cr,{children:U(Ly,{children:[C(_t,{path:Ll.byTime.subPath,element:C("div",{className:"col-12 mt-3",children:C(uve,{title:"Visits during time",visits:I,highlightedVisits:w,highlightedLabel:P,setSelectedVisits:D})})}),C(_t,{path:Ll.byContext.subPath,element:U(We,{children:[C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(VN,{title:"Operating systems",stats:Y})}),C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(VN,{title:"Browsers",stats:q})}),C("div",{className:ge("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:C(Mp,{title:"Referrers",stats:X,withPagination:!1,highlightedStats:kp(w,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),s&&C("div",{className:"mt-3 col-lg-6",children:C(Mp,{title:"Visited URLs",stats:ce,highlightedLabel:P,highlightedStats:kp(w,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),C(_t,{path:Ll.byLocation.subPath,element:U(We,{children:[C("div",{className:"col-lg-6 mt-3",children:C(Mp,{title:"Countries",stats:Z,highlightedStats:kp(w,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),C("div",{className:"col-lg-6 mt-3",children:C(Mp,{title:"Cities",stats:J,highlightedStats:kp(w,"city"),highlightedLabel:P,extraHeaderContent:G=>K.length>0&&C(gve,{modalTitle:"Cities",locations:K,activeCities:G}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),C(_t,{path:Ll.list.subPath,element:C("div",{className:"col-12",children:C(mve,{visits:I,selectedVisits:w,setSelectedVisits:D,isOrphanVisits:s})})}),C(_t,{path:"*",element:C(CS,{replace:!0,to:V(Ll.byTime.subPath)})})]})})]});return U(We,{children:[e,C("section",{className:"mt-3",children:U("div",{className:"row flex-md-row-reverse",children:[C("div",{className:"col-lg-7 col-xl-6",children:U("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(T5,{updatable:!0,disabled:l,initialDateRange:b.current,defaultText:"All visits",onDatesChange:v})}),C(Ove,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:$,onChange:G=>x({visitsFilter:G})})]})}),a.length>0&&C("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:U("div",{className:"d-flex",children:[C(q5,{className:"btn-md-block",amount:I.length,onClick:()=>o(I)}),U(gt,{outline:!0,disabled:w.length===0,className:"btn-md-block ms-2",onClick:()=>D([]),children:["Clear selection ",w.length>0&&U(We,{children:["(",yn(w.length),")"]})]})]})})]})}),C("section",{className:"mt-3",children:ne()})]})},Uve=({exportVisits:e})=>Qs(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o,settings:s})=>{const{shortCode:a=""}=Ws(),{search:l}=Wn(),c=Ks(),{domain:f}=Gc(l),h=(m,g)=>r({shortCode:Um(a),query:{...ch(m),domain:f},doIntervalFallback:g}),p=m=>{var g;return e(`short-url_${(g=n.shortUrl)==null?void 0:g.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return H.useEffect(()=>{i({shortCode:Um(a),domain:f})},[]),C(uh,{getVisits:h,cancelGetVisits:o,visitsInfo:t,settings:s,exportCsv:p,children:C(Xfe,{shortUrlDetail:n,shortUrlVisits:t,goBack:c})})},(t,n)=>n.shortCode?[Jr.shortUrlVisits(Um(n.shortCode))]:[]),Vve=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return C(eh,{title:U("span",{className:"d-flex align-items-center justify-content-center",children:[C("span",{className:"me-2",children:"Visits for"}),C(bE,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},Hve=(e,{exportVisits:t})=>Qs(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i,settings:o})=>{const s=Ks(),{tag:a=""}=Ws();return C(uh,{getVisits:(f,h)=>n({tag:a,query:ch(f),doIntervalFallback:h}),cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:f=>t(`tag_${a}_visits.csv`,f),children:C(Vve,{tagVisits:r,goBack:s,colorGenerator:e})})},()=>[Jr.visits]),Wve=({exportVisits:e})=>Qs(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r,settings:i})=>{const o=Ks();return C(uh,{getVisits:(l,c)=>{var f;return t({query:ch(l),orphanVisitsType:(f=l.filter)==null?void 0:f.orphanVisitsType,doIntervalFallback:c})},cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("orphan_visits.csv",l),isOrphanVisits:!0,children:C(eh,{title:"Orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.orphanVisits]),Yve=({exportVisits:e})=>Qs(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r,settings:i})=>{const o=Ks();return C(uh,{getVisits:(l,c)=>t({query:ch(l),doIntervalFallback:c}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("non_orphan_visits.csv",l),children:C(eh,{title:"Non-orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.visits]),pF="shlink/shortUrlVisits",qve={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Gve=e=>Kd({typePrefix:`${pF}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getShortUrlVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=Xd(r,async l=>o(t,{...l,domain:n.domain}));return[s,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),Zve=e=>Qd({name:pF,initialState:qve,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:a,visit:l})=>a&&_f(a,t,n)&&Yd(l.date,o,s))}}),mF="shlink/tagVisits",Kve={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Xve=e=>Kd({typePrefix:`${mF}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getTagVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=Xd(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),Qve=e=>Qd({name:mF,initialState:Kve,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>(s==null?void 0:s.tags.includes(t))&&Yd(a.date,i,o))}}),gF="shlink/orphanVisits",Jve={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},eye=(e,t)=>!t||t===e.type,tye=e=>Kd({typePrefix:`${gF}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getOrphanVisits:o}=e(i),s=async(l,c)=>o({...n,page:l,itemsPerPage:c}).then(f=>{const h=f.data.filter(p=>ZE(p)&&eye(p,t));return{...f,data:h}}),a=Xd(r,o);return[s,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),nye=e=>Qd({name:gF,initialState:Jve,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&Yd(o.date,r,i))}}),vF="shlink/orphanVisits",rye={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},iye=e=>Kd({typePrefix:`${vF}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1},r)=>{const{getNonOrphanVisits:i}=e(r),o=async(a,l)=>i({...t,page:a,itemsPerPage:l}),s=Xd(n,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),oye=e=>Qd({name:vF,initialState:rye,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>Yd(o.date,r,i))}}),yF="shlink/visitsOverview",Np={visitsCount:0,orphanVisitsCount:0,loading:!1,error:!1},sye=e=>nr(`${yF}/loadVisitsOverview`,(t,{getState:n})=>e(n).getVisitsOverview()),aye=e=>Yn({name:yF,initialState:Np,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Np,loading:!0})),t.addCase(e.rejected,()=>({...Np,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Np,...r})),t.addCase(Zd,({visitsCount:n,orphanVisitsCount:r=0,...i},{payload:o})=>{const{createdVisits:s}=o,{regularVisits:a,orphanVisits:l}=yve(s);return{...i,visitsCount:n+a.length,orphanVisitsCount:r+l.length}})}}),lye=({exportVisits:e})=>Qs(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r,settings:i})=>{const o=Ks(),{domain:s=""}=Ws(),[a,l=a]=s.split("_");return C(uh,{getVisits:(h,p)=>t({domain:l,query:ch(h),doIntervalFallback:p}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:h=>e(`domain_${a}_visits.csv`,h),children:C(eh,{goBack:o,visits:n.visits,title:`"${a}" visits`})})},()=>[Jr.visits]),cye=(e,t)=>{e.serviceFactory("MapModal",()=>r8),e.serviceFactory("ShortUrlVisits",Uve,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo","settings"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",Hve,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo","settings"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",lye,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo","settings"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",Wve,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","settings"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",Yve,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo","settings"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>Tve),e.serviceFactory("getShortUrlVisitsCreator",Gve,"buildShlinkApiClient"),e.serviceFactory("getShortUrlVisits",rt("asyncThunk"),"getShortUrlVisitsCreator"),e.serviceFactory("cancelGetShortUrlVisits",rt("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisitsCreator",Xve,"buildShlinkApiClient"),e.serviceFactory("getTagVisits",rt("asyncThunk"),"getTagVisitsCreator"),e.serviceFactory("cancelGetTagVisits",rt("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisitsCreator",lue,"buildShlinkApiClient"),e.serviceFactory("getDomainVisits",rt("asyncThunk"),"getDomainVisitsCreator"),e.serviceFactory("cancelGetDomainVisits",rt("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisitsCreator",tye,"buildShlinkApiClient"),e.serviceFactory("getOrphanVisits",rt("asyncThunk"),"getOrphanVisitsCreator"),e.serviceFactory("cancelGetOrphanVisits",rt("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisitsCreator",iye,"buildShlinkApiClient"),e.serviceFactory("getNonOrphanVisits",rt("asyncThunk"),"getNonOrphanVisitsCreator"),e.serviceFactory("cancelGetNonOrphanVisits",rt("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Zd),e.serviceFactory("loadVisitsOverview",sye,"buildShlinkApiClient"),e.serviceFactory("visitsOverviewReducerCreator",aye,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",rt("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",cue,"getDomainVisitsCreator"),e.serviceFactory("domainVisitsReducer",rt("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",oye,"getNonOrphanVisitsCreator"),e.serviceFactory("nonOrphanVisitsReducer",rt("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",nye,"getOrphanVisitsCreator"),e.serviceFactory("orphanVisitsReducer",rt("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",Zve,"getShortUrlVisitsCreator"),e.serviceFactory("shortUrlVisitsReducer",rt("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Qve,"getTagVisitsCreator"),e.serviceFactory("tagVisitsReducer",rt("reducer"),"tagVisitsReducerCreator")};function uye(e){return z.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},z.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const fye={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},dye=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class hye extends z.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=z.createRef(),this.sizer=z.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);dye.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:s,inputAttributes:a,inputEventHandlers:l,index:c}=this.props;return z.createElement("div",{className:s.searchWrapper},z.createElement("input",Object.assign({},a,l,{ref:this.input,value:n,placeholder:i,className:s.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":c>-1?`${t}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),z.createElement("div",{ref:this.sizer,style:fye},n||i))}}function KE(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function pye(e){return new RegExp(KE(e),"gi")}function mye(e){return new RegExp(`(?:^|\\s)${KE(e)}`,"i")}function gye(e){return new RegExp(`^${KE(e)}$`,"i")}function vye(e,t){const n=pye(t);return e.replace(n,"<mark>$&</mark>")}function yye({item:e,query:t}){return z.createElement("span",{dangerouslySetInnerHTML:{__html:vye(e.name,t)}})}function _ye(e){const t=e.suggestionComponent||yye,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,s=[];return e.index===i&&s.push(e.classNames.suggestionActive),r.disabled&&s.push(e.classNames.suggestionDisabled),z.createElement("li",{id:o,key:o,role:"option",className:s.join(" "),"aria-disabled":Boolean(r.disabled),onMouseDown:a=>a.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?z.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:z.createElement(t,{item:r,query:e.query}))});return z.createElement("div",{className:e.classNames.suggestions},z.createElement("ul",{role:"listbox",id:e.id},n))}function bye(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===t),i=n[r-1]||n[r+1];i&&i.focus()}const Ea={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},_F={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function bF(e,t){return e.findIndex(n=>gye(t).test(n.name))}function Db(){if(this.state.query.length>=this.props.minQueryLength){const e=bF(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function wye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function xye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function Sye(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function Cye(e,t){return mye(t).test(e.name)}function Eye(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&bF(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class XE extends z.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=z.createRef(),this.input=z.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?Db.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),Db.call(this)),t.key===Ea.BACKSPACE&&this.props.allowBackspace&&Sye.call(this,t),(t.key===Ea.UP_ARROW||t.key===Ea.UP_ARROW_COMPAT)&&wye.call(this,t),(t.key===Ea.DOWN_ARROW||t.key===Ea.DOWN_ARROW_COMPAT)&&xye.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&Db.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&bye(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||uye,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},_F,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),z.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},z.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>z.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),z.createElement("div",{className:r.search},z.createElement(hye,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?z.createElement(_ye,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:Eye(t,n)}:null}}XE.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:Cye,suggestionsTransform:null,autoresize:!0,classNames:_F,delimiters:[Ea.TAB,Ea.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};XE.propTypes={id:S.string,tags:S.arrayOf(S.object),placeholderText:S.string,ariaLabelText:S.string,removeButtonText:S.string,noSuggestionsText:S.string,newTagText:S.string,suggestions:S.arrayOf(S.object),suggestionsFilter:S.func,suggestionsTransform:S.func,autoresize:S.bool,delimiters:S.arrayOf(S.string),onDelete:S.func.isRequired,onAddition:S.func.isRequired,onInput:S.func,onFocus:S.func,onBlur:S.func,onValidate:S.func,minQueryLength:S.number,maxSuggestionsLength:S.number,classNames:S.object,allowNew:S.bool,allowBackspace:S.bool,addOnBlur:S.bool,tagComponent:S.oneOfType([S.func,S.element]),suggestionComponent:S.oneOfType([S.func,S.element]),inputAttributes:S.object};const wF=({tag:e,colorGenerator:t})=>C("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),YN=e=>({id:e,name:e}),Tye=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,settings:s,allowNew:a=!0})=>{var h;H.useEffect(()=>{i()},[]);const l=((h=s.shortUrlCreation)==null?void 0:h.tagFilteringMode)??"startsWith",c=({tag:p,onDelete:m})=>C(bE,{colorGenerator:e,text:p.name,clearable:!0,className:"react-tags__tag",onClose:m}),f=({item:p})=>U(We,{children:[C(wF,{tag:`${p.name}`,colorGenerator:e}),p.name]});return C(XE,{tags:t.map(YN),tagComponent:c,suggestions:o.tags.filter(p=>!t.includes(p)).map(YN),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(p,m)=>m.filter(({name:g})=>g.includes(p)):void 0,onDelete:p=>{const m=[...t];m.splice(p,1),n(m)},onAddition:({name:p})=>n([...new Set([...t,...p.toLowerCase().split(",")])])})},Oye=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:a,deleted:l,errorData:c}=i;return U(zo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[C(io,{toggle:t,className:"text-danger",children:"Delete tag"}),U(ki,{children:["Are you sure you want to delete tag ",C("b",{children:e}),"?",a&&C(Rr,{type:"error",small:!0,className:"mt-2",children:C(Do,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),U(Zs,{children:[C(gt,{color:"link",onClick:t,children:"Cancel"}),C(gt,{color:"danger",disabled:s,onClick:async()=>{await r(e),t()},children:s?"Deleting tag...":"Delete tag"})]})]})};function T_(){return(T_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xF(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function hx(e){var t=H.useRef(e),n=H.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var _d=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Tf=function(e){return"touches"in e},px=function(e){return e&&e.ownerDocument.defaultView||self},qN=function(e,t,n){var r=e.getBoundingClientRect(),i=Tf(t)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(t.touches,n):t;return{left:_d((i.pageX-(r.left+px(e).pageXOffset))/r.width),top:_d((i.pageY-(r.top+px(e).pageYOffset))/r.height)}},GN=function(e){!Tf(e)&&e.preventDefault()},SF=z.memo(function(e){var t=e.onMove,n=e.onKey,r=xF(e,["onMove","onKey"]),i=H.useRef(null),o=hx(t),s=hx(n),a=H.useRef(null),l=H.useRef(!1),c=H.useMemo(function(){var m=function(x){GN(x),(Tf(x)?x.touches.length>0:x.buttons>0)&&i.current?o(qN(i.current,x,a.current)):_(!1)},g=function(){return _(!1)};function _(x){var v=l.current,b=px(i.current),w=x?b.addEventListener:b.removeEventListener;w(v?"touchmove":"mousemove",m),w(v?"touchend":"mouseup",g)}return[function(x){var v=x.nativeEvent,b=i.current;if(b&&(GN(v),!function(E,P){return P&&!Tf(E)}(v,l.current)&&b)){if(Tf(v)){l.current=!0;var w=v.changedTouches||[];w.length&&(a.current=w[0].identifier)}b.focus(),o(qN(b,v,a.current)),_(!0)}},function(x){var v=x.which||x.keyCode;v<37||v>40||(x.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},_]},[s,o]),f=c[0],h=c[1],p=c[2];return H.useEffect(function(){return p},[p]),z.createElement("div",T_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),QE=function(e){return e.filter(Boolean).join(" ")},CF=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=QE(["react-colorful__pointer",e.className]);return z.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},z.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},zn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Pye=function(e){return Lye(mx(e))},mx=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?zn(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?zn(parseInt(e.substring(6,8),16)/255,2):1}},kye=function(e){return Nye(Rye(e))},Mye=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:zn(e.h),s:zn(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:zn(i/2),a:zn(r,2)}},gx=function(e){var t=Mye(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Rye=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:zn(255*[r,a,s,s,l,r][c]),g:zn(255*[l,r,r,a,s,s][c]),b:zn(255*[s,s,l,r,r,a][c]),a:zn(i,2)}},Lp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Nye=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Lp(zn(255*i)):"";return"#"+Lp(t)+Lp(n)+Lp(r)+o},Lye=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:zn(60*(a<0?a+6:a)),s:zn(o?s/o*100:0),v:zn(o/255*100),a:i}},Dye=z.memo(function(e){var t=e.hue,n=e.onChange,r=QE(["react-colorful__hue",e.className]);return z.createElement("div",{className:r},z.createElement(SF,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:_d(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":zn(t),"aria-valuemax":"360","aria-valuemin":"0"},z.createElement(CF,{className:"react-colorful__hue-pointer",left:t/360,color:gx({h:t,s:100,v:100,a:1})})))}),Aye=z.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:gx({h:t.h,s:100,v:100,a:1})};return z.createElement("div",{className:"react-colorful__saturation",style:r},z.createElement(SF,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:_d(t.s+100*i.left,0,100),v:_d(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+zn(t.s)+"%, Brightness "+zn(t.v)+"%"},z.createElement(CF,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:gx(t)})))}),EF=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Iye=function(e,t){return e.toLowerCase()===t.toLowerCase()||EF(mx(e),mx(t))};function Fye(e,t,n){var r=hx(n),i=H.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=H.useRef({color:t,hsva:o});H.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),H.useEffect(function(){var c;EF(o,a.current.hsva)||e.equal(c=e.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},r(c))},[o,e,r]);var l=H.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var $ye=typeof window<"u"?H.useLayoutEffect:H.useEffect,jye=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},ZN=new Map,Bye=function(e){$ye(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!ZN.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,ZN.set(t,n);var r=jye();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},zye=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=xF(e,["className","colorModel","color","onChange"]),a=H.useRef(null);Bye(a);var l=Fye(n,i,o),c=l[0],f=l[1],h=QE(["react-colorful",t]);return z.createElement("div",T_({},s,{ref:a,className:h}),z.createElement(Aye,{hsva:c,onChange:f}),z.createElement(Dye,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},Uye={defaultColor:"000",toHsva:Pye,fromHsva:function(e){return kye({h:e.h,s:e.s,v:e.v,a:1})},equal:Iye},Vye=function(e){return z.createElement(zye,T_({},e,{colorModel:Uye}))};const Hye=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=H.useState(t),[c,f]=H.useState(e(t)),[h,p,,m]=Bt(),{editing:g,error:_,edited:x,errorData:v}=s,b=Bd(async()=>{await n({oldName:t,newName:a,color:c}),r()}),w=Ft(m,()=>x&&i({oldName:t,newName:a,color:c}));return C(zo,{isOpen:o,toggle:r,centered:!0,onClosed:w,children:U("form",{name:"editTag",onSubmit:b,children:[C(io,{toggle:r,children:"Edit tag"}),U(ki,{children:[U($d,{children:[C("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:C($e,{icon:AY,className:"edit-tag-modal__color-icon"})}),C(Id,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:C(Vye,{color:c,onChange:f})}),C(id,{value:a,placeholder:"Tag",required:!0,onChange:({target:E})=>l(E.value)})]}),_&&C(Rr,{type:"error",small:!0,className:"mt-2",children:C(Do,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),U(Zs,{children:[C(gt,{type:"button",color:"link",onClick:r,children:"Cancel"}),C(gt,{color:"primary",disabled:g,children:g?"Saving...":"Save"})]})]})})},TF={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Wye=e=>Qs(({filterTags:t,forceListTags:n,tagsList:r,selectedServer:i,settings:o})=>{var h;const[s,a]=H.useState(((h=o.tags)==null?void 0:h.defaultOrdering)??{}),l=Ft(()=>r.filteredTags.map(p=>{var m,g;return{tag:p,shortUrls:((m=r.stats[p])==null?void 0:m.shortUrlsCount)??0,visits:((g=r.stats[p])==null?void 0:g.visitsCount)??0}}),p=>gA(p,s));if(H.useEffect(()=>{n()},[]),r.loading)return C(So,{loading:!0});if(r.error)return C(Rr,{type:"error",children:C(Do,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const c=p=>()=>{const m=By(p,s.field,s.dir);a({field:m?p:void 0,dir:m})};return U(We,{children:[C(Wd,{className:"mb-3",onChange:t}),C(cr,{className:"mb-3",children:C("div",{className:"col-lg-6 offset-lg-6",children:C(Gd,{items:TF,order:s,onChange:(p,m)=>a({field:p,dir:m})})})}),(()=>{if(r.filteredTags.length<1)return C(So,{children:"No tags found"});const p=l();return C(e,{sortedTags:p,selectedServer:i,currentOrder:s,orderByColumn:c})})()]})},()=>[Jr.visits]),vx="shlink/tagDelete",Yye={deleting:!1,deleted:!1,error:!1},OF=bn(`${vx}/tagDeleted`),qye=e=>{const t=nr(`${vx}/deleteTag`,async(r,{getState:i})=>{const{deleteTags:o}=e(i);await o([r])}),{reducer:n}=Yn({name:vx,initialState:Yye,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:ro(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},JE="shlink/tagEdit",Gye={editing:!1,edited:!1,error:!1},PF=bn(`${JE}/tagEdited`),Zye=(e,t)=>nr(`${JE}/editTag`,async({oldName:n,newName:r,color:i},{getState:o})=>(await e(o).editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Kye=e=>Yn({name:JE,initialState:Gye,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:ro(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...pA(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),eT="shlink/tagsList",Ab={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},KN=(e,t)=>n=>n===e?t:n,XN=(e,t)=>Pd(n=>n===t,e),Xye=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const o=n[r];return{...n,[r]:{...o,visitsCount:o.visitsCount+i}}},{...t}),Qye=e=>Object.entries(e.reduce((t,{shortUrl:n})=>(n==null||n.tags.forEach(r=>{t[r]=(t[r]||0)+1}),t),{})),Jye=(e,t=!0)=>nr(`${eT}/listTags`,async(n,{getState:r})=>{const{tagsList:i}=r();if(!t&&!Hn(i.tags))return i;const{listTags:o}=e(r),{tags:s,stats:a=[]}=await o(),l=a.reduce((c,{tag:f,shortUrlsCount:h,visitsCount:p})=>(c[f]={shortUrlsCount:h,visitsCount:p},c),{});return{tags:s,stats:l}}),kF=bn(`${eT}/filterTags`),e_e=(e,t)=>Yn({name:eT,initialState:Ab,reducers:{},extraReducers:n=>{n.addCase(kF,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...Ab,error:!0,errorData:ro(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...Ab,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(OF,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:XN(r,s),filteredTags:XN(i,s)})),n.addCase(PF,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(KN(a.oldName,a.newName)).sort(),filteredTags:i.map(KN(a.oldName,a.newName)).sort()})),n.addCase(Zd,(r,{payload:i})=>({...r,stats:Xye(Qye(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}});const t_e=20,n_e=e=>({sortedTags:t,selectedServer:n,orderByColumn:r,currentOrder:i})=>{const o=H.useRef(!0),{search:s}=Wn(),{page:a=1}=Gc(s),[l,c]=eee("page",Number(a)),f=qf(t_e,t),h=f.length>1,p=f[l-1]??[];return H.useEffect(()=>{!o.current&&c(1),o.current=!1},[t]),H.useEffect(()=>{scrollTo(0,0)},[l]),U(gn,{bodyClassName:h?"pb-1":"",children:[U("table",{className:"table table-hover responsive-table mb-0",children:[U("thead",{className:"responsive-table__header",children:[U("tr",{children:[U("th",{className:"tags-table__header-cell",onClick:r("tag"),children:["Tag ",C(yf,{currentOrder:i,field:"tag"})]}),U("th",{className:"tags-table__header-cell text-lg-end",onClick:r("shortUrls"),children:["Short URLs ",C(yf,{currentOrder:i,field:"shortUrls"})]}),U("th",{className:"tags-table__header-cell text-lg-end",onClick:r("visits"),children:["Visits ",C(yf,{currentOrder:i,field:"visits"})]}),C("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),C("tr",{children:C("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),U("tbody",{children:[p.length===0&&C("tr",{children:C("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>C(e,{tag:m,selectedServer:n},m.tag))]})]}),h&&C("div",{className:"sticky-card-paginator",children:C(GE,{pagesCount:f.length,currentPage:l,setCurrentPage:c})})]},l)},r_e=(e,t,n)=>({tag:r,selectedServer:i})=>{const[o,s]=Bt(),[a,l]=Bt(),[c,f]=Bt(),h=kd(i);return U("tr",{className:"responsive-table__row",children:[U("th",{className:"responsive-table__cell","data-th":"Tag",children:[C(wF,{tag:r.tag,colorGenerator:n})," ",r.tag]}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:C(It,{to:`/server/${h}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:yn(r.shortUrls)})}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:C(It,{to:`/server/${h}/tag/${r.tag}/visits`,children:yn(r.visits)})}),C("td",{className:"responsive-table__cell text-lg-end",children:U(h_,{toggle:f,isOpen:c,children:[U(Ve,{onClick:l,children:[C($e,{icon:SY,fixedWidth:!0,className:"me-1"})," Edit"]}),U(Ve,{onClick:s,children:[C($e,{icon:jY,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),C(t,{tag:r.tag,toggle:l,isOpen:a}),C(e,{tag:r.tag,toggle:s,isOpen:o})]})},i_e=(e,t)=>{e.serviceFactory("TagsSelector",Tye,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>Oye),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",Hye,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",r_e,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",n_e,"TagsTableRow"),e.serviceFactory("TagsList",Wye,"TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Kye,"editTag"),e.serviceFactory("tagEditReducer",rt("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",qye,"buildShlinkApiClient"),e.serviceFactory("tagDeleteReducer",rt("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",e_e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",rt("reducer"),"tagsListReducerCreator");const n=r=>({buildShlinkApiClient:i})=>Jye(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>kF),e.serviceFactory("deleteTag",rt("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>OF),e.serviceFactory("editTag",Zye,"buildShlinkApiClient","ColorGenerator"),e.serviceFactory("tagEdited",()=>PF)},o_e="shlink",QN=e=>`${o_e}.${e}`;class s_e{constructor(t){Qe(this,"get",t=>{const n=this.localStorage.getItem(QN(t));return n?JSON.parse(n):void 0});Qe(this,"set",(t,n)=>this.localStorage.setItem(QN(t),JSON.stringify(n)));this.localStorage=t}}const a_e=6,JN="0123456789ABCDEF",l_e=128,{floor:c_e,random:u_e,sqrt:f_e,round:d_e}=Math,h_e=()=>`#${UC(a_e,()=>JN[c_e(u_e()*JN.length)]).join("")}`,eL=e=>e.toLowerCase().trim(),p_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),m_e=(e=0,t=0,n=0)=>d_e(f_e(.299*e**2+.587*t**2+.114*n**2));class g_e{constructor(t){Qe(this,"colors");Qe(this,"lights");Qe(this,"getColorForKey",t=>{const n=eL(t),r=this.colors[n];return r||this.setColorForKey(n,h_e())});Qe(this,"setColorForKey",(t,n)=>{const r=eL(t);return this.colors[r]=n,this.storage.set("colors",this.colors),n});Qe(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if(Fo(this.lights[n])){const r=p_e(n);this.lights[n]=m_e(...r)>=l_e}return this.lights[n]});this.storage=t,this.colors=this.storage.get("colors")??{},this.lights={}}}var v_e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(g){var _=[];for(var x in g)_.push(x);return _};e.exports=h;var o=n(5);o.inherits=n(2);var s=n(23),a=n(14);o.inherits(h,s);for(var l=i(a.prototype),c=0;c<l.length;c++){var f=l[c];h.prototype[f]||(h.prototype[f]=a.prototype[f])}function h(g){if(!(this instanceof h))return new h(g);s.call(this,g),a.call(this,g),g&&g.readable===!1&&(this.readable=!1),g&&g.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,g&&g.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(m,this)}function m(g){g.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),h.prototype._destroy=function(g,_){this.push(null),this.end(),r.nextTick(_,g)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=n(38),o=n(39),s=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,R){if(a()<R)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(O=new Uint8Array(R)).__proto__=c.prototype:(O===null&&(O=new c(R)),O.length=R),O}function c(O,R,F){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(O,R,F);if(typeof O=="number"){if(typeof R=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,O)}return f(this,O,R,F)}function f(O,R,F,ee){if(typeof R=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&R instanceof ArrayBuffer?function(Q,se,ve,Le){if(se.byteLength,ve<0||se.byteLength<ve)throw new RangeError("'offset' is out of bounds");if(se.byteLength<ve+(Le||0))throw new RangeError("'length' is out of bounds");return se=ve===void 0&&Le===void 0?new Uint8Array(se):Le===void 0?new Uint8Array(se,ve):new Uint8Array(se,ve,Le),c.TYPED_ARRAY_SUPPORT?(Q=se).__proto__=c.prototype:Q=m(Q,se),Q}(O,R,F,ee):typeof R=="string"?function(Q,se,ve){if(typeof ve=="string"&&ve!==""||(ve="utf8"),!c.isEncoding(ve))throw new TypeError('"encoding" must be a valid string encoding');var Le=0|_(se,ve),fe=(Q=l(Q,Le)).write(se,ve);return fe!==Le&&(Q=Q.slice(0,fe)),Q}(O,R,F):function(Q,se){if(c.isBuffer(se)){var ve=0|g(se.length);return(Q=l(Q,ve)).length===0||se.copy(Q,0,0,ve),Q}if(se){if(typeof ArrayBuffer<"u"&&se.buffer instanceof ArrayBuffer||"length"in se)return typeof se.length!="number"||function(Le){return Le!=Le}(se.length)?l(Q,0):m(Q,se);if(se.type==="Buffer"&&s(se.data))return m(Q,se.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(O,R)}function h(O){if(typeof O!="number")throw new TypeError('"size" argument must be a number');if(O<0)throw new RangeError('"size" argument must not be negative')}function p(O,R){if(h(R),O=l(O,R<0?0:0|g(R)),!c.TYPED_ARRAY_SUPPORT)for(var F=0;F<R;++F)O[F]=0;return O}function m(O,R){var F=R.length<0?0:0|g(R.length);O=l(O,F);for(var ee=0;ee<F;ee+=1)O[ee]=255&R[ee];return O}function g(O){if(O>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|O}function _(O,R){if(c.isBuffer(O))return O.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var F=O.length;if(F===0)return 0;for(var ee=!1;;)switch(R){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":case void 0:return re(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return le(O).length;default:if(ee)return re(O).length;R=(""+R).toLowerCase(),ee=!0}}function x(O,R,F){var ee=O[R];O[R]=O[F],O[F]=ee}function v(O,R,F,ee,Q){if(O.length===0)return-1;if(typeof F=="string"?(ee=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=Q?0:O.length-1),F<0&&(F=O.length+F),F>=O.length){if(Q)return-1;F=O.length-1}else if(F<0){if(!Q)return-1;F=0}if(typeof R=="string"&&(R=c.from(R,ee)),c.isBuffer(R))return R.length===0?-1:b(O,R,F,ee,Q);if(typeof R=="number")return R&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(O,R,F):Uint8Array.prototype.lastIndexOf.call(O,R,F):b(O,[R],F,ee,Q);throw new TypeError("val must be string, number or Buffer")}function b(O,R,F,ee,Q){var se,ve=1,Le=O.length,fe=R.length;if(ee!==void 0&&((ee=String(ee).toLowerCase())==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(O.length<2||R.length<2)return-1;ve=2,Le/=2,fe/=2,F/=2}function ye(Re,Ne){return ve===1?Re[Ne]:Re.readUInt16BE(Ne*ve)}if(Q){var be=-1;for(se=F;se<Le;se++)if(ye(O,se)===ye(R,be===-1?0:se-be)){if(be===-1&&(be=se),se-be+1===fe)return be*ve}else be!==-1&&(se-=se-be),be=-1}else for(F+fe>Le&&(F=Le-fe),se=F;se>=0;se--){for(var Te=!0,De=0;De<fe;De++)if(ye(O,se+De)!==ye(R,De)){Te=!1;break}if(Te)return se}return-1}function w(O,R,F,ee){F=Number(F)||0;var Q=O.length-F;ee?(ee=Number(ee))>Q&&(ee=Q):ee=Q;var se=R.length;if(se%2!=0)throw new TypeError("Invalid hex string");ee>se/2&&(ee=se/2);for(var ve=0;ve<ee;++ve){var Le=parseInt(R.substr(2*ve,2),16);if(isNaN(Le))return ve;O[F+ve]=Le}return ve}function E(O,R,F,ee){return me(re(R,O.length-F),O,F,ee)}function P(O,R,F,ee){return me(function(Q){for(var se=[],ve=0;ve<Q.length;++ve)se.push(255&Q.charCodeAt(ve));return se}(R),O,F,ee)}function k(O,R,F,ee){return P(O,R,F,ee)}function N(O,R,F,ee){return me(le(R),O,F,ee)}function A(O,R,F,ee){return me(function(Q,se){for(var ve,Le,fe,ye=[],be=0;be<Q.length&&!((se-=2)<0);++be)Le=(ve=Q.charCodeAt(be))>>8,fe=ve%256,ye.push(fe),ye.push(Le);return ye}(R,O.length-F),O,F,ee)}function V(O,R,F){return R===0&&F===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(R,F))}function I(O,R,F){F=Math.min(O.length,F);for(var ee=[],Q=R;Q<F;){var se,ve,Le,fe,ye=O[Q],be=null,Te=ye>239?4:ye>223?3:ye>191?2:1;if(Q+Te<=F)switch(Te){case 1:ye<128&&(be=ye);break;case 2:(192&(se=O[Q+1]))==128&&(fe=(31&ye)<<6|63&se)>127&&(be=fe);break;case 3:se=O[Q+1],ve=O[Q+2],(192&se)==128&&(192&ve)==128&&(fe=(15&ye)<<12|(63&se)<<6|63&ve)>2047&&(fe<55296||fe>57343)&&(be=fe);break;case 4:se=O[Q+1],ve=O[Q+2],Le=O[Q+3],(192&se)==128&&(192&ve)==128&&(192&Le)==128&&(fe=(15&ye)<<18|(63&se)<<12|(63&ve)<<6|63&Le)>65535&&fe<1114112&&(be=fe)}be===null?(be=65533,Te=1):be>65535&&(be-=65536,ee.push(be>>>10&1023|55296),be=56320|1023&be),ee.push(be),Q+=Te}return function(De){var Re=De.length;if(Re<=Y)return String.fromCharCode.apply(String,De);for(var Ne="",ue=0;ue<Re;)Ne+=String.fromCharCode.apply(String,De.slice(ue,ue+=Y));return Ne}(ee)}t.Buffer=c,t.SlowBuffer=function(O){return+O!=O&&(O=0),c.alloc(+O)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42&&typeof O.subarray=="function"&&O.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(O){return O.__proto__=c.prototype,O},c.from=function(O,R,F){return f(null,O,R,F)},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(O,R,F){return function(ee,Q,se,ve){return h(Q),Q<=0?l(ee,Q):se!==void 0?typeof ve=="string"?l(ee,Q).fill(se,ve):l(ee,Q).fill(se):l(ee,Q)}(null,O,R,F)},c.allocUnsafe=function(O){return p(null,O)},c.allocUnsafeSlow=function(O){return p(null,O)},c.isBuffer=function(O){return!(O==null||!O._isBuffer)},c.compare=function(O,R){if(!c.isBuffer(O)||!c.isBuffer(R))throw new TypeError("Arguments must be Buffers");if(O===R)return 0;for(var F=O.length,ee=R.length,Q=0,se=Math.min(F,ee);Q<se;++Q)if(O[Q]!==R[Q]){F=O[Q],ee=R[Q];break}return F<ee?-1:ee<F?1:0},c.isEncoding=function(O){switch(String(O).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(O,R){if(!s(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return c.alloc(0);var F;if(R===void 0)for(R=0,F=0;F<O.length;++F)R+=O[F].length;var ee=c.allocUnsafe(R),Q=0;for(F=0;F<O.length;++F){var se=O[F];if(!c.isBuffer(se))throw new TypeError('"list" argument must be an Array of Buffers');se.copy(ee,Q),Q+=se.length}return ee},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;R<O;R+=2)x(this,R,R+1);return this},c.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var R=0;R<O;R+=4)x(this,R,R+3),x(this,R+1,R+2);return this},c.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var R=0;R<O;R+=8)x(this,R,R+7),x(this,R+1,R+6),x(this,R+2,R+5),x(this,R+3,R+4);return this},c.prototype.toString=function(){var O=0|this.length;return O===0?"":arguments.length===0?I(this,0,O):function(R,F,ee){var Q=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((ee===void 0||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(F>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return Z(this,F,ee);case"utf8":case"utf-8":return I(this,F,ee);case"ascii":return q(this,F,ee);case"latin1":case"binary":return X(this,F,ee);case"base64":return V(this,F,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,F,ee);default:if(Q)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),Q=!0}}.apply(this,arguments)},c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",R=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(O+=" ... ")),"<Buffer "+O+">"},c.prototype.compare=function(O,R,F,ee,Q){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),F===void 0&&(F=O?O.length:0),ee===void 0&&(ee=0),Q===void 0&&(Q=this.length),R<0||F>O.length||ee<0||Q>this.length)throw new RangeError("out of range index");if(ee>=Q&&R>=F)return 0;if(ee>=Q)return-1;if(R>=F)return 1;if(R>>>=0,F>>>=0,ee>>>=0,Q>>>=0,this===O)return 0;for(var se=Q-ee,ve=F-R,Le=Math.min(se,ve),fe=this.slice(ee,Q),ye=O.slice(R,F),be=0;be<Le;++be)if(fe[be]!==ye[be]){se=fe[be],ve=ye[be];break}return se<ve?-1:ve<se?1:0},c.prototype.includes=function(O,R,F){return this.indexOf(O,R,F)!==-1},c.prototype.indexOf=function(O,R,F){return v(this,O,R,F,!0)},c.prototype.lastIndexOf=function(O,R,F){return v(this,O,R,F,!1)},c.prototype.write=function(O,R,F,ee){if(R===void 0)ee="utf8",F=this.length,R=0;else if(F===void 0&&typeof R=="string")ee=R,F=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R|=0,isFinite(F)?(F|=0,ee===void 0&&(ee="utf8")):(ee=F,F=void 0)}var Q=this.length-R;if((F===void 0||F>Q)&&(F=Q),O.length>0&&(F<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var se=!1;;)switch(ee){case"hex":return w(this,O,R,F);case"utf8":case"utf-8":return E(this,O,R,F);case"ascii":return P(this,O,R,F);case"latin1":case"binary":return k(this,O,R,F);case"base64":return N(this,O,R,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,O,R,F);default:if(se)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;function q(O,R,F){var ee="";F=Math.min(O.length,F);for(var Q=R;Q<F;++Q)ee+=String.fromCharCode(127&O[Q]);return ee}function X(O,R,F){var ee="";F=Math.min(O.length,F);for(var Q=R;Q<F;++Q)ee+=String.fromCharCode(O[Q]);return ee}function Z(O,R,F){var ee=O.length;(!R||R<0)&&(R=0),(!F||F<0||F>ee)&&(F=ee);for(var Q="",se=R;se<F;++se)Q+=G(O[se]);return Q}function J(O,R,F){for(var ee=O.slice(R,F),Q="",se=0;se<ee.length;se+=2)Q+=String.fromCharCode(ee[se]+256*ee[se+1]);return Q}function oe(O,R,F){if(O%1!=0||O<0)throw new RangeError("offset is not uint");if(O+R>F)throw new RangeError("Trying to access beyond buffer length")}function ce(O,R,F,ee,Q,se){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>Q||R<se)throw new RangeError('"value" argument is out of bounds');if(F+ee>O.length)throw new RangeError("Index out of range")}function K(O,R,F,ee){R<0&&(R=65535+R+1);for(var Q=0,se=Math.min(O.length-F,2);Q<se;++Q)O[F+Q]=(R&255<<8*(ee?Q:1-Q))>>>8*(ee?Q:1-Q)}function $(O,R,F,ee){R<0&&(R=4294967295+R+1);for(var Q=0,se=Math.min(O.length-F,4);Q<se;++Q)O[F+Q]=R>>>8*(ee?Q:3-Q)&255}function D(O,R,F,ee,Q,se){if(F+ee>O.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function B(O,R,F,ee,Q){return Q||D(O,0,F,4),o.write(O,R,F,ee,23,4),F+4}function ne(O,R,F,ee,Q){return Q||D(O,0,F,8),o.write(O,R,F,ee,52,8),F+8}c.prototype.slice=function(O,R){var F,ee=this.length;if(O=~~O,R=R===void 0?ee:~~R,O<0?(O+=ee)<0&&(O=0):O>ee&&(O=ee),R<0?(R+=ee)<0&&(R=0):R>ee&&(R=ee),R<O&&(R=O),c.TYPED_ARRAY_SUPPORT)(F=this.subarray(O,R)).__proto__=c.prototype;else{var Q=R-O;F=new c(Q,void 0);for(var se=0;se<Q;++se)F[se]=this[se+O]}return F},c.prototype.readUIntLE=function(O,R,F){O|=0,R|=0,F||oe(O,R,this.length);for(var ee=this[O],Q=1,se=0;++se<R&&(Q*=256);)ee+=this[O+se]*Q;return ee},c.prototype.readUIntBE=function(O,R,F){O|=0,R|=0,F||oe(O,R,this.length);for(var ee=this[O+--R],Q=1;R>0&&(Q*=256);)ee+=this[O+--R]*Q;return ee},c.prototype.readUInt8=function(O,R){return R||oe(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,R){return R||oe(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,R){return R||oe(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,R){return R||oe(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,R){return R||oe(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,R,F){O|=0,R|=0,F||oe(O,R,this.length);for(var ee=this[O],Q=1,se=0;++se<R&&(Q*=256);)ee+=this[O+se]*Q;return ee>=(Q*=128)&&(ee-=Math.pow(2,8*R)),ee},c.prototype.readIntBE=function(O,R,F){O|=0,R|=0,F||oe(O,R,this.length);for(var ee=R,Q=1,se=this[O+--ee];ee>0&&(Q*=256);)se+=this[O+--ee]*Q;return se>=(Q*=128)&&(se-=Math.pow(2,8*R)),se},c.prototype.readInt8=function(O,R){return R||oe(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,R){R||oe(O,2,this.length);var F=this[O]|this[O+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(O,R){R||oe(O,2,this.length);var F=this[O+1]|this[O]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(O,R){return R||oe(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,R){return R||oe(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,R){return R||oe(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,R){return R||oe(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,R){return R||oe(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,R){return R||oe(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,R,F,ee){O=+O,R|=0,F|=0,ee||ce(this,O,R,F,Math.pow(2,8*F)-1,0);var Q=1,se=0;for(this[R]=255&O;++se<F&&(Q*=256);)this[R+se]=O/Q&255;return R+F},c.prototype.writeUIntBE=function(O,R,F,ee){O=+O,R|=0,F|=0,ee||ce(this,O,R,F,Math.pow(2,8*F)-1,0);var Q=F-1,se=1;for(this[R+Q]=255&O;--Q>=0&&(se*=256);)this[R+Q]=O/se&255;return R+F},c.prototype.writeUInt8=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[R]=255&O,R+1},c.prototype.writeUInt16LE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):K(this,O,R,!0),R+2},c.prototype.writeUInt16BE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):K(this,O,R,!1),R+2},c.prototype.writeUInt32LE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R+3]=O>>>24,this[R+2]=O>>>16,this[R+1]=O>>>8,this[R]=255&O):$(this,O,R,!0),R+4},c.prototype.writeUInt32BE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeIntLE=function(O,R,F,ee){if(O=+O,R|=0,!ee){var Q=Math.pow(2,8*F-1);ce(this,O,R,F,Q-1,-Q)}var se=0,ve=1,Le=0;for(this[R]=255&O;++se<F&&(ve*=256);)O<0&&Le===0&&this[R+se-1]!==0&&(Le=1),this[R+se]=(O/ve>>0)-Le&255;return R+F},c.prototype.writeIntBE=function(O,R,F,ee){if(O=+O,R|=0,!ee){var Q=Math.pow(2,8*F-1);ce(this,O,R,F,Q-1,-Q)}var se=F-1,ve=1,Le=0;for(this[R+se]=255&O;--se>=0&&(ve*=256);)O<0&&Le===0&&this[R+se+1]!==0&&(Le=1),this[R+se]=(O/ve>>0)-Le&255;return R+F},c.prototype.writeInt8=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[R]=255&O,R+1},c.prototype.writeInt16LE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):K(this,O,R,!0),R+2},c.prototype.writeInt16BE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):K(this,O,R,!1),R+2},c.prototype.writeInt32LE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8,this[R+2]=O>>>16,this[R+3]=O>>>24):$(this,O,R,!0),R+4},c.prototype.writeInt32BE=function(O,R,F){return O=+O,R|=0,F||ce(this,O,R,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeFloatLE=function(O,R,F){return B(this,O,R,!0,F)},c.prototype.writeFloatBE=function(O,R,F){return B(this,O,R,!1,F)},c.prototype.writeDoubleLE=function(O,R,F){return ne(this,O,R,!0,F)},c.prototype.writeDoubleBE=function(O,R,F){return ne(this,O,R,!1,F)},c.prototype.copy=function(O,R,F,ee){if(F||(F=0),ee||ee===0||(ee=this.length),R>=O.length&&(R=O.length),R||(R=0),ee>0&&ee<F&&(ee=F),ee===F||O.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),O.length-R<ee-F&&(ee=O.length-R+F);var Q,se=ee-F;if(this===O&&F<R&&R<ee)for(Q=se-1;Q>=0;--Q)O[Q+R]=this[Q+F];else if(se<1e3||!c.TYPED_ARRAY_SUPPORT)for(Q=0;Q<se;++Q)O[Q+R]=this[Q+F];else Uint8Array.prototype.set.call(O,this.subarray(F,F+se),R);return se},c.prototype.fill=function(O,R,F,ee){if(typeof O=="string"){if(typeof R=="string"?(ee=R,R=0,F=this.length):typeof F=="string"&&(ee=F,F=this.length),O.length===1){var Q=O.charCodeAt(0);Q<256&&(O=Q)}if(ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!c.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee)}else typeof O=="number"&&(O&=255);if(R<0||this.length<R||this.length<F)throw new RangeError("Out of range index");if(F<=R)return this;var se;if(R>>>=0,F=F===void 0?this.length:F>>>0,O||(O=0),typeof O=="number")for(se=R;se<F;++se)this[se]=O;else{var ve=c.isBuffer(O)?O:re(new c(O,ee).toString()),Le=ve.length;for(se=0;se<F-R;++se)this[se+R]=ve[se%Le]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(O){return O<16?"0"+O.toString(16):O.toString(16)}function re(O,R){var F;R=R||1/0;for(var ee=O.length,Q=null,se=[],ve=0;ve<ee;++ve){if((F=O.charCodeAt(ve))>55295&&F<57344){if(!Q){if(F>56319){(R-=3)>-1&&se.push(239,191,189);continue}if(ve+1===ee){(R-=3)>-1&&se.push(239,191,189);continue}Q=F;continue}if(F<56320){(R-=3)>-1&&se.push(239,191,189),Q=F;continue}F=65536+(Q-55296<<10|F-56320)}else Q&&(R-=3)>-1&&se.push(239,191,189);if(Q=null,F<128){if((R-=1)<0)break;se.push(F)}else if(F<2048){if((R-=2)<0)break;se.push(F>>6|192,63&F|128)}else if(F<65536){if((R-=3)<0)break;se.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;se.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return se}function le(O){return i.toByteArray(function(R){if((R=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(R).replace(W,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function me(O,R,F,ee){for(var Q=0;Q<ee&&!(Q+F>=R.length||Q>=O.length);++Q)R[Q+F]=O[Q];return Q}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var x=a(p);f=!0;for(var v=c.length;v;){for(l=c,c=[];++h<v;)l&&l[h].run();h=-1,v=c.length}l=null,f=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(x)}}function g(x,v){this.fun=x,this.array=v}function _(){}i.nextTick=function(x){var v=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)v[b-1]=arguments[b];c.push(new g(x,v)),c.length!==1||f||a(m)},g.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(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,s,a){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,c,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,s)});case 4:return r.nextTick(function(){i.call(null,o,s,a)});default:for(l=new Array(f-1),c=0;c<l.length;)l[c++]=arguments[c];return r.nextTick(function(){i.apply(null,l)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(a,l){for(var c in a)l[c]=a[c]}function s(a,l,c){return i(a,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(a,l,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,l,c)},s.alloc=function(a,l,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return l!==void 0?typeof c=="string"?f.fill(l,c):f.fill(l):f.fill(0),f},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var s=i.length;s--;)if(r(i[s][0],o))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var s=i.__data__;return r(o)?s[typeof o=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function s(a,l){this._id=a,this._clearFn=l}t.setTimeout=function(){return new s(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(a){a&&a.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(a,l){clearTimeout(a._idleTimeoutId),a._idleTimeout=l},t.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},t._unrefActive=t.active=function(a){clearTimeout(a._idleTimeoutId);var l=a._idleTimeout;l>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(a){return typeof a=="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 a,l,c,f,h,p;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var m=new Error('Uncaught, unspecified "error" event. ('+a+")");throw m.context=a,m}if(o(l=this._events[s]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,h=0;h<c;h++)p[h].apply(this,f);return!0},n.prototype.addListener=function(s,a){var l;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,r(a.listener)?a.listener:a),this._events[s]?i(this._events[s])?this._events[s].push(a):this._events[s]=[this._events[s],a]:this._events[s]=a,i(this._events[s])&&!this._events[s].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[s].length>l&&(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,a){if(!r(a))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(s,c),l||(l=!0,a.apply(this,arguments))}return c.listener=a,this.on(s,c),this},n.prototype.removeListener=function(s,a){var l,c,f,h;if(!r(a))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(f=(l=this._events[s]).length,c=-1,l===a||r(l.listener)&&l.listener===a)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,a);else if(i(l)){for(h=f;h-- >0;)if(l[h]===a||l[h].listener&&l[h].listener===a){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[s]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,a)}return this},n.prototype.removeAllListeners=function(s){var a,l;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(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[s]))this.removeListener(s,l);else if(l)for(;l.length;)this.removeListener(s,l[l.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 a=this._events[s];if(r(a))return 1;if(a)return a.length}return 0},n.listenerCount=function(s,a){return s.listenerCount(a)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function a(I){var Y=this;this.next=null,this.entry=null,this.finish=function(){(function(q,X,Z){var J=q.entry;for(q.entry=null;J;){var oe=J.callback;X.pendingcb--,oe(void 0),J=J.next}X.corkedRequestsFree?X.corkedRequestsFree.next=q:X.corkedRequestsFree=q})(Y,I)}}e.exports=w;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;w.WritableState=b;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),g=n(7).Buffer,_=o.Uint8Array||function(){},x=n(25);function v(){}function b(I,Y){l=l||n(1),I=I||{};var q=Y instanceof l;this.objectMode=!!I.objectMode,q&&(this.objectMode=this.objectMode||!!I.writableObjectMode);var X=I.highWaterMark,Z=I.writableHighWaterMark,J=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:q&&(Z||Z===0)?Z:J,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 oe=I.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){(function(K,$){var D=K._writableState,B=D.sync,ne=D.writecb;if(function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}(D),$)(function(G,re,le,me,O){--re.pendingcb,le?(s.nextTick(O,me),s.nextTick(V,G,re),G._writableState.errorEmitted=!0,G.emit("error",me)):(O(me),G._writableState.errorEmitted=!0,G.emit("error",me),V(G,re))})(K,D,B,$,ne);else{var W=N(D);W||D.corked||D.bufferProcessing||!D.bufferedRequest||k(K,D),B?c(P,K,D,W,ne):P(K,D,W,ne)}})(Y,ce)},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 a(this)}function w(I){if(l=l||n(1),!(h.call(w,this)||this instanceof l))return new w(I);this._writableState=new b(I,this),this.writable=!0,I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final)),m.call(this)}function E(I,Y,q,X,Z,J,oe){Y.writelen=X,Y.writecb=oe,Y.writing=!0,Y.sync=!0,q?I._writev(Z,Y.onwrite):I._write(Z,J,Y.onwrite),Y.sync=!1}function P(I,Y,q,X){q||function(Z,J){J.length===0&&J.needDrain&&(J.needDrain=!1,Z.emit("drain"))}(I,Y),Y.pendingcb--,X(),V(I,Y)}function k(I,Y){Y.bufferProcessing=!0;var q=Y.bufferedRequest;if(I._writev&&q&&q.next){var X=Y.bufferedRequestCount,Z=new Array(X),J=Y.corkedRequestsFree;J.entry=q;for(var oe=0,ce=!0;q;)Z[oe]=q,q.isBuf||(ce=!1),q=q.next,oe+=1;Z.allBuffers=ce,E(I,Y,!0,Y.length,Z,"",J.finish),Y.pendingcb++,Y.lastBufferedRequest=null,J.next?(Y.corkedRequestsFree=J.next,J.next=null):Y.corkedRequestsFree=new a(Y),Y.bufferedRequestCount=0}else{for(;q;){var K=q.chunk,$=q.encoding,D=q.callback;if(E(I,Y,!1,Y.objectMode?1:K.length,K,$,D),q=q.next,Y.bufferedRequestCount--,Y.writing)break}q===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=q,Y.bufferProcessing=!1}function N(I){return I.ending&&I.length===0&&I.bufferedRequest===null&&!I.finished&&!I.writing}function A(I,Y){I._final(function(q){Y.pendingcb--,q&&I.emit("error",q),Y.prefinished=!0,I.emit("prefinish"),V(I,Y)})}function V(I,Y){var q=N(Y);return q&&(function(X,Z){Z.prefinished||Z.finalCalled||(typeof X._final=="function"?(Z.pendingcb++,Z.finalCalled=!0,s.nextTick(A,X,Z)):(Z.prefinished=!0,X.emit("prefinish")))}(I,Y),Y.pendingcb===0&&(Y.finished=!0,I.emit("finish"))),q}f.inherits(w,m),b.prototype.getBuffer=function(){for(var I=this.bufferedRequest,Y=[];I;)Y.push(I),I=I.next;return Y},function(){try{Object.defineProperty(b.prototype,"buffer",{get:p.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"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(I){return!!h.call(this,I)||this===w&&I&&I._writableState instanceof b}})):h=function(I){return I instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(I,Y,q){var X=this._writableState,Z=!1,J=!X.objectMode&&function(oe){return g.isBuffer(oe)||oe instanceof _}(I);return J&&!g.isBuffer(I)&&(I=function(oe){return g.from(oe)}(I)),typeof Y=="function"&&(q=Y,Y=null),J?Y="buffer":Y||(Y=X.defaultEncoding),typeof q!="function"&&(q=v),X.ended?function(oe,ce){var K=new Error("write after end");oe.emit("error",K),s.nextTick(ce,K)}(this,q):(J||function(oe,ce,K,$){var D=!0,B=!1;return K===null?B=new TypeError("May not write null values to stream"):typeof K=="string"||K===void 0||ce.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(oe.emit("error",B),s.nextTick($,B),D=!1),D}(this,X,I,q))&&(X.pendingcb++,Z=function(oe,ce,K,$,D,B){if(!K){var ne=function(le,me,O){return le.objectMode||le.decodeStrings===!1||typeof me!="string"||(me=g.from(me,O)),me}(ce,$,D);$!==ne&&(K=!0,D="buffer",$=ne)}var W=ce.objectMode?1:$.length;ce.length+=W;var G=ce.length<ce.highWaterMark;if(G||(ce.needDrain=!0),ce.writing||ce.corked){var re=ce.lastBufferedRequest;ce.lastBufferedRequest={chunk:$,encoding:D,isBuf:K,callback:B,next:null},re?re.next=ce.lastBufferedRequest:ce.bufferedRequest=ce.lastBufferedRequest,ce.bufferedRequestCount+=1}else E(oe,ce,!1,W,$,D,B);return G}(this,X,J,I,Y,q)),Z},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var I=this._writableState;I.corked&&(I.corked--,I.writing||I.corked||I.finished||I.bufferProcessing||!I.bufferedRequest||k(this,I))},w.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=I.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(I,Y,q){q(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(I,Y,q){var X=this._writableState;typeof I=="function"?(q=I,I=null,Y=null):typeof Y=="function"&&(q=Y,Y=null),I!=null&&this.write(I,Y),X.corked&&(X.corked=1,this.uncork()),X.ending||X.finished||function(Z,J,oe){J.ending=!0,V(Z,J),oe&&(J.finished?s.nextTick(oe):Z.once("finish",oe)),J.ended=!0,Z.writable=!1}(this,X,q)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(I){this._writableState&&(this._writableState.destroyed=I)}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(I,Y){this.end(),Y(I)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(a,l,c){function f(m,g){if(!l[m]){if(!a[m]){var _=typeof _dereq_=="function"&&_dereq_;if(!g&&_)return _(m,!0);if(h)return h(m,!0);var x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var v=l[m]={exports:{}};a[m][0].call(v.exports,function(b){return f(a[m][1][b]||b)},v,v.exports,s,a,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p<c.length;p++)f(c[p]);return f}({1:[function(s,a,l){a.exports=function(c){var f=c._SomePromiseArray;function h(p){var m=new f(p),g=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),g}c.any=function(p){return h(p)},c.prototype.any=function(){return h(this)}}},{}],2:[function(s,a,l){var c;try{throw new Error}catch(v){c=v}var f=s("./schedule"),h=s("./queue"),p=s("./util");function m(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var v=this;this.drainQueues=function(){v._drainQueues()},this._schedule=f}function g(v,b,w){this._lateQueue.push(v,b,w),this._queueTick()}function _(v,b,w){this._normalQueue.push(v,b,w),this._queueTick()}function x(v){this._normalQueue._pushOne(v),this._queueTick()}m.prototype.setScheduler=function(v){var b=this._schedule;return this._schedule=v,this._customScheduler=!0,b},m.prototype.hasCustomScheduler=function(){return this._customScheduler},m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},m.prototype.fatalError=function(v,b){b?(r.stderr.write("Fatal "+(v instanceof Error?v.stack:v)+`
|
||
`),r.exit(2)):this.throwLater(v)},m.prototype.throwLater=function(v,b){if(arguments.length===1&&(b=v,v=function(){throw b}),typeof setTimeout<"u")setTimeout(function(){v(b)},0);else try{this._schedule(function(){v(b)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(m.prototype.invokeLater=function(v,b,w){this._trampolineEnabled?g.call(this,v,b,w):this._schedule(function(){setTimeout(function(){v.call(b,w)},100)})},m.prototype.invoke=function(v,b,w){this._trampolineEnabled?_.call(this,v,b,w):this._schedule(function(){v.call(b,w)})},m.prototype.settlePromises=function(v){this._trampolineEnabled?x.call(this,v):this._schedule(function(){v._settlePromises()})}):(m.prototype.invokeLater=g,m.prototype.invoke=_,m.prototype.settlePromises=x),m.prototype._drainQueue=function(v){for(;v.length()>0;){var b=v.shift();if(typeof b=="function"){var w=v.shift(),E=v.shift();b.call(w,E)}else b._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},a.exports=m,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var m=!1,g=function(b,w){this._reject(w)},_=function(b,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(g,g,null,this,b)},x=function(b,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},v=function(b,w){w.promiseRejectionQueued||this._reject(b)};c.prototype.bind=function(b){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var w=h(b),E=new c(f);E._propagateFrom(this,1);var P=this._target();if(E._setBoundTo(w),w instanceof c){var k={promiseRejectionQueued:!1,promise:E,target:P,bindingPromise:w};P._then(f,_,void 0,E,k),w._then(x,v,void 0,E,k),E._setOnCancel(w)}else E._resolveCallback(P);return E},c.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(b,w){return c.resolve(w).bind(b)}}},{}],4:[function(s,a,l){var c;typeof Promise<"u"&&(c=Promise);var f=s("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},a.exports=f},{"./promise":22}],5:[function(s,a,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}a.exports=function(p){var m=s("./util"),g=m.canEvaluate;function _(b){return function(w,E){var P;if(w!=null&&(P=w[E]),typeof P!="function"){var k="Object "+m.classString(w)+" has no method '"+m.toString(E)+"'";throw new p.TypeError(k)}return P}(b,this.pop()).apply(b,this)}function x(b){return b[this]}function v(b){var w=+this;return w<0&&(w=Math.max(0,w+b.length)),b[w]}m.isIdentifier,p.prototype.call=function(b){var w=[].slice.call(arguments,1);return w.push(b),this._then(_,void 0,void 0,w,void 0)},p.prototype.get=function(b){var w;if(typeof b=="number")w=v;else if(g){var E=(void 0)(b);w=E!==null?E:x}else w=x;return this._then(w,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),g=m.tryCatch,_=m.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var v=this,b=v;v._isCancellable();){if(!v._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var w=v._cancellationParent;if(w==null||!w._isCancellable()){v._isFollowing()?v._followee().cancel():v._cancelBranched();break}v._isFollowing()&&v._followee().cancel(),v._setWillBeCancelled(),b=v,v=w}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(v){return v===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(),x.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(v,b){if(m.isArray(v))for(var w=0;w<v.length;++w)this._doInvokeOnCancel(v[w],b);else if(v!==void 0)if(typeof v=="function"){if(!b){var E=g(v).call(this._boundValue());E===_&&(this._attachExtraTrace(E.e),x.throwLater(E.e))}}else v._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var v=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,v)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=s("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(g,_,x){return function(v){var b=x._boundValue();e:for(var w=0;w<g.length;++w){var E=g[w];if(E===Error||E!=null&&E.prototype instanceof Error){if(v instanceof E)return p(_).call(b,v)}else if(typeof E=="function"){var P=p(E).call(b,v);if(P===m)return P;if(P)return p(_).call(b,v)}else if(f.isObject(v)){for(var k=h(E),N=0;N<k.length;++N){var A=k[N];if(E[A]!=v[A])continue e}return p(_).call(b,v)}}return c}}}},{"./es5":13,"./util":36}],8:[function(s,a,l){a.exports=function(c){var f=!1,h=[];function p(){this._trace=new p.CapturedTrace(m())}function m(){var g=h.length-1;if(g>=0)return h[g]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var g=h.pop(),_=g._promiseCreated;return g._promiseCreated=null,_}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var g=c.prototype._pushContext,_=c.prototype._popContext,x=c._peekContext,v=c.prototype._peekContext,b=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=g,c.prototype._popContext=_,c._peekContext=x,c.prototype._peekContext=v,c.prototype._promiseCreated=b,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},p}},{}],9:[function(s,a,l){a.exports=function(c,f){var h,p,m,g=c._getDomain,_=c._async,x=s("./errors").Warning,v=s("./util"),b=v.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,E=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,A=!1,V=v.env("BLUEBIRD_DEBUG")!=0,I=!(v.env("BLUEBIRD_WARNINGS")==0||!V&&!v.env("BLUEBIRD_WARNINGS")),Y=!(v.env("BLUEBIRD_LONG_STACK_TRACES")==0||!V&&!v.env("BLUEBIRD_LONG_STACK_TRACES")),q=v.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(I||!!v.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ue=this._target();ue._bitField=-1048577&ue._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ue=this;setTimeout(function(){ue._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ve("rejectionHandled",h,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 ue=this._settledValue();this._setUnhandledRejectionIsNotified(),ve("unhandledRejection",p,ue,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(ue,he,we){return F(ue,he,we||this)},c.onPossiblyUnhandledRejection=function(ue){var he=g();p=typeof ue=="function"?he===null?ue:v.domainBind(he,ue):void 0},c.onUnhandledRejectionHandled=function(ue){var he=g();h=typeof ue=="function"?he===null?ue:v.domainBind(he,ue):void 0};var X=function(){};c.longStackTraces=function(){if(_.haveItemsQueued()&&!Ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Ne.longStackTraces&&fe()){var ue=c.prototype._captureStackTrace,he=c.prototype._attachExtraTrace;Ne.longStackTraces=!0,X=function(){if(_.haveItemsQueued()&&!Ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=ue,c.prototype._attachExtraTrace=he,f.deactivateLongStackTraces(),_.enableTrampoline(),Ne.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=R,f.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Ne.longStackTraces&&fe()};var Z=function(){try{if(typeof CustomEvent=="function"){var ue=new CustomEvent("CustomEvent");return v.global.dispatchEvent(ue),function(he,we){var _e=new CustomEvent(he.toLowerCase(),{detail:we,cancelable:!0});return!v.global.dispatchEvent(_e)}}return typeof Event=="function"?(ue=new Event("CustomEvent"),v.global.dispatchEvent(ue),function(he,we){var _e=new Event(he.toLowerCase(),{cancelable:!0});return _e.detail=we,!v.global.dispatchEvent(_e)}):((ue=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),v.global.dispatchEvent(ue),function(he,we){var _e=document.createEvent("CustomEvent");return _e.initCustomEvent(he.toLowerCase(),!1,!0,we),!v.global.dispatchEvent(_e)})}catch{}return function(){return!1}}(),J=v.isNode?function(){return r.emit.apply(r,arguments)}:v.global?function(ue){var he="on"+ue.toLowerCase(),we=v.global[he];return!!we&&(we.apply(v.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function oe(ue,he){return{promise:he}}var ce={promiseCreated:oe,promiseFulfilled:oe,promiseRejected:oe,promiseResolved:oe,promiseCancelled:oe,promiseChained:function(ue,he,we){return{promise:he,child:we}},warning:function(ue,he){return{warning:he}},unhandledRejection:function(ue,he,we){return{reason:he,promise:we}},rejectionHandled:oe},K=function(ue){var he=!1;try{he=J.apply(null,arguments)}catch(_e){_.throwLater(_e),he=!0}var we=!1;try{we=Z(ue,ce[ue].apply(null,arguments))}catch(_e){_.throwLater(_e),we=!0}return we||he};function $(){return!1}function D(ue,he,we){var _e=this;try{ue(he,we,function(Ce){if(typeof Ce!="function")throw new TypeError("onCancel must be a function, got: "+v.toString(Ce));_e._attachCancellationCallback(Ce)})}catch(Ce){return Ce}}function B(ue){if(!this._isCancellable())return this;var he=this._onCancel();he!==void 0?v.isArray(he)?he.push(ue):this._setOnCancel([he,ue]):this._setOnCancel(ue)}function ne(){return this._onCancelField}function W(ue){this._onCancelField=ue}function G(){this._cancellationParent=void 0,this._onCancelField=void 0}function re(ue,he){if(1&he){this._cancellationParent=ue;var we=ue._branchesRemainingToCancel;we===void 0&&(we=0),ue._branchesRemainingToCancel=we+1}2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)}c.config=function(ue){if("longStackTraces"in(ue=Object(ue))&&(ue.longStackTraces?c.longStackTraces():!ue.longStackTraces&&c.hasLongStackTraces()&&X()),"warnings"in ue){var he=ue.warnings;Ne.warnings=!!he,q=Ne.warnings,v.isObject(he)&&"wForgottenReturn"in he&&(q=!!he.wForgottenReturn)}if("cancellation"in ue&&ue.cancellation&&!Ne.cancellation){if(_.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=G,c.prototype._propagateFrom=re,c.prototype._onCancel=ne,c.prototype._setOnCancel=W,c.prototype._attachCancellationCallback=B,c.prototype._execute=D,le=re,Ne.cancellation=!0}return"monitoring"in ue&&(ue.monitoring&&!Ne.monitoring?(Ne.monitoring=!0,c.prototype._fireEvent=K):!ue.monitoring&&Ne.monitoring&&(Ne.monitoring=!1,c.prototype._fireEvent=$)),c},c.prototype._fireEvent=$,c.prototype._execute=function(ue,he,we){try{ue(he,we)}catch(_e){return _e}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ue){},c.prototype._attachCancellationCallback=function(ue){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ue,he){};var le=function(ue,he){2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)};function me(){var ue=this._boundTo;return ue!==void 0&&ue instanceof c?ue.isFulfilled()?ue.value():void 0:ue}function O(){this._trace=new De(this._peekContext())}function R(ue,he){if(b(ue)){var we=this._trace;if(we!==void 0&&he&&(we=we._parent),we!==void 0)we.attachExtraTrace(ue);else if(!ue.__stackCleaned__){var _e=Q(ue);v.notEnumerableProp(ue,"stack",_e.message+`
|
||
`+_e.stack.join(`
|
||
`)),v.notEnumerableProp(ue,"__stackCleaned__",!0)}}}function F(ue,he,we){if(Ne.warnings){var _e,Ce=new x(ue);if(he)we._attachExtraTrace(Ce);else if(Ne.longStackTraces&&(_e=c._peekContext()))_e.attachExtraTrace(Ce);else{var ke=Q(Ce);Ce.stack=ke.message+`
|
||
`+ke.stack.join(`
|
||
`)}K("warning",Ce)||se(Ce,"",!0)}}function ee(ue){for(var he=[],we=0;we<ue.length;++we){var _e=ue[we],Ce=_e===" (No stack trace)"||k.test(_e),ke=Ce&&ye(_e);Ce&&!ke&&(A&&_e.charAt(0)!==" "&&(_e=" "+_e),he.push(_e))}return he}function Q(ue){var he=ue.stack,we=ue.toString();return he=typeof he=="string"&&he.length>0?function(_e){for(var Ce=_e.stack.replace(/\s+$/g,"").split(`
|
||
`),ke=0;ke<Ce.length;++ke){var Ie=Ce[ke];if(Ie===" (No stack trace)"||k.test(Ie))break}return ke>0&&_e.name!="SyntaxError"&&(Ce=Ce.slice(ke)),Ce}(ue):[" (No stack trace)"],{message:we,stack:ue.name=="SyntaxError"?he:ee(he)}}function se(ue,he,we){if(typeof console<"u"){var _e;if(v.isObject(ue)){var Ce=ue.stack;_e=he+N(Ce,ue)}else _e=he+String(ue);typeof m=="function"?m(_e,we):typeof console.log!="function"&&typeof console.log!="object"||console.log(_e)}}function ve(ue,he,we,_e){var Ce=!1;try{typeof he=="function"&&(Ce=!0,ue==="rejectionHandled"?he(_e):he(we,_e))}catch(ke){_.throwLater(ke)}ue==="unhandledRejection"?K(ue,we,_e)||Ce||se(we,"Unhandled rejection "):K(ue,_e)}function Le(ue){var he;if(typeof ue=="function")he="[function "+(ue.name||"anonymous")+"]";else{if(he=ue&&typeof ue.toString=="function"?ue.toString():v.toString(ue),/\[object [a-zA-Z0-9$_]+\]/.test(he))try{he=JSON.stringify(ue)}catch{}he.length===0&&(he="(empty array)")}return"(<"+function(we){return we.length<41?we:we.substr(0,38)+"..."}(he)+">, no stack trace)"}function fe(){return typeof Re=="function"}var ye=function(){return!1},be=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Te(ue){var he=ue.match(be);if(he)return{fileName:he[1],line:parseInt(he[2],10)}}function De(ue){this._parent=ue,this._promisesCreated=0;var he=this._length=1+(ue===void 0?0:ue._length);Re(this,De),he>32&&this.uncycle()}v.inherits(De,Error),f.CapturedTrace=De,De.prototype.uncycle=function(){var ue=this._length;if(!(ue<2)){for(var he=[],we={},_e=0,Ce=this;Ce!==void 0;++_e)he.push(Ce),Ce=Ce._parent;for(_e=(ue=this._length=_e)-1;_e>=0;--_e){var ke=he[_e].stack;we[ke]===void 0&&(we[ke]=_e)}for(_e=0;_e<ue;++_e){var Ie=we[he[_e].stack];if(Ie!==void 0&&Ie!==_e){Ie>0&&(he[Ie-1]._parent=void 0,he[Ie-1]._length=1),he[_e]._parent=void 0,he[_e]._length=1;var nt=_e>0?he[_e-1]:this;Ie<ue-1?(nt._parent=he[Ie+1],nt._parent.uncycle(),nt._length=nt._parent._length+1):(nt._parent=void 0,nt._length=1);for(var it=nt._length+1,Ke=_e-2;Ke>=0;--Ke)he[Ke]._length=it,it++;return}}}},De.prototype.attachExtraTrace=function(ue){if(!ue.__stackCleaned__){this.uncycle();for(var he=Q(ue),we=he.message,_e=[he.stack],Ce=this;Ce!==void 0;)_e.push(ee(Ce.stack.split(`
|
||
`))),Ce=Ce._parent;(function(ke){for(var Ie=ke[0],nt=1;nt<ke.length;++nt){for(var it=ke[nt],Ke=Ie.length-1,Gt=Ie[Ke],Ut=-1,xn=it.length-1;xn>=0;--xn)if(it[xn]===Gt){Ut=xn;break}for(xn=Ut;xn>=0;--xn){var ir=it[xn];if(Ie[Ke]!==ir)break;Ie.pop(),Ke--}Ie=it}})(_e),function(ke){for(var Ie=0;Ie<ke.length;++Ie)(ke[Ie].length===0||Ie+1<ke.length&&ke[Ie][0]===ke[Ie+1][0])&&(ke.splice(Ie,1),Ie--)}(_e),v.notEnumerableProp(ue,"stack",function(ke,Ie){for(var nt=0;nt<Ie.length-1;++nt)Ie[nt].push("From previous event:"),Ie[nt]=Ie[nt].join(`
|
||
`);return nt<Ie.length&&(Ie[nt]=Ie[nt].join(`
|
||
`)),ke+`
|
||
`+Ie.join(`
|
||
`)}(we,_e)),v.notEnumerableProp(ue,"__stackCleaned__",!0)}};var Re=function(){var ue=/^\s*at\s*/,he=function(ke,Ie){return typeof ke=="string"?ke:Ie.name!==void 0&&Ie.message!==void 0?Ie.toString():Le(Ie)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,k=ue,N=he;var we=Error.captureStackTrace;return ye=function(ke){return w.test(ke)},function(ke,Ie){Error.stackTraceLimit+=6,we(ke,Ie),Error.stackTraceLimit-=6}}var _e,Ce=new Error;if(typeof Ce.stack=="string"&&Ce.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return k=/@/,N=he,A=!0,function(ke){ke.stack=new Error().stack};try{throw new Error}catch(ke){_e="stack"in ke}return"stack"in Ce||!_e||typeof Error.stackTraceLimit!="number"?(N=function(ke,Ie){return typeof ke=="string"?ke:typeof Ie!="object"&&typeof Ie!="function"||Ie.name===void 0||Ie.message===void 0?Le(Ie):Ie.toString()},null):(k=ue,N=he,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Ie){ke.stack=Ie.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ue){console.warn(ue)},v.isNode&&r.stderr.isTTY?m=function(ue,he){var we=he?"\x1B[33m":"\x1B[31m";console.warn(we+ue+`\x1B[0m
|
||
`)}:v.isNode||typeof new Error().stack!="string"||(m=function(ue,he){console.warn("%c"+ue,he?"color: darkorange":"color: red")}));var Ne={warnings:I,longStackTraces:!1,cancellation:!1,monitoring:!1};return Y&&c.longStackTraces(),{longStackTraces:function(){return Ne.longStackTraces},warnings:function(){return Ne.warnings},cancellation:function(){return Ne.cancellation},monitoring:function(){return Ne.monitoring},propagateFromFunction:function(){return le},boundValueFunction:function(){return me},checkForgottenReturns:function(ue,he,we,_e,Ce){if(ue===void 0&&he!==null&&q){if(Ce!==void 0&&Ce._returnedNonUndefined()||!(65535&_e._bitField))return;we&&(we+=" ");var ke="",Ie="";if(he._trace){for(var nt=he._trace.stack.split(`
|
||
`),it=ee(nt),Ke=it.length-1;Ke>=0;--Ke){var Gt=it[Ke];if(!E.test(Gt)){var Ut=Gt.match(P);Ut&&(ke="at "+Ut[1]+":"+Ut[2]+":"+Ut[3]+" ");break}}if(it.length>0){var xn=it[0];for(Ke=0;Ke<nt.length;++Ke)if(nt[Ke]===xn){Ke>0&&(Ie=`
|
||
`+nt[Ke-1]);break}}}var ir="a promise was created in a "+we+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Ie;_e._warn(ir,!0,he)}},setBounds:function(ue,he){if(fe()){for(var we,_e,Ce=ue.stack.split(`
|
||
`),ke=he.stack.split(`
|
||
`),Ie=-1,nt=-1,it=0;it<Ce.length;++it)if(Ke=Te(Ce[it])){we=Ke.fileName,Ie=Ke.line;break}for(it=0;it<ke.length;++it){var Ke;if(Ke=Te(ke[it])){_e=Ke.fileName,nt=Ke.line;break}}Ie<0||nt<0||!we||!_e||we!==_e||Ie>=nt||(ye=function(Gt){if(w.test(Gt))return!0;var Ut=Te(Gt);return!!(Ut&&Ut.fileName===we&&Ie<=Ut.line&&Ut.line<=nt)})}},warn:F,deprecated:function(ue,he){var we=ue+" is deprecated and will be removed in a future version.";return he&&(we+=" Use "+he+" instead."),F(we)},CapturedTrace:De,fireDomEvent:Z,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(s,a,l){a.exports=function(c){function f(){return this.value}function h(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(g){return h(this,g,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(g){return h(this,g,f,f)},c.each=function(g,_){return h(g,_,f,0)._then(m,void 0,void 0,g,void 0)},c.mapSeries=function(g,_){return h(g,_,f,f)}}},{}],12:[function(s,a,l){var c,f,h=s("./es5"),p=h.freeze,m=s("./util"),g=m.inherits,_=m.notEnumerableProp;function x(I,Y){function q(X){if(!(this instanceof q))return new q(X);_(this,"message",typeof X=="string"?X:Y),_(this,"name",I),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(q,Error),q}var v=x("Warning","warning"),b=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),E=x("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=x("TypeError","type error"),f=x("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k<P.length;++k)typeof Array.prototype[P[k]]=="function"&&(E.prototype[P[k]]=Array.prototype[P[k]]);h.defineProperty(E.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),E.prototype.isOperational=!0;var N=0;function A(I){if(!(this instanceof A))return new A(I);_(this,"name","OperationalError"),_(this,"message",I),this.cause=I,this.isOperational=!0,I instanceof Error?(_(this,"message",I.message),_(this,"stack",I.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}E.prototype.toString=function(){var I=Array(4*N+1).join(" "),Y=`
|
||
`+I+`AggregateError of:
|
||
`;N++,I=Array(4*N+1).join(" ");for(var q=0;q<this.length;++q){for(var X=this[q]===this?"[Circular AggregateError]":this[q]+"",Z=X.split(`
|
||
`),J=0;J<Z.length;++J)Z[J]=I+Z[J];Y+=(X=Z.join(`
|
||
`))+`
|
||
`}return N--,Y},g(A,Error);var V=Error.__BluebirdErrorTypes__;V||(V=p({CancellationError:b,TimeoutError:w,OperationalError:A,RejectionError:A,AggregateError:E}),h.defineProperty(Error,"__BluebirdErrorTypes__",{value:V,writable:!1,enumerable:!1,configurable:!1})),a.exports={Error,TypeError:c,RangeError:f,CancellationError:V.CancellationError,OperationalError:V.OperationalError,TimeoutError:V.TimeoutError,AggregateError:V.AggregateError,Warning:v}},{"./es5":13,"./util":36}],13:[function(s,a,l){var c=function(){return this===void 0}();if(c)a.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(g,_){var x=Object.getOwnPropertyDescriptor(g,_);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,h={}.toString,p={}.constructor.prototype,m=function(g){var _=[];for(var x in g)f.call(g,x)&&_.push(x);return _};a.exports={isArray:function(g){try{return h.call(g)==="[object Array]"}catch{return!1}},keys:m,names:m,defineProperty:function(g,_,x){return g[_]=x.value,g},getDescriptor:function(g,_){return{value:g[_]}},freeze:function(g){return g},getPrototypeOf:function(g){try{return Object(g).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,a,l){a.exports=function(c,f){var h=c.map;c.prototype.filter=function(p,m){return h(this,p,m,f)},c.filter=function(p,m,g){return h(p,m,g,f)}}},{}],15:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.CancellationError,g=p.errorObj,_=s("./catch_filter")(h);function x(k,N,A){this.promise=k,this.type=N,this.handler=A,this.called=!1,this.cancelPromise=null}function v(k){this.finallyHandler=k}function b(k,N){return k.cancelPromise!=null&&(arguments.length>1?k.cancelPromise._reject(N):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function w(){return P.call(this,this.promise._target()._settledValue())}function E(k){if(!b(this,k))return g.e=k,g}function P(k){var N=this.promise,A=this.handler;if(!this.called){this.called=!0;var V=this.isFinallyHandler()?A.call(N._boundValue()):A.call(N._boundValue(),k);if(V===h)return V;if(V!==void 0){N._setReturnedNonUndefined();var I=f(V,N);if(I instanceof c){if(this.cancelPromise!=null){if(I._isCancelled()){var Y=new m("late cancellation observer");return N._attachExtraTrace(Y),g.e=Y,g}I.isPending()&&I._attachCancellationCallback(new v(this))}return I._then(w,E,void 0,this,void 0)}}}return N.isRejected()?(b(this),g.e=k,g):(b(this),k)}return x.prototype.isFinallyHandler=function(){return this.type===0},v.prototype._resultCancelled=function(){b(this.finallyHandler)},c.prototype._passThrough=function(k,N,A,V){return typeof k!="function"?this.then():this._then(A,V,void 0,new x(this,N,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,P,P)},c.prototype.tap=function(k){return this._passThrough(k,1,P)},c.prototype.tapCatch=function(k){var N=arguments.length;if(N===1)return this._passThrough(k,1,void 0,P);var A,V=new Array(N-1),I=0;for(A=0;A<N-1;++A){var Y=arguments[A];if(!p.isObject(Y))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(Y)));V[I++]=Y}V.length=I;var q=arguments[A];return this._passThrough(_(V,q,this),1,void 0,P)},x}},{"./catch_filter":7,"./util":36}],16:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var _=s("./errors").TypeError,x=s("./util"),v=x.errorObj,b=x.tryCatch,w=[];function E(P,k,N,A){if(g.cancellation()){var V=new c(h),I=this._finallyPromise=new c(h);this._promise=V.lastly(function(){return I}),V._captureStackTrace(),V._setOnCancel(this)}else(this._promise=new c(h))._captureStackTrace();this._stack=A,this._generatorFunction=P,this._receiver=k,this._generator=void 0,this._yieldHandlers=typeof N=="function"?[N].concat(w):w,this._yieldedPromise=null,this._cancellationPhase=!1}x.inherits(E,m),E.prototype._isResolved=function(){return this._promise===null},E.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},E.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=b(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var k=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=k,this._promise._attachExtraTrace(k),this._promise._pushContext(),P=b(this._generator.throw).call(this._generator,k),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},E.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var k=b(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(k)},E.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var k=b(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(k)},E.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var P=this._yieldedPromise;this._yieldedPromise=null,P.cancel()}},E.prototype.promise=function(){return this._promise},E.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},E.prototype._continue=function(P){var k=this._promise;if(P===v)return this._cleanup(),this._cancellationPhase?k.cancel():k._rejectCallback(P.e,!1);var N=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?k.cancel():k._resolveCallback(N);var A=p(N,this._promise);if(A instanceof c||(A=function(I,Y,q){for(var X=0;X<Y.length;++X){q._pushContext();var Z=b(Y[X])(I);if(q._popContext(),Z===v){q._pushContext();var J=c.reject(v.e);return q._popContext(),J}var oe=p(Z,q);if(oe instanceof c)return oe}return null}(A,this._yieldHandlers,this._promise))!==null){var V=(A=A._target())._bitField;50397184&V?33554432&V?c._async.invoke(this._promiseFulfilled,this,A._value()):16777216&V?c._async.invoke(this._promiseRejected,this,A._reason()):this._promiseCancelled():(this._yieldedPromise=A,A._proxy(this,null))}else this._promiseRejected(new _(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(N))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(P,k){if(typeof P!="function")throw new _(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var N=Object(k).yieldHandler,A=E,V=new Error().stack;return function(){var I=P.apply(this,arguments),Y=new A(void 0,void 0,N,V),q=Y.promise();return Y._generator=I,Y._promiseFulfilled(void 0),q}},c.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new _("expecting a function but got "+x.classString(P));w.push(P)},c.spawn=function(P){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var k=new E(P,this),N=k.promise();return k._run(c.spawn),N}}},{"./errors":12,"./util":36}],17:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var _=s("./util");_.canEvaluate,_.tryCatch,_.errorObj,c.join=function(){var x,v=arguments.length-1;v>0&&typeof arguments[v]=="function"&&(x=arguments[v]);var b=[].slice.call(arguments);x&&b.pop();var w=new f(b).promise();return x!==void 0?w.spread(x):w}}},{"./util":36}],18:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var _=c._getDomain,x=s("./util"),v=x.tryCatch,b=x.errorObj,w=c._async;function E(k,N,A,V){this.constructor$(k),this._promise._captureStackTrace();var I=_();this._callback=I===null?N:x.domainBind(I,N),this._preservedValues=V===m?new Array(this.length()):null,this._limit=A,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function P(k,N,A,V){if(typeof N!="function")return h("expecting a function but got "+x.classString(N));var I=0;if(A!==void 0){if(typeof A!="object"||A===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(A)));if(typeof A.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(A.concurrency)));I=A.concurrency}return new E(k,N,I=typeof I=="number"&&isFinite(I)&&I>=1?I:0,V).promise()}x.inherits(E,f),E.prototype._asyncInit=function(){this._init$(void 0,-2)},E.prototype._init=function(){},E.prototype._promiseFulfilled=function(k,N){var A=this._values,V=this.length(),I=this._preservedValues,Y=this._limit;if(N<0){if(A[N=-1*N-1]=k,Y>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(Y>=1&&this._inFlight>=Y)return A[N]=k,this._queue.push(N),!1;I!==null&&(I[N]=k);var q=this._promise,X=this._callback,Z=q._boundValue();q._pushContext();var J=v(X).call(Z,k,N,V),oe=q._popContext();if(g.checkForgottenReturns(J,oe,I!==null?"Promise.filter":"Promise.map",q),J===b)return this._reject(J.e),!0;var ce=p(J,this._promise);if(ce instanceof c){var K=(ce=ce._target())._bitField;if(!(50397184&K))return Y>=1&&this._inFlight++,A[N]=ce,ce._proxy(this,-1*(N+1)),!1;if(!(33554432&K))return 16777216&K?(this._reject(ce._reason()),!0):(this._cancel(),!0);J=ce._value()}A[N]=J}return++this._totalResolved>=V&&(I!==null?this._filter(A,I):this._resolve(A),!0)},E.prototype._drainQueue=function(){for(var k=this._queue,N=this._limit,A=this._values;k.length>0&&this._inFlight<N;){if(this._isResolved())return;var V=k.pop();this._promiseFulfilled(A[V],V)}},E.prototype._filter=function(k,N){for(var A=N.length,V=new Array(A),I=0,Y=0;Y<A;++Y)k[Y]&&(V[I++]=N[Y]);V.length=I,this._resolve(V)},E.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(k,N){return P(this,k,N,null)},c.map=function(k,N,A,V){return P(k,N,A,V)}}},{"./util":36}],19:[function(s,a,l){a.exports=function(c,f,h,p,m){var g=s("./util"),_=g.tryCatch;c.method=function(x){if(typeof x!="function")throw new c.TypeError("expecting a function but got "+g.classString(x));return function(){var v=new c(f);v._captureStackTrace(),v._pushContext();var b=_(x).apply(this,arguments),w=v._popContext();return m.checkForgottenReturns(b,w,"Promise.method",v),v._resolveFromSyncValue(b),v}},c.attempt=c.try=function(x){if(typeof x!="function")return p("expecting a function but got "+g.classString(x));var v,b=new c(f);if(b._captureStackTrace(),b._pushContext(),arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],E=arguments[2];v=g.isArray(w)?_(x).apply(E,w):_(x).call(E,w)}else v=_(x)();var P=b._popContext();return m.checkForgottenReturns(v,P,"Promise.try",b),b._resolveFromSyncValue(v),b},c.prototype._resolveFromSyncValue=function(x){x===g.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(s,a,l){var c=s("./util"),f=c.maybeWrapAsError,h=s("./errors").OperationalError,p=s("./es5"),m=/^(?:name|message|stack|cause)$/;function g(_){var x;if(function(E){return E instanceof Error&&p.getPrototypeOf(E)===Error.prototype}(_)){(x=new h(_)).name=_.name,x.message=_.message,x.stack=_.stack;for(var v=p.keys(_),b=0;b<v.length;++b){var w=v[b];m.test(w)||(x[w]=_[w])}return x}return c.markAsOriginatingFromRejection(_),_}a.exports=function(_,x){return function(v,b){if(_!==null){if(v){var w=g(f(v));_._attachExtraTrace(w),_._reject(w)}else if(x){var E=[].slice.call(arguments,1);_._fulfill(E)}else _._fulfill(b);_=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=c._async,p=f.tryCatch,m=f.errorObj;function g(v,b){if(!f.isArray(v))return _.call(this,v,b);var w=p(b).apply(this._boundValue(),[null].concat(v));w===m&&h.throwLater(w.e)}function _(v,b){var w=this._boundValue(),E=v===void 0?p(b).call(w,null):p(b).call(w,null,v);E===m&&h.throwLater(E.e)}function x(v,b){if(!v){var w=new Error(v+"");w.cause=v,v=w}var E=p(b).call(this._boundValue(),v);E===m&&h.throwLater(E.e)}c.prototype.asCallback=c.prototype.nodeify=function(v,b){if(typeof v=="function"){var w=_;b!==void 0&&Object(b).spread&&(w=g),this._then(w,x,void 0,this,v)}return this}}},{"./util":36}],22:[function(s,a,l){a.exports=function(){var c=function(){return new E(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new $.PromiseInspection(this._target())},h=function(W){return $.reject(new E(W))};function p(){}var m,g={},_=s("./util");m=_.isNode?function(){var W=r.domain;return W===void 0&&(W=null),W}:function(){return null},_.notEnumerableProp($,"_getDomain",m);var x=s("./es5"),v=s("./async"),b=new v;x.defineProperty($,"_async",{value:b});var w=s("./errors"),E=$.TypeError=w.TypeError;$.RangeError=w.RangeError;var P=$.CancellationError=w.CancellationError;$.TimeoutError=w.TimeoutError,$.OperationalError=w.OperationalError,$.RejectionError=w.OperationalError,$.AggregateError=w.AggregateError;var k=function(){},N={},A={},V=s("./thenables")($,k),I=s("./promise_array")($,k,V,h,p),Y=s("./context")($),q=Y.create,X=s("./debuggability")($,Y),Z=(X.CapturedTrace,s("./finally")($,V,A)),J=s("./catch_filter")(A),oe=s("./nodeback"),ce=_.errorObj,K=_.tryCatch;function $(W){W!==k&&function(G,re){if(G==null||G.constructor!==$)throw new E(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof re!="function")throw new E("expecting a function but got "+_.classString(re))}(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 D(W){this.promise._resolveCallback(W)}function B(W){this.promise._rejectCallback(W,!1)}function ne(W){var G=new $(k);G._fulfillmentHandler0=W,G._rejectionHandler0=W,G._promise0=W,G._receiver0=W}return $.prototype.toString=function(){return"[object Promise]"},$.prototype.caught=$.prototype.catch=function(W){var G=arguments.length;if(G>1){var re,le=new Array(G-1),me=0;for(re=0;re<G-1;++re){var O=arguments[re];if(!_.isObject(O))return h("Catch statement predicate: expecting an object but got "+_.classString(O));le[me++]=O}return le.length=me,W=arguments[re],this.then(void 0,J(le,W,this))}return this.then(void 0,W)},$.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},$.prototype.then=function(W,G){if(X.warnings()&&arguments.length>0&&typeof W!="function"&&typeof G!="function"){var re=".then() only accepts functions but was passed: "+_.classString(W);arguments.length>1&&(re+=", "+_.classString(G)),this._warn(re)}return this._then(W,G,void 0,void 0,void 0)},$.prototype.done=function(W,G){this._then(W,G,void 0,void 0,void 0)._setIsFinal()},$.prototype.spread=function(W){return typeof W!="function"?h("expecting a function but got "+_.classString(W)):this.all()._then(W,void 0,void 0,N,void 0)},$.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},$.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new I(this).promise()},$.prototype.error=function(W){return this.caught(_.originatesFromRejection,W)},$.getNewLibraryCopy=a.exports,$.is=function(W){return W instanceof $},$.fromNode=$.fromCallback=function(W){var G=new $(k);G._captureStackTrace();var re=arguments.length>1&&!!Object(arguments[1]).multiArgs,le=K(W)(oe(G,re));return le===ce&&G._rejectCallback(le.e,!0),G._isFateSealed()||G._setAsyncGuaranteed(),G},$.all=function(W){return new I(W).promise()},$.cast=function(W){var G=V(W);return G instanceof $||((G=new $(k))._captureStackTrace(),G._setFulfilled(),G._rejectionHandler0=W),G},$.resolve=$.fulfilled=$.cast,$.reject=$.rejected=function(W){var G=new $(k);return G._captureStackTrace(),G._rejectCallback(W,!0),G},$.setScheduler=function(W){if(typeof W!="function")throw new E("expecting a function but got "+_.classString(W));return b.setScheduler(W)},$.prototype._then=function(W,G,re,le,me){var O=me!==void 0,R=O?me:new $(k),F=this._target(),ee=F._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),le===void 0&&2097152&this._bitField&&(le=50397184&ee?this._boundValue():F===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var Q=m();if(50397184&ee){var se,ve,Le=F._settlePromiseCtx;33554432&ee?(ve=F._rejectionHandler0,se=W):16777216&ee?(ve=F._fulfillmentHandler0,se=G,F._unsetRejectionIsUnhandled()):(Le=F._settlePromiseLateCancellationObserver,ve=new P("late cancellation observer"),F._attachExtraTrace(ve),se=G),b.invoke(Le,F,{handler:Q===null?se:typeof se=="function"&&_.domainBind(Q,se),promise:R,receiver:le,value:ve})}else F._addCallbacks(W,G,R,le,Q);return R},$.prototype._length=function(){return 65535&this._bitField},$.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},$.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},$.prototype._setLength=function(W){this._bitField=-65536&this._bitField|65535&W},$.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},$.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},$.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},$.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},$.prototype._isFinal=function(){return(4194304&this._bitField)>0},$.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},$.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},$.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},$.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},$.prototype._receiverAt=function(W){var G=W===0?this._receiver0:this[4*W-4+3];if(G!==g)return G===void 0&&this._isBound()?this._boundValue():G},$.prototype._promiseAt=function(W){return this[4*W-4+2]},$.prototype._fulfillmentHandlerAt=function(W){return this[4*W-4+0]},$.prototype._rejectionHandlerAt=function(W){return this[4*W-4+1]},$.prototype._boundValue=function(){},$.prototype._migrateCallback0=function(W){W._bitField;var G=W._fulfillmentHandler0,re=W._rejectionHandler0,le=W._promise0,me=W._receiverAt(0);me===void 0&&(me=g),this._addCallbacks(G,re,le,me,null)},$.prototype._migrateCallbackAt=function(W,G){var re=W._fulfillmentHandlerAt(G),le=W._rejectionHandlerAt(G),me=W._promiseAt(G),O=W._receiverAt(G);O===void 0&&(O=g),this._addCallbacks(re,le,me,O,null)},$.prototype._addCallbacks=function(W,G,re,le,me){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=re,this._receiver0=le,typeof W=="function"&&(this._fulfillmentHandler0=me===null?W:_.domainBind(me,W)),typeof G=="function"&&(this._rejectionHandler0=me===null?G:_.domainBind(me,G));else{var R=4*O-4;this[R+2]=re,this[R+3]=le,typeof W=="function"&&(this[R+0]=me===null?W:_.domainBind(me,W)),typeof G=="function"&&(this[R+1]=me===null?G:_.domainBind(me,G))}return this._setLength(O+1),O},$.prototype._proxy=function(W,G){this._addCallbacks(void 0,void 0,G,W,null)},$.prototype._resolveCallback=function(W,G){if(!(117506048&this._bitField)){if(W===this)return this._rejectCallback(c(),!1);var re=V(W,this);if(!(re instanceof $))return this._fulfill(W);G&&this._propagateFrom(re,2);var le=re._target();if(le!==this){var me=le._bitField;if(50397184&me)if(33554432&me)this._fulfill(le._value());else if(16777216&me)this._reject(le._reason());else{var F=new P("late cancellation observer");le._attachExtraTrace(F),this._reject(F)}else{var O=this._length();O>0&&le._migrateCallback0(this);for(var R=1;R<O;++R)le._migrateCallbackAt(this,R);this._setFollowing(),this._setLength(0),this._setFollowee(le)}}else this._reject(c())}},$.prototype._rejectCallback=function(W,G,re){var le=_.ensureErrorObject(W),me=le===W;if(!me&&!re&&X.warnings()){var O="a promise was rejected with a non-error: "+_.classString(W);this._warn(O,!0)}this._attachExtraTrace(le,!!G&&me),this._reject(W)},$.prototype._resolveFromExecutor=function(W){if(W!==k){var G=this;this._captureStackTrace(),this._pushContext();var re=!0,le=this._execute(W,function(me){G._resolveCallback(me)},function(me){G._rejectCallback(me,re)});re=!1,this._popContext(),le!==void 0&&G._rejectCallback(le,!0)}},$.prototype._settlePromiseFromHandler=function(W,G,re,le){var me=le._bitField;if(!(65536&me)){var O;le._pushContext(),G===N?re&&typeof re.length=="number"?O=K(W).apply(this._boundValue(),re):(O=ce).e=new E("cannot .spread() a non-array: "+_.classString(re)):O=K(W).call(G,re);var R=le._popContext();!(65536&(me=le._bitField))&&(O===A?le._reject(re):O===ce?le._rejectCallback(O.e,!1):(X.checkForgottenReturns(O,R,"",le,this),le._resolveCallback(O)))}},$.prototype._target=function(){for(var W=this;W._isFollowing();)W=W._followee();return W},$.prototype._followee=function(){return this._rejectionHandler0},$.prototype._setFollowee=function(W){this._rejectionHandler0=W},$.prototype._settlePromise=function(W,G,re,le){var me=W instanceof $,O=this._bitField,R=(134217728&O)!=0;65536&O?(me&&W._invokeInternalOnCancel(),re instanceof Z&&re.isFinallyHandler()?(re.cancelPromise=W,K(G).call(re,le)===ce&&W._reject(ce.e)):G===f?W._fulfill(f.call(re)):re instanceof p?re._promiseCancelled(W):me||W instanceof I?W._cancel():re.cancel()):typeof G=="function"?me?(R&&W._setAsyncGuaranteed(),this._settlePromiseFromHandler(G,re,le,W)):G.call(re,le,W):re instanceof p?re._isResolved()||(33554432&O?re._promiseFulfilled(le,W):re._promiseRejected(le,W)):me&&(R&&W._setAsyncGuaranteed(),33554432&O?W._fulfill(le):W._reject(le))},$.prototype._settlePromiseLateCancellationObserver=function(W){var G=W.handler,re=W.promise,le=W.receiver,me=W.value;typeof G=="function"?re instanceof $?this._settlePromiseFromHandler(G,le,me,re):G.call(le,me,re):re instanceof $&&re._reject(me)},$.prototype._settlePromiseCtx=function(W){this._settlePromise(W.promise,W.handler,W.receiver,W.value)},$.prototype._settlePromise0=function(W,G,re){var le=this._promise0,me=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(le,W,me,G)},$.prototype._clearCallbackDataAtIndex=function(W){var G=4*W-4;this[G+2]=this[G+3]=this[G+0]=this[G+1]=void 0},$.prototype._fulfill=function(W){var G=this._bitField;if(!((117506048&G)>>>16)){if(W===this){var re=c();return this._attachExtraTrace(re),this._reject(re)}this._setFulfilled(),this._rejectionHandler0=W,(65535&G)>0&&(134217728&G?this._settlePromises():b.settlePromises(this))}},$.prototype._reject=function(W){var G=this._bitField;if(!((117506048&G)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=W,this._isFinal())return b.fatalError(W,_.isNode);(65535&G)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},$.prototype._fulfillPromises=function(W,G){for(var re=1;re<W;re++){var le=this._fulfillmentHandlerAt(re),me=this._promiseAt(re),O=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(me,le,O,G)}},$.prototype._rejectPromises=function(W,G){for(var re=1;re<W;re++){var le=this._rejectionHandlerAt(re),me=this._promiseAt(re),O=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(me,le,O,G)}},$.prototype._settlePromises=function(){var W=this._bitField,G=65535&W;if(G>0){if(16842752&W){var re=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,re,W),this._rejectPromises(G,re)}else{var le=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,le,W),this._fulfillPromises(G,le)}this._setLength(0)}this._clearCancellationData()},$.prototype._settledValue=function(){var W=this._bitField;return 33554432&W?this._rejectionHandler0:16777216&W?this._fulfillmentHandler0:void 0},$.defer=$.pending=function(){return X.deprecated("Promise.defer","new Promise"),{promise:new $(k),resolve:D,reject:B}},_.notEnumerableProp($,"_makeSelfResolutionError",c),s("./method")($,k,V,h,X),s("./bind")($,k,V,X),s("./cancel")($,I,h,X),s("./direct_resolve")($),s("./synchronous_inspection")($),s("./join")($,I,V,k,b,m),$.Promise=$,$.version="3.5.1",s("./map.js")($,I,h,V,k,X),s("./call_get.js")($),s("./using.js")($,h,V,q,k,X),s("./timers.js")($,k,X),s("./generators.js")($,h,k,V,p,X),s("./nodeify.js")($),s("./promisify.js")($,k),s("./props.js")($,I,V,h),s("./race.js")($,k,V,h),s("./reduce.js")($,I,h,V,k,X),s("./settle.js")($,I,X),s("./some.js")($,I,h),s("./filter.js")($,k),s("./each.js")($,k),s("./any.js")($),_.toFastProperties($),_.toFastProperties($.prototype),ne({a:1}),ne({b:2}),ne({c:3}),ne(1),ne(function(){}),ne(void 0),ne(!1),ne(new $(k)),X.setBounds(v.firstLineError,_.lastLineError),$}},{"./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,a,l){a.exports=function(c,f,h,p,m){var g=s("./util");function _(x){var v=this._promise=new c(f);x instanceof c&&v._propagateFrom(x,3),v._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(_,m),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function x(v,b){var w=h(this._values,this._promise);if(w instanceof c){var E=(w=w._target())._bitField;if(this._values=w,(50397184&E)==0)return this._promise._setAsyncGuaranteed(),w._then(x,this._reject,void 0,this,b);if(!(33554432&E))return 16777216&E?this._reject(w._reason()):this._cancel();w=w._value()}if((w=g.asArray(w))!==null)w.length!==0?this._iterate(w):b===-5?this._resolveEmptyArray():this._resolve(function(k){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+g.classString(w)).reason();this._promise._rejectCallback(P,!1)}},_.prototype._iterate=function(x){var v=this.getActualLength(x.length);this._length=v,this._values=this.shouldCopyValues()?new Array(v):this._values;for(var b=this._promise,w=!1,E=null,P=0;P<v;++P){var k=h(x[P],b);E=k instanceof c?(k=k._target())._bitField:null,w?E!==null&&k.suppressUnhandledRejections():E!==null?50397184&E?w=33554432&E?this._promiseFulfilled(k._value(),P):16777216&E?this._promiseRejected(k._reason(),P):this._promiseCancelled(P):(k._proxy(this,P),this._values[P]=k):w=this._promiseFulfilled(k,P)}w||b._setAsyncGuaranteed()},_.prototype._isResolved=function(){return this._values===null},_.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},_.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},_.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},_.prototype._promiseFulfilled=function(x,v){return this._values[v]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var v=0;v<x.length;++v)x[v]instanceof c&&x[v].cancel()}},_.prototype.shouldCopyValues=function(){return!0},_.prototype.getActualLength=function(x){return x},_}},{"./util":36}],24:[function(s,a,l){a.exports=function(c,f){var h={},p=s("./util"),m=s("./nodeback"),g=p.withAppended,_=p.maybeWrapAsError,x=p.canEvaluate,v=s("./errors").TypeError,b={__isPromisified__:!0},w=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),E=function(q){return p.isIdentifier(q)&&q.charAt(0)!=="_"&&q!=="constructor"};function P(q){return!w.test(q)}function k(q){try{return q.__isPromisified__===!0}catch{return!1}}function N(q,X,Z){var J=p.getDataPropertyOrDefault(q,X+Z,b);return!!J&&k(J)}function A(q,X,Z,J){for(var oe=p.inheritedDataKeys(q),ce=[],K=0;K<oe.length;++K){var $=oe[K],D=q[$],B=J===E||E($);typeof D!="function"||k(D)||N(q,$,X)||!J($,D,q,B)||ce.push($,D)}return function(ne,W,G){for(var re=0;re<ne.length;re+=2){var le=ne[re];if(G.test(le)){for(var me=le.replace(G,""),O=0;O<ne.length;O+=2)if(ne[O]===me)throw new v(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",W))}}}(ce,X,Z),ce}var V=function(q){return q.replace(/([$])/,"\\$")},I=x?void 0:function(q,X,Z,J,oe,ce){var K=function(){return this}(),$=q;function D(){var B=X;X===h&&(B=this);var ne=new c(f);ne._captureStackTrace();var W=typeof $=="string"&&this!==K?this[$]:q,G=m(ne,ce);try{W.apply(B,g(arguments,G))}catch(re){ne._rejectCallback(_(re),!0,!0)}return ne._isFateSealed()||ne._setAsyncGuaranteed(),ne}return typeof $=="string"&&(q=J),p.notEnumerableProp(D,"__isPromisified__",!0),D};function Y(q,X,Z,J,oe){for(var ce=new RegExp(V(X)+"$"),K=A(q,X,ce,Z),$=0,D=K.length;$<D;$+=2){var B=K[$],ne=K[$+1],W=B+X;if(J===I)q[W]=I(B,h,B,ne,X,oe);else{var G=J(ne,function(){return I(B,h,B,ne,X,oe)});p.notEnumerableProp(G,"__isPromisified__",!0),q[W]=G}}return p.toFastProperties(q),q}c.promisify=function(q,X){if(typeof q!="function")throw new v("expecting a function but got "+p.classString(q));if(k(q))return q;var Z=(X=Object(X)).context===void 0?h:X.context,J=!!X.multiArgs,oe=function(ce,K,$){return I(ce,K,void 0,ce,null,J)}(q,Z);return p.copyDescriptors(q,oe,P),oe},c.promisifyAll=function(q,X){if(typeof q!="function"&&typeof q!="object")throw new v(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Z=!!(X=Object(X)).multiArgs,J=X.suffix;typeof J!="string"&&(J="Async");var oe=X.filter;typeof oe!="function"&&(oe=E);var ce=X.promisifier;if(typeof ce!="function"&&(ce=I),!p.isIdentifier(J))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var K=p.inheritedDataKeys(q),$=0;$<K.length;++$){var D=q[K[$]];K[$]!=="constructor"&&p.isClass(D)&&(Y(D.prototype,J,oe,ce,Z),Y(D,J,oe,ce,Z))}return Y(q,J,oe,ce,Z)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,a,l){a.exports=function(c,f,h,p){var m,g=s("./util"),_=g.isObject,x=s("./es5");typeof Map=="function"&&(m=Map);var v=function(){var E=0,P=0;function k(N,A){this[E]=N,this[E+P]=A,E++}return function(N){P=N.size,E=0;var A=new Array(2*N.size);return N.forEach(k,A),A}}();function b(E){var P,k=!1;if(m!==void 0&&E instanceof m)P=v(E),k=!0;else{var N=x.keys(E),A=N.length;P=new Array(2*A);for(var V=0;V<A;++V){var I=N[V];P[V]=E[I],P[V+A]=I}}this.constructor$(P),this._isMap=k,this._init$(void 0,k?-6:-3)}function w(E){var P,k=h(E);return _(k)?(P=k instanceof c?k._then(c.props,void 0,void 0,void 0,void 0):new b(k).promise(),k instanceof c&&P._propagateFrom(k,2),P):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}g.inherits(b,f),b.prototype._init=function(){},b.prototype._promiseFulfilled=function(E,P){if(this._values[P]=E,++this._totalResolved>=this._length){var k;if(this._isMap)k=function(I){for(var Y=new m,q=I.length/2|0,X=0;X<q;++X){var Z=I[q+X],J=I[X];Y.set(Z,J)}return Y}(this._values);else{k={};for(var N=this.length(),A=0,V=this.length();A<V;++A)k[this._values[A+N]]=this._values[A]}return this._resolve(k),!0}return!1},b.prototype.shouldCopyValues=function(){return!1},b.prototype.getActualLength=function(E){return E>>1},c.prototype.props=function(){return w(this)},c.props=function(E){return w(E)}}},{"./es5":13,"./util":36}],26:[function(s,a,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity<f},c.prototype._pushOne=function(f){var h=this.length();this._checkCapacity(h+1),this[this._front+h&this._capacity-1]=f,this._length=h+1},c.prototype.push=function(f,h,p){var m=this.length()+3;if(this._willBeOverCapacity(m))return this._pushOne(f),this._pushOne(h),void this._pushOne(p);var g=this._front+m-3;this._checkCapacity(m);var _=this._capacity-1;this[g+0&_]=f,this[g+1&_]=h,this[g+2&_]=p,this._length=m},c.prototype.shift=function(){var f=this._front,h=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,h},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(f){var h=this._capacity;this._capacity=f,function(p,m,g,_,x){for(var v=0;v<x;++v)g[v+_]=p[v+0],p[v+0]=void 0}(this,0,this,h,this._front+this._length&h-1)},a.exports=c},{}],27:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),g=function(x){return x.then(function(v){return _(v,x)})};function _(x,v){var b=h(x);if(b instanceof c)return g(b);if((x=m.asArray(x))===null)return p("expecting an array or an iterable object but got "+m.classString(x));var w=new c(f);v!==void 0&&w._propagateFrom(v,3);for(var E=w._fulfill,P=w._reject,k=0,N=x.length;k<N;++k){var A=x[k];(A!==void 0||k in x)&&c.cast(A)._then(E,P,void 0,w,null)}return w}c.race=function(x){return _(x,void 0)},c.prototype.race=function(){return _(this,void 0)}}},{"./util":36}],28:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var _=c._getDomain,x=s("./util"),v=x.tryCatch;function b(N,A,V,I){this.constructor$(N);var Y=_();this._fn=Y===null?A:x.domainBind(Y,A),V!==void 0&&(V=c.resolve(V))._attachCancellationCallback(this),this._initialValue=V,this._currentCancellable=null,this._eachValues=I===m?Array(this._length):I===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function w(N,A){this.isFulfilled()?A._resolve(N):A._reject(N)}function E(N,A,V,I){return typeof A!="function"?h("expecting a function but got "+x.classString(A)):new b(N,A,V,I).promise()}function P(N){this.accum=N,this.array._gotAccum(N);var A=p(this.value,this.array._promise);return A instanceof c?(this.array._currentCancellable=A,A._then(k,void 0,void 0,this,void 0)):k.call(this,A)}function k(N){var A,V=this.array,I=V._promise,Y=v(V._fn);I._pushContext(),(A=V._eachValues!==void 0?Y.call(I._boundValue(),N,this.index,this.length):Y.call(I._boundValue(),this.accum,N,this.index,this.length))instanceof c&&(V._currentCancellable=A);var q=I._popContext();return g.checkForgottenReturns(A,q,V._eachValues!==void 0?"Promise.each":"Promise.reduce",I),A}x.inherits(b,f),b.prototype._gotAccum=function(N){this._eachValues!==void 0&&this._eachValues!==null&&N!==m&&this._eachValues.push(N)},b.prototype._eachComplete=function(N){return this._eachValues!==null&&this._eachValues.push(N),this._eachValues},b.prototype._init=function(){},b.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},b.prototype.shouldCopyValues=function(){return!1},b.prototype._resolve=function(N){this._promise._resolveCallback(N),this._values=null},b.prototype._resultCancelled=function(N){if(N===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},b.prototype._iterate=function(N){var A,V;this._values=N;var I=N.length;if(this._initialValue!==void 0?(A=this._initialValue,V=0):(A=c.resolve(N[0]),V=1),this._currentCancellable=A,!A.isRejected())for(;V<I;++V){var Y={accum:null,value:N[V],index:V,length:I,array:this};A=A._then(P,void 0,void 0,Y,void 0)}this._eachValues!==void 0&&(A=A._then(this._eachComplete,void 0,void 0,this,void 0)),A._then(w,w,void 0,A,this)},c.prototype.reduce=function(N,A){return E(this,N,A,null)},c.reduce=function(N,A,V,I){return E(N,A,V,I)}}},{"./util":36}],29:[function(s,a,l){var c,f=s("./util"),h=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(_){p.call(i,_)}:function(_){m.call(r,_)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var g=h.resolve();c=function(_){g.then(_)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(_){o(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var _=document.createElement("div"),x={attributes:!0},v=!1,b=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),v=!1}).observe(b,x),function(w){var E=new MutationObserver(function(){E.disconnect(),w()});E.observe(_,x),v||(v=!0,b.classList.toggle("foo"))}}();a.exports=c},{"./util":36}],30:[function(s,a,l){a.exports=function(c,f,h){var p=c.PromiseInspection;function m(g){this.constructor$(g)}s("./util").inherits(m,f),m.prototype._promiseResolved=function(g,_){return this._values[g]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(g,_){var x=new p;return x._bitField=33554432,x._settledValueField=g,this._promiseResolved(_,x)},m.prototype._promiseRejected=function(g,_){var x=new p;return x._bitField=16777216,x._settledValueField=g,this._promiseResolved(_,x)},c.settle=function(g){return h.deprecated(".settle()",".reflect()"),new m(g).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=s("./errors").RangeError,g=s("./errors").AggregateError,_=p.isArray,x={};function v(w){this.constructor$(w),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(w,E){if((0|E)!==E||E<0)return h(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new v(w),k=P.promise();return P.setHowMany(E),P.init(),k}p.inherits(v,f),v.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=_(this._values);!this._isResolved()&&w&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},v.prototype.init=function(){this._initialized=!0,this._init()},v.prototype.setUnwrap=function(){this._unwrap=!0},v.prototype.howMany=function(){return this._howMany},v.prototype.setHowMany=function(w){this._howMany=w},v.prototype._promiseFulfilled=function(w){return this._addFulfilled(w),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},v.prototype._promiseRejected=function(w){return this._addRejected(w),this._checkOutcome()},v.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},v.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new g,E=this.length();E<this._values.length;++E)this._values[E]!==x&&w.push(this._values[E]);return w.length>0?this._reject(w):this._cancel(),!0}return!1},v.prototype._fulfilled=function(){return this._totalResolved},v.prototype._rejected=function(){return this._values.length-this.length()},v.prototype._addRejected=function(w){this._values.push(w)},v.prototype._addFulfilled=function(w){this._values[this._totalResolved++]=w},v.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},v.prototype._getRangeError=function(w){var E="Input array must contain at least "+this._howMany+" items but contains only "+w+" items";return new m(E)},v.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(w,E){return b(w,E)},c.prototype.some=function(w){return b(this,w)},c._SomePromiseArray=v}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.exports=function(c){function f(v){v!==void 0?(v=v._target(),this._bitField=v._bitField,this._settledValueField=v._isFateSealed()?v._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var h=f.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()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},g=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.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 g.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return x.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var v=this._target();return v._unsetRejectionIsUnhandled(),p.call(v)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(s,a,l){a.exports=function(c,f){var h=s("./util"),p=h.errorObj,m=h.isObject,g={}.hasOwnProperty;return function(_,x){if(m(_)){if(_ instanceof c)return _;var v=function(w){try{return function(E){return E.then}(w)}catch(E){return p.e=E,p}}(_);if(v===p){x&&x._pushContext();var b=c.reject(v.e);return x&&x._popContext(),b}if(typeof v=="function")return function(w){try{return g.call(w,"_promise0")}catch{return!1}}(_)?(b=new c(f),_._then(b._fulfill,b._reject,void 0,b,null),b):function(w,E,P){var k=new c(f),N=k;P&&P._pushContext(),k._captureStackTrace(),P&&P._popContext();var A=!0,V=h.tryCatch(E).call(w,function(I){k&&(k._resolveCallback(I),k=null)},function(I){k&&(k._rejectCallback(I,A,!0),k=null)});return A=!1,k&&V===p&&(k._rejectCallback(V.e,!0,!0),k=null),N}(_,v,x)}return _}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.TimeoutError;function g(w){this.handle=w}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(w){return x(+this).thenReturn(w)},x=c.delay=function(w,E){var P,k;return E!==void 0?(P=c.resolve(E)._then(_,null,null,w,void 0),h.cancellation()&&E instanceof c&&P._setOnCancel(E)):(P=new c(f),k=setTimeout(function(){P._fulfill()},+w),h.cancellation()&&P._setOnCancel(new g(k)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function v(w){return clearTimeout(this.handle),w}function b(w){throw clearTimeout(this.handle),w}c.prototype.delay=function(w){return x(w,this)},c.prototype.timeout=function(w,E){var P,k;w=+w;var N=new g(setTimeout(function(){P.isPending()&&function(A,V,I){var Y;Y=typeof V!="string"?V instanceof Error?V:new m("operation timed out"):new m(V),p.markAsOriginatingFromRejection(Y),A._attachExtraTrace(Y),A._reject(Y),I!=null&&I.cancel()}(P,E,k)},w));return h.cancellation()?(k=this.then(),(P=k._then(v,b,void 0,N,void 0))._setOnCancel(N)):P=this._then(v,b,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var _=s("./util"),x=s("./errors").TypeError,v=s("./util").inherits,b=_.errorObj,w=_.tryCatch,E={};function P(Y){setTimeout(function(){throw Y},0)}function k(Y,q){var X=0,Z=Y.length,J=new c(m);return function oe(){if(X>=Z)return J._fulfill();var ce=function(K){var $=h(K);return $!==K&&typeof K._isDisposable=="function"&&typeof K._getDisposer=="function"&&K._isDisposable()&&$._setDisposable(K._getDisposer()),$}(Y[X++]);if(ce instanceof c&&ce._isDisposable()){try{ce=h(ce._getDisposer().tryDispose(q),Y.promise)}catch(K){return P(K)}if(ce instanceof c)return ce._then(oe,P,null,null,null)}oe()}(),J}function N(Y,q,X){this._data=Y,this._promise=q,this._context=X}function A(Y,q,X){this.constructor$(Y,q,X)}function V(Y){return N.isDisposer(Y)?(this.resources[this.index]._setDisposable(Y),Y.promise()):Y}function I(Y){this.length=Y,this.promise=null,this[Y-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():E},N.prototype.tryDispose=function(Y){var q=this.resource(),X=this._context;X!==void 0&&X._pushContext();var Z=q!==E?this.doDispose(q,Y):null;return X!==void 0&&X._popContext(),this._promise._unsetDisposable(),this._data=null,Z},N.isDisposer=function(Y){return Y!=null&&typeof Y.resource=="function"&&typeof Y.tryDispose=="function"},v(A,N),A.prototype.doDispose=function(Y,q){return this.data().call(Y,Y,q)},I.prototype._resultCancelled=function(){for(var Y=this.length,q=0;q<Y;++q){var X=this[q];X instanceof c&&X.cancel()}},c.using=function(){var Y=arguments.length;if(Y<2)return f("you must pass at least 2 arguments to Promise.using");var q,X=arguments[Y-1];if(typeof X!="function")return f("expecting a function but got "+_.classString(X));var Z=!0;Y===2&&Array.isArray(arguments[0])?(Y=(q=arguments[0]).length,Z=!1):(q=arguments,Y--);for(var J=new I(Y),oe=0;oe<Y;++oe){var ce=q[oe];if(N.isDisposer(ce)){var K=ce;(ce=ce.promise())._setDisposable(K)}else{var $=h(ce);$ instanceof c&&(ce=$._then(V,null,null,{resources:J,index:oe},void 0))}J[oe]=ce}var D=new Array(J.length);for(oe=0;oe<D.length;++oe)D[oe]=c.resolve(J[oe]).reflect();var B=c.all(D).then(function(W){for(var G=0;G<W.length;++G){var re=W[G];if(re.isRejected())return b.e=re.error(),b;if(!re.isFulfilled())return void B.cancel();W[G]=re.value()}ne._pushContext(),X=w(X);var le=Z?X.apply(void 0,W):X(W),me=ne._popContext();return g.checkForgottenReturns(le,me,"Promise.using",ne),le}),ne=B.lastly(function(){var W=new c.PromiseInspection(B);return k(J,W)});return J.promise=ne,ne._setOnCancel(J),ne},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 A(Y,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(s,a,l){var c,f=s("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function g(){try{var Z=c;return c=null,Z.apply(this,arguments)}catch(J){return p.e=J,p}}function _(Z){return Z==null||Z===!0||Z===!1||typeof Z=="string"||typeof Z=="number"}function x(Z,J,oe){if(_(Z))return Z;var ce={value:oe,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(Z,J,ce),Z}var v=function(){var Z=[Array.prototype,Object.prototype,Function.prototype],J=function(K){for(var $=0;$<Z.length;++$)if(Z[$]===K)return!0;return!1};if(f.isES5){var oe=Object.getOwnPropertyNames;return function(K){for(var $=[],D=Object.create(null);K!=null&&!J(K);){var B;try{B=oe(K)}catch{return $}for(var ne=0;ne<B.length;++ne){var W=B[ne];if(!D[W]){D[W]=!0;var G=Object.getOwnPropertyDescriptor(K,W);G!=null&&G.get==null&&G.set==null&&$.push(W)}}K=f.getPrototypeOf(K)}return $}}var ce={}.hasOwnProperty;return function(K){if(J(K))return[];var $=[];e:for(var D in K)if(ce.call(K,D))$.push(D);else{for(var B=0;B<Z.length;++B)if(ce.call(Z[B],D))continue e;$.push(D)}return $}}(),b=/this\s*\.\s*\S+\s*=/,w=/^[a-z$_][a-z$_0-9]*$/i;function E(Z){try{return Z+""}catch{return"[no string representation]"}}function P(Z){return Z instanceof Error||Z!==null&&typeof Z=="object"&&typeof Z.message=="string"&&typeof Z.name=="string"}function k(Z){return P(Z)&&f.propertyIsWritable(Z,"stack")}var N="stack"in new Error?function(Z){return k(Z)?Z:new Error(E(Z))}:function(Z){if(k(Z))return Z;try{throw new Error(E(Z))}catch(J){return J}};function A(Z){return{}.toString.call(Z)}var V=function(Z){return f.isArray(Z)?Z:null};if(typeof Symbol<"u"&&Symbol.iterator){var I=typeof Array.from=="function"?function(Z){return Array.from(Z)}:function(Z){for(var J,oe=[],ce=Z[Symbol.iterator]();!(J=ce.next()).done;)oe.push(J.value);return oe};V=function(Z){return f.isArray(Z)?Z:Z!=null&&typeof Z[Symbol.iterator]=="function"?I(Z):null}}var Y=r!==void 0&&A(r).toLowerCase()==="[object process]",q=r!==void 0&&r.env!==void 0,X={isClass:function(Z){try{if(typeof Z=="function"){var J=f.names(Z.prototype),oe=f.isES5&&J.length>1,ce=J.length>0&&!(J.length===1&&J[0]==="constructor"),K=b.test(Z+"")&&f.names(Z).length>0;if(oe||ce||K)return!0}return!1}catch{return!1}},isIdentifier:function(Z){return w.test(Z)},inheritedDataKeys:v,getDataPropertyOrDefault:function(Z,J,oe){if(!f.isES5)return{}.hasOwnProperty.call(Z,J)?Z[J]:void 0;var ce=Object.getOwnPropertyDescriptor(Z,J);return ce!=null?ce.get==null&&ce.set==null?ce.value:oe:void 0},thrower:function(Z){throw Z},isArray:f.isArray,asArray:V,notEnumerableProp:x,isPrimitive:_,isObject:function(Z){return typeof Z=="function"||typeof Z=="object"&&Z!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(Z){return c=Z,g},inherits:function(Z,J){var oe={}.hasOwnProperty;function ce(){for(var K in this.constructor=Z,this.constructor$=J,J.prototype)oe.call(J.prototype,K)&&K.charAt(K.length-1)!=="$"&&(this[K+"$"]=J.prototype[K])}return ce.prototype=J.prototype,Z.prototype=new ce,Z.prototype},withAppended:function(Z,J){var oe,ce=Z.length,K=new Array(ce+1);for(oe=0;oe<ce;++oe)K[oe]=Z[oe];return K[oe]=J,K},maybeWrapAsError:function(Z){return _(Z)?new Error(E(Z)):Z},toFastProperties:function(Z){return Z},filledRange:function(Z,J,oe){for(var ce=new Array(Z),K=0;K<Z;++K)ce[K]=J+K+oe;return ce},toString:E,canAttachTrace:k,ensureErrorObject:N,originatesFromRejection:function(Z){return Z!=null&&(Z instanceof Error.__BluebirdErrorTypes__.OperationalError||Z.isOperational===!0)},markAsOriginatingFromRejection:function(Z){try{x(Z,"isOperational",!0)}catch{}},classString:A,copyDescriptors:function(Z,J,oe){for(var ce=f.names(Z),K=0;K<ce.length;++K){var $=ce[K];if(oe($))try{f.defineProperty(J,$,f.getDescriptor(Z,$))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:Y,hasEnvVariables:q,env:function(Z){return q?r.env[Z]:void 0},global:m,getNativePromise:function(){if(typeof Promise=="function")try{var Z=new Promise(function(){});if({}.toString.call(Z)==="[object Promise]")return Promise}catch{}},domainBind:function(Z,J){return Z.bind(J)}};X.isRecentNode=X.isNode&&function(){var Z=r.versions.node.split(".").map(Number);return Z[0]===0&&Z[1]>10||Z[0]>0}(),X.isNode&&X.toFastProperties(r);try{throw new Error}catch(Z){X.lastLineError=Z}a.exports=X},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o<s;o++)if(r[o]==="\r"){if(r[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,s){var a=i(o,s);return r(a)?a:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=E;var s,a=n(37);E.ReadableState=w,n(12).EventEmitter;var l=function(D,B){return D.listeners(B).length},c=n(24),f=n(7).Buffer,h=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var m=n(41),g=void 0;g=m&&m.debuglog?m.debuglog("stream"):function(){};var _,x=n(42),v=n(25);p.inherits(E,c);var b=["error","close","destroy","pause","resume"];function w(D,B){s=s||n(1),D=D||{};var ne=B instanceof s;this.objectMode=!!D.objectMode,ne&&(this.objectMode=this.objectMode||!!D.readableObjectMode);var W=D.highWaterMark,G=D.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=W||W===0?W:ne&&(G||G===0)?G:re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,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=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(_||(_=n(26).StringDecoder),this.decoder=new _(D.encoding),this.encoding=D.encoding)}function E(D){if(s=s||n(1),!(this instanceof E))return new E(D);this._readableState=new w(D,this),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),c.call(this)}function P(D,B,ne,W,G){var re,le=D._readableState;return B===null?(le.reading=!1,function(me,O){if(!O.ended){if(O.decoder){var R=O.decoder.end();R&&R.length&&(O.buffer.push(R),O.length+=O.objectMode?1:R.length)}O.ended=!0,V(me)}}(D,le)):(G||(re=function(me,O){var R;return function(F){return f.isBuffer(F)||F instanceof h}(O)||typeof O=="string"||O===void 0||me.objectMode||(R=new TypeError("Invalid non-string/buffer chunk")),R}(le,B)),re?D.emit("error",re):le.objectMode||B&&B.length>0?(typeof B=="string"||le.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(me){return f.from(me)}(B)),W?le.endEmitted?D.emit("error",new Error("stream.unshift() after end event")):k(D,le,B,!0):le.ended?D.emit("error",new Error("stream.push() after EOF")):(le.reading=!1,le.decoder&&!ne?(B=le.decoder.write(B),le.objectMode||B.length!==0?k(D,le,B,!1):Y(D,le)):k(D,le,B,!1))):W||(le.reading=!1)),function(me){return!me.ended&&(me.needReadable||me.length<me.highWaterMark||me.length===0)}(le)}function k(D,B,ne,W){B.flowing&&B.length===0&&!B.sync?(D.emit("data",ne),D.read(0)):(B.length+=B.objectMode?1:ne.length,W?B.buffer.unshift(ne):B.buffer.push(ne),B.needReadable&&V(D)),Y(D,B)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),E.prototype.destroy=v.destroy,E.prototype._undestroy=v.undestroy,E.prototype._destroy=function(D,B){this.push(null),B(D)},E.prototype.push=function(D,B){var ne,W=this._readableState;return W.objectMode?ne=!0:typeof D=="string"&&((B=B||W.defaultEncoding)!==W.encoding&&(D=f.from(D,B),B=""),ne=!0),P(this,D,B,!1,ne)},E.prototype.unshift=function(D){return P(this,D,null,!0,!1)},E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(D){return _||(_=n(26).StringDecoder),this._readableState.decoder=new _(D),this._readableState.encoding=D,this};var N=8388608;function A(D,B){return D<=0||B.length===0&&B.ended?0:B.objectMode?1:D!=D?B.flowing&&B.length?B.buffer.head.data.length:B.length:(D>B.highWaterMark&&(B.highWaterMark=function(ne){return ne>=N?ne=N:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(D)),D<=B.length?D:B.ended?B.length:(B.needReadable=!0,0))}function V(D){var B=D._readableState;B.needReadable=!1,B.emittedReadable||(g("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(I,D):I(D))}function I(D){g("emit readable"),D.emit("readable"),J(D)}function Y(D,B){B.readingMore||(B.readingMore=!0,o.nextTick(q,D,B))}function q(D,B){for(var ne=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(g("maybeReadMore read 0"),D.read(0),ne!==B.length);)ne=B.length;B.readingMore=!1}function X(D){g("readable nexttick read 0"),D.read(0)}function Z(D,B){B.reading||(g("resume read 0"),D.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,D.emit("resume"),J(D),B.flowing&&!B.reading&&D.read(0)}function J(D){var B=D._readableState;for(g("flow",B.flowing);B.flowing&&D.read()!==null;);}function oe(D,B){return B.length===0?null:(B.objectMode?ne=B.buffer.shift():!D||D>=B.length?(ne=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):ne=function(W,G,re){var le;return W<G.head.data.length?(le=G.head.data.slice(0,W),G.head.data=G.head.data.slice(W)):le=W===G.head.data.length?G.shift():re?function(me,O){var R=O.head,F=1,ee=R.data;for(me-=ee.length;R=R.next;){var Q=R.data,se=me>Q.length?Q.length:me;if(se===Q.length?ee+=Q:ee+=Q.slice(0,me),(me-=se)==0){se===Q.length?(++F,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=Q.slice(se));break}++F}return O.length-=F,ee}(W,G):function(me,O){var R=f.allocUnsafe(me),F=O.head,ee=1;for(F.data.copy(R),me-=F.data.length;F=F.next;){var Q=F.data,se=me>Q.length?Q.length:me;if(Q.copy(R,R.length-me,0,se),(me-=se)==0){se===Q.length?(++ee,F.next?O.head=F.next:O.head=O.tail=null):(O.head=F,F.data=Q.slice(se));break}++ee}return O.length-=ee,R}(W,G),le}(D,B.buffer,B.decoder),ne);var ne}function ce(D){var B=D._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(K,B,D))}function K(D,B){D.endEmitted||D.length!==0||(D.endEmitted=!0,B.readable=!1,B.emit("end"))}function $(D,B){for(var ne=0,W=D.length;ne<W;ne++)if(D[ne]===B)return ne;return-1}E.prototype.read=function(D){g("read",D),D=parseInt(D,10);var B=this._readableState,ne=D;if(D!==0&&(B.emittedReadable=!1),D===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return g("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?ce(this):V(this),null;if((D=A(D,B))===0&&B.ended)return B.length===0&&ce(this),null;var W,G=B.needReadable;return g("need readable",G),(B.length===0||B.length-D<B.highWaterMark)&&g("length less than watermark",G=!0),B.ended||B.reading?g("reading or ended",G=!1):G&&(g("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(D=A(ne,B))),(W=D>0?oe(D,B):null)===null?(B.needReadable=!0,D=0):B.length-=D,B.length===0&&(B.ended||(B.needReadable=!0),ne!==D&&B.ended&&ce(this)),W!==null&&this.emit("data",W),W},E.prototype._read=function(D){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(D,B){var ne=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=D;break;case 1:W.pipes=[W.pipes,D];break;default:W.pipes.push(D)}W.pipesCount+=1,g("pipe count=%d opts=%j",W.pipesCount,B);var G=B&&B.end===!1||D===i.stdout||D===i.stderr?se:re;function re(){g("onend"),D.end()}W.endEmitted?o.nextTick(G):ne.once("end",G),D.on("unpipe",function ve(Le,fe){g("onunpipe"),Le===ne&&fe&&fe.hasUnpiped===!1&&(fe.hasUnpiped=!0,g("cleanup"),D.removeListener("close",ee),D.removeListener("finish",Q),D.removeListener("drain",le),D.removeListener("error",F),D.removeListener("unpipe",ve),ne.removeListener("end",re),ne.removeListener("end",se),ne.removeListener("data",R),me=!0,!W.awaitDrain||D._writableState&&!D._writableState.needDrain||le())});var le=function(ve){return function(){var Le=ve._readableState;g("pipeOnDrain",Le.awaitDrain),Le.awaitDrain&&Le.awaitDrain--,Le.awaitDrain===0&&l(ve,"data")&&(Le.flowing=!0,J(ve))}}(ne);D.on("drain",le);var me=!1,O=!1;function R(ve){g("ondata"),O=!1,D.write(ve)!==!1||O||((W.pipesCount===1&&W.pipes===D||W.pipesCount>1&&$(W.pipes,D)!==-1)&&!me&&(g("false write response, pause",ne._readableState.awaitDrain),ne._readableState.awaitDrain++,O=!0),ne.pause())}function F(ve){g("onerror",ve),se(),D.removeListener("error",F),l(D,"error")===0&&D.emit("error",ve)}function ee(){D.removeListener("finish",Q),se()}function Q(){g("onfinish"),D.removeListener("close",ee),se()}function se(){g("unpipe"),ne.unpipe(D)}return ne.on("data",R),function(ve,Le,fe){if(typeof ve.prependListener=="function")return ve.prependListener(Le,fe);ve._events&&ve._events[Le]?a(ve._events[Le])?ve._events[Le].unshift(fe):ve._events[Le]=[fe,ve._events[Le]]:ve.on(Le,fe)}(D,"error",F),D.once("close",ee),D.once("finish",Q),D.emit("pipe",ne),W.flowing||(g("pipe resume"),ne.resume()),D},E.prototype.unpipe=function(D){var B=this._readableState,ne={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return D&&D!==B.pipes?this:(D||(D=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,D&&D.emit("unpipe",this,ne),this);if(!D){var W=B.pipes,G=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var re=0;re<G;re++)W[re].emit("unpipe",this,ne);return this}var le=$(B.pipes,D);return le===-1?this:(B.pipes.splice(le,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),D.emit("unpipe",this,ne),this)},E.prototype.on=function(D,B){var ne=c.prototype.on.call(this,D,B);if(D==="data")this._readableState.flowing!==!1&&this.resume();else if(D==="readable"){var W=this._readableState;W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.emittedReadable=!1,W.reading?W.length&&V(this):o.nextTick(X,this))}return ne},E.prototype.addListener=E.prototype.on,E.prototype.resume=function(){var D=this._readableState;return D.flowing||(g("resume"),D.flowing=!0,function(B,ne){ne.resumeScheduled||(ne.resumeScheduled=!0,o.nextTick(Z,B,ne))}(this,D)),this},E.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},E.prototype.wrap=function(D){var B=this,ne=this._readableState,W=!1;for(var G in D.on("end",function(){if(g("wrapped end"),ne.decoder&&!ne.ended){var le=ne.decoder.end();le&&le.length&&B.push(le)}B.push(null)}),D.on("data",function(le){g("wrapped data"),ne.decoder&&(le=ne.decoder.write(le)),(!ne.objectMode||le!=null)&&(ne.objectMode||le&&le.length)&&(B.push(le)||(W=!0,D.pause()))}),D)this[G]===void 0&&typeof D[G]=="function"&&(this[G]=function(le){return function(){return D[le].apply(D,arguments)}}(G));for(var re=0;re<b.length;re++)D.on(b[re],this.emit.bind(this,b[re]));return this._read=function(le){g("wrapped _read",le),W&&(W=!1,D.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=oe}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,s){o.emit("error",s)}e.exports={destroy:function(o,s){var a=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(s?s(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!s&&f?(r.nextTick(i,a,f),a._writableState&&(a._writableState.errorEmitted=!0)):s&&s(f)}),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(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(g){var _;switch(this.encoding=function(x){var v=function(b){if(!b)return"utf8";for(var w;;)switch(b){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 b;default:if(w)return;b=(""+b).toLowerCase(),w=!0}}(x);if(typeof v!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return v||x}(g),this.encoding){case"utf16le":this.text=l,this.end=c,_=4;break;case"utf8":this.fillLast=a,_=4;break;case"base64":this.text=f,this.end=h,_=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(_)}function s(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function a(g){var _=this.lastTotal-this.lastNeed,x=function(v,b,w){if((192&b[0])!=128)return v.lastNeed=0,"<22>";if(v.lastNeed>1&&b.length>1){if((192&b[1])!=128)return v.lastNeed=1,"<22>";if(v.lastNeed>2&&b.length>2&&(192&b[2])!=128)return v.lastNeed=2,"<22>"}}(this,g);return x!==void 0?x:this.lastNeed<=g.length?(g.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,_,0,g.length),void(this.lastNeed-=g.length))}function l(g,_){if((g.length-_)%2==0){var x=g.toString("utf16le",_);if(x){var v=x.charCodeAt(x.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",_,g.length-1)}function c(g){var _=g&&g.length?this.write(g):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,x)}return _}function f(g,_){var x=(g.length-_)%3;return x===0?g.toString("base64",_):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",_,g.length-x))}function h(g){var _=g&&g.length?this.write(g):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function p(g){return g.toString(this.encoding)}function m(g){return g&&g.length?this.write(g):""}t.StringDecoder=o,o.prototype.write=function(g){if(g.length===0)return"";var _,x;if(this.lastNeed){if((_=this.fillLast(g))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<g.length?_?_+this.text(g,x):this.text(g,x):_||""},o.prototype.end=function(g){var _=g&&g.length?this.write(g):"";return this.lastNeed?_+"<22>":_},o.prototype.text=function(g,_){var x=function(b,w,E){var P=w.length-1;if(P<E)return 0;var k=s(w[P]);return k>=0?(k>0&&(b.lastNeed=k-1),k):--P<E||k===-2?0:(k=s(w[P]))>=0?(k>0&&(b.lastNeed=k-2),k):--P<E||k===-2?0:(k=s(w[P]))>=0?(k>0&&(k===2?k=0:b.lastNeed=k-3),k):0}(this,g,_);if(!this.lastNeed)return g.toString("utf8",_);this.lastTotal=x;var v=g.length-(x-this.lastNeed);return g.copy(this.lastChar,0,v),g.toString("utf8",_,v)},o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:function(c,f){var h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",s)}function s(){var l=this;typeof this._flush=="function"?this._flush(function(c,f){a(l,c,f)}):a(this,null,null)}function a(l,c,f){if(c)return l.emit("error",c);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,c)},o.prototype._transform=function(l,c,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,c,f){var h=this._transformState;if(h.writecb=f,h.writechunk=l,h.writeencoding=c,!h.transforming){var p=this._readableState;(h.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(l){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},o.prototype._destroy=function(l,c){var f=this;r.prototype._destroy.call(this,l,function(h){c(h),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),s=r.allocUnsafe?r.allocUnsafe(o):new r(o);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var s=[],a=0;a<i.length;a++)o.indexOf(a)>-1&&s.push(i[a]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l])};return function(s,a){function l(){this.constructor=s}o(s,a),s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(a,l,c){var f=o.call(this,"Error: "+a+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=a,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(s,o),s.column_mismatched=function(a,l){return new s("column_mismatched",a,l)},s.unclosed_quote=function(a,l){return new s("unclosed_quote",a,l)},s.fromJSON=function(a){return new s(a.err,a.line,a.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":s&&s in Object(a)?i(a):o(a)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,_){g.__proto__=_}||function(g,_){for(var x in _)_.hasOwnProperty(x)&&(g[x]=_[x])};return function(g,_){function x(){this.constructor=g}m(g,_),g.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),a=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function g(_,x){x===void 0&&(x={});var v=m.call(this,x)||this;return v.options=x,v.params=a.mergeParams(_),v.runtime=l.initParseRuntime(v),v.result=new h.Result(v),v.processor=new f.ProcessorLocal(v),v.once("error",function(b){r(function(){v.result.processError(b),v.emit("done",b)})}),v.once("done",function(){v.processor.destroy()}),v}return i(g,m),g.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},g.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},g.prototype.subscribe=function(_,x,v){return this.parseRuntime.subscribe={onNext:_,onError:x,onCompleted:v},this},g.prototype.fromFile=function(_,x){var v=this,b=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return b.exists(_,function(w){w?b.createReadStream(_,x).pipe(v):v.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},g.prototype.fromStream=function(_){return _.pipe(this),this},g.prototype.fromString=function(_){_.toString();var x=new s.Readable,v=0;return x._read=function(b){if(v>=_.length)this.push(null);else{var w=_.substr(v,b);this.push(w),v+=b}},this.fromStream(x)},g.prototype.then=function(_,x){var v=this;return new c.default(function(b,w){v.parseRuntime.then={onfulfilled:function(E){b(_?_(E):E)},onrejected:function(E){x?b(x(E)):w(E)}}})},Object.defineProperty(g.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),g.prototype._transform=function(_,x,v){var b=this;this.processor.process(_).then(function(w){if(w.length>0)return b.runtime.started=!0,b.result.processResult(w)}).then(function(){b.emit("drained"),v()},function(w){b.runtime.hasError=!0,b.runtime.error=w,b.emit("error",w),v()})},g.prototype._flush=function(_){var x=this;this.processor.flush().then(function(v){if(v.length>0)return x.result.processResult(v)}).then(function(){x.processEnd(_)},function(v){x.emit("error",v),_()})},g.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(g.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),g}(s.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var a,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?a=function(_){i.nextTick(function(){g(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,x=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=x,_}}()?function(){var _="setImmediate$"+Math.random()+"$",x=function(v){v.source===o&&typeof v.data=="string"&&v.data.indexOf(_)===0&&g(+v.data.slice(_.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),a=function(v){o.postMessage(_+v,"*")}}():o.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(x){g(x.data)},a=function(x){_.port2.postMessage(x)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var _=h.documentElement;a=function(x){var v=h.createElement("script");v.onreadystatechange=function(){g(x),v.onreadystatechange=null,_.removeChild(v),v=null},_.appendChild(v)}}():a=function(_){setTimeout(g,0,_)},p.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var x=new Array(arguments.length-1),v=0;v<x.length;v++)x[v]=arguments[v+1];var b={callback:_,args:x};return c[l]=b,a(l),l++},p.clearImmediate=m}function m(_){delete c[_]}function g(_){if(f)setTimeout(g,0,_);else{var x=c[_];if(x){f=!0;try{(function(v){var b=v.callback,w=v.args;switch(w.length){case 0:b();break;case 1:b(w[0]);break;case 2:b(w[0],w[1]);break;case 3:b(w[0],w[1],w[2]);break;default:b.apply(s,w)}})(x)}finally{m(_),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var a=this;function l(_){o.writable&&o.write(_)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",l),o.on("drain",c),o._isStdio||s&&s.end===!1||(a.on("end",h),a.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(_){if(g(),r.listenerCount(this,"error")===0)throw _}function g(){a.removeListener("data",l),o.removeListener("drain",c),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",m),o.removeListener("error",m),a.removeListener("end",g),a.removeListener("close",g),o.removeListener("close",g)}return a.on("error",m),o.on("error",m),a.on("end",g),a.on("close",g),o.on("close",g),o.emit("pipe",a),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var m=c(p),g=m[0],_=m[1];return 3*(g+_)/4-_},t.toByteArray=function(p){for(var m,g=c(p),_=g[0],x=g[1],v=new o(3*(_+x)/4-x),b=0,w=x>0?_-4:_,E=0;E<w;E+=4)m=i[p.charCodeAt(E)]<<18|i[p.charCodeAt(E+1)]<<12|i[p.charCodeAt(E+2)]<<6|i[p.charCodeAt(E+3)],v[b++]=m>>16&255,v[b++]=m>>8&255,v[b++]=255&m;return x===2&&(m=i[p.charCodeAt(E)]<<2|i[p.charCodeAt(E+1)]>>4,v[b++]=255&m),x===1&&(m=i[p.charCodeAt(E)]<<10|i[p.charCodeAt(E+1)]<<4|i[p.charCodeAt(E+2)]>>2,v[b++]=m>>8&255,v[b++]=255&m),v},t.fromByteArray=function(p){for(var m,g=p.length,_=g%3,x=[],v=0,b=g-_;v<b;v+=16383)x.push(h(p,v,v+16383>b?b:v+16383));return _===1?(m=p[g-1],x.push(r[m>>2]+r[m<<4&63]+"==")):_===2&&(m=(p[g-2]<<8)+p[g-1],x.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");return g===-1&&(g=m),[g,g===m?0:4-g%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,g){for(var _,x=[],v=m;v<g;v+=3)_=(p[v]<<16&16711680)+(p[v+1]<<8&65280)+(255&p[v+2]),x.push(f(_));return x.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(n,r,i,o,s){var a,l,c=8*s-o-1,f=(1<<c)-1,h=f>>1,p=-7,m=i?s-1:0,g=i?-1:1,_=n[r+m];for(m+=g,a=_&(1<<-p)-1,_>>=-p,p+=c;p>0;a=256*a+n[r+m],m+=g,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=g,p-=8);if(a===0)a=1-h;else{if(a===f)return l?NaN:1/0*(_?-1:1);l+=Math.pow(2,o),a-=h}return(_?-1:1)*l*Math.pow(2,a-o)},t.write=function(n,r,i,o,s,a){var l,c,f,h=8*a-s-1,p=(1<<h)-1,m=p>>1,g=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=o?0:a-1,x=o?1:-1,v=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?g/f:g*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,s),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;n[i+_]=255&c,_+=x,c/=256,s-=8);for(l=l<<s|c,h+=s;h>0;n[i+_]=255&l,_+=x,l/=256,h-=8);n[i+_-x]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,a,l){s.copy(a,l)}e.exports=function(){function s(){(function(a,l){if(!(a instanceof l))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(a){var l={data:a,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},s.prototype.unshift=function(a){var l={data:a,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=a+l.data;return c},s.prototype.concat=function(a){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(a>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var a=!1;return function(){if(!a){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),a=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,a,l){l(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var w in b)b.hasOwnProperty(w)&&(v[w]=b[w])};return function(v,b){function w(){this.constructor=v}x(v,b),v.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),a=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),g=o(n(29)),_=function(x){function v(){var b=x!==null&&x.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(v,x),v.prototype.flush=function(){var b=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var w=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(w,!0).then(function(E){return b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?a.default.reject(g.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):a.default.resolve(E)})}return a.default.resolve([])},v.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(v.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(v.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),v.prototype.process=function(b,w){var E,P=this;return w===void 0&&(w=!1),E=w?b.toString():l.prepareData(b,this.converter.parseRuntime),a.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(E):E}).then(function(k){return k&&k.length>0?P.processCSV(k,w):a.default.resolve([])})},v.prototype.processCSV=function(b,w){var E=this,P=this.params,k=this.runtime;k.eol||c.default(b,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),P.ignoreEmpty&&!k.started&&(b=h.trimLeft(b));var N=f.stringToLines(b,k);return w?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(h.bufFromString(N.partial)),N.lines.length>0?(k.preFileLineHook?this.runPreLineHook(N.lines):a.default.resolve(N.lines)).then(function(A){return k.started||E.runtime.headers?E.processCSVBody(A):E.processDataWithHead(A)}):a.default.resolve([])},v.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var w="",E=[];b.length;){var P=w+b.shift(),k=this.rowSplit.parse(P);if(k.closed){E=k.cells,w="";break}w=P+c.default(P,this.runtime)}if(this.prependLeftBuf(h.bufFromString(w)),E.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=E}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(b)},v.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,w=0;w<b.length;w++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(b[w])){if(!this.params.includeColumns||!this.params.includeColumns.test(b[w]))continue;this.runtime.selectedColumns.push(w)}else this.runtime.selectedColumns.push(w);else this.params.includeColumns?this.params.includeColumns.test(b[w])&&this.runtime.selectedColumns.push(w):this.runtime.selectedColumns.push(w);this.runtime.headers=h.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},v.prototype.processCSVBody=function(b){if(this.params.output==="line")return b;var w=this.rowSplit.parseMultiLines(b);return this.prependLeftBuf(h.bufFromString(w.partial)),this.params.output==="csv"?w.rowsCells:m.default(w.rowsCells,this.converter)},v.prototype.prependLeftBuf=function(b){b&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([b,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=b)},v.prototype.runPreLineHook=function(b){var w=this;return new a.default(function(E,P){(function k(N,A,V,I){if(V>=N.length)I();else if(A.preFileLineHook){var Y=N[V],q=A.preFileLineHook(Y,A.parsedLineNumber+V);if(V++,q&&q.then)q.then(function(X){N[V-1]=X,k(N,A,V,I)});else{for(N[V-1]=q;V<N.length;)N[V]=A.preFileLineHook(N[V],A.parsedLineNumber+V),V++;I()}}else I()})(b,w.runtime,0,function(k){k?P(k):E(b)})})},v}(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 o=i(n(55));t.prepareData=function(s,a){var l=function(f,h){return h.csvLineBuffer&&h.csvLineBuffer.length>0?r.concat([h.csvLineBuffer,f]):f}(s,a);a.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,a).toString("utf8");return a.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,s){var a=i.default(o,s),l=o.split(a);return{lines:l,partial:l.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),s=[",","|"," ",";",":"],a=function(){function l(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(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var f=this.quote,h=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 p=this.conv.parseRuntime.delimiter,m=c.split(p);if(f==="off"){if(h)for(var g=0;g<m.length;g++)m[g]=m[g].trim();return{cells:m,closed:!0}}return this.toCSVRow(m,h,f,p)},l.prototype.toCSVRow=function(c,f,h,p){for(var m=[],g=!1,_="",x=0,v=c.length;x<v;x++){var b=c[x];!g&&f&&(b=o.trimLeft(b));var w=b.length;if(g)this.isQuoteClose(b)?(g=!1,_+=p+(b=b.substr(0,w-1)),_=this.escapeQuote(_),f&&(_=o.trimRight(_)),m.push(_),_=""):_+=p+b;else{if(w===2&&b===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(b)){if(b=b.substr(1),this.isQuoteClose(b)){b=b.substring(0,b.lastIndexOf(h)),b=this.escapeQuote(b),m.push(b);continue}if(b.indexOf(h)!==-1){for(var E=0,P="",k=0,N=b;k<N.length;k++){var A=N[k];A===h&&P!==this.escape?(E++,P=""):P=A}if(E%2==1){f&&(b=o.trimRight(b)),m.push(h+b);continue}g=!0,_+=b;continue}g=!0,_+=b;continue}f&&(b=o.trimRight(b)),m.push(b)}}return{cells:m,closed:!g}},l.prototype.getDelimiter=function(c){var f;if(this.conv.parseParam.delimiter==="auto")f=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var h=0,p=",";return f.forEach(function(m){var g=c.split(m).length;g>h&&(p=m,h=g)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===f||c[m]===h;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=a},function(e,t,n){var r=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(v,b,w){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&v.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+w);return function(E,P,k){for(var N=!1,A={},V=0,I=E.length;V<I;V++){var Y=E[V];if(!k.parseParam.ignoreEmpty||Y!==""){N=!0;var q=P[V];q&&q!==""||(q=P[V]="field"+(V+1));var X=c(q,V,k);if(X){var Z=X(Y,q,A,E,V);Z!==void 0&&f(A,q,Z,k,V)}else k.parseParam.checkType&&(Y=m(Y,q,V,k)(Y)),Y!==void 0&&f(A,q,Y,k,V)}}return N?A:null}(v,b.parseRuntime.headers||[],b)||null}t.default=function(v,b){for(var w=[],E=0,P=v.length;E<P;E++){var k=a(v[E],b,E);k&&w.push(k)}return w};var l={string:_,number:g,omit:function(){}};function c(v,b,w){if(w.parseRuntime.columnConv[b]!==void 0)return w.parseRuntime.columnConv[b];var E=w.parseParam.colParser[v];if(E===void 0)return w.parseRuntime.columnConv[b]=null;if(typeof E=="object"&&(E=E.cellParser||"string"),typeof E=="string"){E=E.trim().toLowerCase();var P=l[E];return w.parseRuntime.columnConv[b]=P||null}return w.parseRuntime.columnConv[b]=typeof E=="function"?E:null}function f(v,b,w,E,P){if(!E.parseRuntime.columnValueSetter[P])if(E.parseParam.flatKeys)E.parseRuntime.columnValueSetter[P]=h;else if(b.indexOf(".")>-1){for(var k=b.split("."),N=!0;k.length>0;)if(k.shift().length===0){N=!1;break}!N||E.parseParam.colParser[b]&&E.parseParam.colParser[b].flat?E.parseRuntime.columnValueSetter[P]=h:E.parseRuntime.columnValueSetter[P]=p}else E.parseRuntime.columnValueSetter[P]=h;E.parseParam.nullObject===!0&&w==="null"&&(w=null),E.parseRuntime.columnValueSetter[P](v,b,w)}function h(v,b,w){v[b]=w}function p(v,b,w){o.default(v,b,w)}function m(v,b,w,E){return E.parseRuntime.headerType[w]?E.parseRuntime.headerType[w]:b.indexOf("number#!")>-1?E.parseRuntime.headerType[w]=g:b.indexOf("string#!")>-1?E.parseRuntime.headerType[w]=_:E.parseParam.checkType?E.parseRuntime.headerType[w]=x:E.parseRuntime.headerType[w]=_}function g(v){var b=parseFloat(v);return isNaN(b)?v:b}function _(v){return v.toString()}function x(v){var b=v.trim();return b===""?_(v):s.test(b)?g(v):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(w){var E=w.trim();return E.length!==5||E.toLowerCase()!=="false"}(v):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(w){try{return JSON.parse(w)}catch{return w}}(v):_(v)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),a=n(104);e.exports=function(l,c,f,h){if(!s(l))return l;for(var p=-1,m=(c=i(c,l)).length,g=m-1,_=l;_!=null&&++p<m;){var x=a(c[p]),v=f;if(p!=g){var b=_[x];(v=h?h(b,x,_):void 0)===void 0&&(v=s(b)?b:o(c[p+1])?[]:{})}r(_,x,v),_=_[x]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(s,a,l){var c=s[a];o.call(s,a)&&i(c,l)&&(l!==void 0||a in s)||r(s,a,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,s){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[o]=s}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),s=n(72),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,h=c.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!o(m)||i(m))&&(r(m)?p:a).test(s(m))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var s=r(o);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(l){var c=o.call(l,a),f=l[a];try{l[a]=void 0;var h=!0}catch{}var p=s.call(l);return h&&(c?l[a]=f:delete l[a]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),s=n(100);e.exports=function(a,l){return r(a)?a:i(a,l)?[a]:o(s(a))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(a,l){if(r(a))return!1;var c=typeof a;return!(c!="number"&&c!="symbol"&&c!="boolean"&&a!=null&&!i(a))||s.test(a)||!o.test(a)||l!=null&&a in Object(l)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(r,function(l,c,f,h){a.push(f?h.replace(i,"$1"):c||l)}),a});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(a){return s.size===500&&s.clear(),a}),s=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new TypeError(i);var l=function(){var c=arguments,f=a?a.apply(this,c):c[0],h=l.cache;if(h.has(f))return h.get(f);var p=s.apply(this,c);return l.cache=h.set(f,p)||h,p};return l.cache=new(o.Cache||r),l}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),s=n(98),a=n(99);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),s=n(86),a=n(87);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;if(r){var a=s[o];return a==="__lodash_hash_undefined__"?void 0:a}return i.call(s,o)?s[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;return r?s[o]!==void 0:i.call(s,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),s=n(92),a=n(93);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var s=this.__data__,a=r(s,o);return!(a<0||(a==s.length-1?s.pop():i.call(s,a,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,s=r(o,i);return s<0?void 0:o[s][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,a=r(s,i);return a<0?(++this.size,s.push([i,o])):s[a][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),a=s.size;return s.set(i,o),this.size+=s.size==a?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(s(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i<o;)s[i]=r(n[i],i,n);return s}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),s=function(){function l(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){var f=this,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&a(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function g(_,x,v,b,w){if(v>=_.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var E=x.parseRuntime.subscribe.onNext,P=_[v],k=E(P,x.parseRuntime.parsedLineNumber+v);if(v++,k&&k.then)k.then(function(){(function(A,V,I,Y,q,X,Z){q&&a(I,Z),g(A,I,Y,q,X)})(_,0,x,v,b,w,P)},w);else{for(b&&a(x,P);v<_.length;){var N=_[v];E(N,x.parseRuntime.parsedLineNumber+v),v++,b&&a(x,N)}w()}}else{if(b)for(;v<_.length;)N=_[v++],a(x,N);w()}}(c,f.converter,0,f.needPushDownstream,function(g){g?m(g):(f.appendFinalResult(c),p())}):(f.appendFinalResult(c),p())})},l.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},l.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)},l.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"&&a(this.converter,"]"+o.EOL)},l}();function a(l,c){if(typeof c!="object"||l.options.objectMode)l.push(c);else{var f=JSON.stringify(c);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=s},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
||
`,t.homedir=function(){return"/"}}]),y_e="Expected a function",MF="__lodash_hash_undefined__",RF=1/0,__e="[object Function]",b_e="[object GeneratorFunction]",w_e="[object Symbol]",x_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S_e=/^\w*$/,C_e=/^\./,E_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T_e=/[\\^$.*+?()[\]{}|]/g,O_e=/\\(\\)?/g,P_e=/^\[object .+?Constructor\]$/,k_e=typeof Il=="object"&&Il&&Il.Object===Object&&Il,M_e=typeof self=="object"&&self&&self.Object===Object&&self,tT=k_e||M_e||Function("return this")();function R_e(e,t){return e==null?void 0:e[t]}function N_e(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var L_e=Array.prototype,D_e=Function.prototype,NF=Object.prototype,Ib=tT["__core-js_shared__"],tL=function(){var e=/[^.]+$/.exec(Ib&&Ib.keys&&Ib.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),LF=D_e.toString,nT=NF.hasOwnProperty,DF=NF.toString,A_e=RegExp("^"+LF.call(nT).replace(T_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nL=tT.Symbol,I_e=L_e.splice,F_e=AF(tT,"Map"),bd=AF(Object,"create"),rL=nL?nL.prototype:void 0,iL=rL?rL.toString:void 0;function rl(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $_e(){this.__data__=bd?bd(null):{}}function j_e(e){return this.has(e)&&delete this.__data__[e]}function B_e(e){var t=this.__data__;if(bd){var n=t[e];return n===MF?void 0:n}return nT.call(t,e)?t[e]:void 0}function z_e(e){var t=this.__data__;return bd?t[e]!==void 0:nT.call(t,e)}function U_e(e,t){var n=this.__data__;return n[e]=bd&&t===void 0?MF:t,this}rl.prototype.clear=$_e;rl.prototype.delete=j_e;rl.prototype.get=B_e;rl.prototype.has=z_e;rl.prototype.set=U_e;function tu(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function V_e(){this.__data__=[]}function H_e(e){var t=this.__data__,n=O_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():I_e.call(t,n,1),!0}function W_e(e){var t=this.__data__,n=O_(t,e);return n<0?void 0:t[n][1]}function Y_e(e){return O_(this.__data__,e)>-1}function q_e(e,t){var n=this.__data__,r=O_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}tu.prototype.clear=V_e;tu.prototype.delete=H_e;tu.prototype.get=W_e;tu.prototype.has=Y_e;tu.prototype.set=q_e;function fl(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G_e(){this.__data__={hash:new rl,map:new(F_e||tu),string:new rl}}function Z_e(e){return P_(this,e).delete(e)}function K_e(e){return P_(this,e).get(e)}function X_e(e){return P_(this,e).has(e)}function Q_e(e,t){return P_(this,e).set(e,t),this}fl.prototype.clear=G_e;fl.prototype.delete=Z_e;fl.prototype.get=K_e;fl.prototype.has=X_e;fl.prototype.set=Q_e;function O_(e,t){for(var n=e.length;n--;)if(c0e(e[n][0],t))return n;return-1}function J_e(e,t){t=r0e(t,e)?[t]:n0e(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[a0e(t[n++])];return n&&n==r?e:void 0}function e0e(e){if(!FF(e)||o0e(e))return!1;var t=u0e(e)||N_e(e)?A_e:P_e;return t.test(l0e(e))}function t0e(e){if(typeof e=="string")return e;if(iT(e))return iL?iL.call(e):"";var t=e+"";return t=="0"&&1/e==-RF?"-0":t}function n0e(e){return IF(e)?e:s0e(e)}function P_(e,t){var n=e.__data__;return i0e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function AF(e,t){var n=R_e(e,t);return e0e(n)?n:void 0}function r0e(e,t){if(IF(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||iT(e)?!0:S_e.test(e)||!x_e.test(e)||t!=null&&e in Object(t)}function i0e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function o0e(e){return!!tL&&tL in e}var s0e=rT(function(e){e=d0e(e);var t=[];return C_e.test(e)&&t.push(""),e.replace(E_e,function(n,r,i,o){t.push(i?o.replace(O_e,"$1"):r||n)}),t});function a0e(e){if(typeof e=="string"||iT(e))return e;var t=e+"";return t=="0"&&1/e==-RF?"-0":t}function l0e(e){if(e!=null){try{return LF.call(e)}catch{}try{return e+""}catch{}}return""}function rT(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(y_e);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(rT.Cache||fl),n}rT.Cache=fl;function c0e(e,t){return e===t||e!==e&&t!==t}var IF=Array.isArray;function u0e(e){var t=FF(e)?DF.call(e):"";return t==__e||t==b_e}function FF(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function f0e(e){return!!e&&typeof e=="object"}function iT(e){return typeof e=="symbol"||f0e(e)&&DF.call(e)==w_e}function d0e(e){return e==null?"":t0e(e)}function h0e(e,t,n){var r=e==null?void 0:J_e(e,t);return r===void 0?n:r}var oL=h0e;function Fb(e){return e==null?"":`${e}`}function p0e(e={}){return e.separator?e.decimals?t=>t.toFixed(e.decimals).replace(".",e.separator):t=>`${t}`.replace(".",e.separator):e.decimals?t=>t.toFixed(e.decimals):t=>`${t}`}function oT(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function m0e(e={stringFormatter:oT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function g0e(e={stringFormatter:oT()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function sL(e,t,n){const r=e[t];return r===void 0?n:r}function $F(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function yx(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class v0e{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||oT(),i=g0e({stringFormatter:r}),o={header:r,undefined:Fb,boolean:Fb,number:p0e(),bigint:Fb,string:r,symbol:m0e({stringFormatter:r}),function:i,object:i};return n.formatters={...o,...n.formatters},n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>oL(i,r,n):i=>sL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>oL(o,r.value,i):o=>sL(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i};return{label:o,value(a){const l=r.value(a,s);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return yx(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($F,[]),[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 yx(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class y0e extends v0e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,a)=>(Object.keys(a).forEach(l=>{s.includes(l)||s.push(l)}),s),[]));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&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce($F,[])}processData(t){return yx(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Sn;(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"})(Sn||(Sn={}));Sn.QUOTATION_MARK+"",Sn.QUOTATION_MARK,Sn.REVERSE_SOLIDUS+"",Sn.REVERSE_SOLIDUS,Sn.SOLIDUS+"",Sn.SOLIDUS,Sn.LATIN_SMALL_LETTER_B+"",Sn.BACKSPACE,Sn.LATIN_SMALL_LETTER_F+"",Sn.FORM_FEED,Sn.LATIN_SMALL_LETTER_N+"",Sn.NEWLINE,Sn.LATIN_SMALL_LETTER_R+"",Sn.CARRIAGE_RETURN,Sn.LATIN_SMALL_LETTER_T+"",Sn.TAB;var aL;(function(e){e[e.LEFT_BRACE=1]="LEFT_BRACE",e[e.RIGHT_BRACE=2]="RIGHT_BRACE",e[e.LEFT_BRACKET=3]="LEFT_BRACKET",e[e.RIGHT_BRACKET=4]="RIGHT_BRACKET",e[e.COLON=5]="COLON",e[e.COMMA=6]="COMMA",e[e.TRUE=7]="TRUE",e[e.FALSE=8]="FALSE",e[e.NULL=9]="NULL",e[e.STRING=10]="STRING",e[e.NUMBER=11]="NUMBER",e[e.SEPARATOR=12]="SEPARATOR"})(aL||(aL={}));var lL;(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"})(lL||(lL={}));var cL;(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"})(cL||(cL={}));var uL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(uL||(uL={}));const _0e=e=>new Promise(t=>{v_e().fromString(e).then(t)}),b0e=new y0e,w0e=e=>b0e.parse(e),x0e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",s_e,"localStorage"),e.service("ColorGenerator",g_e,"Storage"),e.constant("csvToJson",_0e),e.constant("jsonToCsv",w0e),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",QJ,"setTimeout","clearTimeout")},fL="shlink/mercure",S0e={loading:!0,error:!1},C0e=e=>{const t=nr(`${fL}/loadMercureInfo`,(r,{getState:i})=>{const{settings:o}=i();if(!o.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e(i).mercureInfo()}),{reducer:n}=Yn({name:fL,initialState:S0e,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},E0e=e=>{e.serviceFactory("mercureInfoReducerCreator",C0e,"buildShlinkApiClient"),e.serviceFactory("mercureInfoReducer",rt("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",rt("loadMercureInfo"),"mercureInfoReducerCreator")},pc=({children:e})=>C("small",{className:"form-text text-muted d-block",children:e}),T0e=e=>e?`${e}`:"",O0e=({settings:{realTimeUpdates:e},toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const r=i_();return U(gn,{title:"Real-time updates",className:"h-100",children:[C(Zr,{children:U($c,{checked:e.enabled,onChange:t,children:["Enable or disable real-time updates.",U(pc,{children:["Real-time updates are currently being ",C("b",{children:e.enabled?"processed":"ignored"}),"."]})]})}),U(eu,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ge("form-label",{"text-muted":!e.enabled}),id:r,children:[C(id,{type:"number",min:0,placeholder:"Immediate",disabled:!e.enabled,value:T0e(e.interval),id:r,onChange:({target:i})=>n(Number(i.value))}),e.enabled&&U(pc,{children:[e.interval!==void 0&&e.interval>0&&U("span",{children:["Updates will be reflected in the UI every ",C("b",{children:e.interval})," minute",e.interval>1&&"s","."]}),!e.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},$b=({items:e})=>C(We,{children:e.map((t,n)=>C("div",{className:"mb-3",children:t},n))}),P0e=(e,t,n,r,i,o)=>()=>U(Qc,{children:[U(i8,{className:"mb-3",children:[C(bf,{to:"general",children:"General"}),C(bf,{to:"short-urls",children:"Short URLs"}),C(bf,{to:"other-items",children:"Other items"})]}),U(Ly,{children:[C(_t,{path:"general",element:C($b,{items:[C(r,{}),C(e,{})]})}),C(_t,{path:"short-urls",element:C($b,{items:[C(t,{}),C(n,{})]})}),C(_t,{path:"other-items",element:C($b,{items:[C(o,{}),C(i,{})]})}),C(_t,{path:"*",element:C(CS,{replace:!0,to:"general"})})]})]}),jb=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",k0e=e=>e==="includes"?U(We,{children:["The list of suggested tags will contain those ",C("b",{children:"including"})," provided input."]}):U(We,{children:["The list of suggested tags will contain those ",C("b",{children:"starting with"})," provided input."]}),M0e=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return U(gn,{title:"Short URLs form",className:"h-100",children:[C(Zr,{children:U($c,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",U(pc,{children:["The initial state of the ",C("b",{children:"Validate URL"})," checkbox will be ",C("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),C(Zr,{children:U($c,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",U(pc,{children:["The initial state of the ",C("b",{children:"Forward query params on redirect"})," checkbox will be ",C("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),U(eu,{noMargin:!0,label:"Tag suggestions search mode:",children:[U(Xs,{text:jb(n.tagFilteringMode),children:[C(Ve,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:jb("startsWith")}),C(Ve,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:jb("includes")})]}),C(pc,{children:k0e(n.tagFilteringMode)})]})]})};const R0e=({settings:{ui:e},setUiSettings:t})=>U(gn,{title:"User interface",className:"h-100",children:[C($e,{icon:(e==null?void 0:e.theme)==="dark"?dq:eq,className:"user-interface__theme-icon"}),C($c,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),l6(r)},children:"Use dark theme."})]}),N0e=({onChange:e,active:t,allText:n})=>C(Xs,{text:mE(t)??n,children:C(E5,{allText:n,active:t,onChange:e})}),dL=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},L0e=({settings:e,setVisitsSettings:t})=>{var n,r;return U(gn,{title:"Visits",className:"h-100",children:[C(Zr,{children:U($c,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:dL(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",U(pc,{children:["The visits coming from potential bots will be ",C("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),C(eu,{noMargin:!0,label:"Default interval to load on visits sections:",children:C(N0e,{allText:"All visits",active:dL(e),onChange:i=>t({defaultInterval:i})})})]})},D0e=({settings:{tags:e},setTagsSettings:t})=>C(gn,{title:"Tags",className:"h-100",children:C(eu,{noMargin:!0,label:"Default ordering for tags list:",children:C(Gd,{items:TF,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),A0e=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>C(gn,{title:"Short URLs list",className:"h-100",children:C(eu,{noMargin:!0,label:"Default ordering for short URLs list:",children:C(Gd,{items:O5,order:(e==null?void 0:e.defaultOrdering)??yE,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),I0e=(e,t)=>{e.serviceFactory("Settings",P0e,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",Bg),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>O0e),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>M0e),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>R0e),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>L0e),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>D0e),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>A0e),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>kce),e.serviceFactory("setRealTimeUpdatesInterval",()=>Mce),e.serviceFactory("setShortUrlCreationSettings",()=>Rce),e.serviceFactory("setShortUrlsListSettings",()=>Nce),e.serviceFactory("setUiSettings",()=>Lce),e.serviceFactory("setVisitsSettings",()=>Dce),e.serviceFactory("setTagsSettings",()=>Ace)},F0e=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},Dp="shlink/domainsList",Ap={domains:[],filteredDomains:[],loading:!1,error:!1},hL=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},pL=(e,t)=>n=>n.domain!==e?n:{...n,status:t},$0e=(e,t)=>{const n=nr(`${Dp}/listDomains`,async(s,{getState:a})=>{const{listDomains:l}=e(a),{data:c,defaultRedirects:f}=await l();return{domains:c.map(h=>({...h,status:"validating"})),defaultRedirects:f}}),r=nr(`${Dp}/checkDomainHealth`,async(s,{getState:a})=>{const{selectedServer:l}=a();if(!IS(l))return{domain:s,status:"invalid"};try{const{url:c,...f}=l,{health:h}=e({...f,url:F0e(c,s)}),{status:p}=await h();return{domain:s,status:p==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=bn(`${Dp}/filterDomains`),{reducer:o}=Yn({name:Dp,initialState:Ap,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Ap,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Ap,error:!0,errorData:ro(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Ap,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(pL(f.domain,f.status)),filteredDomains:l.map(pL(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(hL(l)),filteredDomains:a.filteredDomains.map(hL(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}};const j0e=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=Bt(),{domains:a}=n,l=Hn(t),c=()=>r("");return H.useEffect(()=>{e()},[]),i?U($d,{children:[C(id,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),C(gt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Ft(c,s),children:C($e,{icon:WY})}),C($r,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):U(Xs,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>U(Ve,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&C("span",{className:"float-end text-muted",children:"default"})]},f)),C(Ve,{divider:!0}),C(Ve,{onClick:Ft(c,o),children:C("i",{children:"New domain"})})]})},B0e=({status:e,matchMedia:t=window.matchMedia})=>{const n=H.useRef(),r=()=>t("(max-width: 991px)").matches,[i,o]=H.useState(r());return H.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?C($e,{fixedWidth:!0,icon:LA,spin:!0}):U(We,{children:[C("span",{ref:Jd(n),children:e==="valid"?C($e,{fixedWidth:!0,icon:Zf,className:"text-muted"}):C($e,{fixedWidth:!0,icon:J1,className:"text-danger"})}),C($r,{target:()=>n.current,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":U("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",C("br",{}),"Check the ",C(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},Bb=({isLast:e,...t})=>C(Hm,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),z0e=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,m;const[i,o]=H.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=H.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=H.useState(((m=n.redirects)==null?void 0:m.invalidShortUrlRedirect)??""),f=Bd(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:J0(i),regular404Redirect:J0(s),invalidShortUrlRedirect:J0(l)}}).then(t));return C(zo,{isOpen:e,toggle:t,centered:!0,children:U("form",{name:"domainRedirectsModal",onSubmit:f,children:[U(io,{toggle:t,children:["Edit redirects for ",C("b",{children:n.domain})]}),U(ki,{children:[U(Bb,{value:i,onChange:o,children:[U(Vm,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",U("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),U(Bb,{value:s,onChange:a,children:[U(Vm,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",U("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),U(Bb,{value:l,isLast:!0,onChange:c,children:[C(Vm,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),U(Zs,{children:[C(gt,{color:"link",type:"button",onClick:t,children:"Cancel"}),C(gt,{color:"primary",children:"Save"})]})]})})},U0e=({domain:e,editDomainRedirects:t,selectedServer:n})=>{const[r,i]=Bt(),[o,s]=Bt(),{isDefault:a}=e,l=!a||wee(n),c=v6(n),f=kd(n);return U(h_,{isOpen:r,toggle:i,children:[c&&U(Ve,{tag:It,to:`/server/${f}/domain/${e.domain}${e.isDefault?`_${F5}`:""}/visits`,children:[C($e,{icon:qS,fixedWidth:!0})," Visit stats"]}),U(Ve,{disabled:!l,onClick:l?s:void 0,children:[C($e,{fixedWidth:!0,icon:YS})," Edit redirects"]}),C(z0e,{domain:e,isOpen:o,toggle:s,editDomainRedirects:t})]})},zb=({fallback:e})=>U("span",{className:"text-muted",children:[!e&&C("small",{children:"No redirect"}),e&&U(We,{children:[e," ",C("small",{children:"(as fallback)"})]})]}),V0e=()=>U(We,{children:[C($e,{fixedWidth:!0,icon:TY,className:"text-primary",id:"defaultDomainIcon"}),C($r,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),H0e=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r,selectedServer:i})=>{const{domain:o,isDefault:s,redirects:a,status:l}=e;return H.useEffect(()=>{n(e.domain)},[]),U("tr",{className:"responsive-table__row",children:[C("td",{className:"responsive-table__cell","data-th":"Is default domain",children:s&&C(V0e,{})}),C("th",{className:"responsive-table__cell","data-th":"Domain",children:o}),C("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??C(zb,{fallback:r==null?void 0:r.baseUrlRedirect})}),C("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??C(zb,{fallback:r==null?void 0:r.regular404Redirect})}),C("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??C(zb,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),C("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:C(B0e,{status:l})}),C("td",{className:"responsive-table__cell text-end",children:C(U0e,{domain:e,editDomainRedirects:t,selectedServer:i})})]})},mL=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],W0e=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i,selectedServer:o})=>{var m;const{filteredDomains:s,defaultRedirects:a,loading:l,error:c,errorData:f}=t,h=a??((m=s.find(({isDefault:g})=>g))==null?void 0:m.redirects);return H.useEffect(()=>{e()},[]),l?C(So,{loading:!0}):U(We,{children:[C(Wd,{className:"mb-3",onChange:n}),(()=>c?C(Rr,{type:"error",children:C(Do,{errorData:f,fallbackMessage:"Error loading domains :("})}):C(gn,{children:U("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:C("tr",{children:mL.map((g,_)=>C("th",{children:g},_))})}),U("tbody",{children:[s.length<1&&C("tr",{children:C("td",{colSpan:mL.length,className:"text-center",children:"No results found"})}),s.map(g=>C(H0e,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:h,selectedServer:o},g.domain))]})]})}))()]})},Y0e="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",q0e=e=>nr(Y0e,async({domain:t,redirects:n},{getState:r})=>{const{editDomainRedirects:i}=e(r),o=await i({domain:t,...n});return{domain:t,redirects:o}}),G0e=(e,t)=>{e.serviceFactory("DomainSelector",()=>j0e),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>W0e),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",$0e,"buildShlinkApiClient","editDomainRedirects"),e.serviceFactory("domainsListReducer",rt("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",rt("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",rt("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",q0e,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",rt("checkDomainHealth"),"domainsListReducerCreator")},{actions:Z0e,reducer:K0e}=Yn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:X0e,resetAppUpdate:Q0e}=Z0e,J0e=K0e;const ebe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=Bt();return U(IC,{className:"app-update-banner",isOpen:e,toggle:t,tag:gn,color:"secondary",children:[C("h4",{className:"mb-4",children:"This app has just been updated!"}),U("p",{className:"mb-0",children:["Restart it to enjoy the new features.",U(gt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:()=>{i(),n()},children:[!r&&U(We,{children:["Restart now ",C($e,{icon:lq,className:"ms-1"})]}),r&&C(We,{children:"Restarting..."})]})]})]})},tbe=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"})})};const nbe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const g=Wn().pathname==="/";return H.useEffect(()=>{var _;Object.keys(c).length===0&&l(),l6(((_=f.ui)==null?void 0:_.theme)??"light")},[]),U("div",{className:"container-fluid app-container",children:[C(e,{}),U("div",{className:"app",children:[C("div",{className:ge("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:U(Ly,{children:[C(_t,{index:!0,element:C(t,{})}),C(_t,{path:"/settings/*",element:C(o,{})}),C(_t,{path:"/manage-servers",element:C(s,{})}),C(_t,{path:"/server/create",element:C(r,{})}),C(_t,{path:"/server/:serverId/edit",element:C(i,{})}),C(_t,{path:"/server/:serverId/*",element:C(n,{})}),C(_t,{path:"*",element:C(y6,{})})]})}),C("div",{className:"shlink-footer",children:C(a,{})})]}),C(ebe,{isOpen:h,toggle:p,forceUpdate:tbe})]})},rbe=(e,t)=>{e.serviceFactory("App",nbe,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>X0e),e.serviceFactory("resetAppUpdate",()=>Q0e)},ai=new nU,{container:sT}=ai,ibe=(e,t)=>(...n)=>e[t](...n),obe=(e,t)=>({...e,[t]:ibe(sT,t)}),ta=(e,t=[])=>P9(e?pA(e):null,t.reduce(obe,{}));rbe(ai,ta);jte(ai,ta);gY(ai);Yue(ai,ta);Mfe(ai,ta);i_e(ai,ta);cye(ai,ta);x0e(ai);E0e(ai);I0e(ai,ta);G0e(ai,ta);var aT={},qv={},sbe={get exports(){return qv},set exports(e){qv=e}};(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=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return r.apply(void 0,c)}t.main=n,n.clone=o,n.isPlainObject=s,n.recursive=i;function r(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!0,c)}t.recursive=i;function o(c){if(Array.isArray(c)){for(var f=[],h=0;h<c.length;++h)f.push(o(c[h]));return f}else if(s(c)){var f={};for(var h in c)f[h]=o(c[h]);return f}else return c}t.clone=o;function s(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=s;function a(c,f){if(!s(c))return f;for(var h in f)h==="__proto__"||h==="constructor"||h==="prototype"||(c[h]=s(c[h])&&s(f[h])?a(c[h],f[h]):f[h]);return c}function l(c,f,h){var p;(c||!s(p=h.shift()))&&(p={});for(var m=0;m<h.length;++m){var g=h[m];if(s(g)){for(var _ in g)if(!(_==="__proto__"||_==="constructor"||_==="prototype")){var x=c?o(g[_]):g[_];p[_]=f?a(p[_],x):x}}}return p}})(sbe,qv);(function(e){var t=n(qv);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=X,e.combineLoads=q,e.load=Y,e.save=I;function n($){return $&&$.__esModule?$:{default:$}}function r($,D){return l($)||a($,D)||o($,D)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o($,D){if($){if(typeof $=="string")return s($,D);var B=Object.prototype.toString.call($).slice(8,-1);return B==="Object"&&$.constructor&&(B=$.constructor.name),B==="Map"||B==="Set"?Array.from($):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?s($,D):void 0}}function s($,D){(D==null||D>$.length)&&(D=$.length);for(var B=0,ne=Array(D);B<D;B++)ne[B]=$[B];return ne}function a($,D){var B=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(B!=null){var ne,W,G=[],re=!0,le=!1;try{for(B=B.call($);!(re=(ne=B.next()).done)&&(G.push(ne.value),!(D&&G.length===D));re=!0);}catch(me){le=!0,W=me}finally{try{re||B.return==null||B.return()}finally{if(le)throw W}}return G}}function l($){if(Array.isArray($))return $}function c($){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},c($)}function f($,D,B){return D in $?Object.defineProperty($,D,{value:B,enumerable:!0,configurable:!0,writable:!0}):$[D]=B,$}var h="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",g=[],_=[],x=0,v=!1,b=!1,w=new Map;function E($){console.warn(h,$)}function P(){}var k=function($){return $?P:E};function N($,D){return D===void 0?null:$.length===1?D[$[0]]:N($.slice(1),D[$[0]])}function A($){function D(ne,W){return ne.length===0?W:D(ne.slice(1),f({},ne[0],W))}var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return D($.split(".").reverse(),B)}function V($){this.warnFn=$||E}Object.defineProperty(V.prototype,"length",{get:function(){try{return localStorage.length}catch($){this.warnFn($)}return 0},configurable:!0,enumerable:!0}),V.prototype.key=function($){try{return localStorage.key($)}catch(D){this.warnFn(D)}return null},V.prototype.setItem=function($,D){try{localStorage.setItem($,JSON.stringify(D))}catch(B){this.warnFn(B)}},V.prototype.getItem=function($){try{return JSON.parse(localStorage.getItem($))}catch(D){this.warnFn(D)}return null},V.prototype.removeItem=function($){try{localStorage.removeItem($)}catch(D){this.warnFn(D)}};function I(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=$.states,B=D===void 0?g:D,ne=$.ignoreStates,W=ne===void 0?_:ne,G=$.namespace,re=G===void 0?p:G,le=$.namespaceSeparator,me=le===void 0?m:le,O=$.debounce,R=O===void 0?x:O,F=$.disableWarnings,ee=F===void 0?b:F;return function(Q){return function(se){return function(ve){function Le(Re,Ne){return 1<Re.split(".").length?N(Re.split("."),Ne):N([Re],Ne)}function fe(){B.length===0?De.setItem(re,ye):B.forEach(function(Re){var Ne=re+me+Re,ue=Le(Re,ye);ue?De.setItem(Ne,ue):De.removeItem(Ne)})}var ye,be=k(ee),Te=se(ve);Z(B)||(console.error(h,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),B=g),Z(W)||(console.error(h,"'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(Re){return J(Re)?Re:void console.error(h,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),J(re)||(console.error(h,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),re=p),J(me)||(console.error(h,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),me=m),oe(R)||(console.error(h,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),R=x),ye=0<W.length?K(W,Q.getState()):Q.getState();var De=new V(be);return R?(w.get(B+re)&&clearTimeout(w.get(B+re)),w.set(B+re,setTimeout(function(){fe()},R))):fe(),Te}}}}function Y(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=$.states,B=D===void 0?g:D,ne=$.immutablejs,W=ne===void 0?v:ne,G=$.namespace,re=G===void 0?p:G,le=$.namespaceSeparator,me=le===void 0?m:le,O=$.preloadedState,R=O===void 0?{}:O,F=$.disableWarnings,ee=F===void 0?b:F,Q=k(ee);Z(B)||(console.error(h,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),B=g),J(re)||(console.error(h,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),re=p),J(me)||(console.error(h,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),me=m),W===!0&&Q("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 V(Q),ve=R;if(B.length===0){var Le=se.getItem(re);Le&&(ve=Le)}else B.forEach(function(fe){var ye=re+me+fe,be=se.getItem(ye);be?ve=t.default.recursive(ve,A(fe,be)):Q("Invalid load '"+ye+"' 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 ve}function q(){for(var $={},D=arguments.length,B=Array(D),ne=0;ne<D;ne++)B[ne]=arguments[ne];return B.forEach(function(W){for(var G in ce(W)||(console.error(h,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),W={}),W)$[G]=W[G]}),$}function X(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=$.namespace,B=D===void 0?p:D,ne=$.disableWarnings,W=ne===void 0?b:ne,G=k(W);J(B)||(console.error(h,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),B=p);for(var re,le=new V(G),me=le.length,O=0;O<me;O++)re=le.key(O),re&&re.slice(0,B.length)===B&&le.removeItem(re)}function Z($){return Object.prototype.toString.call($)==="[object Array]"}function J($){return typeof $=="string"}function oe($){return typeof $=="number"&&isFinite($)&&Math.floor($)===$}function ce($){return $!==null&&c($)==="object"}function K($,D){var B=Object.entries(D).reduce(function(ne,W){var G=r(W,2),re=G[0];return G[1],$.indexOf(re)===-1&&(ne[re]=D[re]),ne},{});return B}})(aT);const abe=e=>E6({servers:mfe,selectedServer:e.selectedServerReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,mercureInfo:e.mercureInfoReducer,settings:Ice,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,appUpdated:J0e,sidebar:Ate}),lbe=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},cbe=!0,jF={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},ube=lbe(aT.load(jF)),fbe=e=>ite({devTools:!cbe,reducer:abe(e),preloadedState:ube,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).prepend(e.selectServerListener.middleware).concat(aT.save(jF))}),dbe="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==",hbe="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=",pbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",mbe=()=>{delete xR.Icon.Default.prototype._getIconUrl,xR.Icon.Default.mergeOptions({iconRetinaUrl:dbe,iconUrl:hbe,shadowUrl:pbe})},gbe=Boolean(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 vbe(e){if("serviceWorker"in navigator){if(new URL({}.PUBLIC_URL??"",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${{}.PUBLIC_URL}/service-worker.js`;gbe?(ybe(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")})):BF(n,e)})}}function BF(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 ybe(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()})}):BF(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}sh.register(...jge);mbe();const zF=fbe(sT),{App:_be,ScrollToTop:bbe,ErrorHandler:wbe,appUpdateAvailable:xbe}=sT;E4(document.getElementById("root")).render(C(k9,{store:zF,children:C(Tz,{basename:H4.homepage,children:C(wbe,{children:C(bbe,{children:C(_be,{})})})})}));vbe({onUpdate(){zF.dispatch(xbe())}});
|