mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 10:28:23 +03:00
1007 lines
1.4 MiB
1007 lines
1.4 MiB
var R7=Object.defineProperty;var D7=(e,t,n)=>t in e?R7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fp=(e,t,n)=>(D7(e,typeof t!="symbol"?t+"":t,n),n);function I7(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 $p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cA={exports:{}},vy={},uA={exports:{}},ot={};/**
|
||
* @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 Nh=Symbol.for("react.element"),F7=Symbol.for("react.portal"),$7=Symbol.for("react.fragment"),U7=Symbol.for("react.strict_mode"),B7=Symbol.for("react.profiler"),z7=Symbol.for("react.provider"),V7=Symbol.for("react.context"),H7=Symbol.for("react.forward_ref"),W7=Symbol.for("react.suspense"),Y7=Symbol.for("react.memo"),G7=Symbol.for("react.lazy"),SC=Symbol.iterator;function q7(e){return e===null||typeof e!="object"?null:(e=SC&&e[SC]||e["@@iterator"],typeof e=="function"?e:null)}var dA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fA=Object.assign,hA={};function Du(e,t,n){this.props=e,this.context=t,this.refs=hA,this.updater=n||dA}Du.prototype.isReactComponent={};Du.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")};Du.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pA(){}pA.prototype=Du.prototype;function F2(e,t,n){this.props=e,this.context=t,this.refs=hA,this.updater=n||dA}var $2=F2.prototype=new pA;$2.constructor=F2;fA($2,Du.prototype);$2.isPureReactComponent=!0;var EC=Array.isArray,mA=Object.prototype.hasOwnProperty,U2={current:null},gA={key:!0,ref:!0,__self:!0,__source:!0};function vA(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)mA.call(t,r)&&!gA.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Nh,type:e,key:o,ref:a,props:i,_owner:U2.current}}function Z7(e,t){return{$$typeof:Nh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function B2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nh}function K7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var TC=/\/+/g;function g_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?K7(""+e.key):t.toString(36)}function qm(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Nh:case F7:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+g_(a,0):r,EC(i)?(n="",e!=null&&(n=e.replace(TC,"$&/")+"/"),qm(i,t,n,"",function(c){return c})):i!=null&&(B2(i)&&(i=Z7(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(TC,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",EC(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+g_(o,s);a+=qm(o,t,n,l,i)}else if(l=q7(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+g_(o,s++),a+=qm(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 a}function Up(e,t,n){if(e==null)return e;var r=[],i=0;return qm(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Q7(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 xr={current:null},Zm={transition:null},X7={ReactCurrentDispatcher:xr,ReactCurrentBatchConfig:Zm,ReactCurrentOwner:U2};ot.Children={map:Up,forEach:function(e,t,n){Up(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Up(e,function(){t++}),t},toArray:function(e){return Up(e,function(t){return t})||[]},only:function(e){if(!B2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ot.Component=Du;ot.Fragment=$7;ot.Profiler=B7;ot.PureComponent=F2;ot.StrictMode=U7;ot.Suspense=W7;ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X7;ot.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=fA({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=U2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)mA.call(t,l)&&!gA.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Nh,type:e.type,key:i,ref:o,props:r,_owner:a}};ot.createContext=function(e){return e={$$typeof:V7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:z7,_context:e},e.Consumer=e};ot.createElement=vA;ot.createFactory=function(e){var t=vA.bind(null,e);return t.type=e,t};ot.createRef=function(){return{current:null}};ot.forwardRef=function(e){return{$$typeof:H7,render:e}};ot.isValidElement=B2;ot.lazy=function(e){return{$$typeof:G7,_payload:{_status:-1,_result:e},_init:Q7}};ot.memo=function(e,t){return{$$typeof:Y7,type:e,compare:t===void 0?null:t}};ot.startTransition=function(e){var t=Zm.transition;Zm.transition={};try{e()}finally{Zm.transition=t}};ot.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ot.useCallback=function(e,t){return xr.current.useCallback(e,t)};ot.useContext=function(e){return xr.current.useContext(e)};ot.useDebugValue=function(){};ot.useDeferredValue=function(e){return xr.current.useDeferredValue(e)};ot.useEffect=function(e,t){return xr.current.useEffect(e,t)};ot.useId=function(){return xr.current.useId()};ot.useImperativeHandle=function(e,t,n){return xr.current.useImperativeHandle(e,t,n)};ot.useInsertionEffect=function(e,t){return xr.current.useInsertionEffect(e,t)};ot.useLayoutEffect=function(e,t){return xr.current.useLayoutEffect(e,t)};ot.useMemo=function(e,t){return xr.current.useMemo(e,t)};ot.useReducer=function(e,t,n){return xr.current.useReducer(e,t,n)};ot.useRef=function(e){return xr.current.useRef(e)};ot.useState=function(e){return xr.current.useState(e)};ot.useSyncExternalStore=function(e,t,n){return xr.current.useSyncExternalStore(e,t,n)};ot.useTransition=function(){return xr.current.useTransition()};ot.version="18.2.0";uA.exports=ot;var I=uA.exports;const Y=ca(I),J7=I7({__proto__:null,default:Y},[I]);/**
|
||
* @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 eB=I,tB=Symbol.for("react.element"),nB=Symbol.for("react.fragment"),rB=Object.prototype.hasOwnProperty,iB=eB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oB={key:!0,ref:!0,__self:!0,__source:!0};function yA(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)rB.call(t,r)&&!oB.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:tB,type:e,key:o,ref:a,props:i,_owner:iB.current}}vy.Fragment=nB;vy.jsx=yA;vy.jsxs=yA;cA.exports=vy;var g=cA.exports,_A={exports:{}},ei={},bA={exports:{}},wA={};/**
|
||
* @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(Z,F){var D=Z.length;Z.push(F);e:for(;0<D;){var H=D-1>>>1,re=Z[H];if(0<i(re,F))Z[H]=F,Z[D]=re,D=H;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var F=Z[0],D=Z.pop();if(D!==F){Z[0]=D;e:for(var H=0,re=Z.length,z=re>>>1;H<z;){var q=2*(H+1)-1,ie=Z[q],ae=q+1,he=Z[ae];if(0>i(ie,D))ae<re&&0>i(he,ie)?(Z[H]=he,Z[ae]=D,H=ae):(Z[H]=ie,Z[q]=D,H=q);else if(ae<re&&0>i(he,D))Z[H]=he,Z[ae]=D,H=ae;else break e}}return F}function i(Z,F){var D=Z.sortIndex-F.sortIndex;return D!==0?D:Z.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,m=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Z){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=Z)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function E(Z){if(y=!1,S(Z),!v)if(n(l)!==null)v=!0,ne(O);else{var F=n(c);F!==null&&le(E,F.startTime-Z)}}function O(Z,F){v=!1,y&&(y=!1,_(R),R=-1),m=!0;var D=p;try{for(S(F),f=n(l);f!==null&&(!(f.expirationTime>F)||Z&&!V());){var H=f.callback;if(typeof H=="function"){f.callback=null,p=f.priorityLevel;var re=H(f.expirationTime<=F);F=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(l)&&r(l),S(F)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var q=n(c);q!==null&&le(E,q.startTime-F),z=!1}return z}finally{f=null,p=D,m=!1}}var k=!1,j=null,R=-1,U=5,A=-1;function V(){return!(e.unstable_now()-A<U)}function W(){if(j!==null){var Z=e.unstable_now();A=Z;var F=!0;try{F=j(!0,Z)}finally{F?X():(k=!1,j=null)}}else k=!1}var X;if(typeof w=="function")X=function(){w(W)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,K=G.port2;G.port1.onmessage=W,X=function(){K.postMessage(null)}}else X=function(){x(W,0)};function ne(Z){j=Z,k||(k=!0,X())}function le(Z,F){R=x(function(){Z(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,ne(O))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Z){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var D=p;p=F;try{return Z()}finally{p=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,F){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var D=p;p=Z;try{return F()}finally{p=D}},e.unstable_scheduleCallback=function(Z,F,D){var H=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?H+D:H):D=H,Z){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=D+re,Z={id:d++,callback:F,priorityLevel:Z,startTime:D,expirationTime:re,sortIndex:-1},D>H?(Z.sortIndex=D,t(c,Z),n(l)===null&&Z===n(c)&&(y?(_(R),R=-1):y=!0,le(E,D-H))):(Z.sortIndex=re,t(l,Z),v||m||(v=!0,ne(O))),Z},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(Z){var F=p;return function(){var D=p;p=F;try{return Z.apply(this,arguments)}finally{p=D}}}})(wA);bA.exports=wA;var aB=bA.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var xA=I,qr=aB;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 SA=new Set,Lf={};function Nl(e,t){eu(e,t),eu(e+"Capture",t)}function eu(e,t){for(Lf[e]=t,e=0;e<t.length;e++)SA.add(t[e])}var Ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ob=Object.prototype.hasOwnProperty,sB=/^[: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]*$/,OC={},CC={};function lB(e){return ob.call(CC,e)?!0:ob.call(OC,e)?!1:sB.test(e)?CC[e]=!0:(OC[e]=!0,!1)}function cB(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 uB(e,t,n,r){if(t===null||typeof t>"u"||cB(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 Sr(e,t,n,r,i,o,a){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=a}var Jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jn[e]=new Sr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jn[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jn[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jn[e]=new Sr(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){Jn[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jn[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jn[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jn[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jn[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var z2=/[\-:]([a-z])/g;function V2(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(z2,V2);Jn[t]=new Sr(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(z2,V2);Jn[t]=new Sr(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(z2,V2);Jn[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jn[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});Jn.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jn[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function H2(e,t,n,r){var i=Jn.hasOwnProperty(t)?Jn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(uB(t,n,i,r)&&(n=null),r||i===null?lB(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 ua=xA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bp=Symbol.for("react.element"),wc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),W2=Symbol.for("react.strict_mode"),ab=Symbol.for("react.profiler"),EA=Symbol.for("react.provider"),TA=Symbol.for("react.context"),Y2=Symbol.for("react.forward_ref"),sb=Symbol.for("react.suspense"),lb=Symbol.for("react.suspense_list"),G2=Symbol.for("react.memo"),Pa=Symbol.for("react.lazy"),OA=Symbol.for("react.offscreen"),kC=Symbol.iterator;function pd(e){return e===null||typeof e!="object"?null:(e=kC&&e[kC]||e["@@iterator"],typeof e=="function"?e:null)}var Kt=Object.assign,v_;function Dd(e){if(v_===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);v_=t&&t[1]||""}return`
|
||
`+v_+e}var y_=!1;function __(e,t){if(!e||y_)return"";y_=!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(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{y_=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dd(e):""}function dB(e){switch(e.tag){case 5:return Dd(e.type);case 16:return Dd("Lazy");case 13:return Dd("Suspense");case 19:return Dd("SuspenseList");case 0:case 2:case 15:return e=__(e.type,!1),e;case 11:return e=__(e.type.render,!1),e;case 1:return e=__(e.type,!0),e;default:return""}}function cb(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 xc:return"Fragment";case wc:return"Portal";case ab:return"Profiler";case W2:return"StrictMode";case sb:return"Suspense";case lb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case TA:return(e.displayName||"Context")+".Consumer";case EA:return(e._context.displayName||"Context")+".Provider";case Y2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G2:return t=e.displayName||null,t!==null?t:cb(e.type)||"Memo";case Pa:t=e._payload,e=e._init;try{return cb(e(t))}catch{}}return null}function fB(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 cb(t);case 8:return t===W2?"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 as(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function CA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hB(e){var t=CA(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zp(e){e._valueTracker||(e._valueTracker=hB(e))}function kA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=CA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lg(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 ub(e,t){var n=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function PC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=as(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 PA(e,t){t=t.checked,t!=null&&H2(e,"checked",t,!1)}function db(e,t){PA(e,t);var n=as(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")?fb(e,t.type,n):t.hasOwnProperty("defaultValue")&&fb(e,t.type,as(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function LC(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 fb(e,t,n){(t!=="number"||Lg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Id=Array.isArray;function Bc(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=""+as(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 hb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return Kt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jC(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(Id(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:as(n)}}function LA(e,t){var n=as(t.value),r=as(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 MC(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function jA(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 pb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?jA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vp,MA=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(Vp=Vp||document.createElement("div"),Vp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qd={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},pB=["Webkit","ms","Moz","O"];Object.keys(Qd).forEach(function(e){pB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qd[t]=Qd[e]})});function NA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qd.hasOwnProperty(e)&&Qd[e]?(""+t).trim():t+"px"}function AA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=NA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var mB=Kt({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 mb(e,t){if(t){if(mB[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 gb(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 vb=null;function q2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yb=null,zc=null,Vc=null;function NC(e){if(e=Dh(e)){if(typeof yb!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=xy(t),yb(e.stateNode,e.type,t))}}function RA(e){zc?Vc?Vc.push(e):Vc=[e]:zc=e}function DA(){if(zc){var e=zc,t=Vc;if(Vc=zc=null,NC(e),t)for(e=0;e<t.length;e++)NC(t[e])}}function IA(e,t){return e(t)}function FA(){}var b_=!1;function $A(e,t,n){if(b_)return e(t,n);b_=!0;try{return IA(e,t,n)}finally{b_=!1,(zc!==null||Vc!==null)&&(FA(),DA())}}function Mf(e,t){var n=e.stateNode;if(n===null)return null;var r=xy(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 _b=!1;if(Ko)try{var md={};Object.defineProperty(md,"passive",{get:function(){_b=!0}}),window.addEventListener("test",md,md),window.removeEventListener("test",md,md)}catch{_b=!1}function gB(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Xd=!1,jg=null,Mg=!1,bb=null,vB={onError:function(e){Xd=!0,jg=e}};function yB(e,t,n,r,i,o,a,s,l){Xd=!1,jg=null,gB.apply(vB,arguments)}function _B(e,t,n,r,i,o,a,s,l){if(yB.apply(this,arguments),Xd){if(Xd){var c=jg;Xd=!1,jg=null}else throw Error(Ee(198));Mg||(Mg=!0,bb=c)}}function Al(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 UA(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 AC(e){if(Al(e)!==e)throw Error(Ee(188))}function bB(e){var t=e.alternate;if(!t){if(t=Al(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 AC(i),e;if(o===r)return AC(i),t;o=o.sibling}throw Error(Ee(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)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 BA(e){return e=bB(e),e!==null?zA(e):null}function zA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zA(e);if(t!==null)return t;e=e.sibling}return null}var VA=qr.unstable_scheduleCallback,RC=qr.unstable_cancelCallback,wB=qr.unstable_shouldYield,xB=qr.unstable_requestPaint,un=qr.unstable_now,SB=qr.unstable_getCurrentPriorityLevel,Z2=qr.unstable_ImmediatePriority,HA=qr.unstable_UserBlockingPriority,Ng=qr.unstable_NormalPriority,EB=qr.unstable_LowPriority,WA=qr.unstable_IdlePriority,yy=null,vo=null;function TB(e){if(vo&&typeof vo.onCommitFiberRoot=="function")try{vo.onCommitFiberRoot(yy,e,void 0,(e.current.flags&128)===128)}catch{}}var Wi=Math.clz32?Math.clz32:kB,OB=Math.log,CB=Math.LN2;function kB(e){return e>>>=0,e===0?32:31-(OB(e)/CB|0)|0}var Hp=64,Wp=4194304;function Fd(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 Ag(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Fd(s):(o&=a,o!==0&&(r=Fd(o)))}else a=n&~i,a!==0?r=Fd(a):o!==0&&(r=Fd(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-Wi(t),i=1<<n,r|=e[n],t&=~i;return r}function PB(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 LB(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Wi(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=PB(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function wb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function YA(){var e=Hp;return Hp<<=1,!(Hp&4194240)&&(Hp=64),e}function w_(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ah(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wi(t),e[t]=n}function jB(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-Wi(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function K2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var wt=0;function GA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var qA,Q2,ZA,KA,QA,xb=!1,Yp=[],Ga=null,qa=null,Za=null,Nf=new Map,Af=new Map,Na=[],MB="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 DC(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":Nf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Af.delete(t.pointerId)}}function gd(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=Dh(t),t!==null&&Q2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function NB(e,t,n,r,i){switch(t){case"focusin":return Ga=gd(Ga,e,t,n,r,i),!0;case"dragenter":return qa=gd(qa,e,t,n,r,i),!0;case"mouseover":return Za=gd(Za,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Nf.set(o,gd(Nf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Af.set(o,gd(Af.get(o)||null,e,t,n,r,i)),!0}return!1}function XA(e){var t=Qs(e.target);if(t!==null){var n=Al(t);if(n!==null){if(t=n.tag,t===13){if(t=UA(n),t!==null){e.blockedOn=t,QA(e.priority,function(){ZA(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 Km(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vb=r,n.target.dispatchEvent(r),vb=null}else return t=Dh(n),t!==null&&Q2(t),e.blockedOn=n,!1;t.shift()}return!0}function IC(e,t,n){Km(e)&&n.delete(t)}function AB(){xb=!1,Ga!==null&&Km(Ga)&&(Ga=null),qa!==null&&Km(qa)&&(qa=null),Za!==null&&Km(Za)&&(Za=null),Nf.forEach(IC),Af.forEach(IC)}function vd(e,t){e.blockedOn===t&&(e.blockedOn=null,xb||(xb=!0,qr.unstable_scheduleCallback(qr.unstable_NormalPriority,AB)))}function Rf(e){function t(i){return vd(i,e)}if(0<Yp.length){vd(Yp[0],e);for(var n=1;n<Yp.length;n++){var r=Yp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ga!==null&&vd(Ga,e),qa!==null&&vd(qa,e),Za!==null&&vd(Za,e),Nf.forEach(t),Af.forEach(t),n=0;n<Na.length;n++)r=Na[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Na.length&&(n=Na[0],n.blockedOn===null);)XA(n),n.blockedOn===null&&Na.shift()}var Hc=ua.ReactCurrentBatchConfig,Rg=!0;function RB(e,t,n,r){var i=wt,o=Hc.transition;Hc.transition=null;try{wt=1,X2(e,t,n,r)}finally{wt=i,Hc.transition=o}}function DB(e,t,n,r){var i=wt,o=Hc.transition;Hc.transition=null;try{wt=4,X2(e,t,n,r)}finally{wt=i,Hc.transition=o}}function X2(e,t,n,r){if(Rg){var i=Sb(e,t,n,r);if(i===null)j_(e,t,r,Dg,n),DC(e,r);else if(NB(i,e,t,n,r))r.stopPropagation();else if(DC(e,r),t&4&&-1<MB.indexOf(e)){for(;i!==null;){var o=Dh(i);if(o!==null&&qA(o),o=Sb(e,t,n,r),o===null&&j_(e,t,r,Dg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else j_(e,t,r,null,n)}}var Dg=null;function Sb(e,t,n,r){if(Dg=null,e=q2(r),e=Qs(e),e!==null)if(t=Al(e),t===null)e=null;else if(n=t.tag,n===13){if(e=UA(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 Dg=e,null}function JA(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(SB()){case Z2:return 1;case HA:return 4;case Ng:case EB:return 16;case WA:return 536870912;default:return 16}default:return 16}}var Da=null,J2=null,Qm=null;function eR(){if(Qm)return Qm;var e,t=J2,n=t.length,r,i="value"in Da?Da.value:Da.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Qm=i.slice(e,1<r?1-r:void 0)}function Xm(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 Gp(){return!0}function FC(){return!1}function ti(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Gp:FC,this.isPropagationStopped=FC,this}return Kt(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=Gp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gp)},persist:function(){},isPersistent:Gp}),t}var Iu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eS=ti(Iu),Rh=Kt({},Iu,{view:0,detail:0}),IB=ti(Rh),x_,S_,yd,_y=Kt({},Rh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tS,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!==yd&&(yd&&e.type==="mousemove"?(x_=e.screenX-yd.screenX,S_=e.screenY-yd.screenY):S_=x_=0,yd=e),x_)},movementY:function(e){return"movementY"in e?e.movementY:S_}}),$C=ti(_y),FB=Kt({},_y,{dataTransfer:0}),$B=ti(FB),UB=Kt({},Rh,{relatedTarget:0}),E_=ti(UB),BB=Kt({},Iu,{animationName:0,elapsedTime:0,pseudoElement:0}),zB=ti(BB),VB=Kt({},Iu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),HB=ti(VB),WB=Kt({},Iu,{data:0}),UC=ti(WB),YB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GB={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"},qB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qB[e])?!!t[e]:!1}function tS(){return ZB}var KB=Kt({},Rh,{key:function(e){if(e.key){var t=YB[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?GB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tS,charCode:function(e){return e.type==="keypress"?Xm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QB=ti(KB),XB=Kt({},_y,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BC=ti(XB),JB=Kt({},Rh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tS}),e9=ti(JB),t9=Kt({},Iu,{propertyName:0,elapsedTime:0,pseudoElement:0}),n9=ti(t9),r9=Kt({},_y,{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}),i9=ti(r9),o9=[9,13,27,32],nS=Ko&&"CompositionEvent"in window,Jd=null;Ko&&"documentMode"in document&&(Jd=document.documentMode);var a9=Ko&&"TextEvent"in window&&!Jd,tR=Ko&&(!nS||Jd&&8<Jd&&11>=Jd),zC=String.fromCharCode(32),VC=!1;function nR(e,t){switch(e){case"keyup":return o9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sc=!1;function s9(e,t){switch(e){case"compositionend":return rR(t);case"keypress":return t.which!==32?null:(VC=!0,zC);case"textInput":return e=t.data,e===zC&&VC?null:e;default:return null}}function l9(e,t){if(Sc)return e==="compositionend"||!nS&&nR(e,t)?(e=eR(),Qm=J2=Da=null,Sc=!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 tR&&t.locale!=="ko"?null:t.data;default:return null}}var c9={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 HC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c9[e.type]:t==="textarea"}function iR(e,t,n,r){RA(r),t=Ig(t,"onChange"),0<t.length&&(n=new eS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ef=null,Df=null;function u9(e){mR(e,0)}function by(e){var t=Oc(e);if(kA(t))return e}function d9(e,t){if(e==="change")return t}var oR=!1;if(Ko){var T_;if(Ko){var O_="oninput"in document;if(!O_){var WC=document.createElement("div");WC.setAttribute("oninput","return;"),O_=typeof WC.oninput=="function"}T_=O_}else T_=!1;oR=T_&&(!document.documentMode||9<document.documentMode)}function YC(){ef&&(ef.detachEvent("onpropertychange",aR),Df=ef=null)}function aR(e){if(e.propertyName==="value"&&by(Df)){var t=[];iR(t,Df,e,q2(e)),$A(u9,t)}}function f9(e,t,n){e==="focusin"?(YC(),ef=t,Df=n,ef.attachEvent("onpropertychange",aR)):e==="focusout"&&YC()}function h9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return by(Df)}function p9(e,t){if(e==="click")return by(t)}function m9(e,t){if(e==="input"||e==="change")return by(t)}function g9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qi=typeof Object.is=="function"?Object.is:g9;function If(e,t){if(qi(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(!ob.call(t,i)||!qi(e[i],t[i]))return!1}return!0}function GC(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qC(e,t){var n=GC(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=GC(n)}}function sR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lR(){for(var e=window,t=Lg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lg(e.document)}return t}function rS(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 v9(e){var t=lR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sR(n.ownerDocument.documentElement,n)){if(r!==null&&rS(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=qC(n,o);var a=qC(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 y9=Ko&&"documentMode"in document&&11>=document.documentMode,Ec=null,Eb=null,tf=null,Tb=!1;function ZC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tb||Ec==null||Ec!==Lg(r)||(r=Ec,"selectionStart"in r&&rS(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&&If(tf,r)||(tf=r,r=Ig(Eb,"onSelect"),0<r.length&&(t=new eS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ec)))}function qp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tc={animationend:qp("Animation","AnimationEnd"),animationiteration:qp("Animation","AnimationIteration"),animationstart:qp("Animation","AnimationStart"),transitionend:qp("Transition","TransitionEnd")},C_={},cR={};Ko&&(cR=document.createElement("div").style,"AnimationEvent"in window||(delete Tc.animationend.animation,delete Tc.animationiteration.animation,delete Tc.animationstart.animation),"TransitionEvent"in window||delete Tc.transitionend.transition);function wy(e){if(C_[e])return C_[e];if(!Tc[e])return e;var t=Tc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cR)return C_[e]=t[n];return e}var uR=wy("animationend"),dR=wy("animationiteration"),fR=wy("animationstart"),hR=wy("transitionend"),pR=new Map,KC="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 vs(e,t){pR.set(e,t),Nl(t,[e])}for(var k_=0;k_<KC.length;k_++){var P_=KC[k_],_9=P_.toLowerCase(),b9=P_[0].toUpperCase()+P_.slice(1);vs(_9,"on"+b9)}vs(uR,"onAnimationEnd");vs(dR,"onAnimationIteration");vs(fR,"onAnimationStart");vs("dblclick","onDoubleClick");vs("focusin","onFocus");vs("focusout","onBlur");vs(hR,"onTransitionEnd");eu("onMouseEnter",["mouseout","mouseover"]);eu("onMouseLeave",["mouseout","mouseover"]);eu("onPointerEnter",["pointerout","pointerover"]);eu("onPointerLeave",["pointerout","pointerover"]);Nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $d="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(" "),w9=new Set("cancel close invalid load scroll toggle".split(" ").concat($d));function QC(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,_B(r,t,void 0,e),e.currentTarget=null}function mR(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 a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;QC(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;QC(i,s,c),o=l}}}if(Mg)throw e=bb,Mg=!1,bb=null,e}function Lt(e,t){var n=t[Lb];n===void 0&&(n=t[Lb]=new Set);var r=e+"__bubble";n.has(r)||(gR(t,e,2,!1),n.add(r))}function L_(e,t,n){var r=0;t&&(r|=4),gR(n,e,r,t)}var Zp="_reactListening"+Math.random().toString(36).slice(2);function Ff(e){if(!e[Zp]){e[Zp]=!0,SA.forEach(function(n){n!=="selectionchange"&&(w9.has(n)||L_(n,!1,e),L_(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zp]||(t[Zp]=!0,L_("selectionchange",!1,t))}}function gR(e,t,n,r){switch(JA(t)){case 1:var i=RB;break;case 4:i=DB;break;default:i=X2}n=i.bind(null,t,n,e),i=void 0,!_b||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 j_(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Qs(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}$A(function(){var c=o,d=q2(n),f=[];e:{var p=pR.get(e);if(p!==void 0){var m=eS,v=e;switch(e){case"keypress":if(Xm(n)===0)break e;case"keydown":case"keyup":m=QB;break;case"focusin":v="focus",m=E_;break;case"focusout":v="blur",m=E_;break;case"beforeblur":case"afterblur":m=E_;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=$C;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=$B;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=e9;break;case uR:case dR:case fR:m=zB;break;case hR:m=n9;break;case"scroll":m=IB;break;case"wheel":m=i9;break;case"copy":case"cut":case"paste":m=HB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=BC}var y=(t&4)!==0,x=!y&&e==="scroll",_=y?p!==null?p+"Capture":null:p;y=[];for(var w=c,S;w!==null;){S=w;var E=S.stateNode;if(S.tag===5&&E!==null&&(S=E,_!==null&&(E=Mf(w,_),E!=null&&y.push($f(w,E,S)))),x)break;w=w.return}0<y.length&&(p=new m(p,v,null,n,d),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==vb&&(v=n.relatedTarget||n.fromElement)&&(Qs(v)||v[Qo]))break e;if((m||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?Qs(v):null,v!==null&&(x=Al(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(y=$C,E="onMouseLeave",_="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(y=BC,E="onPointerLeave",_="onPointerEnter",w="pointer"),x=m==null?p:Oc(m),S=v==null?p:Oc(v),p=new y(E,w+"leave",m,n,d),p.target=x,p.relatedTarget=S,E=null,Qs(d)===c&&(y=new y(_,w+"enter",v,n,d),y.target=S,y.relatedTarget=x,E=y),x=E,m&&v)t:{for(y=m,_=v,w=0,S=y;S;S=rc(S))w++;for(S=0,E=_;E;E=rc(E))S++;for(;0<w-S;)y=rc(y),w--;for(;0<S-w;)_=rc(_),S--;for(;w--;){if(y===_||_!==null&&y===_.alternate)break t;y=rc(y),_=rc(_)}y=null}else y=null;m!==null&&XC(f,p,m,y,!1),v!==null&&x!==null&&XC(f,x,v,y,!0)}}e:{if(p=c?Oc(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var O=d9;else if(HC(p))if(oR)O=m9;else{O=h9;var k=f9}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(O=p9);if(O&&(O=O(e,c))){iR(f,O,n,d);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&fb(p,"number",p.value)}switch(k=c?Oc(c):window,e){case"focusin":(HC(k)||k.contentEditable==="true")&&(Ec=k,Eb=c,tf=null);break;case"focusout":tf=Eb=Ec=null;break;case"mousedown":Tb=!0;break;case"contextmenu":case"mouseup":case"dragend":Tb=!1,ZC(f,n,d);break;case"selectionchange":if(y9)break;case"keydown":case"keyup":ZC(f,n,d)}var j;if(nS)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Sc?nR(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(tR&&n.locale!=="ko"&&(Sc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Sc&&(j=eR()):(Da=d,J2="value"in Da?Da.value:Da.textContent,Sc=!0)),k=Ig(c,R),0<k.length&&(R=new UC(R,e,null,n,d),f.push({event:R,listeners:k}),j?R.data=j:(j=rR(n),j!==null&&(R.data=j)))),(j=a9?s9(e,n):l9(e,n))&&(c=Ig(c,"onBeforeInput"),0<c.length&&(d=new UC("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=j))}mR(f,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ig(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($f(e,o,i)),o=Mf(e,t),o!=null&&r.push($f(e,o,i))),e=e.return}return r}function rc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function XC(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Mf(n,o),l!=null&&a.unshift($f(n,l,s))):i||(l=Mf(n,o),l!=null&&a.push($f(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var x9=/\r\n?/g,S9=/\u0000|\uFFFD/g;function JC(e){return(typeof e=="string"?e:""+e).replace(x9,`
|
||
`).replace(S9,"")}function Kp(e,t,n){if(t=JC(t),JC(e)!==t&&n)throw Error(Ee(425))}function Fg(){}var Ob=null,Cb=null;function kb(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 Pb=typeof setTimeout=="function"?setTimeout:void 0,E9=typeof clearTimeout=="function"?clearTimeout:void 0,ek=typeof Promise=="function"?Promise:void 0,T9=typeof queueMicrotask=="function"?queueMicrotask:typeof ek<"u"?function(e){return ek.resolve(null).then(e).catch(O9)}:Pb;function O9(e){setTimeout(function(){throw e})}function M_(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),Rf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Rf(t)}function Ka(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 tk(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 Fu=Math.random().toString(36).slice(2),uo="__reactFiber$"+Fu,Uf="__reactProps$"+Fu,Qo="__reactContainer$"+Fu,Lb="__reactEvents$"+Fu,C9="__reactListeners$"+Fu,k9="__reactHandles$"+Fu;function Qs(e){var t=e[uo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qo]||n[uo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tk(e);e!==null;){if(n=e[uo])return n;e=tk(e)}return t}e=n,n=e.parentNode}return null}function Dh(e){return e=e[uo]||e[Qo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Oc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function xy(e){return e[Uf]||null}var jb=[],Cc=-1;function ys(e){return{current:e}}function Rt(e){0>Cc||(e.current=jb[Cc],jb[Cc]=null,Cc--)}function Pt(e,t){Cc++,jb[Cc]=e.current,e.current=t}var ss={},lr=ys(ss),Pr=ys(!1),gl=ss;function tu(e,t){var n=e.type.contextTypes;if(!n)return ss;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 Lr(e){return e=e.childContextTypes,e!=null}function $g(){Rt(Pr),Rt(lr)}function nk(e,t,n){if(lr.current!==ss)throw Error(Ee(168));Pt(lr,t),Pt(Pr,n)}function vR(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,fB(e)||"Unknown",i));return Kt({},n,r)}function Ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ss,gl=lr.current,Pt(lr,e),Pt(Pr,Pr.current),!0}function rk(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=vR(e,t,gl),r.__reactInternalMemoizedMergedChildContext=e,Rt(Pr),Rt(lr),Pt(lr,e)):Rt(Pr),Pt(Pr,n)}var Fo=null,Sy=!1,N_=!1;function yR(e){Fo===null?Fo=[e]:Fo.push(e)}function P9(e){Sy=!0,yR(e)}function _s(){if(!N_&&Fo!==null){N_=!0;var e=0,t=wt;try{var n=Fo;for(wt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Fo=null,Sy=!1}catch(i){throw Fo!==null&&(Fo=Fo.slice(e+1)),VA(Z2,_s),i}finally{wt=t,N_=!1}}return null}var kc=[],Pc=0,Bg=null,zg=0,ci=[],ui=0,vl=null,zo=1,Vo="";function Bs(e,t){kc[Pc++]=zg,kc[Pc++]=Bg,Bg=e,zg=t}function _R(e,t,n){ci[ui++]=zo,ci[ui++]=Vo,ci[ui++]=vl,vl=e;var r=zo;e=Vo;var i=32-Wi(r)-1;r&=~(1<<i),n+=1;var o=32-Wi(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,zo=1<<32-Wi(t)+i|n<<i|r,Vo=o+e}else zo=1<<o|n<<i|r,Vo=e}function iS(e){e.return!==null&&(Bs(e,1),_R(e,1,0))}function oS(e){for(;e===Bg;)Bg=kc[--Pc],kc[Pc]=null,zg=kc[--Pc],kc[Pc]=null;for(;e===vl;)vl=ci[--ui],ci[ui]=null,Vo=ci[--ui],ci[ui]=null,zo=ci[--ui],ci[ui]=null}var Hr=null,zr=null,Bt=!1,Di=null;function bR(e,t){var n=fi(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 ik(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,Hr=e,zr=Ka(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Hr=e,zr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=vl!==null?{id:zo,overflow:Vo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=fi(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Hr=e,zr=null,!0):!1;default:return!1}}function Mb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nb(e){if(Bt){var t=zr;if(t){var n=t;if(!ik(e,t)){if(Mb(e))throw Error(Ee(418));t=Ka(n.nextSibling);var r=Hr;t&&ik(e,t)?bR(r,n):(e.flags=e.flags&-4097|2,Bt=!1,Hr=e)}}else{if(Mb(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,Bt=!1,Hr=e}}}function ok(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Hr=e}function Qp(e){if(e!==Hr)return!1;if(!Bt)return ok(e),Bt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kb(e.type,e.memoizedProps)),t&&(t=zr)){if(Mb(e))throw wR(),Error(Ee(418));for(;t;)bR(e,t),t=Ka(t.nextSibling)}if(ok(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){zr=Ka(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zr=null}}else zr=Hr?Ka(e.stateNode.nextSibling):null;return!0}function wR(){for(var e=zr;e;)e=Ka(e.nextSibling)}function nu(){zr=Hr=null,Bt=!1}function aS(e){Di===null?Di=[e]:Di.push(e)}var L9=ua.ReactCurrentBatchConfig;function Ai(e,t){if(e&&e.defaultProps){t=Kt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Vg=ys(null),Hg=null,Lc=null,sS=null;function lS(){sS=Lc=Hg=null}function cS(e){var t=Vg.current;Rt(Vg),e._currentValue=t}function Ab(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 Wc(e,t){Hg=e,sS=Lc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kr=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(sS!==e)if(e={context:e,memoizedValue:t,next:null},Lc===null){if(Hg===null)throw Error(Ee(308));Lc=e,Hg.dependencies={lanes:0,firstContext:e}}else Lc=Lc.next=e;return t}var Xs=null;function uS(e){Xs===null?Xs=[e]:Xs.push(e)}function xR(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uS(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xo(e,r)}function Xo(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 La=!1;function dS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function SR(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 Go(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ut&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xo(e,n)}return i=r.interleaved,i===null?(t.next=t,uS(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xo(e,n)}function Jm(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,K2(e,n)}}function ak(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,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 Wg(e,t,n,r){var i=e.updateQueue;La=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,d=c=l=null,s=o;do{var p=s.lane,m=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(p=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(m,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(m,f,p):v,p==null)break e;f=Kt({},f,p);break e;case 2:La=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=m,l=f):d=d.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);_l|=a,e.lanes=a,e.memoizedState=f}}function sk(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 ER=new xA.Component().refs;function Rb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Kt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ey={isMounted:function(e){return(e=e._reactInternals)?Al(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wr(),i=Ja(e),o=Go(r,i);o.payload=t,n!=null&&(o.callback=n),t=Qa(e,o,i),t!==null&&(Yi(t,e,i,r),Jm(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wr(),i=Ja(e),o=Go(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Qa(e,o,i),t!==null&&(Yi(t,e,i,r),Jm(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wr(),r=Ja(e),i=Go(n,r);i.tag=2,t!=null&&(i.callback=t),t=Qa(e,i,r),t!==null&&(Yi(t,e,r,n),Jm(t,e,r))}};function lk(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!If(n,r)||!If(i,o):!0}function TR(e,t,n){var r=!1,i=ss,o=t.contextType;return typeof o=="object"&&o!==null?o=_i(o):(i=Lr(t)?gl:lr.current,r=t.contextTypes,o=(r=r!=null)?tu(e,i):ss),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ey,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ck(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&&Ey.enqueueReplaceState(t,t.state,null)}function Db(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ER,dS(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=_i(o):(o=Lr(t)?gl:lr.current,i.context=tu(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Rb(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&&Ey.enqueueReplaceState(i,i.state,null),Wg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function _d(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(a){var s=i.refs;s===ER&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ee(284));if(!n._owner)throw Error(Ee(290,e))}return e}function Xp(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uk(e){var t=e._init;return t(e._payload)}function OR(e){function t(_,w){if(e){var S=_.deletions;S===null?(_.deletions=[w],_.flags|=16):S.push(w)}}function n(_,w){if(!e)return null;for(;w!==null;)t(_,w),w=w.sibling;return null}function r(_,w){for(_=new Map;w!==null;)w.key!==null?_.set(w.key,w):_.set(w.index,w),w=w.sibling;return _}function i(_,w){return _=es(_,w),_.index=0,_.sibling=null,_}function o(_,w,S){return _.index=S,e?(S=_.alternate,S!==null?(S=S.index,S<w?(_.flags|=2,w):S):(_.flags|=2,w)):(_.flags|=1048576,w)}function a(_){return e&&_.alternate===null&&(_.flags|=2),_}function s(_,w,S,E){return w===null||w.tag!==6?(w=U_(S,_.mode,E),w.return=_,w):(w=i(w,S),w.return=_,w)}function l(_,w,S,E){var O=S.type;return O===xc?d(_,w,S.props.children,E,S.key):w!==null&&(w.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Pa&&uk(O)===w.type)?(E=i(w,S.props),E.ref=_d(_,w,S),E.return=_,E):(E=og(S.type,S.key,S.props,null,_.mode,E),E.ref=_d(_,w,S),E.return=_,E)}function c(_,w,S,E){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=B_(S,_.mode,E),w.return=_,w):(w=i(w,S.children||[]),w.return=_,w)}function d(_,w,S,E,O){return w===null||w.tag!==7?(w=ol(S,_.mode,E,O),w.return=_,w):(w=i(w,S),w.return=_,w)}function f(_,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=U_(""+w,_.mode,S),w.return=_,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bp:return S=og(w.type,w.key,w.props,null,_.mode,S),S.ref=_d(_,null,w),S.return=_,S;case wc:return w=B_(w,_.mode,S),w.return=_,w;case Pa:var E=w._init;return f(_,E(w._payload),S)}if(Id(w)||pd(w))return w=ol(w,_.mode,S,null),w.return=_,w;Xp(_,w)}return null}function p(_,w,S,E){var O=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return O!==null?null:s(_,w,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Bp:return S.key===O?l(_,w,S,E):null;case wc:return S.key===O?c(_,w,S,E):null;case Pa:return O=S._init,p(_,w,O(S._payload),E)}if(Id(S)||pd(S))return O!==null?null:d(_,w,S,E,null);Xp(_,S)}return null}function m(_,w,S,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return _=_.get(S)||null,s(w,_,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Bp:return _=_.get(E.key===null?S:E.key)||null,l(w,_,E,O);case wc:return _=_.get(E.key===null?S:E.key)||null,c(w,_,E,O);case Pa:var k=E._init;return m(_,w,S,k(E._payload),O)}if(Id(E)||pd(E))return _=_.get(S)||null,d(w,_,E,O,null);Xp(w,E)}return null}function v(_,w,S,E){for(var O=null,k=null,j=w,R=w=0,U=null;j!==null&&R<S.length;R++){j.index>R?(U=j,j=null):U=j.sibling;var A=p(_,j,S[R],E);if(A===null){j===null&&(j=U);break}e&&j&&A.alternate===null&&t(_,j),w=o(A,w,R),k===null?O=A:k.sibling=A,k=A,j=U}if(R===S.length)return n(_,j),Bt&&Bs(_,R),O;if(j===null){for(;R<S.length;R++)j=f(_,S[R],E),j!==null&&(w=o(j,w,R),k===null?O=j:k.sibling=j,k=j);return Bt&&Bs(_,R),O}for(j=r(_,j);R<S.length;R++)U=m(j,_,R,S[R],E),U!==null&&(e&&U.alternate!==null&&j.delete(U.key===null?R:U.key),w=o(U,w,R),k===null?O=U:k.sibling=U,k=U);return e&&j.forEach(function(V){return t(_,V)}),Bt&&Bs(_,R),O}function y(_,w,S,E){var O=pd(S);if(typeof O!="function")throw Error(Ee(150));if(S=O.call(S),S==null)throw Error(Ee(151));for(var k=O=null,j=w,R=w=0,U=null,A=S.next();j!==null&&!A.done;R++,A=S.next()){j.index>R?(U=j,j=null):U=j.sibling;var V=p(_,j,A.value,E);if(V===null){j===null&&(j=U);break}e&&j&&V.alternate===null&&t(_,j),w=o(V,w,R),k===null?O=V:k.sibling=V,k=V,j=U}if(A.done)return n(_,j),Bt&&Bs(_,R),O;if(j===null){for(;!A.done;R++,A=S.next())A=f(_,A.value,E),A!==null&&(w=o(A,w,R),k===null?O=A:k.sibling=A,k=A);return Bt&&Bs(_,R),O}for(j=r(_,j);!A.done;R++,A=S.next())A=m(j,_,R,A.value,E),A!==null&&(e&&A.alternate!==null&&j.delete(A.key===null?R:A.key),w=o(A,w,R),k===null?O=A:k.sibling=A,k=A);return e&&j.forEach(function(W){return t(_,W)}),Bt&&Bs(_,R),O}function x(_,w,S,E){if(typeof S=="object"&&S!==null&&S.type===xc&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Bp:e:{for(var O=S.key,k=w;k!==null;){if(k.key===O){if(O=S.type,O===xc){if(k.tag===7){n(_,k.sibling),w=i(k,S.props.children),w.return=_,_=w;break e}}else if(k.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Pa&&uk(O)===k.type){n(_,k.sibling),w=i(k,S.props),w.ref=_d(_,k,S),w.return=_,_=w;break e}n(_,k);break}else t(_,k);k=k.sibling}S.type===xc?(w=ol(S.props.children,_.mode,E,S.key),w.return=_,_=w):(E=og(S.type,S.key,S.props,null,_.mode,E),E.ref=_d(_,w,S),E.return=_,_=E)}return a(_);case wc:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=i(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=B_(S,_.mode,E),w.return=_,_=w}return a(_);case Pa:return k=S._init,x(_,w,k(S._payload),E)}if(Id(S))return v(_,w,S,E);if(pd(S))return y(_,w,S,E);Xp(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=i(w,S),w.return=_,_=w):(n(_,w),w=U_(S,_.mode,E),w.return=_,_=w),a(_)):n(_,w)}return x}var ru=OR(!0),CR=OR(!1),Ih={},yo=ys(Ih),Bf=ys(Ih),zf=ys(Ih);function Js(e){if(e===Ih)throw Error(Ee(174));return e}function fS(e,t){switch(Pt(zf,t),Pt(Bf,e),Pt(yo,Ih),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pb(t,e)}Rt(yo),Pt(yo,t)}function iu(){Rt(yo),Rt(Bf),Rt(zf)}function kR(e){Js(zf.current);var t=Js(yo.current),n=pb(t,e.type);t!==n&&(Pt(Bf,e),Pt(yo,n))}function hS(e){Bf.current===e&&(Rt(yo),Rt(Bf))}var Yt=ys(0);function Yg(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 A_=[];function pS(){for(var e=0;e<A_.length;e++)A_[e]._workInProgressVersionPrimary=null;A_.length=0}var eg=ua.ReactCurrentDispatcher,R_=ua.ReactCurrentBatchConfig,yl=0,qt=null,wn=null,An=null,Gg=!1,nf=!1,Vf=0,j9=0;function er(){throw Error(Ee(321))}function mS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qi(e[n],t[n]))return!1;return!0}function gS(e,t,n,r,i,o){if(yl=o,qt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eg.current=e===null||e.memoizedState===null?R9:D9,e=n(r,i),nf){o=0;do{if(nf=!1,Vf=0,25<=o)throw Error(Ee(301));o+=1,An=wn=null,t.updateQueue=null,eg.current=I9,e=n(r,i)}while(nf)}if(eg.current=qg,t=wn!==null&&wn.next!==null,yl=0,An=wn=qt=null,Gg=!1,t)throw Error(Ee(300));return e}function vS(){var e=Vf!==0;return Vf=0,e}function so(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?qt.memoizedState=An=e:An=An.next=e,An}function bi(){if(wn===null){var e=qt.alternate;e=e!==null?e.memoizedState:null}else e=wn.next;var t=An===null?qt.memoizedState:An.next;if(t!==null)An=t,wn=e;else{if(e===null)throw Error(Ee(310));wn=e,e={memoizedState:wn.memoizedState,baseState:wn.baseState,baseQueue:wn.baseQueue,queue:wn.queue,next:null},An===null?qt.memoizedState=An=e:An=An.next=e}return An}function Hf(e,t){return typeof t=="function"?t(e):t}function D_(e){var t=bi(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=wn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var d=c.lane;if((yl&d)===d)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 f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=f,a=r):l=l.next=f,qt.lanes|=d,_l|=d}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,qi(r,t.memoizedState)||(kr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,qt.lanes|=o,_l|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function I_(e){var t=bi(),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 a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);qi(o,t.memoizedState)||(kr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function PR(){}function LR(e,t){var n=qt,r=bi(),i=t(),o=!qi(r.memoizedState,i);if(o&&(r.memoizedState=i,kr=!0),r=r.queue,yS(NR.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||An!==null&&An.memoizedState.tag&1){if(n.flags|=2048,Wf(9,MR.bind(null,n,r,i,t),void 0,null),Dn===null)throw Error(Ee(349));yl&30||jR(n,t,i)}return i}function jR(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qt.updateQueue,t===null?(t={lastEffect:null,stores:null},qt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function MR(e,t,n,r){t.value=n,t.getSnapshot=r,AR(t)&&RR(e)}function NR(e,t,n){return n(function(){AR(t)&&RR(e)})}function AR(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qi(e,n)}catch{return!0}}function RR(e){var t=Xo(e,1);t!==null&&Yi(t,e,1,-1)}function dk(e){var t=so();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hf,lastRenderedState:e},t.queue=e,e=e.dispatch=A9.bind(null,qt,e),[t.memoizedState,e]}function Wf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=qt.updateQueue,t===null?(t={lastEffect:null,stores:null},qt.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 DR(){return bi().memoizedState}function tg(e,t,n,r){var i=so();qt.flags|=e,i.memoizedState=Wf(1|t,n,void 0,r===void 0?null:r)}function Ty(e,t,n,r){var i=bi();r=r===void 0?null:r;var o=void 0;if(wn!==null){var a=wn.memoizedState;if(o=a.destroy,r!==null&&mS(r,a.deps)){i.memoizedState=Wf(t,n,o,r);return}}qt.flags|=e,i.memoizedState=Wf(1|t,n,o,r)}function fk(e,t){return tg(8390656,8,e,t)}function yS(e,t){return Ty(2048,8,e,t)}function IR(e,t){return Ty(4,2,e,t)}function FR(e,t){return Ty(4,4,e,t)}function $R(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 UR(e,t,n){return n=n!=null?n.concat([e]):null,Ty(4,4,$R.bind(null,t,e),n)}function _S(){}function BR(e,t){var n=bi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zR(e,t){var n=bi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function VR(e,t,n){return yl&21?(qi(n,t)||(n=YA(),qt.lanes|=n,_l|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kr=!0),e.memoizedState=n)}function M9(e,t){var n=wt;wt=n!==0&&4>n?n:4,e(!0);var r=R_.transition;R_.transition={};try{e(!1),t()}finally{wt=n,R_.transition=r}}function HR(){return bi().memoizedState}function N9(e,t,n){var r=Ja(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},WR(e))YR(t,n);else if(n=xR(e,t,n,r),n!==null){var i=wr();Yi(n,e,r,i),GR(n,t,r)}}function A9(e,t,n){var r=Ja(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(WR(e))YR(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,qi(s,a)){var l=t.interleaved;l===null?(i.next=i,uS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=xR(e,t,i,r),n!==null&&(i=wr(),Yi(n,e,r,i),GR(n,t,r))}}function WR(e){var t=e.alternate;return e===qt||t!==null&&t===qt}function YR(e,t){nf=Gg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GR(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,K2(e,n)}}var qg={readContext:_i,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},R9={readContext:_i,useCallback:function(e,t){return so().memoizedState=[e,t===void 0?null:t],e},useContext:_i,useEffect:fk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tg(4194308,4,$R.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tg(4194308,4,e,t)},useInsertionEffect:function(e,t){return tg(4,2,e,t)},useMemo:function(e,t){var n=so();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=so();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=N9.bind(null,qt,e),[r.memoizedState,e]},useRef:function(e){var t=so();return e={current:e},t.memoizedState=e},useState:dk,useDebugValue:_S,useDeferredValue:function(e){return so().memoizedState=e},useTransition:function(){var e=dk(!1),t=e[0];return e=M9.bind(null,e[1]),so().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qt,i=so();if(Bt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),Dn===null)throw Error(Ee(349));yl&30||jR(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fk(NR.bind(null,r,o,e),[e]),r.flags|=2048,Wf(9,MR.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=so(),t=Dn.identifierPrefix;if(Bt){var n=Vo,r=zo;n=(r&~(1<<32-Wi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=j9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},D9={readContext:_i,useCallback:BR,useContext:_i,useEffect:yS,useImperativeHandle:UR,useInsertionEffect:IR,useLayoutEffect:FR,useMemo:zR,useReducer:D_,useRef:DR,useState:function(){return D_(Hf)},useDebugValue:_S,useDeferredValue:function(e){var t=bi();return VR(t,wn.memoizedState,e)},useTransition:function(){var e=D_(Hf)[0],t=bi().memoizedState;return[e,t]},useMutableSource:PR,useSyncExternalStore:LR,useId:HR,unstable_isNewReconciler:!1},I9={readContext:_i,useCallback:BR,useContext:_i,useEffect:yS,useImperativeHandle:UR,useInsertionEffect:IR,useLayoutEffect:FR,useMemo:zR,useReducer:I_,useRef:DR,useState:function(){return I_(Hf)},useDebugValue:_S,useDeferredValue:function(e){var t=bi();return wn===null?t.memoizedState=e:VR(t,wn.memoizedState,e)},useTransition:function(){var e=I_(Hf)[0],t=bi().memoizedState;return[e,t]},useMutableSource:PR,useSyncExternalStore:LR,useId:HR,unstable_isNewReconciler:!1};function ou(e,t){try{var n="",r=t;do n+=dB(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 F_(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ib(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var F9=typeof WeakMap=="function"?WeakMap:Map;function qR(e,t,n){n=Go(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kg||(Kg=!0,Gb=r),Ib(e,t)},n}function ZR(e,t,n){n=Go(-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(){Ib(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ib(e,t),typeof r!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function hk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new F9;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=X9.bind(null,e,t,n),t.then(e,e))}function pk(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 mk(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=Go(-1,1),t.tag=2,Qa(n,t,1))),n.lanes|=1),e)}var $9=ua.ReactCurrentOwner,kr=!1;function gr(e,t,n,r){t.child=e===null?CR(t,null,n,r):ru(t,e.child,n,r)}function gk(e,t,n,r,i){n=n.render;var o=t.ref;return Wc(t,i),r=gS(e,t,n,r,o,i),n=vS(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Jo(e,t,i)):(Bt&&n&&iS(t),t.flags|=1,gr(e,t,r,i),t.child)}function vk(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!CS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,KR(e,t,o,r,i)):(e=og(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 a=o.memoizedProps;if(n=n.compare,n=n!==null?n:If,n(a,r)&&e.ref===t.ref)return Jo(e,t,i)}return t.flags|=1,e=es(o,r),e.ref=t.ref,e.return=t,t.child=e}function KR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(If(o,r)&&e.ref===t.ref)if(kr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(kr=!0);else return t.lanes=e.lanes,Jo(e,t,i)}return Fb(e,t,n,r,i)}function QR(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},Pt(Mc,Ur),Ur|=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,Pt(Mc,Ur),Ur|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Pt(Mc,Ur),Ur|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Pt(Mc,Ur),Ur|=r;return gr(e,t,i,n),t.child}function XR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fb(e,t,n,r,i){var o=Lr(n)?gl:lr.current;return o=tu(t,o),Wc(t,i),n=gS(e,t,n,r,o,i),r=vS(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Jo(e,t,i)):(Bt&&r&&iS(t),t.flags|=1,gr(e,t,n,i),t.child)}function yk(e,t,n,r,i){if(Lr(n)){var o=!0;Ug(t)}else o=!1;if(Wc(t,i),t.stateNode===null)ng(e,t),TR(t,n,r),Db(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=_i(c):(c=Lr(n)?gl:lr.current,c=tu(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&ck(t,a,r,c),La=!1;var p=t.memoizedState;a.state=p,Wg(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Pr.current||La?(typeof d=="function"&&(Rb(t,n,d,r),l=t.memoizedState),(s=La||lk(t,n,s,r,p,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,SR(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ai(t.type,s),a.props=c,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=_i(l):(l=Lr(n)?gl:lr.current,l=tu(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&ck(t,a,r,l),La=!1,p=t.memoizedState,a.state=p,Wg(t,r,a,i);var v=t.memoizedState;s!==f||p!==v||Pr.current||La?(typeof m=="function"&&(Rb(t,n,m,r),v=t.memoizedState),(c=La||lk(t,n,c,r,p,v,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $b(e,t,n,r,o,i)}function $b(e,t,n,r,i,o){XR(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&rk(t,n,!1),Jo(e,t,o);r=t.stateNode,$9.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ru(t,e.child,null,o),t.child=ru(t,null,s,o)):gr(e,t,s,o),t.memoizedState=r.state,i&&rk(t,n,!0),t.child}function JR(e){var t=e.stateNode;t.pendingContext?nk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nk(e,t.context,!1),fS(e,t.containerInfo)}function _k(e,t,n,r,i){return nu(),aS(i),t.flags|=256,gr(e,t,n,r),t.child}var Ub={dehydrated:null,treeContext:null,retryLane:0};function Bb(e){return{baseLanes:e,cachePool:null,transitions:null}}function eD(e,t,n){var r=t.pendingProps,i=Yt.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Pt(Yt,i&1),e===null)return Nb(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):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=ky(a,r,0,null),e=ol(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Bb(n),t.memoizedState=Ub,e):bS(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return U9(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=es(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=es(s,o):(o=ol(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Bb(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Ub,r}return o=e.child,e=o.sibling,r=es(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 bS(e,t){return t=ky({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Jp(e,t,n,r){return r!==null&&aS(r),ru(t,e.child,null,n),e=bS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function U9(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=F_(Error(Ee(422))),Jp(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ky({mode:"visible",children:r.children},i,0,null),o=ol(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ru(t,e.child,null,a),t.child.memoizedState=Bb(a),t.memoizedState=Ub,o);if(!(t.mode&1))return Jp(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Ee(419)),r=F_(o,r,void 0),Jp(e,t,a,r)}if(s=(a&e.childLanes)!==0,kr||s){if(r=Dn,r!==null){switch(a&-a){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|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Xo(e,i),Yi(r,e,i,-1))}return OS(),r=F_(Error(Ee(421))),Jp(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=J9.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,zr=Ka(i.nextSibling),Hr=t,Bt=!0,Di=null,e!==null&&(ci[ui++]=zo,ci[ui++]=Vo,ci[ui++]=vl,zo=e.id,Vo=e.overflow,vl=t),t=bS(t,r.children),t.flags|=4096,t)}function bk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ab(e.return,t,n)}function $_(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 tD(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(gr(e,t,r.children,n),r=Yt.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&&bk(e,n,t);else if(e.tag===19)bk(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(Pt(Yt,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&&Yg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$_(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&&Yg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$_(t,!0,n,null,o);break;case"together":$_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ng(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_l|=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=es(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=es(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function B9(e,t,n){switch(t.tag){case 3:JR(t),nu();break;case 5:kR(t);break;case 1:Lr(t.type)&&Ug(t);break;case 4:fS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Pt(Vg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pt(Yt,Yt.current&1),t.flags|=128,null):n&t.child.childLanes?eD(e,t,n):(Pt(Yt,Yt.current&1),e=Jo(e,t,n),e!==null?e.sibling:null);Pt(Yt,Yt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tD(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pt(Yt,Yt.current),r)break;return null;case 22:case 23:return t.lanes=0,QR(e,t,n)}return Jo(e,t,n)}var nD,zb,rD,iD;nD=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}};zb=function(){};rD=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Js(yo.current);var o=null;switch(n){case"input":i=ub(e,i),r=ub(e,r),o=[];break;case"select":i=Kt({},i,{value:void 0}),r=Kt({},r,{value:void 0}),o=[];break;case"textarea":i=hb(e,i),r=hb(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fg)}mb(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lf.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Lt("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};iD=function(e,t,n,r){n!==r&&(t.flags|=4)};function bd(e,t){if(!Bt)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 tr(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 z9(e,t,n){var r=t.pendingProps;switch(oS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tr(t),null;case 1:return Lr(t.type)&&$g(),tr(t),null;case 3:return r=t.stateNode,iu(),Rt(Pr),Rt(lr),pS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Di!==null&&(Kb(Di),Di=null))),zb(e,t),tr(t),null;case 5:hS(t);var i=Js(zf.current);if(n=t.type,e!==null&&t.stateNode!=null)rD(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 tr(t),null}if(e=Js(yo.current),Qp(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[uo]=t,r[Uf]=o,e=(t.mode&1)!==0,n){case"dialog":Lt("cancel",r),Lt("close",r);break;case"iframe":case"object":case"embed":Lt("load",r);break;case"video":case"audio":for(i=0;i<$d.length;i++)Lt($d[i],r);break;case"source":Lt("error",r);break;case"img":case"image":case"link":Lt("error",r),Lt("load",r);break;case"details":Lt("toggle",r);break;case"input":PC(r,o),Lt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Lt("invalid",r);break;case"textarea":jC(r,o),Lt("invalid",r)}mb(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Kp(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Kp(r.textContent,s,e),i=["children",""+s]):Lf.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Lt("scroll",r)}switch(n){case"input":zp(r),LC(r,o,!0);break;case"textarea":zp(r),MC(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Fg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=jA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[uo]=t,e[Uf]=r,nD(e,t,!1,!1),t.stateNode=e;e:{switch(a=gb(n,r),n){case"dialog":Lt("cancel",e),Lt("close",e),i=r;break;case"iframe":case"object":case"embed":Lt("load",e),i=r;break;case"video":case"audio":for(i=0;i<$d.length;i++)Lt($d[i],e);i=r;break;case"source":Lt("error",e),i=r;break;case"img":case"image":case"link":Lt("error",e),Lt("load",e),i=r;break;case"details":Lt("toggle",e),i=r;break;case"input":PC(e,r),i=ub(e,r),Lt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Kt({},r,{value:void 0}),Lt("invalid",e);break;case"textarea":jC(e,r),i=hb(e,r),Lt("invalid",e);break;default:i=r}mb(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?AA(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&MA(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&jf(e,l):typeof l=="number"&&jf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Lf.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Lt("scroll",e):l!=null&&H2(e,o,l,a))}switch(n){case"input":zp(e),LC(e,r,!1);break;case"textarea":zp(e),MC(e);break;case"option":r.value!=null&&e.setAttribute("value",""+as(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Bc(e,!!r.multiple,o,!1):r.defaultValue!=null&&Bc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Fg)}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 tr(t),null;case 6:if(e&&t.stateNode!=null)iD(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=Js(zf.current),Js(yo.current),Qp(t)){if(r=t.stateNode,n=t.memoizedProps,r[uo]=t,(o=r.nodeValue!==n)&&(e=Hr,e!==null))switch(e.tag){case 3:Kp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Kp(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[uo]=t,t.stateNode=r}return tr(t),null;case 13:if(Rt(Yt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Bt&&zr!==null&&t.mode&1&&!(t.flags&128))wR(),nu(),t.flags|=98560,o=!1;else if(o=Qp(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[uo]=t}else nu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tr(t),o=!1}else Di!==null&&(Kb(Di),Di=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||Yt.current&1?xn===0&&(xn=3):OS())),t.updateQueue!==null&&(t.flags|=4),tr(t),null);case 4:return iu(),zb(e,t),e===null&&Ff(t.stateNode.containerInfo),tr(t),null;case 10:return cS(t.type._context),tr(t),null;case 17:return Lr(t.type)&&$g(),tr(t),null;case 19:if(Rt(Yt),o=t.memoizedState,o===null)return tr(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)bd(o,!1);else{if(xn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Yg(e),a!==null){for(t.flags|=128,bd(o,!1),r=a.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,a=o.alternate,a===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=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pt(Yt,Yt.current&1|2),t.child}e=e.sibling}o.tail!==null&&un()>au&&(t.flags|=128,r=!0,bd(o,!1),t.lanes=4194304)}else{if(!r)if(e=Yg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Bt)return tr(t),null}else 2*un()-o.renderingStartTime>au&&n!==1073741824&&(t.flags|=128,r=!0,bd(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=un(),t.sibling=null,n=Yt.current,Pt(Yt,r?n&1|2:n&1),t):(tr(t),null);case 22:case 23:return TS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ur&1073741824&&(tr(t),t.subtreeFlags&6&&(t.flags|=8192)):tr(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function V9(e,t){switch(oS(t),t.tag){case 1:return Lr(t.type)&&$g(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return iu(),Rt(Pr),Rt(lr),pS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hS(t),null;case 13:if(Rt(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));nu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rt(Yt),null;case 4:return iu(),null;case 10:return cS(t.type._context),null;case 22:case 23:return TS(),null;case 24:return null;default:return null}}var em=!1,or=!1,H9=typeof WeakSet=="function"?WeakSet:Set,$e=null;function jc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){en(e,t,r)}else n.current=null}function Vb(e,t,n){try{n()}catch(r){en(e,t,r)}}var wk=!1;function W9(e,t){if(Ob=Rg,e=lR(),rS(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 a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=a),p===o&&++d===r&&(l=a),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cb={focusedElem:e,selectionRange:n},Rg=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ai(t.type,y),x);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(E){en(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return v=wk,wk=!1,v}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&&Vb(t,n,o)}i=i.next}while(i!==r)}}function Oy(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 Hb(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 oD(e){var t=e.alternate;t!==null&&(e.alternate=null,oD(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[uo],delete t[Uf],delete t[Lb],delete t[C9],delete t[k9])),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 aD(e){return e.tag===5||e.tag===3||e.tag===4}function xk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aD(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 Wb(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=Fg));else if(r!==4&&(e=e.child,e!==null))for(Wb(e,t,n),e=e.sibling;e!==null;)Wb(e,t,n),e=e.sibling}function Yb(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(Yb(e,t,n),e=e.sibling;e!==null;)Yb(e,t,n),e=e.sibling}var Qn=null,Ri=!1;function xa(e,t,n){for(n=n.child;n!==null;)sD(e,t,n),n=n.sibling}function sD(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(yy,n)}catch{}switch(n.tag){case 5:or||jc(n,t);case 6:var r=Qn,i=Ri;Qn=null,xa(e,t,n),Qn=r,Ri=i,Qn!==null&&(Ri?(e=Qn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qn.removeChild(n.stateNode));break;case 18:Qn!==null&&(Ri?(e=Qn,n=n.stateNode,e.nodeType===8?M_(e.parentNode,n):e.nodeType===1&&M_(e,n),Rf(e)):M_(Qn,n.stateNode));break;case 4:r=Qn,i=Ri,Qn=n.stateNode.containerInfo,Ri=!0,xa(e,t,n),Qn=r,Ri=i;break;case 0:case 11:case 14:case 15:if(!or&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Vb(n,t,a),i=i.next}while(i!==r)}xa(e,t,n);break;case 1:if(!or&&(jc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){en(n,t,s)}xa(e,t,n);break;case 21:xa(e,t,n);break;case 22:n.mode&1?(or=(r=or)||n.memoizedState!==null,xa(e,t,n),or=r):xa(e,t,n);break;default:xa(e,t,n)}}function Sk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new H9),t.forEach(function(r){var i=ez.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ni(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,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Qn=s.stateNode,Ri=!1;break e;case 3:Qn=s.stateNode.containerInfo,Ri=!0;break e;case 4:Qn=s.stateNode.containerInfo,Ri=!0;break e}s=s.return}if(Qn===null)throw Error(Ee(160));sD(o,a,i),Qn=null,Ri=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){en(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lD(t,e),t=t.sibling}function lD(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ni(t,e),ro(e),r&4){try{rf(3,e,e.return),Oy(3,e)}catch(y){en(e,e.return,y)}try{rf(5,e,e.return)}catch(y){en(e,e.return,y)}}break;case 1:Ni(t,e),ro(e),r&512&&n!==null&&jc(n,n.return);break;case 5:if(Ni(t,e),ro(e),r&512&&n!==null&&jc(n,n.return),e.flags&32){var i=e.stateNode;try{jf(i,"")}catch(y){en(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&PA(i,o),gb(s,a);var c=gb(s,o);for(a=0;a<l.length;a+=2){var d=l[a],f=l[a+1];d==="style"?AA(i,f):d==="dangerouslySetInnerHTML"?MA(i,f):d==="children"?jf(i,f):H2(i,d,f,c)}switch(s){case"input":db(i,o);break;case"textarea":LA(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Bc(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?Bc(i,!!o.multiple,o.defaultValue,!0):Bc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Uf]=o}catch(y){en(e,e.return,y)}}break;case 6:if(Ni(t,e),ro(e),r&4){if(e.stateNode===null)throw Error(Ee(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){en(e,e.return,y)}}break;case 3:if(Ni(t,e),ro(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Rf(t.containerInfo)}catch(y){en(e,e.return,y)}break;case 4:Ni(t,e),ro(e);break;case 13:Ni(t,e),ro(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(SS=un())),r&4&&Sk(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(or=(c=or)||d,Ni(t,e),or=c):Ni(t,e),ro(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for($e=e,d=e.child;d!==null;){for(f=$e=d;$e!==null;){switch(p=$e,m=p.child,p.tag){case 0:case 11:case 14:case 15:rf(4,p,p.return);break;case 1:jc(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){en(r,n,y)}}break;case 5:jc(p,p.return);break;case 22:if(p.memoizedState!==null){Tk(f);continue}}m!==null?(m.return=p,$e=m):Tk(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=NA("display",a))}catch(y){en(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(y){en(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ni(t,e),ro(e),r&4&&Sk(e);break;case 21:break;default:Ni(t,e),ro(e)}}function ro(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(aD(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&&(jf(i,""),r.flags&=-33);var o=xk(e);Yb(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=xk(e);Wb(e,s,a);break;default:throw Error(Ee(161))}}catch(l){en(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Y9(e,t,n){$e=e,cD(e)}function cD(e,t,n){for(var r=(e.mode&1)!==0;$e!==null;){var i=$e,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||em;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||or;s=em;var c=or;if(em=a,(or=l)&&!c)for($e=i;$e!==null;)a=$e,l=a.child,a.tag===22&&a.memoizedState!==null?Ok(i):l!==null?(l.return=a,$e=l):Ok(i);for(;o!==null;)$e=o,cD(o),o=o.sibling;$e=i,em=s,or=c}Ek(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):Ek(e)}}function Ek(e){for(;$e!==null;){var t=$e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:or||Oy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!or)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ai(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&sk(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}sk(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;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 d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Rf(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}or||t.flags&512&&Hb(t)}catch(p){en(t,t.return,p)}}if(t===e){$e=null;break}if(n=t.sibling,n!==null){n.return=t.return,$e=n;break}$e=t.return}}function Tk(e){for(;$e!==null;){var t=$e;if(t===e){$e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$e=n;break}$e=t.return}}function Ok(e){for(;$e!==null;){var t=$e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Oy(4,t)}catch(l){en(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){en(t,i,l)}}var o=t.return;try{Hb(t)}catch(l){en(t,o,l)}break;case 5:var a=t.return;try{Hb(t)}catch(l){en(t,a,l)}}}catch(l){en(t,t.return,l)}if(t===e){$e=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$e=s;break}$e=t.return}}var G9=Math.ceil,Zg=ua.ReactCurrentDispatcher,wS=ua.ReactCurrentOwner,pi=ua.ReactCurrentBatchConfig,ut=0,Dn=null,_n=null,Xn=0,Ur=0,Mc=ys(0),xn=0,Yf=null,_l=0,Cy=0,xS=0,of=null,Or=null,SS=0,au=1/0,Io=null,Kg=!1,Gb=null,Xa=null,tm=!1,Ia=null,Qg=0,af=0,qb=null,rg=-1,ig=0;function wr(){return ut&6?un():rg!==-1?rg:rg=un()}function Ja(e){return e.mode&1?ut&2&&Xn!==0?Xn&-Xn:L9.transition!==null?(ig===0&&(ig=YA()),ig):(e=wt,e!==0||(e=window.event,e=e===void 0?16:JA(e.type)),e):1}function Yi(e,t,n,r){if(50<af)throw af=0,qb=null,Error(Ee(185));Ah(e,n,r),(!(ut&2)||e!==Dn)&&(e===Dn&&(!(ut&2)&&(Cy|=n),xn===4&&Aa(e,Xn)),jr(e,r),n===1&&ut===0&&!(t.mode&1)&&(au=un()+500,Sy&&_s()))}function jr(e,t){var n=e.callbackNode;LB(e,t);var r=Ag(e,e===Dn?Xn:0);if(r===0)n!==null&&RC(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&RC(n),t===1)e.tag===0?P9(Ck.bind(null,e)):yR(Ck.bind(null,e)),T9(function(){!(ut&6)&&_s()}),n=null;else{switch(GA(r)){case 1:n=Z2;break;case 4:n=HA;break;case 16:n=Ng;break;case 536870912:n=WA;break;default:n=Ng}n=vD(n,uD.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uD(e,t){if(rg=-1,ig=0,ut&6)throw Error(Ee(327));var n=e.callbackNode;if(Yc()&&e.callbackNode!==n)return null;var r=Ag(e,e===Dn?Xn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xg(e,r);else{t=r;var i=ut;ut|=2;var o=fD();(Dn!==e||Xn!==t)&&(Io=null,au=un()+500,il(e,t));do try{K9();break}catch(s){dD(e,s)}while(1);lS(),Zg.current=o,ut=i,_n!==null?t=0:(Dn=null,Xn=0,t=xn)}if(t!==0){if(t===2&&(i=wb(e),i!==0&&(r=i,t=Zb(e,i))),t===1)throw n=Yf,il(e,0),Aa(e,r),jr(e,un()),n;if(t===6)Aa(e,r);else{if(i=e.current.alternate,!(r&30)&&!q9(i)&&(t=Xg(e,r),t===2&&(o=wb(e),o!==0&&(r=o,t=Zb(e,o))),t===1))throw n=Yf,il(e,0),Aa(e,r),jr(e,un()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:zs(e,Or,Io);break;case 3:if(Aa(e,r),(r&130023424)===r&&(t=SS+500-un(),10<t)){if(Ag(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){wr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Pb(zs.bind(null,e,Or,Io),t);break}zs(e,Or,Io);break;case 4:if(Aa(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Wi(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*G9(r/1960))-r,10<r){e.timeoutHandle=Pb(zs.bind(null,e,Or,Io),r);break}zs(e,Or,Io);break;case 5:zs(e,Or,Io);break;default:throw Error(Ee(329))}}}return jr(e,un()),e.callbackNode===n?uD.bind(null,e):null}function Zb(e,t){var n=of;return e.current.memoizedState.isDehydrated&&(il(e,t).flags|=256),e=Xg(e,t),e!==2&&(t=Or,Or=n,t!==null&&Kb(t)),e}function Kb(e){Or===null?Or=e:Or.push.apply(Or,e)}function q9(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(!qi(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 Aa(e,t){for(t&=~xS,t&=~Cy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wi(t),r=1<<n;e[n]=-1,t&=~r}}function Ck(e){if(ut&6)throw Error(Ee(327));Yc();var t=Ag(e,0);if(!(t&1))return jr(e,un()),null;var n=Xg(e,t);if(e.tag!==0&&n===2){var r=wb(e);r!==0&&(t=r,n=Zb(e,r))}if(n===1)throw n=Yf,il(e,0),Aa(e,t),jr(e,un()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zs(e,Or,Io),jr(e,un()),null}function ES(e,t){var n=ut;ut|=1;try{return e(t)}finally{ut=n,ut===0&&(au=un()+500,Sy&&_s())}}function bl(e){Ia!==null&&Ia.tag===0&&!(ut&6)&&Yc();var t=ut;ut|=1;var n=pi.transition,r=wt;try{if(pi.transition=null,wt=1,e)return e()}finally{wt=r,pi.transition=n,ut=t,!(ut&6)&&_s()}}function TS(){Ur=Mc.current,Rt(Mc)}function il(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,E9(n)),_n!==null)for(n=_n.return;n!==null;){var r=n;switch(oS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$g();break;case 3:iu(),Rt(Pr),Rt(lr),pS();break;case 5:hS(r);break;case 4:iu();break;case 13:Rt(Yt);break;case 19:Rt(Yt);break;case 10:cS(r.type._context);break;case 22:case 23:TS()}n=n.return}if(Dn=e,_n=e=es(e.current,null),Xn=Ur=t,xn=0,Yf=null,xS=Cy=_l=0,Or=of=null,Xs!==null){for(t=0;t<Xs.length;t++)if(n=Xs[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Xs=null}return e}function dD(e,t){do{var n=_n;try{if(lS(),eg.current=qg,Gg){for(var r=qt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Gg=!1}if(yl=0,An=wn=qt=null,nf=!1,Vf=0,wS.current=null,n===null||n.return===null){xn=1,Yf=t,_n=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Xn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=pk(a);if(m!==null){m.flags&=-257,mk(m,a,s,o,t),m.mode&1&&hk(o,c,t),t=m,l=c;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){hk(o,c,t),OS();break e}l=Error(Ee(426))}}else if(Bt&&s.mode&1){var x=pk(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),mk(x,a,s,o,t),aS(ou(l,s));break e}}o=l=ou(l,s),xn!==4&&(xn=2),of===null?of=[o]:of.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=qR(o,l,t);ak(o,_);break e;case 1:s=l;var w=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Xa===null||!Xa.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=ZR(o,s,t);ak(o,E);break e}}o=o.return}while(o!==null)}pD(n)}catch(O){t=O,_n===n&&n!==null&&(_n=n=n.return);continue}break}while(1)}function fD(){var e=Zg.current;return Zg.current=qg,e===null?qg:e}function OS(){(xn===0||xn===3||xn===2)&&(xn=4),Dn===null||!(_l&268435455)&&!(Cy&268435455)||Aa(Dn,Xn)}function Xg(e,t){var n=ut;ut|=2;var r=fD();(Dn!==e||Xn!==t)&&(Io=null,il(e,t));do try{Z9();break}catch(i){dD(e,i)}while(1);if(lS(),ut=n,Zg.current=r,_n!==null)throw Error(Ee(261));return Dn=null,Xn=0,xn}function Z9(){for(;_n!==null;)hD(_n)}function K9(){for(;_n!==null&&!wB();)hD(_n)}function hD(e){var t=gD(e.alternate,e,Ur);e.memoizedProps=e.pendingProps,t===null?pD(e):_n=t,wS.current=null}function pD(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=V9(n,t),n!==null){n.flags&=32767,_n=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xn=6,_n=null;return}}else if(n=z9(n,t,Ur),n!==null){_n=n;return}if(t=t.sibling,t!==null){_n=t;return}_n=t=e}while(t!==null);xn===0&&(xn=5)}function zs(e,t,n){var r=wt,i=pi.transition;try{pi.transition=null,wt=1,Q9(e,t,n,r)}finally{pi.transition=i,wt=r}return null}function Q9(e,t,n,r){do Yc();while(Ia!==null);if(ut&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(jB(e,o),e===Dn&&(_n=Dn=null,Xn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||tm||(tm=!0,vD(Ng,function(){return Yc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pi.transition,pi.transition=null;var a=wt;wt=1;var s=ut;ut|=4,wS.current=null,W9(e,n),lD(n,e),v9(Cb),Rg=!!Ob,Cb=Ob=null,e.current=n,Y9(n),xB(),ut=s,wt=a,pi.transition=o}else e.current=n;if(tm&&(tm=!1,Ia=e,Qg=i),o=e.pendingLanes,o===0&&(Xa=null),TB(n.stateNode),jr(e,un()),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(Kg)throw Kg=!1,e=Gb,Gb=null,e;return Qg&1&&e.tag!==0&&Yc(),o=e.pendingLanes,o&1?e===qb?af++:(af=0,qb=e):af=0,_s(),null}function Yc(){if(Ia!==null){var e=GA(Qg),t=pi.transition,n=wt;try{if(pi.transition=null,wt=16>e?16:e,Ia===null)var r=!1;else{if(e=Ia,Ia=null,Qg=0,ut&6)throw Error(Ee(331));var i=ut;for(ut|=4,$e=e.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for($e=c;$e!==null;){var d=$e;switch(d.tag){case 0:case 11:case 15:rf(8,d,o)}var f=d.child;if(f!==null)f.return=d,$e=f;else for(;$e!==null;){d=$e;var p=d.sibling,m=d.return;if(oD(d),d===c){$e=null;break}if(p!==null){p.return=m,$e=p;break}$e=m}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}$e=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,$e=a;else e:for(;$e!==null;){if(o=$e,o.flags&2048)switch(o.tag){case 0:case 11:case 15:rf(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,$e=_;break e}$e=o.return}}var w=e.current;for($e=w;$e!==null;){a=$e;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,$e=S;else e:for(a=w;$e!==null;){if(s=$e,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Oy(9,s)}}catch(O){en(s,s.return,O)}if(s===a){$e=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,$e=E;break e}$e=s.return}}if(ut=i,_s(),vo&&typeof vo.onPostCommitFiberRoot=="function")try{vo.onPostCommitFiberRoot(yy,e)}catch{}r=!0}return r}finally{wt=n,pi.transition=t}}return!1}function kk(e,t,n){t=ou(n,t),t=qR(e,t,1),e=Qa(e,t,1),t=wr(),e!==null&&(Ah(e,1,t),jr(e,t))}function en(e,t,n){if(e.tag===3)kk(e,e,n);else for(;t!==null;){if(t.tag===3){kk(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xa===null||!Xa.has(r))){e=ou(n,e),e=ZR(t,e,1),t=Qa(t,e,1),e=wr(),t!==null&&(Ah(t,1,e),jr(t,e));break}}t=t.return}}function X9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wr(),e.pingedLanes|=e.suspendedLanes&n,Dn===e&&(Xn&n)===n&&(xn===4||xn===3&&(Xn&130023424)===Xn&&500>un()-SS?il(e,0):xS|=n),jr(e,t)}function mD(e,t){t===0&&(e.mode&1?(t=Wp,Wp<<=1,!(Wp&130023424)&&(Wp=4194304)):t=1);var n=wr();e=Xo(e,t),e!==null&&(Ah(e,t,n),jr(e,n))}function J9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mD(e,n)}function ez(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),mD(e,n)}var gD;gD=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pr.current)kr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return kr=!1,B9(e,t,n);kr=!!(e.flags&131072)}else kr=!1,Bt&&t.flags&1048576&&_R(t,zg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ng(e,t),e=t.pendingProps;var i=tu(t,lr.current);Wc(t,n),i=gS(null,t,r,e,i,n);var o=vS();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,Lr(r)?(o=!0,Ug(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dS(t),i.updater=Ey,t.stateNode=i,i._reactInternals=t,Db(t,r,e,n),t=$b(null,t,r,!0,o,n)):(t.tag=0,Bt&&o&&iS(t),gr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ng(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=nz(r),e=Ai(r,e),i){case 0:t=Fb(null,t,r,e,n);break e;case 1:t=yk(null,t,r,e,n);break e;case 11:t=gk(null,t,r,e,n);break e;case 14:t=vk(null,t,r,Ai(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:Ai(r,i),Fb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ai(r,i),yk(e,t,r,i,n);case 3:e:{if(JR(t),e===null)throw Error(Ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,SR(e,t),Wg(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ou(Error(Ee(423)),t),t=_k(e,t,r,n,i);break e}else if(r!==i){i=ou(Error(Ee(424)),t),t=_k(e,t,r,n,i);break e}else for(zr=Ka(t.stateNode.containerInfo.firstChild),Hr=t,Bt=!0,Di=null,n=CR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nu(),r===i){t=Jo(e,t,n);break e}gr(e,t,r,n)}t=t.child}return t;case 5:return kR(t),e===null&&Nb(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,kb(r,i)?a=null:o!==null&&kb(r,o)&&(t.flags|=32),XR(e,t),gr(e,t,a,n),t.child;case 6:return e===null&&Nb(t),null;case 13:return eD(e,t,n);case 4:return fS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ru(t,null,r,n):gr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ai(r,i),gk(e,t,r,i,n);case 7:return gr(e,t,t.pendingProps,n),t.child;case 8:return gr(e,t,t.pendingProps.children,n),t.child;case 12:return gr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Pt(Vg,r._currentValue),r._currentValue=a,o!==null)if(qi(o.value,a)){if(o.children===i.children&&!Pr.current){t=Jo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Go(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ab(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Ee(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ab(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}gr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wc(t,n),i=_i(i),r=r(i),t.flags|=1,gr(e,t,r,n),t.child;case 14:return r=t.type,i=Ai(r,t.pendingProps),i=Ai(r.type,i),vk(e,t,r,i,n);case 15:return KR(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ai(r,i),ng(e,t),t.tag=1,Lr(r)?(e=!0,Ug(t)):e=!1,Wc(t,n),TR(t,r,i),Db(t,r,i,n),$b(null,t,r,!0,e,n);case 19:return tD(e,t,n);case 22:return QR(e,t,n)}throw Error(Ee(156,t.tag))};function vD(e,t){return VA(e,t)}function tz(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 fi(e,t,n,r){return new tz(e,t,n,r)}function CS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nz(e){if(typeof e=="function")return CS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Y2)return 11;if(e===G2)return 14}return 2}function es(e,t){var n=e.alternate;return n===null?(n=fi(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 og(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")CS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case xc:return ol(n.children,i,o,t);case W2:a=8,i|=8;break;case ab:return e=fi(12,n,t,i|2),e.elementType=ab,e.lanes=o,e;case sb:return e=fi(13,n,t,i),e.elementType=sb,e.lanes=o,e;case lb:return e=fi(19,n,t,i),e.elementType=lb,e.lanes=o,e;case OA:return ky(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case EA:a=10;break e;case TA:a=9;break e;case Y2:a=11;break e;case G2:a=14;break e;case Pa:a=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=fi(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ol(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function ky(e,t,n,r){return e=fi(22,e,r,t),e.elementType=OA,e.lanes=n,e.stateNode={isHidden:!1},e}function U_(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function B_(e,t,n){return t=fi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rz(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=w_(0),this.expirationTimes=w_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w_(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kS(e,t,n,r,i,o,a,s,l){return e=new rz(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=fi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dS(o),e}function iz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yD(e){if(!e)return ss;e=e._reactInternals;e:{if(Al(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(Lr(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(Lr(n))return vR(e,n,t)}return t}function _D(e,t,n,r,i,o,a,s,l){return e=kS(n,r,!0,e,i,o,a,s,l),e.context=yD(null),n=e.current,r=wr(),i=Ja(n),o=Go(r,i),o.callback=t??null,Qa(n,o,i),e.current.lanes=i,Ah(e,i,r),jr(e,r),e}function Py(e,t,n,r){var i=t.current,o=wr(),a=Ja(i);return n=yD(n),t.context===null?t.context=n:t.pendingContext=n,t=Go(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qa(i,t,a),e!==null&&(Yi(e,i,a,o),Jm(e,i,a)),a}function Jg(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 Pk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function PS(e,t){Pk(e,t),(e=e.alternate)&&Pk(e,t)}function oz(){return null}var bD=typeof reportError=="function"?reportError:function(e){console.error(e)};function LS(e){this._internalRoot=e}Ly.prototype.render=LS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));Py(e,t,null,null)};Ly.prototype.unmount=LS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bl(function(){Py(null,e,null,null)}),t[Qo]=null}};function Ly(e){this._internalRoot=e}Ly.prototype.unstable_scheduleHydration=function(e){if(e){var t=KA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Na.length&&t!==0&&t<Na[n].priority;n++);Na.splice(n,0,e),n===0&&XA(e)}};function jS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lk(){}function az(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Jg(a);o.call(c)}}var a=_D(t,r,e,0,null,!1,!1,"",Lk);return e._reactRootContainer=a,e[Qo]=a.current,Ff(e.nodeType===8?e.parentNode:e),bl(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=Jg(l);s.call(c)}}var l=kS(e,0,!1,null,null,!1,!1,"",Lk);return e._reactRootContainer=l,e[Qo]=l.current,Ff(e.nodeType===8?e.parentNode:e),bl(function(){Py(t,l,n,r)}),l}function My(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Jg(a);s.call(l)}}Py(t,a,e,i)}else a=az(n,t,e,i,r);return Jg(a)}qA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fd(t.pendingLanes);n!==0&&(K2(t,n|1),jr(t,un()),!(ut&6)&&(au=un()+500,_s()))}break;case 13:bl(function(){var r=Xo(e,1);if(r!==null){var i=wr();Yi(r,e,1,i)}}),PS(e,1)}};Q2=function(e){if(e.tag===13){var t=Xo(e,134217728);if(t!==null){var n=wr();Yi(t,e,134217728,n)}PS(e,134217728)}};ZA=function(e){if(e.tag===13){var t=Ja(e),n=Xo(e,t);if(n!==null){var r=wr();Yi(n,e,t,r)}PS(e,t)}};KA=function(){return wt};QA=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}};yb=function(e,t,n){switch(t){case"input":if(db(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=xy(r);if(!i)throw Error(Ee(90));kA(r),db(r,i)}}}break;case"textarea":LA(e,n);break;case"select":t=n.value,t!=null&&Bc(e,!!n.multiple,t,!1)}};IA=ES;FA=bl;var sz={usingClientEntryPoint:!1,Events:[Dh,Oc,xy,RA,DA,ES]},wd={findFiberByHostInstance:Qs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},lz={bundleType:wd.bundleType,version:wd.version,rendererPackageName:wd.rendererPackageName,rendererConfig:wd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=BA(e),e===null?null:e.stateNode},findFiberByHostInstance:wd.findFiberByHostInstance||oz,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 nm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nm.isDisabled&&nm.supportsFiber)try{yy=nm.inject(lz),vo=nm}catch{}}ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sz;ei.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jS(t))throw Error(Ee(200));return iz(e,t,null,n)};ei.createRoot=function(e,t){if(!jS(e))throw Error(Ee(299));var n=!1,r="",i=bD;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=kS(e,1,!1,null,null,n,!1,r,i),e[Qo]=t.current,Ff(e.nodeType===8?e.parentNode:e),new LS(t)};ei.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=BA(t),e=e===null?null:e.stateNode,e};ei.flushSync=function(e){return bl(e)};ei.hydrate=function(e,t,n){if(!jy(t))throw Error(Ee(200));return My(null,e,t,!0,n)};ei.hydrateRoot=function(e,t,n){if(!jS(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=bD;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=_D(t,null,e,1,n??null,i,!1,o,a),e[Qo]=t.current,Ff(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 Ly(t)};ei.render=function(e,t,n){if(!jy(t))throw Error(Ee(200));return My(null,e,t,!1,n)};ei.unmountComponentAtNode=function(e){if(!jy(e))throw Error(Ee(40));return e._reactRootContainer?(bl(function(){My(null,null,e,!1,function(){e._reactRootContainer=null,e[Qo]=null})}),!0):!1};ei.unstable_batchedUpdates=ES;ei.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jy(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return My(e,t,n,!1,r)};ei.version="18.2.0-next-9e3b772b8-20220608";function wD(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wD)}catch(e){console.error(e)}}wD(),_A.exports=ei;var Rl=_A.exports;const al=ca(Rl);var xD,jk=Rl;xD=jk.createRoot,jk.hydrateRoot;var SD={exports:{}},ED={};/**
|
||
* @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 su=I;function cz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uz=typeof Object.is=="function"?Object.is:cz,dz=su.useState,fz=su.useEffect,hz=su.useLayoutEffect,pz=su.useDebugValue;function mz(e,t){var n=t(),r=dz({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return hz(function(){i.value=n,i.getSnapshot=t,z_(i)&&o({inst:i})},[e,n,t]),fz(function(){return z_(i)&&o({inst:i}),e(function(){z_(i)&&o({inst:i})})},[e]),pz(n),n}function z_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!uz(e,n)}catch{return!0}}function gz(e,t){return t()}var vz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gz:mz;ED.useSyncExternalStore=su.useSyncExternalStore!==void 0?su.useSyncExternalStore:vz;SD.exports=ED;var TD=SD.exports,yz={};/**
|
||
* @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 Ny=I,_z=TD;function bz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wz=typeof Object.is=="function"?Object.is:bz,xz=_z.useSyncExternalStore,Sz=Ny.useRef,Ez=Ny.useEffect,Tz=Ny.useMemo,Oz=Ny.useDebugValue;yz.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Sz(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Tz(function(){function l(m){if(!c){if(c=!0,d=m,m=r(m),i!==void 0&&a.hasValue){var v=a.value;if(i(v,m))return f=v}return f=m}if(v=f,wz(d,m))return v;var y=r(m);return i!==void 0&&i(v,y)?v:(d=m,f=y)}var c=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=xz(e,o[0],o[1]);return Ez(function(){a.hasValue=!0,a.value=s},[s]),Oz(s),s};function Cz(e){e()}let OD=Cz;const kz=e=>OD=e,Pz=()=>OD,Mk=Symbol.for("react-redux-context"),Nk=typeof globalThis<"u"?globalThis:{};function Lz(){var e;if(!I.createContext)return{};const t=(e=Nk[Mk])!=null?e:Nk[Mk]=new Map;let n=t.get(I.createContext);return n||(n=I.createContext(null),t.set(I.createContext,n)),n}const CD=Lz(),jz=()=>{throw new Error("uSES not initialized!")};function Gc(){return Gc=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},Gc.apply(this,arguments)}function MS(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 kD={exports:{}},xt={};/** @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 Fn=typeof Symbol=="function"&&Symbol.for,NS=Fn?Symbol.for("react.element"):60103,AS=Fn?Symbol.for("react.portal"):60106,Ay=Fn?Symbol.for("react.fragment"):60107,Ry=Fn?Symbol.for("react.strict_mode"):60108,Dy=Fn?Symbol.for("react.profiler"):60114,Iy=Fn?Symbol.for("react.provider"):60109,Fy=Fn?Symbol.for("react.context"):60110,RS=Fn?Symbol.for("react.async_mode"):60111,$y=Fn?Symbol.for("react.concurrent_mode"):60111,Uy=Fn?Symbol.for("react.forward_ref"):60112,By=Fn?Symbol.for("react.suspense"):60113,Mz=Fn?Symbol.for("react.suspense_list"):60120,zy=Fn?Symbol.for("react.memo"):60115,Vy=Fn?Symbol.for("react.lazy"):60116,Nz=Fn?Symbol.for("react.block"):60121,Az=Fn?Symbol.for("react.fundamental"):60117,Rz=Fn?Symbol.for("react.responder"):60118,Dz=Fn?Symbol.for("react.scope"):60119;function ni(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case NS:switch(e=e.type,e){case RS:case $y:case Ay:case Dy:case Ry:case By:return e;default:switch(e=e&&e.$$typeof,e){case Fy:case Uy:case Vy:case zy:case Iy:return e;default:return t}}case AS:return t}}}function PD(e){return ni(e)===$y}xt.AsyncMode=RS;xt.ConcurrentMode=$y;xt.ContextConsumer=Fy;xt.ContextProvider=Iy;xt.Element=NS;xt.ForwardRef=Uy;xt.Fragment=Ay;xt.Lazy=Vy;xt.Memo=zy;xt.Portal=AS;xt.Profiler=Dy;xt.StrictMode=Ry;xt.Suspense=By;xt.isAsyncMode=function(e){return PD(e)||ni(e)===RS};xt.isConcurrentMode=PD;xt.isContextConsumer=function(e){return ni(e)===Fy};xt.isContextProvider=function(e){return ni(e)===Iy};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===NS};xt.isForwardRef=function(e){return ni(e)===Uy};xt.isFragment=function(e){return ni(e)===Ay};xt.isLazy=function(e){return ni(e)===Vy};xt.isMemo=function(e){return ni(e)===zy};xt.isPortal=function(e){return ni(e)===AS};xt.isProfiler=function(e){return ni(e)===Dy};xt.isStrictMode=function(e){return ni(e)===Ry};xt.isSuspense=function(e){return ni(e)===By};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ay||e===$y||e===Dy||e===Ry||e===By||e===Mz||typeof e=="object"&&e!==null&&(e.$$typeof===Vy||e.$$typeof===zy||e.$$typeof===Iy||e.$$typeof===Fy||e.$$typeof===Uy||e.$$typeof===Az||e.$$typeof===Rz||e.$$typeof===Dz||e.$$typeof===Nz)};xt.typeOf=ni;kD.exports=xt;var Iz=kD.exports,DS=Iz,Fz={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},IS={};IS[DS.ForwardRef]=Uz;IS[DS.Memo]=LD;function Ak(e){return DS.isMemo(e)?LD:IS[e.$$typeof]||Fz}var Bz=Object.defineProperty,zz=Object.getOwnPropertyNames,Rk=Object.getOwnPropertySymbols,Vz=Object.getOwnPropertyDescriptor,Hz=Object.getPrototypeOf,Dk=Object.prototype;function jD(e,t,n){if(typeof t!="string"){if(Dk){var r=Hz(t);r&&r!==Dk&&jD(e,r,n)}var i=zz(t);Rk&&(i=i.concat(Rk(t)));for(var o=Ak(e),a=Ak(t),s=0;s<i.length;++s){var l=i[s];if(!$z[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=Vz(t,l);try{Bz(e,l,c)}catch{}}}}return e}var Wz=jD;const Ik=ca(Wz);var MD={exports:{}},St={};/**
|
||
* @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 FS=Symbol.for("react.element"),$S=Symbol.for("react.portal"),Hy=Symbol.for("react.fragment"),Wy=Symbol.for("react.strict_mode"),Yy=Symbol.for("react.profiler"),Gy=Symbol.for("react.provider"),qy=Symbol.for("react.context"),Yz=Symbol.for("react.server_context"),Zy=Symbol.for("react.forward_ref"),Ky=Symbol.for("react.suspense"),Qy=Symbol.for("react.suspense_list"),Xy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),Gz=Symbol.for("react.offscreen"),qz=Symbol.for("react.module.reference");function Oi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FS:switch(e=e.type,e){case Hy:case Yy:case Wy:case Ky:case Qy:return e;default:switch(e=e&&e.$$typeof,e){case Yz:case qy:case Zy:case Jy:case Xy:case Gy:return e;default:return t}}case $S:return t}}}St.ContextConsumer=qy;St.ContextProvider=Gy;St.Element=FS;St.ForwardRef=Zy;St.Fragment=Hy;St.Lazy=Jy;St.Memo=Xy;St.Portal=$S;St.Profiler=Yy;St.StrictMode=Wy;St.Suspense=Ky;St.SuspenseList=Qy;St.isAsyncMode=function(){return!1};St.isConcurrentMode=function(){return!1};St.isContextConsumer=function(e){return Oi(e)===qy};St.isContextProvider=function(e){return Oi(e)===Gy};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FS};St.isForwardRef=function(e){return Oi(e)===Zy};St.isFragment=function(e){return Oi(e)===Hy};St.isLazy=function(e){return Oi(e)===Jy};St.isMemo=function(e){return Oi(e)===Xy};St.isPortal=function(e){return Oi(e)===$S};St.isProfiler=function(e){return Oi(e)===Yy};St.isStrictMode=function(e){return Oi(e)===Wy};St.isSuspense=function(e){return Oi(e)===Ky};St.isSuspenseList=function(e){return Oi(e)===Qy};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hy||e===Yy||e===Wy||e===Ky||e===Qy||e===Gz||typeof e=="object"&&e!==null&&(e.$$typeof===Jy||e.$$typeof===Xy||e.$$typeof===Gy||e.$$typeof===qy||e.$$typeof===Zy||e.$$typeof===qz||e.getModuleId!==void 0)};St.typeOf=Oi;MD.exports=St;var Zz=MD.exports;const Kz=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Qz(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,d,f,p;function m(w,S){return l=w,c=S,d=e(l,c),f=t(r,c),p=n(d,f,c),s=!0,p}function v(){return d=e(l,c),t.dependsOnOwnProps&&(f=t(r,c)),p=n(d,f,c),p}function y(){return e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(f=t(r,c)),p=n(d,f,c),p}function x(){const w=e(l,c),S=!a(w,d);return d=w,S&&(p=n(d,f,c)),p}function _(w,S){const E=!o(S,c),O=!i(w,l,S,c);return l=w,c=S,E&&O?v():E?y():O?x():p}return function(S,E){return s?_(S,E):m(S,E)}}function Xz(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=MS(t,Kz);const a=n(e,o),s=r(e,o),l=i(e,o);return Qz(a,s,l,e,o)}function Jz(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 Qb(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Fk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function ND(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=Fk(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Fk(c),c=o(s,l)),c},o}}function US(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function eV(e){return e&&typeof e=="object"?Qb(t=>Jz(e,t)):e?typeof e=="function"?ND(e):US(e,"mapDispatchToProps"):Qb(t=>({dispatch:t}))}function tV(e){return e?typeof e=="function"?ND(e):US(e,"mapStateToProps"):Qb(()=>({}))}function nV(e,t,n){return Gc({},n,e,t)}function rV(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,d){const f=e(l,c,d);return o?i(f,a)||(a=f):(o=!0,a=f),a}}}function iV(e){return e?typeof e=="function"?rV(e):US(e,"mergeProps"):()=>nV}function oV(){const e=Pz();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 $k={notify(){},get:()=>[]};function AD(e,t){let n,r=$k,i=0,o=!1;function a(y){d();const x=r.subscribe(y);let _=!1;return()=>{_||(_=!0,x(),f())}}function s(){r.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return o}function d(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=oV())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=$k)}function p(){o||(o=!0,d())}function m(){o&&(o=!1,f())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>r};return v}const aV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ev=aV?I.useLayoutEffect:I.useEffect;function Uk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function V_(e,t){if(Uk(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])||!Uk(e[n[i]],t[n[i]]))return!1;return!0}const sV=["reactReduxForwardedRef"];let RD=jz;const lV=e=>{RD=e},cV=[null,null];function uV(e,t,n){ev(()=>e(...t),n)}function dV(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function fV(e,t,n,r,i,o,a,s,l,c,d){if(!e)return()=>{};let f=!1,p=null;const m=()=>{if(f||!s.current)return;const y=t.getState();let x,_;try{x=r(y,i.current)}catch(w){_=w,p=w}_||(p=null),x===o.current?a.current||c():(o.current=x,l.current=x,a.current=!0,d())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function hV(e,t){return e===t}function DD(e,t,n,{pure:r,areStatesEqual:i=hV,areOwnPropsEqual:o=V_,areStatePropsEqual:a=V_,areMergedPropsEqual:s=V_,forwardRef:l=!1,context:c=CD}={}){const d=c,f=tV(e),p=eV(t),m=iV(n),v=!!e;return x=>{const _=x.displayName||x.name||"Component",w=`Connect(${_})`,S={shouldHandleStateChanges:v,displayName:w,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function E(j){const[R,U,A]=I.useMemo(()=>{const{reactReduxForwardedRef:ee}=j,se=MS(j,sV);return[j.context,ee,se]},[j]),V=I.useMemo(()=>R&&R.Consumer&&Zz.isContextConsumer(I.createElement(R.Consumer,null))?R:d,[R,d]),W=I.useContext(V),X=!!j.store&&!!j.store.getState&&!!j.store.dispatch,G=!!W&&!!W.store,K=X?j.store:W.store,ne=G?W.getServerState:K.getState,le=I.useMemo(()=>Xz(K.dispatch,S),[K]),[Z,F]=I.useMemo(()=>{if(!v)return cV;const ee=AD(K,X?void 0:W.subscription),se=ee.notifyNestedSubs.bind(ee);return[ee,se]},[K,X,W]),D=I.useMemo(()=>X?W:Gc({},W,{subscription:Z}),[X,W,Z]),H=I.useRef(),re=I.useRef(A),z=I.useRef(),q=I.useRef(!1);I.useRef(!1);const ie=I.useRef(!1),ae=I.useRef();ev(()=>(ie.current=!0,()=>{ie.current=!1}),[]);const he=I.useMemo(()=>()=>z.current&&A===re.current?z.current:le(K.getState(),A),[K,A]),C=I.useMemo(()=>se=>Z?fV(v,K,Z,le,re,H,q,ie,z,F,se):()=>{},[Z]);uV(dV,[re,H,q,A,z,F]);let M;try{M=RD(C,he,ne?()=>le(ne(),A):he)}catch(ee){throw ae.current&&(ee.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ae.current.stack}
|
||
|
||
`),ee}ev(()=>{ae.current=void 0,z.current=void 0,H.current=M});const $=I.useMemo(()=>I.createElement(x,Gc({},M,{ref:U})),[U,x,M]);return I.useMemo(()=>v?I.createElement(V.Provider,{value:D},$):$,[V,$,D])}const k=I.memo(E);if(k.WrappedComponent=x,k.displayName=E.displayName=w,l){const R=I.forwardRef(function(A,V){return I.createElement(k,Gc({},A,{reactReduxForwardedRef:V}))});return R.displayName=w,R.WrappedComponent=x,Ik(R,x)}return Ik(k,x)}}function ID({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=I.useMemo(()=>{const c=AD(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=I.useMemo(()=>e.getState(),[e]);ev(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||CD;return I.createElement(l.Provider,{value:a},n)}lV(TD.useSyncExternalStore);kz(Rl.unstable_batchedUpdates);/**
|
||
* @remix-run/router v1.10.0
|
||
*
|
||
* 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 Gf(){return Gf=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},Gf.apply(this,arguments)}var Fa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fa||(Fa={}));const Bk="popstate";function pV(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return Xb("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:tv(i)}return gV(t,n,null,e)}function Zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function BS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mV(){return Math.random().toString(36).substr(2,8)}function zk(e,t){return{usr:e.state,key:e.key,idx:t}}function Xb(e,t,n,r){return n===void 0&&(n=null),Gf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$u(t):t,{state:n,key:t&&t.key||r||mV()})}function tv(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 $u(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 gV(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Fa.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Gf({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Fa.Pop;let x=d(),_=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:_})}function p(x,_){s=Fa.Push;let w=Xb(y.location,x,_);n&&n(w,x),c=d()+1;let S=zk(w,c),E=y.createHref(w);try{a.pushState(S,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(E)}o&&l&&l({action:s,location:y.location,delta:1})}function m(x,_){s=Fa.Replace;let w=Xb(y.location,x,_);n&&n(w,x),c=d();let S=zk(w,c),E=y.createHref(w);a.replaceState(S,"",E),o&&l&&l({action:s,location:y.location,delta:0})}function v(x){let _=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof x=="string"?x:tv(x);return Zt(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Bk,f),l=x,()=>{i.removeEventListener(Bk,f),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let _=v(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:m,go(x){return a.go(x)}};return y}var Vk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vk||(Vk={}));function vV(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$u(t):t,i=qf(r.pathname||"/",n);if(i==null)return null;let o=FD(e);yV(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=CV(o[s],PV(i));return a}function FD(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Zt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ts([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Zt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),FD(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:TV(c,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of $D(o.path))i(o,a,l)}),t}function $D(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=$D(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function yV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:OV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _V=/^:\w+$/,bV=3,wV=2,xV=1,SV=10,EV=-2,Hk=e=>e==="*";function TV(e,t){let n=e.split("/"),r=n.length;return n.some(Hk)&&(r+=EV),t&&(r+=wV),n.filter(i=>!Hk(i)).reduce((i,o)=>i+(_V.test(o)?bV:o===""?xV:SV),r)}function OV(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 CV(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=Jb({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!d)return null;Object.assign(r,d.params);let f=s.route;o.push({params:r,pathname:ts([i,d.pathname]),pathnameBase:NV(ts([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=ts([i,d.pathnameBase]))}return o}function Jb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kV(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,d,f)=>{if(d==="*"){let p=s[f]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[d]=LV(s[f]||"",d),c},{}),pathname:o,pathnameBase:a,pattern:e}}function kV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),BS(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,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function PV(e){try{return decodeURI(e)}catch(t){return BS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function LV(e,t){try{return decodeURIComponent(e)}catch(n){return BS(!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 qf(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 jV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?$u(e):e;return{pathname:n?n.startsWith("/")?n:MV(n,t):t,search:AV(r),hash:RV(i)}}function MV(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 H_(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function zS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function VS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=$u(e):(i=Gf({},e),Zt(!i.pathname||!i.pathname.includes("?"),H_("?","pathname","search",i)),Zt(!i.pathname||!i.pathname.includes("#"),H_("#","pathname","hash",i)),Zt(!i.search||!i.search.includes("#"),H_("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=jV(i,s),c=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),NV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const UD=["post","put","patch","delete"];new Set(UD);const IV=["get",...UD];new Set(IV);/**
|
||
* React Router v6.17.0
|
||
*
|
||
* 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 nv(){return nv=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},nv.apply(this,arguments)}const e0=I.createContext(null),BD=I.createContext(null),Dl=I.createContext(null),t0=I.createContext(null),da=I.createContext({outlet:null,matches:[],isDataRoute:!1}),zD=I.createContext(null);function FV(e,t){let{relative:n}=t===void 0?{}:t;Il()||Zt(!1);let{basename:r,navigator:i}=I.useContext(Dl),{hash:o,pathname:a,search:s}=n0(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:ts([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Il(){return I.useContext(t0)!=null}function Cn(){return Il()||Zt(!1),I.useContext(t0).location}function VD(e){I.useContext(Dl).static||I.useLayoutEffect(e)}function Co(){let{isDataRoute:e}=I.useContext(da);return e?QV():$V()}function $V(){Il()||Zt(!1);let e=I.useContext(e0),{basename:t,navigator:n}=I.useContext(Dl),{matches:r}=I.useContext(da),{pathname:i}=Cn(),o=JSON.stringify(zS(r).map(l=>l.pathnameBase)),a=I.useRef(!1);return VD(()=>{a.current=!0}),I.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let d=VS(l,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ts([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,o,i,e])}function Fl(){let{matches:e}=I.useContext(da),t=e[e.length-1];return t?t.params:{}}function n0(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=I.useContext(da),{pathname:i}=Cn(),o=JSON.stringify(zS(r).map(a=>a.pathnameBase));return I.useMemo(()=>VS(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function UV(e,t){return BV(e,t)}function BV(e,t,n){Il()||Zt(!1);let{navigator:r}=I.useContext(Dl),{matches:i}=I.useContext(da),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=Cn(),c;if(t){var d;let y=typeof t=="string"?$u(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||Zt(!1),c=y}else c=l;let f=c.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",m=vV(e,{pathname:p}),v=YV(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:ts([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&v?I.createElement(t0.Provider,{value:{location:nv({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Fa.Pop}},v):v}function zV(){let e=KV(),t=DV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,o)}const VV=I.createElement(zV,null);class HV extends I.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?I.createElement(da.Provider,{value:this.props.routeContext},I.createElement(zD.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WV(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(e0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(da.Provider,{value:t},r)}function YV(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=o.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||Zt(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,l,c)=>{let d=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||VV);let p=t.concat(o.slice(0,c+1)),m=()=>{let v;return d?v=f:l.route.Component?v=I.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,I.createElement(WV,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?I.createElement(HV,{location:n.location,revalidation:n.revalidation,component:f,error:d,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var HD=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(HD||{}),rv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(rv||{});function GV(e){let t=I.useContext(e0);return t||Zt(!1),t}function qV(e){let t=I.useContext(BD);return t||Zt(!1),t}function ZV(e){let t=I.useContext(da);return t||Zt(!1),t}function WD(e){let t=ZV(),n=t.matches[t.matches.length-1];return n.route.id||Zt(!1),n.route.id}function KV(){var e;let t=I.useContext(zD),n=qV(rv.UseRouteError),r=WD(rv.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function QV(){let{router:e}=GV(HD.UseNavigateStable),t=WD(rv.UseNavigateStable),n=I.useRef(!1);return VD(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,nv({fromRouteId:t},o)))},[e,t])}function HS(e){let{to:t,replace:n,state:r,relative:i}=e;Il()||Zt(!1);let{matches:o}=I.useContext(da),{pathname:a}=Cn(),s=Co(),l=VS(t,zS(o).map(d=>d.pathnameBase),a,i==="path"),c=JSON.stringify(l);return I.useEffect(()=>s(JSON.parse(c),{replace:n,state:r,relative:i}),[s,c,i,n,r]),null}function vt(e){Zt(!1)}function XV(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Fa.Pop,navigator:o,static:a=!1}=e;Il()&&Zt(!1);let s=t.replace(/^\/*/,"/"),l=I.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=$u(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,v=I.useMemo(()=>{let y=qf(c,s);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:m},navigationType:i}},[s,c,d,f,p,m,i]);return v==null?null:I.createElement(Dl.Provider,{value:l},I.createElement(t0.Provider,{children:n,value:v}))}function r0(e){let{children:t,location:n}=e;return UV(ew(t),n)}new Promise(()=>{});function ew(e,t){t===void 0&&(t=[]);let n=[];return I.Children.forEach(e,(r,i)=>{if(!I.isValidElement(r))return;let o=[...t,i];if(r.type===I.Fragment){n.push.apply(n,ew(r.props.children,o));return}r.type!==vt&&Zt(!1),!r.props.index||!r.props.children||Zt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ew(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.17.0
|
||
*
|
||
* 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 iv(){return iv=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},iv.apply(this,arguments)}function YD(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 JV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eH(e,t){return e.button===0&&(!t||t==="_self")&&!JV(e)}const tH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],nH=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],rH=I.createContext({isTransitioning:!1}),iH="startTransition",Wk=J7[iH];function GD(e){let{basename:t,children:n,future:r,window:i}=e,o=I.useRef();o.current==null&&(o.current=pV({window:i,v5Compat:!0}));let a=o.current,[s,l]=I.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=I.useCallback(f=>{c&&Wk?Wk(()=>l(f)):l(f)},[l,c]);return I.useLayoutEffect(()=>a.listen(d),[a,d]),I.createElement(XV,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const oH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=I.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=YD(t,tH),{basename:m}=I.useContext(Dl),v,y=!1;if(typeof c=="string"&&aH.test(c)&&(v=c,oH))try{let S=new URL(window.location.href),E=c.startsWith("//")?new URL(S.protocol+c):new URL(c),O=qf(E.pathname,m);E.origin===S.origin&&O!=null?c=O+E.search+E.hash:y=!0}catch{}let x=FV(c,{relative:i}),_=lH(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,unstable_viewTransition:f});function w(S){r&&r(S),S.defaultPrevented||_(S)}return I.createElement("a",iv({},p,{href:v||x,onClick:y||o?r:w,ref:n,target:l}))}),qD=I.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:c,children:d}=t,f=YD(t,nH),p=n0(l,{relative:f.relative}),m=Cn(),v=I.useContext(BD),{navigator:y}=I.useContext(Dl),x=v!=null&&cH(p)&&c===!0,_=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=m.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,_=_.toLowerCase());let E=w===_||!a&&w.startsWith(_)&&w.charAt(_.length)==="/",O=S!=null&&(S===_||!a&&S.startsWith(_)&&S.charAt(_.length)==="/"),k={isActive:E,isPending:O,isTransitioning:x},j=E?r:void 0,R;typeof o=="function"?R=o(k):R=[o,E?"active":null,O?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let U=typeof s=="function"?s(k):s;return I.createElement(Ft,iv({},f,{"aria-current":j,className:R,ref:n,style:U,to:l,unstable_viewTransition:c}),typeof d=="function"?d(k):d)});var tw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tw||(tw={}));var Yk;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yk||(Yk={}));function sH(e){let t=I.useContext(e0);return t||Zt(!1),t}function lH(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=Co(),c=Cn(),d=n0(e,{relative:a});return I.useCallback(f=>{if(eH(f,n)){f.preventDefault();let p=r!==void 0?r:tv(c)===tv(d);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[c,l,d,r,i,n,e,o,a,s])}function cH(e,t){t===void 0&&(t={});let n=I.useContext(rH);n==null&&Zt(!1);let{basename:r}=sH(tw.useViewTransitionState),i=n0(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=qf(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=qf(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jb(i.pathname,a)!=null||Jb(i.pathname,o)!=null}const uH="shlink-web-client",dH="A React-based progressive web application for shlink",fH="/shlink-web-client/dependabot/npm_and_yarn/sass-1.69.5",hH="https://github.com/shlinkio/shlink-web-client",pH="MIT",mH={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",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},gH={"@fortawesome/fontawesome-free":"^6.4.2","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.3","@reduxjs/toolkit":"^1.9.7","@shlinkio/shlink-frontend-kit":"^0.4.0","@shlinkio/shlink-js-sdk":"^0.1.0","@shlinkio/shlink-web-component":"^0.3.5",bootstrap:"5.2.3",bottlejs:"^2.0.1",classnames:"^2.3.2","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^2.30.0",ramda:"^0.27.2",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^8.1.3","react-router-dom":"^6.17.0",reactstrap:"^9.2.0","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.1","workbox-core":"^7.0.0","workbox-expiration":"^7.0.0","workbox-precaching":"^7.0.0","workbox-routing":"^7.0.0","workbox-strategies":"^7.0.0"},vH={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.5.1","@total-typescript/shoehorn":"^0.1.1","@types/ramda":"^0.27.66","@types/react":"^18.2.31","@types/react-dom":"^18.2.14","@types/uuid":"^9.0.6","@vitejs/plugin-react":"^4.1.0","@vitest/coverage-v8":"^0.34.6","adm-zip":"^0.5.10","axe-core":"^4.8.2",chalk:"^5.3.0",eslint:"^8.52.0",history:"^5.3.0",jsdom:"^22.1.0",sass:"^1.69.5",stylelint:"^15.11.0",typescript:"^5.2.2",vite:"^4.5.0","vite-plugin-pwa":"^0.16.5",vitest:"^0.34.6","vitest-canvas-mock":"^0.3.3"},yH=[">0.2%","not dead","not ie <= 11","not op_mini all"],ov={name:uH,description:dH,private:!1,homepage:fH,repository:hH,license:pH,scripts:mH,dependencies:gH,devDependencies:vH,browserslist:yH};var Zi,So=".",ZD="function",KD="string",QD="__global__",WS="Provider",_H=0,YS=Array.prototype.slice,bH=function(t,n){var r=t[n];if(r===void 0&&Zi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},i0=function(t){var n;return this.nested[t]||(n=Zi.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},XD=function(t){return t.split(So).reduce(bH,this)},wH=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(d){if(d)throw d;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},xH=function(t,n){var r,i;return typeof t===ZD&&(n=t,t=QD),r=t.split(So),i=r.shift(),r.length?i0.call(this,i).middleware(r.join(So),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},SH=function(t,n){return n(t)},Gk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},EH=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+WS,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],d;return c&&(d=Gk(a,t).reduce(SH,c.$get(o)),delete o[r],delete o[t]),d===void 0?d:wH(Gk(s,t),t,d,o)}},Object.defineProperties(o,i),this},JD=function(t,n){var r,i;return r=t.split(So),this.providerMap[t]&&r.length===1&&!this.container[t+WS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(i0.call(this,i).provider(r.join(So),n),this):EH.call(this,i,n))},GS=function(t,n){return JD.call(this,t,function(){this.$get=n})},e4=function(t,n,r){var i=arguments.length>3?YS.call(arguments,3):[],o=this;return GS.call(this,t,function(){var s=n,l=i.map(XD,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},TH=function(t,n){return e4.apply(this,[t,n,!0].concat(YS.call(arguments,2)))},OH=function(t,n){return e4.apply(this,[t,n,!1].concat(YS.call(arguments,2)))},t4=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},n4=function(t,n){var r=t[n];return r||(r={},t4.call(t,n,r)),r},CH=function(t,n){var r;return r=t.split(So),t=r.pop(),t4.call(r.reduce(n4,this.container),t,n),this},kH=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},PH=function(t,n){var r=t.split(So);return t=r.pop(),kH.call(r.reduce(n4,this.container),t,n),this},r4=function(t,n){var r,i;return typeof t===ZD&&(n=t,t=QD),r=t.split(So),i=r.shift(),r.length?i0.call(this,i).decorator(r.join(So),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},LH=function(t){return this.deferred.push(t),this},jH=function(t){return(t||[]).map(XD,this.container)},MH=function(t,n){return GS.call(this,t,function(i){return{instance:n.bind(n,i)}})},NH=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},qS=function(t){return Object.keys(t||this.container||{}).filter(NH)},av={},AH=function(t){var n;return typeof t===KD?(n=av[t],n||(av[t]=n=new Zi,n.constant("BOTTLE_NAME",t)),n):new Zi},RH=function(t){typeof t===KD?delete av[t]:av={}},i4=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},qk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+WS]},DH=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(So);a.length>1&&a.forEach(qk,i0.call(this,a[0])),qk.call(this,o),this.provider(o,n[o])}},this)},IH=function(t){return this.deferred.forEach(function(r){r(t)}),this};Zi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=_H++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:r4.bind(this),$register:i4.bind(this),$list:qS.bind(this)}};Zi.prototype={constant:PH,decorator:r4,defer:LH,digest:jH,factory:GS,instanceFactory:MH,list:qS,middleware:xH,provider:JD,resetProviders:DH,register:i4,resolve:IH,service:TH,serviceFactory:OH,value:CH};Zi.pop=AH;Zi.clear=RH;Zi.list=qS;Zi.config={strict:!1};const FH=Zi;function jt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function dn(e){return function t(n){return arguments.length===0||jt(n)?t:e.apply(this,arguments)}}function nn(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return jt(n)?t:dn(function(i){return e(n,i)});default:return jt(n)&&jt(r)?t:jt(n)?dn(function(i){return e(i,r)}):jt(r)?dn(function(i){return e(n,i)}):e(n,r)}}}function $H(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 Fh(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,a){return t.apply(this,arguments)};case 6:return function(n,r,i,o,a,s){return t.apply(this,arguments)};case 7:return function(n,r,i,o,a,s,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,a,s,l,c,d){return t.apply(this,arguments)};case 10:return function(n,r,i,o,a,s,l,c,d,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function o4(e,t,n){return function(){for(var r=[],i=0,o=e,a=0;a<t.length||i<arguments.length;){var s;a<t.length&&(!jt(t[a])||i>=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,jt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):Fh(o,o4(e,r,n))}}var UH=nn(function(t,n){return t===1?dn(n):Fh(t,o4(t,[],n))});const nw=UH;function $h(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return jt(n)?t:nn(function(o,a){return e(n,o,a)});case 2:return jt(n)&&jt(r)?t:jt(n)?nn(function(o,a){return e(o,r,a)}):jt(r)?nn(function(o,a){return e(n,o,a)}):dn(function(o){return e(n,r,o)});default:return jt(n)&&jt(r)&&jt(i)?t:jt(n)&&jt(r)?nn(function(o,a){return e(o,a,i)}):jt(n)&&jt(i)?nn(function(o,a){return e(o,r,a)}):jt(r)&&jt(i)?nn(function(o,a){return e(n,o,a)}):jt(n)?dn(function(o){return e(o,r,i)}):jt(r)?dn(function(o){return e(n,o,i)}):jt(i)?dn(function(o){return e(n,r,o)}):e(n,r,i)}}}const o0=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function BH(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function zH(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!o0(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if(BH(i)){var a=t.apply(null,r);return a(i)}}return n.apply(this,arguments)}}const Zk={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function VH(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function ZS(e){return Object.prototype.toString.call(e)==="[object String]"}var HH=dn(function(t){return o0(t)?!0:!t||typeof t!="object"||ZS(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const WH=HH;var YH=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 GH(e){return new YH(e)}var qH=nn(function(t,n){return Fh(t.length,function(){return t.apply(n,arguments)})});const ZH=qH;function KH(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 Kk(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 Qk(e,t,n,r){return e["@@transducer/result"](n[r](ZH(e["@@transducer/step"],e),t))}var Xk=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function a0(e,t,n){if(typeof e=="function"&&(e=GH(e)),WH(n))return KH(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return Qk(e,t,n,"fantasy-land/reduce");if(n[Xk]!=null)return Kk(e,t,n[Xk]());if(typeof n.next=="function")return Kk(e,t,n);if(typeof n.reduce=="function")return Qk(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var QH=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Zk.init,e.prototype["@@transducer/result"]=Zk.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),XH=nn(function(t,n){return new QH(t,n)});const JH=XH;function mo(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var Jk=Object.prototype.toString,eW=function(){return Jk.call(arguments)==="[object Arguments]"?function(t){return Jk.call(t)==="[object Arguments]"}:function(t){return mo("callee",t)}}();const a4=eW;var tW=!{toString:null}.propertyIsEnumerable("toString"),eP=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],tP=function(){return arguments.propertyIsEnumerable("length")}(),nW=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},rW=dn(typeof Object.keys=="function"&&!tP?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=tP&&a4(t);for(n in t)mo(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(tW)for(r=eP.length-1;r>=0;)n=eP[r],mo(n,t)&&!nW(i,n)&&(i[i.length]=n),r-=1;return i});const sv=rW;var iW=nn(zH(["fantasy-land/map","map"],JH,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return nw(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return a0(function(r,i){return r[i]=t(n[i]),r},{},sv(n));default:return VH(t,n)}}));const KS=iW,oW=Number.isInteger||function(t){return t<<0===t};var aW=nn(function(t,n){var r=t<0?n.length+t:t;return ZS(n)?n.charAt(r):n[r]});const sW=aW;var lW=nn(function(t,n){return t.map(function(r){for(var i=n,o=0,a;o<r.length;){if(i==null)return;a=r[o],i=oW(a)?sW(a,i):i[a],o+=1}return i})});const cW=lW;var uW=nn(function(t,n){return cW([t],n)[0]});const dW=uW;var fW=nn(function(t,n){return dW([t],n)});const hW=fW;var pW=$h(a0);const s4=pW;var mW=nn(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))}:a0(function(r,i){return $H(r,KS(i,n))},[],t)});const gW=mW;var vW=dn(function(t){for(var n=sv(t),r=n.length,i=[],o=0;o<r;)i[o]=t[n[o]],o+=1;return i});const QS=vW;var yW=$h(function(t,n,r){var i={};for(var o in r)i[o]=r[o];return i[t]=n,i});const lv=yW;var _W=nn(function(t,n){var r=nw(t,n);return nw(t,function(){return a0(gW,KS(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const bW=_W;var wW=dn(function(t){return bW(t.length,t)});const xW=wW;var SW=dn(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const nP=SW;var EW=dn(function(t){return!t});const TW=EW;var OW=xW(TW);const CW=OW;function kW(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function l4(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return o0(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var PW=$h(l4("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}));const LW=PW;var jW=dn(l4("tail",LW(1,1/0)));const MW=jW;function s0(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Fh(arguments[0].length,s4(kW,arguments[0],MW(arguments)))}function NW(e){return e}var AW=dn(NW);const c4=AW;function rP(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function iP(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function RW(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function DW(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const W_=typeof Object.is=="function"?Object.is:DW;function oP(e,t,n,r){var i=rP(e),o=rP(t);function a(s,l){return XS(s,l,n.slice(),r.slice())}return!iP(function(s,l){return!iP(a,l,s)},o,i)}function XS(e,t,n,r){if(W_(e,t))return!0;var i=nP(e);if(i!==nP(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"&&RW(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&W_(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!W_(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:oP(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:oP(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 a=sv(e);if(a.length!==sv(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var c=a[o];if(!(mo(c,t)&&XS(t[c],e[c],s,l)))return!1;o-=1}return!0}var IW=nn(function(t,n){return XS(t,n,[],[])});const FW=IW;function rw(e){return Object.prototype.toString.call(e)==="[object Object]"}var $W=nn(function(t,n){var r={};for(var i in n)r[i]=n[i];return delete r[t],r});const UW=$W;var BW=dn(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():o0(t)?[]:ZS(t)?"":rw(t)?{}:a4(t)?function(){return arguments}():void 0});const zW=BW;var VW=dn(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n});const HW=VW;var WW=dn(function(t){return t!=null&&FW(t,zW(t))});const u4=WW;var YW=nn(function(t,n){var r={};return Fh(n.length,function(){var i=t.apply(this,arguments);return mo(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const d4=YW;var GW=$h(function(t,n,r){var i={},o;for(o in n)mo(o,n)&&(i[o]=mo(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)mo(o,r)&&!mo(o,i)&&(i[o]=r[o]);return i});const qW=GW;var ZW=$h(function e(t,n,r){return qW(function(i,o,a){return rw(o)&&rw(a)?e(t,o,a):t(i,o,a)},n,r)});const KW=ZW;var QW=nn(function(t,n){return KW(function(r,i,o){return o},t,n)});const XW=QW;var JW=nn(function(t,n){for(var r={},i={},o=0,a=t.length;o<a;)i[t[o]]=1,o+=1;for(var s in n)i.hasOwnProperty(s)||(r[s]=n[s]);return r});const eY=JW;var tY=nn(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 nY=tY;var rY=dn(function(t){var n=[];for(var r in t)mo(r,t)&&(n[n.length]=[r,t[r]]);return n});const iY=rY;var f4=(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))(f4||{}),h4=(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))(h4||{}),oY=Object.defineProperty,aY=(e,t,n)=>t in e?oY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sY=(e,t,n)=>(aY(e,typeof t!="symbol"?t+"":t,n),n);const lY=(e,t)=>`${e}/rest/v${t}`,cY=e=>e.dir?`${e.field}-${e.dir}`:void 0,uY=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:cY(e)}),dY=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===f4.NOT_FOUND||e.type===h4.NOT_FOUND)&&e.status===404,fY=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},hY=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};let pY=class{constructor(t,n){sY(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:uY(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrlVisits(t,n){return this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r)}async getTagVisits(t,n){return this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r)}async getDomainVisits(t,n){return this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r)}async getOrphanVisits(t){return this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n)}async getNonOrphanVisits(t){return this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n)}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n=[]})=>({tags:t,stats:n}))}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t}))}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.jsonRequest(...this.toFetchParams(t))))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.emptyRequest(...this.toFetchParams(t))))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:o}){const a=hY(r),s=a?`?${a}`:"",l=o?fY(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${lY(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}handleFetchError(t){return n=>{if(!dY(n))throw n;return this.apiVersion=2,t()}}};const p4=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),sf=e=>!!(e!=null&&e.id),m4=e=>!!(e!=null&&e.version),mY=e=>!!(e!=null&&e.serverNotFound),gY=e=>sf(e)?e.id:"",vY=e=>eY(["id","autoConnect"],e),aP={},yY=e=>typeof e=="function",_Y=e=>{const{selectedServer:t}=e();if(!p4(t))throw new Error("There's no selected server or it is not found");return t},bY=e=>t=>{const{url:n,apiKey:r}=yY(t)?_Y(t):t,i=`${r}_${n}`,o=aP[i]??new pY(e,{apiKey:r,baseUrl:n});return aP[i]=o,o},wY=e=>{e.serviceFactory("buildShlinkApiClient",bY,"HttpClient")};var xY={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"]},SY=xY,EY={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 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"]},JS=EY,TY={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.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-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.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 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-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.6V368c0-8.8 7.2-16 16-16z"]},OY={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},CY=OY,g4={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"]},kY={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"]},v4={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"]},PY={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},LY=PY,jY={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 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"]},eE=jY,MY={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"]},NY={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 20.9 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"]},AY={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},sP={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-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},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"]},DY=RY,IY={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 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},iw=IY,FY={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"]},$Y={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 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},UY={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"]},BY=UY,tE={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"]},y4={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 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},lP={prefix:"fas",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c17.7 0 32 14.3 32 32V64H320V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H32V112c0-26.5 21.5-48 48-48h48V32c0-17.7 14.3-32 32-32zM32 192H480V464c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V192zM337 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"]},zY={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"]},_4={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"]},VY={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},HY=VY,WY={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 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},YY={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 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-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},nE=YY,GY={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"]},qY=GY,ZY={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"]},KY={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},QY=KY,XY={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"]},JY=XY,eG={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"]},tG=eG,nG={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"]},b4=nG,rG={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},iG={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"]},oG={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},aG=oG,sG={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"]},rE={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"]},lG={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},ow=lG,cG={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},uG={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"]},dG=uG,cP={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-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 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 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"]},fG={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},hG=fG,pG={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},mG={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"]},gG={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"]},vG={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},Zf={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function uP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){Tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cv(e){"@babel/helpers - typeof";return cv=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},cv(e)}function yG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dP(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 _G(e,t,n){return t&&dP(e.prototype,t),n&&dP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iE(e,t){return wG(e)||SG(e,t)||w4(e,t)||TG()}function Uh(e){return bG(e)||xG(e)||w4(e)||EG()}function bG(e){if(Array.isArray(e))return aw(e)}function wG(e){if(Array.isArray(e))return e}function xG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function w4(e,t){if(e){if(typeof e=="string")return aw(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 aw(e,t)}}function aw(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 EG(){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 TG(){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 fP=function(){},oE={},x4={},S4=null,E4={mark:fP,measure:fP};try{typeof window<"u"&&(oE=window),typeof document<"u"&&(x4=document),typeof MutationObserver<"u"&&(S4=MutationObserver),typeof performance<"u"&&(E4=performance)}catch{}var OG=oE.navigator||{},hP=OG.userAgent,pP=hP===void 0?"":hP,ls=oE,Dt=x4,mP=S4,rm=E4;ls.document;var fa=!!Dt.documentElement&&!!Dt.head&&typeof Dt.addEventListener=="function"&&typeof Dt.createElement=="function",T4=~pP.indexOf("MSIE")||~pP.indexOf("Trident/"),im,om,am,sm,lm,ea="___FONT_AWESOME___",sw=16,O4="fa",C4="svg-inline--fa",wl="data-fa-i2svg",lw="data-fa-pseudo-element",CG="data-fa-pseudo-element-pending",aE="data-prefix",sE="data-icon",gP="fontawesome-i2svg",kG="async",PG=["HTML","HEAD","STYLE","SCRIPT"],k4=function(){try{return!0}catch{return!1}}(),Nt="classic",tn="sharp",lE=[Nt,tn];function Bh(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Nt]}})}var Kf=Bh((im={},Tn(im,Nt,{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"}),Tn(im,tn,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),im)),Qf=Bh((om={},Tn(om,Nt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Tn(om,tn,{solid:"fass",regular:"fasr",light:"fasl"}),om)),Xf=Bh((am={},Tn(am,Nt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Tn(am,tn,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),am)),LG=Bh((sm={},Tn(sm,Nt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Tn(sm,tn,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),sm)),jG=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,P4="fa-layers-text",MG=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,NG=Bh((lm={},Tn(lm,Nt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Tn(lm,tn,{900:"fass",400:"fasr",300:"fasl"}),lm)),L4=[1,2,3,4,5,6,7,8,9,10],AG=L4.concat([11,12,13,14,15,16,17,18,19,20]),RG=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],el={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Jf=new Set;Object.keys(Qf[Nt]).map(Jf.add.bind(Jf));Object.keys(Qf[tn]).map(Jf.add.bind(Jf));var DG=[].concat(lE,Uh(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",el.GROUP,el.SWAP_OPACITY,el.PRIMARY,el.SECONDARY]).concat(L4.map(function(e){return"".concat(e,"x")})).concat(AG.map(function(e){return"w-".concat(e)})),lf=ls.FontAwesomeConfig||{};function IG(e){var t=Dt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function FG(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Dt&&typeof Dt.querySelector=="function"){var $G=[["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"]];$G.forEach(function(e){var t=iE(e,2),n=t[0],r=t[1],i=FG(IG(n));i!=null&&(lf[r]=i)})}var j4={styleDefault:"solid",familyDefault:"classic",cssPrefix:O4,replacementClass:C4,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};lf.familyPrefix&&(lf.cssPrefix=lf.familyPrefix);var lu=Ie(Ie({},j4),lf);lu.autoReplaceSvg||(lu.observeMutations=!1);var Be={};Object.keys(j4).forEach(function(e){Object.defineProperty(Be,e,{enumerable:!0,set:function(n){lu[e]=n,cf.forEach(function(r){return r(Be)})},get:function(){return lu[e]}})});Object.defineProperty(Be,"familyPrefix",{enumerable:!0,set:function(t){lu.cssPrefix=t,cf.forEach(function(n){return n(Be)})},get:function(){return lu.cssPrefix}});ls.FontAwesomeConfig=Be;var cf=[];function UG(e){return cf.push(e),function(){cf.splice(cf.indexOf(e),1)}}var Sa=sw,go={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function BG(e){if(!(!e||!fa)){var t=Dt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Dt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Dt.head.insertBefore(t,r),e}}var zG="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eh(){for(var e=12,t="";e-- >0;)t+=zG[Math.random()*62|0];return t}function Uu(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function cE(e){return e.classList?Uu(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function M4(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function VG(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(M4(e[n]),'" ')},"").trim()}function l0(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function uE(e){return e.size!==go.size||e.x!==go.x||e.y!==go.y||e.rotate!==go.rotate||e.flipX||e.flipY}function HG(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,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function WG(e){var t=e.transform,n=e.width,r=n===void 0?sw:n,i=e.height,o=i===void 0?sw:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&T4?l+="translate(".concat(t.x/Sa-r/2,"em, ").concat(t.y/Sa-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/Sa,"em), calc(-50% + ").concat(t.y/Sa,"em)) "):l+="translate(".concat(t.x/Sa,"em, ").concat(t.y/Sa,"em) "),l+="scale(".concat(t.size/Sa*(t.flipX?-1:1),", ").concat(t.size/Sa*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var YG=`: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-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 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;
|
||
-webkit-transition-delay: 0s;
|
||
transition-delay: 0s;
|
||
-webkit-transition-duration: 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 N4(){var e=O4,t=C4,n=Be.cssPrefix,r=Be.replacementClass,i=YG;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var vP=!1;function Y_(){Be.autoAddCss&&!vP&&(BG(N4()),vP=!0)}var GG={mixout:function(){return{dom:{css:N4,insertCss:Y_}}},hooks:function(){return{beforeDOMElementCreation:function(){Y_()},beforeI2svg:function(){Y_()}}}},ta=ls||{};ta[ea]||(ta[ea]={});ta[ea].styles||(ta[ea].styles={});ta[ea].hooks||(ta[ea].hooks={});ta[ea].shims||(ta[ea].shims=[]);var $i=ta[ea],A4=[],qG=function e(){Dt.removeEventListener("DOMContentLoaded",e),uv=1,A4.map(function(t){return t()})},uv=!1;fa&&(uv=(Dt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Dt.readyState),uv||Dt.addEventListener("DOMContentLoaded",qG));function ZG(e){fa&&(uv?setTimeout(e,0):A4.push(e))}function zh(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"?M4(e):"<".concat(t," ").concat(VG(r),">").concat(o.map(zh).join(""),"</").concat(t,">")}function yP(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var KG=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},G_=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?KG(n,i):n,l,c,d;for(r===void 0?(l=1,d=t[o[0]]):(l=0,d=r);l<a;l++)c=o[l],d=s(d,t[c],c,t);return d};function QG(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 cw(e){var t=QG(e);return t.length===1?t[0].toString(16):null}function XG(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 _P(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 uw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=_P(t);typeof $i.hooks.addPack=="function"&&!i?$i.hooks.addPack(e,_P(t)):$i.styles[e]=Ie(Ie({},$i.styles[e]||{}),o),e==="fas"&&uw("fa",t)}var cm,um,dm,Nc=$i.styles,JG=$i.shims,eq=(cm={},Tn(cm,Nt,Object.values(Xf[Nt])),Tn(cm,tn,Object.values(Xf[tn])),cm),dE=null,R4={},D4={},I4={},F4={},$4={},tq=(um={},Tn(um,Nt,Object.keys(Kf[Nt])),Tn(um,tn,Object.keys(Kf[tn])),um);function nq(e){return~DG.indexOf(e)}function rq(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!nq(i)?i:null}var U4=function(){var t=function(o){return G_(Nc,function(a,s,l){return a[l]=G_(s,o,{}),a},{})};R4=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),D4=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),$4=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in Nc||Be.autoFetchSvg,r=G_(JG,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});I4=r.names,F4=r.unicodes,dE=c0(Be.styleDefault,{family:Be.familyDefault})};UG(function(e){dE=c0(e.styleDefault,{family:Be.familyDefault})});U4();function fE(e,t){return(R4[e]||{})[t]}function iq(e,t){return(D4[e]||{})[t]}function tl(e,t){return($4[e]||{})[t]}function B4(e){return I4[e]||{prefix:null,iconName:null}}function oq(e){var t=F4[e],n=fE("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function cs(){return dE}var hE=function(){return{prefix:null,iconName:null,rest:[]}};function c0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Nt:n,i=Kf[r][e],o=Qf[r][e]||Qf[r][i],a=e in $i.styles?e:null;return o||a||null}var bP=(dm={},Tn(dm,Nt,Object.keys(Xf[Nt])),Tn(dm,tn,Object.keys(Xf[tn])),dm);function u0(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},Tn(t,Nt,"".concat(Be.cssPrefix,"-").concat(Nt)),Tn(t,tn,"".concat(Be.cssPrefix,"-").concat(tn)),t),a=null,s=Nt;(e.includes(o[Nt])||e.some(function(c){return bP[Nt].includes(c)}))&&(s=Nt),(e.includes(o[tn])||e.some(function(c){return bP[tn].includes(c)}))&&(s=tn);var l=e.reduce(function(c,d){var f=rq(Be.cssPrefix,d);if(Nc[d]?(d=eq[s].includes(d)?LG[s][d]:d,a=d,c.prefix=d):tq[s].indexOf(d)>-1?(a=d,c.prefix=c0(d,{family:s})):f?c.iconName=f:d!==Be.replacementClass&&d!==o[Nt]&&d!==o[tn]&&c.rest.push(d),!i&&c.prefix&&c.iconName){var p=a==="fa"?B4(c.iconName):{},m=tl(c.prefix,c.iconName);p.prefix&&(a=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Nc.far&&Nc.fas&&!Be.autoFetchSvg&&(c.prefix="fas")}return c},hE());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===tn&&(Nc.fass||Be.autoFetchSvg)&&(l.prefix="fass",l.iconName=tl(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=cs()||"fas"),l}var aq=function(){function e(){yG(this,e),this.definitions={}}return _G(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 a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=Ie(Ie({},n.definitions[s]||{}),a[s]),uw(s,a[s]);var l=Xf[Nt][s];l&&uw(l,a[s]),U4()})}},{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 a=i[o],s=a.prefix,l=a.iconName,c=a.icon,d=c[2];n[s]||(n[s]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[s][f]=c)}),n[s][l]=c}),n}}]),e}(),wP=[],Ac={},qc={},sq=Object.keys(qc);function lq(e,t){var n=t.mixoutsTo;return wP=e,Ac={},Object.keys(qc).forEach(function(r){sq.indexOf(r)===-1&&delete qc[r]}),wP.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),cv(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Ac[a]||(Ac[a]=[]),Ac[a].push(o[a])})}r.provides&&r.provides(qc)}),n}function dw(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=Ac[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function xl(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=Ac[e]||[];i.forEach(function(o){o.apply(null,n)})}function na(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qc[e]?qc[e].apply(null,t):void 0}function fw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||cs();if(t)return t=tl(n,t)||t,yP(z4.definitions,n,t)||yP($i.styles,n,t)}var z4=new aq,cq=function(){Be.autoReplaceSvg=!1,Be.observeMutations=!1,xl("noAuto")},uq={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return fa?(xl("beforeI2svg",t),na("pseudoElements2svg",t),na("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;Be.autoReplaceSvg===!1&&(Be.autoReplaceSvg=!0),Be.observeMutations=!0,ZG(function(){fq({autoReplaceSvgRoot:n}),xl("watch",t)})}},dq={icon:function(t){if(t===null)return null;if(cv(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:tl(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=c0(t[0]);return{prefix:r,iconName:tl(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Be.cssPrefix,"-"))>-1||t.match(jG))){var i=u0(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||cs(),iconName:tl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=cs();return{prefix:o,iconName:tl(o,t)||t}}}},ri={noAuto:cq,config:Be,dom:uq,parse:dq,library:z4,findIconDefinition:fw,toHtml:zh},fq=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Dt:n;(Object.keys($i.styles).length>0||Be.autoFetchSvg)&&fa&&Be.autoReplaceSvg&&ri.dom.i2svg({node:r})};function d0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return zh(r)})}}),Object.defineProperty(e,"node",{get:function(){if(fa){var r=Dt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function hq(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(uE(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};i.style=l0(Ie(Ie({},o),{},{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function pq(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(Be.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ie(Ie({},i),{},{id:a}),children:r}]}]}function pE(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,c=e.maskId,d=e.titleId,f=e.extra,p=e.watchable,m=p===void 0?!1:p,v=r.found?r:n,y=v.width,x=v.height,_=i==="fak",w=[Be.replacementClass,o?"".concat(Be.cssPrefix,"-").concat(o):""].filter(function(U){return f.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(f.classes).join(" "),S={children:[],attributes:Ie(Ie({},f.attributes),{},{"data-prefix":i,"data-icon":o,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},E=_&&!~f.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};m&&(S.attributes[wl]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(d||eh())},children:[l]}),delete S.attributes.title);var O=Ie(Ie({},S),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:s,styles:Ie(Ie({},E),f.styles)}),k=r.found&&n.found?na("generateAbstractMask",O)||{children:[],attributes:{}}:na("generateAbstractIcon",O)||{children:[],attributes:{}},j=k.children,R=k.attributes;return O.children=j,O.attributes=R,s?pq(O):hq(O)}function xP(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,c=Ie(Ie(Ie({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(c[wl]="");var d=Ie({},a.styles);uE(i)&&(d.transform=WG({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var f=l0(d);f.length>0&&(c.style=f);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function mq(e){var t=e.content,n=e.title,r=e.extra,i=Ie(Ie(Ie({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=l0(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var q_=$i.styles;function hw(e){var t=e[0],n=e[1],r=e.slice(4),i=iE(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(Be.cssPrefix,"-").concat(el.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(el.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(el.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var gq={found:!1,width:512,height:512};function vq(e,t){!k4&&!Be.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function pw(e,t){var n=t;return t==="fa"&&Be.styleDefault!==null&&(t=cs()),new Promise(function(r,i){if(na("missingIconAbstract"),n==="fa"){var o=B4(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&q_[t]&&q_[t][e]){var a=q_[t][e];return r(hw(a))}vq(e,t),r(Ie(Ie({},gq),{},{icon:Be.showMissingIcons&&e?na("missingIconAbstract")||{}:{}}))})}var SP=function(){},mw=Be.measurePerformance&&rm&&rm.mark&&rm.measure?rm:{mark:SP,measure:SP},Ud='FA "6.4.2"',yq=function(t){return mw.mark("".concat(Ud," ").concat(t," begins")),function(){return V4(t)}},V4=function(t){mw.mark("".concat(Ud," ").concat(t," ends")),mw.measure("".concat(Ud," ").concat(t),"".concat(Ud," ").concat(t," begins"),"".concat(Ud," ").concat(t," ends"))},mE={begin:yq,end:V4},ag=function(){};function EP(e){var t=e.getAttribute?e.getAttribute(wl):null;return typeof t=="string"}function _q(e){var t=e.getAttribute?e.getAttribute(aE):null,n=e.getAttribute?e.getAttribute(sE):null;return t&&n}function bq(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Be.replacementClass)}function wq(){if(Be.autoReplaceSvg===!0)return sg.replace;var e=sg[Be.autoReplaceSvg];return e||sg.replace}function xq(e){return Dt.createElementNS("http://www.w3.org/2000/svg",e)}function Sq(e){return Dt.createElement(e)}function H4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?xq:Sq:n;if(typeof e=="string")return Dt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(H4(a,{ceFn:r}))}),i}function Eq(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var sg={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(H4(i),n)}),n.getAttribute(wl)===null&&Be.keepOriginalSource){var r=Dt.createComment(Eq(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~cE(n).indexOf(Be.replacementClass))return sg.replace(t);var i=new RegExp("".concat(Be.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===Be.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return zh(s)}).join(`
|
||
`);n.setAttribute(wl,""),n.innerHTML=a}};function TP(e){e()}function W4(e,t){var n=typeof t=="function"?t:ag;if(e.length===0)n();else{var r=TP;Be.mutateApproach===kG&&(r=ls.requestAnimationFrame||TP),r(function(){var i=wq(),o=mE.begin("mutate");e.map(i),o(),n()})}}var gE=!1;function Y4(){gE=!0}function gw(){gE=!1}var dv=null;function OP(e){if(mP&&Be.observeMutations){var t=e.treeCallback,n=t===void 0?ag:t,r=e.nodeCallback,i=r===void 0?ag:r,o=e.pseudoElementsCallback,a=o===void 0?ag:o,s=e.observeMutationsRoot,l=s===void 0?Dt:s;dv=new mP(function(c){if(!gE){var d=cs();Uu(c).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!EP(f.addedNodes[0])&&(Be.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&Be.searchPseudoElements&&a(f.target.parentNode),f.type==="attributes"&&EP(f.target)&&~RG.indexOf(f.attributeName))if(f.attributeName==="class"&&_q(f.target)){var p=u0(cE(f.target)),m=p.prefix,v=p.iconName;f.target.setAttribute(aE,m||d),v&&f.target.setAttribute(sE,v)}else bq(f.target)&&i(f.target)})}}),fa&&dv.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Tq(){dv&&dv.disconnect()}function Oq(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function Cq(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=u0(cE(e));return i.prefix||(i.prefix=cs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=iq(i.prefix,e.innerText)||fE(i.prefix,cw(e.innerText))),!i.iconName&&Be.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function kq(e){var t=Uu(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 Be.autoA11y&&(n?t["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(r||eh()):(t["aria-hidden"]="true",t.focusable="false")),t}function Pq(){return{iconName:null,title:null,titleId:null,prefix:null,transform:go,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function CP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Cq(e),r=n.iconName,i=n.prefix,o=n.rest,a=kq(e),s=dw("parseNodeAttributes",{},e),l=t.styleParser?Oq(e):[];return Ie({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:go,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Lq=$i.styles;function G4(e){var t=Be.autoReplaceSvg==="nest"?CP(e,{styleParser:!1}):CP(e);return~t.extra.classes.indexOf(P4)?na("generateLayersText",e,t):na("generateSvgReplacementMutation",e,t)}var us=new Set;lE.map(function(e){us.add("fa-".concat(e))});Object.keys(Kf[Nt]).map(us.add.bind(us));Object.keys(Kf[tn]).map(us.add.bind(us));us=Uh(us);function kP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!fa)return Promise.resolve();var n=Dt.documentElement.classList,r=function(f){return n.add("".concat(gP,"-").concat(f))},i=function(f){return n.remove("".concat(gP,"-").concat(f))},o=Be.autoFetchSvg?us:lE.map(function(d){return"fa-".concat(d)}).concat(Object.keys(Lq));o.includes("fa")||o.push("fa");var a=[".".concat(P4,":not([").concat(wl,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(wl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=Uu(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=mE.begin("onTree"),c=s.reduce(function(d,f){try{var p=G4(f);p&&d.push(p)}catch(m){k4||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,f){Promise.all(c).then(function(p){W4(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),d()})}).catch(function(p){l(),f(p)})})}function jq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;G4(e).then(function(n){n&&W4([n],t)})}function Mq(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:fw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:fw(i||{})),e(r,Ie(Ie({},n),{},{mask:i}))}}var Nq=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?go:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,c=n.maskId,d=c===void 0?null:c,f=n.title,p=f===void 0?null:f,m=n.titleId,v=m===void 0?null:m,y=n.classes,x=y===void 0?[]:y,_=n.attributes,w=_===void 0?{}:_,S=n.styles,E=S===void 0?{}:S;if(t){var O=t.prefix,k=t.iconName,j=t.icon;return d0(Ie({type:"icon"},t),function(){return xl("beforeDOMElementCreation",{iconDefinition:t,params:n}),Be.autoA11y&&(p?w["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(v||eh()):(w["aria-hidden"]="true",w.focusable="false")),pE({icons:{main:hw(j),mask:l?hw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:O,iconName:k,transform:Ie(Ie({},go),i),symbol:a,title:p,maskId:d,titleId:v,extra:{attributes:w,styles:E,classes:x}})})}},Aq={mixout:function(){return{icon:Mq(Nq)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=kP,n.nodeCallback=jq,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Dt:r,o=n.callback,a=o===void 0?function(){}:o;return kP(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,c=r.symbol,d=r.mask,f=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([pw(i,s),d.iconName?pw(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=iE(y,2),_=x[0],w=x[1];m([n,pE({icons:{main:_,mask:w},prefix:s,iconName:i,transform:l,symbol:c,maskId:f,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=l0(s);l.length>0&&(i.style=l);var c;return uE(a)&&(c=na("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},Rq={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 d0({type:"layer"},function(){xl("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Be.cssPrefix,"-layers")].concat(Uh(o)).join(" ")},children:a}]})}}}},Dq={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,a=r.classes,s=a===void 0?[]:a,l=r.attributes,c=l===void 0?{}:l,d=r.styles,f=d===void 0?{}:d;return d0({type:"counter",content:n},function(){return xl("beforeDOMElementCreation",{content:n,params:r}),mq({content:n.toString(),title:o,extra:{attributes:c,styles:f,classes:["".concat(Be.cssPrefix,"-layers-counter")].concat(Uh(s))}})})}}}},Iq={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?go:i,a=r.title,s=a===void 0?null:a,l=r.classes,c=l===void 0?[]:l,d=r.attributes,f=d===void 0?{}:d,p=r.styles,m=p===void 0?{}:p;return d0({type:"text",content:n},function(){return xl("beforeDOMElementCreation",{content:n,params:r}),xP({content:n,transform:Ie(Ie({},go),o),title:s,extra:{attributes:f,styles:m,classes:["".concat(Be.cssPrefix,"-layers-text")].concat(Uh(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(T4){var c=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();s=d.width/c,l=d.height/c}return Be.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,xP({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},Fq=new RegExp('"',"ug"),PP=[1105920,1112319];function $q(e){var t=e.replace(Fq,""),n=XG(t,0),r=n>=PP[0]&&n<=PP[1],i=t.length===2?t[0]===t[1]:!1;return{value:cw(i?t[0]:t),isSecondary:r||i}}function LP(e,t){var n="".concat(CG).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Uu(e.children),a=o.filter(function(j){return j.getAttribute(lw)===t})[0],s=ls.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(MG),c=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&d!=="none"&&d!==""){var f=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?tn:Nt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Qf[p][l[2].toLowerCase()]:NG[p][c],v=$q(f),y=v.value,x=v.isSecondary,_=l[0].startsWith("FontAwesome"),w=fE(m,y),S=w;if(_){var E=oq(y);E.iconName&&E.prefix&&(w=E.iconName,m=E.prefix)}if(w&&!x&&(!a||a.getAttribute(aE)!==m||a.getAttribute(sE)!==S)){e.setAttribute(n,S),a&&e.removeChild(a);var O=Pq(),k=O.extra;k.attributes[lw]=t,pw(w,m).then(function(j){var R=pE(Ie(Ie({},O),{},{icons:{main:j,mask:hE()},prefix:m,iconName:S,extra:k,watchable:!0})),U=Dt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(U,e.firstChild):e.appendChild(U),U.outerHTML=R.map(function(A){return zh(A)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Uq(e){return Promise.all([LP(e,"::before"),LP(e,"::after")])}function Bq(e){return e.parentNode!==document.head&&!~PG.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(lw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function jP(e){if(fa)return new Promise(function(t,n){var r=Uu(e.querySelectorAll("*")).filter(Bq).map(Uq),i=mE.begin("searchPseudoElements");Y4(),Promise.all(r).then(function(){i(),gw(),t()}).catch(function(){i(),gw(),n()})})}var zq={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=jP,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Dt:r;Be.searchPseudoElements&&jP(i)}}},MP=!1,Vq={mixout:function(){return{dom:{unwatch:function(){Y4(),MP=!0}}}},hooks:function(){return{bootstrap:function(){OP(dw("mutationObserverCallbacks",{}))},noAuto:function(){Tq()},watch:function(n){var r=n.observeMutationsRoot;MP?gw():OP(dw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},NP=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("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},Hq={mixout:function(){return{parse:{transform:function(n){return NP(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=NP(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={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),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(l," ").concat(c," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},m={outer:s,inner:f,path:p};return{tag:"g",attributes:Ie({},m.outer),children:[{tag:"g",attributes:Ie({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ie(Ie({},r.icon.attributes),m.path)}]}]}}}},Z_={x:0,y:0,width:"100%",height:"100%"};function AP(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 Wq(e){return e.tag==="g"?e.children:[e]}var Yq={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?u0(i.split(" ").map(function(a){return a.trim()})):hE();return o.prefix||(o.prefix=cs()),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,a=n.mask,s=n.maskId,l=n.transform,c=o.width,d=o.icon,f=a.width,p=a.icon,m=HG({transform:l,containerWidth:f,iconWidth:c}),v={tag:"rect",attributes:Ie(Ie({},Z_),{},{fill:"white"})},y=d.children?{children:d.children.map(AP)}:{},x={tag:"g",attributes:Ie({},m.inner),children:[AP(Ie({tag:d.tag,attributes:Ie(Ie({},d.attributes),m.path)},y))]},_={tag:"g",attributes:Ie({},m.outer),children:[x]},w="mask-".concat(s||eh()),S="clip-".concat(s||eh()),E={tag:"mask",attributes:Ie(Ie({},Z_),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,_]},O={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Wq(p)},E]};return r.push(O,{tag:"rect",attributes:Ie({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},Z_)}),{children:r,attributes:i}}}},Gq={provides:function(t){var n=!1;ls.matchMedia&&(n=ls.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:Ie(Ie({},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 a=Ie(Ie({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Ie(Ie({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Ie(Ie({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ie(Ie({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Ie(Ie({},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:Ie(Ie({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Ie(Ie({},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:Ie(Ie({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},qq={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}}}},Zq=[GG,Aq,Rq,Dq,Iq,zq,Vq,Hq,Yq,Gq,qq];lq(Zq,{mixoutsTo:ri});ri.noAuto;ri.config;ri.library;ri.dom;var vw=ri.parse;ri.findIconDefinition;ri.toHtml;var Kq=ri.icon;ri.layer;ri.text;ri.counter;var q4={exports:{}},Qq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Xq=Qq,Jq=Xq;function Z4(){}function K4(){}K4.resetWarningCache=Z4;var eZ=function(){function e(r,i,o,a,s,l){if(l!==Jq){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:K4,resetWarningCache:Z4};return n.PropTypes=n,n};q4.exports=eZ();var tZ=q4.exports;const N=ca(tZ);function RP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(n),!0).forEach(function(r){Rc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fv(e){"@babel/helpers - typeof";return fv=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},fv(e)}function Rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nZ(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 rZ(e,t){if(e==null)return{};var n=nZ(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 yw(e){return iZ(e)||oZ(e)||aZ(e)||sZ()}function iZ(e){if(Array.isArray(e))return _w(e)}function oZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aZ(e,t){if(e){if(typeof e=="string")return _w(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 _w(e,t)}}function _w(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 sZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lZ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,d=e.spinReverse,f=e.pulse,p=e.fixedWidth,m=e.inverse,v=e.border,y=e.listItem,x=e.flip,_=e.size,w=e.rotation,S=e.pull,E=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":d,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":p,"fa-inverse":m,"fa-border":v,"fa-li":y,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Rc(t,"fa-".concat(_),typeof _<"u"&&_!==null),Rc(t,"fa-rotate-".concat(w),typeof w<"u"&&w!==null&&w!==0),Rc(t,"fa-pull-".concat(S),typeof S<"u"&&S!==null),Rc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(E).map(function(O){return E[O]?O:null}).filter(function(O){return O})}function cZ(e){return e=e-0,e===e}function Q4(e){return cZ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var uZ=["style"];function dZ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fZ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Q4(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[dZ(i)]=o:t[i]=o,t},{})}function X4(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 X4(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var d=t.attributes[c];switch(c){case"class":l.attrs.className=d,delete t.attributes.class;break;case"style":l.attrs.style=fZ(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=d:l.attrs[Q4(c)]=d}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=rZ(n,uZ);return i.attrs.style=$a($a({},i.attrs.style),a),e.apply(void 0,[t.tag,$a($a({},i.attrs),s)].concat(yw(r)))}var J4=!1;try{J4=!0}catch{}function hZ(){if(!J4&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function DP(e){if(e&&fv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vw.icon)return vw.icon(e);if(e===null)return null;if(e&&fv(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 K_(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Rc({},e,t):{}}var Ne=Y.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,c=DP(n),d=K_("classes",[].concat(yw(lZ(e)),yw(o.split(" ")))),f=K_("transform",typeof e.transform=="string"?vw.transform(e.transform):e.transform),p=K_("mask",DP(r)),m=Kq(c,$a($a($a($a({},d),f),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return hZ("Could not find icon",c),null;var v=m.abstract,y={ref:t};return Object.keys(e).forEach(function(x){Ne.defaultProps.hasOwnProperty(x)||(y[x]=e[x])}),pZ(v[0],y)});Ne.displayName="FontAwesomeIcon";Ne.propTypes={beat:N.bool,border:N.bool,beatFade:N.bool,bounce:N.bool,className:N.string,fade:N.bool,flash:N.bool,mask:N.oneOfType([N.object,N.array,N.string]),maskId:N.string,fixedWidth:N.bool,inverse:N.bool,flip:N.oneOf([!0,!1,"horizontal","vertical","both"]),icon:N.oneOfType([N.object,N.array,N.string]),listItem:N.bool,pull:N.oneOf(["right","left"]),pulse:N.bool,rotation:N.oneOf([0,90,180,270]),shake:N.bool,size:N.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:N.bool,spinPulse:N.bool,spinReverse:N.bool,symbol:N.oneOfType([N.bool,N.string]),title:N.string,titleId:N.string,transform:N.oneOfType([N.string,N.object]),swapOpacity:N.bool};Ne.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 pZ=X4.bind(null,Y.createElement),eI={exports:{}};/*!
|
||
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 a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(eI);var mZ=eI.exports;const Ve=ca(mZ);function cu(e){"@babel/helpers - typeof";return cu=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},cu(e)}function gZ(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function tI(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function vZ(){return document.body.clientWidth<window.innerWidth}function yZ(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function _Z(){var e=gZ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;vZ()&&tI(n+e)}var bZ;function He(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bZ;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function bs(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function nI(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var IP={};function bw(e){IP[e]||(typeof console<"u"&&console.error(e),IP[e]=!0)}function rI(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&bw('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return e.apply(void 0,[r,i,o].concat(s))}}var wZ=(typeof window>"u"?"undefined":cu(window))==="object"&&window.Element||function(){};function vE(e,t,n){if(!(e[t]instanceof wZ))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var uu=N.oneOfType([N.string,N.func,vE,N.shape({current:N.any})]),it=N.oneOfType([N.func,N.string,N.shape({$$typeof:N.symbol,render:N.func}),N.arrayOf(N.oneOfType([N.func,N.string,N.shape({$$typeof:N.symbol,render:N.func})]))]),hv={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},pv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],fm={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},_t={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},xZ=["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"],yE=!!(typeof window<"u"&&window.document&&window.document.createElement);function SZ(e){return e&&cu(e)==="object"?"current"in e:!1}function iI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function ww(e){var t=cu(e);return e!=null&&(t==="object"||t==="function")}function FP(e){var t=cu(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&iI(e)==="[object Symbol]")return n;if(ww(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=ww(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function EZ(e){if(!ww(e))return!1;var t=iI(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function TZ(e){if(SZ(e))return e.current;if(EZ(e))return e();if(typeof e=="string"&&yE){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function $P(e){return e===null?!1:Array.isArray(e)||yE&&typeof e.length=="number"}function th(e,t){var n=TZ(e);return t?$P(n)?n:n===null?[]:[n]:$P(n)?n[0]:n}var OZ=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],CZ=["className","cssModule","noGutters","tag","widths"];function xw(){return xw=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},xw.apply(this,arguments)}function kZ(e,t){if(e==null)return{};var n=PZ(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 PZ(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 LZ=["xs","sm","md","lg","xl","xxl"],ic=N.oneOfType([N.number,N.string]),jZ={tag:it,noGutters:rI(N.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:N.string,cssModule:N.object,xs:ic,sm:ic,md:ic,lg:ic,xl:ic,xxl:ic,widths:N.array};function _r(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?LZ:a,l=kZ(e,CZ),c=[];s.forEach(function(f,p){var m=e[f];if(delete l[f],!!m){var v=!p;c.push(v?"row-cols-".concat(m):"row-cols-".concat(f,"-").concat(m))}});var d=He(Ve(t,r?"gx-0":null,"row",c),n);return Y.createElement(o,xw({},l,{className:d}))}_r.propTypes=jZ;var MZ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function Sw(){return Sw=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},Sw.apply(this,arguments)}function Q_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NZ(e,t){if(e==null)return{};var n=AZ(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 AZ(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 RZ={children:N.node,className:N.string,color:N.string,container:N.oneOfType([N.bool,N.string]),cssModule:N.object,dark:N.bool,expand:N.oneOfType([N.bool,N.string]),fixed:N.string,light:N.bool,role:N.string,sticky:N.string,tag:it},DZ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function oI(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,c=e.sticky,d=e.color,f=e.container,p=f===void 0?"fluid":f,m=e.tag,v=m===void 0?"nav":m,y=e.children,x=NZ(e,MZ),_=He(Ve(i,"navbar",DZ(r),(t={"navbar-light":a,"navbar-dark":s},Q_(t,"bg-".concat(d),d),Q_(t,"fixed-".concat(l),l),Q_(t,"sticky-".concat(c),c),t)),o),w=p&&p===!0?"container":"container-".concat(p);return Y.createElement(v,Sw({},x,{className:_}),p?Y.createElement("div",{className:w},y):y)}oI.propTypes=RZ;var IZ=["className","cssModule","tag"];function Ew(){return Ew=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},Ew.apply(this,arguments)}function FZ(e,t){if(e==null)return{};var n=$Z(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 $Z(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 UZ={className:N.string,cssModule:N.object,tag:it};function aI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=FZ(e,IZ),a=He(Ve(t,"navbar-brand"),n);return Y.createElement(i,Ew({},o,{className:a}))}aI.propTypes=UZ;var BZ=["className","cssModule","children","tag"];function Tw(){return Tw=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},Tw.apply(this,arguments)}function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){VZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HZ(e,t){if(e==null)return{};var n=WZ(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 WZ(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 YZ={className:N.string,cssModule:N.object,tag:it,type:N.string,children:N.node};function sI(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=HZ(e,BZ),s=He(Ve(t,"navbar-toggler"),n);return Y.createElement(o,Tw({"aria-label":"Toggle navigation"},zZ({type:"button"},a),{className:s}),r||Y.createElement("span",{className:He("navbar-toggler-icon",n)}))}sI.propTypes=YZ;var GZ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function Ow(){return Ow=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},Ow.apply(this,arguments)}function qZ(e,t){if(e==null)return{};var n=ZZ(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 ZZ(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 KZ={card:N.bool,className:N.string,cssModule:N.object,fill:N.bool,horizontal:N.oneOf(["center","end"]),justified:N.bool,navbar:N.bool,pills:N.bool,tabs:N.bool,tag:it,vertical:N.oneOfType([N.bool,N.string])},QZ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function _E(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,c=e.fill,d=e.navbar,f=e.card,p=e.tag,m=p===void 0?"ul":p,v=qZ(e,GZ),y=He(Ve(t,d?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,QZ(a),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":l,"nav-fill":c}),n);return Y.createElement(m,Ow({},v,{className:y}))}_E.propTypes=KZ;var XZ=["className","cssModule","active","tag"];function Cw(){return Cw=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},Cw.apply(this,arguments)}function JZ(e,t){if(e==null)return{};var n=eK(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 eK(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 tK={active:N.bool,className:N.string,cssModule:N.object,tag:it};function bE(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=JZ(e,XZ),s=He(Ve(t,"nav-item",r?"active":!1),n);return Y.createElement(o,Cw({},a,{className:s}))}bE.propTypes=tK;function kw(e){"@babel/helpers - typeof";return kw=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},kw(e)}var nK=["className","cssModule","active","tag","innerRef"];function Pw(){return Pw=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},Pw.apply(this,arguments)}function rK(e,t){if(e==null)return{};var n=iK(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 iK(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 oK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BP(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 aK(e,t,n){return t&&BP(e.prototype,t),n&&BP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sK(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&&Lw(e,t)}function Lw(e,t){return Lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Lw(e,t)}function lK(e){var t=uK();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 cK(this,i)}}function cK(e,t){if(t&&(kw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lI(e)}function lI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uK(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mv(e)}var dK={active:N.bool,className:N.string,cssModule:N.object,disabled:N.bool,href:N.any,innerRef:N.oneOfType([N.object,N.func,N.string]),onClick:N.func,tag:it},cI=function(e){sK(n,e);var t=lK(n);function n(r){var i;return oK(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(lI(i)),i}return aK(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,l=i.tag,c=l===void 0?"a":l,d=i.innerRef,f=rK(i,nK),p=He(Ve(o,"nav-link",{disabled:f.disabled,active:s}),a);return Y.createElement(c,Pw({},f,{ref:d,onClick:this.onClick,className:p}))}}]),n}(Y.Component);cI.propTypes=dK;const uI=cI;var fK=["className","cssModule","variant","innerRef"];function jw(){return jw=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},jw.apply(this,arguments)}function zP(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 hK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zP(Object(n),!0).forEach(function(r){pK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zP(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 mK(e,t){if(e==null)return{};var n=gK(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 gK(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 vK={active:N.bool,"aria-label":N.string,onClick:N.func,variant:N.oneOf(["white"]),className:N.string,cssModule:N.object,innerRef:N.oneOfType([N.object,N.string,N.func])};function dI(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=mK(e,fK),o=He(Ve(t,"btn-close",n&&"btn-close-".concat(n)));return Y.createElement("button",jw({ref:r,type:"button",className:o},hK({"aria-label":"close"},i)))}dI.propTypes=vK;var yK=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Mw(){return Mw=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},Mw.apply(this,arguments)}function _K(e,t){if(e==null)return{};var n=bK(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 bK(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 wK={active:N.bool,"aria-label":N.string,block:N.bool,children:N.node,className:N.string,cssModule:N.object,close:N.bool,color:N.string,disabled:N.bool,innerRef:N.oneOfType([N.object,N.func,N.string]),onClick:N.func,outline:N.bool,size:N.string,tag:it};function yt(e){var t=I.useCallback(function(w){if(e.disabled){w.preventDefault();return}if(e.onClick)return e.onClick(w)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,c=l===void 0?"secondary":l,d=e.outline,f=e.size,p=e.tag,m=p===void 0?"button":p,v=e.innerRef,y=_K(e,yK);if(a)return Y.createElement(dI,y);var x="btn".concat(d?"-outline":"","-").concat(c),_=He(Ve(o,"btn",x,f?"btn-".concat(f):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return y.href&&m==="button"&&(m="a"),Y.createElement(m,Mw({type:m==="button"&&y.onClick?"button":void 0},y,{className:_,ref:v,onClick:t,"aria-label":r}))}yt.propTypes=wK;var fI=I.createContext(),hI=I.createContext();function VP(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(fI.Provider,{value:r},I.createElement(hI.Provider,{value:a},t))}var pI=function(t){return Array.isArray(t)?t[0]:t},mI=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)}},Nw=function(t,n){if(typeof t=="function")return mI(t,n);t!=null&&(t.current=n)},HP=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},WP=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Mr="top",wi="bottom",xi="right",Nr="left",wE="auto",Vh=[Mr,wi,xi,Nr],du="start",nh="end",xK="clippingParents",gI="viewport",xd="popper",SK="reference",YP=Vh.reduce(function(e,t){return e.concat([t+"-"+du,t+"-"+nh])},[]),vI=[].concat(Vh,[wE]).reduce(function(e,t){return e.concat([t,t+"-"+du,t+"-"+nh])},[]),EK="beforeRead",TK="read",OK="afterRead",CK="beforeMain",kK="main",PK="afterMain",LK="beforeWrite",jK="write",MK="afterWrite",NK=[EK,TK,OK,CK,kK,PK,LK,jK,MK];function Eo(e){return e?(e.nodeName||"").toLowerCase():null}function Zr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sl(e){var t=Zr(e).Element;return e instanceof t||e instanceof Element}function mi(e){var t=Zr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xE(e){if(typeof ShadowRoot>"u")return!1;var t=Zr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AK(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];!mi(o)||!Eo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function RK(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!mi(i)||!Eo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const DK={name:"applyStyles",enabled:!0,phase:"write",fn:AK,effect:RK,requires:["computeStyles"]};function _o(e){return e.split("-")[0]}var sl=Math.max,gv=Math.min,fu=Math.round;function Aw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yI(){return!/^((?!chrome|android).)*safari/i.test(Aw())}function hu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&mi(e)&&(i=e.offsetWidth>0&&fu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fu(r.height)/e.offsetHeight||1);var a=Sl(e)?Zr(e):window,s=a.visualViewport,l=!yI()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,d=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function SE(e){var t=hu(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 _I(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ra(e){return Zr(e).getComputedStyle(e)}function IK(e){return["table","td","th"].indexOf(Eo(e))>=0}function ws(e){return((Sl(e)?e.ownerDocument:e.document)||window.document).documentElement}function f0(e){return Eo(e)==="html"?e:e.assignedSlot||e.parentNode||(xE(e)?e.host:null)||ws(e)}function GP(e){return!mi(e)||ra(e).position==="fixed"?null:e.offsetParent}function FK(e){var t=/firefox/i.test(Aw()),n=/Trident/i.test(Aw());if(n&&mi(e)){var r=ra(e);if(r.position==="fixed")return null}var i=f0(e);for(xE(i)&&(i=i.host);mi(i)&&["html","body"].indexOf(Eo(i))<0;){var o=ra(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 Hh(e){for(var t=Zr(e),n=GP(e);n&&IK(n)&&ra(n).position==="static";)n=GP(n);return n&&(Eo(n)==="html"||Eo(n)==="body"&&ra(n).position==="static")?t:n||FK(e)||t}function EE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uf(e,t,n){return sl(e,gv(t,n))}function $K(e,t,n){var r=uf(e,t,n);return r>n?n:r}function bI(){return{top:0,right:0,bottom:0,left:0}}function wI(e){return Object.assign({},bI(),e)}function xI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var UK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,wI(typeof t!="number"?t:xI(t,Vh))};function BK(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_o(n.placement),l=EE(s),c=[Nr,xi].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var f=UK(i.padding,n),p=SE(o),m=l==="y"?Mr:Nr,v=l==="y"?wi:xi,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],_=Hh(o),w=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-x/2,E=f[m],O=w-p[d]-f[v],k=w/2-p[d]/2+S,j=uf(E,k,O),R=l;n.modifiersData[r]=(t={},t[R]=j,t.centerOffset=j-k,t)}}function zK(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)||_I(t.elements.popper,i)&&(t.elements.arrow=i))}const VK={name:"arrow",enabled:!0,phase:"main",fn:BK,effect:zK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var HK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function WK(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:fu(n*i)/i||0,y:fu(r*i)/i||0}}function qP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof d=="function"?d({x:m,y}):{x:m,y};m=x.x,y=x.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Nr,E=Mr,O=window;if(c){var k=Hh(n),j="clientHeight",R="clientWidth";if(k===Zr(n)&&(k=ws(n),ra(k).position!=="static"&&s==="absolute"&&(j="scrollHeight",R="scrollWidth")),k=k,i===Mr||(i===Nr||i===xi)&&o===nh){E=wi;var U=f&&k===O&&O.visualViewport?O.visualViewport.height:k[j];y-=U-r.height,y*=l?1:-1}if(i===Nr||(i===Mr||i===wi)&&o===nh){S=xi;var A=f&&k===O&&O.visualViewport?O.visualViewport.width:k[R];m-=A-r.width,m*=l?1:-1}}var V=Object.assign({position:s},c&&HK),W=d===!0?WK({x:m,y},Zr(n)):{x:m,y};if(m=W.x,y=W.y,l){var X;return Object.assign({},V,(X={},X[E]=w?"0":"",X[S]=_?"0":"",X.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",X))}return Object.assign({},V,(t={},t[E]=w?y+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function YK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:_o(t.placement),variation:pu(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,qP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qP(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 GK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YK,data:{}};var hm={passive:!0};function qK(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Zr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,hm)}),s&&l.addEventListener("resize",n.update,hm),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,hm)}),s&&l.removeEventListener("resize",n.update,hm)}}const ZK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qK,data:{}};var KK={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(e){return e.replace(/left|right|bottom|top/g,function(t){return KK[t]})}var QK={start:"end",end:"start"};function ZP(e){return e.replace(/start|end/g,function(t){return QK[t]})}function TE(e){var t=Zr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function OE(e){return hu(ws(e)).left+TE(e).scrollLeft}function XK(e,t){var n=Zr(e),r=ws(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=yI();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+OE(e),y:l}}function JK(e){var t,n=ws(e),r=TE(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=sl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=sl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+OE(e),l=-r.scrollTop;return ra(i||n).direction==="rtl"&&(s+=sl(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function CE(e){var t=ra(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function SI(e){return["html","body","#document"].indexOf(Eo(e))>=0?e.ownerDocument.body:mi(e)&&CE(e)?e:SI(f0(e))}function df(e,t){var n;t===void 0&&(t=[]);var r=SI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Zr(r),a=i?[o].concat(o.visualViewport||[],CE(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(df(f0(a)))}function Rw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eQ(e,t){var n=hu(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 KP(e,t,n){return t===gI?Rw(XK(e,n)):Sl(t)?eQ(t,n):Rw(JK(ws(e)))}function tQ(e){var t=df(f0(e)),n=["absolute","fixed"].indexOf(ra(e).position)>=0,r=n&&mi(e)?Hh(e):e;return Sl(r)?t.filter(function(i){return Sl(i)&&_I(i,r)&&Eo(i)!=="body"}):[]}function nQ(e,t,n,r){var i=t==="clippingParents"?tQ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var d=KP(e,c,r);return l.top=sl(d.top,l.top),l.right=gv(d.right,l.right),l.bottom=gv(d.bottom,l.bottom),l.left=sl(d.left,l.left),l},KP(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function EI(e){var t=e.reference,n=e.element,r=e.placement,i=r?_o(r):null,o=r?pu(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Mr:l={x:a,y:t.y-n.height};break;case wi:l={x:a,y:t.y+t.height};break;case xi:l={x:t.x+t.width,y:s};break;case Nr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?EE(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case du:l[c]=l[c]-(t[d]/2-n[d]/2);break;case nh:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function rh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?xK:s,c=n.rootBoundary,d=c===void 0?gI:c,f=n.elementContext,p=f===void 0?xd:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,_=wI(typeof x!="number"?x:xI(x,Vh)),w=p===xd?SK:xd,S=e.rects.popper,E=e.elements[v?w:p],O=nQ(Sl(E)?E:E.contextElement||ws(e.elements.popper),l,d,a),k=hu(e.elements.reference),j=EI({reference:k,element:S,strategy:"absolute",placement:i}),R=Rw(Object.assign({},S,j)),U=p===xd?R:k,A={top:O.top-U.top+_.top,bottom:U.bottom-O.bottom+_.bottom,left:O.left-U.left+_.left,right:U.right-O.right+_.right},V=e.modifiersData.offset;if(p===xd&&V){var W=V[i];Object.keys(A).forEach(function(X){var G=[xi,wi].indexOf(X)>=0?1:-1,K=[Mr,wi].indexOf(X)>=0?"y":"x";A[X]+=W[K]*G})}return A}function rQ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?vI:l,d=pu(r),f=d?s?YP:YP.filter(function(v){return pu(v)===d}):Vh,p=f.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=rh(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[_o(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function iQ(e){if(_o(e)===wE)return[];var t=lg(e);return[ZP(e),t,ZP(t)]}function oQ(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,_=_o(x),w=_===x,S=l||(w||!v?[lg(x)]:iQ(x)),E=[x].concat(S).reduce(function(q,ie){return q.concat(_o(ie)===wE?rQ(t,{placement:ie,boundary:d,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:y}):ie)},[]),O=t.rects.reference,k=t.rects.popper,j=new Map,R=!0,U=E[0],A=0;A<E.length;A++){var V=E[A],W=_o(V),X=pu(V)===du,G=[Mr,wi].indexOf(W)>=0,K=G?"width":"height",ne=rh(t,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),le=G?X?xi:Nr:X?wi:Mr;O[K]>k[K]&&(le=lg(le));var Z=lg(le),F=[];if(o&&F.push(ne[W]<=0),s&&F.push(ne[le]<=0,ne[Z]<=0),F.every(function(q){return q})){U=V,R=!1;break}j.set(V,F)}if(R)for(var D=v?3:1,H=function(ie){var ae=E.find(function(he){var C=j.get(he);if(C)return C.slice(0,ie).every(function(M){return M})});if(ae)return U=ae,"break"},re=D;re>0;re--){var z=H(re);if(z==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const aQ={name:"flip",enabled:!0,phase:"main",fn:oQ,requiresIfExists:["offset"],data:{_skip:!1}};function QP(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 XP(e){return[Mr,xi,wi,Nr].some(function(t){return e[t]>=0})}function sQ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=rh(t,{elementContext:"reference"}),s=rh(t,{altBoundary:!0}),l=QP(a,r),c=QP(s,i,o),d=XP(l),f=XP(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const lQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sQ};function cQ(e,t,n){var r=_o(e),i=[Nr,Mr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Nr,xi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function uQ(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=vI.reduce(function(d,f){return d[f]=cQ(f,t.rects,o),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const dQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uQ};function fQ(e){var t=e.state,n=e.name;t.modifiersData[n]=EI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hQ={name:"popperOffsets",enabled:!0,phase:"read",fn:fQ,data:{}};function pQ(e){return e==="x"?"y":"x"}function mQ(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=rh(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),_=_o(t.placement),w=pu(t.placement),S=!w,E=EE(_),O=pQ(E),k=t.modifiersData.popperOffsets,j=t.rects.reference,R=t.rects.popper,U=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(k){if(o){var X,G=E==="y"?Mr:Nr,K=E==="y"?wi:xi,ne=E==="y"?"height":"width",le=k[E],Z=le+x[G],F=le-x[K],D=m?-R[ne]/2:0,H=w===du?j[ne]:R[ne],re=w===du?-R[ne]:-j[ne],z=t.elements.arrow,q=m&&z?SE(z):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bI(),ae=ie[G],he=ie[K],C=uf(0,j[ne],q[ne]),M=S?j[ne]/2-D-C-ae-A.mainAxis:H-C-ae-A.mainAxis,$=S?-j[ne]/2+D+C+he+A.mainAxis:re+C+he+A.mainAxis,J=t.elements.arrow&&Hh(t.elements.arrow),ee=J?E==="y"?J.clientTop||0:J.clientLeft||0:0,se=(X=V==null?void 0:V[E])!=null?X:0,ge=le+M-se-ee,Me=le+$-se,ue=uf(m?gv(Z,ge):Z,le,m?sl(F,Me):F);k[E]=ue,W[E]=ue-le}if(s){var me,_e=E==="x"?Mr:Nr,Se=E==="x"?wi:xi,ke=k[O],Ce=O==="y"?"height":"width",je=ke+x[_e],ce=ke-x[Se],fe=[Mr,Nr].indexOf(_)!==-1,ye=(me=V==null?void 0:V[O])!=null?me:0,ve=fe?je:ke-j[Ce]-R[Ce]-ye+A.altAxis,xe=fe?ke+j[Ce]+R[Ce]-ye-A.altAxis:ce,Le=m&&fe?$K(ve,ke,xe):uf(m?ve:je,ke,m?xe:ce);k[O]=Le,W[O]=Le-ke}t.modifiersData[r]=W}}const gQ={name:"preventOverflow",enabled:!0,phase:"main",fn:mQ,requiresIfExists:["offset"]};function vQ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yQ(e){return e===Zr(e)||!mi(e)?TE(e):vQ(e)}function _Q(e){var t=e.getBoundingClientRect(),n=fu(t.width)/e.offsetWidth||1,r=fu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bQ(e,t,n){n===void 0&&(n=!1);var r=mi(t),i=mi(t)&&_Q(t),o=ws(t),a=hu(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Eo(t)!=="body"||CE(o))&&(s=yQ(t)),mi(t)?(l=hu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=OE(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wQ(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 a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function xQ(e){var t=wQ(e);return NK.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function SQ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function EQ(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 JP={placement:"bottom",modifiers:[],strategy:"absolute"};function eL(){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 TQ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?JP:i;return function(s,l,c){c===void 0&&(c=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},JP,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(_){var w=typeof _=="function"?_(d.options):_;y(),d.options=Object.assign({},o,d.options,w),d.scrollParents={reference:Sl(s)?df(s):s.contextElement?df(s.contextElement):[],popper:df(l)};var S=xQ(EQ([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(E){return E.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var _=d.elements,w=_.reference,S=_.popper;if(eL(w,S)){d.rects={reference:bQ(w,Hh(S),d.options.strategy==="fixed"),popper:SE(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var O=d.orderedModifiers[E],k=O.fn,j=O.options,R=j===void 0?{}:j,U=O.name;typeof k=="function"&&(d=k({state:d,options:R,name:U,instance:m})||d)}}}},update:SQ(function(){return new Promise(function(x){m.forceUpdate(),x(d)})}),destroy:function(){y(),p=!0}};if(!eL(s,l))return m;m.setOptions(c).then(function(x){!p&&c.onFirstUpdate&&c.onFirstUpdate(x)});function v(){d.orderedModifiers.forEach(function(x){var _=x.name,w=x.options,S=w===void 0?{}:w,E=x.effect;if(typeof E=="function"){var O=E({state:d,name:_,instance:m,options:S}),k=function(){};f.push(O||k)}})}function y(){f.forEach(function(x){return x()}),f=[]}return m}}var OQ=[ZK,hQ,GK,DK,dQ,aQ,gQ,VK,lQ],CQ=TQ({defaultModifiers:OQ}),kQ=typeof Element<"u",PQ=typeof Map=="function",LQ=typeof Set=="function",jQ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function cg(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(!cg(e[r],t[r]))return!1;return!0}var o;if(PQ&&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(!cg(r.value[1],t.get(r.value[0])))return!1;return!0}if(LQ&&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(jQ&&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(kQ&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!cg(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var MQ=function(t,n){try{return cg(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const NQ=ca(MQ);var AQ=[],RQ=function(t,n,r){r===void 0&&(r={});var i=I.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||AQ},a=I.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,y=Object.keys(v.elements);Rl.flushSync(function(){l({styles:HP(y.map(function(x){return[x,v.styles[x]||{}]})),attributes:HP(y.map(function(x){return[x,v.attributes[x]]}))})})},requires:["computeStyles"]}},[]),d=I.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return NQ(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),f=I.useRef();return WP(function(){f.current&&f.current.setOptions(d)},[d]),WP(function(){if(!(t==null||n==null)){var p=r.createPopper||CQ,m=p(t,n,d);return f.current=m,function(){m.destroy(),f.current=null}}},[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},DQ=function(){},IQ=function(){return Promise.resolve(null)},FQ=[];function TI(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?FQ:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,d=e.children,f=I.useContext(fI),p=I.useState(null),m=p[0],v=p[1],y=I.useState(null),x=y[0],_=y[1];I.useEffect(function(){Nw(c,m)},[c,m]);var w=I.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),S=RQ(s||f,m,w),E=S.state,O=S.styles,k=S.forceUpdate,j=S.update,R=I.useMemo(function(){return{ref:v,style:O.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:O.arrow,ref:_},forceUpdate:k||DQ,update:j||IQ}},[v,_,n,E,O,j,k]);return pI(d)(R)}var $Q=function(){},UQ=$Q;const BQ=ca(UQ);function zQ(e){var t=e.children,n=e.innerRef,r=I.useContext(hI),i=I.useCallback(function(o){Nw(n,o),mI(r,o)},[n,r]);return I.useEffect(function(){return function(){return Nw(n,null)}},[]),I.useEffect(function(){BQ(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),pI(t)({ref:i})}var ih=Y.createContext({}),OI=Y.createContext({});function Dw(e){"@babel/helpers - typeof";return Dw=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},Dw(e)}var VQ=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function Iw(){return Iw=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},Iw.apply(this,arguments)}function Ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HQ(e,t){if(e==null)return{};var n=WQ(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 WQ(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 YQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tL(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 GQ(e,t,n){return t&&tL(e.prototype,t),n&&tL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qQ(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&&Fw(e,t)}function Fw(e,t){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fw(e,t)}function ZQ(e){var t=QQ();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 KQ(this,i)}}function KQ(e,t){if(t&&(Dw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ca(e)}function Ca(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}var XQ={a11y:N.bool,disabled:N.bool,direction:N.oneOf(["up","down","start","end","left","right"]),group:N.bool,isOpen:N.bool,nav:N.bool,active:N.bool,size:N.string,tag:it,toggle:N.func,children:N.node,className:N.string,cssModule:N.object,dropup:N.bool,inNavbar:N.bool,setActiveFromChild:N.bool,menuRole:N.oneOf(["listbox","menu"])},JQ={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},eX=[_t.space,_t.enter,_t.up,_t.down,_t.end,_t.home],h0=function(e){qQ(n,e);var t=ZQ(n);function n(r){var i;return YQ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(Ca(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Ca(i)),i.handleKeyDown=i.handleKeyDown.bind(Ca(i)),i.removeEvents=i.removeEvents.bind(Ca(i)),i.toggle=i.toggle.bind(Ca(i)),i.handleMenuRef=i.handleMenuRef.bind(Ca(i)),i.handleToggleRef=i.handleToggleRef.bind(Ca(i)),i.containerRef=Y.createRef(),i.menuRef=Y.createRef(),i.toggleRef=Y.createRef(),i}return GQ(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==_t.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle(),l=s.contains(i.target),c=a&&a.contains(i.target)&&a!==i.target,d=!1;o&&(d=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!d||c)&&(i.type!=="keyup"||i.which===_t.tab))&&this.toggle(i)}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=_t.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((eX.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([_t.space,_t.enter,_t.up,_t.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var w;return(w=o.getMenuItems()[0])===null||w===void 0?void 0:w.focus()});else if(this.props.isOpen&&l){var c;i.preventDefault(),(c=this.getMenuItems()[0])===null||c===void 0||c.focus()}else this.props.isOpen&&i.which===_t.esc&&this.toggle(i);if(this.props.isOpen&&a){if([_t.tab,_t.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([_t.space,_t.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([_t.down,_t.up].indexOf(i.which)>-1||[_t.n,_t.p].indexOf(i.which)>-1&&i.ctrlKey){var d=this.getMenuItems(),f=d.indexOf(i.target);_t.up===i.which||_t.p===i.which&&i.ctrlKey?f=f!==0?f-1:d.length-1:(_t.down===i.which||_t.n===i.which&&i.ctrlKey)&&(f=f===d.length-1?0:f+1),d[f].focus()}else if(_t.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(_t.home===i.which){var m=this.getMenuItems();m[0].focus()}else if(i.which>=48&&i.which<=90)for(var v=this.getMenuItems(),y=String.fromCharCode(i.which).toLowerCase(),x=0;x<v.length;x+=1){var _=v[x].textContent&&v[x].textContent[0].toLowerCase();if(_===y){v[x].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,o=this,a=bs(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,l=a.cssModule,c=a.direction,d=a.isOpen,f=a.group,p=a.size,m=a.nav,v=a.setActiveFromChild,y=a.active,x=a.tag;a.menuRole;var _=HQ(a,VQ),w=x||(m?"li":"div"),S=!1;v&&Y.Children.map(this.props.children[1].props.children,function(O){O&&O.props.active&&(S=!0)});var E=He(Ve(s,m&&y?"active":!1,v&&S?"active":!1,(i={"btn-group":f},Ea(i,"btn-group-".concat(p),!!p),Ea(i,"dropdown",!f),Ea(i,"dropup",c==="up"),Ea(i,"dropstart",c==="start"||c==="left"),Ea(i,"dropend",c==="end"||c==="right"),Ea(i,"show",d),Ea(i,"nav-item",m),i)),l);return this.context.insideInputGroup?Y.createElement(ih.Provider,{value:this.getContextValue()},Y.createElement(VP,null,Y.Children.map(this.props.children,function(O){return Y.cloneElement(O,{onKeyDown:o.handleKeyDown})}))):Y.createElement(ih.Provider,{value:this.getContextValue()},Y.createElement(VP,null,Y.createElement(w,Iw({},_,Ea({},typeof w=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:E}))))}}]),n}(Y.Component);h0.propTypes=XQ;h0.defaultProps=JQ;h0.contextType=OI;const Wh=h0;function $w(e){"@babel/helpers - typeof";return $w=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},$w(e)}var tX=["className","cssModule","divider","tag","header","active","text"];function Uw(){return Uw=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},Uw.apply(this,arguments)}function nX(e,t){if(e==null)return{};var n=rX(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 rX(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 iX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nL(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 oX(e,t,n){return t&&nL(e.prototype,t),n&&nL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aX(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&&Bw(e,t)}function Bw(e,t){return Bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bw(e,t)}function sX(e){var t=cX();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 lX(this,i)}}function lX(e,t){if(t&&($w(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 cX(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yv(e)}var uX={children:N.node,active:N.bool,disabled:N.bool,divider:N.bool,tag:it,header:N.bool,onClick:N.func,className:N.string,cssModule:N.object,toggle:N.bool,text:N.bool},kE=function(e){aX(n,e);var t=sX(n);function n(r){var i;return iX(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(zw(i)),i.getTabIndex=i.getTabIndex.bind(zw(i)),i}return oX(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,c=a.divider,d=a.text;if(s||l||c||d){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=bs(this.props,["toggle"]),s=a.className,l=a.cssModule,c=a.divider,d=a.tag,f=d===void 0?"button":d,p=a.header,m=a.active,v=a.text,y=nX(a,tX),x=He(Ve(s,{disabled:y.disabled,"dropdown-item":!c&&!p&&!v,active:m,"dropdown-header":p,"dropdown-divider":c,"dropdown-item-text":v}),l);return f==="button"&&(p?f="h6":c?f="div":y.href?f="a":v&&(f="span")),Y.createElement(f,Uw({type:f==="button"&&(y.onClick||this.props.toggle)?"button":void 0},y,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(Y.Component);kE.propTypes=uX;kE.contextType=ih;const Ue=kE;function Vw(e){"@babel/helpers - typeof";return Vw=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},Vw(e)}var dX=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function _v(){return _v=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},_v.apply(this,arguments)}function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(n),!0).forEach(function(r){fX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hX(e){return vX(e)||gX(e)||mX(e)||pX()}function pX(){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 mX(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 gX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vX(e){if(Array.isArray(e))return Hw(e)}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 yX(e,t){if(e==null)return{};var n=_X(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 _X(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 bX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oL(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 wX(e,t,n){return t&&oL(e.prototype,t),n&&oL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xX(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&&Ww(e,t)}function Ww(e,t){return Ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ww(e,t)}function SX(e){var t=OX();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 EX(this,i)}}function EX(e,t){if(t&&(Vw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TX(e)}function TX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OX(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}var CX={tag:it,children:N.node.isRequired,dark:N.bool,end:N.bool,flip:N.bool,modifiers:N.array,className:N.string,cssModule:N.object,style:N.object,persist:N.bool,strategy:N.string,container:uu,updateOnSelect:N.bool,right:rI(N.bool,'Please use "end" instead.')},kX={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},PE=function(e){xX(n,e);var t=SX(n);function n(){return bX(this,n),t.apply(this,arguments)}return wX(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,c=o.end,d=o.right,f=o.tag,p=f===void 0?"div":f,m=o.flip,v=m===void 0?!0:m,y=o.modifiers,x=y===void 0?[]:y,_=o.persist,w=o.strategy,S=o.container,E=o.updateOnSelect,O=yX(o,dX),k=He(Ve(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":c||d,show:this.context.isOpen}),s),j=p;if(_||this.context.isOpen&&!this.context.inNavbar){var R=kX[this.context.direction]||"bottom",U=c||d?"end":"start",A="".concat(R,"-").concat(U),V=[].concat(hX(x),[{name:"flip",enabled:!!v}]),W=Y.createElement(TI,{placement:A,modifiers:V,strategy:w},function(G){var K=G.ref,ne=G.style,le=G.placement,Z=G.update,F=iL(iL({},i.props.style),ne),D=function(re){K(re);var z=i.context.onMenuRef;z&&z(re)};return Y.createElement(j,_v({tabIndex:"-1",role:i.getRole(),ref:D},O,{style:F,"aria-hidden":!i.context.isOpen,className:k,"data-popper-placement":le,onClick:function(){return E&&Z()}}))});return S?al.createPortal(W,th(S)):W}var X=this.context.onMenuRef;return Y.createElement(j,_v({tabIndex:"-1",role:this.getRole()},O,{ref:X,"aria-hidden":!this.context.isOpen,className:k,"data-popper-placement":O.placement}))}}]),n}(Y.Component);PE.propTypes=CX;PE.contextType=ih;const Bu=PE;function Yw(e){"@babel/helpers - typeof";return Yw=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},Yw(e)}var PX=["className","color","cssModule","caret","split","nav","tag","innerRef"];function LX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wv(){return wv=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},wv.apply(this,arguments)}function jX(e,t){if(e==null)return{};var n=MX(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 MX(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 NX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aL(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 AX(e,t,n){return t&&aL(e.prototype,t),n&&aL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function RX(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&&Gw(e,t)}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gw(e,t)}function DX(e){var t=FX();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 IX(this,i)}}function IX(e,t){if(t&&(Yw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CI(e)}function CI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FX(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}var $X={caret:N.bool,color:N.string,children:N.node,className:N.string,cssModule:N.object,disabled:N.bool,onClick:N.func,"aria-haspopup":N.bool,split:N.bool,tag:it,nav:N.bool,innerRef:N.oneOfType([N.object,N.string,N.func])},UX={color:"secondary","aria-haspopup":!0},p0=function(e){RX(n,e);var t=DX(n);function n(r){var i;return NX(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(CI(i)),i}return AX(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,l=o.cssModule,c=o.caret,d=o.split,f=o.nav,p=o.tag,m=o.innerRef,v=jX(o,PX),y=v["aria-label"]||"Toggle Dropdown",x=He(Ve(a,{"dropdown-toggle":c||d,"dropdown-toggle-split":d,"nav-link":f}),l),_=typeof v.children<"u"?v.children:Y.createElement("span",{className:"visually-hidden"},y),w;return f&&!p?(w="a",v.href="#"):p?w=p:(w=yt,v.color=s,v.cssModule=l),this.context.inNavbar?Y.createElement(w,wv({},v,{className:x,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:_})):Y.createElement(zQ,{innerRef:m},function(S){var E=S.ref,O=function(j){E(j);var R=i.context.onToggleRef;R&&R(j)};return Y.createElement(w,wv({},v,LX({},typeof w=="string"?"ref":"innerRef",O),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:_}))})}}]),n}(Y.Component);p0.propTypes=$X;p0.defaultProps=UX;p0.contextType=ih;const zu=p0;function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qw(e,t)}function BX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qw(e,t)}const sL={disabled:!1},kI=Y.createContext(null);var Bd="unmounted",Vs="exited",Hs="entering",vc="entered",Zw="exiting",ha=function(e){BX(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Vs,o.appearStatus=Hs):l=vc:r.unmountOnExit||r.mountOnEnter?l=Bd:l=Vs,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Bd?{status:Vs}: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 a=this.state.status;this.props.in?a!==Hs&&a!==vc&&(o=Hs):(a===Hs||a===vc)&&(o=Zw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Hs?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Vs&&this.setState({status:Bd})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[al.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!i&&!a||sL.disabled){this.safeSetState({status:vc},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Hs},function(){o.props.onEntering(c,d),o.onTransitionEnd(p,function(){o.safeSetState({status:vc},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:al.findDOMNode(this);if(!o||sL.disabled){this.safeSetState({status:Vs},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Zw},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Vs},function(){i.props.onExited(s)})})})},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,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:al.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Bd)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=MS(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(kI.Provider,{value:null},typeof a=="function"?a(i,s):Y.cloneElement(Y.Children.only(a),s))},t}(Y.Component);ha.contextType=kI;ha.propTypes={};function oc(){}ha.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oc,onEntering:oc,onEntered:oc,onExit:oc,onExiting:oc,onExited:oc};ha.UNMOUNTED=Bd;ha.EXITED=Vs;ha.ENTERING=Hs;ha.ENTERED=vc;ha.EXITING=Zw;const Vu=ha;var zX=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Sv(){return Sv=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},Sv.apply(this,arguments)}function VX(e,t){if(e==null)return{};var n=HX(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 HX(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 lL(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 oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(n),!0).forEach(function(r){WX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YX=oh(oh({},Vu.propTypes),{},{children:N.oneOfType([N.arrayOf(N.node),N.node]),tag:it,baseClass:N.string,baseClassActive:N.string,className:N.string,cssModule:N.object,innerRef:N.oneOfType([N.object,N.string,N.func])}),PI=oh(oh({},Vu.defaultProps),{},{timeout:hv.Fade,appear:!0,enter:!0,exit:!0,in:!0});function br(e){var t=I.useRef(null),n=e.tag,r=n===void 0?"div":n,i=e.baseClass,o=i===void 0?"fade":i,a=e.baseClassActive,s=a===void 0?"show":a,l=e.className,c=e.cssModule,d=e.children,f=e.innerRef,p=f===void 0?t:f,m=VX(e,zX),v=nI(oh({defaultProps:PI},m),pv),y=bs(m,pv);return Y.createElement(Vu,Sv({nodeRef:p},v),function(x){var _=x==="entered",w=He(Ve(l,o,_&&s),c);return Y.createElement(r,Sv({className:w},y,{ref:p}),d)})}br.propTypes=YX;br.defaultProps=PI;function Kw(e){"@babel/helpers - typeof";return Kw=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},Kw(e)}var GX=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ac;function Ev(){return Ev=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},Ev.apply(this,arguments)}function qX(e,t){if(e==null)return{};var n=ZX(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 ZX(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 KX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cL(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 QX(e,t,n){return t&&cL(e.prototype,t),n&&cL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function XX(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&&Qw(e,t)}function Qw(e,t){return Qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qw(e,t)}function JX(e){var t=tJ();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 eJ(this,i)}}function eJ(e,t){if(t&&(Kw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LI(e)}function LI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tJ(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function uL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uL(Object(n),!0).forEach(function(r){Dc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nJ=mu(mu({},Vu.propTypes),{},{horizontal:N.bool,isOpen:N.bool,children:N.oneOfType([N.arrayOf(N.node),N.node]),tag:it,className:N.node,navbar:N.bool,cssModule:N.object,innerRef:N.shape({current:N.object})}),rJ=mu(mu({},Vu.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:hv.Collapse}),iJ=(ac={},Dc(ac,fm.ENTERING,"collapsing"),Dc(ac,fm.ENTERED,"collapse show"),Dc(ac,fm.EXITING,"collapsing"),Dc(ac,fm.EXITED,"collapse"),ac);function oJ(e){return iJ[e]||"collapse"}var LE=function(e){XX(n,e);var t=JX(n);function n(r){var i;return KX(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||Y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(LI(i))}),i}return QX(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,o=this.props,a=o.tag,s=o.horizontal,l=o.isOpen,c=o.className,d=o.navbar,f=o.cssModule,p=o.children;o.innerRef;var m=qX(o,GX),v=this.state.dimension,y=nI(m,pv),x=bs(m,pv);return Y.createElement(Vu,Ev({},y,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(_){var w=oJ(_),S=He(Ve(c,s&&"collapse-horizontal",w,d&&"navbar-collapse"),f),E=v===null?null:Dc({},s?"width":"height",v);return Y.createElement(a,Ev({},x,{style:mu(mu({},x.style),E),className:S,ref:i.nodeRef}),p)})}}]),n}(I.Component);LE.propTypes=nJ;LE.defaultProps=rJ;const aJ=LE;var sJ=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function Xw(){return Xw=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},Xw.apply(this,arguments)}function lJ(e,t){if(e==null)return{};var n=cJ(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 cJ(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 uJ={body:N.bool,className:N.string,color:N.string,cssModule:N.object,innerRef:N.oneOfType([N.object,N.string,N.func]),inverse:N.bool,outline:N.bool,tag:it};function Kr(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,c=e.innerRef,d=lJ(e,sJ),f=He(Ve(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return Y.createElement(l,Xw({},d,{className:f,ref:c}))}Kr.propTypes=uJ;var dJ=["className","cssModule","innerRef","tag"];function Jw(){return Jw=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},Jw.apply(this,arguments)}function fJ(e,t){if(e==null)return{};var n=hJ(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 hJ(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 pJ={className:N.string,cssModule:N.object,innerRef:N.oneOfType([N.object,N.string,N.func]),tag:it};function gu(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=fJ(e,dJ),s=He(Ve(t,"card-body"),n);return Y.createElement(o,Jw({},a,{className:s,ref:r}))}gu.propTypes=pJ;var mJ=["className","cssModule","tag"];function ex(){return ex=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},ex.apply(this,arguments)}function gJ(e,t){if(e==null)return{};var n=vJ(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 vJ(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 yJ={className:N.string,cssModule:N.object,tag:it};function jI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=gJ(e,mJ),a=He(Ve(t,"card-footer"),n);return Y.createElement(i,ex({},o,{className:a}))}jI.propTypes=yJ;var _J=["className","cssModule","tag"];function tx(){return tx=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},tx.apply(this,arguments)}function bJ(e,t){if(e==null)return{};var n=wJ(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 wJ(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 xJ={className:N.string,cssModule:N.object,tag:it};function vu(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=bJ(e,_J),a=He(Ve(t,"card-header"),n);return Y.createElement(i,tx({},o,{className:a}))}vu.propTypes=xJ;var SJ=["className","cssModule","tag"];function nx(){return nx=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},nx.apply(this,arguments)}function EJ(e,t){if(e==null)return{};var n=TJ(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 TJ(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 OJ={className:N.string,cssModule:N.object,tag:it};function MI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=EJ(e,SJ),a=He(Ve(t,"card-text"),n);return Y.createElement(i,nx({},o,{className:a}))}MI.propTypes=OJ;var CJ=["className","cssModule","tag"];function rx(){return rx=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},rx.apply(this,arguments)}function kJ(e,t){if(e==null)return{};var n=PJ(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 PJ(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 LJ={className:N.string,cssModule:N.object,tag:it};function NI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=kJ(e,CJ),a=He(Ve(t,"card-title"),n);return Y.createElement(i,rx({},o,{className:a}))}NI.propTypes=LJ;function ix(e){"@babel/helpers - typeof";return ix=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},ix(e)}var jJ=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function ox(){return ox=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},ox.apply(this,arguments)}function dL(e){return RJ(e)||AJ(e)||NJ(e)||MJ()}function MJ(){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 NJ(e,t){if(e){if(typeof e=="string")return ax(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 ax(e,t)}}function AJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RJ(e){if(Array.isArray(e))return ax(e)}function ax(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 DJ(e,t){if(e==null)return{};var n=IJ(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 IJ(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 FJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fL(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 $J(e,t,n){return t&&fL(e.prototype,t),n&&fL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UJ(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&&sx(e,t)}function sx(e,t){return sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sx(e,t)}function BJ(e){var t=VJ();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 zJ(this,i)}}function zJ(e,t){if(t&&(ix(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zd(e)}function zd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VJ(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function hL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hL(Object(n),!0).forEach(function(r){HJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WJ(){}var YJ={children:N.oneOfType([N.node,N.func]).isRequired,popperClassName:N.string,placement:N.string,placementPrefix:N.string,arrowClassName:N.string,hideArrow:N.bool,tag:it,isOpen:N.bool,cssModule:N.object,offset:N.arrayOf(N.number),fallbackPlacements:N.array,flip:N.bool,container:uu,target:uu.isRequired,modifiers:N.array,strategy:N.string,boundariesElement:N.oneOfType([N.string,vE]),onClosed:N.func,fade:N.bool,transition:N.shape(br.propTypes)},GJ={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:WJ,fade:!0,transition:ug({},br.defaultProps)},jE=function(e){UJ(n,e);var t=BJ(n);function n(r){var i;return FJ(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(zd(i)),i.getTargetNode=i.getTargetNode.bind(zd(i)),i.getRef=i.getRef.bind(zd(i)),i.onClosed=i.onClosed.bind(zd(i)),i.state={isOpen:r.isOpen},i}return $J(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return th(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?th(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,l=i.flip;i.target;var c=i.offset,d=i.fallbackPlacements,f=i.placementPrefix,p=i.arrowClassName,m=i.hideArrow,v=i.popperClassName,y=i.tag;i.container;var x=i.modifiers,_=i.strategy,w=i.boundariesElement;i.onClosed;var S=i.fade,E=i.transition,O=i.placement,k=DJ(i,jJ),j=He(Ve("arrow",p),o),R=He(Ve(v,f?"".concat(f,"-auto"):""),this.props.cssModule),U=x.map(function(X){return X.name}),A=[{name:"offset",options:{offset:c}},{name:"flip",enabled:l,options:{fallbackPlacements:d}},{name:"preventOverflow",options:{boundary:w}}].filter(function(X){return!U.includes(X.name)}),V=[].concat(dL(A),dL(x)),W=ug(ug(ug({},br.defaultProps),E),{},{baseClass:S?E.baseClass:"",timeout:S?E.timeout:0});return Y.createElement(br,ox({},W,k,{in:s,onExited:this.onClosed,tag:y}),Y.createElement(TI,{referenceElement:this.targetNode,modifiers:V,placement:O,strategy:_},function(X){var G=X.ref,K=X.style,ne=X.placement,le=X.isReferenceHidden,Z=X.arrowProps,F=X.update;return Y.createElement("div",{ref:G,style:K,className:R,"data-popper-placement":ne,"data-popper-reference-hidden":le?"true":void 0},typeof a=="function"?a({update:F}):a,!m&&Y.createElement("span",{ref:Z.ref,className:j,style:Z.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():al.createPortal(Y.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Y.Component);jE.propTypes=YJ;jE.defaultProps=GJ;const qJ=jE;function lx(){return lx=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},lx.apply(this,arguments)}function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}function ZJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pL(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 KJ(e,t,n){return t&&pL(e.prototype,t),n&&pL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QJ(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&&cx(e,t)}function cx(e,t){return cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cx(e,t)}function XJ(e){var t=eee();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 JJ(this,i)}}function JJ(e,t){if(t&&(ah(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fr(e)}function Fr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eee(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}var ME={children:N.oneOfType([N.node,N.func]),placement:N.oneOf(xZ),target:uu.isRequired,container:uu,isOpen:N.bool,disabled:N.bool,hideArrow:N.bool,boundariesElement:N.oneOfType([N.string,vE]),className:N.string,innerClassName:N.string,arrowClassName:N.string,popperClassName:N.string,cssModule:N.object,toggle:N.func,autohide:N.bool,placementPrefix:N.string,delay:N.oneOfType([N.shape({show:N.number,hide:N.number}),N.number]),modifiers:N.array,strategy:N.string,offset:N.arrayOf(N.number),innerRef:N.oneOfType([N.func,N.string,N.object]),trigger:N.string,fade:N.bool,flip:N.bool},AI={show:0,hide:50},tee={isOpen:!1,hideArrow:!1,autohide:!1,delay:AI,toggle:function(){},trigger:"click",fade:!0};function RI(e,t){return t&&(e===t||t.contains(e))}function mL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return RI(e,n)})[0]}var NE=function(e){QJ(n,e);var t=XJ(n);function n(r){var i;return ZJ(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(Fr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Fr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(Fr(i)),i.toggle=i.toggle.bind(Fr(i)),i.showWithDelay=i.showWithDelay.bind(Fr(i)),i.hideWithDelay=i.hideWithDelay.bind(Fr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(Fr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(Fr(i)),i.show=i.show.bind(Fr(i)),i.hide=i.hide.bind(Fr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(Fr(i)),i.getRef=i.getRef.bind(Fr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return KJ(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||mL(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!RI(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&mL(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):ah(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return ah(o)==="object"?isNaN(o[i])?AI[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=th(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,c=a.innerClassName,d=a.isOpen,f=a.hideArrow,p=a.boundariesElement,m=a.placement,v=a.placementPrefix,y=a.arrowClassName,x=a.popperClassName,_=a.container,w=a.modifiers,S=a.strategy,E=a.offset,O=a.fade,k=a.flip,j=a.children,R=bs(this.props,Object.keys(ME)),U=He(x,l),A=He(c,l);return Y.createElement(qJ,{className:s,target:o,isOpen:d,hideArrow:f,boundariesElement:p,placement:m,placementPrefix:v,arrowClassName:y,popperClassName:U,container:_,modifiers:w,strategy:S,offset:E,cssModule:l,fade:O,flip:k},function(V){var W=V.update;return Y.createElement("div",lx({},R,{ref:i.getRef,className:A,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof j=="function"?j({update:W}):j)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Y.Component);NE.propTypes=ME;NE.defaultProps=tee;const nee=NE;var ree=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}function gL(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 X_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(n),!0).forEach(function(r){iee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oee(e,t){if(e==null)return{};var n=aee(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 aee(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 see={animated:N.bool,bar:N.bool,barAriaLabelledBy:N.string,barAriaValueText:N.string,barClassName:N.string,barStyle:N.object,children:N.node,className:N.string,cssModule:N.object,color:N.string,max:N.oneOfType([N.string,N.number]),min:N.oneOfType([N.string,N.number]),multi:N.bool,striped:N.bool,style:N.object,tag:it,value:N.oneOfType([N.string,N.number])};function DI(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,c=e.max,d=c===void 0?100:c,f=e.animated,p=e.striped,m=e.color,v=e.bar,y=e.multi,x=e.tag,_=x===void 0?"div":x,w=e.style,S=w===void 0?{}:w,E=e.barStyle,O=E===void 0?{}:E,k=e.barAriaValueText,j=e.barAriaLabelledBy,R=oee(e,ree),U=FP(a)/FP(d)*100,A=He(Ve(n,"progress"),i),V=He(Ve("progress-bar",v&&n||r,f?"progress-bar-animated":null,m?"bg-".concat(m):null,p||f?"progress-bar-striped":null),i),W={className:V,style:X_(X_(X_({},v?S:{}),O),{},{width:"".concat(U,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":d,"aria-valuetext":k,"aria-labelledby":j,children:t};return v?Y.createElement(_,kv({},R,W)):Y.createElement(_,kv({},R,{style:S,className:A}),y?t:Y.createElement("div",W))}DI.propTypes=see;function ux(e){"@babel/helpers - typeof";return ux=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},ux(e)}function lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vL(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 cee(e,t,n){return t&&vL(e.prototype,t),n&&vL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uee(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&&dx(e,t)}function dx(e,t){return dx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dx(e,t)}function dee(e){var t=pee();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 fee(this,i)}}function fee(e,t){if(t&&(ux(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hee(e)}function hee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pee(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}var mee={children:N.node.isRequired,node:N.any},II=function(e){uee(n,e);var t=dee(n);function n(){return lee(this,n),t.apply(this,arguments)}return cee(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return yE?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),al.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(Y.Component);II.propTypes=mee;const gee=II;function fx(e){"@babel/helpers - typeof";return fx=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},fx(e)}function yL(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 sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(r){yc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ff(){return ff=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},ff.apply(this,arguments)}function yc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _L(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 yee(e,t,n){return t&&_L(e.prototype,t),n&&_L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ee(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&&hx(e,t)}function hx(e,t){return hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hx(e,t)}function bee(e){var t=xee();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 wee(this,i)}}function wee(e,t){if(t&&(fx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function li(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xee(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function jv(){}var bL=N.shape(br.propTypes),FI={autoFocus:N.bool,backdrop:N.oneOfType([N.bool,N.oneOf(["static"])]),backdropClassName:N.string,backdropTransition:bL,centered:N.bool,children:N.node,contentClassName:N.string,className:N.string,container:uu,cssModule:N.object,external:N.node,fade:N.bool,fullscreen:N.oneOfType([N.bool,N.oneOf(["sm","md","lg","xl"])]),innerRef:N.oneOfType([N.object,N.string,N.func]),isOpen:N.bool,keyboard:N.bool,labelledBy:N.string,modalClassName:N.string,modalTransition:bL,onClosed:N.func,onEnter:N.func,onExit:N.func,onOpened:N.func,returnFocusAfterClose:N.bool,role:N.string,scrollable:N.bool,size:N.string,toggle:N.func,trapFocus:N.bool,unmountOnClose:N.bool,wrapClassName:N.string,zIndex:N.oneOfType([N.number,N.string])},See=Object.keys(FI),Eee={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:jv,onClosed:jv,modalTransition:{timeout:hv.Modal},backdropTransition:{mountOnEnter:!0,timeout:hv.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Yh=function(e){_ee(n,e);var t=bee(n);function n(r){var i;return vee(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(li(i)),i.handleBackdropClick=i.handleBackdropClick.bind(li(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(li(i)),i.handleEscape=i.handleEscape.bind(li(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(li(i)),i.handleTab=i.handleTab.bind(li(i)),i.onOpened=i.onOpened.bind(li(i)),i.onClosed=i.onClosed.bind(li(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(li(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(li(i)),i.trapFocus=i.trapFocus.bind(li(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return yee(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),l=0,c=0;c<a;c+=1)if(o[c]===s){l=c;break}i.shiftKey&&l===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&l===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===_t.esc&&this.props.toggle&&(this.props.keyboard?(i.preventDefault(),i.stopPropagation(),this.props.toggle(i)):this.props.backdrop==="static"&&(i.preventDefault(),i.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var i=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(function(){i.setState({showStaticBackdropAnimation:!1})},100)}},{key:"onOpened",value:function(i,o){this.props.onOpened(),(this.props.modalTransition.onEntered||jv)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||jv)(i),o&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(OZ.join(", "))}},{key:"getFocusedChild",value:function(){var i,o=this.getFocusableChildren();try{i=document.activeElement}catch{i=o[0]}return i}},{key:"trapFocus",value:function(i){if(this.props.trapFocus&&this._element&&!(this._dialog&&this._dialog.parentNode===i.target)&&!(this.modalIndex<n.openCount-1)){for(var o=this.getFocusableChildren(),a=0;a<o.length;a+=1)if(o[a]===i.target)return;o.length>0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=th(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=yZ(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),_Z(),n.openCount===0&&(document.body.className=Ve(document.body.className,He("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=He("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),tI(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=bs(this.props,See),s="modal-dialog";return Y.createElement("div",ff({},a,{className:He(Ve(s,this.props.className,(i={},yc(i,"modal-".concat(this.props.size),this.props.size),yc(i,"".concat(s,"-centered"),this.props.centered),yc(i,"".concat(s,"-scrollable"),this.props.scrollable),yc(i,"modal-fullscreen",this.props.fullscreen===!0),yc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(c){o._dialog=c}}),Y.createElement("div",{className:He(Ve("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,c=a.backdropClassName,d=a.cssModule,f=a.isOpen,p=a.backdrop,m=a.role,v=a.labelledBy,y=a.external,x=a.innerRef,_={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":v,"aria-modal":!0,role:m,tabIndex:"-1"},w=this.props.fade,S=sc(sc(sc({},br.defaultProps),this.props.modalTransition),{},{baseClass:w?this.props.modalTransition.baseClass:"",timeout:w?this.props.modalTransition.timeout:0}),E=sc(sc(sc({},br.defaultProps),this.props.backdropTransition),{},{baseClass:w?this.props.backdropTransition.baseClass:"",timeout:w?this.props.backdropTransition.timeout:0}),O=p&&(w?Y.createElement(br,ff({},E,{in:f&&!!p,cssModule:d,className:He(Ve("modal-backdrop",c),d)})):Y.createElement("div",{className:He(Ve("modal-backdrop","show",c),d)}));return Y.createElement(gee,{node:this._element},Y.createElement("div",{className:He(s)},Y.createElement(br,ff({},_,S,{in:f,onEntered:this.onOpened,onExited:this.onClosed,cssModule:d,className:He(Ve("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),d),innerRef:x}),y,this.renderModalDialog()),O))}return null}}]),n}(Y.Component);Yh.propTypes=FI;Yh.defaultProps=Eee;Yh.openCount=0;Yh.originalBodyOverflow=null;const pa=Yh;var Tee=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function px(){return px=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},px.apply(this,arguments)}function Oee(e,t){if(e==null)return{};var n=Cee(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 Cee(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 kee={children:N.node,className:N.string,close:N.object,closeAriaLabel:N.string,cssModule:N.object,tag:it,toggle:N.func,wrapTag:it};function ma(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,c=l===void 0?"div":l,d=e.closeAriaLabel,f=d===void 0?"Close":d,p=e.close,m=Oee(e,Tee),v=He(Ve(n,"modal-header"),r);return!p&&o&&(t=Y.createElement("button",{type:"button",onClick:o,className:He("btn-close",r),"aria-label":f})),Y.createElement(c,px({},m,{className:v}),Y.createElement(s,{className:He("modal-title",r)},i),p||t)}ma.propTypes=kee;var Pee=["className","cssModule","tag"];function mx(){return mx=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},mx.apply(this,arguments)}function Lee(e,t){if(e==null)return{};var n=jee(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 jee(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 Mee={className:N.string,cssModule:N.object,tag:it};function ko(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Lee(e,Pee),a=He(Ve(t,"modal-body"),n);return Y.createElement(i,mx({},o,{className:a}))}ko.propTypes=Mee;var Nee=["className","cssModule","tag"];function gx(){return gx=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},gx.apply(this,arguments)}function Aee(e,t){if(e==null)return{};var n=Ree(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 Ree(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 Dee={className:N.string,cssModule:N.object,tag:it};function $l(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Aee(e,Nee),a=He(Ve(t,"modal-footer"),n);return Y.createElement(i,gx({},o,{className:a}))}$l.propTypes=Dee;function vx(){return vx=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},vx.apply(this,arguments)}var Iee={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Gh(e){var t=Ve("tooltip","show",e.popperClassName),n=Ve("tooltip-inner",e.innerClassName);return Y.createElement(nee,vx({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Gh.propTypes=ME;Gh.defaultProps=Iee;var Fee=["className","cssModule","tag","flush","horizontal","numbered"];function yx(){return yx=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},yx.apply(this,arguments)}function $ee(e,t){if(e==null)return{};var n=Uee(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 Uee(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 Bee={className:N.string,cssModule:N.object,flush:N.bool,horizontal:N.oneOfType([N.bool,N.string]),numbered:N.bool,tag:it},zee=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function $I(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,c=l===void 0?!1:l,d=$ee(e,Fee),f=He(Ve(t,"list-group",o?"list-group-flush":zee(s),{"list-group-numbered":c}),n);return Y.createElement(i,yx({},d,{className:f}))}$I.propTypes=Bee;var Vee=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function _x(){return _x=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},_x.apply(this,arguments)}function Hee(e,t){if(e==null)return{};var n=Wee(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 Wee(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 Yee={children:N.node,row:N.bool,check:N.bool,switch:N.bool,inline:N.bool,floating:N.bool,disabled:N.bool,tag:it,className:N.string,cssModule:N.object};function Vr(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.tag,c=l===void 0?"div":l,d=e.switch,f=Hee(e,Vee),p=o||d,m=He(Ve(t,r?"row":!1,p?"form-check":"mb-3",d?"form-switch":!1,p&&a?"form-check-inline":!1,p&&i?"disabled":!1,s&&"form-floating"),n);return c==="fieldset"&&(f.disabled=i),Y.createElement(c,_x({},f,{className:m}))}Vr.propTypes=Yee;function bx(e){"@babel/helpers - typeof";return bx=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},bx(e)}var Gee=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function wx(){return wx=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},wx.apply(this,arguments)}function qee(e,t){if(e==null)return{};var n=Zee(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 Zee(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 Kee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wL(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 Qee(e,t,n){return t&&wL(e.prototype,t),n&&wL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xee(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&&xx(e,t)}function xx(e,t){return xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xx(e,t)}function Jee(e){var t=tte();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 ete(this,i)}}function ete(e,t){if(t&&(bx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sx(e)}function Sx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tte(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}var nte={children:N.node,type:N.string,size:N.oneOfType([N.number,N.string]),bsSize:N.string,valid:N.bool,invalid:N.bool,tag:it,innerRef:N.oneOfType([N.object,N.func,N.string]),plaintext:N.bool,addon:N.bool,className:N.string,cssModule:N.object},UI=function(e){Xee(n,e);var t=Jee(n);function n(r){var i;return Kee(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(Sx(i)),i.focus=i.focus.bind(Sx(i)),i}return Qee(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,c=i.bsSize,d=i.valid,f=i.invalid,p=i.tag,m=i.addon,v=i.plaintext,y=i.innerRef,x=qee(i,Gee),_=["switch","radio","checkbox"].indexOf(l)>-1,w=/\D/g,S=l==="textarea",E=l==="select",O=l==="range",k=p||(E||S?l:"input"),j="form-control";v?(j="".concat(j,"-plaintext"),k=p||"input"):O?j="form-range":E?j="form-select":_&&(m?j=null:j="form-check-input"),x.size&&w.test(x.size)&&(bw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),c=x.size,delete x.size);var R=He(Ve(o,f&&"is-invalid",d&&"is-valid",c?E?"form-select-".concat(c):"form-control-".concat(c):!1,j),a);return(k==="input"||p&&typeof p=="function")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(v||l==="select"||typeof k!="string"||k==="select")&&(bw('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),Y.createElement(k,wx({},x,{ref:y,className:R,"aria-invalid":f}))}}]),n}(Y.Component);UI.propTypes=nte;const El=UI;var rte=["className","cssModule","tag","type","size"];function Nv(){return Nv=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},Nv.apply(this,arguments)}function ite(e,t){if(e==null)return{};var n=ote(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 ote(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 ate={className:N.string,cssModule:N.object,size:N.string,tag:it,type:N.string};function m0(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=ite(e,rte),s=He(Ve(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?Y.createElement(Wh,Nv({},a,{className:s})):Y.createElement(OI.Provider,{value:{insideInputGroup:!0}},Y.createElement(i,Nv({},a,{className:s})))}m0.propTypes=ate;var ste=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function Ex(){return Ex=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},Ex.apply(this,arguments)}function lte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cte(e,t){if(e==null)return{};var n=ute(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 ute(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 dte={children:N.node,className:N.string,listClassName:N.string,cssModule:N.object,size:N.string,tag:it,listTag:it,"aria-label":N.string};function AE(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,c=e["aria-label"],d=c===void 0?"pagination":c,f=cte(e,ste),p=He(Ve(t),r),m=He(Ve(n,"pagination",lte({},"pagination-".concat(i),!!i)),r);return Y.createElement(a,{className:p,"aria-label":d},Y.createElement(l,Ex({},f,{className:m})))}AE.propTypes=dte;var fte=["active","className","cssModule","disabled","tag"];function Tx(){return Tx=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},Tx.apply(this,arguments)}function hte(e,t){if(e==null)return{};var n=pte(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 pte(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 mte={active:N.bool,children:N.node,className:N.string,cssModule:N.object,disabled:N.bool,tag:it};function ll(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=hte(e,fte),l=He(Ve(n,"page-item",{active:t,disabled:i}),r);return Y.createElement(a,Tx({},s,{className:l}))}ll.propTypes=mte;var gte=["className","cssModule","next","previous","first","last","tag"];function Ox(){return Ox=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},Ox.apply(this,arguments)}function vte(e,t){if(e==null)return{};var n=yte(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 yte(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 _te={"aria-label":N.string,children:N.node,className:N.string,cssModule:N.object,next:N.bool,previous:N.bool,first:N.bool,last:N.bool,tag:it};function cl(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,c=vte(e,gte),d=He(Ve(t,"page-link"),n),f;i?f="Previous":r?f="Next":o?f="First":a&&(f="Last");var p=e["aria-label"]||f,m;i?m="‹":r?m="›":o?m="«":a&&(m="»");var v=e.children;return v&&Array.isArray(v)&&v.length===0&&(v=null),!c.href&&l==="a"&&(l="button"),(i||r||o||a)&&(v=[Y.createElement("span",{"aria-hidden":"true",key:"caret"},v||m),Y.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),Y.createElement(l,Ox({},c,{className:d,"aria-label":p}),v)}cl.propTypes=_te;var bte=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function Cx(){return Cx=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},Cx.apply(this,arguments)}function xL(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 Sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(r){wte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xte(e,t){if(e==null)return{};var n=Ste(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 Ste(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 Ete={children:N.node,className:N.string,closeClassName:N.string,closeAriaLabel:N.string,color:N.string,cssModule:N.object,fade:N.bool,innerRef:N.oneOfType([N.object,N.string,N.func]),isOpen:N.bool,tag:it,toggle:N.func,transition:N.shape(br.propTypes)};function BI(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,c=l===void 0?"success":l,d=e.isOpen,f=d===void 0?!0:d,p=e.toggle,m=e.children,v=e.transition,y=v===void 0?Sd(Sd({},br.defaultProps),{},{unmountOnExit:!0}):v,x=e.fade,_=x===void 0?!0:x,w=e.innerRef,S=xte(e,bte),E=He(Ve(t,"alert","alert-".concat(c),{"alert-dismissible":p}),o),O=He(Ve("btn-close",n),o),k=Sd(Sd(Sd({},br.defaultProps),y),{},{baseClass:_?y.baseClass:"",timeout:_?y.timeout:0});return Y.createElement(br,Cx({},S,k,{tag:s,className:E,in:f,role:"alert",innerRef:w}),p?Y.createElement("button",{type:"button",className:O,"aria-label":i,onClick:p}):null,m)}BI.propTypes=Ete;var Tte=["className","cssModule","tag","active","disabled","action","color"];function kx(){return kx=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},kx.apply(this,arguments)}function Ote(e,t){if(e==null)return{};var n=Cte(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 Cte(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 kte={action:N.bool,active:N.bool,className:N.string,cssModule:N.object,color:N.string,disabled:N.bool,tag:it},Pte=function(t){t.preventDefault()};function zI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,c=Ote(e,Tte),d=He(Ve(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(c.onClick=Pte),Y.createElement(i,kx({},c,{className:d}))}zI.propTypes=kte;function Px(e){"@babel/helpers - typeof";return Px=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},Px(e)}function SL(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 Lte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SL(Object(n),!0).forEach(function(r){jte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lx(){return Lx=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},Lx.apply(this,arguments)}function Mte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EL(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 Nte(e,t,n){return t&&EL(e.prototype,t),n&&EL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ate(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&&jx(e,t)}function jx(e,t){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jx(e,t)}function Rte(e){var t=Ite();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 Dte(this,i)}}function Dte(e,t){if(t&&(Px(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VI(e)}function VI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ite(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}var Fte=["defaultOpen"],qh=function(e){Ate(n,e);var t=Rte(n);function n(r){var i;return Mte(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(VI(i)),i}return Nte(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return Y.createElement(Wh,Lx({isOpen:this.state.isOpen,toggle:this.toggle},bs(this.props,Fte)))}}]),n}(I.Component);qh.propTypes=Lte({defaultOpen:N.bool,onToggle:N.func},Wh.propTypes);function Mx(e){"@babel/helpers - typeof";return Mx=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},Mx(e)}function TL(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 $te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TL(Object(n),!0).forEach(function(r){Ute(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ute(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nx(){return Nx=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},Nx.apply(this,arguments)}function Bte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OL(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 zte(e,t,n){return t&&OL(e.prototype,t),n&&OL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vte(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&&Ax(e,t)}function Ax(e,t){return Ax=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ax(e,t)}function Hte(e){var t=Yte();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 Wte(this,i)}}function Wte(e,t){if(t&&(Mx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HI(e)}function HI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yte(){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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}var Gte=["defaultOpen"],Ir=function(e){Vte(n,e);var t=Hte(n);function n(r){var i;return Bte(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(HI(i)),i}return zte(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Y.createElement(Gh,Nx({isOpen:this.state.isOpen,toggle:this.toggle},bs(this.props,Gte)))}}]),n}(I.Component);Ir.propTypes=$te({defaultOpen:N.bool},Gh.propTypes);function WI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qte(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):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 YI={exports:{}};/*!
|
||
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 a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(YI);var Zte=YI.exports;const gi=WI(Zte),Kte=e=>({error:"border-danger",default:""})[e],Qte=e=>({error:"text-danger",default:"text-muted"})[e],qo=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=gi({"col-md-12":i,"col-md-10 offset-md-1":!i});return g.jsx(_r,{className:gi("g-0",e),children:g.jsx("div",{className:o,children:g.jsx(Kr,{className:Kte(r),body:!0,children:g.jsxs("h3",{className:gi("text-center mb-0",Qte(r)),children:[n&&g.jsx(Ne,{icon:g4,spin:!0}),n&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},yn=({title:e,children:t,bodyClassName:n,...r})=>g.jsxs(Kr,{...r,children:[e&&g.jsx(vu,{role:"heading","aria-level":4,children:e}),g.jsx(gu,{className:n,children:t})]}),Wr=({children:e,type:t,className:n,small:r=!1})=>g.jsx(_r,{className:n,children:g.jsx("div",{className:gi({"col-md-10 offset-md-1":!r,"col-12":r}),children:g.jsx(yn,{role:"document",className:gi("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:gi({"p-2":r}),children:e})})});let pm;const Xte=new Uint8Array(16);function Jte(){if(!pm&&(pm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pm(Xte)}const Zn=[];for(let e=0;e<256;++e)Zn.push((e+256).toString(16).slice(1));function ene(e,t=0){return Zn[e[t+0]]+Zn[e[t+1]]+Zn[e[t+2]]+Zn[e[t+3]]+"-"+Zn[e[t+4]]+Zn[e[t+5]]+"-"+Zn[e[t+6]]+Zn[e[t+7]]+"-"+Zn[e[t+8]]+Zn[e[t+9]]+"-"+Zn[e[t+10]]+Zn[e[t+11]]+Zn[e[t+12]]+Zn[e[t+13]]+Zn[e[t+14]]+Zn[e[t+15]]}const tne=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),CL={randomUUID:tne};function nne(e,t,n){if(CL.randomUUID&&!t&&!e)return CL.randomUUID();e=e||{};const r=e.random||(e.rng||Jte)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return ene(r)}const On=(e=!1)=>{const[t,n]=I.useState(e),r=I.useCallback(()=>n(a=>!a),[]),i=I.useCallback(()=>n(!0),[]),o=I.useCallback(()=>n(!1),[]);return[t,r,i,o]},GI=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=I.useState(e),a=I.useRef(e),s=I.useRef(),l=I.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},g0=()=>{const{current:e}=I.useRef(`dom-${nne()}`);return e},xs=()=>I.useRef(null),qI=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=g0(),s=d=>t==null?void 0:t(d.target.checked,d),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return g.jsxs("span",{className:gi("form-check",l,n),style:c,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),g.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},ZI=e=>g.jsx(qI,{type:"checkbox",...e}),yu=e=>g.jsx(qI,{type:"switch",...e}),Hu=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),dg=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=g0();return g.jsx(Hu,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:g.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},rne=500;let fg;const kL=()=>{fg&&clearTimeout(fg),fg=null},Zh=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=I.useState(i),l=(c,d=rne)=>{s(c),kL(),fg=o(()=>{e(c),kL()},d)};return g.jsxs("div",{className:gi("search-field",t),children:[g.jsx("input",{type:"text",className:gi("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:c=>l(c.target.value)}),g.jsx(Ne,{icon:aG,className:"search-field__icon"}),g.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},ga=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:c,...d})=>{const[f,p]=On(),m=gi("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),v={minWidth:s&&`${s}px`};return g.jsxs(Wh,{isOpen:f,toggle:p,disabled:t,className:i,children:[g.jsx(zu,{size:c,caret:!o,className:m,color:"primary",...d,children:e}),g.jsx(Bu,{className:"w-100",end:a,style:v,children:r})]})},v0=({children:e,minWidth:t,label:n="Options"})=>g.jsx(ga,{text:g.jsx(Ne,{className:"px-1",icon:QY}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),hf=({children:e,...t})=>g.jsx(bE,{children:g.jsx(uI,{className:"nav-pills__nav-link",tag:qD,...t,children:e})}),KI=({children:e,fill:t=!1,className:n=""})=>g.jsx(Kr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:g.jsx(_E,{pills:!0,fill:t,children:I.Children.map(e,r=>{if(!I.isValidElement(r)||r.type!==hf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),y0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",QI=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),ine=e=>e.dir?`${e.field}-${e.dir}`:void 0,one=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Kh({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=y0(s,t.field,t.dir);n(l?s:void 0,l)};return g.jsxs(qh,{children:[g.jsxs(zu,{caret:!0,color:r?"primary":"link",className:gi({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(Bu,{end:i,className:gi("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>g.jsxs(Ue,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&g.jsx(Ne,{icon:t.dir==="ASC"?tG:BY,className:"ordering-dropdown__sort-icon"})]},s)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!t.field,onClick:()=>n(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const RE="#4696e5",ane="rgba(70, 150, 229, 0.4)",XI="#f77f28",sne="rgba(247, 127, 40, 0.4)",lne="white",cne="#161b22",une=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},dne=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"};var fne=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},PL=typeof Symbol<"u"&&Symbol,hne=fne,pne=function(){return typeof PL!="function"||typeof Symbol!="function"||typeof PL("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hne()},LL={foo:{}},mne=Object,gne=function(){return{__proto__:LL}.foo===LL.foo&&!({__proto__:null}instanceof mne)},vne="Function.prototype.bind called on incompatible ",J_=Array.prototype.slice,yne=Object.prototype.toString,_ne="[object Function]",bne=function(e){var t=this;if(typeof t!="function"||yne.call(t)!==_ne)throw new TypeError(vne+t);for(var n=J_.call(arguments,1),r,i=function(){if(this instanceof r){var c=t.apply(this,n.concat(J_.call(arguments)));return Object(c)===c?c:this}else return t.apply(e,n.concat(J_.call(arguments)))},o=Math.max(0,t.length-n.length),a=[],s=0;s<o;s++)a.push("$"+s);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r},wne=bne,DE=Function.prototype.bind||wne,xne=DE,Sne=xne.call(Function.call,Object.prototype.hasOwnProperty),at,_u=SyntaxError,JI=Function,Zc=TypeError,e1=function(e){try{return JI('"use strict"; return ('+e+").constructor;")()}catch{}},ul=Object.getOwnPropertyDescriptor;if(ul)try{ul({},"")}catch{ul=null}var t1=function(){throw new Zc},Ene=ul?function(){try{return arguments.callee,t1}catch{try{return ul(arguments,"callee").get}catch{return t1}}}():t1,lc=pne(),Tne=gne(),Nn=Object.getPrototypeOf||(Tne?function(e){return e.__proto__}:null),_c={},One=typeof Uint8Array>"u"||!Nn?at:Nn(Uint8Array),dl={"%AggregateError%":typeof AggregateError>"u"?at:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?at:ArrayBuffer,"%ArrayIteratorPrototype%":lc&&Nn?Nn([][Symbol.iterator]()):at,"%AsyncFromSyncIteratorPrototype%":at,"%AsyncFunction%":_c,"%AsyncGenerator%":_c,"%AsyncGeneratorFunction%":_c,"%AsyncIteratorPrototype%":_c,"%Atomics%":typeof Atomics>"u"?at:Atomics,"%BigInt%":typeof BigInt>"u"?at:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?at:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?at:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?at:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?at:Float32Array,"%Float64Array%":typeof Float64Array>"u"?at:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?at:FinalizationRegistry,"%Function%":JI,"%GeneratorFunction%":_c,"%Int8Array%":typeof Int8Array>"u"?at:Int8Array,"%Int16Array%":typeof Int16Array>"u"?at:Int16Array,"%Int32Array%":typeof Int32Array>"u"?at:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lc&&Nn?Nn(Nn([][Symbol.iterator]())):at,"%JSON%":typeof JSON=="object"?JSON:at,"%Map%":typeof Map>"u"?at:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lc||!Nn?at:Nn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?at:Promise,"%Proxy%":typeof Proxy>"u"?at:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?at:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?at:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lc||!Nn?at:Nn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?at:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lc&&Nn?Nn(""[Symbol.iterator]()):at,"%Symbol%":lc?Symbol:at,"%SyntaxError%":_u,"%ThrowTypeError%":Ene,"%TypedArray%":One,"%TypeError%":Zc,"%Uint8Array%":typeof Uint8Array>"u"?at:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?at:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?at:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?at:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?at:WeakMap,"%WeakRef%":typeof WeakRef>"u"?at:WeakRef,"%WeakSet%":typeof WeakSet>"u"?at:WeakSet};if(Nn)try{null.error}catch(e){var Cne=Nn(Nn(e));dl["%Error.prototype%"]=Cne}var kne=function e(t){var n;if(t==="%AsyncFunction%")n=e1("async function () {}");else if(t==="%GeneratorFunction%")n=e1("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=e1("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Nn&&(n=Nn(i.prototype))}return dl[t]=n,n},jL={"%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"]},Qh=DE,Dv=Sne,Pne=Qh.call(Function.call,Array.prototype.concat),Lne=Qh.call(Function.apply,Array.prototype.splice),ML=Qh.call(Function.call,String.prototype.replace),Iv=Qh.call(Function.call,String.prototype.slice),jne=Qh.call(Function.call,RegExp.prototype.exec),Mne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nne=/\\(\\)?/g,Ane=function(e){var t=Iv(e,0,1),n=Iv(e,-1);if(t==="%"&&n!=="%")throw new _u("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new _u("invalid intrinsic syntax, expected opening `%`");var r=[];return ML(e,Mne,function(i,o,a,s){r[r.length]=a?ML(s,Nne,"$1"):o||i}),r},Rne=function(e,t){var n=e,r;if(Dv(jL,n)&&(r=jL[n],n="%"+r[0]+"%"),Dv(dl,n)){var i=dl[n];if(i===_c&&(i=kne(n)),typeof i>"u"&&!t)throw new Zc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new _u("intrinsic "+e+" does not exist!")},IE=function(e,t){if(typeof e!="string"||e.length===0)throw new Zc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Zc('"allowMissing" argument must be a boolean');if(jne(/^%?[^%]*%?$/,e)===null)throw new _u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ane(e),r=n.length>0?n[0]:"",i=Rne("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],Lne(n,Pne([0,1],l)));for(var c=1,d=!0;c<n.length;c+=1){var f=n[c],p=Iv(f,0,1),m=Iv(f,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new _u("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(s=!0),r+="."+f,o="%"+r+"%",Dv(dl,o))a=dl[o];else if(a!=null){if(!(f in a)){if(!t)throw new Zc("base intrinsic for "+e+" exists, but the property is not available.");return}if(ul&&c+1>=n.length){var v=ul(a,f);d=!!v,d&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[f]}else d=Dv(a,f),a=a[f];d&&!s&&(dl[o]=a)}}return a},e6={exports:{}};(function(e){var t=DE,n=IE,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(d){var f=o(t,i,arguments);if(a&&s){var p=a(f,"length");p.configurable&&s(f,"length",{value:1+l(0,d.length-(arguments.length-1))})}return f};var c=function(){return o(t,r,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(e6);var Dne=e6.exports,t6=IE,n6=Dne,Ine=n6(t6("String.prototype.indexOf")),Fne=function(e,t){var n=t6(e,!!t);return typeof n=="function"&&Ine(e,".prototype.")>-1?n6(n):n};const $ne={},Une=Object.freeze(Object.defineProperty({__proto__:null,default:$ne},Symbol.toStringTag,{value:"Module"})),Bne=qte(Une);var FE=typeof Map=="function"&&Map.prototype,n1=Object.getOwnPropertyDescriptor&&FE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Fv=FE&&n1&&typeof n1.get=="function"?n1.get:null,NL=FE&&Map.prototype.forEach,$E=typeof Set=="function"&&Set.prototype,r1=Object.getOwnPropertyDescriptor&&$E?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$v=$E&&r1&&typeof r1.get=="function"?r1.get:null,AL=$E&&Set.prototype.forEach,zne=typeof WeakMap=="function"&&WeakMap.prototype,pf=zne?WeakMap.prototype.has:null,Vne=typeof WeakSet=="function"&&WeakSet.prototype,mf=Vne?WeakSet.prototype.has:null,Hne=typeof WeakRef=="function"&&WeakRef.prototype,RL=Hne?WeakRef.prototype.deref:null,Wne=Boolean.prototype.valueOf,Yne=Object.prototype.toString,Gne=Function.prototype.toString,qne=String.prototype.match,UE=String.prototype.slice,Ua=String.prototype.replace,Zne=String.prototype.toUpperCase,DL=String.prototype.toLowerCase,r6=RegExp.prototype.test,IL=Array.prototype.concat,co=Array.prototype.join,Kne=Array.prototype.slice,FL=Math.floor,Rx=typeof BigInt=="function"?BigInt.prototype.valueOf:null,i1=Object.getOwnPropertySymbols,Dx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,bu=typeof Symbol=="function"&&typeof Symbol.iterator=="object",cr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===bu||"symbol")?Symbol.toStringTag:null,i6=Object.prototype.propertyIsEnumerable,$L=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function UL(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||r6.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-FL(-e):FL(e);if(r!==e){var i=String(r),o=UE.call(t,i.length+1);return Ua.call(i,n,"$&_")+"."+Ua.call(Ua.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ua.call(t,n,"$&_")}var Ix=Bne,BL=Ix.custom,zL=a6(BL)?BL:null,Qne=function e(t,n,r,i){var o=n||{};if(ja(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ja(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 a=ja(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ja(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(ja(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=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 l6(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?UL(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?UL(t,c):c}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return Fx(t)?"[Array]":"[Object]";var f=mre(o,r);if(typeof i>"u")i=[];else if(s6(i,t)>=0)return"[Circular]";function p(X,G,K){if(G&&(i=Kne.call(i),i.push(G)),K){var ne={depth:o.depth};return ja(o,"quoteStyle")&&(ne.quoteStyle=o.quoteStyle),e(X,ne,r+1,i)}return e(X,o,r+1,i)}if(typeof t=="function"&&!VL(t)){var m=are(t),v=mm(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+co.call(v,", ")+" }":"")}if(a6(t)){var y=bu?Ua.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Dx.call(t);return typeof t=="object"&&!bu?Ed(y):y}if(fre(t)){for(var x="<"+DL.call(String(t.nodeName)),_=t.attributes||[],w=0;w<_.length;w++)x+=" "+_[w].name+"="+o6(Xne(_[w].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+DL.call(String(t.nodeName))+">",x}if(Fx(t)){if(t.length===0)return"[]";var S=mm(t,p);return f&&!pre(S)?"["+$x(S,f)+"]":"[ "+co.call(S,", ")+" ]"}if(ere(t)){var E=mm(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!i6.call(t,"cause")?"{ ["+String(t)+"] "+co.call(IL.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+co.call(E,", ")+" }"}if(typeof t=="object"&&a){if(zL&&typeof t[zL]=="function"&&Ix)return Ix(t,{depth:d-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(sre(t)){var O=[];return NL&&NL.call(t,function(X,G){O.push(p(G,t,!0)+" => "+p(X,t))}),HL("Map",Fv.call(t),O,f)}if(ure(t)){var k=[];return AL&&AL.call(t,function(X){k.push(p(X,t))}),HL("Set",$v.call(t),k,f)}if(lre(t))return o1("WeakMap");if(dre(t))return o1("WeakSet");if(cre(t))return o1("WeakRef");if(nre(t))return Ed(p(Number(t)));if(ire(t))return Ed(p(Rx.call(t)));if(rre(t))return Ed(Wne.call(t));if(tre(t))return Ed(p(String(t)));if(!Jne(t)&&!VL(t)){var j=mm(t,p),R=$L?$L(t)===Object.prototype:t instanceof Object||t.constructor===Object,U=t instanceof Object?"":"null prototype",A=!R&&cr&&Object(t)===t&&cr in t?UE.call(Ss(t),8,-1):U?"Object":"",V=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=V+(A||U?"["+co.call(IL.call([],A||[],U||[]),": ")+"] ":"");return j.length===0?W+"{}":f?W+"{"+$x(j,f)+"}":W+"{ "+co.call(j,", ")+" }"}return String(t)};function o6(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Xne(e){return Ua.call(String(e),/"/g,""")}function Fx(e){return Ss(e)==="[object Array]"&&(!cr||!(typeof e=="object"&&cr in e))}function Jne(e){return Ss(e)==="[object Date]"&&(!cr||!(typeof e=="object"&&cr in e))}function VL(e){return Ss(e)==="[object RegExp]"&&(!cr||!(typeof e=="object"&&cr in e))}function ere(e){return Ss(e)==="[object Error]"&&(!cr||!(typeof e=="object"&&cr in e))}function tre(e){return Ss(e)==="[object String]"&&(!cr||!(typeof e=="object"&&cr in e))}function nre(e){return Ss(e)==="[object Number]"&&(!cr||!(typeof e=="object"&&cr in e))}function rre(e){return Ss(e)==="[object Boolean]"&&(!cr||!(typeof e=="object"&&cr in e))}function a6(e){if(bu)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Dx)return!1;try{return Dx.call(e),!0}catch{}return!1}function ire(e){if(!e||typeof e!="object"||!Rx)return!1;try{return Rx.call(e),!0}catch{}return!1}var ore=Object.prototype.hasOwnProperty||function(e){return e in this};function ja(e,t){return ore.call(e,t)}function Ss(e){return Yne.call(e)}function are(e){if(e.name)return e.name;var t=qne.call(Gne.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function s6(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 sre(e){if(!Fv||!e||typeof e!="object")return!1;try{Fv.call(e);try{$v.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function lre(e){if(!pf||!e||typeof e!="object")return!1;try{pf.call(e,pf);try{mf.call(e,mf)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function cre(e){if(!RL||!e||typeof e!="object")return!1;try{return RL.call(e),!0}catch{}return!1}function ure(e){if(!$v||!e||typeof e!="object")return!1;try{$v.call(e);try{Fv.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function dre(e){if(!mf||!e||typeof e!="object")return!1;try{mf.call(e,mf);try{pf.call(e,pf)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function fre(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function l6(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return l6(UE.call(e,0,t.maxStringLength),t)+r}var i=Ua.call(Ua.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,hre);return o6(i,"single",t)}function hre(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":"")+Zne.call(t.toString(16))}function Ed(e){return"Object("+e+")"}function o1(e){return e+" { ? }"}function HL(e,t,n,r){var i=r?$x(n,r):co.call(n,", ");return e+" ("+t+") {"+i+"}"}function pre(e){for(var t=0;t<e.length;t++)if(s6(e[t],`
|
||
`)>=0)return!1;return!0}function mre(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=co.call(Array(e.indent+1)," ");else return null;return{base:n,prev:co.call(Array(t+1),n)}}function $x(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+co.call(e,","+n)+`
|
||
`+t.prev}function mm(e,t){var n=Fx(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ja(e,i)?t(e[i],e):""}var o=typeof i1=="function"?i1(e):[],a;if(bu){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ja(e,l)&&(n&&String(Number(l))===l&&l<e.length||bu&&a["$"+l]instanceof Symbol||(r6.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof i1=="function")for(var c=0;c<o.length;c++)i6.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var BE=IE,Wu=Fne,gre=Qne,vre=BE("%TypeError%"),gm=BE("%WeakMap%",!0),vm=BE("%Map%",!0),yre=Wu("WeakMap.prototype.get",!0),_re=Wu("WeakMap.prototype.set",!0),bre=Wu("WeakMap.prototype.has",!0),wre=Wu("Map.prototype.get",!0),xre=Wu("Map.prototype.set",!0),Sre=Wu("Map.prototype.has",!0),zE=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},Ere=function(e,t){var n=zE(e,t);return n&&n.value},Tre=function(e,t,n){var r=zE(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Ore=function(e,t){return!!zE(e,t)},Cre=function(){var e,t,n,r={assert:function(i){if(!r.has(i))throw new vre("Side channel does not contain "+gre(i))},get:function(i){if(gm&&i&&(typeof i=="object"||typeof i=="function")){if(e)return yre(e,i)}else if(vm){if(t)return wre(t,i)}else if(n)return Ere(n,i)},has:function(i){if(gm&&i&&(typeof i=="object"||typeof i=="function")){if(e)return bre(e,i)}else if(vm){if(t)return Sre(t,i)}else if(n)return Ore(n,i);return!1},set:function(i,o){gm&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new gm),_re(e,i,o)):vm?(t||(t=new vm),xre(t,i,o)):(n||(n={key:{},next:null}),Tre(n,i,o))}};return r},kre=String.prototype.replace,Pre=/%20/g,a1={RFC1738:"RFC1738",RFC3986:"RFC3986"},VE={default:a1.RFC3986,formatters:{RFC1738:function(e){return kre.call(e,Pre,"+")},RFC3986:function(e){return String(e)}},RFC1738:a1.RFC1738,RFC3986:a1.RFC3986},Lre=VE,s1=Object.prototype.hasOwnProperty,Ks=Array.isArray,io=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jre=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ks(n)){for(var r=[],i=0;i<n.length;++i)typeof n[i]<"u"&&r.push(n[i]);t.obj[t.prop]=r}}},c6=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(n[r]=e[r]);return n},Mre=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ks(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!s1.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 Ks(t)&&!Ks(n)&&(i=c6(t,r)),Ks(t)&&Ks(n)?(n.forEach(function(o,a){if(s1.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,r):t.push(o)}else t[a]=o}),t):Object.keys(n).reduce(function(o,a){var s=n[a];return s1.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},Nre=function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},e)},Are=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}},Rre=function(e,t,n,r,i){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Lre.RFC1738&&(l===40||l===41)){a+=o.charAt(s);continue}if(l<128){a=a+io[l];continue}if(l<2048){a=a+(io[192|l>>6]+io[128|l&63]);continue}if(l<55296||l>=57344){a=a+(io[224|l>>12]+io[128|l>>6&63]+io[128|l&63]);continue}s+=1,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a+=io[240|l>>18]+io[128|l>>12&63]+io[128|l>>6&63]+io[128|l&63]}return a},Dre=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],c=o[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(t.push({obj:o,prop:l}),n.push(c))}return jre(t),e},Ire=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Fre=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},$re=function(e,t){return[].concat(e,t)},Ure=function(e,t){if(Ks(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},u6={arrayToObject:c6,assign:Nre,combine:$re,compact:Dre,decode:Are,encode:Rre,isBuffer:Fre,isRegExp:Ire,maybeMap:Ure,merge:Mre},d6=Cre,hg=u6,gf=VE,Bre=Object.prototype.hasOwnProperty,WL={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},$o=Array.isArray,zre=Array.prototype.push,f6=function(e,t){zre.apply(e,$o(t)?t:[t])},Vre=Date.prototype.toISOString,YL=gf.default,nr={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hg.encode,encodeValuesOnly:!1,format:YL,formatter:gf.formatters[YL],indices:!1,serializeDate:function(e){return Vre.call(e)},skipNulls:!1,strictNullHandling:!1},Hre=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},l1={},Wre=function e(t,n,r,i,o,a,s,l,c,d,f,p,m,v,y,x){for(var _=t,w=x,S=0,E=!1;(w=w.get(l1))!==void 0&&!E;){var O=w.get(t);if(S+=1,typeof O<"u"){if(O===S)throw new RangeError("Cyclic object value");E=!0}typeof w.get(l1)>"u"&&(S=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=f(_):r==="comma"&&$o(_)&&(_=hg.maybeMap(_,function(ne){return ne instanceof Date?f(ne):ne})),_===null){if(o)return s&&!v?s(n,nr.encoder,y,"key",p):n;_=""}if(Hre(_)||hg.isBuffer(_)){if(s){var k=v?n:s(n,nr.encoder,y,"key",p);return[m(k)+"="+m(s(_,nr.encoder,y,"value",p))]}return[m(n)+"="+m(String(_))]}var j=[];if(typeof _>"u")return j;var R;if(r==="comma"&&$o(_))v&&s&&(_=hg.maybeMap(_,s)),R=[{value:_.length>0?_.join(",")||null:void 0}];else if($o(l))R=l;else{var U=Object.keys(_);R=c?U.sort(c):U}for(var A=i&&$o(_)&&_.length===1?n+"[]":n,V=0;V<R.length;++V){var W=R[V],X=typeof W=="object"&&typeof W.value<"u"?W.value:_[W];if(!(a&&X===null)){var G=$o(_)?typeof r=="function"?r(A,W):A:A+(d?"."+W:"["+W+"]");x.set(t,S);var K=d6();K.set(l1,x),f6(j,e(X,G,r,i,o,a,r==="comma"&&v&&$o(_)?null:s,l,c,d,f,p,m,v,y,K))}}return j},Yre=function(e){if(!e)return nr;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||nr.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=gf.default;if(typeof e.format<"u"){if(!Bre.call(gf.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=gf.formatters[n],i=nr.filter;return(typeof e.filter=="function"||$o(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:nr.addQueryPrefix,allowDots:typeof e.allowDots>"u"?nr.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:nr.charsetSentinel,delimiter:typeof e.delimiter>"u"?nr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:nr.encode,encoder:typeof e.encoder=="function"?e.encoder:nr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:nr.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:nr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:nr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:nr.strictNullHandling}},Gre=function(e,t){var n=e,r=Yre(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):$o(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in WL?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=WL[s];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 d=d6(),f=0;f<i.length;++f){var p=i[f];r.skipNulls&&n[p]===null||f6(a,Wre(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,d))}var m=a.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""},wu=u6,Ux=Object.prototype.hasOwnProperty,qre=Array.isArray,Mn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:wu.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Zre=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},h6=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Kre="utf8=%26%2310003%3B",Qre="utf8=%E2%9C%93",Xre=function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,s,l=t.charset;if(t.charsetSentinel)for(s=0;s<o.length;++s)o[s].indexOf("utf8=")===0&&(o[s]===Qre?l="utf-8":o[s]===Kre&&(l="iso-8859-1"),a=s,s=o.length);for(s=0;s<o.length;++s)if(s!==a){var c=o[s],d=c.indexOf("]="),f=d===-1?c.indexOf("="):d+1,p,m;f===-1?(p=t.decoder(c,Mn.decoder,l,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(c.slice(0,f),Mn.decoder,l,"key"),m=wu.maybeMap(h6(c.slice(f+1),t),function(v){return t.decoder(v,Mn.decoder,l,"value")})),m&&t.interpretNumericEntities&&l==="iso-8859-1"&&(m=Zre(m)),c.indexOf("[]=")>-1&&(m=qre(m)?[m]:m),Ux.call(n,p)?n[p]=wu.combine(n[p],m):n[p]=m}return n},Jre=function(e,t,n,r){for(var i=r?t:h6(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?a={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},eie=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!n.plainObjects&&Ux.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var d=0;n.depth>0&&(s=a.exec(i))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Ux.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+i.slice(s.index)+"]"),Jre(c,t,n,r)}},tie=function(e){if(!e)return Mn;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?Mn.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Mn.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Mn.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Mn.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Mn.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Mn.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Mn.comma,decoder:typeof e.decoder=="function"?e.decoder:Mn.decoder,delimiter:typeof e.delimiter=="string"||wu.isRegExp(e.delimiter)?e.delimiter:Mn.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Mn.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Mn.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Mn.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Mn.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Mn.strictNullHandling}},nie=function(e,t){var n=tie(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Xre(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=eie(s,r[s],n,typeof e=="string");i=wu.merge(i,l,n)}return n.allowSparse===!0?i:wu.compact(i)},rie=Gre,iie=nie,oie=VE,aie={formats:oie,parse:iie,stringify:rie};const p6=WI(aie),Yu=e=>p6.parse(e,{ignoreQueryPrefix:!0}),_0=e=>p6.stringify(e,{arrayFormat:"brackets"});const sie=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=On(),o=()=>{i(),n()};return g.jsxs(BI,{className:"app-update-banner",isOpen:e,toggle:t,tag:yn,color:"secondary",children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(yt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(Ne,{icon:dG,className:"ms-1"})]}),r&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})},m6=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(yn,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Ft,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Ci(e){return I.useRef(e).current}function ki(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const lie=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 g6=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:c,Settings:d,ManageServers:f,ShlinkVersionsContainer:p}=Ci(g6),m=Cn(),v=I.useRef(t),y=m.pathname==="/";return I.useEffect(()=>{Object.keys(v.current).length===0&&e()},[e]),I.useEffect(()=>{var _;une(((_=n.ui)==null?void 0:_.theme)??"light")},[(x=n.ui)==null?void 0:x.theme]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(o,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:Ve("shlink-wrapper",{"d-flex d-md-block align-items-center":y}),children:g.jsxs(r0,{children:[g.jsx(vt,{index:!0,element:g.jsx(a,{})}),g.jsx(vt,{path:"/settings/*",element:g.jsx(d,{})}),g.jsx(vt,{path:"/manage-servers",element:g.jsx(f,{})}),g.jsx(vt,{path:"/server/create",element:g.jsx(l,{})}),g.jsx(vt,{path:"/server/:serverId/edit",element:g.jsx(c,{})}),g.jsx(vt,{path:"/server/:serverId/*",element:g.jsx(s,{})}),g.jsx(vt,{path:"*",element:g.jsx(m6,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(p,{})})]}),g.jsx(sie,{isOpen:r,toggle:i,forceUpdate:lie})]})},cie=ki(g6,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function Fi(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 ds(e){return!!e&&!!e[Ut]}function ia(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)===yie}(e)||Array.isArray(e)||!!e[JL]||!!(!((t=e.constructor)===null||t===void 0)&&t[JL])||HE(e)||WE(e))}function Tl(e,t,n){n===void 0&&(n=!1),Gu(e)===0?(n?Object.keys:Qc)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Gu(e){var t=e[Ut];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:HE(e)?2:WE(e)?3:0}function Kc(e,t){return Gu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uie(e,t){return Gu(e)===2?e.get(t):e[t]}function v6(e,t,n){var r=Gu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function y6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function HE(e){return gie&&e instanceof Map}function WE(e){return vie&&e instanceof Set}function Ws(e){return e.o||e.t}function YE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=b6(e);delete t[Ut];for(var n=Qc(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 GE(e,t){return t===void 0&&(t=!1),qE(e)||ds(e)||!ia(e)||(Gu(e)>1&&(e.set=e.add=e.clear=e.delete=die),Object.freeze(e),t&&Tl(e,function(n,r){return GE(r,!0)},!0)),e}function die(){Fi(2)}function qE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bo(e){var t=Hx[e];return t||Fi(18,e),t}function fie(e,t){Hx[e]||(Hx[e]=t)}function Bx(){return sh}function c1(e,t){t&&(bo("Patches"),e.u=[],e.s=[],e.v=t)}function Uv(e){zx(e),e.p.forEach(hie),e.p=null}function zx(e){e===sh&&(sh=e.l)}function GL(e){return sh={p:[],l:sh,h:e,m:!0,_:0}}function hie(e){var t=e[Ut];t.i===0||t.i===1?t.j():t.g=!0}function u1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||bo("ES5").S(t,e,r),r?(n[Ut].P&&(Uv(t),Fi(4)),ia(e)&&(e=Bv(t,e),t.l||zv(t,e)),t.u&&bo("Patches").M(n[Ut].t,e,t.u,t.s)):e=Bv(t,n,[]),Uv(t),t.u&&t.v(t.u,t.s),e!==_6?e:void 0}function Bv(e,t,n){if(qE(t))return t;var r=t[Ut];if(!r)return Tl(t,function(s,l){return qL(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return zv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=YE(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),Tl(o,function(s,l){return qL(e,r,i,s,l,n,a)}),zv(e,i,!1),n&&e.u&&bo("Patches").N(r,n,e.u,e.s)}return r.o}function qL(e,t,n,r,i,o,a){if(ds(i)){var s=Bv(e,i,o&&t&&t.i!==3&&!Kc(t.R,r)?o.concat(r):void 0);if(v6(n,r,s),!ds(s))return;e.m=!1}else a&&n.add(i);if(ia(i)&&!qE(i)){if(!e.h.D&&e._<1)return;Bv(e,i),t&&t.A.l||zv(e,i)}}function zv(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&GE(t,n)}function d1(e,t){var n=e[Ut];return(n?Ws(n):e)[t]}function ZL(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 Ra(e){e.P||(e.P=!0,e.l&&Ra(e.l))}function f1(e){e.o||(e.o=YE(e.t))}function Vx(e,t,n){var r=HE(t)?bo("MapSet").F(t,n):WE(t)?bo("MapSet").T(t,n):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Bx(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=lh;a&&(l=[s],c=Vd);var d=Proxy.revocable(l,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,n):bo("ES5").J(t,n);return(n?n.A:Bx()).p.push(r),r}function pie(e){return ds(e)||Fi(22,e),function t(n){if(!ia(n))return n;var r,i=n[Ut],o=Gu(n);if(i){if(!i.P&&(i.i<4||!bo("ES5").K(i)))return i.t;i.I=!0,r=KL(n,o),i.I=!1}else r=KL(n,o);return Tl(r,function(a,s){i&&uie(i.t,a)===s||v6(r,a,t(s))}),o===3?new Set(r):r}(e)}function KL(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return YE(e)}function mie(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[Ut];return lh.get(l,o)},set:function(l){var c=this[Ut];lh.set(c,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][Ut];if(!s.P)switch(s.i){case 5:r(s)&&Ra(s);break;case 4:n(s)&&Ra(s)}}}function n(o){for(var a=o.t,s=o.k,l=Qc(s),c=l.length-1;c>=0;c--){var d=l[c];if(d!==Ut){var f=a[d];if(f===void 0&&!Kc(a,d))return!0;var p=s[d],m=p&&p[Ut];if(m?m.t!==f:!y6(p,f))return!0}}var v=!!a[Ut];return l.length!==Qc(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l<a.length;l++)if(!a.hasOwnProperty(l))return!0;return!1}var i={};fie("ES5",{J:function(o,a){var s=Array.isArray(o),l=function(d,f){if(d){for(var p=Array(f.length),m=0;m<f.length;m++)Object.defineProperty(p,""+m,e(m,!0));return p}var v=b6(f);delete v[Ut];for(var y=Qc(v),x=0;x<y.length;x++){var _=y[x];v[_]=e(_,d||!!v[_].enumerable)}return Object.create(Object.getPrototypeOf(f),v)}(s,o),c={i:s?5:4,A:a?a.A:Bx(),P:!1,I:!1,R:{},l:a,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,Ut,{value:c,writable:!0}),l},S:function(o,a,s){s?ds(a)&&a[Ut].A===o&&t(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var d=c[Ut];if(d){var f=d.t,p=d.k,m=d.R,v=d.i;if(v===4)Tl(p,function(S){S!==Ut&&(f[S]!==void 0||Kc(f,S)?m[S]||l(p[S]):(m[S]=!0,Ra(d)))}),Tl(f,function(S){p[S]!==void 0||Kc(p,S)||(m[S]=!1,Ra(d))});else if(v===5){if(r(d)&&(Ra(d),m.length=!0),p.length<f.length)for(var y=p.length;y<f.length;y++)m[y]=!1;else for(var x=f.length;x<p.length;x++)m[x]=!0;for(var _=Math.min(p.length,f.length),w=0;w<_;w++)p.hasOwnProperty(w)||(m[w]=!0),m[w]===void 0&&l(p[w])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var QL,sh,ZE=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gie=typeof Map<"u",vie=typeof Set<"u",XL=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_6=ZE?Symbol.for("immer-nothing"):((QL={})["immer-nothing"]=!0,QL),JL=ZE?Symbol.for("immer-draftable"):"__$immer_draftable",Ut=ZE?Symbol.for("immer-state"):"__$immer_state",yie=""+Object.prototype.constructor,Qc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,b6=Object.getOwnPropertyDescriptors||function(e){var t={};return Qc(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Hx={},lh={get:function(e,t){if(t===Ut)return e;var n=Ws(e);if(!Kc(n,t))return function(i,o,a){var s,l=ZL(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!ia(r)?r:r===d1(e.t,t)?(f1(e),e.o[t]=Vx(e.A.h,r,e)):r},has:function(e,t){return t in Ws(e)},ownKeys:function(e){return Reflect.ownKeys(Ws(e))},set:function(e,t,n){var r=ZL(Ws(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=d1(Ws(e),t),o=i==null?void 0:i[Ut];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(y6(n,i)&&(n!==void 0||Kc(e.t,t)))return!0;f1(e),Ra(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return d1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,f1(e),Ra(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ws(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Fi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Fi(12)}},Vd={};Tl(lh,function(e,t){Vd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vd.deleteProperty=function(e,t){return Vd.set.call(this,e,t,void 0)},Vd.set=function(e,t,n){return lh.set.call(this,e[0],t,n,e[0])};var _ie=function(){function e(n){var r=this;this.O=XL,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(y){var x=this;y===void 0&&(y=s);for(var _=arguments.length,w=Array(_>1?_-1:0),S=1;S<_;S++)w[S-1]=arguments[S];return l.produce(y,function(E){var O;return(O=o).call.apply(O,[x,E].concat(w))})}}var c;if(typeof o!="function"&&Fi(6),a!==void 0&&typeof a!="function"&&Fi(7),ia(i)){var d=GL(r),f=Vx(r,i,void 0),p=!0;try{c=o(f),p=!1}finally{p?Uv(d):zx(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return c1(d,a),u1(y,d)},function(y){throw Uv(d),y}):(c1(d,a),u1(c,d))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===_6&&(c=void 0),r.D&&GE(c,!0),a){var m=[],v=[];bo("Patches").M(i,c,m,v),a(m,v)}return c}Fi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];return r.produceWithPatches(c,function(m){return i.apply(void 0,[m].concat(f))})};var a,s,l=r.produce(i,o,function(c,d){a=c,s=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,a,s]}):[l,a,s]},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){ia(n)||Fi(8),ds(n)&&(n=pie(n));var r=GL(this),i=Vx(this,n,void 0);return i[Ut].C=!0,zx(r),i},t.finishDraft=function(n,r){var i=n&&n[Ut],o=i.A;return c1(o,r),u1(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!XL&&Fi(20),this.O=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 a=bo("Patches").$;return ds(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Qr=new _ie,w6=Qr.produce;Qr.produceWithPatches.bind(Qr);Qr.setAutoFreeze.bind(Qr);Qr.setUseProxies.bind(Qr);Qr.applyPatches.bind(Qr);Qr.createDraft.bind(Qr);Qr.finishDraft.bind(Qr);function ch(e){"@babel/helpers - typeof";return ch=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},ch(e)}function bie(e,t){if(ch(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ch(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wie(e){var t=bie(e,"string");return ch(t)==="symbol"?t:String(t)}function xie(e,t,n){return t=wie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ej(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 tj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ej(Object(n),!0).forEach(function(r){xie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ej(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rr(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 nj=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),h1=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vv={INIT:"@@redux/INIT"+h1(),REPLACE:"@@redux/REPLACE"+h1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h1()}};function Sie(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 x6(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(rr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(rr(1));return n(x6)(e,t)}if(typeof e!="function")throw new Error(rr(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(rr(3));return o}function f(y){if(typeof y!="function")throw new Error(rr(4));if(l)throw new Error(rr(5));var x=!0;return c(),s.push(y),function(){if(x){if(l)throw new Error(rr(6));x=!1,c();var w=s.indexOf(y);s.splice(w,1),a=null}}}function p(y){if(!Sie(y))throw new Error(rr(7));if(typeof y.type>"u")throw new Error(rr(8));if(l)throw new Error(rr(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=a=s,_=0;_<x.length;_++){var w=x[_];w()}return y}function m(y){if(typeof y!="function")throw new Error(rr(10));i=y,p({type:Vv.REPLACE})}function v(){var y,x=f;return y={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(rr(11));function S(){w.next&&w.next(d())}S();var E=x(S);return{unsubscribe:E}}},y[nj]=function(){return this},y}return p({type:Vv.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:m},r[nj]=v,r}function Eie(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Vv.INIT});if(typeof r>"u")throw new Error(rr(12));if(typeof n(void 0,{type:Vv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rr(13))})}function KE(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),a;try{Eie(n)}catch(s){a=s}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var d=!1,f={},p=0;p<o.length;p++){var m=o[p],v=n[m],y=l[m],x=v(y,c);if(typeof x>"u")throw c&&c.type,new Error(rr(14));f[m]=x,d=d||x!==y}return d=d||o.length!==Object.keys(l).length,d?f:l}}function Hv(){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 Tie(){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(rr(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=Hv.apply(void 0,s)(i.dispatch),tj(tj({},i),{},{dispatch:o})}}}function S6(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var E6=S6();E6.withExtraArgument=S6;const rj=E6;var T6=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)}}(),Oie=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,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(d){return l([c,d])}}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(d){c=[6,d],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},xu=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},Cie=Object.defineProperty,kie=Object.defineProperties,Pie=Object.getOwnPropertyDescriptors,ij=Object.getOwnPropertySymbols,Lie=Object.prototype.hasOwnProperty,jie=Object.prototype.propertyIsEnumerable,oj=function(e,t,n){return t in e?Cie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ns=function(e,t){for(var n in t||(t={}))Lie.call(t,n)&&oj(e,n,t[n]);if(ij)for(var r=0,i=ij(t);r<i.length;r++){var n=i[r];jie.call(t,n)&&oj(e,n,t[n])}return e},p1=function(e,t){return kie(e,Pie(t))},Mie=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(c){i(c)}},a=function(l){try{s(n.throw(l))}catch(c){i(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},Nie=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hv:Hv.apply(null,arguments)};function Aie(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}function In(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 ns(ns({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}var Rie=function(e){T6(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,xu([void 0],n[0].concat(this)))):new(t.bind.apply(t,xu([void 0],n.concat(this))))},t}(Array),Die=function(e){T6(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,xu([void 0],n[0].concat(this)))):new(t.bind.apply(t,xu([void 0],n.concat(this))))},t}(Array);function Wx(e){return ia(e)?w6(e,function(){}):e}function Iie(e){return typeof e=="boolean"}function Fie(){return function(t){return $ie(t)}}function $ie(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new Rie;return n&&(Iie(n)?r.push(rj):r.push(rj.withExtraArgument(n.extraArgument))),r}var Uie=!0;function O6(e){var t=Fie(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,a=o===void 0?t():o,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,d=c===void 0?void 0:c,f=n.enhancers,p=f===void 0?void 0:f,m;if(typeof i=="function")m=i;else if(Aie(i))m=KE(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 v=a;typeof v=="function"&&(v=v(t));var y=Tie.apply(void 0,v),x=Hv;l&&(x=Nie(ns({trace:!Uie},typeof l=="object"&&l)));var _=new Die(y),w=_;Array.isArray(p)?w=xu([y],p):typeof p=="function"&&(w=p(_));var S=x.apply(void 0,w);return x6(m,d,S)}function C6(e){var t={},n=[],r,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(!s)throw new Error("`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[s]=a,i},addMatcher:function(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function Bie(e){return typeof e=="function"}function zie(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?C6(t):[t,n,r],o=i[0],a=i[1],s=i[2],l;if(Bie(e))l=function(){return Wx(e())};else{var c=Wx(e);l=function(){return c}}function d(f,p){f===void 0&&(f=l());var m=xu([o[p.type]],a.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return m.filter(function(v){return!!v}).length===0&&(m=[s]),m.reduce(function(v,y){if(y)if(ds(v)){var x=v,_=y(x,p);return _===void 0?v:_}else{if(ia(v))return w6(v,function(w){return y(w,p)});var _=y(v,p);if(_===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return v},f)}return d.getInitialState=l,d}function Vie(e,t){return e+"/"+t}function dr(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:Wx(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},a={},s={};i.forEach(function(d){var f=r[d],p=Vie(t,d),m,v;"reducer"in f?(m=f.reducer,v=f.prepare):m=f,o[d]=m,a[p]=m,s[d]=v?In(p,v):In(p)});function l(){var d=typeof e.extraReducers=="function"?C6(e.extraReducers):[e.extraReducers],f=d[0],p=f===void 0?{}:f,m=d[1],v=m===void 0?[]:m,y=d[2],x=y===void 0?void 0:y,_=ns(ns({},p),a);return zie(n,function(w){for(var S in _)w.addCase(S,_[S]);for(var E=0,O=v;E<O.length;E++){var k=O[E];w.addMatcher(k.matcher,k.reducer)}x&&w.addDefaultCase(x)})}var c;return{name:t,reducer:function(d,f){return c||(c=l()),c(d,f)},actions:s,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Hie="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wie=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=Hie[Math.random()*64|0];return t},Yie=["name","message","stack","code"],m1=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),aj=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Gie=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=Yie;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},k6=function(){function e(t,n,r){var i=In(t+"/fulfilled",function(c,d,f,p){return{payload:c,meta:p1(ns({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),o=In(t+"/pending",function(c,d,f){return{payload:void 0,meta:p1(ns({},f||{}),{arg:d,requestId:c,requestStatus:"pending"})}}),a=In(t+"/rejected",function(c,d,f,p,m){return{payload:p,error:(r&&r.serializeError||Gie)(c||"Rejected"),meta:p1(ns({},m||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),s=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(d,f,p){var m=r!=null&&r.idGenerator?r.idGenerator(c):Wie(),v=new s,y;function x(w){y=w,v.abort()}var _=function(){return Mie(this,null,function(){var w,S,E,O,k,j,R;return Oie(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),O=(w=r==null?void 0:r.condition)==null?void 0:w.call(r,c,{getState:f,extra:p}),Zie(O)?[4,O]:[3,2];case 1:O=U.sent(),U.label=2;case 2:if(O===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return k=new Promise(function(A,V){return v.signal.addEventListener("abort",function(){return V({name:"AbortError",message:y||"Aborted"})})}),d(o(m,c,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:m,arg:c},{getState:f,extra:p}))),[4,Promise.race([k,Promise.resolve(n(c,{dispatch:d,getState:f,extra:p,requestId:m,signal:v.signal,abort:x,rejectWithValue:function(A,V){return new m1(A,V)},fulfillWithValue:function(A,V){return new aj(A,V)}})).then(function(A){if(A instanceof m1)throw A;return A instanceof aj?i(A.payload,m,c,A.meta):i(A,m,c)})])];case 3:return E=U.sent(),[3,5];case 4:return j=U.sent(),E=j instanceof m1?a(null,m,c,j.payload,j.meta):a(j,m,c),[3,5];case 5:return R=r&&!r.dispatchConditionRejection&&a.match(E)&&E.meta.condition,R||d(E),[2,E]}})})}();return Object.assign(_,{abort:x,requestId:m,arg:c,unwrap:function(){return _.then(qie)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function qie(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Zie(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var QE="listenerMiddleware";In(QE+"/add");In(QE+"/removeAll");In(QE+"/remove");var sj;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);mie();const{actions:Kie,reducer:Qie}=dr({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Xie,resetAppUpdate:Jie}=Kie,eoe=Qie,toe=(e,t)=>{e.factory("App",cie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Xie),e.serviceFactory("resetAppUpdate",()=>Jie)},lj={"Content-Type":"application/json"},cj=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...lj}}:{headers:lj}:e;class noe{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,cj(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,cj(n)).then(async r=>{if(!r.ok)throw await r.json()})}}var XE=(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))(XE||{}),JE=(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))(JE||{}),roe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},ioe=roe,ooe={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},aoe=ooe,soe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},P6={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]},loe={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},coe={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},uoe=Object.defineProperty,doe=(e,t,n)=>t in e?uoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t,n)=>(doe(e,typeof t!="symbol"?t+"":t,n),n);/*!
|
||
* @kurkle/color v0.3.2
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2023 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/function Xh(e){return e+.5|0}const Ba=(e,t,n)=>Math.max(Math.min(e,n),t);function Hd(e){return Ba(Xh(e*2.55),0,255)}function rs(e){return Ba(Xh(e*255),0,255)}function Uo(e){return Ba(Xh(e/2.55)/100,0,1)}function uj(e){return Ba(Xh(e*100),0,100)}const si={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},Yx=[..."0123456789ABCDEF"],foe=e=>Yx[e&15],hoe=e=>Yx[(e&240)>>4]+Yx[e&15],ym=e=>(e&240)>>4===(e&15),poe=e=>ym(e.r)&&ym(e.g)&&ym(e.b)&&ym(e.a);function moe(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&si[e[1]]*17,g:255&si[e[2]]*17,b:255&si[e[3]]*17,a:t===5?si[e[4]]*17:255}:(t===7||t===9)&&(n={r:si[e[1]]<<4|si[e[2]],g:si[e[3]]<<4|si[e[4]],b:si[e[5]]<<4|si[e[6]],a:t===9?si[e[7]]<<4|si[e[8]]:255})),n}const goe=(e,t)=>e<255?t(e):"";function voe(e){var t=poe(e)?foe:hoe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+goe(e.a,t):void 0}const yoe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function L6(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function _oe(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 boe(e,t,n){const r=L6(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 woe(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 eT(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=woe(t,n,r,c,i),s=s*60+.5),[s|0,l||0,a]}function tT(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(rs)}function nT(e,t,n){return tT(L6,e,t,n)}function xoe(e,t,n){return tT(boe,e,t,n)}function Soe(e,t,n){return tT(_oe,e,t,n)}function j6(e){return(e%360+360)%360}function Eoe(e){const t=yoe.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Hd(+t[5]):rs(+t[5]));const i=j6(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=xoe(i,o,a):t[1]==="hsv"?r=Soe(i,o,a):r=nT(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function Toe(e,t){var n=eT(e);n[0]=j6(n[0]+t),n=nT(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Ooe(e){if(!e)return;const t=eT(e),n=t[0],r=uj(t[1]),i=uj(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Uo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const dj={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"},fj={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 Coe(){const e={},t=Object.keys(fj),n=Object.keys(dj);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,dj[o]);o=parseInt(fj[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let _m;function koe(e){_m||(_m=Coe(),_m.transparent=[0,0,0,0]);const t=_m[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Poe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Loe(e){const t=Poe.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?Hd(a):Ba(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Hd(r):Ba(r,0,255)),i=255&(t[4]?Hd(i):Ba(i,0,255)),o=255&(t[6]?Hd(o):Ba(o,0,255)),{r,g:i,b:o,a:n}}}function joe(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Uo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const g1=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,cc=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Moe(e,t,n){const r=cc(Uo(e.r)),i=cc(Uo(e.g)),o=cc(Uo(e.b));return{r:rs(g1(r+n*(cc(Uo(t.r))-r))),g:rs(g1(i+n*(cc(Uo(t.g))-i))),b:rs(g1(o+n*(cc(Uo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function bm(e,t,n){if(e){let r=eT(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=nT(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function M6(e,t){return e&&Object.assign(t||{},e)}function hj(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=rs(e[3]))):(t=M6(e,{r:0,g:0,b:0,a:1}),t.a=rs(t.a)),t}function Noe(e){return e.charAt(0)==="r"?Loe(e):Eoe(e)}class uh{constructor(t){if(t instanceof uh)return t;const n=typeof t;let r;n==="object"?r=hj(t):n==="string"&&(r=moe(t)||koe(t)||Noe(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=M6(this._rgb);return t&&(t.a=Uo(t.a)),t}set rgb(t){this._rgb=hj(t)}rgbString(){return this._valid?joe(this._rgb):void 0}hexString(){return this._valid?voe(this._rgb):void 0}hslString(){return this._valid?Ooe(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*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=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Moe(this._rgb,t._rgb,n)),this}clone(){return new uh(this.rgb)}alpha(t){return this._rgb.a=rs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Xh(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 bm(this._rgb,2,t),this}darken(t){return bm(this._rgb,2,-t),this}saturate(t){return bm(this._rgb,1,t),this}desaturate(t){return bm(this._rgb,1,-t),this}rotate(t){return Toe(this._rgb,t),this}}/*!
|
||
* Chart.js v4.4.0
|
||
* https://www.chartjs.org
|
||
* (c) 2023 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/function Ao(){}const Aoe=(()=>{let e=0;return()=>e++})();function dt(e){return e===null||typeof e>"u"}function At(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 rt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function rn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function $r(e,t){return rn(e)?e:t}function Ze(e,t){return typeof e>"u"?t:e}const Roe=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,N6=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function kt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function bt(e,t,n,r){let i,o,a;if(At(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(rt(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function Wv(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 Yv(e){if(At(e))return e.map(Yv);if(rt(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Yv(e[n[i]]);return t}return e}function A6(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Doe(e,t,n,r){if(!A6(e))return;const i=t[e],o=n[e];rt(i)&&rt(o)?dh(i,o,r):t[e]=Yv(o)}function dh(e,t,n){const r=At(t)?t:[t],i=r.length;if(!rt(e))return e;n=n||{};const o=n.merger||Doe;let a;for(let s=0;s<i;++s){if(a=r[s],!rt(a))continue;const l=Object.keys(a);for(let c=0,d=l.length;c<d;++c)o(l[c],e,a,n)}return e}function vf(e,t){return dh(e,t,{merger:Ioe})}function Ioe(e,t,n){if(!A6(e))return;const r=t[e],i=n[e];rt(r)&&rt(i)?vf(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Yv(i))}const pj={"":e=>e,x:e=>e.x,y:e=>e.y};function Foe(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){const t=Foe(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function fs(e,t){return(pj[t]||(pj[t]=$oe(t)))(e)}function rT(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fh=e=>typeof e<"u",hs=e=>typeof e=="function",mj=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Uoe(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const $t=Math.PI,It=2*$t,Boe=It+$t,Gv=Number.POSITIVE_INFINITY,zoe=$t/180,fn=$t/2,Ns=$t/4,gj=$t*2/3,za=Math.log10,wo=Math.sign;function yf(e,t,n){return Math.abs(e-t)<n}function vj(e){const t=Math.round(e);e=yf(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(za(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Voe(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 Su(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Hoe(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function R6(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 Ui(e){return e*($t/180)}function iT(e){return e*(180/$t)}function yj(e){if(!rn(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function D6(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*$t&&(o+=It),{angle:o,distance:i}}function Gx(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Woe(e,t){return(e-t+Boe)%It-$t}function Br(e){return(e%It+It)%It}function hh(e,t,n,r){const i=Br(e),o=Br(t),a=Br(n),s=Br(o-i),l=Br(a-i),c=Br(i-o),d=Br(i-a);return i===o||i===a||r&&o===a||s>l&&c<d}function Rn(e,t,n){return Math.max(t,Math.min(n,e))}function Yoe(e){return Rn(e,-32768,32767)}function Ho(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function oT(e,t,n){n=n||(a=>e[a]<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)=>oT(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),Goe=(e,t,n)=>oT(e,n,r=>e[r][t]>=n);function qoe(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 I6=["push","pop","shift","splice","unshift"];function Zoe(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),I6.forEach(n=>{const r="_onData"+rT(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function _j(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)&&(I6.forEach(o=>{delete e[o]}),delete e._chartjs)}function F6(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const $6=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function U6(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,$6.call(window,()=>{r=!1,e.apply(t,n)}))}}function Koe(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const aT=e=>e==="start"?"left":e==="end"?"right":"center",ir=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Qoe=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function B6(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:d,minDefined:f,maxDefined:p}=a.getUserBounds();f&&(i=Rn(Math.min(Wo(s,l,c).lo,n?r:Wo(t,l,a.getPixelForValue(c)).lo),0,r-1)),p?o=Rn(Math.max(Wo(s,a.axis,d,!0).hi+1,n?0:Wo(t,l,a.getPixelForValue(d),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function z6(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 wm=e=>e===0||e===1,bj=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*It/n)),wj=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*It/n)+1,_f={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*fn)+1,easeOutSine:e=>Math.sin(e*fn),easeInOutSine:e=>-.5*(Math.cos($t*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=>wm(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=>wm(e)?e:bj(e,.075,.3),easeOutElastic:e=>wm(e)?e:wj(e,.075,.3),easeInOutElastic(e){return wm(e)?e:e<.5?.5*bj(e*2,.1125,.45):.5+.5*wj(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-_f.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?_f.easeInBounce(e*2)*.5:_f.easeOutBounce(e*2-1)*.5+.5};function sT(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function xj(e){return sT(e)?e:new uh(e)}function v1(e){return sT(e)?e:new uh(e).saturate(.5).darken(.1).hexString()}const Xoe=["x","y","borderWidth","radius","tension"],Joe=["color","borderColor","backgroundColor"];function eae(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Joe},numbers:{type:"number",properties:Xoe}}),e.describe("animations",{_fallback:"animation"}),e.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:t=>t|0}}}})}function tae(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Sj=new Map;function nae(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Sj.get(n);return r||(r=new Intl.NumberFormat(e,t),Sj.set(n,r)),r}function Jh(e,t,n){return nae(t,n).format(e)}const V6={values(e){return At(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=rae(e,n)}const a=za(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Jh(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(za(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?V6.numeric.call(this,e,t,n):""}};function rae(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 b0={formatters:V6};function iae(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:b0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ol=Object.create(null),qx=Object.create(null);function bf(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 y1(e,t,n){return typeof t=="string"?dh(bf(e,t),n):dh(bf(e,""),t)}class oae{constructor(t,n){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=r=>r.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=(r,i)=>v1(i.backgroundColor),this.hoverBorderColor=(r,i)=>v1(i.borderColor),this.hoverColor=(r,i)=>v1(i.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),this.apply(n)}set(t,n){return y1(this,t,n)}get(t){return bf(this,t)}describe(t,n){return y1(qx,t,n)}override(t,n){return y1(Ol,t,n)}route(t,n,r,i){const o=bf(this,t),a=bf(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return rt(l)?Object.assign({},c,l):Ze(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var on=new oae({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[eae,tae,iae]);function aae(e){return!e||dt(e.size)||dt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function qv(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 sae(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 a=0;const s=n.length;let l,c,d,f,p;for(l=0;l<s;l++)if(f=n[l],f!=null&&!At(f))a=qv(e,i,o,a,f);else if(At(f))for(c=0,d=f.length;c<d;c++)p=f[c],p!=null&&!At(p)&&(a=qv(e,i,o,a,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 a}function As(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 Ej(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Zx(e,t,n,r){H6(e,t,n,r,null)}function H6(e,t,n,r,i){let o,a,s,l,c,d,f,p;const m=t.pointStyle,v=t.rotation,y=t.radius;let x=(v||0)*zoe;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(x),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,y,0,0,It):e.arc(n,r,y,0,It),e.closePath();break;case"triangle":d=i?i/2:y,e.moveTo(n+Math.sin(x)*d,r-Math.cos(x)*y),x+=gj,e.lineTo(n+Math.sin(x)*d,r-Math.cos(x)*y),x+=gj,e.lineTo(n+Math.sin(x)*d,r-Math.cos(x)*y),e.closePath();break;case"rectRounded":c=y*.516,l=y-c,a=Math.cos(x+Ns)*l,f=Math.cos(x+Ns)*(i?i/2-c:l),s=Math.sin(x+Ns)*l,p=Math.sin(x+Ns)*(i?i/2-c:l),e.arc(n-f,r-s,c,x-$t,x-fn),e.arc(n+p,r-a,c,x-fn,x),e.arc(n+f,r+s,c,x,x+fn),e.arc(n-p,r+a,c,x+fn,x+$t),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,d=i?i/2:l,e.rect(n-d,r-l,2*d,2*l);break}x+=Ns;case"rectRot":f=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+p,r-a),e.lineTo(n+f,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":x+=Ns;case"cross":f=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":f=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),x+=Ns,f=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(x)*y,s=Math.sin(x)*y,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(x)*(i?i/2:y),r+Math.sin(x)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Yo(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 w0(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function x0(e){e.restore()}function lae(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 cae(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 uae(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),dt(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 dae(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,d=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,d),e.lineTo(s,d),e.stroke()}}function fae(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Cl(e,t,n,r,i,o={}){const a=At(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,uae(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&fae(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),dt(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),dae(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function ph(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*$t,$t,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,$t,fn,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,fn,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-fn,!0),e.lineTo(n+a.topLeft,r)}const hae=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pae=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function mae(e,t){const n=(""+e).match(hae);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 gae=e=>+e||0;function lT(e,t){const n={},r=rt(t),i=r?Object.keys(t):t,o=rt(e)?r?a=>Ze(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=gae(o(a));return n}function W6(e){return lT(e,{top:"y",right:"x",bottom:"y",left:"x"})}function fl(e){return lT(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ur(e){const t=W6(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Sn(e,t){e=e||{},t=t||on.font;let n=Ze(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ze(e.style,t.style);r&&!(""+r).match(pae)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ze(e.family,t.family),lineHeight:mae(Ze(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ze(e.weight,t.weight),string:""};return i.string=aae(i),i}function Wd(e,t,n,r){let i=!0,o,a,s;for(o=0,a=e.length;o<a;++o)if(s=e[o],s!==void 0&&(t!==void 0&&typeof s=="function"&&(s=s(t),i=!1),n!==void 0&&At(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function vae(e,t,n){const{min:r,max:i}=e,o=N6(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Es(e,t){return Object.assign(Object.create(e),t)}function cT(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=Z6("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>cT([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return G6(s,l,()=>Tae(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return Oj(s).includes(l)},ownKeys(s){return Oj(s)},set(s,l,c){const d=s._storage||(s._storage=i());return s[l]=d[l]=c,delete s._keys,!0}})}function Eu(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Y6(e,r),setContext:o=>Eu(e,o,n,r),override:o=>Eu(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return G6(o,a,()=>_ae(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function Y6(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:hs(n)?n:()=>n,isIndexable:hs(r)?r:()=>r}}const yae=(e,t)=>e?e+rT(t):t,uT=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function G6(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function _ae(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return hs(s)&&a.isScriptable(t)&&(s=bae(t,s,e,n)),At(s)&&s.length&&(s=wae(t,s,e,a.isIndexable)),uT(t,s)&&(s=Eu(s,i,o&&o[t],a)),s}function bae(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),uT(e,l)&&(l=dT(i._scopes,i,e,l)),l}function wae(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(rt(t[0])){const l=t,c=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const f=dT(c,i,e,d);t.push(Eu(f,o,a&&a[e],s))}}return t}function q6(e,t,n){return hs(e)?e(t,n):e}const xae=(e,t)=>e===!0?t:typeof e=="string"?fs(t,e):void 0;function Sae(e,t,n,r,i){for(const o of t){const a=xae(n,o);if(a){e.add(a);const s=q6(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function dT(e,t,n,r){const i=t._rootScopes,o=q6(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Tj(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=Tj(s,a,o,l,r),l===null)?!1:cT(Array.from(s),[""],i,o,()=>Eae(t,n,r))}function Tj(e,t,n,r,i){for(;n;)n=Sae(e,t,n,r,i);return n}function Eae(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return At(i)&&rt(n)?n:i||{}}function Tae(e,t,n,r){let i;for(const o of t)if(i=Z6(yae(o,e),n),typeof i<"u")return uT(e,i)?dT(n,r,e,i):i}function Z6(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Oj(e){let t=e._keys;return t||(t=e._keys=Oae(e._scopes)),t}function Oae(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 K6(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,d;for(s=0,l=r;s<l;++s)c=s+n,d=t[c],a[s]={r:i.parse(fs(d,o),c)};return a}const Cae=Number.EPSILON||1e-14,Tu=(e,t)=>t<e.length&&!e[t].skip&&e[t],Q6=e=>e==="x"?"y":"x";function kae(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=Gx(o,i),l=Gx(a,o);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const f=r*c,p=r*d;return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function Pae(e,t,n){const r=e.length;let i,o,a,s,l,c=Tu(e,0);for(let d=0;d<r-1;++d)if(l=c,c=Tu(e,d+1),!(!l||!c)){if(yf(t[d],0,Cae)){n[d]=n[d+1]=0;continue}i=n[d]/t[d],o=n[d+1]/t[d],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[d]=i*a*t[d],n[d+1]=o*a*t[d])}}function Lae(e,t,n="x"){const r=Q6(n),i=e.length;let o,a,s,l=Tu(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=Tu(e,c+1),!s)continue;const d=s[n],f=s[r];a&&(o=(d-a[n])/3,s[`cp1${n}`]=d-o,s[`cp1${r}`]=f-o*t[c]),l&&(o=(l[n]-d)/3,s[`cp2${n}`]=d+o,s[`cp2${r}`]=f+o*t[c])}}function jae(e,t="x"){const n=Q6(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=Tu(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=Tu(e,a+1),!!l){if(c){const d=c[t]-l[t];i[a]=d!==0?(c[n]-l[n])/d:0}o[a]=s?c?wo(i[a-1])!==wo(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}Pae(e,i,o),Lae(e,o,t)}function xm(e,t,n){return Math.max(Math.min(e,n),t)}function Mae(e,t){let n,r,i,o,a,s=Yo(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&Yo(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=xm(i.cp1x,t.left,t.right),i.cp1y=xm(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=xm(i.cp2x,t.left,t.right),i.cp2y=xm(i.cp2y,t.top,t.bottom)))}function Nae(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")jae(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=kae(c,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&Mae(e,n)}function X6(){return typeof window<"u"&&typeof document<"u"}function fT(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Zv(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 S0=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Aae(e,t){return S0(e).getPropertyValue(t)}const Rae=["top","right","bottom","left"];function hl(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=Rae[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Dae=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Iae(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(Dae(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ys(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=S0(n),o=i.boxSizing==="border-box",a=hl(i,"padding"),s=hl(i,"border","width"),{x:l,y:c,box:d}=Iae(e,n),f=a.left+(d&&s.left),p=a.top+(d&&s.top);let{width:m,height:v}=t;return o&&(m-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function Fae(e,t,n){let r,i;if(t===void 0||n===void 0){const o=fT(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=S0(o),l=hl(s,"border","width"),c=hl(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=Zv(s.maxWidth,o,"clientWidth"),i=Zv(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||Gv,maxHeight:i||Gv}}const Sm=e=>Math.round(e*10)/10;function $ae(e,t,n,r){const i=S0(e),o=hl(i,"margin"),a=Zv(i.maxWidth,e,"clientWidth")||Gv,s=Zv(i.maxHeight,e,"clientHeight")||Gv,l=Fae(e,t,n);let{width:c,height:d}=l;if(i.boxSizing==="content-box"){const f=hl(i,"border","width"),p=hl(i,"padding");c-=p.width+f.width,d-=p.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,r?c/r:d-o.height),c=Sm(Math.min(c,a,l.maxWidth)),d=Sm(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Sm(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=Sm(Math.floor(d*r))),{width:c,height:d}}function Cj(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Uae=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 kj(e,t){const n=Aae(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Gs(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Bae(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 zae(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Gs(e,i,n),s=Gs(i,o,n),l=Gs(o,t,n),c=Gs(a,s,n),d=Gs(s,l,n);return Gs(c,d,n)}const Vae=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}}},Hae=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Xc(e,t,n){return e?Vae(t,n):Hae()}function J6(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 e5(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t5(e){return e==="angle"?{between:hh,compare:Woe,normalize:Br}:{between:Ho,compare:(t,n)=>t-n,normalize:t=>t}}function Pj({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 Wae(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=t5(r),l=t.length;let{start:c,end:d,loop:f}=e,p,m;if(f){for(c+=l,d+=l,p=0,m=l;p<m&&a(s(t[c%l][r]),i,o);++p)c--,d--;c%=l,d%=l}return d<c&&(d+=l),{start:c,end:d,loop:f,style:e.style}}function n5(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=t5(r),{start:d,end:f,loop:p,style:m}=Wae(e,t,n),v=[];let y=!1,x=null,_,w,S;const E=()=>l(i,S,_)&&s(i,S)!==0,O=()=>s(o,_)===0||l(o,S,_),k=()=>y||E(),j=()=>!y||O();for(let R=d,U=d;R<=f;++R)w=t[R%a],!w.skip&&(_=c(w[r]),_!==S&&(y=l(_,i,o),x===null&&k()&&(x=s(_,i)===0?R:U),x!==null&&j()&&(v.push(Pj({start:x,end:R,loop:p,count:a,style:m})),x=null),U=R,S=_));return x!==null&&v.push(Pj({start:x,end:f,loop:p,count:a,style:m})),v}function r5(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=n5(r[i],e.points,t);o.length&&n.push(...o)}return n}function Yae(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 Gae(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function qae(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=Yae(n,i,o,r);if(r===!0)return Lj(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,c=!!e._fullLoop&&a===0&&s===i-1;return Lj(e,Gae(n,a,l,c),n,t)}function Lj(e,t,n,r){return!r||!r.setContext||!n?t:Zae(e,t,n,r)}function Zae(e,t,n,r){const i=e._chart.getContext(),o=jj(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let d=o,f=t[0].start,p=f;function m(v,y,x,_){const w=s?-1:1;if(v!==y){for(v+=l;n[v%l].skip;)v-=w;for(;n[y%l].skip;)y+=w;v%l!==y%l&&(c.push({start:v%l,end:y%l,loop:x,style:_}),d=_,f=y%l)}}for(const v of t){f=s?f:v.start;let y=n[f%l],x;for(p=f+1;p<=v.end;p++){const _=n[p%l];x=jj(r.setContext(Es(i,{type:"segment",p0:y,p1:_,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),Kae(x,d)&&m(f,p-1,v.loop,d),y=_,d=x}f<p-1&&m(f,p-1,v.loop,d)}return c}function jj(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Kae(e,t){if(!t)return!1;const n=[],r=function(i,o){return sT(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
||
* Chart.js v4.4.0
|
||
* https://www.chartjs.org
|
||
* (c) 2023 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/class Qae{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],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=$6.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 a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(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 Ro=new Qae;const Mj="transparent",Xae={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=xj(e||Mj),i=r.valid&&xj(t||Mj);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Jae{constructor(t,n,r,i){const o=n[r];i=Wd([t.to,i,o,t.from]);const a=Wd([t.from,o,i]);this._active=!0,this._fn=t.fn||Xae[t.type||typeof a],this._easing=_f[t.easing]||_f.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=a,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,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Wd([t.to,n,i,t.from]),this._from=Wd([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,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,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]()}}class i5{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!rt(t))return;const n=Object.keys(on.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!rt(o))return;const a={};for(const s of n)a[s]=o[s];(At(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=tse(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&ese(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let f=o[c];const p=r.get(c);if(f)if(p&&f.active()){f.update(p,d,s);continue}else f.cancel();if(!p||!p.duration){t[c]=d;continue}o[c]=f=new Jae(p,t,c,d),i.push(f)}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 Ro.add(this._chart,r),!0}}function ese(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 tse(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 Nj(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 nse(e,t,n){if(n===!1)return!1;const r=Nj(e,n),i=Nj(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function rse(e){let t,n,r,i;return rt(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 o5(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 Aj(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,c;if(t!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(r.all)continue;break}c=e.values[l],rn(c)&&(o||t===0||wo(t)===wo(c))&&(t+=c)}return t}}function ise(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 Rj(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function ose(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function ase(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 sse(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Dj(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 Ij(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,d=ose(o,a,r),f=t.length;let p;for(let m=0;m<f;++m){const v=t[m],{[l]:y,[c]:x}=v,_=v._stacks||(v._stacks={});p=_[c]=sse(i,d,y),p[s]=x,p._top=Dj(p,a,!0,r.type),p._bottom=Dj(p,a,!1,r.type);const w=p._visualValues||(p._visualValues={});w[s]=x}}function _1(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function lse(e,t){return Es(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function cse(e,t,n){return Es(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Td(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],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const b1=e=>e==="reset"||e==="none",Fj=(e,t)=>t?e:Object.assign({},e),use=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:o5(n,!0),values:null};class Gi{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.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Rj(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Td(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,p,m,v)=>f==="x"?p:f==="r"?v:m,o=n.xAxisID=Ze(r.xAxisID,_1(t,"x")),a=n.yAxisID=Ze(r.yAxisID,_1(t,"y")),s=n.rAxisID=Ze(r.rAxisID,_1(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),d=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}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&&_j(this._data,this),t._stacked&&Td(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(rt(n))this._data=ise(n);else if(r!==n){if(r){_j(r,this);const i=this._cachedMeta;Td(i),i._parsed=[]}n&&Object.isExtensible(n)&&Zoe(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=Rj(n.vScale,n),n.stack!==r.stack&&(i=!0,Td(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&Ij(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:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{At(i[t])?p=this.parseArrayData(r,i,t,n):rt(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>f[s]===null||c&&f[s]<c[s];for(d=0;d<n;++d)r._parsed[d+t]=f=p[d],l&&(m()&&(l=!1),c=f);r._sorted=l}a&&Ij(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,c=o.getLabels(),d=o===a,f=new Array(i);let p,m,v;for(p=0,m=i;p<m;++p)v=p+r,f[p]={[s]:d||o.parse(c[v],v),[l]:a.parse(n[v],v)};return f}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,c,d,f;for(l=0,c=i;l<c;++l)d=l+r,f=n[d],s[l]={x:o.parse(f[0],d),y:a.parse(f[1],d)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let d,f,p,m;for(d=0,f=i;d<f;++d)p=d+r,m=n[p],c[d]={x:o.parse(fs(m,s),p),y:a.parse(fs(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,a=n[t.axis],s={keys:o5(i,!0),values:n._stacks[t.axis]._visualValues};return Aj(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=Aj(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=use(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=ase(s);let p,m;function v(){m=i[p];const y=m[s.axis];return!rn(m[t.axis])||d>y||f<y}for(p=0;p<a&&!(!v()&&(this.updateRangeFromParsed(c,t,m,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],rn(a)&&r.push(a);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=rse(Ze(this.options.clip,nse(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,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,o,s,l),d=s;d<s+l;++d){const f=i[d];f.hidden||(f.active&&c?a.push(f):f.draw(t,o))}for(d=0;d<a.length;++d)a[d].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 a=this._cachedMeta.data[t];o=a.$context||(a.$context=cse(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=lse(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,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&fh(r);if(s)return Fj(s,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,t),f=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),d),m=Object.keys(on.elements[t]),v=()=>this.getContext(r,i,n),y=c.resolveNamedOptions(p,m,v,f);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(Fj(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),p=d.getOptionScopes(this.getDataset(),f);l=d.createResolver(p,this.getContext(t,r,n))}const c=new i5(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||b1(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){b1(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!b1(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[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),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,a=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s<a;++s)o[s]=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&&Td(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])}}Te(Gi,"defaults",{}),Te(Gi,"datasetElementType",null),Te(Gi,"dataElementType",null);function dse(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=F6(r.sort((i,o)=>i-o))}return e._cache.$bar}function fse(e){const t=e.iScale,n=dse(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(fh(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=t.ticks.length;i<o;++i)a=t.getPixelForTick(i),l();return r}function hse(e,t,n,r){const i=n.barThickness;let o,a;return dt(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function pse(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?t.end-t.start:s-o)),s===null&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}function mse(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}function a5(e,t,n,r){return At(e)?mse(e,t,n,r):t[n.axis]=n.parse(e,r),t}function $j(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,d,f,p;for(c=n,d=n+r;c<d;++c)p=t[c],f={},f[i.axis]=s||i.parse(a[c],c),l.push(a5(p,f,o,c));return l}function w1(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function gse(e,t,n){return e!==0?wo(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function vse(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 yse(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:a,end:s,reverse:l,top:c,bottom:d}=vse(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=d:(o[Uj(d,a,s,l)]=!0,i=c)),o[Uj(i,a,s,l)]=!0,e.borderSkipped=o}function Uj(e,t,n,r){return r?(e=_se(e,t,n),e=Bj(e,n,t)):e=Bj(e,t,n),e}function _se(e,t,n){return e===t?n:e===n?t:e}function Bj(e,t,n){return e==="start"?t:e==="end"?n:e}function bse(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class wf extends Gi{parsePrimitiveData(t,n,r,i){return $j(t,n,r,i)}parseArrayData(t,n,r,i){return $j(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?s:l,d=a.axis==="x"?s:l,f=[];let p,m,v,y;for(p=r,m=r+i;p<m;++p)y=n[p],v={},v[o.axis]=o.parse(fs(y,c),p),f.push(a5(fs(y,d),v,a,p));return f}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),a=o._custom,s=w1(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}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:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:p}=this._getSharedOptions(n,i);for(let m=n;m<n+r;m++){const v=this.getParsed(m),y=o||dt(v[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),x=this._calculateBarIndexPixels(m,d),_=(v._stacks||{})[s.axis],w={horizontal:c,base:y.base,enableBorderRadius:!_||w1(v._custom)||a===_._top||a===_._bottom,x:c?y.head:x.center,y:c?x.center:y.head,height:c?x.size:Math.abs(y.size),width:c?Math.abs(y.size):x.size};p&&(w.options=f||this.resolveDataElementOptions(m,t[m].active?"active":i));const S=w.options||t[m].options;yse(w,S,_,a),bse(w,S,d.ratio),this.updateElement(t[m],m,w,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,a=[],s=l=>{const c=l.controller.getParsed(n),d=c&&c[l.vScale.axis];if(dt(d)||isNaN(d))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((o===!1||a.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===t))break;return a.length||a.push(void 0),a}_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,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=t.barThickness;return{min:s||fse(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),c=l._custom,d=w1(c);let f=l[n.axis],p=0,m=r?this.applyStack(n,l,r):f,v,y;m!==f&&(p=m-f,m=f),d&&(f=c.barStart,m=c.barEnd-c.barStart,f!==0&&wo(f)!==wo(c.barEnd)&&(p=0),p+=f);const x=!dt(o)&&!d?o:p;let _=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(p+m):v=_,y=v-_,Math.abs(y)<a){y=gse(y,n,s)*a,f===s&&(_-=y/2);const w=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),E=Math.min(w,S),O=Math.max(w,S);_=Math.max(Math.min(_,O),E),v=_+y,r&&!d&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(_))}if(_===n.getPixelForValue(s)){const w=wo(y)*n.getLineWidthForValue(s)/2;_+=w,y-=w}return{size:y,base:_,head:v,center:v+y/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,a=Ze(i.maxBarThickness,1/0);let s,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,d=i.barThickness==="flex"?pse(t,n,i,c):hse(t,n,i,c),f=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=d.start+d.chunk*f+d.chunk/2,l=Math.min(a,d.chunk*d.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,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)}}Te(wf,"id","bar"),Te(wf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Te(wf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class pg extends Gi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let a=0;a<o.length;a++){const s=n[r+a];o[a]._custom=Ze(s[2],this.resolveDataElementOptions(a+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let a=0;a<o.length;a++){const s=n[r+a];o[a]._custom=Ze(s&&s.r&&+s.r,this.resolveDataElementOptions(a+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,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,a=this.getParsed(t),s=i.getLabelForValue(a.x),l=o.getLabelForValue(a.y),c=a._custom;return{label:r[t]||"",value:"("+s+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),d=a.axis,f=s.axis;for(let p=n;p<n+r;p++){const m=t[p],v=!o&&this.getParsed(p),y={},x=y[d]=o?a.getPixelForDecimal(.5):a.getPixelForValue(v[d]),_=y[f]=o?s.getBasePixel():s.getPixelForValue(v[f]);y.skip=isNaN(x)||isNaN(_),c&&(y.options=l||this.resolveDataElementOptions(p,m.active?"active":i),o&&(y.options.radius=0)),this.updateElement(m,p,y,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+=Ze(r&&r._custom,o),i}}Te(pg,"id","bubble"),Te(pg,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),Te(pg,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function wse(e,t,n){let r=1,i=1,o=0,a=0;if(t<It){const s=e,l=s+t,c=Math.cos(s),d=Math.sin(s),f=Math.cos(l),p=Math.sin(l),m=(S,E,O)=>hh(S,s,l,!0)?1:Math.max(E,E*n,O,O*n),v=(S,E,O)=>hh(S,s,l,!0)?-1:Math.min(E,E*n,O,O*n),y=m(0,c,f),x=m(fn,d,p),_=v($t,c,f),w=v($t+fn,d,p);r=(y-_)/2,i=(x-w)/2,o=-(y+_)/2,a=-(x+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class Va extends Gi{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(rt(r[t])){const{key:l="value"}=this._parsing;o=c=>+fs(r[c],l)}let a,s;for(a=t,s=t+n;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return Ui(this.options.rotation-90)}_getCircumference(){return Ui(this.options.circumference)}_getRotationExtents(){let t=It,n=-It;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(Roe(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:v,offsetY:y}=wse(f,d,l),x=(r.width-a)/p,_=(r.height-a)/m,w=Math.max(Math.min(x,_)/2,0),S=N6(this.options.radius,w),E=Math.max(S*l,0),O=(S-E)/this._getVisibleDatasetWeightTotal();this.offsetX=v*S,this.offsetY=y*S,i.total=this.calculateTotal(),this.outerRadius=S-O*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-O*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/It)}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,l=a.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,f=o&&l.animateScale,p=f?0:this.innerRadius,m=f?0:this.outerRadius,{sharedOptions:v,includeOptions:y}=this._getSharedOptions(n,i);let x=this._getRotation(),_;for(_=0;_<n;++_)x+=this._circumference(_,o);for(_=n;_<n+r;++_){const w=this._circumference(_,o),S=t[_],E={x:c+this.offsetX,y:d+this.offsetY,startAngle:x,endAngle:x+w,circumference:w,outerRadius:m,innerRadius:p};y&&(E.options=v||this.resolveDataElementOptions(_,S.active?"active":i)),x+=w,this.updateElement(S,_,E,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)?It*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Jh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,s=a.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=s.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(Ze(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Te(Va,"id","doughnut"),Te(Va,"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"}),Te(Va,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Te(Va,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class xf extends Gi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=B6(n,i,a);this._drawStart=s,this._drawCount=l,z6(n)&&(s=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:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i),p=a.axis,m=s.axis,{spanGaps:v,segment:y}=this.options,x=Su(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",w=n+r,S=t.length;let E=n>0&&this.getParsed(n-1);for(let O=0;O<S;++O){const k=t[O],j=_?k:{};if(O<n||O>=w){j.skip=!0;continue}const R=this.getParsed(O),U=dt(R[m]),A=j[p]=a.getPixelForValue(R[p],O),V=j[m]=o||U?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,R,l):R[m],O);j.skip=isNaN(A)||isNaN(V)||U,j.stop=O>0&&Math.abs(R[p]-E[p])>x,y&&(j.parsed=R,j.raw=c.data[O]),f&&(j.options=d||this.resolveDataElementOptions(O,k.active?"active":i)),_||this.updateElement(k,O,j,i),E=R}}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)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Te(xf,"id","line"),Te(xf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Te(xf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Sf extends Gi{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=Jh(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return K6.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),a=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),s=(o-a)/t.getVisibleDatasetCount();this.outerRadius=o-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,f=l.getIndexAngle(0)-.5*$t;let p=f,m;const v=360/this.countVisibleElements();for(m=0;m<n;++m)p+=this._computeAngle(m,i,v);for(m=n;m<n+r;m++){const y=t[m];let x=p,_=p+this._computeAngle(m,i,v),w=a.getDataVisibility(m)?l.getDistanceFromCenterForValue(this.getParsed(m).r):0;p=_,o&&(s.animateScale&&(w=0),s.animateRotate&&(x=_=f));const S={x:c,y:d,innerRadius:0,outerRadius:w,startAngle:x,endAngle:_,options:this.resolveDataElementOptions(m,y.active?"active":i)};this.updateElement(y,m,S,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)?Ui(this.resolveDataElementOptions(t,n).angle||r):0}}Te(Sf,"id","polarArea"),Te(Sf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Te(Sf,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Kx extends Va{}Te(Kx,"id","pie"),Te(Kx,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class mg extends Gi{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 K6.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 a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const s={_loop:!0,_fullLoop:o.length===i.length,options:a};this.updateElement(r,void 0,s,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,a=i==="reset";for(let s=n;s<n+r;s++){const l=t[s],c=this.resolveDataElementOptions(s,l.active?"active":i),d=o.getPointPositionForValue(s,this.getParsed(s).r),f=a?o.xCenter:d.x,p=a?o.yCenter:d.y,m={x:f,y:p,angle:d.angle,skip:isNaN(f)||isNaN(p),options:c};this.updateElement(l,s,m,i)}}}Te(mg,"id","radar"),Te(mg,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),Te(mg,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class gg extends Gi{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,a=this.getParsed(t),s=i.getLabelForValue(a.x),l=o.getLabelForValue(a.y);return{label:r[t]||"",value:"("+s+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:a}=B6(n,r,i);if(this._drawStart=o,this._drawCount=a,z6(n)&&(o=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:l}=n;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!l._decimated,s.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!i,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,d=this.resolveDataElementOptions(n,i),f=this.getSharedOptions(d),p=this.includeOptions(i,f),m=a.axis,v=s.axis,{spanGaps:y,segment:x}=this.options,_=Su(y)?y:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||o||i==="none";let S=n>0&&this.getParsed(n-1);for(let E=n;E<n+r;++E){const O=t[E],k=this.getParsed(E),j=w?O:{},R=dt(k[v]),U=j[m]=a.getPixelForValue(k[m],E),A=j[v]=o||R?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,k,l):k[v],E);j.skip=isNaN(U)||isNaN(A)||R,j.stop=E>0&&Math.abs(k[m]-S[m])>_,x&&(j.parsed=k,j.raw=c.data[E]),p&&(j.options=f||this.resolveDataElementOptions(E,O.active?"active":i)),w||this.updateElement(O,E,j,i),S=k}this.updateSharedOptions(f,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let s=0;for(let l=n.length-1;l>=0;--l)s=Math.max(s,n[l].size(this.resolveDataElementOptions(l))/2);return s>0&&s}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,a)/2}}Te(gg,"id","scatter"),Te(gg,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Te(gg,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var xse=Object.freeze({__proto__:null,BarController:wf,BubbleController:pg,DoughnutController:Va,LineController:xf,PieController:Kx,PolarAreaController:Sf,RadarController:mg,ScatterController:gg});function Rs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class hT{constructor(t){Te(this,"options"),this.options=t||{}}static override(t){Object.assign(hT.prototype,t)}init(){}formats(){return Rs()}parse(){return Rs()}format(){return Rs()}add(){return Rs()}diff(){return Rs()}startOf(){return Rs()}endOf(){return Rs()}}var Sse={_date:hT};function Ese(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?Goe:Wo;if(r){if(i._sharedOptions){const c=o[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const f=l(o,t,n-d),p=l(o,t,n+d);return{lo:f.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function ep(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:c,data:d}=o[s],{lo:f,hi:p}=Ese(o[s],t,a,i);for(let m=f;m<=p;++m){const v=d[m];v.skip||r(v,c,m)}}}function Tse(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,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function x1(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||ep(e,n,t,function(a,s,l){!i&&!Yo(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:s,index:l})},!0),o}function Ose(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:d}=a.getProps(["startAngle","endAngle"],r),{angle:f}=D6(a,{x:t.x,y:t.y});hh(f,c,d)&&i.push({element:a,datasetIndex:s,index:l})}return ep(e,n,t,o),i}function Cse(e,t,n,r,i,o){let a=[];const s=Tse(n);let l=Number.POSITIVE_INFINITY;function c(d,f,p){const m=d.inRange(t.x,t.y,i);if(r&&!m)return;const v=d.getCenterPoint(i);if(!(o||e.isPointInArea(v))&&!m)return;const y=s(t,v);y<l?(a=[{element:d,datasetIndex:f,index:p}],l=y):y===l&&a.push({element:d,datasetIndex:f,index:p})}return ep(e,n,t,c),a}function S1(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?Ose(e,t,n,i):Cse(e,t,n,r,i,o)}function zj(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return ep(e,n,t,(l,c,d)=>{l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var kse={evaluateInteractionItems:ep,modes:{index(e,t,n,r){const i=Ys(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?x1(e,i,o,r,a):S1(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=s[0].index,f=c.data[d];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:d})}),l):[]},dataset(e,t,n,r){const i=Ys(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?x1(e,i,o,r,a):S1(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let d=0;d<c.length;++d)s.push({element:c[d],datasetIndex:l,index:d})}return s},point(e,t,n,r){const i=Ys(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return x1(e,i,o,r,a)},nearest(e,t,n,r){const i=Ys(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return S1(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=Ys(t,e);return zj(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Ys(t,e);return zj(e,i,"y",n.intersect,r)}}};const s5=["left","top","right","bottom"];function Od(e,t){return e.filter(n=>n.pos===t)}function Vj(e,t){return e.filter(n=>s5.indexOf(n.pos)===-1&&n.box.axis===t)}function Cd(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 Pse(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function Lse(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!s5.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function jse(e,t){const n=Lse(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,c=n[s.stack],d=c&&s.stackWeight/c.weight;s.horizontal?(s.width=d?d*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=d?d*i:l&&t.availableHeight)}return n}function Mse(e){const t=Pse(e),n=Cd(t.filter(c=>c.box.fullSize),!0),r=Cd(Od(t,"left"),!0),i=Cd(Od(t,"right")),o=Cd(Od(t,"top"),!0),a=Cd(Od(t,"bottom")),s=Vj(t,"x"),l=Vj(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Od(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function Hj(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function l5(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 Nse(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!rt(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&l5(a,o.getPadding());const s=Math.max(0,t.outerWidth-Hj(a,e,"left","right")),l=Math.max(0,t.outerHeight-Hj(a,e,"top","bottom")),c=s!==e.w,d=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Ase(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 Rse(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Yd(e,t,n,r){const i=[];let o,a,s,l,c,d;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,Rse(s.horizontal,t));const{same:f,other:p}=Nse(t,n,s,r);c|=f&&i.length,d=d||p,l.fullSize||i.push(s)}return c&&Yd(i,t,n,r)||d}function Em(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 Wj(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},d=s.stackWeight/c.weight||1;if(s.horizontal){const f=t.w*d,p=c.size||l.height;fh(c.start)&&(a=c.start),l.fullSize?Em(l,i.left,a,n.outerWidth-i.right-i.left,p):Em(l,t.left+c.placed,a,f,p),c.start=a,c.placed+=f,a=l.bottom}else{const f=t.h*d,p=c.size||l.width;fh(c.start)&&(o=c.start),l.fullSize?Em(l,o,i.top,p,n.outerHeight-i.bottom-i.top):Em(l,o,t.top+c.placed,p,f),c.start=o,c.placed+=f,o=l.right}}t.x=o,t.y=a}var sr={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=ur(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=Mse(e.boxes),l=s.vertical,c=s.horizontal;bt(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const d=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),p=Object.assign({},i);l5(p,ur(r));const m=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),v=jse(l.concat(c),f);Yd(s.fullSize,m,f,v),Yd(l,m,f,v),Yd(c,m,f,v)&&Yd(l,m,f,v),Ase(m),Wj(s.leftAndTop,m,f,v),m.x+=m.w,m.y+=m.h,Wj(s.rightAndBottom,m,f,v),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(s.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class c5{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 Dse extends c5{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const vg="$chartjs",Ise={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Yj=e=>e===null||e==="";function Fse(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[vg]={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",Yj(i)){const o=kj(e,"width");o!==void 0&&(e.width=o)}if(Yj(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=kj(e,"height");o!==void 0&&(e.height=o)}return e}const u5=Uae?{passive:!0}:!1;function $se(e,t,n){e.addEventListener(t,n,u5)}function Use(e,t,n){e.canvas.removeEventListener(t,n,u5)}function Bse(e,t){const n=Ise[e.type]||e.type,{x:r,y:i}=Ys(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Kv(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function zse(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Kv(s.addedNodes,r),a=a&&!Kv(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Vse(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Kv(s.removedNodes,r),a=a&&!Kv(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const mh=new Map;let Gj=0;function d5(){const e=window.devicePixelRatio;e!==Gj&&(Gj=e,mh.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Hse(e,t){mh.size||window.addEventListener("resize",d5),mh.set(e,t)}function Wse(e){mh.delete(e),mh.size||window.removeEventListener("resize",d5)}function Yse(e,t,n){const r=e.canvas,i=r&&fT(r);if(!i)return;const o=U6((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(i),Hse(e,o),a}function E1(e,t,n){n&&n.disconnect(),t==="resize"&&Wse(e)}function Gse(e,t,n){const r=e.canvas,i=U6(o=>{e.ctx!==null&&n(Bse(o,e))},e);return $se(r,t,i),i}class qse extends c5{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(Fse(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[vg])return!1;const r=n[vg].initial;["height","width"].forEach(o=>{const a=r[o];dt(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[vg],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:zse,detach:Vse,resize:Yse}[n]||Gse;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];i&&(({attach:E1,detach:E1,resize:E1}[n]||Use)(t,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return $ae(t,n,r,i)}isAttached(t){const n=fT(t);return!!(n&&n.isConnected)}}function Zse(e){return!X6()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Dse:qse}var Tm;let va=(Tm=class{constructor(){Te(this,"x"),Te(this,"y"),Te(this,"active",!1),Te(this,"options"),Te(this,"$animations")}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Su(this.x)&&Su(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},Te(Tm,"defaults",{}),Te(Tm,"defaultRoutes"),Tm);function Kse(e,t){const n=e.options.ticks,r=Qse(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?Jse(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return ele(t,c,o,a/i),c;const d=Xse(o,t,i);if(a>0){let f,p;const m=a>1?Math.round((l-s)/(a-1)):null;for(Om(t,c,d,dt(m)?0:s-m,s),f=0,p=a-1;f<p;f++)Om(t,c,d,o[f],o[f+1]);return Om(t,c,d,l,dt(m)?t.length:l+m),c}return Om(t,c,d),c}function Qse(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 Xse(e,t,n){const r=tle(e),i=t.length/n;if(!r)return Math.max(i,1);const o=Voe(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function Jse(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function ele(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function Om(e,t,n,r,i){const o=Ze(r,0),a=Math.min(Ze(i,e.length),e.length);let s=0,l,c,d;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),d=o;d<0;)s++,d=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===d&&(t.push(e[c]),s++,d=Math.round(o+s*n))}function tle(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 nle=e=>e==="left"?"right":e==="right"?"left":e,qj=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Zj=(e,t)=>Math.min(t||e,e);function Kj(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 rle(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-s||l>a+s)))return l}function ile(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 kd(e){return e.drawTicks?e.tickLength:0}function Qj(e,t){if(!e.display)return 0;const n=Sn(e.font,t),r=ur(e.padding);return(At(e.text)?e.text.length:1)*n.lineHeight+r.height}function ole(e,t){return Es(e,{scale:t,type:"scale"})}function ale(e,t,n){return Es(e,{tick:n,index:t,type:"tick"})}function sle(e,t,n){let r=aT(e);return(n&&t!=="right"||!n&&t==="right")&&(r=nle(r)),r}function lle(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:d}=l;let f=0,p,m,v;const y=a-i,x=s-o;if(e.isHorizontal()){if(m=ir(r,o,s),rt(n)){const _=Object.keys(n)[0],w=n[_];v=d[_].getPixelForValue(w)+y-t}else n==="center"?v=(c.bottom+c.top)/2+y-t:v=qj(e,n,t);p=s-o}else{if(rt(n)){const _=Object.keys(n)[0],w=n[_];m=d[_].getPixelForValue(w)-x+t}else n==="center"?m=(c.left+c.right)/2-x+t:m=qj(e,n,t);v=ir(r,a,i),f=n==="left"?-fn:fn}return{titleX:m,titleY:v,maxWidth:p,rotation:f}}class Ul extends va{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=$r(t,Number.POSITIVE_INFINITY),n=$r(n,Number.NEGATIVE_INFINITY),r=$r(r,Number.POSITIVE_INFINITY),i=$r(i,Number.NEGATIVE_INFINITY),{min:$r(t,r),max:$r(n,i),minDefined:rn(t),maxDefined:rn(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:$r(n,$r(r,n)),max:$r(r,$r(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||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){kt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.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=vae(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Kj(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=Kse(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(){kt(this.options.afterUpdate,[this])}beforeSetDimensions(){kt(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(){kt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),kt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){kt(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=kt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){kt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){kt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Zj(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),f=d.widest.width,p=d.highest.height,m=Rn(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/r:m/(r-1),f+6>s&&(s=m/(r-(t.offset?.5:1)),l=this.maxHeight-kd(t.grid)-n.padding-Qj(t.title,this.chart.options.font),c=Math.sqrt(f*f+p*p),a=iT(Math.min(Math.asin(Rn((d.highest.height+6)/s,-1,1)),Math.asin(Rn(l/c,-1,1))-Math.asin(Rn(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){kt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){kt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=Qj(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=kd(o)+l):(t.height=this.maxHeight,t.width=kd(o)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:p}=this._getLabelSizes(),m=r.padding*2,v=Ui(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(s){const _=r.mirror?0:x*f.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:y*f.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(c,d,x,y)}}this._handleMargins(),s?(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:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=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-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;o==="start"?(d=0,f=t.height):o==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_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(){kt(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++)dt(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=Kj(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/Zj(n,r));let c=0,d=0,f,p,m,v,y,x,_,w,S,E,O;for(f=0;f<n;f+=l){if(v=t[f].label,y=this._resolveTickFontOptions(f),i.font=x=y.string,_=o[x]=o[x]||{data:{},gc:[]},w=y.lineHeight,S=E=0,!dt(v)&&!At(v))S=qv(i,_.data,_.gc,S,v),E=w;else if(At(v))for(p=0,m=v.length;p<m;++p)O=v[p],!dt(O)&&!At(O)&&(S=qv(i,_.data,_.gc,S,O),E+=w);a.push(S),s.push(E),c=Math.max(S,c),d=Math.max(E,d)}ile(o,n);const k=a.indexOf(c),j=s.indexOf(d),R=U=>({width:a[U]||0,height:s[U]||0});return{first:R(0),last:R(n-1),widest:R(k),highest:R(j),widths:a,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 Yoe(this._alignToPixels?As(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=ale(this.getContext(),t,r))}return this.$context||(this.$context=ole(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Ui(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/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:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=kd(o),p=[],m=s.setContext(this.getContext()),v=m.display?m.width:0,y=v/2,x=function(K){return As(r,K,v)};let _,w,S,E,O,k,j,R,U,A,V,W;if(a==="top")_=x(this.bottom),k=this.bottom-f,R=_-y,A=x(t.top)+y,W=t.bottom;else if(a==="bottom")_=x(this.top),A=t.top,W=x(t.bottom)-y,k=_+y,R=this.top+f;else if(a==="left")_=x(this.right),O=this.right-f,j=_-y,U=x(t.left)+y,V=t.right;else if(a==="right")_=x(this.left),U=t.left,V=x(t.right)-y,O=_+y,j=this.left+f;else if(n==="x"){if(a==="center")_=x((t.top+t.bottom)/2+.5);else if(rt(a)){const K=Object.keys(a)[0],ne=a[K];_=x(this.chart.scales[K].getPixelForValue(ne))}A=t.top,W=t.bottom,k=_+y,R=k+f}else if(n==="y"){if(a==="center")_=x((t.left+t.right)/2);else if(rt(a)){const K=Object.keys(a)[0],ne=a[K];_=x(this.chart.scales[K].getPixelForValue(ne))}O=_-y,j=O-f,U=t.left,V=t.right}const X=Ze(i.ticks.maxTicksLimit,d),G=Math.max(1,Math.ceil(d/X));for(w=0;w<d;w+=G){const K=this.getContext(w),ne=o.setContext(K),le=s.setContext(K),Z=ne.lineWidth,F=ne.color,D=le.dash||[],H=le.dashOffset,re=ne.tickWidth,z=ne.tickColor,q=ne.tickBorderDash||[],ie=ne.tickBorderDashOffset;S=rle(this,w,l),S!==void 0&&(E=As(r,S,Z),c?O=j=U=V=E:k=R=A=W=E,p.push({tx1:O,ty1:k,tx2:j,ty2:R,x1:U,y1:A,x2:V,y2:W,width:Z,color:F,borderDash:D,borderDashOffset:H,tickWidth:re,tickColor:z,tickBorderDash:q,tickBorderDashOffset:ie}))}return this._ticksLength=d,this._borderValue=_,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:d,mirror:f}=o,p=kd(r.grid),m=p+d,v=f?-d:m,y=-Ui(this.labelRotation),x=[];let _,w,S,E,O,k,j,R,U,A,V,W,X="middle";if(i==="top")k=this.bottom-v,j=this._getXAxisLabelAlignment();else if(i==="bottom")k=this.top+v,j=this._getXAxisLabelAlignment();else if(i==="left"){const K=this._getYAxisLabelAlignment(p);j=K.textAlign,O=K.x}else if(i==="right"){const K=this._getYAxisLabelAlignment(p);j=K.textAlign,O=K.x}else if(n==="x"){if(i==="center")k=(t.top+t.bottom)/2+m;else if(rt(i)){const K=Object.keys(i)[0],ne=i[K];k=this.chart.scales[K].getPixelForValue(ne)+m}j=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")O=(t.left+t.right)/2-m;else if(rt(i)){const K=Object.keys(i)[0],ne=i[K];O=this.chart.scales[K].getPixelForValue(ne)}j=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?X="top":l==="end"&&(X="bottom"));const G=this._getLabelSizes();for(_=0,w=s.length;_<w;++_){S=s[_],E=S.label;const K=o.setContext(this.getContext(_));R=this.getPixelForTick(_)+o.labelOffset,U=this._resolveTickFontOptions(_),A=U.lineHeight,V=At(E)?E.length:1;const ne=V/2,le=K.color,Z=K.textStrokeColor,F=K.textStrokeWidth;let D=j;a?(O=R,j==="inner"&&(_===w-1?D=this.options.reverse?"left":"right":_===0?D=this.options.reverse?"right":"left":D="center"),i==="top"?c==="near"||y!==0?W=-V*A+A/2:c==="center"?W=-G.highest.height/2-ne*A+A:W=-G.highest.height+A/2:c==="near"||y!==0?W=A/2:c==="center"?W=G.highest.height/2-ne*A:W=G.highest.height-V*A,f&&(W*=-1),y!==0&&!K.showLabelBackdrop&&(O+=A/2*Math.sin(y))):(k=R,W=(1-V)*A/2);let H;if(K.showLabelBackdrop){const re=ur(K.backdropPadding),z=G.heights[_],q=G.widths[_];let ie=W-re.top,ae=0-re.left;switch(X){case"middle":ie-=z/2;break;case"bottom":ie-=z;break}switch(j){case"center":ae-=q/2;break;case"right":ae-=q;break}H={left:ae,top:ie,width:q+re.width,height:z+re.height,color:K.backdropColor}}x.push({label:E,font:U,textOffset:W,options:{rotation:y,color:le,strokeColor:Z,strokeWidth:F,textAlign:D,textBaseline:X,translation:[O,k],backdrop:H}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Ui(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,d;return n==="left"?i?(d=this.right+o,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?i?(d=this.left+o,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_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:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.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,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({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:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,f,p;this.isHorizontal()?(c=As(t,this.left,a)-a/2,d=As(t,this.right,s)+s/2,f=p=l):(f=As(t,this.top,a)-a/2,p=As(t,this.bottom,s)+s/2,c=d=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,f),n.lineTo(d,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,r=this._computeLabelArea();r&&w0(n,r);const i=this.getLabelItems(t);for(const o of i){const a=o.options,s=o.font,l=o.label,c=o.textOffset;Cl(n,l,0,c,s,a)}r&&x0(n)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Sn(r.font),a=ur(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||rt(n)?(l+=a.bottom,At(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:d,maxWidth:f,rotation:p}=lle(this,l,n,s);Cl(t,r.text,0,0,o,{color:r.color,maxWidth:f,rotation:p,textAlign:sle(s,n,i),textBaseline:"middle",translation:[c,d]})}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=Ze(t.grid&&t.grid.z,-1),i=Ze(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ul.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Sn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Cm{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;dle(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,cle(t,a,r),this.override&&on.override(t.id,t.overrides)),a}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 on[i]&&(delete on[i][r],this.override&&delete Ol[r])}}function cle(e,t,n){const r=dh(Object.create(null),[n?on.get(n):{},on.get(t),e.defaults]);on.set(t,r),e.defaultRoutes&&ule(t,e.defaultRoutes),e.descriptors&&on.describe(t,e.descriptors)}function ule(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");on.route(o,i,l,s)})}function dle(e){return"id"in e&&"defaults"in e}class fle{constructor(){this.controllers=new Cm(Gi,"datasets",!0),this.elements=new Cm(va,"elements"),this.plugins=new Cm(Object,"plugins"),this.scales=new Cm(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,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=rT(t);kt(r["before"+i],[],r),n[t](r),kt(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 lo=new fle;class hle{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),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(kt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){dt(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=Ze(r.options&&r.options.plugins,{}),o=ple(r);return i===!1&&!n?[]:gle(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function ple(e){const t={},n=[],r=Object.keys(lo.plugins.items);for(let o=0;o<r.length;o++)n.push(lo.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function mle(e,t){return!t&&e===!1?null:e===!0?{}:e}function gle(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,c=mle(r[l],i);c!==null&&o.push({plugin:s,options:vle(e.config,{plugin:s,local:n[l]},c,a)})}return o}function vle(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Qx(e,t){const n=on.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function yle(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function _le(e,t){return e===t?"_index_":"_value_"}function Xj(e){if(e==="x"||e==="y"||e==="r")return e}function ble(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Xx(e,...t){if(Xj(e))return e;for(const n of t){const r=n.axis||ble(n.position)||e.length>1&&Xj(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Jj(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function wle(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Jj(e,"x",n[0])||Jj(e,"y",n[0])}return{}}function xle(e,t){const n=Ol[e.type]||{scales:{}},r=t.scales||{},i=Qx(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!rt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Xx(a,s,wle(a,e),on.scales[s.type]),c=_le(l,i),d=n.scales||{};o[a]=vf(Object.create(null),[{axis:l},s,d[l],d[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||Qx(s,t),c=(Ol[s]||{}).scales||{};Object.keys(c).forEach(d=>{const f=yle(d,l),p=a[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),vf(o[p],[{axis:f},r[p],c[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];vf(s,[on.scales[s.type],on.scale])}),o}function f5(e){const t=e.options||(e.options={});t.plugins=Ze(t.plugins,{}),t.scales=xle(e,t)}function h5(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Sle(e){return e=e||{},e.data=h5(e.data),f5(e),e}const eM=new Map,p5=new Set;function km(e,t){let n=eM.get(e);return n||(n=t(),eM.set(e,n),p5.add(n)),n}const Pd=(e,t,n)=>{const r=fs(t,n);r!==void 0&&e.add(r)};class Ele{constructor(t){this._config=Sle(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=h5(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(),f5(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return km(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return km(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return km(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return km(`${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,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(f=>Pd(l,t,f))),d.forEach(f=>Pd(l,i,f)),d.forEach(f=>Pd(l,Ol[o]||{},f)),d.forEach(f=>Pd(l,on,f)),d.forEach(f=>Pd(l,qx,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),p5.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ol[n]||{},on.datasets[n]||{},{type:n},on,qx]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=tM(this._resolverCache,t,i);let l=a;if(Ole(a,n)){o.$shared=!1,r=hs(r)?r():r;const c=this.createResolver(t,r,s);l=Eu(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=tM(this._resolverCache,t,r);return rt(n)?Eu(o,n,void 0,i):o}}function tM(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:cT(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const Tle=e=>rt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||hs(e[n]),!1);function Ole(e,t){const{isScriptable:n,isIndexable:r}=Y6(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(hs(s)||Tle(s))||a&&At(s))return!0}return!1}var Cle="4.4.0";const kle=["top","bottom","left","right","chartArea"];function nM(e,t){return e==="top"||e==="bottom"||kle.indexOf(e)===-1&&t==="x"}function rM(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function iM(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),kt(n&&n.onComplete,[e],t)}function Ple(e){const t=e.chart,n=t.options.animation;kt(n&&n.onProgress,[e],t)}function m5(e){return X6()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const yg={},oM=e=>{const t=m5(e);return Object.values(yg).filter(n=>n.canvas===t).pop()};function Lle(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function jle(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Pm(e,t,n){return e.options.clip?e[n]:t[n]}function Mle(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Pm(n,t,"left"),right:Pm(n,t,"right"),top:Pm(r,t,"top"),bottom:Pm(r,t,"bottom")}:t}var Ta;let E0=(Ta=class{static register(...e){lo.add(...e),aM()}static unregister(...e){lo.remove(...e),aM()}constructor(e,t){const n=this.config=new Ele(t),r=m5(e),i=oM(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Zse(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,o.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;if(this.id=Aoe(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=o,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 hle,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Koe(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],yg[this.id]=this,!a||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Ro.listen(this,"complete",iM),Ro.listen(this,"progress",Ple),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return dt(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return lo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Cj(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ej(this.canvas,this.ctx),this}stop(){return Ro.stop(this),this}resize(e,t){Ro.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,t,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Cj(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),kt(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};bt(e,(t,n)=>{t.id=n})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((o,a)=>(o[a]=!1,o),{});let i=[];t&&(i=i.concat(Object.keys(t).map(o=>{const a=t[o],s=Xx(o,a),l=s==="r",c=s==="x";return{options:a,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),bt(i,o=>{const a=o.options,s=a.id,l=Xx(s,a),c=Ze(a.type,o.dtype);(a.position===void 0||nM(a.position,l)!==nM(o.dposition))&&(a.position=o.dposition),r[s]=!0;let d=null;if(s in n&&n[s].type===c)d=n[s];else{const f=lo.getScale(c);d=new f({id:s,type:c,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(a,e)}),bt(r,(o,a)=>{o||delete n[a]}),bt(n,o=>{sr.configure(this,o,o.options),sr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((r,i)=>r.index-i.index),n>t){for(let r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(rM("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((n,r)=>{t.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const i=t[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||Qx(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const s=lo.getController(a),{datasetElementType:l,dataElementType:c}=on.datasets[a];Object.assign(s,{dataElementType:lo.getElement(c),datasetElementType:l&&lo.getElement(l)}),o.controller=new s(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){bt(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:d}=this.getDatasetMeta(l),f=!r&&i.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||bt(i,l=>{l.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(rM("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){bt(this.scales,e=>{sr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!mj(t,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of t){const o=n==="_removeElements"?-i:i;Lle(e,r,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=i=>new Set(e.filter(o=>o[0]===i).map((o,a)=>a+","+o.splice(1).join(","))),r=n(0);for(let i=1;i<t;i++)if(!mj(r,n(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;sr.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],bt(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,hs(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ro.has(this)?this.attached&&!Ro.running(this)&&Ro.start(this):(this.draw(),iM({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:r}=this._resizeBeforeDraw;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,i;for(r=0,i=t.length;r<i;++r){const o=t[r];(!e||o.visible)&&n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,i=Mle(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&w0(t,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&x0(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return Yo(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const i=kse.modes[t];return typeof i=="function"?i(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter(i=>i&&i._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Es(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!t.hidden}setDatasetVisibility(e,t){const n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);fh(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Ro.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Ej(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete yg[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(i,o)=>{t.addEventListener(this,i,o),e[i]=o},r=(i,o,a)=>{i.offsetX=o,i.offsetY=a,this._eventHandler(i)};bt(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(s,l)=>{t.addEventListener(this,s,l),e[s]=l},r=(s,l)=>{e[s]&&(t.removeEventListener(this,s,l),delete e[s])},i=(s,l)=>{this.canvas&&this.resize(s,l)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){bt(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},bt(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,o,a,s;for(t==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){o=e[a];const l=o&&this.getDatasetMeta(o.datasetIndex).controller;l&&l[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map(({datasetIndex:r,index:i})=>{const o=this.getDatasetMeta(r);if(!o)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:o.data[i],index:i}});!Wv(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){const r=this.options.hover,i=(s,l)=>s.filter(c=>!l.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:i}=this,o=t,a=this._getActiveElements(e,r,n,o),s=Uoe(e),l=jle(e,this._lastEvent,n,s);n&&(this._lastEvent=null,kt(i.onHover,[e,a,this],this),s&&kt(i.onClick,[e,a,this],this));const c=!Wv(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if(e.type==="mouseout")return[];if(!n)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}},Te(Ta,"defaults",on),Te(Ta,"instances",yg),Te(Ta,"overrides",Ol),Te(Ta,"registry",lo),Te(Ta,"version",Cle),Te(Ta,"getChart",oM),Ta);function aM(){return bt(E0.instances,e=>e._plugins.invalidate())}function Nle(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(o,a,s,r-c,n+c),l>i?(c=i/l,e.arc(o,a,l,n+c,r-c,!0)):e.arc(o,a,i,n+fn,r-fn),e.closePath(),e.clip()}function Ale(e){return lT(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Rle(e,t,n,r){const i=Ale(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const c=(n-Math.min(o,l))*r/2;return Rn(l,0,Math.min(o,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Rn(i.innerStart,0,a),innerEnd:Rn(i.innerEnd,0,a)}}function uc(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Qv(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-c,0),p=d>0?d+r+n+c:0;let m=0;const v=i-l;if(r){const K=d>0?d-r:0,ne=f>0?f-r:0,le=(K+ne)/2,Z=le!==0?v*le/(le+r):v;m=(v-Z)/2}const y=Math.max(.001,v*f-n/$t)/f,x=(v-y)/2,_=l+x+m,w=i-x-m,{outerStart:S,outerEnd:E,innerStart:O,innerEnd:k}=Rle(t,p,f,w-_),j=f-S,R=f-E,U=_+S/j,A=w-E/R,V=p+O,W=p+k,X=_+O/V,G=w-k/W;if(e.beginPath(),o){const K=(U+A)/2;if(e.arc(a,s,f,U,K),e.arc(a,s,f,K,A),E>0){const F=uc(R,A,a,s);e.arc(F.x,F.y,E,A,w+fn)}const ne=uc(W,w,a,s);if(e.lineTo(ne.x,ne.y),k>0){const F=uc(W,G,a,s);e.arc(F.x,F.y,k,w+fn,G+Math.PI)}const le=(w-k/p+(_+O/p))/2;if(e.arc(a,s,p,w-k/p,le,!0),e.arc(a,s,p,le,_+O/p,!0),O>0){const F=uc(V,X,a,s);e.arc(F.x,F.y,O,X+Math.PI,_-fn)}const Z=uc(j,_,a,s);if(e.lineTo(Z.x,Z.y),S>0){const F=uc(j,U,a,s);e.arc(F.x,F.y,S,_-fn,U)}}else{e.moveTo(a,s);const K=Math.cos(U)*f+a,ne=Math.sin(U)*f+s;e.lineTo(K,ne);const le=Math.cos(A)*f+a,Z=Math.sin(A)*f+s;e.lineTo(le,Z)}e.closePath()}function Dle(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){Qv(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(s)||(l=a+(s%It||It))}return Qv(e,t,n,r,l,i),e.fill(),l}function Ile(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:f,borderDashOffset:p}=l,m=l.borderAlign==="inner";if(!c)return;e.setLineDash(f||[]),e.lineDashOffset=p,m?(e.lineWidth=c*2,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let v=t.endAngle;if(o){Qv(e,t,n,r,v,i);for(let y=0;y<o;++y)e.stroke();isNaN(s)||(v=a+(s%It||It))}m&&Nle(e,t,v),o||(Qv(e,t,n,r,v,i),e.stroke())}class Gd extends va{constructor(t){super(),Te(this,"circumference"),Te(this,"endAngle"),Te(this,"fullCircles"),Te(this,"innerRadius"),Te(this,"outerRadius"),Te(this,"pixelMargin"),Te(this,"startAngle"),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:a}=D6(i,{x:t,y:n}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=(this.options.spacing+this.options.borderWidth)/2,m=Ze(f,l-s)>=It||hh(o,s,l),v=Ho(a,c+p,d+p);return m&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,d=(i+o)/2,f=(a+s+c+l)/2;return{x:n+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>It?Math.floor(r/It):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min($t,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,Dle(t,this,c,o,a),Ile(t,this,c,o,a),t.restore()}}Te(Gd,"id","arc"),Te(Gd,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Te(Gd,"defaultRoutes",{backgroundColor:"backgroundColor"}),Te(Gd,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function g5(e,t,n=t){e.lineCap=Ze(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ze(n.borderDash,t.borderDash)),e.lineDashOffset=Ze(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ze(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ze(n.borderWidth,t.borderWidth),e.strokeStyle=Ze(n.borderColor,t.borderColor)}function Fle(e,t,n){e.lineTo(n.x,n.y)}function $le(e){return e.stepped?lae:e.tension||e.cubicInterpolationMode==="monotone"?cae:Fle}function v5(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),d=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!d?r+c-l:c-l}}function Ule(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=v5(i,n,r),d=$le(o);let{move:f=!0,reverse:p}=r||{},m,v,y;for(m=0;m<=c;++m)v=i[(s+(p?c-m:m))%a],!v.skip&&(f?(e.moveTo(v.x,v.y),f=!1):d(e,y,v,p,o.stepped),y=v);return l&&(v=i[(s+(p?c:0))%a],d(e,y,v,p,o.stepped)),!!l}function Ble(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=v5(i,n,r),{move:l=!0,reverse:c}=r||{};let d=0,f=0,p,m,v,y,x,_;const w=E=>(a+(c?s-E:E))%o,S=()=>{y!==x&&(e.lineTo(d,x),e.lineTo(d,y),e.lineTo(d,_))};for(l&&(m=i[w(0)],e.moveTo(m.x,m.y)),p=0;p<=s;++p){if(m=i[w(p)],m.skip)continue;const E=m.x,O=m.y,k=E|0;k===v?(O<y?y=O:O>x&&(x=O),d=(f*d+E)/++f):(S(),e.lineTo(E,O),v=k,f=0,y=x=O),_=O}S()}function Jx(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Ble:Ule}function zle(e){return e.stepped?Bae:e.tension||e.cubicInterpolationMode==="monotone"?zae:Gs}function Vle(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),g5(e,t.options),e.stroke(i)}function Hle(e,t,n,r){const{segments:i,options:o}=t,a=Jx(t);for(const s of i)g5(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Wle=typeof Path2D=="function";function Yle(e,t,n,r){Wle&&!t.options.segment?Vle(e,t,n,r):Hle(e,t,n,r)}class Ha extends va{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;Nae(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=qae(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,a=r5(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=zle(r);let c,d;for(c=0,d=a.length;c<d;++c){const{start:f,end:p}=a[c],m=o[f],v=o[p];if(m===v){s.push(m);continue}const y=Math.abs((i-m[n])/(v[n]-m[n])),x=l(m,v,y,r.stepped);x[n]=t[n],s.push(x)}return s.length===1?s[0]:s}pathSegment(t,n,r){return Jx(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=Jx(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Yle(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Te(Ha,"id","line"),Te(Ha,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Te(Ha,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Te(Ha,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function sM(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class _g extends va{constructor(t){super(),Te(this,"parsed"),Te(this,"skip"),Te(this,"stop"),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:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return sM(this,t,"x",n)}inYRange(t,n){return sM(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||!Yo(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Zx(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}Te(_g,"id","point"),Te(_g,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Te(_g,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function y5(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,d,f;return e.horizontal?(f=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-f,d=r+f):(f=o/2,s=n-f,l=n+f,c=Math.min(r,i),d=Math.max(r,i)),{left:s,top:c,right:l,bottom:d}}function Wa(e,t,n,r){return e?0:Rn(t,n,r)}function Gle(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=W6(r);return{t:Wa(i.top,o.top,0,n),r:Wa(i.right,o.right,0,t),b:Wa(i.bottom,o.bottom,0,n),l:Wa(i.left,o.left,0,t)}}function qle(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=fl(i),a=Math.min(t,n),s=e.borderSkipped,l=r||rt(i);return{topLeft:Wa(!l||s.top||s.left,o.topLeft,0,a),topRight:Wa(!l||s.top||s.right,o.topRight,0,a),bottomLeft:Wa(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Wa(!l||s.bottom||s.right,o.bottomRight,0,a)}}function Zle(e){const t=y5(e),n=t.right-t.left,r=t.bottom-t.top,i=Gle(e,n/2,r/2),o=qle(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 T1(e,t,n,r){const i=t===null,o=n===null,a=e&&!(i&&o)&&y5(e,r);return a&&(i||Ho(t,a.left,a.right))&&(o||Ho(n,a.top,a.bottom))}function Kle(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Qle(e,t){e.rect(t.x,t.y,t.w,t.h)}function O1(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,a=(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+a,radius:e.radius}}class bg extends va{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:a}=Zle(this),s=Kle(a.radius)?ph:Qle;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),s(t,O1(a,n,o)),t.clip(),s(t,O1(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,O1(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return T1(this,t,n,r)}inXRange(t,n){return T1(this,t,null,n)}inYRange(t,n){return T1(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}}Te(bg,"id","bar"),Te(bg,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Te(bg,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Xle=Object.freeze({__proto__:null,ArcElement:Gd,BarElement:bg,LineElement:Ha,PointElement:_g});const e2=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],lM=e2.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function _5(e){return e2[e%e2.length]}function b5(e){return lM[e%lM.length]}function Jle(e,t){return e.borderColor=_5(t),e.backgroundColor=b5(t),++t}function ece(e,t){return e.backgroundColor=e.data.map(()=>_5(t++)),t}function tce(e,t){return e.backgroundColor=e.data.map(()=>b5(t++)),t}function nce(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Va?t=ece(n,t):i instanceof Sf?t=tce(n,t):i&&(t=Jle(n,t))}}function cM(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function rce(e){return e&&(e.borderColor||e.backgroundColor)}var ice={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(cM(r)||rce(i)||o&&cM(o)))return;const a=nce(e);r.forEach(a)}};function oce(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let l=0;const c=t+n-1;let d=t,f,p,m,v,y;for(a[l++]=e[d],f=0;f<o-2;f++){let x=0,_=0,w;const S=Math.floor((f+1)*s)+1+t,E=Math.min(Math.floor((f+2)*s)+1,n)+t,O=E-S;for(w=S;w<E;w++)x+=e[w].x,_+=e[w].y;x/=O,_/=O;const k=Math.floor(f*s)+1+t,j=Math.min(Math.floor((f+1)*s)+1,n)+t,{x:R,y:U}=e[d];for(m=v=-1,w=k;w<j;w++)v=.5*Math.abs((R-x)*(e[w].y-U)-(R-e[w].x)*(_-U)),v>m&&(m=v,p=e[w],y=w);a[l++]=p,d=y}return a[l++]=e[c],a}function ace(e,t,n,r){let i=0,o=0,a,s,l,c,d,f,p,m,v,y;const x=[],_=t+n-1,w=e[t].x,S=e[_].x-w;for(a=t;a<t+n;++a){s=e[a],l=(s.x-w)/S*r,c=s.y;const E=l|0;if(E===d)c<v?(v=c,f=a):c>y&&(y=c,p=a),i=(o*i+s.x)/++o;else{const O=a-1;if(!dt(f)&&!dt(p)){const k=Math.min(f,p),j=Math.max(f,p);k!==m&&k!==O&&x.push({...e[k],x:i}),j!==m&&j!==O&&x.push({...e[j],x:i})}a>0&&O!==m&&x.push(e[O]),x.push(s),d=E,o=0,v=y=c,f=p=m=a}}return x}function w5(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function uM(e){e.data.datasets.forEach(t=>{w5(t)})}function sce(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=Rn(Wo(t,o.axis,a).lo,0,n-1)),c?i=Rn(Wo(t,o.axis,s).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var lce={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){uM(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:a,indexAxis:s}=i,l=e.getDatasetMeta(o),c=a||i.data;if(Wd([s,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const d=e.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:f,count:p}=sce(l,c);const m=n.threshold||4*r;if(p<=m){w5(i);return}dt(a)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let v;switch(n.algorithm){case"lttb":v=oce(c,f,p,r,n);break;case"min-max":v=ace(c,f,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(e){uM(e)}};function cce(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:l,end:c}=s;c=pT(l,c,i);const d=t2(n,i[l],i[c],s.loop);if(!t.segments){a.push({source:s,target:d,start:i[l],end:i[c]});continue}const f=r5(t,d);for(const p of f){const m=t2(n,o[p.start],o[p.end],p.loop),v=n5(s,i,m);for(const y of v)a.push({source:y,target:p,start:{[n]:dM(d,m,"start",Math.max)},end:{[n]:dM(d,m,"end",Math.min)}})}}return a}function t2(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Br(i),o=Br(o)),{property:e,start:i,end:o}}function uce(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=pT(a,s,i);const l=i[a],c=i[s];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 pT(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function dM(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function x5(e,t){let n=[],r=!1;return At(e)?(r=!0,n=e):n=uce(e,t),n.length?new Ha({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function fM(e){return e&&e.fill!==!1}function dce(e,t,n){let r=e[t].fill;const i=[t];let o;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!rn(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function fce(e,t,n){const r=gce(e);if(rt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return rn(i)&&Math.floor(i)===i?hce(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function hce(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function pce(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:rt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function mce(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:rt(e)?r=e.value:r=t.getBaseValue(),r}function gce(e){const t=e.options,n=t.fill;let r=Ze(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function vce(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=yce(t,n);s.push(x5({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const c=o[l];for(let d=c.start;d<=c.end;d++)_ce(i,a[d],s)}return new Ha({points:i,options:{}})}function yce(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 _ce(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=bce(o,t,"x");if(!(!l||a&&s)){if(a)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function bce(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let s=!1,l=!1;for(let c=0;c<o.length;c++){const d=o[c],f=a[d.start][n],p=a[d.end][n];if(Ho(i,f,p)){s=i===f,l=i===p;break}}return{first:s,last:l,point:r}}class S5{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:It},t.arc(i,o,a,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 wce(e){const{chart:t,fill:n,line:r}=e;if(rn(n))return xce(t,n);if(n==="stack")return vce(e);if(n==="shape")return!0;const i=Sce(e);return i instanceof S5?i:x5(i,r)}function xce(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Sce(e){return(e.scale||{}).getPointPositionForValue?Tce(e):Ece(e)}function Ece(e){const{scale:t={},fill:n}=e,r=pce(n,t);if(rn(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function Tce(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=mce(n,t,o),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new S5({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,a));return s}function C1(e,t,n){const r=wce(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:f=c}=l||{};r&&i.points.length&&(w0(e,n),Oce(e,{line:i,target:r,above:d,below:f,area:n,scale:o,axis:a}),x0(e))}function Oce(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(hM(e,r,a.top),pM(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),hM(e,r,a.bottom)),pM(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}function hM(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of r){const{start:l,end:c}=s,d=i[l],f=i[pT(l,c,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function pM(e,t){const{line:n,target:r,property:i,color:o,scale:a}=t,s=cce(n,r,i);for(const{source:l,target:c,start:d,end:f}of s){const{style:{backgroundColor:p=o}={}}=l,m=r!==!0;e.save(),e.fillStyle=p,Cce(e,a,m&&t2(i,d,f)),e.beginPath();const v=!!n.pathSegment(e,l);let y;if(m){v?e.closePath():mM(e,r,f,i);const x=!!r.pathSegment(e,c,{move:v,reverse:!0});y=v&&x,y||mM(e,r,d,i)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function Cce(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};o==="x"&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function mM(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var kce={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Ha&&(l={visible:e.isDatasetVisible(a),index:a,fill:fce(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=dce(i,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&C1(e.ctx,s,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;fM(o)&&C1(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!fM(r)||n.drawTime!=="beforeDatasetDraw"||C1(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const gM=(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)}},Pce=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class vM extends va{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=kt(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=Sn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=gM(r,o);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+s;let f=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-d;return this.legendItems.forEach((v,y)=>{const x=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+x+2*s>a)&&(f+=d,c[c.length-(y>0?0:1)]=0,m+=d,p++),l[y]={left:0,top:m,row:p,width:x,height:i},c[c.length-1]+=x+s}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=s,p=0,m=0,v=0,y=0;return this.legendItems.forEach((x,_)=>{const{itemWidth:w,itemHeight:S}=Lce(r,n,o,x,i);_>0&&m+S+2*s>d&&(f+=p+s,c.push({width:p,height:m}),v+=p+s,y++,p=m=0),l[_]={left:v,top:m,col:y,width:w,height:S},p=Math.max(p,w),m+=S+s}),f+=p,c.push({width:p,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=Xc(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ir(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=ir(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=ir(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=ir(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.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;w0(t,this),this._draw(),x0(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=on.color,l=Xc(t.rtl,this.left,this.width),c=Sn(a.font),{padding:d}=a,f=c.size,p=f/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=gM(a,f),_=function(k,j,R){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const U=Ze(R.lineWidth,1);if(i.fillStyle=Ze(R.fillStyle,s),i.lineCap=Ze(R.lineCap,"butt"),i.lineDashOffset=Ze(R.lineDashOffset,0),i.lineJoin=Ze(R.lineJoin,"miter"),i.lineWidth=U,i.strokeStyle=Ze(R.strokeStyle,s),i.setLineDash(Ze(R.lineDash,[])),a.usePointStyle){const A={radius:y*Math.SQRT2/2,pointStyle:R.pointStyle,rotation:R.rotation,borderWidth:U},V=l.xPlus(k,v/2),W=j+p;H6(i,A,V,W,a.pointStyleWidth&&v)}else{const A=j+Math.max((f-y)/2,0),V=l.leftForLtr(k,v),W=fl(R.borderRadius);i.beginPath(),Object.values(W).some(X=>X!==0)?ph(i,{x:V,y:A,w:v,h:y,radius:W}):i.rect(V,A,v,y),i.fill(),U!==0&&i.stroke()}i.restore()},w=function(k,j,R){Cl(i,R.text,k,j+x/2,c,{strikethrough:R.hidden,textAlign:l.textAlign(R.textAlign)})},S=this.isHorizontal(),E=this._computeTitleHeight();S?m={x:ir(o,this.left+d,this.right-r[0]),y:this.top+d+E,line:0}:m={x:this.left+d,y:ir(o,this.top+E+d,this.bottom-n[0].height),line:0},J6(this.ctx,t.textDirection);const O=x+d;this.legendItems.forEach((k,j)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const R=i.measureText(k.text).width,U=l.textAlign(k.textAlign||(k.textAlign=a.textAlign)),A=v+p+R;let V=m.x,W=m.y;l.setWidth(this.width),S?j>0&&V+A+d>this.right&&(W=m.y+=O,m.line++,V=m.x=ir(o,this.left+d,this.right-r[m.line])):j>0&&W+O>this.bottom&&(V=m.x=V+n[m.line].width+d,m.line++,W=m.y=ir(o,this.top+E+d,this.bottom-n[m.line].height));const X=l.x(V);if(_(X,W,k),V=Qoe(U,V+v+p,S?V+A:this.right,t.rtl),w(l.x(V),W,k),S)m.x+=A+d;else if(typeof k.text!="string"){const G=c.lineHeight;m.y+=E5(k,G)+d}else m.y+=O}),e5(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Sn(n.font),i=ur(n.padding);if(!n.display)return;const o=Xc(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let d,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),d=this.top+c,f=ir(t.align,f,this.right-p);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);d=c+ir(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const m=ir(s,f,f+p);a.textAlign=o.textAlign(aT(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Cl(a,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=Sn(t.font),r=ur(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Ho(t,this.left,this.right)&&Ho(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Ho(t,i.left,i.left+i.width)&&Ho(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!Nce(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=Pce(i,r);i&&!o&&kt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&kt(n.onHover,[t,r,this],this)}else r&&kt(n.onClick,[t,r,this],this)}}function Lce(e,t,n,r,i){const o=jce(r,e,t,n),a=Mce(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function jce(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function Mce(e,t,n){let r=e;return typeof t.text!="string"&&(r=E5(t,n)),r}function E5(e,t){const n=e.text?e.text.length:0;return t*n}function Nce(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Ace={id:"legend",_element:vM,start(e,t,n){const r=e.legend=new vM({ctx:e.ctx,options:n,chart:e});sr.configure(e,r,n),sr.addBox(e,r)},stop(e){sr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;sr.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,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=ur(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.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 mT extends va{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=At(r.text)?r.text.length:1;this._padding=ur(r.padding);const o=i*Sn(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:a}=this,s=a.align;let l=0,c,d,f;return this.isHorizontal()?(d=ir(s,r,o),f=n+t,c=o-r):(a.position==="left"?(d=r+t,f=ir(s,i,n),l=$t*-.5):(d=o-t,f=ir(s,n,i),l=$t*.5),c=i-n),{titleX:d,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Sn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:l}=this._drawArgs(i);Cl(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:l,textAlign:aT(n.align),textBaseline:"middle",translation:[o,a]})}}function Rce(e,t){const n=new mT({ctx:e.ctx,options:t,chart:e});sr.configure(e,n,t),sr.addBox(e,n),e.titleBlock=n}var Dce={id:"title",_element:mT,start(e,t,n){Rce(e,n)},stop(e){const t=e.titleBlock;sr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;sr.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 Lm=new WeakMap;var Ice={id:"subtitle",start(e,t,n){const r=new mT({ctx:e.ctx,options:n,chart:e});sr.configure(e,r,n),sr.addBox(e,r),Lm.set(e,r)},stop(e){sr.removeBox(e,Lm.get(e)),Lm.delete(e)},beforeUpdate(e,t,n){const r=Lm.get(e);sr.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 a=e[t].element;if(a&&a.hasValue()){const s=a.tooltipPosition();r+=s.x,i+=s.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,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=Gx(t,c);d<i&&(i=d,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function ao(e,t){return t&&(At(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Do(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
||
`)>-1?e.split(`
|
||
`):e}function Fce(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function yM(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Sn(t.bodyFont),c=Sn(t.titleFont),d=Sn(t.footerFont),f=o.length,p=i.length,m=r.length,v=ur(t.padding);let y=v.height,x=0,_=r.reduce((E,O)=>E+O.before.length+O.lines.length+O.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,f&&(y+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),_){const E=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=m*E+(_-m)*l.lineHeight+(_-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let w=0;const S=function(E){x=Math.max(x,n.measureText(E).width+w)};return n.save(),n.font=c.string,bt(e.title,S),n.font=l.string,bt(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?a+2+t.boxPadding:0,bt(r,E=>{bt(E.before,S),bt(E.lines,S),bt(E.after,S)}),w=0,n.font=d.string,bt(e.footer,S),n.restore(),x+=v.width,{width:x,height:y}}function $ce(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function Uce(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function Bce(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),Uce(c,e,t,n)&&(c="center"),c}function _M(e,t,n){const r=n.yAlign||t.yAlign||$ce(e,n);return{xAlign:n.xAlign||t.xAlign||Bce(e,t,n,r),yAlign:r}}function zce(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Vce(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function bM(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:m}=fl(a);let v=zce(t,s);const y=Vce(t,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,p)+i:s==="right"&&(v+=Math.max(f,m)+i),{x:Rn(v,0,r.width-t.width),y:Rn(y,0,r.height-t.height)}}function jm(e,t,n){const r=ur(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function wM(e){return ao([],Do(e))}function Hce(e,t,n){return Es(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function xM(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const T5={beforeTitle:Ao,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:Ao,beforeBody:Ao,beforeLabel:Ao,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 dt(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Ao,afterBody:Ao,beforeFooter:Ao,footer:Ao,afterFooter:Ao};function Tr(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?T5[t].call(n,r):i}class n2 extends va{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,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 i5(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Hce(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Tr(r,"beforeTitle",this,t),o=Tr(r,"title",this,t),a=Tr(r,"afterTitle",this,t);let s=[];return s=ao(s,Do(i)),s=ao(s,Do(o)),s=ao(s,Do(a)),s}getBeforeBody(t,n){return wM(Tr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return bt(t,o=>{const a={before:[],lines:[],after:[]},s=xM(r,o);ao(a.before,Do(Tr(s,"beforeLabel",this,o))),ao(a.lines,Tr(s,"label",this,o)),ao(a.after,Do(Tr(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return wM(Tr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Tr(r,"beforeFooter",this,t),o=Tr(r,"footer",this,t),a=Tr(r,"afterFooter",this,t);let s=[];return s=ao(s,Do(i)),s=ao(s,Do(o)),s=ao(s,Do(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(Fce(this.chart,n[l]));return t.filter&&(s=s.filter((d,f,p)=>t.filter(d,f,p,r))),t.itemSort&&(s=s.sort((d,f)=>t.itemSort(d,f,r))),bt(s,d=>{const f=xM(t.callbacks,d);i.push(Tr(f,"labelColor",this,d)),o.push(Tr(f,"labelPointStyle",this,d)),a.push(Tr(f,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=Ef[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=yM(this,r),c=Object.assign({},s,l),d=_M(this.chart,r,c),f=bM(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,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:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:f}=fl(s),{x:p,y:m}=t,{width:v,height:y}=n;let x,_,w,S,E,O;return o==="center"?(E=m+y/2,i==="left"?(x=p,_=x-a,S=E+a,O=E-a):(x=p+v,_=x+a,S=E-a,O=E+a),w=x):(i==="left"?_=p+Math.max(l,d)+a:i==="right"?_=p+v-Math.max(c,f)-a:_=this.caretX,o==="top"?(S=m,E=S-a,x=_-a,w=_+a):(S=m+y,E=S+a,x=_+a,w=_-a),O=S),{x1:x,x2:_,x3:w,y1:S,y2:E,y3:O}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=Xc(r.rtl,this.x,this.width);for(t.x=jm(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Sn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=o,d=Sn(o.bodyFont),f=jm(this,"left",o),p=i.x(f),m=l<d.lineHeight?(d.lineHeight-l)/2:0,v=n.y+m;if(o.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},x=i.leftForLtr(p,c)+c/2,_=v+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Zx(t,y,x,_),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Zx(t,y,x,_)}else{t.lineWidth=rt(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const y=i.leftForLtr(p,c),x=i.leftForLtr(i.xPlus(p,1),c-2),_=fl(a.borderRadius);Object.values(_).some(w=>w!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,ph(t,{x:y,y:v,w:c,h:l,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),ph(t,{x,y:v+1,w:c-2,h:l-2,radius:_}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,v,c,l),t.strokeRect(y,v,c,l),t.fillStyle=a.backgroundColor,t.fillRect(x,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:d}=r,f=Sn(r.bodyFont);let p=f.lineHeight,m=0;const v=Xc(r.rtl,this.x,this.width),y=function(R){n.fillText(R,v.x(t.x+m),t.y+p/2),t.y+=p+o},x=v.textAlign(a);let _,w,S,E,O,k,j;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=jm(this,x,r),n.fillStyle=r.bodyColor,bt(this.beforeBody,y),m=s&&x!=="right"?a==="center"?c/2+d:c+2+d:0,E=0,k=i.length;E<k;++E){for(_=i[E],w=this.labelTextColors[E],n.fillStyle=w,bt(_.before,y),S=_.lines,s&&S.length&&(this._drawColorBox(n,t,E,v,r),p=Math.max(f.lineHeight,l)),O=0,j=S.length;O<j;++O)y(S[O]),p=f.lineHeight;bt(_.after,y)}m=0,p=f.lineHeight,bt(this.afterBody,y),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=Xc(r.rtl,this.x,this.width);for(t.x=jm(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Sn(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:c,height:d}=r,{topLeft:f,topRight:p,bottomLeft:m,bottomRight:v}=fl(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+f,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+d-v),n.quadraticCurveTo(s+c,l+d,s+c-v,l+d),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+m,l+d),n.quadraticCurveTo(s,l+d,s,l+d-m),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+f),n.quadraticCurveTo(s,l,s+f,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 a=Ef[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=yM(this,t),l=Object.assign({},a,this._size),c=_M(n,t,l),d=bM(t,l,c,n);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_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 a=ur(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),J6(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),e5(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Wv(r,i),a=this._positionChanged(i,n);(o||a)&&(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||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Wv(a,o)||s;return l&&(this._active=a,(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 a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=Ef[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}Te(n2,"positioners",Ef);var Wce={id:"tooltip",_element:n2,positioners:Ef,afterInit(e,t,n){n&&(e.tooltip=new n2({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,cancelable:!0})===!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:T5},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"]},Yce=Object.freeze({__proto__:null,Colors:ice,Decimation:lce,Filler:kce,Legend:Ace,SubTitle:Ice,Title:Dce,Tooltip:Wce});const Gce=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function qce(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Gce(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const Zce=(e,t)=>e===null?null:Rn(Math.round(e),0,t);function O5(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class r2 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(dt(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:qce(r,t,Ze(n,t),this._addedLabels),Zce(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 a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return O5.call(this,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}}Te(r2,"id","category"),Te(r2,"defaults",{ticks:{callback:O5}});function Kce(e,t){const n=[],{bounds:r,step:i,min:o,max:a,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:f}=e,p=i||1,m=c-1,{min:v,max:y}=t,x=!dt(o),_=!dt(a),w=!dt(l),S=(y-v)/(d+1);let E=vj((y-v)/m/p)*p,O,k,j,R;if(E<1e-14&&!x&&!_)return[{value:v},{value:y}];R=Math.ceil(y/E)-Math.floor(v/E),R>m&&(E=vj(R*E/m/p)*p),dt(s)||(O=Math.pow(10,s),E=Math.ceil(E*O)/O),r==="ticks"?(k=Math.floor(v/E)*E,j=Math.ceil(y/E)*E):(k=v,j=y),x&&_&&i&&Hoe((a-o)/i,E/1e3)?(R=Math.round(Math.min((a-o)/E,c)),E=(a-o)/R,k=o,j=a):w?(k=x?o:k,j=_?a:j,R=l-1,E=(j-k)/R):(R=(j-k)/E,yf(R,Math.round(R),E/1e3)?R=Math.round(R):R=Math.ceil(R));const U=Math.max(yj(E),yj(k));O=Math.pow(10,dt(s)?U:s),k=Math.round(k*O)/O,j=Math.round(j*O)/O;let A=0;for(x&&(f&&k!==o?(n.push({value:o}),k<o&&A++,yf(Math.round((k+A*E)*O)/O,o,SM(o,S,e))&&A++):k<o&&A++);A<R;++A){const V=Math.round((k+A*E)*O)/O;if(_&&V>a)break;n.push({value:V})}return _&&f&&j!==a?n.length&&yf(n[n.length-1].value,a,SM(a,S,e))?n[n.length-1].value=a:n.push({value:a}):(!_||j===a)&&n.push({value:j}),n}function SM(e,t,{horizontal:n,minRotation:r}){const i=Ui(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Xv 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 dt(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 a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=wo(i),c=wo(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(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,a=Kce(i,o);return t.bounds==="ticks"&&R6(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}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 Jh(t,this.chart.options.locale,this.options.ticks.format)}}class i2 extends Xv{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rn(t)?t:0,this.max=rn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Ui(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}}Te(i2,"id","linear"),Te(i2,"defaults",{ticks:{callback:b0.formatters.numeric}});const gh=e=>Math.floor(za(e)),Ds=(e,t)=>Math.pow(10,gh(e)+t);function EM(e){return e/Math.pow(10,gh(e))===1}function TM(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function Qce(e,t){const n=t-e;let r=gh(n);for(;TM(e,t,r)>10;)r++;for(;TM(e,t,r)<10;)r--;return Math.min(r,gh(e))}function Xce(e,{min:t,max:n}){t=$r(e.min,t);const r=[],i=gh(t);let o=Qce(t,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*a)/a,d=Math.floor((t-l)/s/10)*s*10;let f=Math.floor((c-d)/Math.pow(10,o)),p=$r(e.min,Math.round((l+d+f*Math.pow(10,o))*a)/a);for(;p<n;)r.push({value:p,major:EM(p),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,a=o>=0?1:a),p=Math.round((l+d+f*Math.pow(10,o))*a)/a;const m=$r(e.max,p);return r.push({value:m,major:EM(m),significand:f}),r}class o2 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=Xv.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return rn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rn(t)?Math.max(0,t):null,this.max=rn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rn(this._userMin)&&(this.min=t===Ds(this.min,0)?Ds(this.min,-1):Ds(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=s=>r=t?r:s,a=s=>i=n?i:s;r===i&&(r<=0?(o(1),a(10)):(o(Ds(r,-1)),a(Ds(i,1)))),r<=0&&o(Ds(i,-1)),i<=0&&a(Ds(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=Xce(n,this);return t.bounds==="ticks"&&R6(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":Jh(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=za(t),this._valueRange=za(this.max)-za(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(za(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Te(o2,"id","logarithmic"),Te(o2,"defaults",{ticks:{callback:b0.formatters.logarithmic,major:{enabled:!0}}});function a2(e){const t=e.ticks;if(t.display&&e.display){const n=ur(t.backdropPadding);return Ze(t.font&&t.font.size,on.font.size)+n.height}return 0}function Jce(e,t,n){return n=At(n)?n:[n],{w:sae(e,t.string,n),h:n.length*t.lineHeight}}function OM(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 eue(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,a=e.options.pointLabels,s=a.centerPointLabels?$t/o:0;for(let l=0;l<o;l++){const c=a.setContext(e.getPointLabelContext(l));i[l]=c.padding;const d=e.getPointPosition(l,e.drawingArea+i[l],s),f=Sn(c.font),p=Jce(e.ctx,f,e._pointLabels[l]);r[l]=p;const m=Br(e.getIndexAngle(l)+s),v=Math.round(iT(m)),y=OM(v,d.x,p.w,0,180),x=OM(v,d.y,p.h,90,270);tue(n,t,m,y,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=iue(e,r,i)}function tue(e,t,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function nue(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:o,padding:a,size:s}=n,l=e.getPointPosition(t,r+i+a,o),c=Math.round(iT(Br(l.angle+fn))),d=sue(l.y,s.h,c),f=oue(c),p=aue(l.x,s.w,f);return{visible:!0,x:l.x,y:d,textAlign:f,left:p,top:d,right:p+s.w,bottom:d+s.h}}function rue(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:o}=e;return!(Yo({x:n,y:r},t)||Yo({x:n,y:o},t)||Yo({x:i,y:r},t)||Yo({x:i,y:o},t))}function iue(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:a2(o)/2,additionalAngle:a?$t/i:0};let c;for(let d=0;d<i;d++){l.padding=n[d],l.size=t[d];const f=nue(e,d,l);r.push(f),s==="auto"&&(f.visible=rue(f,c),f.visible&&(c=f))}return r}function oue(e){return e===0||e===180?"center":e<180?"left":"right"}function aue(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function sue(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function lue(e,t,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:s}=t;if(!dt(s)){const l=fl(t.borderRadius),c=ur(t.backdropPadding);e.fillStyle=s;const d=r-c.left,f=i-c.top,p=o-r+c.width,m=a-i+c.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),ph(e,{x:d,y:f,w:p,h:m,radius:l}),e.fill()):e.fillRect(d,f,p,m)}}function cue(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const a=r.setContext(e.getPointLabelContext(i));lue(n,a,o);const s=Sn(a.font),{x:l,y:c,textAlign:d}=o;Cl(n,e._pointLabels[i],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function C5(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,It);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let a=1;a<r;a++)o=e.getPointPosition(a,t),i.lineTo(o.x,o.y)}}function uue(e,t,n,r,i){const o=e.ctx,a=t.circular,{color:s,lineWidth:l}=t;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),C5(e,n,a,r),o.closePath(),o.stroke(),o.restore())}function due(e,t,n){return Es(e,{label:n,index:t,type:"pointLabel"})}class qd extends Xv{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=ur(a2(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=rn(t)&&!isNaN(t)?t:0,this.max=rn(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/a2(this.options))}generateTickLabels(t){Xv.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=kt(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?eue(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=It/(this._pointLabels.length||1),r=this.options.startAngle||0;return Br(t*n+Ui(r))}getDistanceFromCenterForValue(t){if(dt(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(dt(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 due(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-fn+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(),C5(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,border:o}=n,a=this._pointLabels.length;let s,l,c;if(n.pointLabels.display&&cue(this,a),i.display&&this.ticks.forEach((d,f)=>{if(f!==0){l=this.getDistanceFromCenterForValue(d.value);const p=this.getContext(f),m=i.setContext(p),v=o.setContext(p);uue(this,m,l,a,v)}}),r.display){for(t.save(),s=a-1;s>=0;s--){const d=r.setContext(this.getPointLabelContext(s)),{color:f,lineWidth:p}=d;!p||!f||(t.lineWidth=p,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.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,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),d=Sn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const f=ur(c.backdropPadding);t.fillRect(-a/2-f.left,-o-d.size/2-f.top,a+f.width,d.size+f.height)}Cl(t,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}Te(qd,"id","radialLinear"),Te(qd,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:b0.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),Te(qd,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Te(qd,"descriptors",{angleLines:{_fallback:"grid"}});const T0={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}},Cr=Object.keys(T0);function CM(e,t){return e-t}function kM(e,t){if(dt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),rn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Su(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function PM(e,t,n,r){const i=Cr.length;for(let o=Cr.indexOf(e);o<i-1;++o){const a=T0[Cr[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return Cr[o]}return Cr[i-1]}function fue(e,t,n,r,i){for(let o=Cr.length-1;o>=Cr.indexOf(n);o--){const a=Cr[o];if(T0[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return Cr[n?Cr.indexOf(n):0]}function hue(e){for(let t=Cr.indexOf(e)+1,n=Cr.length;t<n;++t)if(T0[Cr[t]].common)return Cr[t]}function LM(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=oT(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function pue(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function jM(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:pue(e,r,i,n)}class vh 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 Sse._date(t.adapters.date);i.init(n),vf(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:kM(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:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=rn(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=rn(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,a=this.max,s=qoe(i,o,a);return this._unit=n.unit||(r.autoSkip?PM(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):fue(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:hue(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),jM(this,s,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 a=t.length<3?.5:.25;n=Rn(n,0,a),r=Rn(r,0,a),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,a=o.unit||PM(o.minUnit,n,r,this._getLabelCapacity(n)),s=Ze(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Su(l)||l===!0,d={};let f=n,p,m;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(p=f,m=0;p<r;p=+t.add(p,s,a),m++)LM(d,p,v);return(p===r||i.bounds==="ticks"||m===1)&&LM(d,p,v),Object.keys(d).sort(CM).map(y=>+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return kt(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&s[l],f=c&&s[c],p=r[n],m=c&&f&&p&&p.major;return this._adapter.format(t,i||(m?f:d))}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=Ui(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,jM(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s: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(kM(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return F6(t.sort(CM))}}Te(vh,"id","time"),Te(vh,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Mm(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Wo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Wo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class s2 extends vh{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=Mm(n,this.min),this._tableRange=Mm(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,d;for(a=0,s=t.length;a<s;++a)c=t[a],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)d=i[a+1],l=i[a-1],c=i[a],Math.round((d+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-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(Mm(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Mm(this._table,r*this._tableRange+this._minPos,!0)}}Te(s2,"id","timeseries"),Te(s2,"defaults",vh.defaults);var mue=Object.freeze({__proto__:null,CategoryScale:r2,LinearScale:i2,LogarithmicScale:o2,RadialLinearScale:qd,TimeScale:vh,TimeSeriesScale:s2});const gue=[xse,Xle,Yce,mue];E0.register(...gue);var Ki,To=".",k5="function",P5="string",L5="__global__",gT="Provider",vue=0,vT=Array.prototype.slice,yue=function(e,t){var n=e[t];if(n===void 0&&Ki.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},O0=function(e){var t;return this.nested[e]||(t=Ki.pop(),this.nested[e]=t,this.factory(e,function(){return t.container})),this.nested[e]},j5=function(e){return e.split(To).reduce(yue,this)},_ue=function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var o=0,a=function(s){if(s)throw s;e[o]&&e[o++](n,a)};return a(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]},bue=function(e,t){var n,r;return typeof e===k5&&(t=e,e=L5),n=e.split(To),r=n.shift(),n.length?O0.call(this,r).middleware(n.join(To),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},wue=function(e,t){return t(e)},MM=function(e,t){return(e[t]||[]).concat(e.__global__||[])},xue=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+gT,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var s=new t;return delete i[n],i[n]=s,s}},r[e]={configurable:!0,enumerable:!0,get:function(){var s=i[n],l;return s&&(l=MM(o,e).reduce(wue,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:_ue(MM(a,e),e,l,i)}},Object.defineProperties(i,r),this},M5=function(e,t){var n,r;return n=e.split(To),this.providerMap[e]&&n.length===1&&!this.container[e+gT]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(O0.call(this,r).provider(n.join(To),t),this):xue.call(this,r,t))},yT=function(e,t){return M5.call(this,e,function(){this.$get=t})},N5=function(e,t,n){var r=arguments.length>3?vT.call(arguments,3):[],i=this;return yT.call(this,e,function(){var o=t,a=r.map(j5,i.container);return n?new(t.bind.apply(t,[null].concat(a))):o.apply(null,a)})},Sue=function(e,t){return N5.apply(this,[e,t,!0].concat(vT.call(arguments,2)))},Eue=function(e,t){return N5.apply(this,[e,t,!1].concat(vT.call(arguments,2)))},A5=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},R5=function(e,t){var n=e[t];return n||(n={},A5.call(e,t,n)),n},Tue=function(e,t){var n;return n=e.split(To),e=n.pop(),A5.call(n.reduce(R5,this.container),e,t),this},Oue=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},Cue=function(e,t){var n=e.split(To);return e=n.pop(),Oue.call(n.reduce(R5,this.container),e,t),this},D5=function(e,t){var n,r;return typeof e===k5&&(t=e,e=L5),n=e.split(To),r=n.shift(),n.length?O0.call(this,r).decorator(n.join(To),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},kue=function(e){return this.deferred.push(e),this},Pue=function(e){return(e||[]).map(j5,this.container)},Lue=function(e,t){return yT.call(this,e,function(n){return{instance:t.bind(t,n)}})},jue=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},_T=function(e){return Object.keys(e||this.container||{}).filter(jue)},Jv={},Mue=function(e){var t;return typeof e===P5?(t=Jv[e],t||(Jv[e]=t=new Ki,t.constant("BOTTLE_NAME",e)),t):new Ki},Nue=function(e){typeof e===P5?delete Jv[e]:Jv={}},I5=function(e){var t=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},NM=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+gT]},Aue=function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(r){if(!(n&&e.indexOf(r)===-1)){var i=r.split(To);i.length>1&&i.forEach(NM,O0.call(this,i[0])),NM.call(this,r),this.provider(r,t[r])}},this)},Rue=function(e){return this.deferred.forEach(function(t){t(e)}),this};Ki=function e(t){if(!(this instanceof e))return e.pop(t);this.id=vue++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:D5.bind(this),$register:I5.bind(this),$list:_T.bind(this)}};Ki.prototype={constant:Cue,decorator:D5,defer:kue,digest:Pue,factory:yT,instanceFactory:Lue,list:_T,middleware:bue,provider:M5,resetProviders:Aue,register:I5,resolve:Rue,service:Sue,serviceFactory:Eue,value:Tue};Ki.pop=Mue;Ki.clear=Nue;Ki.list=_T;Ki.config={strict:!1};const Due=Ki;var Iue=function(){return!0};const F5=Iue;function Mt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Vt(e){return function t(n){return arguments.length===0||Mt(n)?t:e.apply(this,arguments)}}function Et(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Mt(n)?t:Vt(function(i){return e(n,i)});default:return Mt(n)&&Mt(r)?t:Mt(n)?Vt(function(i){return e(i,r)}):Mt(r)?Vt(function(i){return e(n,i)}):e(n,r)}}}function tp(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,a){return t.apply(this,arguments)};case 6:return function(n,r,i,o,a,s){return t.apply(this,arguments)};case 7:return function(n,r,i,o,a,s,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,a,s,l,c,d){return t.apply(this,arguments)};case 10:return function(n,r,i,o,a,s,l,c,d,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function C0(e,t,n){return function(){for(var r=[],i=0,o=e,a=0;a<t.length||i<arguments.length;){var s;a<t.length&&(!Mt(t[a])||i>=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,Mt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):tp(o,C0(e,r,n))}}var Fue=Et(function(e,t){return e===1?Vt(t):tp(e,C0(e,[],t))});const $5=Fue;function Bl(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Mt(n)?t:Et(function(o,a){return e(n,o,a)});case 2:return Mt(n)&&Mt(r)?t:Mt(n)?Et(function(o,a){return e(o,r,a)}):Mt(r)?Et(function(o,a){return e(n,o,a)}):Vt(function(o){return e(n,r,o)});default:return Mt(n)&&Mt(r)&&Mt(i)?t:Mt(n)&&Mt(r)?Et(function(o,a){return e(o,a,i)}):Mt(n)&&Mt(i)?Et(function(o,a){return e(o,r,a)}):Mt(r)&&Mt(i)?Et(function(o,a){return e(n,o,a)}):Mt(n)?Vt(function(o){return e(o,r,i)}):Mt(r)?Vt(function(o){return e(n,o,i)}):Mt(i)?Vt(function(o){return e(n,r,o)}):e(n,r,i)}}}const np=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function $ue(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function bT(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!np(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if($ue(i)){var a=t.apply(null,r);return a(i)}}return n.apply(this,arguments)}}const yh={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var Uue=Et(function(e,t){return t>e?t:e});const U5=Uue;function wg(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function k0(e){return Object.prototype.toString.call(e)==="[object String]"}var Bue=Vt(function(e){return np(e)?!0:!e||typeof e!="object"||k0(e)?!1:e.nodeType===1?!!e.length:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1});const B5=Bue;var zue=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 Vue(e){return new zue(e)}var Hue=Et(function(e,t){return tp(e.length,function(){return e.apply(t,arguments)})});const Wue=Hue;function Yue(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 AM(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 RM(e,t,n,r){return e["@@transducer/result"](n[r](Wue(e["@@transducer/step"],e),t))}var DM=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function P0(e,t,n){if(typeof e=="function"&&(e=Vue(e)),B5(n))return Yue(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return RM(e,t,n,"fantasy-land/reduce");if(n[DM]!=null)return AM(e,t,n[DM]());if(typeof n.next=="function")return AM(e,t,n);if(typeof n.reduce=="function")return RM(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var Gue=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=yh.init,e.prototype["@@transducer/result"]=yh.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),que=Et(function(e,t){return new Gue(e,t)});const Zue=que;function hi(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var IM=Object.prototype.toString,Kue=function(){return IM.call(arguments)==="[object Arguments]"?function(e){return IM.call(e)==="[object Arguments]"}:function(e){return hi("callee",e)}}();const z5=Kue;var Que=!{toString:null}.propertyIsEnumerable("toString"),FM=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$M=function(){return arguments.propertyIsEnumerable("length")}(),Xue=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},Jue=Vt(typeof Object.keys=="function"&&!$M?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var t,n,r=[],i=$M&&z5(e);for(t in e)hi(t,e)&&(!i||t!=="length")&&(r[r.length]=t);if(Que)for(n=FM.length-1;n>=0;)t=FM[n],hi(t,e)&&!Xue(r,t)&&(r[r.length]=t),n-=1;return r});const oa=Jue;var ede=Et(bT(["fantasy-land/map","map"],Zue,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return $5(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return P0(function(n,r){return n[r]=e(t[r]),n},{},oa(t));default:return wg(e,t)}}));const V5=ede,l2=Number.isInteger||function(e){return e<<0===e};var tde=Et(function(e,t){var n=e<0?t.length+e:e;return k0(t)?t.charAt(n):t[n]});const H5=tde;var nde=Et(function(e,t){return e.map(function(n){for(var r=t,i=0,o;i<n.length;){if(r==null)return;o=n[i],r=l2(o)?H5(o,r):r[o],i+=1}return r})});const rde=nde;var ide=Et(function(e,t){return rde([e],t)[0]});const ode=ide;var ade=Et(function(e,t){return ode([e],t)});const mt=ade;var sde=Bl(P0);const W5=sde;var lde=Vt(function(e){return function(){return e}});const k1=lde;var cde=Vt(function(e){for(var t=oa(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r});const Y5=cde;var ude=Bl(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r});const dde=ude;var fde=Vt(function(e){return e==null});const qu=fde;var hde=Bl(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var o=!qu(r)&&hi(i,r)?r[i]:l2(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(l2(i)&&np(r)){var a=[].concat(r);return a[i]=n,a}else return dde(i,n,r)});const dc=hde;function pde(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}function mde(e){return function t(n){for(var r,i,o,a=[],s=0,l=n.length;s<l;){if(B5(n[s]))for(r=e?t(n[s]):n[s],o=0,i=r.length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}function gde(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var vde=Vt(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const ey=vde;function G5(e,t,n,r){var i=function(o){for(var a=t.length,s=0;s<a;){if(e===t[s])return n[s];s+=1}t[s+1]=e,n[s+1]=o;for(var l in e)o[l]=r?G5(e[l],t,n,!0):e[l];return o};switch(ey(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return gde(e);default:return e}}function yde(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function wT(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return np(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var _de=Bl(wT("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));const q5=_de;var bde=Vt(wT("tail",q5(1,1/0)));const wde=bde;function Yr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return tp(arguments[0].length,W5(yde,arguments[0],wde(arguments)))}var xde=Vt(function(e){return k0(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const c2=xde;function Sde(e){return e}var Ede=Vt(Sde);const Tde=Ede;function UM(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function BM(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function Ode(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function Cde(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const P1=typeof Object.is=="function"?Object.is:Cde;function zM(e,t,n,r){var i=UM(e),o=UM(t);function a(s,l){return xT(s,l,n.slice(),r.slice())}return!BM(function(s,l){return!BM(a,l,s)},o,i)}function xT(e,t,n,r){if(P1(e,t))return!0;var i=ey(e);if(i!==ey(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"&&Ode(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&P1(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!P1(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:zM(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:zM(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 a=oa(e);if(a.length!==oa(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var c=a[o];if(!(hi(c,t)&&xT(t[c],e[c],s,l)))return!1;o-=1}return!0}var kde=Et(function(e,t){return xT(e,t,[],[])});const ST=kde;function Pde(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(ST(e[n],t))return n;n+=1}return-1}function Lde(e,t){return Pde(t,e,0)>=0}function L1(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 Ld=function(e){return(e<10?"0":"")+e},jde=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ld(e.getUTCMonth()+1)+"-"+Ld(e.getUTCDate())+"T"+Ld(e.getUTCHours())+":"+Ld(e.getUTCMinutes())+":"+Ld(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const Mde=jde;function Nde(e){return function(){return!e.apply(this,arguments)}}function Ade(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 ty(e){return Object.prototype.toString.call(e)==="[object Object]"}var Rde=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=yh.init,e.prototype["@@transducer/result"]=yh.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),Dde=Et(function(e,t){return new Rde(e,t)});const Ide=Dde;var Fde=Et(bT(["filter"],Ide,function(e,t){return ty(t)?P0(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},oa(t)):Ade(e,t)}));const Z5=Fde;var $de=Et(function(e,t){return Z5(Nde(e),t)});const ET=$de;function K5(e,t){var n=function(o){var a=t.concat([e]);return Lde(o,a)?"<Circular>":K5(o,a)},r=function(o,a){return wg(function(s){return L1(s)+": "+n(o[s])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+wg(n,e).join(", ")+"))";case"[object Array]":return"["+wg(n,e).concat(r(e,ET(function(o){return/^\d+$/.test(o)},oa(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):L1(Mde(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())+")":L1(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,oa(e)).join(", ")+"}"}}var Ude=Vt(function(e){return K5(e,[])});const Bde=Ude;var zde=Vt(function(e){var t=W5(U5,0,V5(function(n){return n[0].length},e));return tp(t,function(){for(var n=0;n<e.length;){if(e[n][0].apply(this,arguments))return e[n][1].apply(this,arguments);n+=1}})});const TT=zde;var Vde=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"]=yh.init,e.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(hi(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}(),Hde=C0(4,[],function(e,t,n,r){return new Vde(e,t,n,r)});const Wde=Hde;var Yde=C0(4,[],bT([],Wde,function(e,t,n,r){return P0(function(i,o){var a=n(o);return i[a]=e(hi(a,i)?i[a]:G5(t,[],[],!1),o),i},{},r)}));const Q5=Yde;var Gde=Q5(function(e,t){return e+1},0);const X5=Gde;var qde=H5(-1);const Zde=qde;var Kde=Vt(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():np(e)?[]:k0(e)?"":ty(e)?{}:z5(e)?function(){return arguments}():void 0});const Qde=Kde;var Xde=Vt(mde(!0));const Jde=Xde;var efe=Vt(function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t});const Nm=efe;var tfe=Et(wT("groupBy",Q5(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));const nfe=tfe;var rfe=Et(function(e,t){return $5(e+1,function(){var n=arguments[e];if(n!=null&&pde(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Bde(n)+' does not have a method named "'+t+'"')})});const ife=rfe;var ofe=Vt(function(e){return e!=null&&ST(e,Qde(e))});const Qi=ofe;function VM(e){return Object.prototype.toString.call(e)==="[object Number]"}var afe=Bl(function(e,t,n){var r={},i;for(i in t)hi(i,t)&&(r[i]=hi(i,n)?e(i,t[i],n[i]):t[i]);for(i in n)hi(i,n)&&!hi(i,r)&&(r[i]=n[i]);return r});const sfe=afe;var lfe=Bl(function e(t,n,r){return sfe(function(i,o,a){return ty(o)&&ty(a)?e(t,o,a):t(i,o,a)},n,r)});const cfe=lfe;var ufe=Et(function(e,t){return cfe(function(n,r,i){return i},e,t)});const dfe=ufe;var ffe=Et(function(e,t){return t<e?t:e});const J5=ffe;var hfe=Et(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n});const e8=hfe;var pfe=Bl(function(e,t,n){return ST(t,n[e])});const mfe=pfe;var gfe=Et(function(e,t){if(!(VM(e)&&VM(t)))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n});const OT=gfe;var vfe=Et(function(e,t){return Array.prototype.slice.call(t,0).sort(function(n,r){var i=e(n),o=e(r);return i<o?-1:i>o?1:0})});const yfe=vfe;var _fe=Et(function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(q5(r,r+=e,t));return n});const _h=_fe;var bfe=ife(0,"toLowerCase");const wfe=bfe;var xfe=Vt(function(e){var t=[];for(var n in e)hi(n,e)&&(t[t.length]=[n,e[n]]);return t});const HM=xfe;var Sfe=Et(function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i});const t8=Sfe,Efe=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=On(),{domains:s}=n,l=!t,c=I.useCallback(()=>{r(""),a()},[r,a]),d=I.useCallback(()=>{r(""),o()},[r,o]);return I.useEffect(()=>{e()},[e]),i?g.jsxs(m0,{children:[g.jsx(El,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),g.jsx(yt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:c,children:g.jsx(Ne,{icon:qY})}),g.jsx(Ir,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(ga,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:f,isDefault:p})=>g.jsxs(Ue,{active:(t===f||p)&&l,onClick:()=>r(f),children:[f,p&&g.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{onClick:d,children:g.jsx("i",{children:"New domain"})})]})},Tfe=e=>(e==null?void 0:e.type)===XE.INVALID_ARGUMENT||(e==null?void 0:e.type)===JE.INVALID_ARGUMENT,Ofe=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===XE.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===JE.INVALID_SHORT_URL_DELETION,Cfe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),ya=e=>Cfe(e)?e:void 0,aa=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,Tfe(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),kfe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,WM=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(kfe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},YM=e=>e==="*"||e==="x"||e==="X",GM=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Pfe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Lfe=(e,t)=>{if(YM(e)||YM(t))return 0;const[n,r]=Pfe(GM(e),GM(t));return n>r?1:n<r?-1:0},qM=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Lfe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},jfe=(e,t)=>{const n=WM(e),r=WM(t),i=n.pop(),o=r.pop(),a=qM(n,r);return a!==0?a:i&&o?qM(i.split("."),o.split(".")):i||o?i?-1:1:0},ZM=(e,t,n)=>{Mfe(n);const r=jfe(e,t);return n8[n].includes(r)},n8={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},KM=Object.keys(n8),Mfe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(KM.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${KM.join("|")}`)},Nfe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||ZM(e,n,">=");return(!t||ZM(e,t,"<="))&&r},r8={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(r8);const Am=(e,t)=>t==="latest"||Nfe(t,{minVersion:r8[e]}),i8=e=>({domainVisits:Am("domainVisits",e),excludeBotsOnShortUrls:Am("excludeBotsOnShortUrls",e),filterDisabledUrls:Am("filterDisabledUrls",e),deviceLongUrls:Am("deviceLongUrls",e)}),Afe=e=>I.useMemo(()=>i8(e),[e]),o8=I.createContext(i8("0.0.0")),Rfe=o8.Provider,rp=e=>I.useContext(o8)[e],a8=I.createContext(""),Dfe=a8.Provider,zl=()=>I.useContext(a8),Tf=(e,t,n)=>qu(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Ife=(e,t)=>!e.domain&&t===I8?!0:e.domain===t,Ffe=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},s8="__",$fe=e=>e.replaceAll("/",s8),xg=e=>e.replaceAll(s8,"/");function Xr(e){"@babel/helpers - typeof";return Xr=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},Xr(e)}function Ye(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 Pe(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Xr(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 Vl(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Si(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(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 a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Ufe(e,t){if(Oe(2,arguments),!t||Xr(t)!=="object")return new Date(NaN);var n=t.years?Ye(t.years):0,r=t.months?Ye(t.months):0,i=t.weeks?Ye(t.weeks):0,o=t.days?Ye(t.days):0,a=t.hours?Ye(t.hours):0,s=t.minutes?Ye(t.minutes):0,l=t.seconds?Ye(t.seconds):0,c=Pe(e),d=r||n?Si(c,r+n*12):c,f=o||i?Vl(d,o+i*7):d,p=s+a*60,m=l+p*60,v=m*1e3,y=new Date(f.getTime()+v);return y}function CT(e,t){Oe(2,arguments);var n=Pe(e).getTime(),r=Ye(t);return new Date(n+r)}var Bfe=36e5;function zfe(e,t){Oe(2,arguments);var n=Ye(t);return CT(e,n*Bfe)}var Vfe={};function _a(){return Vfe}function l8(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=_a(),f=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pe(e),m=p.getDay(),v=(m<f?7:0)+m-f;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function bh(e){return Oe(1,arguments),l8(e,{weekStartsOn:1})}function Hfe(e){Oe(1,arguments);var t=Pe(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=bh(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=bh(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Wfe(e){Oe(1,arguments);var t=Hfe(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=bh(n);return r}function Ou(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 Gr(e){Oe(1,arguments);var t=Pe(e);return t.setHours(0,0,0,0),t}var Yfe=864e5;function wh(e,t){Oe(2,arguments);var n=Gr(e),r=Gr(t),i=n.getTime()-Ou(n),o=r.getTime()-Ou(r);return Math.round((i-o)/Yfe)}var Gfe=6e4;function u2(e,t){Oe(2,arguments);var n=Ye(t);return CT(e,n*Gfe)}function c8(e,t){Oe(2,arguments);var n=Ye(t),r=n*3;return Si(e,r)}function kT(e,t){Oe(2,arguments);var n=Ye(t),r=n*7;return Vl(e,r)}function Cu(e,t){Oe(2,arguments);var n=Ye(t);return Si(e,n*12)}function QM(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Xr(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Pe(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function XM(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Xr(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Pe(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function Sg(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var PT=6e4,L0=36e5,qfe=1e3;function Zfe(e,t){Oe(2,arguments);var n=Gr(e),r=Gr(t);return n.getTime()===r.getTime()}function j0(e){return Oe(1,arguments),e instanceof Date||Xr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xh(e){if(Oe(1,arguments),!j0(e)&&typeof e!="number")return!1;var t=Pe(e);return!isNaN(Number(t))}function Sh(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Ic(e){Oe(1,arguments);var t=Pe(e),n=Math.floor(t.getMonth()/3)+1;return n}function ny(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t);return n.getFullYear()-r.getFullYear()}function JM(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 LT(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t),i=JM(n,r),o=Math.abs(wh(n,r));n.setDate(n.getDate()-i*o);var a=+(JM(n,r)===-i),s=i*(o-a);return s===0?0:s}function u8(e,t){return Oe(2,arguments),Pe(e).getTime()-Pe(t).getTime()}var e3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Kfe="trunc";function jT(e){return e?e3[e]:e3[Kfe]}function Qfe(e,t,n){Oe(2,arguments);var r=u8(e,t)/L0;return jT(n==null?void 0:n.roundingMethod)(r)}function kl(e){Oe(1,arguments);var t=Pe(e);return t.setHours(23,59,59,999),t}function d8(e){Oe(1,arguments);var t=Pe(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Xfe(e){Oe(1,arguments);var t=Pe(e);return kl(t).getTime()===d8(t).getTime()}function ry(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t),i=Sg(n,r),o=Math.abs(Sh(n,r)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var s=Sg(n,r)===-i;Xfe(Pe(e))&&o===1&&Sg(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function Jfe(e,t,n){Oe(2,arguments);var r=u8(e,t)/1e3;return jT(n==null?void 0:n.roundingMethod)(r)}function ehe(e,t,n){Oe(2,arguments);var r=LT(e,t)/7;return jT(n==null?void 0:n.roundingMethod)(r)}function d2(e){Oe(1,arguments);var t=Pe(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function f8(e){Oe(1,arguments);var t=Pe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function the(e){Oe(1,arguments);var t=Pe(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function h8(e){Oe(1,arguments);var t=Pe(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function nhe(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=_a(),f=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pe(e),m=p.getDay(),v=(m<f?-7:0)+6-(m-f);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function rhe(e){return Oe(1,arguments),nhe(e,{weekStartsOn:1})}function p8(e,t){Oe(2,arguments);var n=Ye(t);return CT(e,-n)}var ihe=864e5;function ohe(e){Oe(1,arguments);var t=Pe(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/ihe)+1}function ku(e){Oe(1,arguments);var t=1,n=Pe(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 m8(e){Oe(1,arguments);var t=Pe(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ku(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=ku(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ahe(e){Oe(1,arguments);var t=m8(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ku(n);return r}var she=6048e5;function g8(e){Oe(1,arguments);var t=Pe(e),n=ku(t).getTime()-ahe(t).getTime();return Math.round(n/she)+1}function Pl(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=_a(),f=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pe(e),m=p.getUTCDay(),v=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function MT(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=Pe(e),f=d.getUTCFullYear(),p=_a(),m=Ye((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.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 v=new Date(0);v.setUTCFullYear(f+1,0,m),v.setUTCHours(0,0,0,0);var y=Pl(v,t),x=new Date(0);x.setUTCFullYear(f,0,m),x.setUTCHours(0,0,0,0);var _=Pl(x,t);return d.getTime()>=y.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function lhe(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=_a(),f=Ye((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=MT(e,t),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var v=Pl(m,t);return v}var che=6048e5;function v8(e,t){Oe(1,arguments);var n=Pe(e),r=Pl(n,t).getTime()-lhe(n,t).getTime();return Math.round(r/che)+1}function nt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var uhe={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return nt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):nt(n+1,2)},d:function(e,t){return nt(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return nt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return nt(e.getUTCHours(),t.length)},m:function(e,t){return nt(e.getUTCMinutes(),t.length)},s:function(e,t){return nt(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return nt(i,t.length)}};const Oa=uhe;var fc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dhe={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Oa.y(e,t)},Y:function(e,t,n,r){var i=MT(e,r),o=i>0?i:1-i;if(t==="YY"){var a=o%100;return nt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):nt(o,t.length)},R:function(e,t){var n=m8(e);return nt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return nt(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return nt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return nt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Oa.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return nt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=v8(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):nt(i,t.length)},I:function(e,t,n){var r=g8(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Oa.d(e,t)},D:function(e,t,n){var r=ohe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):nt(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return nt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return nt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return nt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),i;switch(r===12?i=fc.noon:r===0?i=fc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),i;switch(r>=17?i=fc.evening:r>=12?i=fc.afternoon:r>=4?i=fc.morning:i=fc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Oa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Oa.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Oa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Oa.s(e,t)},S:function(e,t){return Oa.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return n3(o);case"XXXX":case"XX":return qs(o);case"XXXXX":case"XXX":default:return qs(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return n3(o);case"xxxx":case"xx":return qs(o);case"xxxxx":case"xxx":default:return qs(o,":")}},O:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+t3(o,":");case"OOOO":default:return"GMT"+qs(o,":")}},z:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+t3(o,":");case"zzzz":default:return"GMT"+qs(o,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return nt(o,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,o=i.getTime();return nt(o,t.length)}};function t3(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 a=t||"";return n+String(i)+a+nt(o,2)}function n3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+nt(Math.abs(e)/60,2)}return qs(e,t)}function qs(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=nt(Math.floor(i/60),2),a=nt(i%60,2);return r+o+n+a}const fhe=dhe;var r3=function(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"})}},y8=function(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"})}},hhe=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return r3(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",r3(r,t)).replace("{{time}}",y8(i,t))},phe={p:y8,P:hhe};const f2=phe;var mhe=["D","DD"],ghe=["YY","YYYY"];function _8(e){return mhe.indexOf(e)!==-1}function b8(e){return ghe.indexOf(e)!==-1}function iy(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 vhe={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"}},yhe=function(e,t,n){var r,i=vhe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const _he=yhe;function j1(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 bhe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},whe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xhe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},She={date:j1({formats:bhe,defaultWidth:"full"}),time:j1({formats:whe,defaultWidth:"full"}),dateTime:j1({formats:xhe,defaultWidth:"full"})};const Ehe=She;var The={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ohe=function(e,t,n,r){return The[e]};const Che=Ohe;function jd(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,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var khe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Phe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Lhe={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"]},jhe={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"]},Mhe={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"}},Nhe={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"}},Ahe=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Rhe={ordinalNumber:Ahe,era:jd({values:khe,defaultWidth:"wide"}),quarter:jd({values:Phe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:jd({values:Lhe,defaultWidth:"wide"}),day:jd({values:jhe,defaultWidth:"wide"}),dayPeriod:jd({values:Mhe,defaultWidth:"wide",formattingValues:Nhe,defaultFormattingWidth:"wide"})};const Dhe=Rhe;function Md(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 a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Fhe(s,function(f){return f.test(a)}):Ihe(s,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function Ihe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Fhe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function $he(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 a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Uhe=/^(\d+)(th|st|nd|rd)?/i,Bhe=/\d+/i,zhe={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},Vhe={any:[/^b/i,/^(a|c)/i]},Hhe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Whe={any:[/1/i,/2/i,/3/i,/4/i]},Yhe={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},Ghe={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]},qhe={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},Zhe={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]},Khe={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},Qhe={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}},Xhe={ordinalNumber:$he({matchPattern:Uhe,parsePattern:Bhe,valueCallback:function(e){return parseInt(e,10)}}),era:Md({matchPatterns:zhe,defaultMatchWidth:"wide",parsePatterns:Vhe,defaultParseWidth:"any"}),quarter:Md({matchPatterns:Hhe,defaultMatchWidth:"wide",parsePatterns:Whe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Md({matchPatterns:Yhe,defaultMatchWidth:"wide",parsePatterns:Ghe,defaultParseWidth:"any"}),day:Md({matchPatterns:qhe,defaultMatchWidth:"wide",parsePatterns:Zhe,defaultParseWidth:"any"}),dayPeriod:Md({matchPatterns:Khe,defaultMatchWidth:"any",parsePatterns:Qhe,defaultParseWidth:"any"})};const Jhe=Xhe;var epe={code:"en-US",formatDistance:_he,formatLong:Ehe,formatRelative:Che,localize:Dhe,match:Jhe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const NT=epe;var tpe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,npe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rpe=/^'([^]*?)'?$/,ipe=/''/g,ope=/[a-zA-Z]/;function Pu(e,t,n){var r,i,o,a,s,l,c,d,f,p,m,v,y,x,_,w,S,E;Oe(2,arguments);var O=String(t),k=_a(),j=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:NT,R=Ye((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=Ye((m=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(_=n.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:k.weekStartsOn)!==null&&v!==void 0?v:(S=k.locale)===null||S===void 0||(E=S.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(U>=0&&U<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!j.localize)throw new RangeError("locale must contain localize property");if(!j.formatLong)throw new RangeError("locale must contain formatLong property");var A=Pe(e);if(!xh(A))throw new RangeError("Invalid time value");var V=Ou(A),W=p8(A,V),X={firstWeekContainsDate:R,weekStartsOn:U,locale:j,_originalDate:A},G=O.match(npe).map(function(K){var ne=K[0];if(ne==="p"||ne==="P"){var le=f2[ne];return le(K,j.formatLong)}return K}).join("").match(tpe).map(function(K){if(K==="''")return"'";var ne=K[0];if(ne==="'")return ape(K);var le=fhe[ne];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&b8(K)&&iy(K,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&_8(K)&&iy(K,t,String(e)),le(W,K,j.localize,X);if(ne.match(ope))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");return K}).join("");return G}function ape(e){var t=e.match(rpe);return t?t[1].replace(ipe,"'"):e}function AT(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 spe(e){return AT({},e)}var i3=1440,lpe=2520,M1=43200,cpe=86400;function upe(e,t,n){var r,i;Oe(2,arguments);var o=_a(),a=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:NT;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Sg(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l=AT(spe(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:s}),c,d;s>0?(c=Pe(t),d=Pe(e)):(c=Pe(e),d=Pe(t));var f=Jfe(d,c),p=(Ou(d)-Ou(c))/1e3,m=Math.round((f-p)/60),v;if(m<2)return n!=null&&n.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,l):f<10?a.formatDistance("lessThanXSeconds",10,l):f<20?a.formatDistance("lessThanXSeconds",20,l):f<40?a.formatDistance("halfAMinute",0,l):f<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):m===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",m,l);if(m<45)return a.formatDistance("xMinutes",m,l);if(m<90)return a.formatDistance("aboutXHours",1,l);if(m<i3){var y=Math.round(m/60);return a.formatDistance("aboutXHours",y,l)}else{if(m<lpe)return a.formatDistance("xDays",1,l);if(m<M1){var x=Math.round(m/i3);return a.formatDistance("xDays",x,l)}else if(m<cpe)return v=Math.round(m/M1),a.formatDistance("aboutXMonths",v,l)}if(v=ry(d,c),v<12){var _=Math.round(m/M1);return a.formatDistance("xMonths",_,l)}else{var w=v%12,S=Math.floor(v/12);return w<3?a.formatDistance("aboutXYears",S,l):w<9?a.formatDistance("overXYears",S,l):a.formatDistance("almostXYears",S+1,l)}}function dpe(e,t){var n,r;Oe(1,arguments);var i=Pe(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"),a=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(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",c=o==="extended"?"-":"",d=o==="extended"?":":"";if(a!=="time"){var f=nt(i.getDate(),2),p=nt(i.getMonth()+1,2),m=nt(i.getFullYear(),4);s="".concat(m).concat(c).concat(p).concat(c).concat(f)}if(a!=="date"){var v=i.getTimezoneOffset();if(v!==0){var y=Math.abs(v),x=nt(Math.floor(y/60),2),_=nt(y%60,2),w=v<0?"+":"-";l="".concat(w).concat(x,":").concat(_)}else l="Z";var S=nt(i.getHours(),2),E=nt(i.getMinutes(),2),O=nt(i.getSeconds(),2),k=s===""?"":"T",j=[S,E,O].join(d);s="".concat(s).concat(k).concat(j).concat(l)}return s}function o3(e){Oe(1,arguments);var t=Pe(e),n=t.getDate();return n}function fpe(e){Oe(1,arguments);var t=Pe(e),n=t.getDay();return n}function hpe(e){Oe(1,arguments);var t=Pe(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 Bi(e){Oe(1,arguments);var t=Pe(e),n=t.getHours();return n}var ppe=6048e5;function mpe(e){Oe(1,arguments);var t=Pe(e),n=bh(t).getTime()-Wfe(t).getTime();return Math.round(n/ppe)+1}function zi(e){Oe(1,arguments);var t=Pe(e),n=t.getMinutes();return n}function ar(e){Oe(1,arguments);var t=Pe(e),n=t.getMonth();return n}function N1(e){Oe(1,arguments);var t=Pe(e),n=t.getSeconds();return n}function oy(e){Oe(1,arguments);var t=Pe(e),n=t.getTime();return n}function gpe(e){return Oe(1,arguments),Math.floor(oy(e)/1e3)}function et(e){return Oe(1,arguments),Pe(e).getFullYear()}function ps(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t);return n.getTime()>r.getTime()}function Vi(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t);return n.getTime()<r.getTime()}function w8(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t);return n.getTime()===r.getTime()}function a3(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 vpe(e,t){if(e){if(typeof e=="string")return a3(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 a3(e,t)}}function s3(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vpe(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(l){throw l},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,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h2(e,t){return h2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},h2(e,t)}function ft(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&&h2(e,t)}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ay(e)}function ype(){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 _pe(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function ht(e){var t=ype();return function(){var n=ay(e),r;if(t){var i=ay(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _pe(this,r)}}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bpe(e,t){if(Xr(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xr(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x8(e){var t=bpe(e,"string");return Xr(t)==="symbol"?t:String(t)}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,x8(r.key),r)}}function lt(e,t,n){return t&&l3(e.prototype,t),n&&l3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ae(e,t,n){return t=x8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wpe=10,S8=function(){function e(){st(this,e),Ae(this,"priority",void 0),Ae(this,"subPriority",0)}return lt(e,[{key:"validate",value:function(t,n){return!0}}]),e}(),xpe=function(e){ft(n,e);var t=ht(n);function n(r,i,o,a,s){var l;return st(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return lt(n,[{key:"validate",value:function(r,i){return this.validateValue(r,this.value,i)}},{key:"set",value:function(r,i,o){return this.setValue(r,i,this.value,o)}}]),n}(S8),Spe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",wpe),Ae(Fe(r),"subPriority",-1),r}return lt(n,[{key:"set",value:function(r,i){if(i.timestampIsSet)return r;var o=new Date(0);return o.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),o.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),o}}]),n}(S8),gt=function(){function e(){st(this,e),Ae(this,"incompatibleTokens",void 0),Ae(this,"priority",void 0),Ae(this,"subPriority",void 0)}return lt(e,[{key:"run",value:function(t,n,r,i){var o=this.parse(t,n,r,i);return o?{setter:new xpe(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,n,r){return!0}}]),e}(),Epe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",140),Ae(Fe(r),"incompatibleTokens",["R","u","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})||o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"})}}},{key:"set",value:function(r,i,o){return i.era=o,r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt),hn={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}/},fo={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 pn(e,t){return e&&{value:t(e.value),rest:e.rest}}function Gt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ho(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,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*L0+o*PT+a*qfe),rest:t.slice(n[0].length)}}function E8(e){return Gt(hn.anyDigitsSigned,e)}function an(e,t){switch(e){case 1:return Gt(hn.singleDigit,t);case 2:return Gt(hn.twoDigits,t);case 3:return Gt(hn.threeDigits,t);case 4:return Gt(hn.fourDigits,t);default:return Gt(new RegExp("^\\d{1,"+e+"}"),t)}}function T8(e,t){switch(e){case 1:return Gt(hn.singleDigitSigned,t);case 2:return Gt(hn.twoDigitsSigned,t);case 3:return Gt(hn.threeDigitsSigned,t);case 4:return Gt(hn.fourDigitsSigned,t);default:return Gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function RT(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 O8(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function C8(e){return e%400===0||e%4===0&&e%100!==0}var Tpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",130),Ae(Fe(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return{year:s,isTwoDigitYear:i==="yy"}};switch(i){case"y":return pn(an(4,r),a);case"yo":return pn(o.ordinalNumber(r,{unit:"year"}),a);default:return pn(an(i.length,r),a)}}},{key:"validate",value:function(r,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(r,i,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var s=O8(o.year,a);return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}var l=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Ope=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",130),Ae(Fe(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return{year:s,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return pn(an(4,r),a);case"Yo":return pn(o.ordinalNumber(r,{unit:"year"}),a);default:return pn(an(i.length,r),a)}}},{key:"validate",value:function(r,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(r,i,o,a){var s=MT(r,a);if(o.isTwoDigitYear){var l=O8(o.year,s);return r.setUTCFullYear(l,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Pl(r,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(c,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Pl(r,a)}}]),n}(gt),Cpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",130),Ae(Fe(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i){return T8(i==="R"?4:i.length,r)}},{key:"set",value:function(r,i,o){var a=new Date(0);return a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0),ku(a)}}]),n}(gt),kpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",130),Ae(Fe(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i){return T8(i==="u"?4:i.length,r)}},{key:"set",value:function(r,i,o){return r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Ppe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",120),Ae(Fe(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"Q":case"QQ":return an(i.length,r);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})||o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Lpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",120),Ae(Fe(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"q":case"qq":return an(i.length,r);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})||o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,i){return i>=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt),jpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ae(Fe(r),"priority",110),r}return lt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s-1};switch(i){case"M":return pn(Gt(hn.month,r),a);case"MM":return pn(an(2,r),a);case"Mo":return pn(o.ordinalNumber(r,{unit:"month"}),a);case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})||o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Mpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",110),Ae(Fe(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s-1};switch(i){case"L":return pn(Gt(hn.month,r),a);case"LL":return pn(an(2,r),a);case"Lo":return pn(o.ordinalNumber(r,{unit:"month"}),a);case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})||o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(gt);function Npe(e,t,n){Oe(2,arguments);var r=Pe(e),i=Ye(t),o=v8(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var Ape=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",100),Ae(Fe(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"w":return Gt(hn.week,r);case"wo":return o.ordinalNumber(r,{unit:"week"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=53}},{key:"set",value:function(r,i,o,a){return Pl(Npe(r,o,a),a)}}]),n}(gt);function Rpe(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t),i=g8(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var Dpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",100),Ae(Fe(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"I":return Gt(hn.week,r);case"Io":return o.ordinalNumber(r,{unit:"week"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=53}},{key:"set",value:function(r,i,o){return ku(Rpe(r,o))}}]),n}(gt),Ipe=[31,28,31,30,31,30,31,31,30,31,30,31],Fpe=[31,29,31,30,31,30,31,31,30,31,30,31],$pe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",90),Ae(Fe(r),"subPriority",1),Ae(Fe(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"d":return Gt(hn.date,r);case"do":return o.ordinalNumber(r,{unit:"date"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){var o=r.getUTCFullYear(),a=C8(o),s=r.getUTCMonth();return a?i>=1&&i<=Fpe[s]:i>=1&&i<=Ipe[s]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Upe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",90),Ae(Fe(r),"subpriority",1),Ae(Fe(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"D":case"DD":return Gt(hn.dayOfYear,r);case"Do":return o.ordinalNumber(r,{unit:"date"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){var o=r.getUTCFullYear(),a=C8(o);return a?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(r,i,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),n}(gt);function DT(e,t,n){var r,i,o,a,s,l,c,d;Oe(2,arguments);var f=_a(),p=Ye((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.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=Pe(e),v=Ye(t),y=m.getUTCDay(),x=v%7,_=(x+7)%7,w=(_<p?7:0)+v-y;return m.setUTCDate(m.getUTCDate()+w),m}var Bpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",90),Ae(Fe(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=DT(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(gt),zpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",90),Ae(Fe(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o,a){var s=function(l){var c=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+c};switch(i){case"e":case"ee":return pn(an(i.length,r),s);case"eo":return pn(o.ordinalNumber(r,{unit:"day"}),s);case"eee":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=DT(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Vpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",90),Ae(Fe(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o,a){var s=function(l){var c=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+c};switch(i){case"c":case"cc":return pn(an(i.length,r),s);case"co":return pn(o.ordinalNumber(r,{unit:"day"}),s);case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(r,{width:"wide",context:"standalone"})||o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=DT(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(gt);function Hpe(e,t){Oe(2,arguments);var n=Ye(t);n%7===0&&(n=n-7);var r=1,i=Pe(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}var Wpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",90),Ae(Fe(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s===0?7:s};switch(i){case"i":case"ii":return an(i.length,r);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return pn(o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiii":return pn(o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return pn(o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiii":default:return pn(o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(r,i){return i>=1&&i<=7}},{key:"set",value:function(r,i,o){return r=Hpe(r,o),r.setUTCHours(0,0,0,0),r}}]),n}(gt),Ype=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",80),Ae(Fe(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,i,o){return r.setUTCHours(RT(o),0,0,0),r}}]),n}(gt),Gpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",80),Ae(Fe(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,i,o){return r.setUTCHours(RT(o),0,0,0),r}}]),n}(gt),qpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",80),Ae(Fe(r),"incompatibleTokens",["a","b","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,i,o){return r.setUTCHours(RT(o),0,0,0),r}}]),n}(gt),Zpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",70),Ae(Fe(r),"incompatibleTokens",["H","K","k","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"h":return Gt(hn.hour12h,r);case"ho":return o.ordinalNumber(r,{unit:"hour"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=12}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):!a&&o===12?r.setUTCHours(0,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(gt),Kpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",70),Ae(Fe(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"H":return Gt(hn.hour23h,r);case"Ho":return o.ordinalNumber(r,{unit:"hour"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=23}},{key:"set",value:function(r,i,o){return r.setUTCHours(o,0,0,0),r}}]),n}(gt),Qpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",70),Ae(Fe(r),"incompatibleTokens",["h","H","k","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"K":return Gt(hn.hour11h,r);case"Ko":return o.ordinalNumber(r,{unit:"hour"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=11}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(gt),Xpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",70),Ae(Fe(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"k":return Gt(hn.hour24h,r);case"ko":return o.ordinalNumber(r,{unit:"hour"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=24}},{key:"set",value:function(r,i,o){var a=o<=24?o%24:o;return r.setUTCHours(a,0,0,0),r}}]),n}(gt),Jpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",60),Ae(Fe(r),"incompatibleTokens",["t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"m":return Gt(hn.minute,r);case"mo":return o.ordinalNumber(r,{unit:"minute"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCMinutes(o,0,0),r}}]),n}(gt),eme=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",50),Ae(Fe(r),"incompatibleTokens",["t","T"]),r}return lt(n,[{key:"parse",value:function(r,i,o){switch(i){case"s":return Gt(hn.second,r);case"so":return o.ordinalNumber(r,{unit:"second"});default:return an(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCSeconds(o,0),r}}]),n}(gt),tme=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",30),Ae(Fe(r),"incompatibleTokens",["t","T"]),r}return lt(n,[{key:"parse",value:function(r,i){var o=function(a){return Math.floor(a*Math.pow(10,-i.length+3))};return pn(an(i.length,r),o)}},{key:"set",value:function(r,i,o){return r.setUTCMilliseconds(o),r}}]),n}(gt),nme=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",10),Ae(Fe(r),"incompatibleTokens",["t","T","x"]),r}return lt(n,[{key:"parse",value:function(r,i){switch(i){case"X":return ho(fo.basicOptionalMinutes,r);case"XX":return ho(fo.basic,r);case"XXXX":return ho(fo.basicOptionalSeconds,r);case"XXXXX":return ho(fo.extendedOptionalSeconds,r);case"XXX":default:return ho(fo.extended,r)}}},{key:"set",value:function(r,i,o){return i.timestampIsSet?r:new Date(r.getTime()-o)}}]),n}(gt),rme=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",10),Ae(Fe(r),"incompatibleTokens",["t","T","X"]),r}return lt(n,[{key:"parse",value:function(r,i){switch(i){case"x":return ho(fo.basicOptionalMinutes,r);case"xx":return ho(fo.basic,r);case"xxxx":return ho(fo.basicOptionalSeconds,r);case"xxxxx":return ho(fo.extendedOptionalSeconds,r);case"xxx":default:return ho(fo.extended,r)}}},{key:"set",value:function(r,i,o){return i.timestampIsSet?r:new Date(r.getTime()-o)}}]),n}(gt),ime=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",40),Ae(Fe(r),"incompatibleTokens","*"),r}return lt(n,[{key:"parse",value:function(r){return E8(r)}},{key:"set",value:function(r,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),n}(gt),ome=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ae(Fe(r),"priority",20),Ae(Fe(r),"incompatibleTokens","*"),r}return lt(n,[{key:"parse",value:function(r){return E8(r)}},{key:"set",value:function(r,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),n}(gt),ame={G:new Epe,y:new Tpe,Y:new Ope,R:new Cpe,u:new kpe,Q:new Ppe,q:new Lpe,M:new jpe,L:new Mpe,w:new Ape,I:new Dpe,d:new $pe,D:new Upe,E:new Bpe,e:new zpe,c:new Vpe,i:new Wpe,a:new Ype,b:new Gpe,B:new qpe,h:new Zpe,H:new Kpe,K:new Qpe,k:new Xpe,m:new Jpe,s:new eme,S:new tme,X:new nme,x:new rme,t:new ime,T:new ome},sme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cme=/^'([^]*?)'?$/,ume=/''/g,dme=/\S/,fme=/[a-zA-Z]/;function A1(e,t,n,r){var i,o,a,s,l,c,d,f,p,m,v,y,x,_,w,S,E,O;Oe(3,arguments);var k=String(e),j=String(t),R=_a(),U=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:R.locale)!==null&&i!==void 0?i:NT;if(!U.match)throw new RangeError("locale must contain match property");var A=Ye((a=(s=(l=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(d=r.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(p=R.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=Ye((v=(y=(x=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(w=r.locale)===null||w===void 0||(S=w.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&x!==void 0?x:R.weekStartsOn)!==null&&y!==void 0?y:(E=R.locale)===null||E===void 0||(O=E.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&v!==void 0?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(j==="")return k===""?Pe(n):new Date(NaN);var W={firstWeekContainsDate:A,weekStartsOn:V,locale:U},X=[new Spe],G=j.match(lme).map(function(C){var M=C[0];if(M in f2){var $=f2[M];return $(C,U.formatLong)}return C}).join("").match(sme),K=[],ne=s3(G),le;try{var Z=function(){var C=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&b8(C)&&iy(C,j,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&_8(C)&&iy(C,j,e);var M=C[0],$=ame[M];if($){var J=$.incompatibleTokens;if(Array.isArray(J)){var ee=K.find(function(ge){return J.includes(ge.token)||ge.token===M});if(ee)throw new RangeError("The format string mustn't contain `".concat(ee.fullToken,"` and `").concat(C,"` at the same time"))}else if($.incompatibleTokens==="*"&&K.length>0)throw new RangeError("The format string mustn't contain `".concat(C,"` and any other token at the same time"));K.push({token:M,fullToken:C});var se=$.run(k,C,U.match,W);if(!se)return{v:new Date(NaN)};X.push(se.setter),k=se.rest}else{if(M.match(fme))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if(C==="''"?C="'":M==="'"&&(C=hme(C)),k.indexOf(C)===0)k=k.slice(C.length);else return{v:new Date(NaN)}}};for(ne.s();!(le=ne.n()).done;){var F=Z();if(Xr(F)==="object")return F.v}}catch(C){ne.e(C)}finally{ne.f()}if(k.length>0&&dme.test(k))return new Date(NaN);var D=X.map(function(C){return C.priority}).sort(function(C,M){return M-C}).filter(function(C,M,$){return $.indexOf(C)===M}).map(function(C){return X.filter(function(M){return M.priority===C}).sort(function(M,$){return $.subPriority-M.subPriority})}).map(function(C){return C[0]}),H=Pe(n);if(isNaN(H.getTime()))return new Date(NaN);var re=p8(H,Ou(H)),z={},q=s3(D),ie;try{for(q.s();!(ie=q.n()).done;){var ae=ie.value;if(!ae.validate(re,W))return new Date(NaN);var he=ae.set(re,z,W);Array.isArray(he)?(re=he[0],AT(z,he[1])):re=he}}catch(C){q.e(C)}finally{q.f()}return re}function hme(e){return e.match(cme)[1].replace(ume,"'")}function pme(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function mme(e,t){Oe(2,arguments);var n=d2(e),r=d2(t);return n.getTime()===r.getTime()}function gme(e,t){Oe(2,arguments);var n=Pe(e),r=Pe(t);return n.getFullYear()===r.getFullYear()}function Lu(e,t){Oe(2,arguments);var n=Pe(e).getTime(),r=Pe(t.start).getTime(),i=Pe(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function IT(e,t){Oe(2,arguments);var n=Ye(t);return Vl(e,-n)}function sa(e,t){var n;Oe(1,arguments);var r=Ye((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=bme(e),o;if(i.date){var a=wme(i.date,r);o=xme(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,c;if(i.time&&(l=Sme(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Eme(i.timezone),isNaN(c))return new Date(NaN)}else{var d=new Date(s+l),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(s+l+c)}var Rm={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},vme=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,yme=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_me=/^([+-])(\d{2})(?::?(\d{2}))?$/;function bme(e){var t={},n=e.split(Rm.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Rm.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Rm.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Rm.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function wme(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 xme(e,t){if(t===null)return new Date(NaN);var n=e.match(vme);if(!n)return new Date(NaN);var r=!!n[4],i=Nd(n[1]),o=Nd(n[2])-1,a=Nd(n[3]),s=Nd(n[4]),l=Nd(n[5])-1;if(r)return Pme(t,s,l)?Tme(t,s,l):new Date(NaN);var c=new Date(0);return!Cme(t,o,a)||!kme(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}function Nd(e){return e?parseInt(e):1}function Sme(e){var t=e.match(yme);if(!t)return NaN;var n=R1(t[1]),r=R1(t[2]),i=R1(t[3]);return Lme(n,r,i)?n*L0+r*PT+i*1e3:NaN}function R1(e){return e&&parseFloat(e.replace(",","."))||0}function Eme(e){if(e==="Z")return 0;var t=e.match(_me);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return jme(r,i)?n*(r*L0+i*PT):NaN}function Tme(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 Ome=[31,null,31,30,31,30,31,31,30,31,30,31];function k8(e){return e%400===0||e%4===0&&e%100!==0}function Cme(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ome[t]||(k8(e)?29:28))}function kme(e,t){return t>=1&&t<=(k8(e)?366:365)}function Pme(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Lme(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function jme(e,t){return t>=0&&t<=59}function vr(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=hpe(a);return n.setMonth(r,Math.min(o,s)),n}function Mme(e,t){if(Oe(2,arguments),Xr(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Pe(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=vr(n,t.month)),t.date!=null&&n.setDate(Ye(t.date)),t.hours!=null&&n.setHours(Ye(t.hours)),t.minutes!=null&&n.setMinutes(Ye(t.minutes)),t.seconds!=null&&n.setSeconds(Ye(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Ye(t.milliseconds)),n)}function Eg(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t);return n.setHours(r),n}function Tg(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t);return n.setMinutes(r),n}function hc(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return vr(n,n.getMonth()+o*3)}function Nme(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t);return n.setSeconds(r),n}function Bo(e,t){Oe(2,arguments);var n=Pe(e),r=Ye(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function ju(e,t){Oe(2,arguments);var n=Ye(t);return Si(e,-n)}function Ame(e,t){Oe(2,arguments);var n=Ye(t);return c8(e,-n)}function Rme(e,t){Oe(2,arguments);var n=Ye(t);return kT(e,-n)}function Eh(e,t){Oe(2,arguments);var n=Ye(t);return Cu(e,-n)}const P8="yyyy-MM-dd",FT="yyyy-MM-dd HH:mm",ms=()=>new Date,$T=e=>typeof e!="string",UT=(e,t)=>!e||!$T(e)?e:t?Pu(e,t):dpe(e),gs=e=>UT(e,void 0),nl=e=>UT(e,P8),sy=e=>UT(e,FT),Hi=e=>$T(e)?e:sa(e),ip=(e,t,n)=>{try{return Lu(Hi(e),{start:Hi(t??e),end:Hi(n??e)})}catch{return!1}},Is=(e,t)=>w8(e,t)||Vi(e,t),op="all",L8={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[op]:void 0},j8=Object.keys(L8),M8=e=>e===void 0||Qi(Z5(Boolean,e)),ly=e=>typeof e=="string"&&j8.includes(e),Dme=j8.filter(e=>e!==op),c3=e=>e?Hi(e):null,N8=(e,t)=>({startDate:c3(e),endDate:c3(t)}),Ime=e=>{if(!(!e||M8(e)))return e.startDate&&!e.endDate?`Since ${nl(e.startDate)}`:!e.startDate&&e.endDate?`Until ${nl(e.endDate)}`:`${nl(e.startDate)} - ${nl(e.endDate)}`},A8=e=>{if(!(!e||e===op))return ly(e)?L8[e]:Ime(e)},di=e=>Gr(IT(ms(),e)),pc=e=>({startDate:e,endDate:kl(ms())}),Fs=e=>t=>e===t,R8=TT([[Fs("today"),()=>pc(Gr(ms()))],[Fs("yesterday"),()=>({startDate:di(1),endDate:kl(IT(ms(),1))})],[Fs("last7Days"),()=>pc(di(7))],[Fs("last30Days"),()=>pc(di(30))],[Fs("last90Days"),()=>pc(di(90))],[Fs("last180Days"),()=>pc(di(180))],[Fs("last365Days"),()=>pc(di(365))],[F5,()=>({})]]),Fme=e=>{const t=Hi(e);return TT([[()=>Is(Gr(ms()),t),()=>"today"],[()=>Is(di(1),t),()=>"yesterday"],[()=>Is(di(7),t),()=>"last7Days"],[()=>Is(di(30),t),()=>"last30Days"],[()=>Is(di(90),t),()=>"last90Days"],[()=>Is(di(180),t),()=>"last180Days"],[()=>Is(di(365),t),()=>"last365Days"],[F5,()=>op]])()},$me=e=>ly(e)?R8(e):e,Dr=(e,t)=>k6(e,t,{serializeError:Tde}),ap=In("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),u3=5e3,d3=4,f3=2,Ume=({currentPage:e,pagesCount:t})=>e>=t,Bme=(e,t)=>t*100/e,sp=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=In(`${e}/progressChanged`),o=In(`${e}/large`),a=In(`${e}/fallbackToInterval`),s=Dr(e,async(l,{getState:c,dispatch:d})=>{var f;const[p,m]=t(l),v=async S=>Promise.all(S.map(async E=>p(E,u3).then(mt("data")))).then(Jde),y=async(S,E=0)=>{if(r(c))return[];const O=await v(S[E]);return d(i(Bme(S.length,E+f3))),E<S.length-1?O.concat(await y(S,E+1)):O},x=async(S=1)=>{const{pagination:E,data:O}=await p(S,u3);if(!E||Ume(E))return O;const k=OT(f3,E.pagesCount+1),j=_h(d3,k);return E.pagesCount-1>d3&&d(o()),O.concat(await y(j))},[_,w]=await Promise.all([x(),m((f=l.query)==null?void 0:f.excludeBots)]);return!_.length&&w&&d(a(Fme(w.date))),{...n(l),visits:_}});return Object.assign(s,{progressChanged:i,large:o,fallbackToInterval:a})},lp=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),cp=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:a,large:s,progressChanged:l,fallbackToInterval:c}=t,{reducer:d,actions:f}=dr({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:ya(y)})),m.addCase(a,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),m.addCase(s,v=>({...v,loadingLarge:!0})),m.addCase(l,(v,{payload:y})=>({...v,progress:y})),m.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),m.addCase(ap,(v,{payload:y})=>{const{visits:x}=v,_=r(v,y.createdVisits).map(({visit:w})=>w);return _.length?{...v,visits:[..._,...x]}:v})}}),{cancelGetVisits:p}=f;return{reducer:d,cancelGetVisits:p}},D8="shlink/domainVisits",I8="DEFAULT",zme={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Vme=e=>sp({typePrefix:`${D8}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getDomainVisits(t,{...n,page:s,itemsPerPage:l}),a=lp(r,async s=>i.getDomainVisits(t,s));return[o,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),Hme=e=>cp({name:D8,initialState:zme,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>a&&Ife(a,t)&&ip(s.date,i,o))}}),Og=({className:e="",placement:t,children:n})=>{const r=xs();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(Ne,{icon:nE})}),g.jsx(Ir,{target:r,placement:t,children:n})]})},BT=e=>Yr(t=>t.preventDefault(),e),zT=(e,t,n=1)=>OT(n,e+1).map(t),po=e=>!qu(e)&&!Qi(e),D1=e=>Qi(e)?null:e,F8=e=>e?"true":"false",I1=e=>e===void 0?void 0:F8(e),F1=({isLast:e,...t})=>g.jsx(dg,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),Wme=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=I.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[c,d]=I.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[f,p]=I.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),m=BT(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:D1(s),regular404Redirect:D1(c),invalidShortUrlRedirect:D1(f)}}).then(t));return g.jsx(pa,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:m,children:[g.jsxs(ma,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:n.domain})]}),g.jsxs(ko,{children:[g.jsxs(F1,{value:s,onChange:l,children:[g.jsxs(Og,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs(F1,{value:c,onChange:d,children:[g.jsxs(Og,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs(F1,{value:f,isLast:!0,onChange:p,children:[g.jsx(Og,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),g.jsxs($l,{children:[g.jsx(yt,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(yt,{color:"primary",children:"Save"})]})]})})},Yme=({domain:e,editDomainRedirects:t})=>{const[n,r]=On(),i=rp("domainVisits"),o=zl();return g.jsxs(v0,{children:[i&&g.jsxs(Ue,{tag:Ft,to:`${o}/domain/${e.domain}${e.isDefault?`_${I8}`:""}/visits`,children:[g.jsx(Ne,{icon:tE,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{onClick:r,children:[g.jsx(Ne,{fixedWidth:!0,icon:eE})," Edit redirects"]}),g.jsx(Wme,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Zo=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Gme="Left",qme="Right",Zme="Up",Kme="Down",Fc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},p2={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},h3="mousemove",p3="mouseup",Qme="touchend",Xme="touchmove",Jme="touchstart";function ege(e,t,n,r){return e>t?n>0?qme:Gme:r>0?Kme:Zme}function m3(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 tge(e,t){const n=c=>{const d="touches"in c;d&&c.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(h3,r),document.addEventListener(p3,a));const{clientX:m,clientY:v}=d?c.touches[0]:c,y=m3([m,v],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:c}),Object.assign(Object.assign(Object.assign({},f),p2),{initial:y.slice(),xy:y,start:c.timeStamp||0})})},r=c=>{e((d,f)=>{const p="touches"in c;if(p&&c.touches.length>1)return d;if(c.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:m,clientY:v}=p?c.touches[0]:c,[y,x]=m3([m,v],f.rotationAngle),_=y-d.xy[0],w=x-d.xy[1],S=Math.abs(_),E=Math.abs(w),O=(c.timeStamp||0)-d.start,k=Math.sqrt(S*S+E*E)/(O||1),j=[_/(O||1),w/(O||1)],R=ege(S,E,_,w),U=typeof f.delta=="number"?f.delta:f.delta[R.toLowerCase()]||Fc.delta;if(S<U&&E<U&&!d.swiping)return d;const A={absX:S,absY:E,deltaX:_,deltaY:w,dir:R,event:c,first:d.first,initial:d.initial,velocity:k,vxvy:j};A.first&&f.onSwipeStart&&f.onSwipeStart(A),f.onSwiping&&f.onSwiping(A);let V=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${R}`])&&(V=!0),V&&f.preventScrollOnSwipe&&f.trackTouch&&c.cancelable&&c.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:A,swiping:!0})})},i=c=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(c.timeStamp-d.start<f.swipeDuration){p=Object.assign(Object.assign({},d.eventData),{event:c}),f.onSwiped&&f.onSwiped(p);const m=f[`onSwiped${p.dir}`];m&&m(p)}}else f.onTap&&f.onTap({event:c});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:c}),Object.assign(Object.assign(Object.assign({},d),p2),{eventData:p})})},o=()=>{document.removeEventListener(h3,r),document.removeEventListener(p3,a)},a=c=>{o(),i(c)},s=(c,d)=>{let f=()=>{};if(c&&c.addEventListener){const p=Object.assign(Object.assign({},Fc.touchEventOptions),d.touchEventOptions),m=[[Jme,n,p],[Xme,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[Qme,i,p]];m.forEach(([v,y,x])=>c.addEventListener(v,y,x)),f=()=>m.forEach(([v,y])=>c.removeEventListener(v,y))}return f},l={ref:c=>{c!==null&&e((d,f)=>{if(d.el===c)return d;const p={};return d.el&&d.el!==c&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&c&&(p.cleanUpTouch=s(c,f)),Object.assign(Object.assign(Object.assign({},d),{el:c}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function nge(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 rge(e){const{trackMouse:t}=e,n=I.useRef(Object.assign({},p2)),r=I.useRef(Object.assign({},Fc)),i=I.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Fc),e);let o;for(o in Fc)r.current[o]===void 0&&(r.current[o]=Fc[o]);const[a,s]=I.useMemo(()=>tge(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=nge(n.current,r.current,i.current,s),a}const ige=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return rge({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},oge=(e,t)=>{const[n,r]=I.useState(t),i=I.useCallback(o=>{const{location:a,history:s}=window,l=Yu(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${_0(l)}`),r(o)},[e]);return[n,i]},age=(e,t)=>{const n=I.useRef(!0);I.useEffect(()=>{!n.current&&e(),n.current=!1},t)},Zu=()=>{const e=Co();return I.useCallback(()=>e(-1),[e])},$8=()=>{const{search:e}=Cn();return I.useMemo(()=>Yu(e),[e])},U8=(e,t)=>{const n=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=I.useState(n());return I.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},sge=({status:e,matchMedia:t=window.matchMedia})=>{const n=xs(),r=U8(991,t);return e==="validating"?g.jsx(Ne,{fixedWidth:!0,icon:g4,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:e==="valid"?g.jsx(Ne,{fixedWidth:!0,icon:Zf,className:"text-muted"}):g.jsx(Ne,{fixedWidth:!0,icon:ow,className:"text-danger"})}),g.jsx(Ir,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Zo,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},$1=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),lge=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ne,{fixedWidth:!0,icon:LY,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Ir,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),cge=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return I.useEffect(()=>{n(e.domain)},[n,e.domain]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&g.jsx(lge,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx($1,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx($1,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx($1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(sge,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(Yme,{domain:e,editDomainRedirects:t})})]})},g3=[{value:"Is default domain",isHidden:!0},{value:"Domain",isHidden:!1},{value:"Base path redirect",isHidden:!1},{value:"Regular 404 redirect",isHidden:!1},{value:"Invalid short URL redirect",isHidden:!1},{value:"Domain status",isHidden:!0},{value:"Options",isHidden:!0}],uge=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:l,error:c,errorData:d}=t,f=s??((o=a.find(({isDefault:p})=>p))==null?void 0:o.redirects);return I.useEffect(()=>{e()},[e]),l?g.jsx(qo,{loading:!0}):g.jsxs(g.Fragment,{children:[g.jsx(Zh,{className:"mb-3",onChange:n}),(()=>c?g.jsx(Wr,{type:"error",children:g.jsx(aa,{errorData:d,fallbackMessage:"Error loading domains :("})}):g.jsx(yn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:g3.map((p,m)=>g.jsx("th",{children:g.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},m))})}),g.jsxs("tbody",{children:[a.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:g3.length,className:"text-center",children:"No results found"})}),a.map(p=>g.jsx(cge,{domain:p,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:f},p.domain))]})]})}))()]})},dge="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",fge=e=>Dr(dge,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Dm="shlink/domainsList",Im={domains:[],filteredDomains:[],loading:!1,error:!1},v3=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},y3=(e,t)=>n=>n.domain!==e?n:{...n,status:t},hge=(e,t)=>{const n=Dr(`${Dm}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=Dr(`${Dm}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=In(`${Dm}/filterDomains`),{reducer:o}=dr({name:Dm,initialState:Im,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Im,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Im,error:!0,errorData:ya(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Im,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...c},{payload:d})=>({...c,domains:s.map(y3(d.domain,d.status)),filteredDomains:l.map(y3(d.domain,d.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(v3(l)),filteredDomains:s.filteredDomains.map(v3(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},pge=(e,t)=>{e.serviceFactory("DomainSelector",()=>Efe),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>uge),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",hge,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",mt("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",mt("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",mt("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",fge,"apiClientFactory"),e.serviceFactory("checkDomainHealth",mt("checkDomainHealth"),"domainsListReducerCreator")},_3="shlink/mercure",mge={loading:!0,error:!1},gge=e=>{const t=Dr(`${_3}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=dr({name:_3,initialState:mge,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}},vge=e=>{e.serviceFactory("mercureInfoReducerCreator",gge,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",mt("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",mt("loadMercureInfo"),"mercureInfoReducerCreator")};function Qt(e){return I.useRef(e).current}function Xt(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}var $c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m2={exports:{}};/** @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,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,c=n.document,d=n.Promise,f=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ue){c.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function me(){}return me.prototype=ue,new me}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var x=f;f=function(ue,me){var _e=me.signal;return x(ue,{headers:me.headers,credentials:me.credentials,cache:me.cache}).then(function(Se){var ke=Se.body.getReader();return _e._reader=ke,_e._aborted&&_e._reader.cancel(),{status:Se.status,statusText:Se.statusText,headers:Se.headers,body:{getReader:function(){return ke}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(ue){function me(ye,ve,xe){if(xe===1)return ye>=128>>ve&&ye<<ve<=2047;if(xe===2)return ye>=2048>>ve&&ye<<ve<=55295||ye>=57344>>ve&&ye<<ve<=65535;if(xe===3)return ye>=65536>>ve&&ye<<ve<=1114111;throw new Error}function _e(ye,ve){if(ye===6*1)return ve>>6>15?3:ve>31?2:1;if(ye===6*2)return ve>15?3:2;if(ye===6*3)return 3;throw new Error}for(var Se=65533,ke="",Ce=this.bitsNeeded,je=this.codePoint,ce=0;ce<ue.length;ce+=1){var fe=ue[ce];Ce!==0&&(fe<128||fe>191||!me(je<<6|fe&63,Ce-6,_e(Ce,je)))&&(Ce=0,je=Se,ke+=String.fromCharCode(je)),Ce===0?(fe>=0&&fe<=127?(Ce=0,je=fe):fe>=192&&fe<=223?(Ce=6*1,je=fe&31):fe>=224&&fe<=239?(Ce=6*2,je=fe&15):fe>=240&&fe<=247?(Ce=6*3,je=fe&7):(Ce=0,je=Se),Ce!==0&&!me(je,Ce,_e(Ce,je))&&(Ce=0,je=Se)):(Ce-=6,je=je<<6|fe&63),Ce===0&&(je<=65535?ke+=String.fromCharCode(je):(ke+=String.fromCharCode(55296+(je-65535-1>>10)),ke+=String.fromCharCode(56320+(je-65535-1&1023))))}return this.bitsNeeded=Ce,this.codePoint=je,ke};var w=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!w())&&(m=_);var S=function(){};function E(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=S}E.prototype.open=function(ue,me){this._abort(!0);var _e=this,Se=this._xhr,ke=1,Ce=0;this._abort=function(xe){_e._sendTimeout!==0&&(i(_e._sendTimeout),_e._sendTimeout=0),(ke===1||ke===2||ke===3)&&(ke=4,Se.onload=S,Se.onerror=S,Se.onabort=S,Se.onprogress=S,Se.onreadystatechange=S,Se.abort(),Ce!==0&&(i(Ce),Ce=0),xe||(_e.readyState=4,_e.onabort(null),_e.onreadystatechange())),ke=0};var je=function(){if(ke===1){var xe=0,Le="",Re=void 0;if("contentType"in Se)xe=200,Le="OK",Re=Se.contentType;else try{xe=Se.status,Le=Se.statusText,Re=Se.getResponseHeader("Content-Type")}catch{xe=0,Le="",Re=void 0}xe!==0&&(ke=2,_e.readyState=2,_e.status=xe,_e.statusText=Le,_e._contentType=Re,_e.onreadystatechange())}},ce=function(){if(je(),ke===2||ke===3){ke=3;var xe="";try{xe=Se.responseText}catch{}_e.readyState=3,_e.responseText=xe,_e.onprogress()}},fe=function(xe,Le){if((Le==null||Le.preventDefault==null)&&(Le={preventDefault:S}),ce(),ke===1||ke===2||ke===3){if(ke=4,Ce!==0&&(i(Ce),Ce=0),_e.readyState=4,xe==="load")_e.onload(Le);else if(xe==="error")_e.onerror(Le);else if(xe==="abort")_e.onabort(Le);else throw new TypeError;_e.onreadystatechange()}},ye=function(xe){Se!=null&&(Se.readyState===4?(!("onload"in Se)||!("onerror"in Se)||!("onabort"in Se))&&fe(Se.responseText===""?"error":"load",xe):Se.readyState===3?"onprogress"in Se||ce():Se.readyState===2&&je())},ve=function(){Ce=r(function(){ve()},500),Se.readyState===3&&ce()};"onload"in Se&&(Se.onload=function(xe){fe("load",xe)}),"onerror"in Se&&(Se.onerror=function(xe){fe("error",xe)}),"onabort"in Se&&(Se.onabort=function(xe){fe("abort",xe)}),"onprogress"in Se&&(Se.onprogress=ce),"onreadystatechange"in Se&&(Se.onreadystatechange=function(xe){ye(xe)}),("contentType"in Se||!("ontimeout"in o.prototype))&&(me+=(me.indexOf("?")===-1?"?":"&")+"padding=true"),Se.open(ue,me,!0),"readyState"in Se&&(Ce=r(function(){ve()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(ue){return this._contentType},E.prototype.setRequestHeader=function(ue,me){var _e=this._xhr;"setRequestHeader"in _e&&_e.setRequestHeader(ue,me)},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 ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var me=this._xhr;"withCredentials"in me&&(me.withCredentials=this.withCredentials);try{me.send(void 0)}catch(_e){throw _e}};function O(ue){return ue.replace(/[A-Z]/g,function(me){return String.fromCharCode(me.charCodeAt(0)+32)})}function k(ue){for(var me=Object.create(null),_e=ue.split(`\r
|
||
`),Se=0;Se<_e.length;Se+=1){var ke=_e[Se],Ce=ke.split(": "),je=Ce.shift(),ce=Ce.join(": ");me[O(je)]=ce}this._map=me}k.prototype.get=function(ue){return this._map[O(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function j(){}j.prototype.open=function(ue,me,_e,Se,ke,Ce,je){ue.open("GET",ke);var ce=0;ue.onprogress=function(){var ye=ue.responseText,ve=ye.slice(ce);ce+=ve.length,_e(ve)},ue.onerror=function(ye){ye.preventDefault(),Se(new Error("NetworkError"))},ue.onload=function(){Se(null)},ue.onabort=function(){Se(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var ye=ue.status,ve=ue.statusText,xe=ue.getResponseHeader("Content-Type"),Le=ue.getAllResponseHeaders();me(ye,ve,xe,new k(Le))}},ue.withCredentials=Ce;for(var fe in je)Object.prototype.hasOwnProperty.call(je,fe)&&ue.setRequestHeader(fe,je[fe]);return ue.send(),ue};function R(ue){this._headers=ue}R.prototype.get=function(ue){return this._headers.get(ue)};function U(){}U.prototype.open=function(ue,me,_e,Se,ke,Ce,je){var ce=null,fe=new y,ye=fe.signal,ve=new m;return f(ke,{headers:je,credentials:Ce?"include":"same-origin",signal:ye,cache:"no-store"}).then(function(xe){return ce=xe.body.getReader(),me(xe.status,xe.statusText,xe.headers.get("Content-Type"),new R(xe.headers)),new d(function(Le,Re){var Xe=function(){ce.read().then(function(tt){if(tt.done)Le(void 0);else{var Ge=ve.decode(tt.value,{stream:!0});_e(Ge),Xe()}}).catch(function(tt){Re(tt)})};Xe()})}).catch(function(xe){if(xe.name!=="AbortError")return xe}).then(function(xe){Se(xe)}),{abort:function(){ce!=null&&ce.cancel(),fe.abort()}}};function A(){this._listeners=Object.create(null)}function V(ue){r(function(){throw ue},0)}A.prototype.dispatchEvent=function(ue){ue.target=this;var me=this._listeners[ue.type];if(me!=null)for(var _e=me.length,Se=0;Se<_e;Se+=1){var ke=me[Se];try{typeof ke.handleEvent=="function"?ke.handleEvent(ue):ke.call(this,ue)}catch(Ce){V(Ce)}}},A.prototype.addEventListener=function(ue,me){ue=String(ue);var _e=this._listeners,Se=_e[ue];Se==null&&(Se=[],_e[ue]=Se);for(var ke=!1,Ce=0;Ce<Se.length;Ce+=1)Se[Ce]===me&&(ke=!0);ke||Se.push(me)},A.prototype.removeEventListener=function(ue,me){ue=String(ue);var _e=this._listeners,Se=_e[ue];if(Se!=null){for(var ke=[],Ce=0;Ce<Se.length;Ce+=1)Se[Ce]!==me&&ke.push(Se[Ce]);ke.length===0?delete _e[ue]:_e[ue]=ke}};function W(ue){this.type=ue,this.target=void 0}function X(ue,me){W.call(this,ue),this.data=me.data,this.lastEventId=me.lastEventId}X.prototype=Object.create(W.prototype);function G(ue,me){W.call(this,ue),this.status=me.status,this.statusText=me.statusText,this.headers=me.headers}G.prototype=Object.create(W.prototype);function K(ue,me){W.call(this,ue),this.error=me.error}K.prototype=Object.create(W.prototype);var ne=-1,le=0,Z=1,F=2,D=-1,H=0,re=1,z=2,q=3,ie=/^text\/event\-stream(;.*)?$/i,ae=1e3,he=18e6,C=function(ue,me){var _e=ue==null?me:parseInt(ue,10);return _e!==_e&&(_e=me),M(_e)},M=function(ue){return Math.min(Math.max(ue,ae),he)},$=function(ue,me,_e){try{typeof me=="function"&&me.call(ue,_e)}catch(Se){V(Se)}};function J(ue,me){A.call(this),me=me||{},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,ge(this,ue,me)}function ee(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var se=f!=null&&p!=null&&"body"in p.prototype;function ge(ue,me,_e){me=String(me);var Se=!!_e.withCredentials,ke=_e.lastEventIdQueryParameterName||"lastEventId",Ce=M(1e3),je=C(_e.heartbeatTimeout,45e3),ce="",fe=Ce,ye=!1,ve=0,xe=_e.headers||{},Le=_e.Transport,Re=se&&Le==null?void 0:new E(Le!=null?new Le:ee()),Xe=Le!=null&&typeof Le!="string"?new Le:Re==null?new U:new j,tt=void 0,Ge=0,Jt=ne,Ht="",kn="",fr="",Xi="",Hn=H,ed=0,Ji=0,vp=function(mn,sn,hr,Wn){if(Jt===le)if(mn===200&&hr!=null&&ie.test(hr)){Jt=Z,ye=Date.now(),fe=Ce,ue.readyState=Z;var Yn=new G("open",{status:mn,statusText:sn,headers:Wn});ue.dispatchEvent(Yn),$(ue,ue.onopen,Yn)}else{var bn="";mn!==200?(sn&&(sn=sn.replace(/\s+/g," ")),bn="EventSource's response has a status "+mn+" "+sn+" that is not 200. Aborting the connection."):bn="EventSource's response has a Content-Type specifying an unsupported type: "+(hr==null?"-":hr.replace(/\s+/g," "))+". Aborting the connection.",td();var Yn=new G("error",{status:mn,statusText:sn,headers:Wn});ue.dispatchEvent(Yn),$(ue,ue.onerror,Yn),console.error(bn)}},yp=function(mn){if(Jt===Z){for(var sn=-1,hr=0;hr<mn.length;hr+=1){var Wn=mn.charCodeAt(hr);(Wn===`
|
||
`.charCodeAt(0)||Wn==="\r".charCodeAt(0))&&(sn=hr)}var Yn=(sn!==-1?Xi:"")+mn.slice(0,sn+1);Xi=(sn===-1?Xi:"")+mn.slice(sn+1),mn!==""&&(ye=Date.now(),ve+=mn.length);for(var bn=0;bn<Yn.length;bn+=1){var Wn=Yn.charCodeAt(bn);if(Hn===D&&Wn===`
|
||
`.charCodeAt(0))Hn=H;else if(Hn===D&&(Hn=H),Wn==="\r".charCodeAt(0)||Wn===`
|
||
`.charCodeAt(0)){if(Hn!==H){Hn===re&&(Ji=bn+1);var Pi=Yn.slice(ed,Ji-1),Li=Yn.slice(Ji+(Ji<bn&&Yn.charCodeAt(Ji)===" ".charCodeAt(0)?1:0),bn);Pi==="data"?(Ht+=`
|
||
`,Ht+=Li):Pi==="id"?kn=Li:Pi==="event"?fr=Li:Pi==="retry"?(Ce=C(Li,Ce),fe=Ce):Pi==="heartbeatTimeout"&&(je=C(Li,je),Ge!==0&&(i(Ge),Ge=r(function(){Cs()},je)))}if(Hn===H){if(Ht!==""){ce=kn,fr===""&&(fr="message");var Gn=new X(fr,{data:Ht.slice(1),lastEventId:kn});if(ue.dispatchEvent(Gn),fr==="open"?$(ue,ue.onopen,Gn):fr==="message"?$(ue,ue.onmessage,Gn):fr==="error"&&$(ue,ue.onerror,Gn),Jt===F)return}Ht="",fr=""}Hn=Wn==="\r".charCodeAt(0)?D:H}else Hn===H&&(ed=bn,Hn=re),Hn===re?Wn===":".charCodeAt(0)&&(Ji=bn+1,Hn=z):Hn===z&&(Hn=q)}}},_p=function(mn){if(Jt===Z||Jt===le){Jt=ne,Ge!==0&&(i(Ge),Ge=0),Ge=r(function(){Cs()},fe),fe=M(Math.min(Ce*16,fe*2)),ue.readyState=le;var sn=new K("error",{error:mn});ue.dispatchEvent(sn),$(ue,ue.onerror,sn),mn!=null&&console.error(mn)}},td=function(){Jt=F,tt!=null&&(tt.abort(),tt=void 0),Ge!==0&&(i(Ge),Ge=0),ue.readyState=F},Cs=function(){if(Ge=0,Jt!==ne){if(!ye&&tt!=null)_p(new Error("No activity within "+je+" milliseconds. "+(Jt===le?"No response received.":ve+" chars received.")+" Reconnecting.")),tt!=null&&(tt.abort(),tt=void 0);else{var mn=Math.max((ye||Date.now())+je-Date.now(),1);ye=!1,Ge=r(function(){Cs()},mn)}return}ye=!1,ve=0,Ge=r(function(){Cs()},je),Jt=le,Ht="",fr="",kn=ce,Xi="",ed=0,Ji=0,Hn=H;var sn=me;if(me.slice(0,5)!=="data:"&&me.slice(0,5)!=="blob:"&&ce!==""){var hr=me.indexOf("?");sn=hr===-1?me:me.slice(0,hr+1)+me.slice(hr+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Li,Gn){return Gn===ke?"":Li}),sn+=(me.indexOf("?")===-1?"?":"&")+ke+"="+encodeURIComponent(ce)}var Wn=ue.withCredentials,Yn={};Yn.Accept="text/event-stream";var bn=ue.headers;if(bn!=null)for(var Pi in bn)Object.prototype.hasOwnProperty.call(bn,Pi)&&(Yn[Pi]=bn[Pi]);try{tt=Xe.open(Re,vp,yp,_p,sn,Wn,Yn)}catch(Li){throw td(),Li}};ue.url=me,ue.readyState=le,ue.withCredentials=Se,ue.headers=xe,ue._close=td,Cs()}J.prototype=Object.create(A.prototype),J.prototype.CONNECTING=le,J.prototype.OPEN=Z,J.prototype.CLOSED=F,J.prototype.close=function(){this._close()},J.CONNECTING=le,J.OPEN=Z,J.CLOSED=F,J.prototype.withCredentials=void 0;var Me=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Me=J),function(ue){{var me=ue(t);me!==void 0&&(e.exports=me)}}(function(ue){ue.EventSourcePolyfill=J,ue.NativeEventSource=l,ue.EventSource=Me})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:$c:globalThis)})(m2,m2.exports);var yge=m2.exports;const _ge=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:f})=>n(JSON.parse(f)),c=({status:f})=>f===401&&r(),d=t.map(f=>{const p=new URL(i);p.searchParams.append("topic",f);const m=new yge.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>d.forEach(f=>f.close())};function Ts(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Fl();return I.useEffect(()=>{const{interval:l}=a,c=m=>l?n.add(m):i([m]),d=t(s),f=_ge(a,d,c,o);if(!l)return f;const p=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return Yr(()=>clearInterval(p),()=>f==null?void 0:f())},[i,o,a,s]),g.jsx(e,{...r})}}class vi{}Te(vi,"visits","https://shlink.io/new-visit"),Te(vi,"orphanVisits","https://shlink.io/new-orphan-visit"),Te(vi,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const VT="shlink/shortUrlDeletion",b3={shortCode:"",loading:!1,deleted:!1,error:!1},bge=e=>Dr(`${VT}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),B8=In(`${VT}/shortUrlDeleted`),wge=e=>{const{actions:t,reducer:n}=dr({name:VT,initialState:b3,reducers:{resetDeleteShortUrl:()=>b3},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:ya(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},z8="shlink/shortUrlsList",V8=5,xge={loading:!0,error:!1},Sge=e=>Dr(`${z8}/listShortUrls`,t=>e().listShortUrls(t??{})),Ege=(e,t,n)=>dr({name:z8,initialState:xge,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,Yr((i,{payload:o})=>i.shortUrls?dc(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,V8-1)],i):i,i=>i.shortUrls?dc(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?dc(["shortUrls","data"],i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Tf(a,s,l)?o:a}),i):i),r.addCase(B8,Yr((i,{payload:o})=>i.shortUrls?dc(["shortUrls","data"],ET(a=>Tf(a,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?dc(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(ap,(i,{payload:o})=>{var a,s;return dc(["shortUrls","data"],(s=(a=i.shortUrls)==null?void 0:a.data)==null?void 0:s.map(l=>{var c;return((c=Zde(o.createdVisits.filter(({shortUrl:d})=>d&&Tf(l,d.shortCode,d.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),w3=10,{ceil:Tge}=Math,Oge=new Intl.NumberFormat("en-US"),En=e=>Oge.format(Number(e)),Cge=e=>Tge(e/w3)*w3,kge={field:"dateCreated",dir:"DESC"},H8={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:kge}},W8=I.createContext(H8),Pge=W8.Provider,HT=()=>I.useContext(W8)??H8,Hl=e=>HT()[e],g2=({children:e,title:t,link:n,tooltip:r})=>{const i=xs();return g.jsxs(g.Fragment,{children:[g.jsxs(Kr,{innerRef:i,className:"highlight-card",body:!0,tag:Ft,to:n,children:[g.jsx(Ne,{size:"3x",className:"highlight-card__link-icon",icon:aoe}),g.jsx(NI,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),g.jsx(MI,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&g.jsx(Ir,{target:i,placement:"bottom",children:r})]})},x3=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(g2,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:En(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":En(t&&n.nonBots?n.nonBots:n.total)}),Y8=Ts(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=Qt(Y8),{loading:s,shortUrls:l}=e,{loading:c}=n,{loading:d,nonOrphanVisits:f,orphanVisits:p}=i,m=zl(),v=Co(),y=Hl("visits");return I.useEffect(()=>{t({itemsPerPage:V8,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),g.jsxs(g.Fragment,{children:[g.jsxs(_r,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(x3,{title:"Visits",link:`${m}/non-orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:d,visitsSummary:f})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(x3,{title:"Orphan visits",link:`${m}/orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:d,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(g2,{title:"Short URLs",link:`${m}/list-short-urls/1`,children:s?"Loading...":En((l==null?void 0:l.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(g2,{title:"Tags",link:`${m}/manage-tags`,children:c?"Loading...":En(n.tags.length)})})]}),g.jsxs(Kr,{className:"mb-3",children:[g.jsxs(vu,{children:[g.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),g.jsx(Ft,{className:"float-end",to:`${m}/create-short-url`,children:"Advanced options »"})]}),g.jsx(gu,{children:g.jsx(a,{basicMode:!0})})]}),g.jsxs(Kr,{children:[g.jsxs(vu,{children:[g.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),g.jsx(Ft,{className:"float-end",to:`${m}/list-short-urls/1`,children:"See all »"})]}),g.jsx(gu,{children:g.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>v(`${m}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[vi.visits,vi.orphanVisits]),Lge=Xt(Y8,["ShortUrlsTable","CreateShortUrl"]);function jge(e,t){e.factory("Overview",Lge),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const Mge=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}),G8=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=Qt(G8),a=Hl("shortUrlCreation"),s=I.useMemo(()=>Mge(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(i,{initialState:s,saving:t.saving,mode:r?"create-basic":"create",onSave:async l=>(n(),e(l))}),g.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},Nge=Xt(G8,["ShortUrlForm","CreateShortUrlResult"]),q8=({shortUrlDetail:e,getShortUrlDetail:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Qt(q8),{search:o}=Cn(),a=Fl(),s=Zu(),{loading:l,error:c,errorData:d,shortUrl:f}=e,{saving:p,saved:m,error:v,errorData:y}=n,{domain:x}=Yu(o),_=Hl("shortUrlCreation"),w=I.useMemo(()=>Ffe(f,_),[f,_]);return I.useEffect(()=>{a.shortCode&&t({shortCode:xg(a.shortCode),domain:x})},[x,t,a.shortCode]),l?g.jsx(qo,{loading:!0}):c?g.jsx(Wr,{type:"error",children:g.jsx(aa,{errorData:d,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(Kr,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(yt,{color:"link",size:"lg",className:"p-0 me-3",onClick:s,"aria-label":"Go back",children:g.jsx(Ne,{icon:_4})}),g.jsx("span",{className:"text-center",children:g.jsxs("small",{children:["Edit ",g.jsx(Zo,{href:(f==null?void 0:f.shortUrl)??""})]})}),g.jsx("span",{})]})})}),g.jsx(i,{initialState:w,saving:p,mode:"edit",onSave:async S=>{f&&r({...f,data:S})}}),m&&v&&g.jsx(Wr,{type:"error",className:"mt-3",children:g.jsx(aa,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),m&&!v&&g.jsx(Wr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},Age=Xt(q8,["ShortUrlForm"]);var M0={},Rge=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()}},Dge=Rge,S3={"text/plain":"Text","text/html":"Url",default:"Text"},Ige="Copy to clipboard: #{key}, Enter";function Fge(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function $ge(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Dge(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=S3[t.format]||S3.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=Fge("message"in t?t.message:Ige),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Uge=$ge;function v2(e){"@babel/helpers - typeof";return v2=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},v2(e)}Object.defineProperty(M0,"__esModule",{value:!0});M0.CopyToClipboard=void 0;var Fm=Z8(Y),Bge=Z8(Uge),zge=["text","onCopy","options","children"];function Z8(e){return e&&e.__esModule?e:{default:e}}function E3(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 T3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E3(Object(n),!0).forEach(function(r){WT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vge(e,t){if(e==null)return{};var n=Hge(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 Hge(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 Wge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O3(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 Yge(e,t,n){return t&&O3(e.prototype,t),n&&O3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gge(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&&y2(e,t)}function y2(e,t){return y2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},y2(e,t)}function qge(e){var t=Kge();return function(){var n=cy(e),r;if(t){var i=cy(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Zge(this,r)}}function Zge(e,t){if(t&&(v2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K8(e)}function K8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kge(){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 cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cy(e)}function WT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q8=function(e){Gge(n,e);var t=qge(n);function n(){var r;Wge(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),WT(K8(r),"onClick",function(s){var l=r.props,c=l.text,d=l.onCopy,f=l.children,p=l.options,m=Fm.default.Children.only(f),v=(0,Bge.default)(c,p);d&&d(c,v),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(s)}),r}return Yge(n,[{key:"render",value:function(){var r=this.props;r.text,r.onCopy,r.options;var i=r.children,o=Vge(r,zge),a=Fm.default.Children.only(i);return Fm.default.cloneElement(a,T3(T3({},o),{},{onClick:this.onClick}))}}]),n}(Fm.default.PureComponent);M0.CopyToClipboard=Q8;WT(Q8,"defaultProps",{onCopy:void 0,options:void 0});var Qge=M0,_2=Qge.CopyToClipboard;_2.CopyToClipboard=_2;var Xge=_2;const X8=Ku(Xge),J8=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=Qt(J8),[i,o]=r(),{error:a,saved:s}=e;if(I.useEffect(()=>{t()},[t]),a)return g.jsxs(Wr,{type:"error",className:"mt-3",children:[n&&g.jsx(Ne,{"data-testid":"error-close-button",icon:ow,className:"float-end pointer",onClick:t}),g.jsx(aa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return g.jsxs(Wr,{type:"success",className:"mt-3",children:[n&&g.jsx(Ne,{"data-testid":"success-close-button",icon:ow,className:"float-end pointer",onClick:t}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:l})]}),g.jsx(X8,{text:l,onCopy:o,children:g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[g.jsx(Ne,{icon:P6})," Copy"]})}),g.jsx(Gh,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},Jge=Xt(J8,["useTimeoutToggle"]),U1="delete",eve=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=I.useState("");I.useEffect(()=>i,[i]);const{loading:c,error:d,deleted:f,errorData:p}=r,m=Yr(i,t),v=I.useCallback(y=>(y.preventDefault(),o(e).then(t)),[o,e,t]);return g.jsx(pa,{isOpen:n,toggle:m,centered:!0,onClosed:()=>f&&a(e),children:g.jsxs("form",{onSubmit:v,children:[g.jsx(ma,{toggle:m,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(ko,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:U1})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${U1}`,value:s,onChange:y=>l(y.target.value)}),d&&g.jsx(Wr,{type:Ofe(p)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs($l,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==U1||c,children:c?"Deleting...":"Delete"})]})]})})},eF=({amount:e=0,loading:t=!1,...n})=>g.jsxs(yt,{...n,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ne,{icon:TY})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",En(e),")"]})]}),N0=()=>{const e=Co(),t=zl(),n=$8(),r=I.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:c,...d}=n,f=o?one(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...d,orderBy:f,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}},[n]),i=I.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:c,excludeMaxVisitsReached:d,excludePastValidUntil:f,...p}=a,m={...p,orderBy:s&&ine(s),tags:l.length>0?l.join(","):void 0,excludeBots:I1(c),excludeMaxVisitsReached:I1(d),excludePastValidUntil:I1(f)},v=_0(m),y=Qi(v)?"":`?${v}`;e(`${t}/list-short-urls/1${y}`)},[r,e,t]);return[r,i]},C3=20,tF=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Qt(tF),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=N0(),[c,,d,f]=On(),p=I.useCallback(async()=>{const m=e/C3,v=async(x=1)=>{const{data:_}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:C3});return x>=m?_:_.concat(await v(x+1))};d();const y=await v();n.exportShortUrls(y.map(x=>{var _;const{hostname:w,pathname:S}=new URL(x.shortUrl),E=S.substring(1);return{createdAt:x.dateCreated,domain:w,shortCode:E,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((_=x==null?void 0:x.visitsSummary)==null?void 0:_.total)??x.visitsCount}})),f()},[e,t,a,s,n,i,o,d,f,r,l]);return g.jsx(eF,{loading:c,className:"btn-md-block",amount:e,onClick:p})},tve=Xt(tF,["apiClientFactory","ReportExporter"]),nF=({text:e,onCopy:t})=>g.jsx(X8,{text:e,onCopy:t,children:g.jsx(Ne,{icon:P6,className:"ms-2 copy-to-clipboard-icon"})}),nve=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=_0({...n,margin:t>0?t:void 0});return`${r}${Qi(i)?"":`?${i}`}`},rve=({errorCorrection:e,setErrorCorrection:t})=>g.jsxs(ga,{text:`Error correction (${e})`,children:[g.jsxs(Ue,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ue,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ue,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ue,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),ive=({format:e,setFormat:t})=>g.jsxs(ga,{text:`Format (${e})`,children:[g.jsx(Ue,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ue,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),rF=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=Qt(rF),[o,a]=I.useState(300),[s,l]=I.useState(0),[c,d]=I.useState("png"),[f,p]=I.useState("L"),m=I.useMemo(()=>nve(e,{size:o,format:c,margin:s,errorCorrection:f}),[e,o,c,s,f]),v=I.useMemo(()=>o+s,[o,s]),y=I.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return g.jsxs(pa,{isOpen:r,toggle:n,centered:!0,size:y,children:[g.jsxs(ma,{toggle:n,children:["QR code for ",g.jsx(Zo,{href:e,children:e})]}),g.jsxs(ko,{children:[g.jsxs(_r,{children:[g.jsxs(Vr,{className:"d-grid col-md-6",children:[g.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),g.jsx("input",{id:"sizeControl",type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>a(Number(x.target.value))})]}),g.jsxs(Vr,{className:"d-grid col-md-6",children:[g.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),g.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),g.jsx(Vr,{className:"d-grid col-md-6",children:g.jsx(ive,{format:c,setFormat:d})}),g.jsx(Vr,{className:"col-md-6",children:g.jsx(rve,{errorCorrection:f,setErrorCorrection:p})})]}),g.jsxs("div",{className:"text-center",children:[g.jsxs("div",{className:"mb-3",children:[g.jsx(Zo,{href:m}),g.jsx(nF,{text:m})]}),g.jsx("img",{src:m,className:"qr-code-modal__img",alt:"QR code"}),g.jsx("div",{className:"mt-3",children:g.jsxs(yt,{block:!0,color:"primary",onClick:()=>{i.saveImage(m,`${t}-qr-code.${c}`).catch(()=>{})},children:["Download ",g.jsx(Ne,{icon:b4,className:"ms-1"})]})})]})]})]})},ove=Xt(rF,["ImageDownloader"]),uy=({date:e,format:t=FT,relative:n=!1})=>{const r=$T(e)?e:sa(e);return g.jsx("time",{dateTime:`${gpe(r)}000`,children:n?`${upe(ms(),r)} ago`:Pu(r,t)})},ave=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n;return i&&s>=i?{icon:gG,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&Vi(Hi(a),ms())?{icon:lP,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:sy(Hi(a))}),"."]})}:o&&Vi(ms(),Hi(o))?{icon:lP,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:sy(Hi(o))}),"."]})}:{icon:Zf,className:"text-primary",description:"This short URL can be visited normally."}},sve=({shortUrl:e})=>{const t=xs(),{icon:n,className:r,description:i}=ave(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(Ne,{icon:n,className:r})}),g.jsx(Ir,{target:t,placement:"bottom",children:i})]})};var iF={exports:{}};/*!
|
||
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 a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(iF);var lve=iF.exports;const Qe=Ku(lve),cve=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${$fe(t)}/${r}${i}`},b2=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=zl();return!n||!e?g.jsx("span",{...i,children:r}):g.jsx(Ft,{to:cve(o,e,t),...i,children:r})},oF=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=xs(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,c=g.jsx(b2,{shortUrl:t,suffix:"visits",asLink:r,children:g.jsx("strong",{className:Qe("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:En(e)})});return l?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[c,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&g.jsxs(g.Fragment,{children:[" / ",En(o)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ne,{icon:nE})})]})]}),g.jsx(Ir,{target:i,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:En(o)})," visit",o===1?"":"s","."]}),a&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:sy(Hi(a))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:sy(Hi(s))}),"."]})]})})]}):c},Th=({style:e,className:t,...n})=>g.jsx("button",{type:"button",className:Qe("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",...e},...n}),uve=e=>!!e.onClose,dve=e=>!!e.onClick,YT=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=dve(e),a=o?Th:"span",s=I.useMemo(()=>i.isColorLightForKey(t),[t,i]);return g.jsxs(a,{className:Qe("badge tag fw-bold",r,{"tag--light-bg":s,pointer:o}),style:{backgroundColor:i.getColorForKey(t)},onClick:o?e.onClick:void 0,children:[n??t,uve(e)&&g.jsx(Th,{"aria-label":`Remove ${t}`,className:Qe("bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",{"tag--light-bg":s}),onClick:e.onClose,children:"×"})]})},fve=({tags:e,onTagClick:t,colorGenerator:n})=>Qi(e)?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(r=>g.jsx(YT,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),aF=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=Qt(aF),[c,d]=l(),[f,p]=l(!1,500),m=I.useRef(!0),[{excludeBots:v}]=N0(),y=Hl("visits"),x=v??(y==null?void 0:y.excludeBots);return I.useEffect(()=>{!m.current&&p(),m.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,p]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(uy,{date:e.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Zo,{href:e.shortUrl})}),g.jsx(nF,{text:e.shortUrl,onCopy:d}),g.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!c,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:g.jsx(Zo,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Zo,{href:e.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(fve,{tags:e.tags,colorGenerator:s,onTagClick:t})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(oF,{visitsCount:(x?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount,shortUrl:e,active:f,asLink:!0})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsx(sve,{shortUrl:e})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(a,{shortUrl:e})})]})},hve=Xt(aF,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),sF=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=Qt(sF),[r,,i,o]=On(),[a,,s,l]=On();return g.jsxs(v0,{minWidth:190,children:[g.jsxs(Ue,{tag:b2,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ne,{icon:tE,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{tag:b2,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ne,{icon:eE,fixedWidth:!0})," Edit short URL"]}),g.jsxs(Ue,{onClick:i,children:[g.jsx(Ne,{icon:pG,fixedWidth:!0})," QR code"]}),g.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:s,children:[g.jsx(Ne,{icon:JS,fixedWidth:!0})," Delete short URL"]}),g.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},pve=Xt(sF,["DeleteShortUrlModal","QrCodeModal"]),lF="shlink/shortUrlCreation",k3={saving:!1,saved:!1,error:!1},mve=e=>Dr(`${lF}/createShortUrl`,t=>e().createShortUrl(t)),gve=e=>{const{reducer:t,actions:n}=dr({name:lF,initialState:k3,reducers:{resetCreateShortUrl:()=>k3},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:ya(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},P3="shlink/shortUrlDetail",L3={loading:!1,error:!1},vve=e=>{const t=Dr(`${P3}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var a;const{shortUrlsList:s}=o();return((a=s==null?void 0:s.shortUrls)==null?void 0:a.data.find(l=>Tf(l,r,i)))??await e().getShortUrl(r,i)}),{reducer:n}=dr({name:P3,initialState:L3,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:ya(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...L3,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},cF="shlink/shortUrlEdition",yve={saving:!1,saved:!1,error:!1},_ve=e=>Dr(`${cF}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),bve=e=>dr({name:cF,initialState:yve,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:ya(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),wve=({icon:e,className:t,...n})=>{const r=xs(),i=Qe("icon-input-container__input",t);return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(El,{className:i,innerRef:r,...n}),g.jsx(Ne,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})};function xve(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,w2(e,t)}function w2(e,t){return w2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},w2(e,t)}function Sve(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 j3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eve(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Tve(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Eve(e,t,n))return!0;e=e.parentNode||e.host}return e}function Ove(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Cve=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};function kve(e){return e===void 0&&(e=0),function(){return++e}}var Pve=kve(),x2,$m={},B1={},Lve=["touchstart","touchmove"],jve="ignore-react-onclickoutside";function M3(e,t){var n={},r=Lve.indexOf(t)!==-1;return r&&x2&&(n.passive=!e.props.preventDefault),n}function A0(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){xve(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(d){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(d);return}var f=c.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(d);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(d);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var d=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(d):typeof d.setClickOutsideRef=="function"?d.setClickOutsideRef():Rl.findDOMNode(d)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||B1[c._uid])){typeof x2>"u"&&(x2=Cve()),B1[c._uid]=!0;var d=c.props.eventTypes;d.forEach||(d=[d]),$m[c._uid]=function(f){if(c.componentNode!==null&&(c.props.preventDefault&&f.preventDefault(),c.props.stopPropagation&&f.stopPropagation(),!(c.props.excludeScrollbar&&Ove(f)))){var p=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Tve(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(f)}},d.forEach(function(f){document.addEventListener(f,$m[c._uid],M3(j3(c),f))})}},c.disableOnClickOutside=function(){delete B1[c._uid];var d=$m[c._uid];if(d&&typeof document<"u"){var f=c.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(p){return document.removeEventListener(p,d,M3(j3(c),p))}),delete $m[c._uid]}},c.getRef=function(d){return c.instanceRef=d},c._uid=Pve(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var l=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(l),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()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var l=this.props;l.excludeScrollbar;var c=Sve(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?c.ref=this.getRef:c.wrappedRef=this.getRef,c.disableOnClickOutside=this.disableOnClickOutside,c.enableOnClickOutside=this.enableOnClickOutside,I.createElement(e,c)},a}(I.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:jve,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var uF=I.createContext(),dF=I.createContext();function Mve(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(uF.Provider,{value:r},I.createElement(dF.Provider,{value:a},t))}var fF=function(e){return Array.isArray(e)?e[0]:e},hF=function(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},S2=function(e,t){if(typeof e=="function")return hF(e,t);e!=null&&(e.current=t)},N3=function(e){return e.reduce(function(t,n){var r=n[0],i=n[1];return t[r]=i,t},{})},A3=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Ar="top",Ei="bottom",Ti="right",Rr="left",GT="auto",up=[Ar,Ei,Ti,Rr],Mu="start",Oh="end",Nve="clippingParents",pF="viewport",Ad="popper",Ave="reference",R3=up.reduce(function(e,t){return e.concat([t+"-"+Mu,t+"-"+Oh])},[]),mF=[].concat(up,[GT]).reduce(function(e,t){return e.concat([t,t+"-"+Mu,t+"-"+Oh])},[]),Rve="beforeRead",Dve="read",Ive="afterRead",Fve="beforeMain",$ve="main",Uve="afterMain",Bve="beforeWrite",zve="write",Vve="afterWrite",Hve=[Rve,Dve,Ive,Fve,$ve,Uve,Bve,zve,Vve];function Oo(e){return e?(e.nodeName||"").toLowerCase():null}function Jr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ll(e){var t=Jr(e).Element;return e instanceof t||e instanceof Element}function yi(e){var t=Jr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qT(e){if(typeof ShadowRoot>"u")return!1;var t=Jr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Wve(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];!yi(o)||!Oo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Yve(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!yi(i)||!Oo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Gve={name:"applyStyles",enabled:!0,phase:"write",fn:Wve,effect:Yve,requires:["computeStyles"]};function xo(e){return e.split("-")[0]}var pl=Math.max,dy=Math.min,Nu=Math.round;function E2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gF(){return!/^((?!chrome|android).)*safari/i.test(E2())}function Au(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&yi(e)&&(i=e.offsetWidth>0&&Nu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Nu(r.height)/e.offsetHeight||1);var a=Ll(e)?Jr(e):window,s=a.visualViewport,l=!gF()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,d=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ZT(e){var t=Au(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 vF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function la(e){return Jr(e).getComputedStyle(e)}function qve(e){return["table","td","th"].indexOf(Oo(e))>=0}function Os(e){return((Ll(e)?e.ownerDocument:e.document)||window.document).documentElement}function R0(e){return Oo(e)==="html"?e:e.assignedSlot||e.parentNode||(qT(e)?e.host:null)||Os(e)}function D3(e){return!yi(e)||la(e).position==="fixed"?null:e.offsetParent}function Zve(e){var t=/firefox/i.test(E2()),n=/Trident/i.test(E2());if(n&&yi(e)){var r=la(e);if(r.position==="fixed")return null}var i=R0(e);for(qT(i)&&(i=i.host);yi(i)&&["html","body"].indexOf(Oo(i))<0;){var o=la(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 dp(e){for(var t=Jr(e),n=D3(e);n&&qve(n)&&la(n).position==="static";)n=D3(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&la(n).position==="static")?t:n||Zve(e)||t}function KT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Of(e,t,n){return pl(e,dy(t,n))}function Kve(e,t,n){var r=Of(e,t,n);return r>n?n:r}function yF(){return{top:0,right:0,bottom:0,left:0}}function _F(e){return Object.assign({},yF(),e)}function bF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Qve=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,_F(typeof e!="number"?e:bF(e,up))};function Xve(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xo(n.placement),l=KT(s),c=[Rr,Ti].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var f=Qve(i.padding,n),p=ZT(o),m=l==="y"?Ar:Rr,v=l==="y"?Ei:Ti,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],_=dp(o),w=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-x/2,E=f[m],O=w-p[d]-f[v],k=w/2-p[d]/2+S,j=Of(E,k,O),R=l;n.modifiersData[r]=(t={},t[R]=j,t.centerOffset=j-k,t)}}function Jve(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)||vF(t.elements.popper,i)&&(t.elements.arrow=i))}const eye={name:"arrow",enabled:!0,phase:"main",fn:Xve,effect:Jve,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ru(e){return e.split("-")[1]}var tye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nye(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Nu(n*i)/i||0,y:Nu(r*i)/i||0}}function I3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof d=="function"?d({x:m,y}):{x:m,y};m=x.x,y=x.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Rr,E=Ar,O=window;if(c){var k=dp(n),j="clientHeight",R="clientWidth";if(k===Jr(n)&&(k=Os(n),la(k).position!=="static"&&s==="absolute"&&(j="scrollHeight",R="scrollWidth")),k=k,i===Ar||(i===Rr||i===Ti)&&o===Oh){E=Ei;var U=f&&k===O&&O.visualViewport?O.visualViewport.height:k[j];y-=U-r.height,y*=l?1:-1}if(i===Rr||(i===Ar||i===Ei)&&o===Oh){S=Ti;var A=f&&k===O&&O.visualViewport?O.visualViewport.width:k[R];m-=A-r.width,m*=l?1:-1}}var V=Object.assign({position:s},c&&tye),W=d===!0?nye({x:m,y},Jr(n)):{x:m,y};if(m=W.x,y=W.y,l){var X;return Object.assign({},V,(X={},X[E]=w?"0":"",X[S]=_?"0":"",X.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",X))}return Object.assign({},V,(t={},t[E]=w?y+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function rye(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:xo(t.placement),variation:Ru(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,I3(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,I3(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 iye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rye,data:{}};var Um={passive:!0};function oye(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Jr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,Um)}),s&&l.addEventListener("resize",n.update,Um),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Um)}),s&&l.removeEventListener("resize",n.update,Um)}}const aye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oye,data:{}};var sye={left:"right",right:"left",bottom:"top",top:"bottom"};function Cg(e){return e.replace(/left|right|bottom|top/g,function(t){return sye[t]})}var lye={start:"end",end:"start"};function F3(e){return e.replace(/start|end/g,function(t){return lye[t]})}function QT(e){var t=Jr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function XT(e){return Au(Os(e)).left+QT(e).scrollLeft}function cye(e,t){var n=Jr(e),r=Os(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=gF();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+XT(e),y:l}}function uye(e){var t,n=Os(e),r=QT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+XT(e),l=-r.scrollTop;return la(i||n).direction==="rtl"&&(s+=pl(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function JT(e){var t=la(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function wF(e){return["html","body","#document"].indexOf(Oo(e))>=0?e.ownerDocument.body:yi(e)&&JT(e)?e:wF(R0(e))}function Cf(e,t){var n;t===void 0&&(t=[]);var r=wF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Jr(r),a=i?[o].concat(o.visualViewport||[],JT(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Cf(R0(a)))}function T2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dye(e,t){var n=Au(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 $3(e,t,n){return t===pF?T2(cye(e,n)):Ll(t)?dye(t,n):T2(uye(Os(e)))}function fye(e){var t=Cf(R0(e)),n=["absolute","fixed"].indexOf(la(e).position)>=0,r=n&&yi(e)?dp(e):e;return Ll(r)?t.filter(function(i){return Ll(i)&&vF(i,r)&&Oo(i)!=="body"}):[]}function hye(e,t,n,r){var i=t==="clippingParents"?fye(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var d=$3(e,c,r);return l.top=pl(d.top,l.top),l.right=dy(d.right,l.right),l.bottom=dy(d.bottom,l.bottom),l.left=pl(d.left,l.left),l},$3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function xF(e){var t=e.reference,n=e.element,r=e.placement,i=r?xo(r):null,o=r?Ru(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ar:l={x:a,y:t.y-n.height};break;case Ei:l={x:a,y:t.y+t.height};break;case Ti:l={x:t.x+t.width,y:s};break;case Rr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?KT(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Mu:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Oh:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Ch(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Nve:s,c=n.rootBoundary,d=c===void 0?pF:c,f=n.elementContext,p=f===void 0?Ad:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,_=_F(typeof x!="number"?x:bF(x,up)),w=p===Ad?Ave:Ad,S=e.rects.popper,E=e.elements[v?w:p],O=hye(Ll(E)?E:E.contextElement||Os(e.elements.popper),l,d,a),k=Au(e.elements.reference),j=xF({reference:k,element:S,strategy:"absolute",placement:i}),R=T2(Object.assign({},S,j)),U=p===Ad?R:k,A={top:O.top-U.top+_.top,bottom:U.bottom-O.bottom+_.bottom,left:O.left-U.left+_.left,right:U.right-O.right+_.right},V=e.modifiersData.offset;if(p===Ad&&V){var W=V[i];Object.keys(A).forEach(function(X){var G=[Ti,Ei].indexOf(X)>=0?1:-1,K=[Ar,Ei].indexOf(X)>=0?"y":"x";A[X]+=W[K]*G})}return A}function pye(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?mF:l,d=Ru(r),f=d?s?R3:R3.filter(function(v){return Ru(v)===d}):up,p=f.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=Ch(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[xo(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function mye(e){if(xo(e)===GT)return[];var t=Cg(e);return[F3(e),t,F3(t)]}function gye(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,_=xo(x),w=_===x,S=l||(w||!v?[Cg(x)]:mye(x)),E=[x].concat(S).reduce(function(q,ie){return q.concat(xo(ie)===GT?pye(t,{placement:ie,boundary:d,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:y}):ie)},[]),O=t.rects.reference,k=t.rects.popper,j=new Map,R=!0,U=E[0],A=0;A<E.length;A++){var V=E[A],W=xo(V),X=Ru(V)===Mu,G=[Ar,Ei].indexOf(W)>=0,K=G?"width":"height",ne=Ch(t,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),le=G?X?Ti:Rr:X?Ei:Ar;O[K]>k[K]&&(le=Cg(le));var Z=Cg(le),F=[];if(o&&F.push(ne[W]<=0),s&&F.push(ne[le]<=0,ne[Z]<=0),F.every(function(q){return q})){U=V,R=!1;break}j.set(V,F)}if(R)for(var D=v?3:1,H=function(q){var ie=E.find(function(ae){var he=j.get(ae);if(he)return he.slice(0,q).every(function(C){return C})});if(ie)return U=ie,"break"},re=D;re>0;re--){var z=H(re);if(z==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const vye={name:"flip",enabled:!0,phase:"main",fn:gye,requiresIfExists:["offset"],data:{_skip:!1}};function U3(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 B3(e){return[Ar,Ti,Ei,Rr].some(function(t){return e[t]>=0})}function yye(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ch(t,{elementContext:"reference"}),s=Ch(t,{altBoundary:!0}),l=U3(a,r),c=U3(s,i,o),d=B3(l),f=B3(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const _ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yye};function bye(e,t,n){var r=xo(e),i=[Rr,Ar].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Rr,Ti].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function wye(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=mF.reduce(function(d,f){return d[f]=bye(f,t.rects,o),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const xye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wye};function Sye(e){var t=e.state,n=e.name;t.modifiersData[n]=xF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Eye={name:"popperOffsets",enabled:!0,phase:"read",fn:Sye,data:{}};function Tye(e){return e==="x"?"y":"x"}function Oye(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=Ch(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),_=xo(t.placement),w=Ru(t.placement),S=!w,E=KT(_),O=Tye(E),k=t.modifiersData.popperOffsets,j=t.rects.reference,R=t.rects.popper,U=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(k){if(o){var X,G=E==="y"?Ar:Rr,K=E==="y"?Ei:Ti,ne=E==="y"?"height":"width",le=k[E],Z=le+x[G],F=le-x[K],D=m?-R[ne]/2:0,H=w===Mu?j[ne]:R[ne],re=w===Mu?-R[ne]:-j[ne],z=t.elements.arrow,q=m&&z?ZT(z):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yF(),ae=ie[G],he=ie[K],C=Of(0,j[ne],q[ne]),M=S?j[ne]/2-D-C-ae-A.mainAxis:H-C-ae-A.mainAxis,$=S?-j[ne]/2+D+C+he+A.mainAxis:re+C+he+A.mainAxis,J=t.elements.arrow&&dp(t.elements.arrow),ee=J?E==="y"?J.clientTop||0:J.clientLeft||0:0,se=(X=V==null?void 0:V[E])!=null?X:0,ge=le+M-se-ee,Me=le+$-se,ue=Of(m?dy(Z,ge):Z,le,m?pl(F,Me):F);k[E]=ue,W[E]=ue-le}if(s){var me,_e=E==="x"?Ar:Rr,Se=E==="x"?Ei:Ti,ke=k[O],Ce=O==="y"?"height":"width",je=ke+x[_e],ce=ke-x[Se],fe=[Ar,Rr].indexOf(_)!==-1,ye=(me=V==null?void 0:V[O])!=null?me:0,ve=fe?je:ke-j[Ce]-R[Ce]-ye+A.altAxis,xe=fe?ke+j[Ce]+R[Ce]-ye-A.altAxis:ce,Le=m&&fe?Kve(ve,ke,xe):Of(m?ve:je,ke,m?xe:ce);k[O]=Le,W[O]=Le-ke}t.modifiersData[r]=W}}const Cye={name:"preventOverflow",enabled:!0,phase:"main",fn:Oye,requiresIfExists:["offset"]};function kye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pye(e){return e===Jr(e)||!yi(e)?QT(e):kye(e)}function Lye(e){var t=e.getBoundingClientRect(),n=Nu(t.width)/e.offsetWidth||1,r=Nu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jye(e,t,n){n===void 0&&(n=!1);var r=yi(t),i=yi(t)&&Lye(t),o=Os(t),a=Au(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Oo(t)!=="body"||JT(o))&&(s=Pye(t)),yi(t)?(l=Au(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=XT(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Mye(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 a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Nye(e){var t=Mye(e);return Hve.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Aye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Rye(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 z3={placement:"bottom",modifiers:[],strategy:"absolute"};function V3(){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 Dye(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?z3:i;return function(a,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},z3,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},d=[],f=!1,p={state:c,setOptions:function(y){var x=typeof y=="function"?y(c.options):y;v(),c.options=Object.assign({},o,c.options,x),c.scrollParents={reference:Ll(a)?Cf(a):a.contextElement?Cf(a.contextElement):[],popper:Cf(s)};var _=Nye(Rye([].concat(r,c.options.modifiers)));return c.orderedModifiers=_.filter(function(w){return w.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var y=c.elements,x=y.reference,_=y.popper;if(V3(x,_)){c.rects={reference:jye(x,dp(_),c.options.strategy==="fixed"),popper:ZT(_)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var S=c.orderedModifiers[w],E=S.fn,O=S.options,k=O===void 0?{}:O,j=S.name;typeof E=="function"&&(c=E({state:c,options:k,name:j,instance:p})||c)}}}},update:Aye(function(){return new Promise(function(y){p.forceUpdate(),y(c)})}),destroy:function(){v(),f=!0}};if(!V3(a,s))return p;p.setOptions(l).then(function(y){!f&&l.onFirstUpdate&&l.onFirstUpdate(y)});function m(){c.orderedModifiers.forEach(function(y){var x=y.name,_=y.options,w=_===void 0?{}:_,S=y.effect;if(typeof S=="function"){var E=S({state:c,name:x,instance:p,options:w}),O=function(){};d.push(E||O)}})}function v(){d.forEach(function(y){return y()}),d=[]}return p}}var Iye=[aye,Eye,iye,Gve,xye,vye,Cye,eye,_ye],Fye=Dye({defaultModifiers:Iye}),$ye=typeof Element<"u",Uye=typeof Map=="function",Bye=typeof Set=="function",zye=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function kg(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(!kg(e[r],t[r]))return!1;return!0}var o;if(Uye&&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(!kg(r.value[1],t.get(r.value[0])))return!1;return!0}if(Bye&&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(zye&&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&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")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($ye&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!kg(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Vye=function(e,t){try{return kg(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Hye=Ku(Vye);var Wye=[],Yye=function(e,t,n){n===void 0&&(n={});var r=I.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Wye},o=I.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],s=o[1],l=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(f){var p=f.state,m=Object.keys(p.elements);Rl.flushSync(function(){s({styles:N3(m.map(function(v){return[v,p.styles[v]||{}]})),attributes:N3(m.map(function(v){return[v,p.attributes[v]]}))})})},requires:["computeStyles"]}},[]),c=I.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Hye(r.current,f)?r.current||f:(r.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),d=I.useRef();return A3(function(){d.current&&d.current.setOptions(c)},[c]),A3(function(){if(!(e==null||t==null)){var f=n.createPopper||Fye,p=f(e,t,c);return d.current=p,function(){p.destroy(),d.current=null}}},[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Gye=function(){},qye=function(){return Promise.resolve(null)},Zye=[];function Kye(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?Zye:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,d=e.children,f=I.useContext(uF),p=I.useState(null),m=p[0],v=p[1],y=I.useState(null),x=y[0],_=y[1];I.useEffect(function(){S2(c,m)},[c,m]);var w=I.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),S=Yye(s||f,m,w),E=S.state,O=S.styles,k=S.forceUpdate,j=S.update,R=I.useMemo(function(){return{ref:v,style:O.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:O.arrow,ref:_},forceUpdate:k||Gye,update:j||qye}},[v,_,n,E,O,j,k]);return fF(d)(R)}var Qye=function(){},Xye=Qye;const Jye=Ku(Xye);function e0e(e){var t=e.children,n=e.innerRef,r=I.useContext(dF),i=I.useCallback(function(o){S2(n,o),hF(r,o)},[n,r]);return I.useEffect(function(){return function(){return S2(n,null)}},[]),I.useEffect(function(){Jye(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),fF(t)({ref:i})}function H3(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 fy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H3(Object(n),!0).forEach(function(r){Q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O2(e){return O2=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},O2(e)}function $n(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,SF(r.key),r)}}function Un(e,t,n){return t&&W3(e.prototype,t),n&&W3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e,t,n){return(t=SF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kh(){return kh=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},kh.apply(this,arguments)}function Bn(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&&C2(e,t)}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hy(e)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},C2(e,t)}function te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zn(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=hy(e);if(t){var i=hy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return te(o)}(this,n)}}function Ph(e){return function(t){if(Array.isArray(t))return z1(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 z1(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 z1(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 z1(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 SF(e){var t=function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}var Y3=function(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"});default:return t.date({width:"full"})}},G3=function(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"});default:return t.time({width:"full"})}},t0e={p:G3,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Y3(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;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Y3(i,t)).replace("{{time}}",G3(o,t))}},kf=12,n0e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ot(e){var t=e?typeof e=="string"||e instanceof String?sa(e):Pe(e):new Date;return Ma(t)?t:null}function Ma(e,t){return t=t||new Date("1/1/1000"),xh(e)&&!Vi(e,t)}function zt(e,t,n){if(n==="en")return Pu(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&&ml()&&os(ml())&&(r=os(ml())),Pu(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function oo(e,t){var n=t.dateFormat,r=t.locale;return e&&zt(e,Array.isArray(n)?n[0]:n,r)||""}function q3(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second;return Eg(Tg(Nme(e,a===void 0?0:a),o),r)}function eO(e,t,n){var r=os(t||ml());return l8(e,{locale:r,weekStartsOn:n})}function is(e){return f8(e)}function Zd(e){return h8(e)}function Z3(e){return d2(e)}function K3(){return Gr(Ot())}function Ya(e,t){return e&&t?gme(e,t):!e&&!t}function Ii(e,t){return e&&t?pme(e,t):!e&&!t}function py(e,t){return e&&t?mme(e,t):!e&&!t}function yr(e,t){return e&&t?Zfe(e,t):!e&&!t}function rl(e,t){return e&&t?w8(e,t):!e&&!t}function Pg(e,t,n){var r,i=Gr(t),o=kl(n);try{r=Lu(e,{start:i,end:o})}catch{r=!1}return r}function ml(){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 tO(e,t){return zt(vr(Ot(),e),"LLLL",t)}function EF(e,t){return zt(vr(Ot(),e),"LLL",t)}function D0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return I0(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return yr(e,c)})||o&&o.some(function(c){var d=c.start,f=c.end;return Lu(e,{start:d,end:f})})||a&&!a.some(function(c){return yr(e,c)})||s&&!s.some(function(c){var d=c.start,f=c.end;return Lu(e,{start:d,end:f})})||l&&!l(Ot(e))||!1}function nO(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,a=i.end;return Lu(e,{start:o,end:a})}):n&&n.some(function(i){return yr(e,i)})||!1}function TF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return I0(e,{minDate:f8(n),maxDate:d8(r)})||i&&i.some(function(s){return Ii(e,s)})||o&&!o.some(function(s){return Ii(e,s)})||a&&!a(Ot(e))||!1}function V1(e,t,n,r){var i=et(e),o=ar(e),a=et(t),s=ar(t),l=et(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function r0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return I0(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return py(e,s)})||o&&!o.some(function(s){return py(e,s)})||a&&!a(Ot(e))||!1}function H1(e,t,n){if(!xh(t)||!xh(n))return!1;var r=et(t),i=et(n);return r<=e&&i>=e}function OF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return I0(s,{minDate:h8(n),maxDate:the(r)})||i&&i.some(function(l){return Ya(s,l)})||o&&!o.some(function(l){return Ya(s,l)})||a&&!a(Ot(s))||!1}function W1(e,t,n,r){var i=et(e),o=Ic(e),a=et(t),s=Ic(t),l=et(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function I0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&wh(e,n)<0||r&&wh(e,r)>0}function Q3(e,t){return t.some(function(n){return Bi(n)===Bi(e)&&zi(n)===zi(e)})}function X3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&Q3(e,n)||r&&!Q3(e,r)||i&&!i(e)||!1}function J3(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Ot(),a=Eg(Tg(o,zi(e)),Bi(e)),s=Eg(Tg(o,zi(n)),Bi(n)),l=Eg(Tg(o,zi(r)),Bi(r));try{i=!Lu(a,{start:s,end:l})}catch{i=!1}return i}function eN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=ju(e,1);return n&&Sh(n,i)>0||r&&r.every(function(o){return Sh(o,i)>0})||!1}function tN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Si(e,1);return n&&Sh(i,n)>0||r&&r.every(function(o){return Sh(i,o)>0})||!1}function nN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Eh(e,1);return n&&ny(n,i)>0||r&&r.every(function(o){return ny(o,i)>0})||!1}function rN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Cu(e,1);return n&&ny(i,n)>0||r&&r.every(function(o){return ny(i,o)>0})||!1}function CF(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return wh(i,t)>=0});return XM(r)}return n?XM(n):t}function kF(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return wh(i,t)<=0});return QM(r)}return n?QM(n):t}function iN(){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(j0(o)){var a=zt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(O2(o)==="object"){var l=Object.keys(o),c=l[0],d=o[l[0]];if(typeof c=="string"&&d.constructor===Array)for(var f=0,p=d.length;f<p;f++){var m=zt(d[f],"MM.dd.yyyy"),v=n.get(m)||[];v.includes(c)||(v.push(c),n.set(m,v))}}}return n}function i0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(j0(i)){var a=zt(i,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(l=s.holidayNames,c=[o],l.length!==c.length||!l.every(function(f,p){return f===c[p]}))){var l,c;s.className=t;var d=s.holidayNames;s.holidayNames=d?[].concat(Ph(d),[o]):[o],n.set(a,s)}}}),n}function o0e(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=u2(zfe(e,Bi(i[s])),zi(i[s])),c=u2(e,(n+1)*r);ps(l,t)&&Vi(l,c)&&a.push(i[s])}return a}function oN(e){return e<10?"0".concat(e):"".concat(e)}function Uc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kf,n=Math.ceil(et(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function aN(e){var t=e.getSeconds(),n=e.getMilliseconds();return Pe(e.getTime()-1e3*t-n)}function a0e(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=et(n)<=a),r&&s&&(s=et(r)>=a),s&&i.push(a)}return i}var s0e=A0(function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;$n(this,n),Q(te(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return Y.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(te(i),p),"aria-selected":l===p?"true":void 0},l===p?Y.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),d=i.props.minDate?et(i.props.minDate):null,f=i.props.maxDate?et(i.props.maxDate):null;return f&&i.state.yearsList.find(function(p){return p===f})||c.unshift(Y.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),d&&i.state.yearsList.find(function(p){return p===d})||c.push(Y.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),Q(te(i),"onChange",function(l){i.props.onChange(l)}),Q(te(i),"handleClickOutside",function(){i.props.onCancel()}),Q(te(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(d){return d+l});i.setState({yearsList:c})}),Q(te(i),"incrementYears",function(){return i.shiftYears(1)}),Q(te(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:a0e(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=I.createRef(),i}return Un(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(a){return a.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=Qe({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Y.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),l0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Q(te(r),"renderSelectOptions",function(){for(var s=r.props.minDate?et(r.props.minDate):1900,l=r.props.maxDate?et(r.props.maxDate):2100,c=[],d=s;d<=l;d++)c.push(Y.createElement("option",{key:d,value:d},d));return c}),Q(te(r),"onSelectChange",function(s){r.onChange(s.target.value)}),Q(te(r),"renderSelectMode",function(){return Y.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),Q(te(r),"renderReadView",function(s){return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},Y.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),Q(te(r),"renderDropdown",function(){return Y.createElement(s0e,{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})}),Q(te(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),Q(te(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),Q(te(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),Q(te(r),"handleYearChange",function(s,l){r.onSelect(s,l),r.setOpen()}),Q(te(r),"onSelect",function(s,l){r.props.onSelect&&r.props.onSelect(s,l)}),Q(te(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Un(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return Y.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),c0e=A0(function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(s){return r.props.month===s}),Q(te(r),"renderOptions",function(){return r.props.monthNames.map(function(s,l){return Y.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(te(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?Y.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),Q(te(r),"onChange",function(s){return r.props.onChange(s)}),Q(te(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Un(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),u0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Q(te(r),"renderSelectOptions",function(s){return s.map(function(l,c){return Y.createElement("option",{key:c,value:c},l)})}),Q(te(r),"renderSelectMode",function(s){return Y.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(s))}),Q(te(r),"renderReadView",function(s,l){return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},Y.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),Q(te(r),"renderDropdown",function(s){return Y.createElement(c0e,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),Q(te(r),"renderScrollMode",function(s){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,s)];return l&&c.unshift(r.renderDropdown(s)),c}),Q(te(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),Q(te(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Un(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(a){return EF(a,i.props.locale)}:function(a){return tO(a,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return Y.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function d0e(e,t){for(var n=[],r=is(e),i=is(t);!ps(r,i);)n.push(Ot(r)),r=Si(r,1);return n}var Bm,f0e=A0(function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),Q(te(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var a=oy(o),s=Ya(i.props.date,o)&&Ii(i.props.date,o);return Y.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:i.onChange.bind(te(i),a),"aria-selected":s?"true":void 0},s?Y.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",zt(o,i.props.dateFormat,i.props.locale))})}),Q(te(i),"onChange",function(o){return i.props.onChange(o)}),Q(te(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:d0e(i.props.minDate,i.props.maxDate)},i}return Un(n,[{key:"render",value:function(){var r=Qe({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return Y.createElement("div",{className:r},this.renderOptions())}}]),n}()),h0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Q(te(r),"renderSelectOptions",function(){for(var s=is(r.props.minDate),l=is(r.props.maxDate),c=[];!ps(s,l);){var d=oy(s);c.push(Y.createElement("option",{key:d,value:d},zt(s,r.props.dateFormat,r.props.locale))),s=Si(s,1)}return c}),Q(te(r),"onSelectChange",function(s){r.onChange(s.target.value)}),Q(te(r),"renderSelectMode",function(){return Y.createElement("select",{value:oy(is(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),Q(te(r),"renderReadView",function(s){var l=zt(r.props.date,r.props.dateFormat,r.props.locale);return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},Y.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),Q(te(r),"renderDropdown",function(){return Y.createElement(f0e,{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})}),Q(te(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),Q(te(r),"onChange",function(s){r.toggleDropdown();var l=Ot(parseInt(s));Ya(r.props.date,l)&&Ii(r.props.date,l)||r.props.onChange(l)}),Q(te(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Un(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return Y.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),p0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"dayEl",Y.createRef()),Q(te(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),Q(te(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),Q(te(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),Q(te(r),"isSameDay",function(s){return yr(r.props.day,s)}),Q(te(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),Q(te(r),"isDisabled",function(){return D0(r.props.day,r.props)}),Q(te(r),"isExcluded",function(){return nO(r.props.day,r.props)}),Q(te(r),"getHighLightedClass",function(){var s=r.props,l=s.day,c=s.highlightDates;if(!c)return!1;var d=zt(l,"MM.dd.yyyy");return c.get(d)}),Q(te(r),"getHolidaysClass",function(){var s=r.props,l=s.day,c=s.holidays;if(!c)return!1;var d=zt(l,"MM.dd.yyyy");return c.has(d)?[c.get(d).className]:void 0}),Q(te(r),"isInRange",function(){var s=r.props,l=s.day,c=s.startDate,d=s.endDate;return!(!c||!d)&&Pg(l,c,d)}),Q(te(r),"isInSelectingRange",function(){var s,l=r.props,c=l.day,d=l.selectsStart,f=l.selectsEnd,p=l.selectsRange,m=l.selectsDisabledDaysInRange,v=l.startDate,y=l.endDate,x=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(d||f||p)||!x||!m&&r.isDisabled())&&(d&&y&&(Vi(x,y)||rl(x,y))?Pg(c,x,y):(f&&v&&(ps(x,v)||rl(x,v))||!(!p||!v||y||!ps(x,v)&&!rl(x,v)))&&Pg(c,v,x))}),Q(te(r),"isSelectingRangeStart",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,d=l.startDate,f=l.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return yr(c,f?p:d)}),Q(te(r),"isSelectingRangeEnd",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,d=l.endDate,f=l.selectsEnd,p=l.selectsRange,m=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return yr(c,f||p?m:d)}),Q(te(r),"isRangeStart",function(){var s=r.props,l=s.day,c=s.startDate,d=s.endDate;return!(!c||!d)&&yr(c,l)}),Q(te(r),"isRangeEnd",function(){var s=r.props,l=s.day,c=s.startDate,d=s.endDate;return!(!c||!d)&&yr(d,l)}),Q(te(r),"isWeekend",function(){var s=fpe(r.props.day);return s===0||s===6}),Q(te(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===ar(r.props.day)}),Q(te(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(ar(r.props.day)+1)%12===r.props.month}),Q(te(r),"isCurrentDay",function(){return r.isSameDay(Ot())}),Q(te(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),Q(te(r),"getClassNames",function(s){var l,c=r.props.dayClassName?r.props.dayClassName(s):void 0;return Qe("react-datepicker__day",c,"react-datepicker__day--"+zt(r.props.day,"ddd",l),{"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"),r.getHolidaysClass())}),Q(te(r),"getAriaLabel",function(){var s=r.props,l=s.day,c=s.ariaLabelPrefixWhenEnabled,d=c===void 0?"Choose":c,f=s.ariaLabelPrefixWhenDisabled,p=f===void 0?"Not available":f,m=r.isDisabled()||r.isExcluded()?p:d;return"".concat(m," ").concat(zt(l,"PPPP",r.props.locale))}),Q(te(r),"getTitle",function(){var s=r.props,l=s.day,c=s.holidays,d=c===void 0?new Map:c,f=zt(l,"MM.dd.yyyy");return d.has(f)&&d.get(f).holidayNames.length>0?d.get(f).holidayNames.join(", "):""}),Q(te(r),"getTabIndex",function(s,l){var c=s||r.props.selected,d=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&yr(d,c)?0:-1}),Q(te(r),"handleFocusDay",function(){var s,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!l.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(c=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(c=!1)),c&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),Q(te(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(o3(r.props.day),r.props.day):o3(r.props.day)}),Q(te(r),"render",function(){return Y.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",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&Y.createElement("span",{className:"holiday-overlay"},r.getTitle()))}),r}return Un(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),m0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),r}return Un(n,[{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick};return Y.createElement("div",{className:Qe(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),g0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)}),Q(te(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),Q(te(r),"handleWeekClick",function(s,l,c){typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,c),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),Q(te(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):function(l,c){var d=c&&os(c)||ml()&&os(ml());return mpe(l,d?{locale:d}:null)}(s)}),Q(te(r),"renderDays",function(){var s=eO(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(s);if(r.props.showWeekNumber){var d=r.props.onWeekSelect?r.handleWeekClick.bind(te(r),s,c):void 0;l.push(Y.createElement(m0e,{key:"W",weekNumber:c,onClick:d,ariaLabelPrefix:r.props.ariaLabelPrefix}))}return l.concat([0,1,2,3,4,5,6].map(function(f){var p=Vl(s,f);return Y.createElement(p0e,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(te(r),p),onMouseEnter:r.handleDayMouseEnter.bind(te(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,holidays:r.props.holidays,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 Un(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),PF="two_columns",LF="three_columns",jF="four_columns",Y1=(Q(Bm={},PF,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),Q(Bm,LF,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),Q(Bm,jF,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4}),Bm);function sN(e,t){return e?jF:t?PF:LF}var v0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",Ph(Array(12)).map(function(){return Y.createRef()})),Q(te(r),"QUARTER_REFS",Ph(Array(4)).map(function(){return Y.createRef()})),Q(te(r),"isDisabled",function(s){return D0(s,r.props)}),Q(te(r),"isExcluded",function(s){return nO(s,r.props)}),Q(te(r),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)}),Q(te(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),Q(te(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),Q(te(r),"isRangeStartMonth",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate;return!(!d||!f)&&Ii(vr(c,s),d)}),Q(te(r),"isRangeStartQuarter",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate;return!(!d||!f)&&py(hc(c,s),d)}),Q(te(r),"isRangeEndMonth",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate;return!(!d||!f)&&Ii(vr(c,s),f)}),Q(te(r),"isRangeEndQuarter",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate;return!(!d||!f)&&py(hc(c,s),f)}),Q(te(r),"isInSelectingRangeMonth",function(s){var l,c=r.props,d=c.day,f=c.selectsStart,p=c.selectsEnd,m=c.selectsRange,v=c.startDate,y=c.endDate,x=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(f||p||m)||!x)&&(f&&y?V1(x,y,s,d):(p&&v||!(!m||!v||y))&&V1(v,x,s,d))}),Q(te(r),"isSelectingMonthRangeStart",function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,d=c.day,f=c.startDate,p=c.selectsStart,m=vr(d,s),v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Ii(m,p?v:f)}),Q(te(r),"isSelectingMonthRangeEnd",function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,d=c.day,f=c.endDate,p=c.selectsEnd,m=c.selectsRange,v=vr(d,s),y=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Ii(v,p||m?y:f)}),Q(te(r),"isInSelectingRangeQuarter",function(s){var l,c=r.props,d=c.day,f=c.selectsStart,p=c.selectsEnd,m=c.selectsRange,v=c.startDate,y=c.endDate,x=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(f||p||m)||!x)&&(f&&y?W1(x,y,s,d):(p&&v||!(!m||!v||y))&&W1(v,x,s,d))}),Q(te(r),"isWeekInMonth",function(s){var l=r.props.day,c=Vl(s,6);return Ii(s,l)||Ii(c,l)}),Q(te(r),"isCurrentMonth",function(s,l){return et(s)===et(Ot())&&l===ar(Ot())}),Q(te(r),"isCurrentQuarter",function(s,l){return et(s)===et(Ot())&&l===Ic(Ot())}),Q(te(r),"isSelectedMonth",function(s,l,c){return ar(c)===l&&et(s)===et(c)}),Q(te(r),"isSelectedQuarter",function(s,l,c){return Ic(s)===l&&et(s)===et(c)}),Q(te(r),"renderWeeks",function(){for(var s=[],l=r.props.fixedHeight,c=0,d=!1,f=eO(is(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(Y.createElement(g0e,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:f,month:ar(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,holidays:r.props.holidays,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})),!d;){c++,f=kT(f,1);var p=l&&c>=6,m=!l&&!r.isWeekInMonth(f);if(p||m){if(!r.props.peekNextMonth)break;d=!0}}return s}),Q(te(r),"onMonthClick",function(s,l){r.handleDayClick(is(vr(r.props.day,l)),s)}),Q(te(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(is(vr(r.props.day,s)))}),Q(te(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),Q(te(r),"onMonthKeyDown",function(s,l){var c=r.props,d=c.selected,f=c.preSelection,p=c.disabledKeyboardNavigation,m=c.showTwoColumnMonthYearPicker,v=c.showFourColumnMonthYearPicker,y=c.setPreSelection,x=s.key;if(x!=="Tab"&&s.preventDefault(),!p){var _=sN(v,m),w=Y1[_].verticalNavigationOffset,S=Y1[_].grid;switch(x){case"Enter":r.onMonthClick(s,l),y(d);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,Si(f,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,ju(f,1));break;case"ArrowUp":r.handleMonthNavigation(S[0].includes(l)?l+12-w:l-w,ju(f,w));break;case"ArrowDown":r.handleMonthNavigation(S[S.length-1].includes(l)?l-12+w:l+w,Si(f,w))}}}),Q(te(r),"onQuarterClick",function(s,l){r.handleDayClick(Z3(hc(r.props.day,l)),s)}),Q(te(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(Z3(hc(r.props.day,s)))}),Q(te(r),"handleQuarterNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),Q(te(r),"onQuarterKeyDown",function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,c8(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,Ame(r.props.preSelection,1))}}),Q(te(r),"getMonthClassNames",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection,x=l.monthClassName,_=l.excludeDates,w=l.includeDates,S=x?x(vr(c,s)):void 0,E=vr(c,s);return Qe("react-datepicker__month-text","react-datepicker__month-".concat(s),S,{"react-datepicker__month-text--disabled":(m||v||_||w)&&TF(E,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(c,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&ar(y)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":V1(d,f,s,c),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})}),Q(te(r),"getTabIndex",function(s){var l=ar(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),Q(te(r),"getQuarterTabIndex",function(s){var l=Ic(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),Q(te(r),"getAriaLabel",function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,d=c===void 0?"Choose":c,f=l.disabledDayAriaLabelPrefix,p=f===void 0?"Not available":f,m=l.day,v=vr(m,s),y=r.isDisabled(v)||r.isExcluded(v)?p:d;return"".concat(y," ").concat(zt(v,"MMMM yyyy"))}),Q(te(r),"getQuarterClassNames",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection;return Qe("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(m||v)&&r0e(hc(c,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(c,s,p),"react-datepicker__quarter-text--keyboard-selected":Ic(y)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":W1(d,f,s,c),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),Q(te(r),"getMonthContent",function(s){var l=r.props,c=l.showFullMonthYearPicker,d=l.renderMonthContent,f=l.locale,p=EF(s,f),m=tO(s,f);return d?d(s,p,m):c?m:p}),Q(te(r),"getQuarterContent",function(s){var l=r.props,c=l.renderQuarterContent,d=function(f,p){return zt(hc(Ot(),f),"QQQ",p)}(s,l.locale);return c?c(s,d):d}),Q(te(r),"renderMonths",function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,d=s.day,f=s.selected;return Y1[sN(c,l)].grid.map(function(p,m){return Y.createElement("div",{className:"react-datepicker__month-wrapper",key:m},p.map(function(v,y){return Y.createElement("div",{ref:r.MONTH_REFS[v],key:y,onClick:function(x){r.onMonthClick(x,v)},onKeyDown:function(x){r.onMonthKeyDown(x,v)},onMouseEnter:function(){return r.onMonthMouseEnter(v)},tabIndex:r.getTabIndex(v),className:r.getMonthClassNames(v),role:"option","aria-label":r.getAriaLabel(v),"aria-current":r.isCurrentMonth(d,v)?"date":void 0,"aria-selected":r.isSelectedMonth(d,v,f)},r.getMonthContent(v))}))})}),Q(te(r),"renderQuarters",function(){var s=r.props,l=s.day,c=s.selected;return Y.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(d,f){return Y.createElement("div",{key:f,ref:r.QUARTER_REFS[f],role:"option",onClick:function(p){r.onQuarterClick(p,d)},onKeyDown:function(p){r.onQuarterKeyDown(p,d)},onMouseEnter:function(){return r.onQuarterMouseEnter(d)},className:r.getQuarterClassNames(d),"aria-selected":r.isSelectedQuarter(l,d,c),tabIndex:r.getQuarterTabIndex(d),"aria-current":r.isCurrentQuarter(l,d)?"date":void 0},r.getQuarterContent(d))}))}),Q(te(r),"getClassNames",function(){var s=r.props,l=s.selectingDate,c=s.selectsStart,d=s.selectsEnd,f=s.showMonthYearPicker,p=s.showQuarterYearPicker;return Qe("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||d)},{"react-datepicker__monthPicker":f},{"react-datepicker__quarterPicker":p})}),r}return Un(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return Y.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(zt(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),MF=function(e){Bn(n,Y.Component);var t=zn(n);function n(){var r;$n(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Q(te(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),Q(te(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&J3(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&X3(s,r.props)||r.props.onChange(s)}),Q(te(r),"isSelectedTime",function(s){return r.props.selected&&(l=r.props.selected,c=s,aN(l).getTime()===aN(c).getTime());var l,c}),Q(te(r),"liClasses",function(s){var l=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s):void 0];return r.isSelectedTime(s)&&l.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&J3(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&X3(s,r.props))&&l.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Bi(s)+zi(s))%r.props.intervals!=0&&l.push("react-datepicker__time-list-item--injected"),l.join(" ")}),Q(te(r),"handleOnKeyDown",function(s,l){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(s)}),Q(te(r),"renderTimes",function(){for(var s=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,d=r.props.selected||r.props.openToDate||Ot(),f=Gr(d),p=r.props.injectTimes&&r.props.injectTimes.sort(function(S,E){return S-E}),m=60*function(S){var E=new Date(S.getFullYear(),S.getMonth(),S.getDate()),O=new Date(S.getFullYear(),S.getMonth(),S.getDate(),24);return Math.round((+O-+E)/36e5)}(d),v=m/c,y=0;y<v;y++){var x=u2(f,y*c);if(s.push(x),p){var _=o0e(f,x,y,c,p);s=s.concat(_)}}var w=s.reduce(function(S,E){return E.getTime()<=d.getTime()?E:S},s[0]);return s.map(function(S,E){return Y.createElement("li",{key:E,onClick:r.handleClick.bind(te(r),S),className:r.liClasses(S),ref:function(O){S===w&&(r.centerLi=O)},onKeyDown:function(O){r.handleOnKeyDown(O,S)},tabIndex:S===w?0:-1,role:"option","aria-selected":r.isSelectedTime(S)?"true":void 0},zt(S,l,r.props.locale))})}),r}return Un(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=this.centerLi&&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 Y.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},Y.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}},Y.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),Y.createElement("div",{className:"react-datepicker__time"},Y.createElement("div",{className:"react-datepicker__time-box"},Y.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();Q(MF,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var y0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),Q(te(i=t.call(this,r)),"YEAR_REFS",Ph(Array(i.props.yearItemNumber)).map(function(){return Y.createRef()})),Q(te(i),"isDisabled",function(o){return D0(o,i.props)}),Q(te(i),"isExcluded",function(o){return nO(o,i.props)}),Q(te(i),"selectingDate",function(){var o;return(o=i.props.selectingDate)!==null&&o!==void 0?o:i.props.preSelection}),Q(te(i),"updateFocusOnPaginate",function(o){var a=(function(){this.YEAR_REFS[o].current.focus()}).bind(te(i));window.requestAnimationFrame(a)}),Q(te(i),"handleYearClick",function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)}),Q(te(i),"handleYearNavigation",function(o,a){var s=i.props,l=s.date,c=s.yearItemNumber,d=Uc(l,c).startPeriod;i.isDisabled(a)||i.isExcluded(a)||(i.props.setPreSelection(a),o-d==-1?i.updateFocusOnPaginate(c-1):o-d===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-d].current.focus())}),Q(te(i),"isSameDay",function(o,a){return yr(o,a)}),Q(te(i),"isCurrentYear",function(o){return o===et(Ot())}),Q(te(i),"isRangeStart",function(o){return i.props.startDate&&i.props.endDate&&Ya(Bo(Ot(),o),i.props.startDate)}),Q(te(i),"isRangeEnd",function(o){return i.props.startDate&&i.props.endDate&&Ya(Bo(Ot(),o),i.props.endDate)}),Q(te(i),"isInRange",function(o){return H1(o,i.props.startDate,i.props.endDate)}),Q(te(i),"isInSelectingRange",function(o){var a=i.props,s=a.selectsStart,l=a.selectsEnd,c=a.selectsRange,d=a.startDate,f=a.endDate;return!(!(s||l||c)||!i.selectingDate())&&(s&&f?H1(o,i.selectingDate(),f):(l&&d||!(!c||!d||f))&&H1(o,d,i.selectingDate()))}),Q(te(i),"isSelectingRangeStart",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.startDate,l=a.selectsStart,c=Bo(Ot(),o);return Ya(c,l?i.selectingDate():s)}),Q(te(i),"isSelectingRangeEnd",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.endDate,l=a.selectsEnd,c=a.selectsRange,d=Bo(Ot(),o);return Ya(d,l||c?i.selectingDate():s)}),Q(te(i),"isKeyboardSelected",function(o){var a=Zd(Bo(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!yr(a,Zd(i.props.selected))&&yr(a,Zd(i.props.preSelection))}),Q(te(i),"onYearClick",function(o,a){var s=i.props.date;i.handleYearClick(Zd(Bo(s,a)),o)}),Q(te(i),"onYearKeyDown",function(o,a){var s=o.key;if(!i.props.disabledKeyboardNavigation)switch(s){case"Enter":i.onYearClick(o,a),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(a+1,Cu(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,Eh(i.props.preSelection,1))}}),Q(te(i),"getYearClassNames",function(o){var a=i.props,s=a.minDate,l=a.maxDate,c=a.selected,d=a.excludeDates,f=a.includeDates,p=a.filterDate;return Qe("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===et(c),"react-datepicker__year-text--disabled":(s||l||d||f||p)&&OF(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--range-start":i.isRangeStart(o),"react-datepicker__year-text--range-end":i.isRangeEnd(o),"react-datepicker__year-text--in-range":i.isInRange(o),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),Q(te(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===et(i.props.preSelection)?"0":"-1"}),Q(te(i),"getYearContainerClassNames",function(){var o=i.props,a=o.selectingDate,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange;return Qe("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||l||c)})}),Q(te(i),"getYearContent",function(o){return i.props.renderYearContent?i.props.renderYearContent(o):o}),i}return Un(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,a=o.date,s=o.yearItemNumber,l=o.onYearMouseEnter,c=o.onYearMouseLeave,d=Uc(a,s),f=d.startPeriod,p=d.endPeriod,m=function(y){i.push(Y.createElement("div",{ref:r.YEAR_REFS[y-f],onClick:function(x){r.onYearClick(x,y)},onKeyDown:function(x){r.onYearKeyDown(x,y)},tabIndex:r.getYearTabIndex(y),className:r.getYearClassNames(y),onMouseEnter:function(x){return l(x,y)},onMouseLeave:function(x){return c(x,y)},key:y,"aria-current":r.isCurrentYear(y)?"date":void 0},r.getYearContent(y)))},v=f;v<=p;v++)m(v);return Y.createElement("div",{className:this.getYearContainerClassNames()},Y.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},i))}}]),n}(),_0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),Q(te(i=t.call(this,r)),"onTimeChange",function(o){i.setState({time:o});var a=new Date;a.setHours(o.split(":")[0]),a.setMinutes(o.split(":")[1]),i.props.onChange(a)}),Q(te(i),"renderTimeInput",function(){var o=i.state.time,a=i.props,s=a.date,l=a.timeString,c=a.customTimeInput;return c?Y.cloneElement(c,{date:s,value:o,onChange:i.onTimeChange}):Y.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(d){i.onTimeChange(d.target.value||l)}})}),i.state={time:i.props.timeString},i}return Un(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__input-time-container"},Y.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),Y.createElement("div",{className:"react-datepicker-time__input-container"},Y.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 b0e(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return Y.createElement("div",{className:t},r&&Y.createElement("div",kh({className:"react-datepicker__triangle"},o)),n)}var w0e=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],x0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),Q(te(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),Q(te(i),"setClickOutsideRef",function(){return i.containerRef.current}),Q(te(i),"handleDropdownFocus",function(o){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return w0e.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),Q(te(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,c=CF(i.props),d=kF(i.props),f=Ot(),p=l||s||a;return p||(c&&Vi(f,c)?c:d&&ps(f,d)?d:f)}),Q(te(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Si(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),Q(te(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:ju(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),Q(te(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),Q(te(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),Q(te(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),Q(te(i),"handleYearMouseEnter",function(o,a){i.setState({selectingDate:Bo(Ot(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)}),Q(te(i),"handleYearMouseLeave",function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)}),Q(te(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),Q(te(i),"handleMonthChange",function(o){i.handleCustomMonthChange(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)}),Q(te(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),Q(te(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),Q(te(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:Bo(s,o)}},function(){return i.handleYearChange(i.state.date)})}),Q(te(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:vr(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),Q(te(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:Bo(vr(s,ar(o)),et(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),Q(te(i),"header",function(){var o=eO(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(Y.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=Vl(o,s),c=i.formatWeekday(l,i.props.locale),d=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return Y.createElement("div",{key:s,className:Qe("react-datepicker__day-name",d)},c)}))}),Q(te(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,c){return l(zt(s,"EEEE",c))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return zt(s,"EEE",l)}(o,a):function(s,l){return zt(s,"EEEEEE",l)}(o,a)}),Q(te(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:Eh(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),Q(te(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),Q(te(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=nN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.minDate,E=w.yearItemNumber,O=E===void 0?kf:E,k=Uc(Zd(Eh(_,O)),O).endPeriod,j=S&&et(S);return j&&j>k||!1}(i.state.date,i.props);break;default:o=eN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,d=c.previousMonthButtonLabel,f=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof d=="string"?d:"Previous Month":m,y=p.previousYearAriaLabel,x=y===void 0?typeof f=="string"?f:"Previous Year":y;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),Q(te(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Cu(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),Q(te(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=rN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.maxDate,E=w.yearItemNumber,O=E===void 0?kf:E,k=Uc(Cu(_,O),O).startPeriod,j=S&&et(S);return j&&j<k||!1}(i.state.date,i.props);break;default:o=tN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,d=c.nextMonthButtonLabel,f=c.nextYearButtonLabel,p=i.props,m=p.nextMonthAriaLabel,v=m===void 0?typeof d=="string"?d:"Next Month":m,y=p.nextYearAriaLabel,x=y===void 0?typeof f=="string"?f:"Next Year":y;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),Q(te(i),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),Y.createElement("div",{className:a.join(" ")},zt(o,i.props.dateFormat,i.props.locale))}),Q(te(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return Y.createElement(l0e,{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:et(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),Q(te(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return Y.createElement(u0e,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:ar(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),Q(te(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return Y.createElement(h0e,{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})}),Q(te(i),"handleTodayButtonClick",function(o){i.props.onSelect(K3(),o),i.props.setPreSelection&&i.props.setPreSelection(K3())}),Q(te(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return Y.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)}),Q(te(i),"renderDefaultHeader",function(o){var a=o.monthDate,s=o.i;return Y.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),Y.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),Y.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),Q(te(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=eN(i.state.date,i.props),c=tN(i.state.date,i.props),d=nN(i.state.date,i.props),f=rN(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return Y.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(fy(fy({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),p&&Y.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),Q(te(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=Uc(o,a.yearItemNumber),c=l.startPeriod,d=l.endPeriod;return Y.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(d):et(o))}),Q(te(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)}}),Q(te(i),"renderMonths",function(){var o;if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var a=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,l=ju(i.state.date,s),c=(o=i.props.monthSelectedIn)!==null&&o!==void 0?o:s,d=0;d<i.props.monthsShown;++d){var f=Si(l,d-c+s),p="month-".concat(d),m=d<i.props.monthsShown-1,v=d>0;a.push(Y.createElement("div",{key:p,ref:function(y){i.monthContainer=y},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:d}),Y.createElement(v0e,{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:d,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,holidays:i.props.holidays,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,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,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:m,monthShowsDuplicateDaysStart:v})))}return a}}),Q(te(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?Y.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),Y.createElement(y0e,kh({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0}),Q(te(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return Y.createElement(MF,{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})}),Q(te(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=Ma(o)&&i.props.selected?"".concat(oN(o.getHours()),":").concat(oN(o.getMinutes())):"";if(i.props.showTimeInput)return Y.createElement(_0e,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),Q(te(i),"renderAriaLiveRegion",function(){var o,a=Uc(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?et(i.state.date):"".concat(tO(ar(i.state.date),i.props.locale)," ").concat(et(i.state.date)),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),Q(te(i),"renderChildren",function(){if(i.props.children)return Y.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=Y.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return Un(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||yr(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!yr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!Ii(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&i.handleCustomMonthChange(i.state.date)})}}},{key:"render",value:function(){var r=this.props.container||b0e;return Y.createElement("div",{ref:this.containerRef},Y.createElement(r,{className:Qe("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:kf}}}]),n}(),NF=function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Un(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 al.createPortal(this.props.children,this.el)}}]),n}(),S0e=function(e){return!e.disabled&&e.tabIndex!==-1},AF=function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),Q(te(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(S0e)}),Q(te(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),Q(te(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=Y.createRef(),i}return Un(n,[{key:"render",value:function(){return this.props.enableTabLoop?Y.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},Y.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,Y.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),E0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(){return $n(this,n),t.apply(this,arguments)}return Un(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,d=i.popperPlacement,f=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,x=i.portalHost;if(!s){var _=Qe("react-datepicker-popper",o);r=Y.createElement(Kye,kh({modifiers:c,placement:d},f),function(S){var E=S.ref,O=S.style,k=S.placement,j=S.arrowProps;return Y.createElement(AF,{enableTabLoop:m},Y.createElement("div",{ref:E,style:O,className:_,"data-placement":k,onKeyDown:v},Y.cloneElement(l,{arrowProps:j})))})}this.props.popperContainer&&(r=Y.createElement(this.props.popperContainer,{},r)),y&&!s&&(r=Y.createElement(NF,{portalId:y,portalHost:x},r));var w=Qe("react-datepicker-wrapper",a);return Y.createElement(Mve,{className:"react-datepicker-manager"},Y.createElement(e0e,null,function(S){var E=S.ref;return Y.createElement("div",{ref:E,className:w},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),lN="react-datepicker-ignore-onclickoutside",T0e=A0(x0e),G1="Date input not valid.",O0e=function(e){Bn(n,Y.Component);var t=zn(n);function n(r){var i;return $n(this,n),Q(te(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:Ot()}),Q(te(i),"calcInitialState",function(){var o,a,s=(o=i.props.holidays)===null||o===void 0?void 0:o.reduce(function(p,m){var v=new Date(m.date);return xh(v)?[].concat(Ph(p),[fy(fy({},m),{},{date:v})]):p},[]),l=i.getPreSelection(),c=CF(i.props),d=kF(i.props),f=c&&Vi(l,Gr(c))?c:d&&ps(l,kl(d))?d:l;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(a=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&a!==void 0?a:f,highlightDates:iN(i.props.highlightDates),holidays:i0e(s),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),Q(te(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),Q(te(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),Q(te(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),Q(te(i),"setOpen",function(o){var a=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:q1},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),Q(te(i),"inputOk",function(){return j0(i.state.preSelection)}),Q(te(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),Q(te(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),Q(te(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),Q(te(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),Q(te(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),Q(te(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),Q(te(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),Q(te(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(te(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:C0e});var c,d,f,p,m,v,y,x,_=(c=l.target.value,d=i.props.dateFormat,f=i.props.locale,p=i.props.strictParsing,m=i.props.minDate,v=null,y=os(f)||os(ml()),x=!0,Array.isArray(d)?(d.forEach(function(w){var S=A1(c,w,new Date,{locale:y});p&&(x=Ma(S,m)&&c===zt(S,w,f)),Ma(S,m)&&x&&(v=S)}),v):(v=A1(c,d,new Date,{locale:y}),p?x=Ma(v)&&c===zt(v,d,f):Ma(v)||(d=d.match(n0e).map(function(w){var S=w[0];return S==="p"||S==="P"?y?(0,t0e[S])(w,y.formatLong):S:w}).join(""),c.length>0&&(v=A1(c,d.slice(0,c.length),new Date)),Ma(v)||(v=new Date(c))),Ma(v)&&x?v:null));i.props.showTimeSelectOnly&&i.props.selected&&!yr(_,i.props.selected)&&(_=Mme(i.props.selected,_==null?{hours:Bi(i.props.selected),minutes:zi(i.props.selected),seconds:N1(i.props.selected)}:{hours:Bi(_),minutes:zi(_),seconds:N1(_)})),!_&&l.target.value||i.setSelected(_,l,!0)}}),Q(te(i),"handleSelect",function(o,a,s){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(a),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!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,d=l.endDate;!c||d||Vi(o,c)||i.setOpen(!1)}}),Q(te(i),"setSelected",function(o,a,s,l){var c=o;if(i.props.showYearPicker){if(c!==null&&OF(et(c),i.props))return}else if(i.props.showMonthYearPicker){if(c!==null&&TF(c,i.props))return}else if(c!==null&&D0(c,i.props))return;var d=i.props,f=d.onChange,p=d.selectsRange,m=d.startDate,v=d.endDate;if(!rl(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=q3(c,{hour:Bi(i.props.selected),minute:zi(i.props.selected),second:N1(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var y=m&&!v,x=m&&v;!m&&!v?f([c,null],a):y&&(Vi(c,m)?f([c,null],a):f([m,c],a)),x&&f([c,null],a)}else f(c,a);s||(i.props.onSelect(c,a),i.setState({inputValue:null}))}),Q(te(i),"setPreSelection",function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){var c=Gr(o);if(a&&s)l=Pg(o,i.props.minDate,i.props.maxDate);else if(a){var d=Gr(i.props.minDate);l=ps(o,d)||rl(c,d)}else if(s){var f=kl(i.props.maxDate);l=Vi(o,f)||rl(c,f)}}l&&i.setState({preSelection:o})}),Q(te(i),"handleTimeChange",function(o){var a=i.props.selected?i.props.selected:i.getPreSelection(),s=i.props.selected?o:q3(a,{hour:Bi(o),minute:zi(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}),Q(te(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),Q(te(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(s&&s.focus({preventScroll:!0}))}var l=Ot(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===q1?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.setOpen(!1)):a==="Tab"&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:G1})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),Q(te(i),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),Q(te(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=Ot(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:G1});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=IT(s,1);break;case"ArrowRight":l=Vl(s,1);break;case"ArrowUp":l=Rme(s,1);break;case"ArrowDown":l=kT(s,1);break;case"PageUp":l=ju(s,1);break;case"PageDown":l=Si(s,1);break;case"Home":l=Eh(s,1);break;case"End":l=Cu(s,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:G1}));if(o.preventDefault(),i.setState({lastPreSelectChange:q1}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=ar(s),d=ar(l),f=et(s),p=et(l);c!==d||f!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),Q(te(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})})}))}),Q(te(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})}),Q(te(i),"clear",function(){i.onClearClick()}),Q(te(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)}),Q(te(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?Y.createElement(T0e,{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,holidays:i.state.holidays,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:lN,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,showDateSelect:i.props.showDateSelect,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,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,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}),Q(te(i),"renderAriaLiveRegion",function(){var o,a=i.props,s=a.dateFormat,l=a.locale,c=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(oo(i.props.startDate,{dateFormat:c,locale:l}),". ").concat(i.props.endDate?"End date: "+oo(i.props.endDate,{dateFormat:c,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(oo(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(oo(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(oo(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(oo(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(oo(i.props.selected,{dateFormat:c,locale:l})),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),Q(te(i),"renderDateInput",function(){var o,a=Qe(i.props.className,Q({},lN,i.state.open)),s=i.props.customInput||Y.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(d,f,p){if(!d)return"";var m=oo(d,p),v=f?oo(f,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):oo(i.props.selected,i.props);return Y.cloneElement(s,(Q(o={},l,function(d){i.input=d}),Q(o,"value",c),Q(o,"onBlur",i.handleBlur),Q(o,"onChange",i.handleChange),Q(o,"onClick",i.onInputClick),Q(o,"onFocus",i.handleFocus),Q(o,"onKeyDown",i.onInputKeyDown),Q(o,"id",i.props.id),Q(o,"name",i.props.name),Q(o,"form",i.props.form),Q(o,"autoFocus",i.props.autoFocus),Q(o,"placeholder",i.props.placeholderText),Q(o,"disabled",i.props.disabled),Q(o,"autoComplete",i.props.autoComplete),Q(o,"className",Qe(s.props.className,a)),Q(o,"title",i.props.title),Q(o,"readOnly",i.props.readOnly),Q(o,"required",i.props.required),Q(o,"tabIndex",i.props.tabIndex),Q(o,"aria-describedby",i.props.ariaDescribedBy),Q(o,"aria-invalid",i.props.ariaInvalid),Q(o,"aria-labelledby",i.props.ariaLabelledBy),Q(o,"aria-required",i.props.ariaRequired),o))}),Q(te(i),"renderClearButton",function(){var o=i.props,a=o.isClearable,s=o.selected,l=o.startDate,c=o.endDate,d=o.clearButtonTitle,f=o.clearButtonClassName,p=f===void 0?"":f,m=o.ariaLabelClose,v=m===void 0?"Close":m;return!a||s==null&&l==null&&c==null?null:Y.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":v,onClick:i.onClearClick,title:d,tabIndex:-1})}),i.state=i.calcInitialState(),i}return Un(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?ar(o)!==ar(a)||et(o)!==et(a):o!==a)&&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:iN(this.props.highlightDates)}),i.focused||rl(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(){var r=this.props.showIcon;return Y.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&Y.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},Y.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),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?Y.createElement(AF,{enableTabLoop:this.props.enableTabLoop},Y.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=Y.createElement(NF,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),Y.createElement("div",null,this.renderInputContainer(),i)}return Y.createElement(E0e,{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:kf,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),C0e="input",q1="navigate";const k2=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||!r,a=I.useRef();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(O0e,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??P8,className:Qe("icon-input-container__input form-control",t),ref:a}),o&&g.jsx(Ne,{icon:ioe,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},k0e=e=>g.jsx(k2,{...e,dateFormat:FT,showTimeSelect:!0,timeIntervals:10}),Z1=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("p",{children:[g.jsx(ZI,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&g.jsx(Og,{placement:"right",children:t})]}),P0e=({isOpen:e,toggle:t})=>g.jsxs(pa,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(ma,{toggle:t,children:"Info"}),g.jsxs(ko,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),g.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),L0e=()=>{const[e,t]=On();return g.jsxs(g.Fragment,{children:[g.jsx(Th,{className:"p-0",title:"What does this mean?",onClick:t,children:g.jsx(Ne,{icon:nE})}),g.jsx(P0e,{isOpen:e,toggle:t})]})},K1=e=>typeof e=="string"?sa(e):e,j0e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,RF=({mode:e,saving:t,onSave:n,initialState:r,tagsList:i})=>{const{TagsSelector:o,DomainSelector:a}=Qt(RF),[s,l]=I.useState(r),c=()=>l(r),d=rp("deviceLongUrls"),f=e==="edit",p=j0e(s),m=e==="create-basic",v=O=>l(k=>({...k,tags:O})),y=(O,k)=>po(O)?O:po(k)?null:void 0,x=BT(async()=>n({...s,validSince:gs(s.validSince)??null,validUntil:gs(s.validUntil)??null,maxVisits:po(s.maxVisits)?Number(s.maxVisits):null}).then(()=>!f&&c()).catch(()=>{}));I.useEffect(()=>{l(r)},[r]);const _=(O,k,j="text",R={},U={})=>g.jsx(Vr,{...U,children:g.jsx(El,{name:O,id:O,type:j,placeholder:k,value:s[O]??"",onChange:R.onChange??(A=>l(V=>({...V,[O]:A.target.value}))),...R})}),w=(O,k,j)=>{var R;return g.jsx(wve,{icon:j,name:O,id:O,type:"url",placeholder:k,value:((R=s.deviceLongUrls)==null?void 0:R[O])??"",onChange:U=>l(A=>{var V;return{...A,deviceLongUrls:{...A.deviceLongUrls??{},[O]:y(U.target.value,(V=r.deviceLongUrls)==null?void 0:V[O])}}})})},S=(O,k,j={})=>g.jsx(k0e,{name:O,selected:s[O]?K1(s[O]):null,placeholderText:k,isClearable:!0,onChange:R=>l(U=>({...U,[O]:R})),...j}),E=g.jsxs(g.Fragment,{children:[g.jsx(Vr,{children:g.jsx(El,{name:"longUrl",bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:s.longUrl,onChange:O=>l(k=>({...k,longUrl:O.target.value}))})}),g.jsxs(_r,{children:[m&&_("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),g.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:g.jsx(o,{tags:i.tags,selectedTags:s.tags??[],onChange:v})})]})]});return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[m&&E,!m&&g.jsxs(g.Fragment,{children:[g.jsxs(_r,{children:[g.jsx("div",{className:Qe("mb-3",{"col-sm-6":d,"col-12":!d}),children:g.jsx(yn,{title:"Main options",className:"mb-3",children:E})}),d&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(yn,{title:"Device-specific long URLs",children:[g.jsx(Vr,{children:w("android","Android-specific redirection",coe)}),g.jsx(Vr,{children:w("ios","iOS-specific redirection",loe)}),w("desktop","Desktop-specific redirection",vG)]})})]}),g.jsxs(_r,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(yn,{title:"Customize the short URL",children:[_("title","Title","text",{onChange:({target:O})=>l(k=>({...k,title:y(O.value,r.title)}))}),!f&&p&&g.jsxs(g.Fragment,{children:[g.jsxs(_r,{children:[g.jsx("div",{className:"col-lg-6",children:_("customSlug","Custom slug","text",{disabled:po(s.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:_("shortCodeLength","Short code length","number",{min:4,disabled:po(s.customSlug)})})]}),g.jsx(a,{value:s.domain,onChange:O=>l(k=>({...k,domain:O}))})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(yn,{title:"Limit access to the short URL",children:[_("maxVisits","Maximum number of visits allowed","number",{min:1}),g.jsx("div",{className:"mb-3",children:S("validSince","Enabled since...",{maxDate:s.validUntil?K1(s.validUntil):void 0})}),S("validUntil","Enabled until...",{minDate:s.validSince?K1(s.validSince):void 0})]})})]}),g.jsxs(_r,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(yn,{title:"Extra checks",children:[g.jsx(Z1,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:s.validateUrl,onChange:O=>l(k=>({...k,validateUrl:O})),children:"Validate URL"}),!f&&p&&g.jsxs("p",{children:[g.jsx(ZI,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:O=>l(k=>({...k,findIfExists:O})),children:"Use existing URL if found"}),g.jsx(L0e,{})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(yn,{title:"Configure behavior",children:[g.jsx(Z1,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:s.crawlable,onChange:O=>l(k=>({...k,crawlable:O})),children:"Make it crawlable"}),g.jsx(Z1,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:s.forwardQuery,onChange:O=>l(k=>({...k,forwardQuery:O})),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(yt,{outline:!0,color:"primary",disabled:t||Qi(s.longUrl),className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},M0e=Xt(RF,["TagsSelector","DomainSelector"]),N0e=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Ue,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Ue,{divider:!0,tag:"hr"}),Dme.map(r=>g.jsx(Ue,{active:e===r,onClick:()=>n(r),children:A8(r)},r))]}),A0e=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(k2,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{className:"col-md-6",children:g.jsx(k2,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&kl(o))})})]}),DF=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=ly(t),[a,s]=I.useState(o?t:void 0),[l,c]=I.useState(o?void 0:t),d=p=>{s(M8(p)?op:void 0),c(p),e(p)},f=p=>{s(p),c(void 0),e(R8(p))};return age(()=>{if(!i)return;const p=ly(t);p&&f(t),t&&!p&&d(t)},[t,i]),g.jsxs(ga,{disabled:r,text:A8(a??l)??n,children:[g.jsx(N0e,{allText:n,active:a,onChange:f}),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsx(Ue,{header:!0,"aria-hidden":!0,children:"Custom:"}),g.jsx(Ue,{text:!0,children:g.jsx(A0e,{...l,onStartDateChange:p=>d({...l,startDate:p}),onEndDateChange:p=>d({...l,endDate:p})})})]})},R0e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},D0e=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return g.jsxs(ga,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,"aria-hidden":!0,children:"Visits:"}),g.jsx(Ue,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsx(Ue,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),g.jsx(Ue,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ue,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsx(Ue,{disabled:!po(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:g.jsx("i",{children:"Clear filters"})})]})},IF=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=Qt(IF),[s,l]=N0(),{search:c,tags:d,startDate:f,endDate:p,excludeBots:m,excludeMaxVisitsReached:v,excludePastValidUntil:y,tagsMode:x="any"}=s,_=rp("filterDisabledUrls"),w=Hl("visits"),S=Yr(({startDate:j,endDate:R})=>({startDate:gs(j)??void 0,endDate:gs(R)??void 0}),l),E=Yr(j=>Qi(j)?void 0:j,j=>l({search:j})),O=j=>l({tags:j}),k=Yr(()=>x==="any"?"all":"any",j=>l({tagsMode:j}));return g.jsxs("div",{className:Qe("short-urls-filtering-bar-container",e),children:[g.jsx(Zh,{initialValue:c,onChange:E}),g.jsxs(m0,{className:"mt-3",children:[g.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:d,onChange:O}),d.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(yt,{outline:!0,color:"secondary",onClick:k,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(Ne,{className:"short-urls-filtering-bar__tags-icon",icon:x==="all"?y4:WY})}),g.jsx(Ir,{target:"tagsModeBtn",placement:"left",children:x==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(_r,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(DF,{defaultText:"All short URLs",initialDateRange:N8(f,p),onDatesChange:S})}),g.jsx(D0e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:m??(w==null?void 0:w.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:y},onChange:l,supportsDisabledFiltering:_})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(o,{amount:t})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(Kh,{prefixed:!1,items:R0e,order:n,onChange:r})})]})]})},I0e=Xt(IF,["ExportShortUrlsBtn","TagsSelector"]);function Pf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ne,{icon:e.dir==="ASC"?FY:ZY,className:n})}const mc=2,P2="...",FF=(e,t)=>{const n=OT(U5(mc,e-mc),J5(t-1,e+mc)+1);return e-mc>mc&&n.unshift(P2),e+mc<t-1&&n.push(P2),n.unshift(1),n.push(t),n},Lh=e=>e===P2,$F=e=>Lh(e)?e:En(e),UF=(e,t)=>Lh(e)?`${e}_${t}`:`${e}`,F0e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=zl(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return g.jsx("div",{className:"pb-3"});const a=()=>FF(n,r).map((s,l)=>g.jsx(ll,{disabled:Lh(s),active:n===s,children:g.jsx(cl,{tag:Ft,to:o(s),children:$F(s)})},UF(s,l)));return g.jsxs(AE,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(ll,{disabled:n===1,children:g.jsx(cl,{previous:!0,tag:Ft,to:o(n-1)})}),a(),g.jsx(ll,{disabled:n>=r,children:g.jsx(cl,{next:!0,tag:Ft,to:o(n+1)})})]})},$0e={field:"dateCreated",dir:"DESC"},BF=Ts(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=Qt(BF),{page:s}=Fl(),l=Cn(),[c,d]=N0(),f=HT(),{tags:p,search:m,startDate:v,endDate:y,orderBy:x,tagsMode:_,excludeBots:w,excludePastValidUntil:S,excludeMaxVisitsReached:E}=c,[O,k]=I.useState(x??((n=f.shortUrlsList)==null?void 0:n.defaultOrdering)??$0e),{pagination:j}=(t==null?void 0:t.shortUrls)??{},R=I.useMemo(()=>{var K;return w??((K=f.visits)==null?void 0:K.excludeBots)},[w,(r=f.visits)==null?void 0:r.excludeBots]),U=rp("excludeBotsOnShortUrls"),A=(K,ne)=>{d({orderBy:{field:K,dir:ne}}),k({field:K,dir:ne})},V=K=>()=>A(K,y0(K,O.field,O.dir)),W=K=>g.jsx(Pf,{currentOrder:O,field:K}),X=Yr(K=>[...new Set([...p,K])],K=>d({tags:K})),G=I.useCallback(({field:K,dir:ne})=>U&&R&&K==="visits"?{field:"nonBotVisits",dir:ne}:{field:K,dir:ne},[R,U]);return I.useEffect(()=>{e({page:s,searchTerm:m,tags:p,startDate:v,endDate:y,orderBy:G(O),tagsMode:_,excludePastValidUntil:S,excludeMaxVisitsReached:E})},[e,G,s,m,p,v,y,O,_,S,E]),g.jsxs(g.Fragment,{children:[g.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:O,handleOrderBy:A,className:"mb-3"}),g.jsxs(Kr,{body:!0,className:"pb-0",children:[g.jsx(o,{shortUrlsList:t,orderByColumn:V,renderOrderIcon:W,onTagClick:X}),g.jsx(F0e,{paginator:j,currentQueryString:l.search})]})]})},()=>[vi.visits]),U0e=Xt(BF,["ShortUrlsTable","ShortUrlsFilteringBar"]),zF=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=Qt(zF),{error:a,loading:s,shortUrls:l}=n,c=Qe({"short-urls-table__header-cell--with-action":!!e}),d=Qe("short-urls-table__header-cell",c),f=Qe("table table-hover responsive-table short-urls-table",i),p=()=>a?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&Qi(l==null?void 0:l.data)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(m=>g.jsx(o,{shortUrl:m,onTagClick:r},m.shortUrl));return g.jsxs("table",{className:f,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:d,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),g.jsxs("th",{className:d,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs(Th,{className:Qe("p-0",c),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",g.jsxs(Th,{className:Qe("p-0",c),onClick:e==null?void 0:e("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:d,onClick:e==null?void 0:e("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),g.jsx("tbody",{children:p()})]})},B0e=Xt(zF,["ShortUrlsRow"]),z0e=(e,t)=>{e.factory("ShortUrlsList",U0e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",B0e),e.factory("ShortUrlsRow",hve),e.factory("ShortUrlsRowMenu",pve),e.factory("CreateShortUrlResult",Jge),e.factory("ShortUrlForm",M0e),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",Nge),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Age),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>eve),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",ove),e.factory("ExportShortUrlsBtn",tve),e.factory("ShortUrlsFilteringBar",I0e),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",Ege,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",mt("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",gve,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",mt("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",bve,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",mt("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",wge,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",mt("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",vve,"apiClientFactory"),e.serviceFactory("shortUrlDetailReducer",mt("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Sge,"apiClientFactory"),e.serviceFactory("createShortUrl",mve,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",mt("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",bge,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",mt("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>B8),e.serviceFactory("getShortUrlDetail",mt("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",_ve,"apiClientFactory")},V0e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:c}=i;return g.jsxs(pa,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[g.jsx(ma,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(ko,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",s&&g.jsx(Wr,{type:"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs($l,{children:[g.jsx(yt,{color:"link",onClick:t,children:"Cancel"}),g.jsx(yt,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},VF=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=Qt(VF),[s,l]=I.useState(e),[c,d]=I.useState(a.getColorForKey(e)),{editing:f,error:p,edited:m,errorData:v}=o,y=BT(async()=>{await t({oldName:e,newName:s,color:c}),n()}),x=I.useCallback(()=>m&&r({oldName:e,newName:s,color:c}),[c,m,s,e,r]);return g.jsx(pa,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:g.jsxs("form",{name:"editTag",onSubmit:y,children:[g.jsx(ma,{toggle:n,children:"Edit tag"}),g.jsxs(ko,{children:[g.jsxs(m0,{children:[g.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:c,borderColor:c},children:[g.jsx(Ne,{icon:$Y,className:"position-absolute top-50 start-50 translate-middle text-white"}),g.jsx(El,{className:"form-control-color opacity-0",type:"color",value:c,onChange:_=>d(_.target.value)})]}),g.jsx(El,{value:s,placeholder:"Tag",required:!0,onChange:({target:_})=>l(_.value)})]}),p&&g.jsx(Wr,{type:"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs($l,{children:[g.jsx(yt,{type:"button",color:"link",onClick:n,children:"Cancel"}),g.jsx(yt,{color:"primary",disabled:f,children:f?"Saving...":"Save"})]})]})})},H0e=Xt(VF,["ColorGenerator"]),Zs={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},rO=Symbol("Create new tag"),HF=Symbol("No options"),bc=()=>{},Vn=Y.createContext(void 0);function cN(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function W0e(e){return e.selectionStart===0&&e.selectionEnd===0}function Y0e(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function F0(e){return`${e}-label`}function G0e(e){return`${e}-combobox`}function q0e(e){return`${e}-input`}function WF(e){return`${e}-listbox`}function YF(e,t){return`${e}-option-${t_e(t)}`}function Z0e(e,t){if((e==null?void 0:e.value)===rO&&e.disabled===!1)return{value:t,label:t}}function K0e(e){const t=Z0e(e.activeOption,e.value)||e.activeOption||o_e(e.value,e.options);return t&&!t.disabled?t:void 0}function Q0e(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const X0e=/%value%/;function my(e,t){return e.replace(X0e,t)}function J0e(e,t){const n=qF(t),r=e.match(n);if(r){const i=r[0],o=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,o),e.slice(o)]}}const e_e=/\s+/g;function L2(e){return`${String(e.value)}-${e.label}`}function t_e(e){return L2(e).replace(e_e,"_")}function j2(e,t){return t.findIndex(({value:n})=>n===e.value)}const n_e=/[-\\^$*+?.()|[\]{}]/g;function GF(e){return e.replace(n_e,"\\$&")}function qF(e){return new RegExp(GF(e),"i")}function r_e(e){return new RegExp(`^${GF(e)}$`,"i")}function i_e(e,t){if(e){const n=qF(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function o_e(e,t){const n=r_e(e);return t.find(r=>n.test(r.label))||null}const a_e={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function s_e({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:c}=I.useContext(Vn),d=I.useMemo(()=>{const v=U=>{const A=U.currentTarget.value;c.current.updateInputValue(A),document.activeElement===a.current&&c.current.listBoxExpand(A)},y=()=>{c.current.listBoxExpand()},x=U=>{var A;((A=o.current)==null?void 0:A.contains(U.relatedTarget))===!1&&c.current.listBoxCollapse()},_=()=>{c.current.listBoxExpand()},w=U=>{const{activeIndex:A,isExpanded:V}=c.current.state;V?(U.preventDefault(),c.current.updateActiveIndex(A+1)):(Y0e(U.currentTarget)||U.altKey)&&(U.preventDefault(),c.current.listBoxExpand())},S=U=>{const{activeIndex:A,isExpanded:V}=c.current.state;V?(U.preventDefault(),c.current.updateActiveIndex(A-1)):W0e(U.currentTarget)&&(U.preventDefault(),c.current.listBoxExpand())},E=U=>{const{isExpanded:A,options:V}=c.current.state;A&&(U.preventDefault(),c.current.updateActiveIndex(V.length-1))},O=U=>{c.current.state.isExpanded&&(U.preventDefault(),c.current.updateActiveIndex(0))},k=()=>{c.current.state.isExpanded?c.current.listBoxCollapse():c.current.updateInputValue("")},j=()=>{if(e){const{value:U,selected:A}=c.current.state,V=A[A.length-1];U===""&&V&&c.current.selectTag(V)}},R=U=>{c.current.state.isExpanded&&(U.preventDefault(),c.current.selectTag())};return{onBlur:x,onChange:v,onClick:_,onFocus:y,onKeyDown:U=>{if(U.key===Zs.UpArrow)return S(U);if(U.key===Zs.DownArrow)return w(U);if(U.key===Zs.PageUp)return O(U);if(U.key===Zs.PageDown)return E(U);if(U.key===Zs.Escape)return k();if(U.key===Zs.Backspace)return j();if(r.includes(U.key))return R(U)}}},[e,o,r,a,c]),{activeOption:f,isExpanded:p,value:m}=c.current.state;return{...a_e,"aria-autocomplete":"list","aria-activedescendant":f?YF(i,f):void 0,"aria-controls":WF(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":F0(i),"aria-expanded":p,id:q0e(i),onBlur:s?bc:d.onBlur,onChange:s?bc:d.onChange,onClick:s?bc:d.onClick,onFocus:s?bc:d.onFocus,onKeyDown:s?bc:d.onKeyDown,ref:a,role:"combobox",type:"text",value:m}}const l_e={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},c_e=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function u_e({allowResize:e=!0,text:t}){const n=I.useRef(null),{inputRef:r}=I.useContext(Vn),[i,o]=I.useState(null);return I.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);c_e.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),I.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:l_e}}}function d_e(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=I.useContext(Vn),i=r.current.state.activeIndex===-1,o=I.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return I.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":F0(e),id:WF(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function f_e({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:c,onShouldCollapse:d,onShouldExpand:f,onValidate:p,selected:m,suggestions:v,suggestionsTransform:y}){const x=I.useRef(),[_,w]=I.useState(null),[S,E]=I.useState(!1),[O,k]=I.useState(""),j=I.useMemo(()=>{const G=y(O,v);return O&&(t&&G.push({disabled:p?!p(O):!1,label:r,value:rO}),G.length===0&&G.push({disabled:!0,label:i,value:HF})),G},[t,r,i,p,v,y,O]),R=_?j2(_,j):-1,U=e?Math.max(R,0):R,A=j[U],V={activeIndex:U,activeOption:A,isExpanded:S,options:j,selected:m,value:O},W={tagsAdded:x.current?cN(m,x.current.state.selected):[],tagsDeleted:x.current?cN(x.current.state.selected,m):[]},X={listBoxCollapse(G){S&&(!d||d(G??V.value))&&(E(!1),w(null),s==null||s())},listBoxExpand(G){S||(!f||f(G??V.value))&&(E(!0),w(j[U]),l==null||l())},updateActiveIndex(G){const K=Q0e(G,j.length,e?0:-1);w(j[K])},updateInputValue(G){O!==G&&(k(G),c==null||c(G))},selectTag(G){if(G??(G=K0e(V)),G){const K=j2(G,V.selected);K>-1?a(K):o(G),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...X,flags:W,state:V},x}function h_e(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=I.useContext(Vn),o=I.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,c=j2(a,i.current.state.selected)>-1,d=I.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),f=I.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return g_e(o,r,s),{option:{...a,active:s,disabled:l,index:e,selected:c},optionProps:{"aria-disabled":l,"aria-posinset":e+1,"aria-selected":l?void 0:c,"aria-setsize":i.current.state.options.length,id:YF(t,a),onClick:d,onMouseDown:f,ref:o,role:"option",tabIndex:-1}}}function p_e({inputRef:e,managerRef:t}){return I.useRef({input:{blur(){var n;(n=e.current)==null||n.blur()},focus(){var n;(n=e.current)==null||n.focus()},get value(){return t.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),t.current.updateInputValue(n)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(n){t.current.selectTag(n)}}).current}function m_e({onBlur:e,onFocus:t}){const[n,r]=I.useState(!1),{id:i,inputRef:o}=I.useContext(Vn),a=I.useRef(null),s=I.useMemo(()=>({"aria-describedby":F0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function g_e(e,t,n){I.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,l=(i=e.current)==null?void 0:i.offsetTop,c=(o=t.current)==null?void 0:o.offsetHeight,d=(a=t.current)==null?void 0:a.scrollTop;l<d&&t.current.scrollTo(0,l),l+s>d+c&&t.current.scrollTo(0,l+s-c)}},[n,t,e])}function v_e(e,t){const{isDisabled:n,managerRef:r}=I.useContext(Vn),i=r.current.state.selected[e],o=I.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:my(t,i.label),onClick:n?bc:o}}}function y_e(){var e;const{inputRef:t,managerRef:n}=I.useContext(Vn),r=I.useRef(),i=n.current.flags.tagsDeleted.length,o=(e=r.current)==null?void 0:e.contains(document.activeElement);return I.useLayoutEffect(()=>{var a,s;if(i){const l=(a=r.current)==null?void 0:a.contains(document.activeElement);o&&!l&&((s=t.current)==null||s.focus({preventScroll:!0}))}},[t,o,r,i]),{listRef:r}}const __e={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function b_e({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=I.useContext(Vn),r=I.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(my(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(my(t,i.label))}),Y.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:__e},r.current.join(`
|
||
`))}function w_e({children:e}){const{classNames:t,comboBoxRef:n,id:r}=I.useContext(Vn);return Y.createElement("div",{className:t.comboBox,id:G0e(r),ref:n},e)}const x_e=({classNames:e,text:t})=>Y.createElement("mark",{className:e.highlight},t);function S_e({option:e,query:t,render:n=x_e}){const{classNames:r}=I.useContext(Vn);if(e.value===rO||e.value===HF)return Y.createElement(Y.Fragment,null,my(e.label,t));if(t){const i=J0e(e.label,t);if(i){const o=n({text:i[1],classNames:r});return Y.createElement(Y.Fragment,null,i[0],o,i[2])}}return Y.createElement(Y.Fragment,null,e.label)}const E_e=Y.memo(S_e),T_e=({classNames:e,inputWidth:t,...n})=>Y.createElement("input",{className:e.input,style:{width:t},...n});function O_e({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=T_e}){const{classNames:s}=I.useContext(Vn),{value:l,...c}=s_e({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),d=l.length<o.length?o:l,{width:f,sizerProps:p}=u_e({allowResize:t,text:d});return Y.createElement(Y.Fragment,null,a({classNames:s,inputWidth:f,placeholder:o,value:l,...c}),t?Y.createElement("div",{...p},d):null)}const C_e=({children:e,classNames:t,id:n})=>Y.createElement("div",{className:t.label,id:n},e);function k_e({children:e,render:t=C_e}){const{classNames:n,id:r}=I.useContext(Vn);return t({children:e,classNames:n,id:F0(r)})}const P_e=({children:e,classNames:t,...n})=>Y.createElement("div",{className:t.listBox,...n},e);function L_e({children:e,render:t=P_e}){const{classNames:n,managerRef:r}=I.useContext(Vn),i=d_e();return!r.current.state.isExpanded||Y.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const j_e=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),Y.createElement("div",{className:i.join(" "),...r},e)};function M_e({children:e,index:t,render:n=j_e}){const{classNames:r}=I.useContext(Vn),{option:i,optionProps:o}=h_e(t);return n({classNames:r,children:e,option:i,...o})}const N_e=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),Y.createElement("div",{className:a.join(" "),...o},e)};function A_e({children:e,onBlur:t,onFocus:n,render:r=N_e}){const{classNames:i,isDisabled:o,isInvalid:a}=I.useContext(Vn),{isActive:s,rootProps:l}=m_e({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const R_e=({classNames:e,tag:t,...n})=>Y.createElement("button",{type:"button",className:e.tag,...n},Y.createElement("span",{className:e.tagName},t.label));function D_e({render:e=R_e,index:t,title:n}){const{classNames:r}=I.useContext(Vn),{tag:i,tagProps:o}=v_e(t,n);return e({classNames:r,tag:i,...o})}function I_e({children:e,label:t}){const{classNames:n}=I.useContext(Vn),{listRef:r}=y_e();return Y.createElement("ul",{className:n.tagList,"aria-label":t,ref:r,role:"list"},e.map(i=>Y.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const F_e={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},$_e=[Zs.Enter];function U_e({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=F_e,collapseOnSelect:c=!1,deleteButtonText:d="Remove %value% from the list",delimiterKeys:f=$_e,id:p="react-tags",isDisabled:m=!1,isInvalid:v=!1,labelText:y="Select tags",newOptionText:x="Add %value%",noOptionsText:_="No options found for %value%",onAdd:w,onBlur:S,onCollapse:E,onDelete:O,onExpand:k,onFocus:j,onInput:R,onShouldCollapse:U,onShouldExpand:A,onValidate:V,placeholderText:W="Add a tag",renderHighlight:X,renderInput:G,renderLabel:K,renderListBox:ne,renderOption:le,renderRoot:Z,renderTag:F,selected:D=[],suggestions:H=[],suggestionsTransform:re=i_e,tagListLabelText:z="Selected tags"},q){const ie=I.useRef(null),ae=I.useRef(null),he=I.useRef(null),C=f_e({activateFirstOption:e,allowNew:n,collapseOnSelect:c,newOptionText:x,noOptionsText:_,onAdd:w,onDelete:O,onCollapse:E,onExpand:k,onInput:R,onShouldCollapse:U,onShouldExpand:A,onValidate:V,selected:D,suggestions:H,suggestionsTransform:re}),M=p_e({inputRef:ae,managerRef:C});return q&&(typeof q=="function"?q(M):q.current=M),Y.createElement(Vn.Provider,{value:{classNames:l,comboBoxRef:ie,id:p,inputRef:ae,isDisabled:m,isInvalid:v,listBoxRef:he,managerRef:C}},Y.createElement(A_e,{onBlur:S,onFocus:j,render:Z},Y.createElement(k_e,{render:K},y),Y.createElement(I_e,{label:z},C.current.state.selected.map(($,J)=>Y.createElement(D_e,{key:L2($),index:J,render:F,title:d}))),Y.createElement(w_e,null,Y.createElement(O_e,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:f,placeholderText:W,render:G}),Y.createElement(L_e,{render:ne},C.current.state.options.map(($,J)=>Y.createElement(M_e,{key:L2($),index:J,render:le},Y.createElement(E_e,{option:$,query:C.current.state.value,render:X}))))),Y.createElement(b_e,{ariaAddedText:i,ariaDeletedText:s})))}const B_e=Y.forwardRef(U_e),z_e=/\s+/g,ZF=e=>e.trim().toLowerCase().replace(z_e,"-"),KF=({tag:e,colorGenerator:t})=>g.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"});let uN=1;const QF="Tag not found",XF="Add tag",V_e=e=>e!==QF,H_e=e=>e===XF,dN=e=>(uN+=1,{label:e,value:`${e}${uN}`}),W_e=e=>({tag:t,onClick:n})=>g.jsx(YT,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),Y_e=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=V_e(n.label),s=H_e(n.label);return g.jsx("div",{className:Qe(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?g.jsxs(g.Fragment,{children:[!s&&g.jsx(KF,{tag:`${n.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',ZF(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):g.jsx("i",{children:n.label})})},JF=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=Qt(JF),a=Hl("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=xs();return g.jsx(B_e,{ref:l,selected:e.map(dN),suggestions:r.filter(c=>!e.includes(c)).map(dN),renderTag:W_e(o),renderOption:Y_e(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:XF,noOptionsText:QF,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(c,d)=>{const f=c.toLowerCase().trim();return f.length<1?[]:[...d.filter(({label:p})=>s==="includes"?p.includes(f):p.startsWith(f))].slice(0,5)},onDelete:c=>{const d=[...e];d.splice(c,1),t(d)},onAdd:({label:c})=>t([...new Set([...e,...c.split(",").map(ZF)])])})},G_e=Xt(JF,["ColorGenerator"]),M2="shlink/tagDelete",q_e={deleting:!1,deleted:!1,error:!1},e$=In(`${M2}/tagDeleted`),Z_e=e=>{const t=Dr(`${M2}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=dr({name:M2,initialState:q_e,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:ya(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},iO="shlink/tagEdit",K_e={editing:!1,edited:!1,error:!1},t$=In(`${iO}/tagEdited`),Q_e=(e,t)=>Dr(`${iO}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),X_e=e=>dr({name:iO,initialState:K_e,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:ya(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...e8(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),oO="shlink/tagsList",Q1={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},fN=(e,t)=>n=>n===e?t:n,hN=(e,t)=>ET(n=>n===t,e),J_e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:s.visitsCount+o+a}}},{...t}),e1e=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),t1e=e=>Dr(`${oO}/listTags`,async()=>{const{tags:t,stats:n}=await e().tagsStats(),r=n.reduce((i,{tag:o,...a})=>(i[o]=a,i),{});return{tags:t,stats:r}}),n$=In(`${oO}/filterTags`),n1e=(e,t)=>dr({name:oO,initialState:Q1,reducers:{},extraReducers:n=>{n.addCase(n$,(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})=>({...Q1,error:!0,errorData:ya(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...Q1,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(e$,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:hN(r,a),filteredTags:hN(i,a)})),n.addCase(t$,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(fN(s.oldName,s.newName)).sort(),filteredTags:i.map(fN(s.oldName,s.newName)).sort()})),n.addCase(ap,(r,{payload:i})=>({...r,stats:J_e(e1e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),r1e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},r$=Ts(({filterTags:e,tagsList:t})=>{var n;const{TagsTable:r}=Qt(r$),i=HT(),[o,a]=I.useState(((n=i.tags)==null?void 0:n.defaultOrdering)??{}),s=Yr(()=>t.filteredTags.map(c=>{var d,f,p;const m=t.stats[c],v=((d=i.visits)!=null&&d.excludeBots?(f=m==null?void 0:m.visitsSummary)==null?void 0:f.nonBots:(p=m==null?void 0:m.visitsSummary)==null?void 0:p.total)??(m==null?void 0:m.visitsCount)??0;return{tag:c,visits:v,shortUrls:(m==null?void 0:m.shortUrlsCount)??0}}),c=>QI(c,o));if(t.loading)return g.jsx(qo,{loading:!0});if(t.error)return g.jsx(Wr,{type:"error",children:g.jsx(aa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})});const l=c=>()=>{const d=y0(c,o.field,o.dir);a({field:d?c:void 0,dir:d})};return g.jsxs(g.Fragment,{children:[g.jsx(Zh,{className:"mb-3",onChange:e}),g.jsx(_r,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(Kh,{items:r1e,order:o,onChange:(c,d)=>a({field:c,dir:d})})})}),(()=>{if(t.filteredTags.length<1)return g.jsx(qo,{children:"No tags found"});const c=s();return g.jsx(r,{sortedTags:c,currentOrder:o,orderByColumn:l})})()]})},()=>[vi.visits]),i1e=Xt(r$,["TagsTable"]),aO=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Lh(o)&&n(o);return g.jsxs(AE,{listClassName:Qe("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[g.jsx(ll,{disabled:t<=1,children:g.jsx(cl,{previous:!0,tag:"span",onClick:i(t-1)})}),FF(t,e).map((o,a)=>g.jsx(ll,{disabled:Lh(o),active:t===o,children:g.jsx(cl,{role:"link",tag:"span",onClick:i(o),children:$F(o)})},UF(o,a))),g.jsx(ll,{disabled:t>=e,children:g.jsx(cl,{next:!0,tag:"span",onClick:i(t+1)})})]})},o1e=20,i$=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Qt(i$),i=I.useRef(!0),{search:o}=Cn(),{page:a=1}=Yu(o),[s,l]=oge("page",Number(a)),c=_h(o1e,e),d=c.length>1,f=c[s-1]??[];return I.useEffect(()=>{!i.current&&l(1),i.current=!1},[l,e]),I.useEffect(()=>{scrollTo(0,0)},[s]),g.jsxs(yn,{bodyClassName:d?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",g.jsx(Pf,{currentOrder:n,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",g.jsx(Pf,{currentOrder:n,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",g.jsx(Pf,{currentOrder:n,field:"visits"})]}),g.jsx("th",{className:"tags-table__header-cell",children:g.jsx("span",{className:"sr-only",children:"Options"})})]}),g.jsx("tr",{children:g.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[f.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),f.map(p=>g.jsx(r,{tag:p},p.tag))]})]}),d&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(aO,{pagesCount:c.length,currentPage:s,setCurrentPage:l})})]},s)},a1e=Xt(i$,["TagsTableRow"]),o$=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Qt(o$),[i,o]=On(),[a,s]=On(),l=zl();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(KF,{tag:e.tag,colorGenerator:r})," ",e.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Ft,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:En(e.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Ft,{to:`${l}/tag/${e.tag}/visits`,children:En(e.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(v0,{children:[g.jsxs(Ue,{onClick:s,children:[g.jsx(Ne,{icon:CY,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ue,{onClick:o,children:[g.jsx(Ne,{icon:zY,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),g.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),g.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},s1e=Xt(o$,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),l1e=(e,t)=>{e.factory("TagsSelector",G_e),e.serviceFactory("DeleteTagConfirmModal",()=>V0e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",H0e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",s1e),e.factory("TagsTable",a1e),e.factory("TagsList",i1e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",X_e,"editTag"),e.serviceFactory("tagEditReducer",mt("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Z_e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",mt("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",n1e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",mt("reducer"),"tagsListReducerCreator"),e.serviceFactory("listTags",t1e,"apiClientFactory"),e.serviceFactory("filterTags",()=>n$),e.serviceFactory("deleteTag",mt("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>e$),e.serviceFactory("editTag",Q_e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>t$)};var c1e="Expected a function",a$="__lodash_hash_undefined__",s$=1/0,u1e="[object Function]",d1e="[object GeneratorFunction]",f1e="[object Symbol]",h1e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p1e=/^\w*$/,m1e=/^\./,g1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v1e=/[\\^$.*+?()[\]{}|]/g,y1e=/\\(\\)?/g,_1e=/^\[object .+?Constructor\]$/,b1e=typeof $c=="object"&&$c&&$c.Object===Object&&$c,w1e=typeof self=="object"&&self&&self.Object===Object&&self,sO=b1e||w1e||Function("return this")();function x1e(e,t){return e==null?void 0:e[t]}function S1e(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var E1e=Array.prototype,T1e=Function.prototype,l$=Object.prototype,X1=sO["__core-js_shared__"],pN=function(){var e=/[^.]+$/.exec(X1&&X1.keys&&X1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),c$=T1e.toString,lO=l$.hasOwnProperty,u$=l$.toString,O1e=RegExp("^"+c$.call(lO).replace(v1e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mN=sO.Symbol,C1e=E1e.splice,k1e=d$(sO,"Map"),jh=d$(Object,"create"),gN=mN?mN.prototype:void 0,vN=gN?gN.toString:void 0;function jl(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 P1e(){this.__data__=jh?jh(null):{}}function L1e(e){return this.has(e)&&delete this.__data__[e]}function j1e(e){var t=this.__data__;if(jh){var n=t[e];return n===a$?void 0:n}return lO.call(t,e)?t[e]:void 0}function M1e(e){var t=this.__data__;return jh?t[e]!==void 0:lO.call(t,e)}function N1e(e,t){var n=this.__data__;return n[e]=jh&&t===void 0?a$:t,this}jl.prototype.clear=P1e;jl.prototype.delete=L1e;jl.prototype.get=j1e;jl.prototype.has=M1e;jl.prototype.set=N1e;function Qu(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 A1e(){this.__data__=[]}function R1e(e){var t=this.__data__,n=$0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():C1e.call(t,n,1),!0}function D1e(e){var t=this.__data__,n=$0(t,e);return n<0?void 0:t[n][1]}function I1e(e){return $0(this.__data__,e)>-1}function F1e(e,t){var n=this.__data__,r=$0(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Qu.prototype.clear=A1e;Qu.prototype.delete=R1e;Qu.prototype.get=D1e;Qu.prototype.has=I1e;Qu.prototype.set=F1e;function Wl(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 $1e(){this.__data__={hash:new jl,map:new(k1e||Qu),string:new jl}}function U1e(e){return U0(this,e).delete(e)}function B1e(e){return U0(this,e).get(e)}function z1e(e){return U0(this,e).has(e)}function V1e(e,t){return U0(this,e).set(e,t),this}Wl.prototype.clear=$1e;Wl.prototype.delete=U1e;Wl.prototype.get=B1e;Wl.prototype.has=z1e;Wl.prototype.set=V1e;function $0(e,t){for(var n=e.length;n--;)if(ebe(e[n][0],t))return n;return-1}function H1e(e,t){t=q1e(t,e)?[t]:G1e(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[X1e(t[n++])];return n&&n==r?e:void 0}function W1e(e){if(!h$(e)||K1e(e))return!1;var t=tbe(e)||S1e(e)?O1e:_1e;return t.test(J1e(e))}function Y1e(e){if(typeof e=="string")return e;if(uO(e))return vN?vN.call(e):"";var t=e+"";return t=="0"&&1/e==-s$?"-0":t}function G1e(e){return f$(e)?e:Q1e(e)}function U0(e,t){var n=e.__data__;return Z1e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function d$(e,t){var n=x1e(e,t);return W1e(n)?n:void 0}function q1e(e,t){if(f$(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||uO(e)?!0:p1e.test(e)||!h1e.test(e)||t!=null&&e in Object(t)}function Z1e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function K1e(e){return!!pN&&pN in e}var Q1e=cO(function(e){e=rbe(e);var t=[];return m1e.test(e)&&t.push(""),e.replace(g1e,function(n,r,i,o){t.push(i?o.replace(y1e,"$1"):r||n)}),t});function X1e(e){if(typeof e=="string"||uO(e))return e;var t=e+"";return t=="0"&&1/e==-s$?"-0":t}function J1e(e){if(e!=null){try{return c$.call(e)}catch{}try{return e+""}catch{}}return""}function cO(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(c1e);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 a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(cO.Cache||Wl),n}cO.Cache=Wl;function ebe(e,t){return e===t||e!==e&&t!==t}var f$=Array.isArray;function tbe(e){var t=h$(e)?u$.call(e):"";return t==u1e||t==d1e}function h$(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nbe(e){return!!e&&typeof e=="object"}function uO(e){return typeof e=="symbol"||nbe(e)&&u$.call(e)==f1e}function rbe(e){return e==null?"":Y1e(e)}function ibe(e,t,n){var r=e==null?void 0:H1e(e,t);return r===void 0?n:r}var obe=ibe;const yN=Ku(obe);function J1(e){return e==null?"":`${e}`}function abe(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function dO(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 sbe(e={stringFormatter:dO()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function lbe(e={stringFormatter:dO()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}function _N(e,t,n){const r=e[t];return r===void 0?n:r}function p$(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function N2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var bN;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(bN||(bN={}));class cbe{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||dO(),i=lbe({stringFormatter:r}),o={header:r,undefined:J1,boolean:J1,number:abe(),bigint:J1,string:r,symbol:sbe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>yN(i,r,n):i=>_N(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?a=>yN(a,o,i):a=>_N(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const c=s(l,a);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return N2(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(p$,[]),[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 N2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class ube extends cbe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,a)=>(Object.keys(a).forEach(s=>{o.includes(s)||o.push(s)}),o),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(p$,[])}processData(t){return N2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Ln;(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"})(Ln||(Ln={}));Ln.QUOTATION_MARK+"",Ln.QUOTATION_MARK,Ln.REVERSE_SOLIDUS+"",Ln.REVERSE_SOLIDUS,Ln.SOLIDUS+"",Ln.SOLIDUS,Ln.LATIN_SMALL_LETTER_B+"",Ln.BACKSPACE,Ln.LATIN_SMALL_LETTER_F+"",Ln.FORM_FEED,Ln.LATIN_SMALL_LETTER_N+"",Ln.NEWLINE,Ln.LATIN_SMALL_LETTER_R+"",Ln.CARRIAGE_RETURN,Ln.LATIN_SMALL_LETTER_T+"",Ln.TAB;var wN;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(wN||(wN={}));var xN;(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"})(xN||(xN={}));var SN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(SN||(SN={}));var EN;(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"})(EN||(EN={}));const dbe=new ube,fbe=e=>dbe.parse(e),hbe=6,TN="0123456789ABCDEF",pbe=128,{floor:mbe,random:gbe,sqrt:vbe,round:ybe}=Math,_be=()=>`#${zT(hbe,()=>TN[mbe(gbe()*TN.length)]).join("")}`,ON=e=>e.toLowerCase().trim(),bbe=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),wbe=(e=0,t=0,n=0)=>ybe(vbe(.299*e**2+.587*t**2+.114*n**2));class xbe{constructor(t){Te(this,"colors"),Te(this,"lights"),Te(this,"getColorForKey",r=>{const i=ON(r);return this.colors[i]||this.setColorForKey(i,_be())}),Te(this,"setColorForKey",(r,i)=>{var o;const a=ON(r);return this.colors[a]=i,(o=this.storage)==null||o.storeTagColors(this.colors),i}),Te(this,"isColorLightForKey",r=>{const i=this.getColorForKey(r).substring(1);if(qu(this.lights[i])){const o=bbe(i);this.lights[i]=wbe(...o)>=pbe}return this.lights[i]});var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}}const m$=({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)},Sbe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);m$(e,i,n)};class Ebe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);m$(this.window,i,n)}}class Tbe{constructor(t,n){Te(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Te(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Te(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);Sbe(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function Obe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",Ebe,"fetch","window"),e.service("ColorGenerator",xbe,"TagColorsStorage"),e.constant("jsonToCsv",fbe),e.service("ReportExporter",Tbe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>GI)}const fO=e=>e.visitedUrl!==void 0,Cbe=e=>e.visitedUrl!==void 0,kbe=Yr(nfe(e=>fO(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),zm=(e,t)=>X5(mt(t),e),fp=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&gs(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&gs(r==null?void 0:r.endDate))??void 0,a=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:a}},hp=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>g.jsx("header",{children:g.jsxs(Kr,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(yt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,"aria-label":"Go back",children:g.jsx(Ne,{icon:_4})}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:i})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(oF,{visitsCount:e.length,shortUrl:n})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:i})}),r&&g.jsx("div",{className:"mt-md-2",children:r})]})}),g$=({title:e,footer:t,children:n})=>g.jsxs(Kr,{role:"document",children:[g.jsx(vu,{className:"chart-card__header",children:typeof e=="function"?e():e}),g.jsx(gu,{children:n}),t&&g.jsx(jI,{className:"chart-card__footer--sticky",children:t})]}),v$="label";function CN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Pbe(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function y$(e,t){e.labels=t}function _$(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v$;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function Lbe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v$;const n={labels:[],datasets:[]};return y$(n,e.labels),_$(n,e.datasets,t),n}function b$(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function jbe(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:f,...p}=e,m=I.useRef(null),v=I.useRef(),y=()=>{m.current&&(v.current=new E0(m.current,{type:a,data:Lbe(s,o),options:l&&{...l},plugins:c}),CN(t,v.current))},x=()=>{CN(t,null),v.current&&(v.current.destroy(),v.current=null)};return I.useEffect(()=>{!i&&v.current&&l&&Pbe(v.current,l)},[i,l]),I.useEffect(()=>{!i&&v.current&&y$(v.current.config.data,s.labels)},[i,s.labels]),I.useEffect(()=>{!i&&v.current&&s.datasets&&_$(v.current.config.data,s.datasets,o)},[i,s.datasets]),I.useEffect(()=>{v.current&&(i?(x(),setTimeout(y)):v.current.update(f))},[i,l,s.labels,s.datasets,f]),I.useEffect(()=>{v.current&&(x(),setTimeout(y))},[a]),I.useEffect(()=>(y(),()=>x()),[]),Y.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),d)}const Mbe=I.forwardRef(jbe);function hO(e,t){return E0.register(t),I.forwardRef((n,r)=>Y.createElement(Mbe,Object.assign({},n,{ref:r,type:e})))}const Nbe=hO("line",xf),Abe=hO("bar",wf),Rbe=hO("doughnut",Va),w$=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},x$=({dataset:e,raw:t})=>`${e.label}: ${En(`${t}`)}`,Dbe=({label:e,raw:t})=>`${e}: ${En(`${t}`)}`,Ibe=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return g.jsx("ul",{className:"doughnut-chart-legend",children:n.map((a,s)=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[s]??o}}),g.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:a})]},a))})},Fbe=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:dne()?cne:lne,borderWidth:2}],$be=(e,t)=>({labels:e,datasets:Fbe(t)}),Ube=I.memo(({label:e,stats:t})=>{const[n,r]=I.useState(),i=Object.keys(t),o=Object.values(t),a={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:Dbe}}}},s=$be(i,o);return g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx(Rbe,{"aria-label":e,height:300,data:s,options:a,ref:l=>{l&&r(l)}})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:n&&g.jsx(Ibe,{chart:n})})]})}),kN=({title:e,stats:t})=>g.jsx(g$,{title:e,children:g.jsx(Ube,{stats:t,label:e})}),Bbe={"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"},S$={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"},cn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},mr={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"},ka={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class be{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=be.getVersionPrecision(t),o=be.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=be.map([t,n],c=>{const d=a-be.getVersionPrecision(c),f=c+new Array(d+1).join(".0");return be.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])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 a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(s=>{r[s]=a[s]})}return t}static getBrowserAlias(t){return Bbe[t]}static getBrowserTypeByAlias(t){return S$[t]||""}}const Tt=/version\/(\d+(\.?_?\d+)+)/i,zbe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=be.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=be.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=be.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=be.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=be.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=be.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(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=be.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=be.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=be.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=be.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=be.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=be.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=be.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=be.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=be.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=be.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=be.getFirstMatch(Tt,e)||be.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=be.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=be.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=be.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=be.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=be.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=be.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=be.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=be.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=be.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(Tt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:be.getFirstMatch(r,e),version:be.getSecondMatch(r,e)}}}],Vbe=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:mr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:mr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=be.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=be.getWindowsVersionName(t);return{name:mr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:mr.iOS},n=be.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=be.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=be.getMacOSVersionName(t),r={name:mr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=be.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:mr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=be.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=be.getAndroidVersionName(t),r={name:mr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=be.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:mr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=be.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||be.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||be.getFirstMatch(/\bbb(\d+)/i,e);return{name:mr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:mr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:mr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:mr.Linux}}},{test:[/CrOS/],describe(){return{name:mr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:mr.PlayStation4,version:t}}}],Hbe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=be.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:cn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:cn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:cn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:cn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:cn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:cn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:cn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=be.getFirstMatch(/(ipod|iphone)/i,e);return{type:cn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:cn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:cn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:cn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:cn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:cn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:cn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:cn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:cn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:cn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:cn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:cn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:cn.tv}}}],Wbe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ka.Blink};const t=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ka.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:ka.Trident},n=be.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:ka.Presto},n=be.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:ka.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ka.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:ka.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class PN{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=be.find(zbe,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=be.find(Vbe,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=be.find(Hbe,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=be.find(Wbe,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 be.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const s=t[a];typeof s=="string"?(i[a]=s,o+=1):typeof s=="object"&&(n[a]=s,r+=1)}),r>0){const a=Object.keys(n),s=be.find(a,c=>this.isOS(c));if(s){const c=this.satisfies(n[s]);if(c!==void 0)return c}const l=be.find(a,c=>this.isPlatform(c));if(l){const c=this.satisfies(n[l]);if(c!==void 0)return c}}if(o>0){const a=Object.keys(i),s=be.find(a,l=>this.isBrowser(l,!0));if(s!==void 0)return this.compareVersion(i[s])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=be.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(be.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class Ybe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new PN(t,n)}static parse(t){return new PN(t).getResult()}static get BROWSER_MAP(){return S$}static get ENGINE_MAP(){return ka}static get OS_MAP(){return mr}static get PLATFORMS_MAP(){return cn}}const Vm="Others",Gbe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],qbe=e=>{if(!po(e))return{browser:Vm,os:Vm};const{browser:{name:t},os:{name:n}}=Ybe.parse(e);return{os:n??Vm,browser:t&&Gbe.includes(t)?t:Vm}},Zbe=e=>{var t;return po(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},pO=(e,t)=>Object.values({...t8(t,t.map(()=>0)),...e}),LN={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},Kbe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},Qbe={hourly:Qfe,daily:LT,weekly:ehe,monthly:ry},mO={hourly:e=>Pu(e,"yyyy-MM-dd HH:00"),daily:e=>nl(e),weekly(e){const t=nl(bh(e)),n=nl(rhe(e));return`${t} - ${n}`},monthly:e=>Pu(e,"yyyy-MM")},Xbe=e=>{const t=new Date,n=sa(e);return TT([[()=>LT(t,n)<=2,k1("hourly")],[()=>ry(t,n)<=1,k1("daily")],[()=>ry(t,n)<=6,k1("weekly")]])()??"monthly"},jN=(e,t)=>X5(n=>mO[e](sa(n.date)),t),Jbe=(e,t)=>t.reduce((n,r)=>{const i=mO[e](sa(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),ewe=(e,t)=>{const n=Qbe[e],r=mO[e],i=sa(t[0].date),o=sa(t[t.length-1].date),a=n(i,o),s=Kbe[e];return[r(o),...zT(a,l=>r(Ufe(o,s(l))))]},twe=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=ewe(n,e);return[i,pO(t,i)]},MN=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let eb=null;const nwe=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;eb===e[i]?(r([]),eb=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),eb=e[i]??null)},rwe=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,a]=I.useState(t.length>0?Xbe(t[t.length-1].date):"monthly"),[s,l]=On(!0),c=I.useRef(null),d=I.useRef(null),f=I.useMemo(()=>Jbe(o,t),[o,t]),p=I.useMemo(()=>jN(o,c2(t)),[o,t]),[m,v]=I.useMemo(()=>twe(t,p,o,s),[t,p,o,s]),y=I.useMemo(()=>pO(jN(o,c2(n)),m),[n,o,m]),x=()=>{const E=MN(v,"Visits",RE);if(n.length===0)return[E];const O=MN(y,r,XI);return[E,O]},_=()=>({labels:m,datasets:x()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:x$}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:En}},x:{title:{display:!0,text:LN[o]}}},onHover:w$},S=E=>g.jsx(Nbe,{"aria-label":e,ref:E,data:_(),options:w,onClick:O=>nwe(m,f,b$(E.current,O),i)});return g.jsxs(Kr,{children:[g.jsxs(vu,{role:"heading","aria-level":4,children:[e,g.jsx("div",{className:"float-end",children:g.jsxs(qh,{children:[g.jsx(zu,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(Bu,{end:!0,children:Object.entries(LN).map(([E,O])=>g.jsx(Ue,{active:o===E,onClick:()=>a(E),children:O},E))})]})}),g.jsx("div",{className:"float-end me-2",children:g.jsx(yu,{checked:s,onChange:l,children:g.jsx("small",{children:"Skip dates with no visits"})})})]}),g.jsxs(gu,{className:"line-chart-card__body",children:[n.length>0&&S(c),n.length===0&&S(d)]})]})},iwe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>g.jsxs(qh,{children:[g.jsx(zu,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(Bu,{end:!0,children:[t.map(i=>g.jsxs(Ue,{active:i===n,onClick:()=>r(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsx(Ue,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),owe=e=>e.startsWith("hidden")?"":e,awe=e=>!!e&&Object.keys(e).length>0,swe=e=>e.length>20?e.length*10:void 0,lwe=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:ane,borderColor:RE,borderWidth:2};return t.every(i=>i===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:sne,borderColor:XI,borderWidth:2}]},cwe=(e,t,n,r)=>({labels:e,datasets:lwe(t,n,r)}),uwe=(e,[t],n)=>{!n||!t||n(e[t.index])},dwe=({label:e,stats:t,highlightedStats:n,highlightedLabel:r,onClick:i,max:o})=>{const a=oa(t).map(owe),s=Y5(awe(n)?oa(n).reduce((y,x)=>(y[x]&&(y[x]-=n[x]),y),{...t}):t),l=pO(n??{},a),c=I.useRef(null),d=I.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:y})=>y!=="",callbacks:{label:x$}}},scales:{x:{beginAtZero:!0,stacked:!0,max:o,ticks:{precision:0,callback:En}},y:{stacked:!0}},onHover:w$,indexAxis:"y"},p=cwe(a,s,l,r),m=swe(a),v=(y,x)=>g.jsx(Abe,{"aria-label":e,ref:x,data:p,options:f,height:m,onClick:_=>uwe(a,b$(x.current,_),i)},`${m}_${y}`);return g.jsxs(g.Fragment,{children:[n!==void 0&&v("with_stats",c),n===void 0&&v("without_stats",d)]})},fwe=e=>ey(e)==="String"?wfe(e):e,NN=([e])=>e,AN=([,e])=>e,Hm=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...a})=>{const[s,l]=I.useState({}),[c,d]=I.useState(1),[f,p]=I.useState(50),m=(k,j)=>{const R=HM(k),U=s.field?yfe(Yr(s.field===Object.keys(j)[0]?NN:AN,fwe),R):R;return!s.dir||s.dir==="ASC"?U:c2(U)},v=k=>{const j=k[c-1];if(c<k.length)return j;const R=k[0].length;return[...j,...zT(R-j.length,U=>[`hidden_${U}`,0])]},y=k=>g.jsx(aO,{currentPage:c,pagesCount:k,setCurrentPage:d}),x=(k,j,R)=>{const U=m(k,j),A=U.map(NN),V=R&&HM({...t8(A,A.map(()=>0)),...R});if(U.length<=f)return{currentPageStats:Nm(U),currentPageHighlightedStats:V&&Nm(V)};const W=_h(f,U),X=V&&_h(f,V);return{currentPageStats:Nm(v(W)),currentPageHighlightedStats:X&&Nm(v(X)),pagination:y(W.length),max:Cge(Math.max(...U.map(AN)))}},{currentPageStats:_,currentPageHighlightedStats:w,pagination:S,max:E}=x(e,r,t&&Object.keys(t).length>0?t:void 0),O=Object.keys(_);return g.jsx(g$,{title:()=>g.jsxs(g.Fragment,{children:[n,g.jsx("div",{className:"float-end",children:g.jsx(Kh,{isButton:!1,right:!0,items:r,order:s,onChange:(k,j)=>{l({field:k,dir:j}),d(1)}})}),o&&Object.keys(e).length>50&&g.jsx("div",{className:"float-end",children:g.jsx(iwe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:f,setValue:k=>{p(k),d(1)}})}),i&&g.jsx("div",{className:"float-end",children:i(S?O:void 0)})]}),footer:S,children:g.jsx(dwe,{stats:_,highlightedStats:w,max:E,label:n,...a})})},hwe=()=>{const e=Co(),t=$8(),{filtering:n,domain:r}=I.useMemo(()=>{const{startDate:o,endDate:a,orphanVisitsType:s,excludeBots:l,domain:c}=t;return{domain:c,filtering:{dateRange:o!=null||a!=null?N8(o,a):void 0,visitsFilter:{orphanVisitsType:s,excludeBots:qu(l)?void 0:l==="true"}}}},[t]),i=I.useCallback(o=>{const{dateRange:a,visitsFilter:s}=dfe(n,o),{excludeBots:l,orphanVisitsType:c}=s,d={startDate:(a==null?void 0:a.startDate)&&gs(a.startDate)||"",endDate:(a==null?void 0:a.endDate)&&gs(a.endDate)||"",excludeBots:l===void 0?void 0:F8(l),orphanVisitsType:c,domain:r},f=_0(d),p=Qi(f)?"":`?${f}`;e(p,{replace:!0,relative:"route"})},[n,e,r]);return[n,i]};function E$(e,t){const n=I.useRef(t);I.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const pwe=1;function mwe(e){return Object.freeze({__version:pwe,map:e})}function gwe(e,t){return Object.freeze({...e,...t})}const T$=I.createContext(null),O$=T$.Provider;function C$(){const e=I.useContext(T$);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function vwe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return I.useImperativeHandle(r,()=>i),n.children==null?null:Y.createElement(O$,{value:o},n.children)}return I.forwardRef(t)}function ywe(e){function t(n,r){const[i,o]=I.useState(!1),{instance:a}=e(n,o).current;I.useImperativeHandle(r,()=>a),I.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?Rl.createPortal(n.children,s):null}return I.forwardRef(t)}function _we(e){function t(n,r){const{instance:i}=e(n).current;return I.useImperativeHandle(r,()=>i),null}return I.forwardRef(t)}function k$(e,t){const n=I.useRef();I.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function gO(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function bwe(e,t){return function(n,r){const i=C$(),o=e(gO(n,i),i);return E$(i.map,n.attribution),k$(o.current,n.eventHandlers),t(o.current,i,n,r),o}}var A2={exports:{}};/* @preserve
|
||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/(function(e,t){(function(n,r){r(t)})($c,function(n){var r="1.9.4";function i(u){var h,b,T,P;for(b=1,T=arguments.length;b<T;b++){P=arguments[b];for(h in P)u[h]=P[h]}return u}var o=Object.create||function(){function u(){}return function(h){return u.prototype=h,new u}}();function a(u,h){var b=Array.prototype.slice;if(u.bind)return u.bind.apply(u,b.call(arguments,1));var T=b.call(arguments,2);return function(){return u.apply(h,T.length?T.concat(b.call(arguments)):arguments)}}var s=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++s),u._leaflet_id}function c(u,h,b){var T,P,B,oe;return oe=function(){T=!1,P&&(B.apply(b,P),P=!1)},B=function(){T?P=arguments:(u.apply(b,arguments),setTimeout(oe,h),T=!0)},B}function d(u,h,b){var T=h[1],P=h[0],B=T-P;return u===T&&b?u:((u-P)%B+B)%B+P}function f(){return!1}function p(u,h){if(h===!1)return u;var b=Math.pow(10,h===void 0?6:h);return Math.round(u*b)/b}function m(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return m(u).split(/\s+/)}function y(u,h){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var b in h)u.options[b]=h[b];return u.options}function x(u,h,b){var T=[];for(var P in u)T.push(encodeURIComponent(b?P.toUpperCase():P)+"="+encodeURIComponent(u[P]));return(!h||h.indexOf("?")===-1?"?":"&")+T.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function w(u,h){return u.replace(_,function(b,T){var P=h[T];if(P===void 0)throw new Error("No value provided for variable "+b);return typeof P=="function"&&(P=P(h)),P})}var S=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function E(u,h){for(var b=0;b<u.length;b++)if(u[b]===h)return b;return-1}var O="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var j=0;function R(u){var h=+new Date,b=Math.max(0,16-(h-j));return j=h+b,window.setTimeout(u,b)}var U=window.requestAnimationFrame||k("RequestAnimationFrame")||R,A=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function V(u,h,b){if(b&&U===R)u.call(h);else return U.call(window,a(u,h))}function W(u){u&&A.call(window,u)}var X={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:c,wrapNum:d,falseFn:f,formatNum:p,trim:m,splitWords:v,setOptions:y,getParamString:x,template:w,isArray:S,indexOf:E,emptyImageUrl:O,requestFn:U,cancelFn:A,requestAnimFrame:V,cancelAnimFrame:W};function G(){}G.extend=function(u){var h=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},b=h.__super__=this.prototype,T=o(b);T.constructor=h,h.prototype=T;for(var P in this)Object.prototype.hasOwnProperty.call(this,P)&&P!=="prototype"&&P!=="__super__"&&(h[P]=this[P]);return u.statics&&i(h,u.statics),u.includes&&(K(u.includes),i.apply(null,[T].concat(u.includes))),i(T,u),delete T.statics,delete T.includes,T.options&&(T.options=b.options?o(b.options):{},i(T.options,u.options)),T._initHooks=[],T.callInitHooks=function(){if(!this._initHooksCalled){b.callInitHooks&&b.callInitHooks.call(this),this._initHooksCalled=!0;for(var B=0,oe=T._initHooks.length;B<oe;B++)T._initHooks[B].call(this)}},h},G.include=function(u){var h=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=h,this.mergeOptions(u.options)),this},G.mergeOptions=function(u){return i(this.prototype.options,u),this},G.addInitHook=function(u){var h=Array.prototype.slice.call(arguments,1),b=typeof u=="function"?u:function(){this[u].apply(this,h)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(b),this};function K(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var h=0;h<u.length;h++)u[h]===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 ne={on:function(u,h,b){if(typeof u=="object")for(var T in u)this._on(T,u[T],h);else{u=v(u);for(var P=0,B=u.length;P<B;P++)this._on(u[P],h,b)}return this},off:function(u,h,b){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var T in u)this._off(T,u[T],h);else{u=v(u);for(var P=arguments.length===1,B=0,oe=u.length;B<oe;B++)P?this._off(u[B]):this._off(u[B],h,b)}return this},_on:function(u,h,b,T){if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}if(this._listens(u,h,b)===!1){b===this&&(b=void 0);var P={fn:h,ctx:b};T&&(P.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(P)}},_off:function(u,h,b){var T,P,B;if(this._events&&(T=this._events[u],!!T)){if(arguments.length===1){if(this._firingCount)for(P=0,B=T.length;P<B;P++)T[P].fn=f;delete this._events[u];return}if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}var oe=this._listens(u,h,b);if(oe!==!1){var de=T[oe];this._firingCount&&(de.fn=f,this._events[u]=T=T.slice()),T.splice(oe,1)}}},fire:function(u,h,b){if(!this.listens(u,b))return this;var T=i({},h,{type:u,target:this,sourceTarget:h&&h.sourceTarget||this});if(this._events){var P=this._events[u];if(P){this._firingCount=this._firingCount+1||1;for(var B=0,oe=P.length;B<oe;B++){var de=P[B],pe=de.fn;de.once&&this.off(u,pe,de.ctx),pe.call(de.ctx||this,T)}this._firingCount--}}return b&&this._propagateEvent(T),this},listens:function(u,h,b,T){typeof u!="string"&&console.warn('"string" type argument expected');var P=h;typeof h!="function"&&(T=!!h,P=void 0,b=void 0);var B=this._events&&this._events[u];if(B&&B.length&&this._listens(u,P,b)!==!1)return!0;if(T){for(var oe in this._eventParents)if(this._eventParents[oe].listens(u,h,b,T))return!0}return!1},_listens:function(u,h,b){if(!this._events)return!1;var T=this._events[u]||[];if(!h)return!!T.length;b===this&&(b=void 0);for(var P=0,B=T.length;P<B;P++)if(T[P].fn===h&&T[P].ctx===b)return P;return!1},once:function(u,h,b){if(typeof u=="object")for(var T in u)this._on(T,u[T],h,!0);else{u=v(u);for(var P=0,B=u.length;P<B;P++)this._on(u[P],h,b,!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 h in this._eventParents)this._eventParents[h].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!0)}};ne.addEventListener=ne.on,ne.removeEventListener=ne.clearAllEventListeners=ne.off,ne.addOneTimeEventListener=ne.once,ne.fireEvent=ne.fire,ne.hasEventListeners=ne.listens;var le=G.extend(ne);function Z(u,h,b){this.x=b?Math.round(u):u,this.y=b?Math.round(h):h}var F=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};Z.prototype={clone:function(){return new Z(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 Z(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new Z(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=F(this.x),this.y=F(this.y),this},distanceTo:function(u){u=D(u);var h=u.x-this.x,b=u.y-this.y;return Math.sqrt(h*h+b*b)},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,h,b){return u instanceof Z?u:S(u)?new Z(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new Z(u.x,u.y):new Z(u,h,b)}function H(u,h){if(u)for(var b=h?[u,h]:u,T=0,P=b.length;T<P;T++)this.extend(b[T])}H.prototype={extend:function(u){var h,b;if(!u)return this;if(u instanceof Z||typeof u[0]=="number"||"x"in u)h=b=D(u);else if(u=re(u),h=u.min,b=u.max,!h||!b)return this;return!this.min&&!this.max?(this.min=h.clone(),this.max=b.clone()):(this.min.x=Math.min(h.x,this.min.x),this.max.x=Math.max(b.x,this.max.x),this.min.y=Math.min(h.y,this.min.y),this.max.y=Math.max(b.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 h,b;return typeof u[0]=="number"||u instanceof Z?u=D(u):u=re(u),u instanceof H?(h=u.min,b=u.max):h=b=u,h.x>=this.min.x&&b.x<=this.max.x&&h.y>=this.min.y&&b.y<=this.max.y},intersects:function(u){u=re(u);var h=this.min,b=this.max,T=u.min,P=u.max,B=P.x>=h.x&&T.x<=b.x,oe=P.y>=h.y&&T.y<=b.y;return B&&oe},overlaps:function(u){u=re(u);var h=this.min,b=this.max,T=u.min,P=u.max,B=P.x>h.x&&T.x<b.x,oe=P.y>h.y&&T.y<b.y;return B&&oe},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var h=this.min,b=this.max,T=Math.abs(h.x-b.x)*u,P=Math.abs(h.y-b.y)*u;return re(D(h.x-T,h.y-P),D(b.x+T,b.y+P))},equals:function(u){return u?(u=re(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function re(u,h){return!u||u instanceof H?u:new H(u,h)}function z(u,h){if(u)for(var b=h?[u,h]:u,T=0,P=b.length;T<P;T++)this.extend(b[T])}z.prototype={extend:function(u){var h=this._southWest,b=this._northEast,T,P;if(u instanceof ie)T=u,P=u;else if(u instanceof z){if(T=u._southWest,P=u._northEast,!T||!P)return this}else return u?this.extend(ae(u)||q(u)):this;return!h&&!b?(this._southWest=new ie(T.lat,T.lng),this._northEast=new ie(P.lat,P.lng)):(h.lat=Math.min(T.lat,h.lat),h.lng=Math.min(T.lng,h.lng),b.lat=Math.max(P.lat,b.lat),b.lng=Math.max(P.lng,b.lng)),this},pad:function(u){var h=this._southWest,b=this._northEast,T=Math.abs(h.lat-b.lat)*u,P=Math.abs(h.lng-b.lng)*u;return new z(new ie(h.lat-T,h.lng-P),new ie(b.lat+T,b.lng+P))},getCenter:function(){return new ie((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 ie(this.getNorth(),this.getWest())},getSouthEast:function(){return new ie(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 ie||"lat"in u?u=ae(u):u=q(u);var h=this._southWest,b=this._northEast,T,P;return u instanceof z?(T=u.getSouthWest(),P=u.getNorthEast()):T=P=u,T.lat>=h.lat&&P.lat<=b.lat&&T.lng>=h.lng&&P.lng<=b.lng},intersects:function(u){u=q(u);var h=this._southWest,b=this._northEast,T=u.getSouthWest(),P=u.getNorthEast(),B=P.lat>=h.lat&&T.lat<=b.lat,oe=P.lng>=h.lng&&T.lng<=b.lng;return B&&oe},overlaps:function(u){u=q(u);var h=this._southWest,b=this._northEast,T=u.getSouthWest(),P=u.getNorthEast(),B=P.lat>h.lat&&T.lat<b.lat,oe=P.lng>h.lng&&T.lng<b.lng;return B&&oe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,h){return u?(u=q(u),this._southWest.equals(u.getSouthWest(),h)&&this._northEast.equals(u.getNorthEast(),h)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function q(u,h){return u instanceof z?u:new z(u,h)}function ie(u,h,b){if(isNaN(u)||isNaN(h))throw new Error("Invalid LatLng object: ("+u+", "+h+")");this.lat=+u,this.lng=+h,b!==void 0&&(this.alt=+b)}ie.prototype={equals:function(u,h){if(!u)return!1;u=ae(u);var b=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return b<=(h===void 0?1e-9:h)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return C.distance(this,ae(u))},wrap:function(){return C.wrapLatLng(this)},toBounds:function(u){var h=180*u/40075017,b=h/Math.cos(Math.PI/180*this.lat);return q([this.lat-h,this.lng-b],[this.lat+h,this.lng+b])},clone:function(){return new ie(this.lat,this.lng,this.alt)}};function ae(u,h,b){return u instanceof ie?u:S(u)&&typeof u[0]!="object"?u.length===3?new ie(u[0],u[1],u[2]):u.length===2?new ie(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new ie(u.lat,"lng"in u?u.lng:u.lon,u.alt):h===void 0?null:new ie(u,h,b)}var he={latLngToPoint:function(u,h){var b=this.projection.project(u),T=this.scale(h);return this.transformation._transform(b,T)},pointToLatLng:function(u,h){var b=this.scale(h),T=this.transformation.untransform(u,b);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 h=this.projection.bounds,b=this.scale(u),T=this.transformation.transform(h.min,b),P=this.transformation.transform(h.max,b);return new H(T,P)},infinite:!1,wrapLatLng:function(u){var h=this.wrapLng?d(u.lng,this.wrapLng,!0):u.lng,b=this.wrapLat?d(u.lat,this.wrapLat,!0):u.lat,T=u.alt;return new ie(b,h,T)},wrapLatLngBounds:function(u){var h=u.getCenter(),b=this.wrapLatLng(h),T=h.lat-b.lat,P=h.lng-b.lng;if(T===0&&P===0)return u;var B=u.getSouthWest(),oe=u.getNorthEast(),de=new ie(B.lat-T,B.lng-P),pe=new ie(oe.lat-T,oe.lng-P);return new z(de,pe)}},C=i({},he,{wrapLng:[-180,180],R:6371e3,distance:function(u,h){var b=Math.PI/180,T=u.lat*b,P=h.lat*b,B=Math.sin((h.lat-u.lat)*b/2),oe=Math.sin((h.lng-u.lng)*b/2),de=B*B+Math.cos(T)*Math.cos(P)*oe*oe,pe=2*Math.atan2(Math.sqrt(de),Math.sqrt(1-de));return this.R*pe}}),M=6378137,$={R:M,MAX_LATITUDE:85.0511287798,project:function(u){var h=Math.PI/180,b=this.MAX_LATITUDE,T=Math.max(Math.min(b,u.lat),-b),P=Math.sin(T*h);return new Z(this.R*u.lng*h,this.R*Math.log((1+P)/(1-P))/2)},unproject:function(u){var h=180/Math.PI;return new ie((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*h,u.x*h/this.R)},bounds:function(){var u=M*Math.PI;return new H([-u,-u],[u,u])}()};function J(u,h,b,T){if(S(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=h,this._c=b,this._d=T}J.prototype={transform:function(u,h){return this._transform(u.clone(),h)},_transform:function(u,h){return h=h||1,u.x=h*(this._a*u.x+this._b),u.y=h*(this._c*u.y+this._d),u},untransform:function(u,h){return h=h||1,new Z((u.x/h-this._b)/this._a,(u.y/h-this._d)/this._c)}};function ee(u,h,b,T){return new J(u,h,b,T)}var se=i({},C,{code:"EPSG:3857",projection:$,transformation:function(){var u=.5/(Math.PI*$.R);return ee(u,.5,-u,.5)}()}),ge=i({},se,{code:"EPSG:900913"});function Me(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function ue(u,h){var b="",T,P,B,oe,de,pe;for(T=0,B=u.length;T<B;T++){for(de=u[T],P=0,oe=de.length;P<oe;P++)pe=de[P],b+=(P?"L":"M")+pe.x+" "+pe.y;b+=h?ze.svg?"z":"x":""}return b||"M0 0"}var me=document.documentElement.style,_e="ActiveXObject"in window,Se=_e&&!document.addEventListener,ke="msLaunchUri"in navigator&&!("documentMode"in document),Ce=Gn("webkit"),je=Gn("android"),ce=Gn("android 2")||Gn("android 3"),fe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=je&&Gn("Google")&&fe<537&&!("AudioNode"in window),ve=!!window.opera,xe=!ke&&Gn("chrome"),Le=Gn("gecko")&&!Ce&&!ve&&!_e,Re=!xe&&Gn("safari"),Xe=Gn("phantom"),tt="OTransition"in me,Ge=navigator.platform.indexOf("Win")===0,Jt=_e&&"transition"in me,Ht="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ce,kn="MozPerspective"in me,fr=!window.L_DISABLE_3D&&(Jt||Ht||kn)&&!tt&&!Xe,Xi=typeof orientation<"u"||Gn("mobile"),Hn=Xi&&Ce,ed=Xi&&Ht,Ji=!window.PointerEvent&&window.MSPointerEvent,vp=!!(window.PointerEvent||Ji),yp="ontouchstart"in window||!!window.TouchEvent,_p=!window.L_NO_TOUCH&&(yp||vp),td=Xi&&ve,Cs=Xi&&Le,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,sn=function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",f,h),window.removeEventListener("testPassiveEventSupport",f,h)}catch{}return u}(),hr=function(){return!!document.createElement("canvas").getContext}(),Wn=!!(document.createElementNS&&Me("svg").createSVGRect),Yn=!!Wn&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),bn=!Wn&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var h=u.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),Pi=navigator.platform.indexOf("Mac")===0,Li=navigator.platform.indexOf("Linux")===0;function Gn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var ze={ie:_e,ielt9:Se,edge:ke,webkit:Ce,android:je,android23:ce,androidStock:ye,opera:ve,chrome:xe,gecko:Le,safari:Re,phantom:Xe,opera12:tt,win:Ge,ie3d:Jt,webkit3d:Ht,gecko3d:kn,any3d:fr,mobile:Xi,mobileWebkit:Hn,mobileWebkit3d:ed,msPointer:Ji,pointer:vp,touch:_p,touchNative:yp,mobileOpera:td,mobileGecko:Cs,retina:mn,passiveEvents:sn,canvas:hr,svg:Wn,vml:bn,inlineSvg:Yn,mac:Pi,linux:Li},kO=ze.msPointer?"MSPointerDown":"pointerdown",PO=ze.msPointer?"MSPointerMove":"pointermove",LO=ze.msPointer?"MSPointerUp":"pointerup",jO=ze.msPointer?"MSPointerCancel":"pointercancel",H0={touchstart:kO,touchmove:PO,touchend:LO,touchcancel:jO},MO={touchstart:RU,touchmove:bp,touchend:bp,touchcancel:bp},ql={},NO=!1;function LU(u,h,b){return h==="touchstart"&&AU(),MO[h]?(b=MO[h].bind(this,b),u.addEventListener(H0[h],b,!1),b):(console.warn("wrong event specified:",h),f)}function jU(u,h,b){if(!H0[h]){console.warn("wrong event specified:",h);return}u.removeEventListener(H0[h],b,!1)}function MU(u){ql[u.pointerId]=u}function NU(u){ql[u.pointerId]&&(ql[u.pointerId]=u)}function AO(u){delete ql[u.pointerId]}function AU(){NO||(document.addEventListener(kO,MU,!0),document.addEventListener(PO,NU,!0),document.addEventListener(LO,AO,!0),document.addEventListener(jO,AO,!0),NO=!0)}function bp(u,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var b in ql)h.touches.push(ql[b]);h.changedTouches=[h],u(h)}}function RU(u,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&qn(h),bp(u,h)}function DU(u){var h={},b,T;for(T in u)b=u[T],h[T]=b&&b.bind?b.bind(u):b;return u=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var IU=200;function FU(u,h){u.addEventListener("dblclick",h);var b=0,T;function P(B){if(B.detail!==1){T=B.detail;return}if(!(B.pointerType==="mouse"||B.sourceCapabilities&&!B.sourceCapabilities.firesTouchEvents)){var oe=$O(B);if(!(oe.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!oe.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var de=Date.now();de-b<=IU?(T++,T===2&&h(DU(B))):T=1,b=de}}}return u.addEventListener("click",P),{dblclick:h,simDblclick:P}}function $U(u,h){u.removeEventListener("dblclick",h.dblclick),u.removeEventListener("click",h.simDblclick)}var W0=Sp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nd=Sp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),RO=nd==="webkitTransition"||nd==="OTransition"?nd+"End":"transitionend";function DO(u){return typeof u=="string"?document.getElementById(u):u}function rd(u,h){var b=u.style[h]||u.currentStyle&&u.currentStyle[h];if((!b||b==="auto")&&document.defaultView){var T=document.defaultView.getComputedStyle(u,null);b=T?T[h]:null}return b==="auto"?null:b}function pt(u,h,b){var T=document.createElement(u);return T.className=h||"",b&&b.appendChild(T),T}function Wt(u){var h=u.parentNode;h&&h.removeChild(u)}function wp(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function Zl(u){var h=u.parentNode;h&&h.lastChild!==u&&h.appendChild(u)}function Kl(u){var h=u.parentNode;h&&h.firstChild!==u&&h.insertBefore(u,h.firstChild)}function Y0(u,h){if(u.classList!==void 0)return u.classList.contains(h);var b=xp(u);return b.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(b)}function Ke(u,h){if(u.classList!==void 0)for(var b=v(h),T=0,P=b.length;T<P;T++)u.classList.add(b[T]);else if(!Y0(u,h)){var B=xp(u);G0(u,(B?B+" ":"")+h)}}function ln(u,h){u.classList!==void 0?u.classList.remove(h):G0(u,m((" "+xp(u)+" ").replace(" "+h+" "," ")))}function G0(u,h){u.className.baseVal===void 0?u.className=h:u.className.baseVal=h}function xp(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function ii(u,h){"opacity"in u.style?u.style.opacity=h:"filter"in u.style&&UU(u,h)}function UU(u,h){var b=!1,T="DXImageTransform.Microsoft.Alpha";try{b=u.filters.item(T)}catch{if(h===1)return}h=Math.round(h*100),b?(b.Enabled=h!==100,b.Opacity=h):u.style.filter+=" progid:"+T+"(opacity="+h+")"}function Sp(u){for(var h=document.documentElement.style,b=0;b<u.length;b++)if(u[b]in h)return u[b];return!1}function ks(u,h,b){var T=h||new Z(0,0);u.style[W0]=(ze.ie3d?"translate("+T.x+"px,"+T.y+"px)":"translate3d("+T.x+"px,"+T.y+"px,0)")+(b?" scale("+b+")":"")}function gn(u,h){u._leaflet_pos=h,ze.any3d?ks(u,h):(u.style.left=h.x+"px",u.style.top=h.y+"px")}function Ps(u){return u._leaflet_pos||new Z(0,0)}var id,od,q0;if("onselectstart"in document)id=function(){qe(window,"selectstart",qn)},od=function(){Ct(window,"selectstart",qn)};else{var ad=Sp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);id=function(){if(ad){var u=document.documentElement.style;q0=u[ad],u[ad]="none"}},od=function(){ad&&(document.documentElement.style[ad]=q0,q0=void 0)}}function Z0(){qe(window,"dragstart",qn)}function K0(){Ct(window,"dragstart",qn)}var Ep,Q0;function X0(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Tp(),Ep=u,Q0=u.style.outlineStyle,u.style.outlineStyle="none",qe(window,"keydown",Tp))}function Tp(){Ep&&(Ep.style.outlineStyle=Q0,Ep=void 0,Q0=void 0,Ct(window,"keydown",Tp))}function IO(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function J0(u){var h=u.getBoundingClientRect();return{x:h.width/u.offsetWidth||1,y:h.height/u.offsetHeight||1,boundingClientRect:h}}var BU={__proto__:null,TRANSFORM:W0,TRANSITION:nd,TRANSITION_END:RO,get:DO,getStyle:rd,create:pt,remove:Wt,empty:wp,toFront:Zl,toBack:Kl,hasClass:Y0,addClass:Ke,removeClass:ln,setClass:G0,getClass:xp,setOpacity:ii,testProp:Sp,setTransform:ks,setPosition:gn,getPosition:Ps,get disableTextSelection(){return id},get enableTextSelection(){return od},disableImageDrag:Z0,enableImageDrag:K0,preventOutline:X0,restoreOutline:Tp,getSizedParentNode:IO,getScale:J0};function qe(u,h,b,T){if(h&&typeof h=="object")for(var P in h)t_(u,P,h[P],b);else{h=v(h);for(var B=0,oe=h.length;B<oe;B++)t_(u,h[B],b,T)}return this}var eo="_leaflet_events";function Ct(u,h,b,T){if(arguments.length===1)FO(u),delete u[eo];else if(h&&typeof h=="object")for(var P in h)n_(u,P,h[P],b);else if(h=v(h),arguments.length===2)FO(u,function(de){return E(h,de)!==-1});else for(var B=0,oe=h.length;B<oe;B++)n_(u,h[B],b,T);return this}function FO(u,h){for(var b in u[eo]){var T=b.split(/\d/)[0];(!h||h(T))&&n_(u,T,null,null,b)}}var e_={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function t_(u,h,b,T){var P=h+l(b)+(T?"_"+l(T):"");if(u[eo]&&u[eo][P])return this;var B=function(de){return b.call(T||u,de||window.event)},oe=B;!ze.touchNative&&ze.pointer&&h.indexOf("touch")===0?B=LU(u,h,B):ze.touch&&h==="dblclick"?B=FU(u,B):"addEventListener"in u?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?u.addEventListener(e_[h]||h,B,ze.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(B=function(de){de=de||window.event,i_(u,de)&&oe(de)},u.addEventListener(e_[h],B,!1)):u.addEventListener(h,oe,!1):u.attachEvent("on"+h,B),u[eo]=u[eo]||{},u[eo][P]=B}function n_(u,h,b,T,P){P=P||h+l(b)+(T?"_"+l(T):"");var B=u[eo]&&u[eo][P];if(!B)return this;!ze.touchNative&&ze.pointer&&h.indexOf("touch")===0?jU(u,h,B):ze.touch&&h==="dblclick"?$U(u,B):"removeEventListener"in u?u.removeEventListener(e_[h]||h,B,!1):u.detachEvent("on"+h,B),u[eo][P]=null}function Ls(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function r_(u){return t_(u,"wheel",Ls),this}function sd(u){return qe(u,"mousedown touchstart dblclick contextmenu",Ls),u._leaflet_disable_click=!0,this}function qn(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function js(u){return qn(u),Ls(u),this}function $O(u){if(u.composedPath)return u.composedPath();for(var h=[],b=u.target;b;)h.push(b),b=b.parentNode;return h}function UO(u,h){if(!h)return new Z(u.clientX,u.clientY);var b=J0(h),T=b.boundingClientRect;return new Z((u.clientX-T.left)/b.x-h.clientLeft,(u.clientY-T.top)/b.y-h.clientTop)}var zU=ze.linux&&ze.chrome?window.devicePixelRatio:ze.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function BO(u){return ze.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/zU: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 i_(u,h){var b=h.relatedTarget;if(!b)return!0;try{for(;b&&b!==u;)b=b.parentNode}catch{return!1}return b!==u}var VU={__proto__:null,on:qe,off:Ct,stopPropagation:Ls,disableScrollPropagation:r_,disableClickPropagation:sd,preventDefault:qn,stop:js,getPropagationPath:$O,getMousePosition:UO,getWheelDelta:BO,isExternalTarget:i_,addListener:qe,removeListener:Ct},zO=le.extend({run:function(u,h,b,T){this.stop(),this._el=u,this._inProgress=!0,this._duration=b||.25,this._easeOutPower=1/Math.max(T||.5,.2),this._startPos=Ps(u),this._offset=h.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=V(this._animate,this),this._step()},_step:function(u){var h=+new Date-this._startTime,b=this._duration*1e3;h<b?this._runFrame(this._easeOut(h/b),u):(this._runFrame(1),this._complete())},_runFrame:function(u,h){var b=this._startPos.add(this._offset.multiplyBy(u));h&&b._round(),gn(this._el,b),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),ct=le.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,h){h=y(this,h),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),h.maxBounds&&this.setMaxBounds(h.maxBounds),h.zoom!==void 0&&(this._zoom=this._limitZoom(h.zoom)),h.center&&h.zoom!==void 0&&this.setView(ae(h.center),h.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=nd&&ze.any3d&&!ze.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),qe(this._proxy,RO,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,h,b){if(h=h===void 0?this._zoom:this._limitZoom(h),u=this._limitCenter(ae(u),h,this.options.maxBounds),b=b||{},this._stop(),this._loaded&&!b.reset&&b!==!0){b.animate!==void 0&&(b.zoom=i({animate:b.animate},b.zoom),b.pan=i({animate:b.animate,duration:b.duration},b.pan));var T=this._zoom!==h?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,h,b.zoom):this._tryAnimatedPan(u,b.pan);if(T)return clearTimeout(this._sizeTimer),this}return this._resetView(u,h,b.pan&&b.pan.noMoveStart),this},setZoom:function(u,h){return this._loaded?this.setView(this.getCenter(),u,{zoom:h}):(this._zoom=u,this)},zoomIn:function(u,h){return u=u||(ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,h)},zoomOut:function(u,h){return u=u||(ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,h)},setZoomAround:function(u,h,b){var T=this.getZoomScale(h),P=this.getSize().divideBy(2),B=u instanceof Z?u:this.latLngToContainerPoint(u),oe=B.subtract(P).multiplyBy(1-1/T),de=this.containerPointToLatLng(P.add(oe));return this.setView(de,h,{zoom:b})},_getBoundsCenterZoom:function(u,h){h=h||{},u=u.getBounds?u.getBounds():q(u);var b=D(h.paddingTopLeft||h.padding||[0,0]),T=D(h.paddingBottomRight||h.padding||[0,0]),P=this.getBoundsZoom(u,!1,b.add(T));if(P=typeof h.maxZoom=="number"?Math.min(h.maxZoom,P):P,P===1/0)return{center:u.getCenter(),zoom:P};var B=T.subtract(b).divideBy(2),oe=this.project(u.getSouthWest(),P),de=this.project(u.getNorthEast(),P),pe=this.unproject(oe.add(de).divideBy(2).add(B),P);return{center:pe,zoom:P}},fitBounds:function(u,h){if(u=q(u),!u.isValid())throw new Error("Bounds are not valid.");var b=this._getBoundsCenterZoom(u,h);return this.setView(b.center,b.zoom,h)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,h){return this.setView(u,this._zoom,{pan:h})},panBy:function(u,h){if(u=D(u).round(),h=h||{},!u.x&&!u.y)return this.fire("moveend");if(h.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 zO,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),h.noMoveStart||this.fire("movestart"),h.animate!==!1){Ke(this._mapPane,"leaflet-pan-anim");var b=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,b,h.duration||.25,h.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,h,b){if(b=b||{},b.animate===!1||!ze.any3d)return this.setView(u,h,b);this._stop();var T=this.project(this.getCenter()),P=this.project(u),B=this.getSize(),oe=this._zoom;u=ae(u),h=h===void 0?oe:h;var de=Math.max(B.x,B.y),pe=de*this.getZoomScale(oe,h),we=P.distanceTo(T)||1,De=1.42,We=De*De;function Je(vn){var Ip=vn?-1:1,j7=vn?pe:de,M7=pe*pe-de*de+Ip*We*We*we*we,N7=2*j7*We*we,m_=M7/N7,xC=Math.sqrt(m_*m_+1)-m_,A7=xC<1e-9?-18:Math.log(xC);return A7}function pr(vn){return(Math.exp(vn)-Math.exp(-vn))/2}function Pn(vn){return(Math.exp(vn)+Math.exp(-vn))/2}function ai(vn){return pr(vn)/Pn(vn)}var Er=Je(0);function nc(vn){return de*(Pn(Er)/Pn(Er+De*vn))}function C7(vn){return de*(Pn(Er)*ai(Er+De*vn)-pr(Er))/We}function k7(vn){return 1-Math.pow(1-vn,1.5)}var P7=Date.now(),bC=(Je(1)-Er)/De,L7=b.duration?1e3*b.duration:1e3*bC*.8;function wC(){var vn=(Date.now()-P7)/L7,Ip=k7(vn)*bC;vn<=1?(this._flyToFrame=V(wC,this),this._move(this.unproject(T.add(P.subtract(T).multiplyBy(C7(Ip)/we)),oe),this.getScaleZoom(de/nc(Ip),oe),{flyTo:!0})):this._move(u,h)._moveEnd(!0)}return this._moveStart(!0,b.noMoveStart),wC.call(this),this},flyToBounds:function(u,h){var b=this._getBoundsCenterZoom(u,h);return this.flyTo(b.center,b.zoom,h)},setMaxBounds:function(u){return u=q(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 h=this.options.minZoom;return this.options.minZoom=u,this._loaded&&h!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var h=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&h!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,h){this._enforcingBounds=!0;var b=this.getCenter(),T=this._limitCenter(b,this._zoom,q(u));return b.equals(T)||this.panTo(T,h),this._enforcingBounds=!1,this},panInside:function(u,h){h=h||{};var b=D(h.paddingTopLeft||h.padding||[0,0]),T=D(h.paddingBottomRight||h.padding||[0,0]),P=this.project(this.getCenter()),B=this.project(u),oe=this.getPixelBounds(),de=re([oe.min.add(b),oe.max.subtract(T)]),pe=de.getSize();if(!de.contains(B)){this._enforcingBounds=!0;var we=B.subtract(de.getCenter()),De=de.extend(B).getSize().subtract(pe);P.x+=we.x<0?-De.x:De.x,P.y+=we.y<0?-De.y:De.y,this.panTo(this.unproject(P),h),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 h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var b=this.getSize(),T=h.divideBy(2).round(),P=b.divideBy(2).round(),B=T.subtract(P);return!B.x&&!B.y?this:(u.animate&&u.pan?this.panBy(B):(u.pan&&this._rawPanBy(B),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:h,newSize:b}))},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 h=a(this._handleGeolocationResponse,this),b=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,b,u):navigator.geolocation.getCurrentPosition(h,b,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 h=u.code,b=u.message||(h===1?"permission denied":h===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:h,message:"Geolocation error: "+b+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var h=u.coords.latitude,b=u.coords.longitude,T=new ie(h,b),P=T.toBounds(u.coords.accuracy*2),B=this._locateOptions;if(B.setView){var oe=this.getBoundsZoom(P);this.setView(T,B.maxZoom?Math.min(oe,B.maxZoom):oe)}var de={latlng:T,bounds:P,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,h){if(!h)return this;var b=this[u]=new h(this);return this._handlers.push(b),this.options[u]&&b.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(),Wt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(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)Wt(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,h){var b="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),T=pt("div",b,h||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(),h=this.unproject(u.getBottomLeft()),b=this.unproject(u.getTopRight());return new z(h,b)},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,h,b){u=q(u),b=D(b||[0,0]);var T=this.getZoom()||0,P=this.getMinZoom(),B=this.getMaxZoom(),oe=u.getNorthWest(),de=u.getSouthEast(),pe=this.getSize().subtract(b),we=re(this.project(de,T),this.project(oe,T)).getSize(),De=ze.any3d?this.options.zoomSnap:1,We=pe.x/we.x,Je=pe.y/we.y,pr=h?Math.max(We,Je):Math.min(We,Je);return T=this.getScaleZoom(pr,T),De&&(T=Math.round(T/(De/100))*(De/100),T=h?Math.ceil(T/De)*De:Math.floor(T/De)*De),Math.max(P,Math.min(B,T))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,h){var b=this._getTopLeftPoint(u,h);return new H(b,b.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,h){var b=this.options.crs;return h=h===void 0?this._zoom:h,b.scale(u)/b.scale(h)},getScaleZoom:function(u,h){var b=this.options.crs;h=h===void 0?this._zoom:h;var T=b.zoom(u*b.scale(h));return isNaN(T)?1/0:T},project:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(ae(u),h)},unproject:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(D(u),h)},layerPointToLatLng:function(u){var h=D(u).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(u){var h=this.project(ae(u))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(q(u))},distance:function(u,h){return this.options.crs.distance(ae(u),ae(h))},containerPointToLayerPoint:function(u){return D(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return D(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var h=this.containerPointToLayerPoint(D(u));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return UO(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 h=this._container=DO(u);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");qe(h,"scroll",this._onScroll,this),this._containerId=l(h)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&ze.any3d,Ke(u,"leaflet-container"+(ze.touch?" leaflet-touch":"")+(ze.retina?" leaflet-retina":"")+(ze.ielt9?" leaflet-oldie":"")+(ze.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=rd(u,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="sticky"&&(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),gn(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ke(u.markerPane,"leaflet-zoom-hide"),Ke(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,h,b){gn(this._mapPane,new Z(0,0));var T=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var P=this._zoom!==h;this._moveStart(P,b)._move(u,h)._moveEnd(P),this.fire("viewreset"),T&&this.fire("load")},_moveStart:function(u,h){return u&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(u,h,b,T){h===void 0&&(h=this._zoom);var P=this._zoom!==h;return this._zoom=h,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),T?b&&b.pinch&&this.fire("zoom",b):((P||b&&b.pinch)&&this.fire("zoom",b),this.fire("move",b)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){gn(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 h=u?Ct:qe;h(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&h(window,"resize",this._onResize,this),ze.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=V(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,h){for(var b=[],T,P=h==="mouseout"||h==="mouseover",B=u.target||u.srcElement,oe=!1;B;){if(T=this._targets[l(B)],T&&(h==="click"||h==="preclick")&&this._draggableMoved(T)){oe=!0;break}if(T&&T.listens(h,!0)&&(P&&!i_(B,u)||(b.push(T),P))||B===this._container)break;B=B.parentNode}return!b.length&&!oe&&!P&&this.listens(h,!0)&&(b=[this]),b},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var h=u.target||u.srcElement;if(!(!this._loaded||h._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(h))){var b=u.type;b==="mousedown"&&X0(h),this._fireDOMEvent(u,b)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,h,b){if(u.type==="click"){var T=i({},u);T.type="preclick",this._fireDOMEvent(T,T.type,b)}var P=this._findEventTargets(u,h);if(b){for(var B=[],oe=0;oe<b.length;oe++)b[oe].listens(h,!0)&&B.push(b[oe]);P=B.concat(P)}if(P.length){h==="contextmenu"&&qn(u);var de=P[0],pe={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var we=de.getLatLng&&(!de._radius||de._radius<=10);pe.containerPoint=we?this.latLngToContainerPoint(de.getLatLng()):this.mouseEventToContainerPoint(u),pe.layerPoint=this.containerPointToLayerPoint(pe.containerPoint),pe.latlng=we?de.getLatLng():this.layerPointToLatLng(pe.layerPoint)}for(oe=0;oe<P.length;oe++)if(P[oe].fire(h,pe,!0),pe.originalEvent._stopped||P[oe].options.bubblingMouseEvents===!1&&E(this._mouseEvents,h)!==-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,h=this._handlers.length;u<h;u++)this._handlers[u].disable()},whenReady:function(u,h){return this._loaded?u.call(h||this,{target:this}):this.on("load",u,h),this},_getMapPanePos:function(){return Ps(this._mapPane)||new Z(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,h){var b=u&&h!==void 0?this._getNewPixelOrigin(u,h):this.getPixelOrigin();return b.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,h){var b=this.getSize()._divideBy(2);return this.project(u,h)._subtract(b)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,h,b){var T=this._getNewPixelOrigin(b,h);return this.project(u,h)._subtract(T)},_latLngBoundsToNewLayerBounds:function(u,h,b){var T=this._getNewPixelOrigin(b,h);return re([this.project(u.getSouthWest(),h)._subtract(T),this.project(u.getNorthWest(),h)._subtract(T),this.project(u.getSouthEast(),h)._subtract(T),this.project(u.getNorthEast(),h)._subtract(T)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,h,b){if(!b)return u;var T=this.project(u,h),P=this.getSize().divideBy(2),B=new H(T.subtract(P),T.add(P)),oe=this._getBoundsOffset(B,b,h);return Math.abs(oe.x)<=1&&Math.abs(oe.y)<=1?u:this.unproject(T.add(oe),h)},_limitOffset:function(u,h){if(!h)return u;var b=this.getPixelBounds(),T=new H(b.min.add(u),b.max.add(u));return u.add(this._getBoundsOffset(T,h))},_getBoundsOffset:function(u,h,b){var T=re(this.project(h.getNorthEast(),b),this.project(h.getSouthWest(),b)),P=T.min.subtract(u.min),B=T.max.subtract(u.max),oe=this._rebound(P.x,-B.x),de=this._rebound(P.y,-B.y);return new Z(oe,de)},_rebound:function(u,h){return u+h>0?Math.round(u-h)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(h))},_limitZoom:function(u){var h=this.getMinZoom(),b=this.getMaxZoom(),T=ze.any3d?this.options.zoomSnap:1;return T&&(u=Math.round(u/T)*T),Math.max(h,Math.min(b,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ln(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,h){var b=this._getCenterOffset(u)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(b)?!1:(this.panBy(b,h),!0)},_createAnimProxy:function(){var u=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(h){var b=W0,T=this._proxy.style[b];ks(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),T===this._proxy.style[b]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Wt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),h=this.getZoom();ks(this._proxy,this.project(u,h),this.getZoomScale(h,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,h,b){if(this._animatingZoom)return!0;if(b=b||{},!this._zoomAnimated||b.animate===!1||this._nothingToAnimate()||Math.abs(h-this._zoom)>this.options.zoomAnimationThreshold)return!1;var T=this.getZoomScale(h),P=this._getCenterOffset(u)._divideBy(1-1/T);return b.animate!==!0&&!this.getSize().contains(P)?!1:(V(function(){this._moveStart(!0,b.noMoveStart||!1)._animateZoom(u,h,!0)},this),!0)},_animateZoom:function(u,h,b,T){this._mapPane&&(b&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=h,Ke(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:h,noUpdate:T}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ln(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 HU(u,h){return new ct(u,h)}var ji=G.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var h=this._map;return h&&h.removeControl(this),this.options.position=u,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var h=this._container=this.onAdd(u),b=this.getPosition(),T=u._controlCorners[b];return Ke(h,"leaflet-control"),b.indexOf("bottom")!==-1?T.insertBefore(h,T.firstChild):T.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Wt(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()}}),ld=function(u){return new ji(u)};ct.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},h="leaflet-",b=this._controlContainer=pt("div",h+"control-container",this._container);function T(P,B){var oe=h+P+" "+h+B;u[P+B]=pt("div",oe,b)}T("top","left"),T("top","right"),T("bottom","left"),T("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Wt(this._controlCorners[u]);Wt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var VO=ji.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,h,b,T){return b<T?-1:T<b?1:0}},initialize:function(u,h,b){y(this,b),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var T in u)this._addLayer(u[T],T);for(T in h)this._addLayer(h[T],T,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var h=0;h<this._layers.length;h++)this._layers[h].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return ji.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,h){return this._addLayer(u,h),this._map?this._update():this},addOverlay:function(u,h){return this._addLayer(u,h,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var h=this._getLayer(l(u));return h&&this._layers.splice(this._layers.indexOf(h),1),this._map?this._update():this},expand:function(){Ke(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?(Ke(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):ln(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ln(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",h=this._container=pt("div",u),b=this.options.collapsed;h.setAttribute("aria-haspopup",!0),sd(h),r_(h);var T=this._section=pt("section",u+"-list");b&&(this._map.on("click",this.collapse,this),qe(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var P=this._layersLink=pt("a",u+"-toggle",h);P.href="#",P.title="Layers",P.setAttribute("role","button"),qe(P,{keydown:function(B){B.keyCode===13&&this._expandSafely()},click:function(B){qn(B),this._expandSafely()}},this),b||this.expand(),this._baseLayersList=pt("div",u+"-base",T),this._separator=pt("div",u+"-separator",T),this._overlaysList=pt("div",u+"-overlays",T),h.appendChild(T)},_getLayer:function(u){for(var h=0;h<this._layers.length;h++)if(this._layers[h]&&l(this._layers[h].layer)===u)return this._layers[h]},_addLayer:function(u,h,b){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:h,overlay:b}),this.options.sortLayers&&this._layers.sort(a(function(T,P){return this.options.sortFunction(T.layer,P.layer,T.name,P.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;wp(this._baseLayersList),wp(this._overlaysList),this._layerControlInputs=[];var u,h,b,T,P=0;for(b=0;b<this._layers.length;b++)T=this._layers[b],this._addItem(T),h=h||T.overlay,u=u||!T.overlay,P+=T.overlay?0:1;return this.options.hideSingleBase&&(u=u&&P>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=h&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var h=this._getLayer(l(u.target)),b=h.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;b&&this._map.fire(b,h)},_createRadioElement:function(u,h){var b='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(h?' checked="checked"':"")+"/>",T=document.createElement("div");return T.innerHTML=b,T.firstChild},_addItem:function(u){var h=document.createElement("label"),b=this._map.hasLayer(u.layer),T;u.overlay?(T=document.createElement("input"),T.type="checkbox",T.className="leaflet-control-layers-selector",T.defaultChecked=b):T=this._createRadioElement("leaflet-base-layers_"+l(this),b),this._layerControlInputs.push(T),T.layerId=l(u.layer),qe(T,"click",this._onInputClick,this);var P=document.createElement("span");P.innerHTML=" "+u.name;var B=document.createElement("span");h.appendChild(B),B.appendChild(T),B.appendChild(P);var oe=u.overlay?this._overlaysList:this._baseLayersList;return oe.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,h,b,T=[],P=[];this._handlingClick=!0;for(var B=u.length-1;B>=0;B--)h=u[B],b=this._getLayer(h.layerId).layer,h.checked?T.push(b):h.checked||P.push(b);for(B=0;B<P.length;B++)this._map.hasLayer(P[B])&&this._map.removeLayer(P[B]);for(B=0;B<T.length;B++)this._map.hasLayer(T[B])||this._map.addLayer(T[B]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,h,b,T=this._map.getZoom(),P=u.length-1;P>=0;P--)h=u[P],b=this._getLayer(h.layerId).layer,h.disabled=b.options.minZoom!==void 0&&T<b.options.minZoom||b.options.maxZoom!==void 0&&T>b.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,qe(u,"click",qn),this.expand();var h=this;setTimeout(function(){Ct(u,"click",qn),h._preventClick=!1})}}),WU=function(u,h,b){return new VO(u,h,b)},o_=ji.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 h="leaflet-control-zoom",b=pt("div",h+" leaflet-bar"),T=this.options;return this._zoomInButton=this._createButton(T.zoomInText,T.zoomInTitle,h+"-in",b,this._zoomIn),this._zoomOutButton=this._createButton(T.zoomOutText,T.zoomOutTitle,h+"-out",b,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),b},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,h,b,T,P){var B=pt("a",b,T);return B.innerHTML=u,B.href="#",B.title=h,B.setAttribute("role","button"),B.setAttribute("aria-label",h),sd(B),qe(B,"click",js),qe(B,"click",P,this),qe(B,"click",this._refocusOnMap,this),B},_updateDisabled:function(){var u=this._map,h="leaflet-disabled";ln(this._zoomInButton,h),ln(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Ke(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Ke(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});ct.mergeOptions({zoomControl:!0}),ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new o_,this.addControl(this.zoomControl))});var YU=function(u){return new o_(u)},HO=ji.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var h="leaflet-control-scale",b=pt("div",h),T=this.options;return this._addScales(T,h+"-line",b),u.on(T.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),b},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,h,b){u.metric&&(this._mScale=pt("div",h,b)),u.imperial&&(this._iScale=pt("div",h,b))},_update:function(){var u=this._map,h=u.getSize().y/2,b=u.distance(u.containerPointToLatLng([0,h]),u.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(b)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var h=this._getRoundNum(u),b=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,b,h/u)},_updateImperial:function(u){var h=u*3.2808399,b,T,P;h>5280?(b=h/5280,T=this._getRoundNum(b),this._updateScale(this._iScale,T+" mi",T/b)):(P=this._getRoundNum(h),this._updateScale(this._iScale,P+" ft",P/h))},_updateScale:function(u,h,b){u.style.width=Math.round(this.options.maxWidth*b)+"px",u.innerHTML=h},_getRoundNum:function(u){var h=Math.pow(10,(Math.floor(u)+"").length-1),b=u/h;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:1,h*b}}),GU=function(u){return new HO(u)},qU='<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>',a_=ji.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ze.inlineSvg?qU+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),sd(this._container);for(var h in u._layers)u._layers[h].getAttribution&&this.addAttribution(u._layers[h].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 h in this._attributions)this._attributions[h]&&u.push(h);var b=[];this.options.prefix&&b.push(this.options.prefix),u.length&&b.push(u.join(", ")),this._container.innerHTML=b.join(' <span aria-hidden="true">|</span> ')}}});ct.mergeOptions({attributionControl:!0}),ct.addInitHook(function(){this.options.attributionControl&&new a_().addTo(this)});var ZU=function(u){return new a_(u)};ji.Layers=VO,ji.Zoom=o_,ji.Scale=HO,ji.Attribution=a_,ld.layers=WU,ld.zoom=YU,ld.scale=GU,ld.attribution=ZU;var to=G.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}});to.addTo=function(u,h){return u.addHandler(h,this),this};var KU={Events:ne},WO=ze.touch?"touchstart mousedown":"mousedown",ba=le.extend({options:{clickTolerance:3},initialize:function(u,h,b,T){y(this,T),this._element=u,this._dragStartTarget=h||u,this._preventOutline=b},enable:function(){this._enabled||(qe(this._dragStartTarget,WO,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ba._dragging===this&&this.finishDrag(!0),Ct(this._dragStartTarget,WO,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!Y0(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){ba._dragging===this&&this.finishDrag();return}if(!(ba._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(ba._dragging=this,this._preventOutline&&X0(this._element),Z0(),id(),!this._moving)){this.fire("down");var h=u.touches?u.touches[0]:u,b=IO(this._element);this._startPoint=new Z(h.clientX,h.clientY),this._startPos=Ps(this._element),this._parentScale=J0(b);var T=u.type==="mousedown";qe(document,T?"mousemove":"touchmove",this._onMove,this),qe(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 h=u.touches&&u.touches.length===1?u.touches[0]:u,b=new Z(h.clientX,h.clientY)._subtract(this._startPoint);!b.x&&!b.y||Math.abs(b.x)+Math.abs(b.y)<this.options.clickTolerance||(b.x/=this._parentScale.x,b.y/=this._parentScale.y,qn(u),this._moved||(this.fire("dragstart"),this._moved=!0,Ke(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ke(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(b),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),gn(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){ln(document.body,"leaflet-dragging"),this._lastTarget&&(ln(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ct(document,"mousemove touchmove",this._onMove,this),Ct(document,"mouseup touchend touchcancel",this._onUp,this),K0(),od();var h=this._moved&&this._moving;this._moving=!1,ba._dragging=!1,h&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function YO(u,h,b){var T,P=[1,4,2,8],B,oe,de,pe,we,De,We,Je;for(B=0,De=u.length;B<De;B++)u[B]._code=Ms(u[B],h);for(de=0;de<4;de++){for(We=P[de],T=[],B=0,De=u.length,oe=De-1;B<De;oe=B++)pe=u[B],we=u[oe],pe._code&We?we._code&We||(Je=Op(we,pe,We,h,b),Je._code=Ms(Je,h),T.push(Je)):(we._code&We&&(Je=Op(we,pe,We,h,b),Je._code=Ms(Je,h),T.push(Je)),T.push(pe));u=T}return u}function GO(u,h){var b,T,P,B,oe,de,pe,we,De;if(!u||u.length===0)throw new Error("latlngs not passed");oi(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var We=ae([0,0]),Je=q(u),pr=Je.getNorthWest().distanceTo(Je.getSouthWest())*Je.getNorthEast().distanceTo(Je.getNorthWest());pr<1700&&(We=s_(u));var Pn=u.length,ai=[];for(b=0;b<Pn;b++){var Er=ae(u[b]);ai.push(h.project(ae([Er.lat-We.lat,Er.lng-We.lng])))}for(de=pe=we=0,b=0,T=Pn-1;b<Pn;T=b++)P=ai[b],B=ai[T],oe=P.y*B.x-B.y*P.x,pe+=(P.x+B.x)*oe,we+=(P.y+B.y)*oe,de+=oe*3;de===0?De=ai[0]:De=[pe/de,we/de];var nc=h.unproject(D(De));return ae([nc.lat+We.lat,nc.lng+We.lng])}function s_(u){for(var h=0,b=0,T=0,P=0;P<u.length;P++){var B=ae(u[P]);h+=B.lat,b+=B.lng,T++}return ae([h/T,b/T])}var QU={__proto__:null,clipPolygon:YO,polygonCenter:GO,centroid:s_};function qO(u,h){if(!h||!u.length)return u.slice();var b=h*h;return u=e7(u,b),u=JU(u,b),u}function ZO(u,h,b){return Math.sqrt(cd(u,h,b,!0))}function XU(u,h,b){return cd(u,h,b)}function JU(u,h){var b=u.length,T=typeof Uint8Array!=void 0+""?Uint8Array:Array,P=new T(b);P[0]=P[b-1]=1,l_(u,P,h,0,b-1);var B,oe=[];for(B=0;B<b;B++)P[B]&&oe.push(u[B]);return oe}function l_(u,h,b,T,P){var B=0,oe,de,pe;for(de=T+1;de<=P-1;de++)pe=cd(u[de],u[T],u[P],!0),pe>B&&(oe=de,B=pe);B>b&&(h[oe]=1,l_(u,h,b,T,oe),l_(u,h,b,oe,P))}function e7(u,h){for(var b=[u[0]],T=1,P=0,B=u.length;T<B;T++)t7(u[T],u[P])>h&&(b.push(u[T]),P=T);return P<B-1&&b.push(u[B-1]),b}var KO;function QO(u,h,b,T,P){var B=T?KO:Ms(u,b),oe=Ms(h,b),de,pe,we;for(KO=oe;;){if(!(B|oe))return[u,h];if(B&oe)return!1;de=B||oe,pe=Op(u,h,de,b,P),we=Ms(pe,b),de===B?(u=pe,B=we):(h=pe,oe=we)}}function Op(u,h,b,T,P){var B=h.x-u.x,oe=h.y-u.y,de=T.min,pe=T.max,we,De;return b&8?(we=u.x+B*(pe.y-u.y)/oe,De=pe.y):b&4?(we=u.x+B*(de.y-u.y)/oe,De=de.y):b&2?(we=pe.x,De=u.y+oe*(pe.x-u.x)/B):b&1&&(we=de.x,De=u.y+oe*(de.x-u.x)/B),new Z(we,De,P)}function Ms(u,h){var b=0;return u.x<h.min.x?b|=1:u.x>h.max.x&&(b|=2),u.y<h.min.y?b|=4:u.y>h.max.y&&(b|=8),b}function t7(u,h){var b=h.x-u.x,T=h.y-u.y;return b*b+T*T}function cd(u,h,b,T){var P=h.x,B=h.y,oe=b.x-P,de=b.y-B,pe=oe*oe+de*de,we;return pe>0&&(we=((u.x-P)*oe+(u.y-B)*de)/pe,we>1?(P=b.x,B=b.y):we>0&&(P+=oe*we,B+=de*we)),oe=u.x-P,de=u.y-B,T?oe*oe+de*de:new Z(P,B)}function oi(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function XO(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),oi(u)}function JO(u,h){var b,T,P,B,oe,de,pe,we;if(!u||u.length===0)throw new Error("latlngs not passed");oi(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var De=ae([0,0]),We=q(u),Je=We.getNorthWest().distanceTo(We.getSouthWest())*We.getNorthEast().distanceTo(We.getNorthWest());Je<1700&&(De=s_(u));var pr=u.length,Pn=[];for(b=0;b<pr;b++){var ai=ae(u[b]);Pn.push(h.project(ae([ai.lat-De.lat,ai.lng-De.lng])))}for(b=0,T=0;b<pr-1;b++)T+=Pn[b].distanceTo(Pn[b+1])/2;if(T===0)we=Pn[0];else for(b=0,B=0;b<pr-1;b++)if(oe=Pn[b],de=Pn[b+1],P=oe.distanceTo(de),B+=P,B>T){pe=(B-T)/P,we=[de.x-pe*(de.x-oe.x),de.y-pe*(de.y-oe.y)];break}var Er=h.unproject(D(we));return ae([Er.lat+De.lat,Er.lng+De.lng])}var n7={__proto__:null,simplify:qO,pointToSegmentDistance:ZO,closestPointOnSegment:XU,clipSegment:QO,_getEdgeIntersection:Op,_getBitCode:Ms,_sqClosestPointOnSegment:cd,isFlat:oi,_flat:XO,polylineCenter:JO},c_={project:function(u){return new Z(u.lng,u.lat)},unproject:function(u){return new ie(u.y,u.x)},bounds:new H([-180,-90],[180,90])},u_={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var h=Math.PI/180,b=this.R,T=u.lat*h,P=this.R_MINOR/b,B=Math.sqrt(1-P*P),oe=B*Math.sin(T),de=Math.tan(Math.PI/4-T/2)/Math.pow((1-oe)/(1+oe),B/2);return T=-b*Math.log(Math.max(de,1e-10)),new Z(u.lng*h*b,T)},unproject:function(u){for(var h=180/Math.PI,b=this.R,T=this.R_MINOR/b,P=Math.sqrt(1-T*T),B=Math.exp(-u.y/b),oe=Math.PI/2-2*Math.atan(B),de=0,pe=.1,we;de<15&&Math.abs(pe)>1e-7;de++)we=P*Math.sin(oe),we=Math.pow((1-we)/(1+we),P/2),pe=Math.PI/2-2*Math.atan(B*we)-oe,oe+=pe;return new ie(oe*h,u.x*h/b)}},r7={__proto__:null,LonLat:c_,Mercator:u_,SphericalMercator:$},i7=i({},C,{code:"EPSG:3395",projection:u_,transformation:function(){var u=.5/(Math.PI*u_.R);return ee(u,.5,-u,.5)}()}),eC=i({},C,{code:"EPSG:4326",projection:c_,transformation:ee(1/180,1,-1/180,.5)}),o7=i({},he,{projection:c_,transformation:ee(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,h){var b=h.lng-u.lng,T=h.lat-u.lat;return Math.sqrt(b*b+T*T)},infinite:!0});he.Earth=C,he.EPSG3395=i7,he.EPSG3857=se,he.EPSG900913=ge,he.EPSG4326=eC,he.Simple=o7;var Mi=le.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 h=u.target;if(h.hasLayer(this)){if(this._map=h,this._zoomAnimated=h._zoomAnimated,this.getEvents){var b=this.getEvents();h.on(b,this),this.once("remove",function(){h.off(b,this)},this)}this.onAdd(h),this.fire("add"),h.fire("layeradd",{layer:this})}}});ct.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var h=l(u);return this._layers[h]?this:(this._layers[h]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var h=l(u);return this._layers[h]?(this._loaded&&u.onRemove(this),delete this._layers[h],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,h){for(var b in this._layers)u.call(h,this._layers[b]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var h=0,b=u.length;h<b;h++)this.addLayer(u[h])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var h=l(u);this._zoomBoundLayers[h]&&(delete this._zoomBoundLayers[h],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,h=-1/0,b=this._getZoomSpan();for(var T in this._zoomBoundLayers){var P=this._zoomBoundLayers[T].options;u=P.minZoom===void 0?u:Math.min(u,P.minZoom),h=P.maxZoom===void 0?h:Math.max(h,P.maxZoom)}this._layersMaxZoom=h===-1/0?void 0:h,this._layersMinZoom=u===1/0?void 0:u,b!==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 Ql=Mi.extend({initialize:function(u,h){y(this,h),this._layers={};var b,T;if(u)for(b=0,T=u.length;b<T;b++)this.addLayer(u[b])},addLayer:function(u){var h=this.getLayerId(u);return this._layers[h]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var h=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[h]&&this._map.removeLayer(this._layers[h]),delete this._layers[h],this},hasLayer:function(u){var h=typeof u=="number"?u:this.getLayerId(u);return h in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var h=Array.prototype.slice.call(arguments,1),b,T;for(b in this._layers)T=this._layers[b],T[u]&&T[u].apply(T,h);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,h){for(var b in this._layers)u.call(h,this._layers[b]);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)}}),a7=function(u,h){return new Ql(u,h)},Lo=Ql.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),Ql.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),Ql.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 z;for(var h in this._layers){var b=this._layers[h];u.extend(b.getBounds?b.getBounds():b.getLatLng())}return u}}),s7=function(u,h){return new Lo(u,h)},Xl=G.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,h){var b=this._getIconUrl(u);if(!b){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var T=this._createImg(b,h&&h.tagName==="IMG"?h: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,h){var b=this.options,T=b[h+"Size"];typeof T=="number"&&(T=[T,T]);var P=D(T),B=D(h==="shadow"&&b.shadowAnchor||b.iconAnchor||P&&P.divideBy(2,!0));u.className="leaflet-marker-"+h+" "+(b.className||""),B&&(u.style.marginLeft=-B.x+"px",u.style.marginTop=-B.y+"px"),P&&(u.style.width=P.x+"px",u.style.height=P.y+"px")},_createImg:function(u,h){return h=h||document.createElement("img"),h.src=u,h},_getIconUrl:function(u){return ze.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function l7(u){return new Xl(u)}var ud=Xl.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 ud.imagePath!="string"&&(ud.imagePath=this._detectIconPath()),(this.options.imagePath||ud.imagePath)+Xl.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var h=function(b,T,P){var B=T.exec(b);return B&&B[P]};return u=h(u,/^url\((['"])?(.+)\1\)$/,2),u&&h(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=pt("div","leaflet-default-icon-path",document.body),h=rd(u,"background-image")||rd(u,"backgroundImage");if(document.body.removeChild(u),h=this._stripUrl(h),h)return h;var b=document.querySelector('link[href$="leaflet.css"]');return b?b.href.substring(0,b.href.length-11-1):""}}),tC=to.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new ba(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ke(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&&ln(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var h=this._marker,b=h._map,T=this._marker.options.autoPanSpeed,P=this._marker.options.autoPanPadding,B=Ps(h._icon),oe=b.getPixelBounds(),de=b.getPixelOrigin(),pe=re(oe.min._subtract(de).add(P),oe.max._subtract(de).subtract(P));if(!pe.contains(B)){var we=D((Math.max(pe.max.x,B.x)-pe.max.x)/(oe.max.x-pe.max.x)-(Math.min(pe.min.x,B.x)-pe.min.x)/(oe.min.x-pe.min.x),(Math.max(pe.max.y,B.y)-pe.max.y)/(oe.max.y-pe.max.y)-(Math.min(pe.min.y,B.y)-pe.min.y)/(oe.min.y-pe.min.y)).multiplyBy(T);b.panBy(we,{animate:!1}),this._draggable._newPos._add(we),this._draggable._startPos._add(we),gn(h._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=V(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&&(W(this._panRequest),this._panRequest=V(this._adjustPan.bind(this,u)))},_onDrag:function(u){var h=this._marker,b=h._shadow,T=Ps(h._icon),P=h._map.layerPointToLatLng(T);b&&gn(b,T),h._latlng=P,u.latlng=P,u.oldLatLng=this._oldLatLng,h.fire("move",u).fire("drag",u)},_onDragEnd:function(u){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Cp=Mi.extend({options:{icon:new ud,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,h){y(this,h),this._latlng=ae(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 h=this._latlng;return this._latlng=ae(u),this.update(),this.fire("move",{oldLatLng:h,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,h="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),b=u.icon.createIcon(this._icon),T=!1;b!==this._icon&&(this._icon&&this._removeIcon(),T=!0,u.title&&(b.title=u.title),b.tagName==="IMG"&&(b.alt=u.alt||"")),Ke(b,h),u.keyboard&&(b.tabIndex="0",b.setAttribute("role","button")),this._icon=b,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&qe(b,"focus",this._panOnFocus,this);var P=u.icon.createShadow(this._shadow),B=!1;P!==this._shadow&&(this._removeShadow(),B=!0),P&&(Ke(P,h),P.alt=""),this._shadow=P,u.opacity<1&&this._updateOpacity(),T&&this.getPane().appendChild(this._icon),this._initInteraction(),P&&B&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ct(this._icon,"focus",this._panOnFocus,this),Wt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Wt(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&gn(this._icon,u),this._shadow&&gn(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 h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(h)},_initInteraction:function(){if(this.options.interactive&&(Ke(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),tC)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tC(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&&ii(this._icon,u),this._shadow&&ii(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var h=this.options.icon.options,b=h.iconSize?D(h.iconSize):D(0,0),T=h.iconAnchor?D(h.iconAnchor):D(0,0);u.panInside(this._latlng,{paddingTopLeft:T,paddingBottomRight:b.subtract(T)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function c7(u,h){return new Cp(u,h)}var wa=Mi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(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 y(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)}}),kp=wa.extend({options:{fill:!0,radius:10},initialize:function(u,h){y(this,h),this._latlng=ae(u),this._radius=this.options.radius},setLatLng:function(u){var h=this._latlng;return this._latlng=ae(u),this.redraw(),this.fire("move",{oldLatLng:h,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 h=u&&u.radius||this._radius;return wa.prototype.setStyle.call(this,u),this.setRadius(h),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,h=this._radiusY||u,b=this._clickTolerance(),T=[u+b,h+b];this._pxBounds=new H(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 u7(u,h){return new kp(u,h)}var d_=kp.extend({initialize:function(u,h,b){if(typeof h=="number"&&(h=i({},b,{radius:h})),y(this,h),this._latlng=ae(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 z(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:wa.prototype.setStyle,_project:function(){var u=this._latlng.lng,h=this._latlng.lat,b=this._map,T=b.options.crs;if(T.distance===C.distance){var P=Math.PI/180,B=this._mRadius/C.R/P,oe=b.project([h+B,u]),de=b.project([h-B,u]),pe=oe.add(de).divideBy(2),we=b.unproject(pe).lat,De=Math.acos((Math.cos(B*P)-Math.sin(h*P)*Math.sin(we*P))/(Math.cos(h*P)*Math.cos(we*P)))/P;(isNaN(De)||De===0)&&(De=B/Math.cos(Math.PI/180*h)),this._point=pe.subtract(b.getPixelOrigin()),this._radius=isNaN(De)?0:pe.x-b.project([we,u-De]).x,this._radiusY=pe.y-oe.y}else{var We=T.unproject(T.project(this._latlng).subtract([this._mRadius,0]));this._point=b.latLngToLayerPoint(this._latlng),this._radius=this._point.x-b.latLngToLayerPoint(We).x}this._updateBounds()}});function d7(u,h,b){return new d_(u,h,b)}var jo=wa.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,h){y(this,h),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 h=1/0,b=null,T=cd,P,B,oe=0,de=this._parts.length;oe<de;oe++)for(var pe=this._parts[oe],we=1,De=pe.length;we<De;we++){P=pe[we-1],B=pe[we];var We=T(u,P,B,!0);We<h&&(h=We,b=T(u,P,B))}return b&&(b.distance=Math.sqrt(h)),b},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return JO(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,h){return h=h||this._defaultShape(),u=ae(u),h.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new z,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return oi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var h=[],b=oi(u),T=0,P=u.length;T<P;T++)b?(h[T]=ae(u[T]),this._bounds.extend(h[T])):h[T]=this._convertLatLngs(u[T]);return h},_project:function(){var u=new H;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(),h=new Z(u,u);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(h),this._rawPxBounds.max.add(h)]))},_projectLatlngs:function(u,h,b){var T=u[0]instanceof ie,P=u.length,B,oe;if(T){for(oe=[],B=0;B<P;B++)oe[B]=this._map.latLngToLayerPoint(u[B]),b.extend(oe[B]);h.push(oe)}else for(B=0;B<P;B++)this._projectLatlngs(u[B],h,b)},_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 h=this._parts,b,T,P,B,oe,de,pe;for(b=0,P=0,B=this._rings.length;b<B;b++)for(pe=this._rings[b],T=0,oe=pe.length;T<oe-1;T++)de=QO(pe[T],pe[T+1],u,T,!0),de&&(h[P]=h[P]||[],h[P].push(de[0]),(de[1]!==pe[T+1]||T===oe-2)&&(h[P].push(de[1]),P++))}},_simplifyPoints:function(){for(var u=this._parts,h=this.options.smoothFactor,b=0,T=u.length;b<T;b++)u[b]=qO(u[b],h)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,h){var b,T,P,B,oe,de,pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(b=0,B=this._parts.length;b<B;b++)for(de=this._parts[b],T=0,oe=de.length,P=oe-1;T<oe;P=T++)if(!(!h&&T===0)&&ZO(u,de[P],de[T])<=pe)return!0;return!1}});function f7(u,h){return new jo(u,h)}jo._flat=XO;var Jl=jo.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 GO(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var h=jo.prototype._convertLatLngs.call(this,u),b=h.length;return b>=2&&h[0]instanceof ie&&h[0].equals(h[b-1])&&h.pop(),h},_setLatLngs:function(u){jo.prototype._setLatLngs.call(this,u),oi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return oi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,h=this.options.weight,b=new Z(h,h);if(u=new H(u.min.subtract(b),u.max.add(b)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var T=0,P=this._rings.length,B;T<P;T++)B=YO(this._rings[T],u,!0),B.length&&this._parts.push(B)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var h=!1,b,T,P,B,oe,de,pe,we;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(B=0,pe=this._parts.length;B<pe;B++)for(b=this._parts[B],oe=0,we=b.length,de=we-1;oe<we;de=oe++)T=b[oe],P=b[de],T.y>u.y!=P.y>u.y&&u.x<(P.x-T.x)*(u.y-T.y)/(P.y-T.y)+T.x&&(h=!h);return h||jo.prototype._containsPoint.call(this,u,!0)}});function h7(u,h){return new Jl(u,h)}var Mo=Lo.extend({initialize:function(u,h){y(this,h),this._layers={},u&&this.addData(u)},addData:function(u){var h=S(u)?u:u.features,b,T,P;if(h){for(b=0,T=h.length;b<T;b++)P=h[b],(P.geometries||P.geometry||P.features||P.coordinates)&&this.addData(P);return this}var B=this.options;if(B.filter&&!B.filter(u))return this;var oe=Pp(u,B);return oe?(oe.feature=Mp(u),oe.defaultOptions=oe.options,this.resetStyle(oe),B.onEachFeature&&B.onEachFeature(u,oe),this.addLayer(oe)):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(h){this._setLayerStyle(h,u)},this)},_setLayerStyle:function(u,h){u.setStyle&&(typeof h=="function"&&(h=h(u.feature)),u.setStyle(h))}});function Pp(u,h){var b=u.type==="Feature"?u.geometry:u,T=b?b.coordinates:null,P=[],B=h&&h.pointToLayer,oe=h&&h.coordsToLatLng||f_,de,pe,we,De;if(!T&&!b)return null;switch(b.type){case"Point":return de=oe(T),nC(B,u,de,h);case"MultiPoint":for(we=0,De=T.length;we<De;we++)de=oe(T[we]),P.push(nC(B,u,de,h));return new Lo(P);case"LineString":case"MultiLineString":return pe=Lp(T,b.type==="LineString"?0:1,oe),new jo(pe,h);case"Polygon":case"MultiPolygon":return pe=Lp(T,b.type==="Polygon"?1:2,oe),new Jl(pe,h);case"GeometryCollection":for(we=0,De=b.geometries.length;we<De;we++){var We=Pp({geometry:b.geometries[we],type:"Feature",properties:u.properties},h);We&&P.push(We)}return new Lo(P);case"FeatureCollection":for(we=0,De=b.features.length;we<De;we++){var Je=Pp(b.features[we],h);Je&&P.push(Je)}return new Lo(P);default:throw new Error("Invalid GeoJSON object.")}}function nC(u,h,b,T){return u?u(h,b):new Cp(b,T&&T.markersInheritOptions&&T)}function f_(u){return new ie(u[1],u[0],u[2])}function Lp(u,h,b){for(var T=[],P=0,B=u.length,oe;P<B;P++)oe=h?Lp(u[P],h-1,b):(b||f_)(u[P]),T.push(oe);return T}function h_(u,h){return u=ae(u),u.alt!==void 0?[p(u.lng,h),p(u.lat,h),p(u.alt,h)]:[p(u.lng,h),p(u.lat,h)]}function jp(u,h,b,T){for(var P=[],B=0,oe=u.length;B<oe;B++)P.push(h?jp(u[B],oi(u[B])?0:h-1,b,T):h_(u[B],T));return!h&&b&&P.length>0&&P.push(P[0].slice()),P}function ec(u,h){return u.feature?i({},u.feature,{geometry:h}):Mp(h)}function Mp(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var p_={toGeoJSON:function(u){return ec(this,{type:"Point",coordinates:h_(this.getLatLng(),u)})}};Cp.include(p_),d_.include(p_),kp.include(p_),jo.include({toGeoJSON:function(u){var h=!oi(this._latlngs),b=jp(this._latlngs,h?1:0,!1,u);return ec(this,{type:(h?"Multi":"")+"LineString",coordinates:b})}}),Jl.include({toGeoJSON:function(u){var h=!oi(this._latlngs),b=h&&!oi(this._latlngs[0]),T=jp(this._latlngs,b?2:h?1:0,!0,u);return h||(T=[T]),ec(this,{type:(b?"Multi":"")+"Polygon",coordinates:T})}}),Ql.include({toMultiPoint:function(u){var h=[];return this.eachLayer(function(b){h.push(b.toGeoJSON(u).geometry.coordinates)}),ec(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(u){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(u);var b=h==="GeometryCollection",T=[];return this.eachLayer(function(P){if(P.toGeoJSON){var B=P.toGeoJSON(u);if(b)T.push(B.geometry);else{var oe=Mp(B);oe.type==="FeatureCollection"?T.push.apply(T,oe.features):T.push(oe)}}}),b?ec(this,{geometries:T,type:"GeometryCollection"}):{type:"FeatureCollection",features:T}}});function rC(u,h){return new Mo(u,h)}var p7=rC,Np=Mi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,h,b){this._url=u,this._bounds=q(h),y(this,b)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ke(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Wt(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&&Zl(this._image),this},bringToBack:function(){return this._map&&Kl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=q(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",h=this._image=u?this._url:pt("img");if(Ke(h,"leaflet-image-layer"),this._zoomAnimated&&Ke(h,"leaflet-zoom-animated"),this.options.className&&Ke(h,this.options.className),h.onselectstart=f,h.onmousemove=f,h.onload=a(this.fire,this,"load"),h.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(u){var h=this._map.getZoomScale(u.zoom),b=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;ks(this._image,b,h)},_reset:function(){var u=this._image,h=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),b=h.getSize();gn(u,h.min),u.style.width=b.x+"px",u.style.height=b.y+"px"},_updateOpacity:function(){ii(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()}}),m7=function(u,h,b){return new Np(u,h,b)},iC=Np.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",h=this._image=u?this._url:pt("video");if(Ke(h,"leaflet-image-layer"),this._zoomAnimated&&Ke(h,"leaflet-zoom-animated"),this.options.className&&Ke(h,this.options.className),h.onselectstart=f,h.onmousemove=f,h.onloadeddata=a(this.fire,this,"load"),u){for(var b=h.getElementsByTagName("source"),T=[],P=0;P<b.length;P++)T.push(b[P].src);this._url=b.length>0?T:[h.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(h.style,"objectFit")&&(h.style.objectFit="fill"),h.autoplay=!!this.options.autoplay,h.loop=!!this.options.loop,h.muted=!!this.options.muted,h.playsInline=!!this.options.playsInline;for(var B=0;B<this._url.length;B++){var oe=pt("source");oe.src=this._url[B],h.appendChild(oe)}}});function g7(u,h,b){return new iC(u,h,b)}var oC=Np.extend({_initImage:function(){var u=this._image=this._url;Ke(u,"leaflet-image-layer"),this._zoomAnimated&&Ke(u,"leaflet-zoom-animated"),this.options.className&&Ke(u,this.options.className),u.onselectstart=f,u.onmousemove=f}});function v7(u,h,b){return new oC(u,h,b)}var no=Mi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,h){u&&(u instanceof ie||S(u))?(this._latlng=ae(u),y(this,h)):(y(this,u),this._source=h),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&&ii(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&ii(this._container,1),this.bringToFront(),this.options.interactive&&(Ke(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(ii(this._container,0),this._removeTimeout=setTimeout(a(Wt,void 0,this._container),200)):Wt(this._container),this.options.interactive&&(ln(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=ae(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&&Zl(this._container),this},bringToBack:function(){return this._map&&Kl(this._container),this},_prepareOpen:function(u){var h=this._source;if(!h._map)return!1;if(h instanceof Lo){h=null;var b=this._source._layers;for(var T in b)if(b[T]._map){h=b[T];break}if(!h)return!1;this._source=h}if(!u)if(h.getCenter)u=h.getCenter();else if(h.getLatLng)u=h.getLatLng();else if(h.getBounds)u=h.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,h=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof h=="string")u.innerHTML=h;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(h)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),h=D(this.options.offset),b=this._getAnchor();this._zoomAnimated?gn(this._container,u.add(b)):h=h.add(u).add(b);var T=this._containerBottom=-h.y,P=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=T+"px",this._container.style.left=P+"px"}},_getAnchor:function(){return[0,0]}});ct.include({_initOverlay:function(u,h,b,T){var P=h;return P instanceof u||(P=new u(T).setContent(h)),b&&P.setLatLng(b),P}}),Mi.include({_initOverlay:function(u,h,b,T){var P=b;return P instanceof u?(y(P,T),P._source=this):(P=h&&!T?h:new u(T,this),P.setContent(b)),P}});var Ap=no.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,no.prototype.openOn.call(this,u)},onAdd:function(u){no.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof wa||this._source.on("preclick",Ls))},onRemove:function(u){no.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof wa||this._source.off("preclick",Ls))},getEvents:function(){var u=no.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",h=this._container=pt("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),b=this._wrapper=pt("div",u+"-content-wrapper",h);if(this._contentNode=pt("div",u+"-content",b),sd(h),r_(this._contentNode),qe(h,"contextmenu",Ls),this._tipContainer=pt("div",u+"-tip-container",h),this._tip=pt("div",u+"-tip",this._tipContainer),this.options.closeButton){var T=this._closeButton=pt("a",u+"-close-button",h);T.setAttribute("role","button"),T.setAttribute("aria-label","Close popup"),T.href="#close",T.innerHTML='<span aria-hidden="true">×</span>',qe(T,"click",function(P){qn(P),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,h=u.style;h.width="",h.whiteSpace="nowrap";var b=u.offsetWidth;b=Math.min(b,this.options.maxWidth),b=Math.max(b,this.options.minWidth),h.width=b+1+"px",h.whiteSpace="",h.height="";var T=u.offsetHeight,P=this.options.maxHeight,B="leaflet-popup-scrolled";P&&T>P?(h.height=P+"px",Ke(u,B)):ln(u,B),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),b=this._getAnchor();gn(this._container,h.add(b))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,h=parseInt(rd(this._container,"marginBottom"),10)||0,b=this._container.offsetHeight+h,T=this._containerWidth,P=new Z(this._containerLeft,-b-this._containerBottom);P._add(Ps(this._container));var B=u.layerPointToContainerPoint(P),oe=D(this.options.autoPanPadding),de=D(this.options.autoPanPaddingTopLeft||oe),pe=D(this.options.autoPanPaddingBottomRight||oe),we=u.getSize(),De=0,We=0;B.x+T+pe.x>we.x&&(De=B.x+T-we.x+pe.x),B.x-De-de.x<0&&(De=B.x-de.x),B.y+b+pe.y>we.y&&(We=B.y+b-we.y+pe.y),B.y-We-de.y<0&&(We=B.y-de.y),(De||We)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([De,We]))}},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),y7=function(u,h){return new Ap(u,h)};ct.mergeOptions({closePopupOnClick:!0}),ct.include({openPopup:function(u,h,b){return this._initOverlay(Ap,u,h,b).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),Mi.include({bindPopup:function(u,h){return this._popup=this._initOverlay(Ap,this._popup,u,h),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 instanceof Lo||(this._popup._source=this),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)){js(u);var h=u.layer||u.target;if(this._popup._source===h&&!(h instanceof wa)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=h,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Rp=no.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){no.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){no.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=no.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",h=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var h,b,T=this._map,P=this._container,B=T.latLngToContainerPoint(T.getCenter()),oe=T.layerPointToContainerPoint(u),de=this.options.direction,pe=P.offsetWidth,we=P.offsetHeight,De=D(this.options.offset),We=this._getAnchor();de==="top"?(h=pe/2,b=we):de==="bottom"?(h=pe/2,b=0):de==="center"?(h=pe/2,b=we/2):de==="right"?(h=0,b=we/2):de==="left"?(h=pe,b=we/2):oe.x<B.x?(de="right",h=0,b=we/2):(de="left",h=pe+(De.x+We.x)*2,b=we/2),u=u.subtract(D(h,b,!0)).add(De).add(We),ln(P,"leaflet-tooltip-right"),ln(P,"leaflet-tooltip-left"),ln(P,"leaflet-tooltip-top"),ln(P,"leaflet-tooltip-bottom"),Ke(P,"leaflet-tooltip-"+de),gn(P,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&ii(this._container,u)},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(h)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),_7=function(u,h){return new Rp(u,h)};ct.include({openTooltip:function(u,h,b){return this._initOverlay(Rp,u,h,b).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),Mi.include({bindTooltip:function(u,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Rp,this._tooltip,u,h),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 h=u?"off":"on",b={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?b.add=this._openTooltip:(b.mouseover=this._openTooltip,b.mouseout=this.closeTooltip,b.click=this._openTooltip,this._map?this._addFocusListeners():b.add=this._addFocusListeners),this._tooltip.options.sticky&&(b.mousemove=this._moveTooltip),this[h](b),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof Lo||(this._tooltip._source=this),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 h=typeof u.getElement=="function"&&u.getElement();h&&(qe(h,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),qe(h,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var h=typeof u.getElement=="function"&&u.getElement();h&&h.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var h=this;this._map.once("moveend",function(){h._openOnceFlag=!1,h._openTooltip(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var h=u.latlng,b,T;this._tooltip.options.sticky&&u.originalEvent&&(b=this._map.mouseEventToContainerPoint(u.originalEvent),T=this._map.containerPointToLayerPoint(b),h=this._map.layerPointToLatLng(T)),this._tooltip.setLatLng(h)}});var aC=Xl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var h=u&&u.tagName==="DIV"?u:document.createElement("div"),b=this.options;if(b.html instanceof Element?(wp(h),h.appendChild(b.html)):h.innerHTML=b.html!==!1?b.html:"",b.bgPos){var T=D(b.bgPos);h.style.backgroundPosition=-T.x+"px "+-T.y+"px"}return this._setIconStyles(h,"icon"),h},createShadow:function(){return null}});function b7(u){return new aC(u)}Xl.Default=ud;var dd=Mi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ze.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){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Wt(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Zl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Kl(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 Z?u:new Z(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 h=this.getPane().children,b=-u(-1/0,1/0),T=0,P=h.length,B;T<P;T++)B=h[T].style.zIndex,h[T]!==this._container&&B&&(b=u(b,+B));isFinite(b)&&(this.options.zIndex=b+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ze.ielt9){ii(this._container,this.options.opacity);var u=+new Date,h=!1,b=!1;for(var T in this._tiles){var P=this._tiles[T];if(!(!P.current||!P.loaded)){var B=Math.min(1,(u-P.loaded)/200);ii(P.el,B),B<1?h=!0:(P.active?b=!0:this._onOpaqueTile(P),P.active=!0)}}b&&!this._noPrune&&this._pruneTiles(),h&&(W(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this))}},_onOpaqueTile:f,_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,h=this.options.maxZoom;if(u!==void 0){for(var b in this._levels)b=Number(b),this._levels[b].el.children.length||b===u?(this._levels[b].el.style.zIndex=h-Math.abs(u-b),this._onUpdateLevel(b)):(Wt(this._levels[b].el),this._removeTilesAtZoom(b),this._onRemoveLevel(b),delete this._levels[b]);var T=this._levels[u],P=this._map;return T||(T=this._levels[u]={},T.el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),T.el.style.zIndex=h,T.origin=P.project(P.unproject(P.getPixelOrigin()),u).round(),T.zoom=u,this._setZoomTransform(T,P.getCenter(),P.getZoom()),f(T.el.offsetWidth),this._onCreateLevel(T)),this._level=T,T}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var u,h,b=this._map.getZoom();if(b>this.options.maxZoom||b<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)h=this._tiles[u],h.retain=h.current;for(u in this._tiles)if(h=this._tiles[u],h.current&&!h.active){var T=h.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 h in this._tiles)this._tiles[h].coords.z===u&&this._removeTile(h)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Wt(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,h,b,T){var P=Math.floor(u/2),B=Math.floor(h/2),oe=b-1,de=new Z(+P,+B);de.z=+oe;var pe=this._tileCoordsToKey(de),we=this._tiles[pe];return we&&we.active?(we.retain=!0,!0):(we&&we.loaded&&(we.retain=!0),oe>T?this._retainParent(P,B,oe,T):!1)},_retainChildren:function(u,h,b,T){for(var P=2*u;P<2*u+2;P++)for(var B=2*h;B<2*h+2;B++){var oe=new Z(P,B);oe.z=b+1;var de=this._tileCoordsToKey(oe),pe=this._tiles[de];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);b+1<T&&this._retainChildren(P,B,b+1,T)}},_resetView:function(u){var h=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),h,h)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var h=this.options;return h.minNativeZoom!==void 0&&u<h.minNativeZoom?h.minNativeZoom:h.maxNativeZoom!==void 0&&h.maxNativeZoom<u?h.maxNativeZoom:u},_setView:function(u,h,b,T){var P=Math.round(h);this.options.maxZoom!==void 0&&P>this.options.maxZoom||this.options.minZoom!==void 0&&P<this.options.minZoom?P=void 0:P=this._clampZoom(P);var B=this.options.updateWhenZooming&&P!==this._tileZoom;(!T||B)&&(this._tileZoom=P,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),P!==void 0&&this._update(u),b||this._pruneTiles(),this._noPrune=!!b),this._setZoomTransforms(u,h)},_setZoomTransforms:function(u,h){for(var b in this._levels)this._setZoomTransform(this._levels[b],u,h)},_setZoomTransform:function(u,h,b){var T=this._map.getZoomScale(b,u.zoom),P=u.origin.multiplyBy(T).subtract(this._map._getNewPixelOrigin(h,b)).round();ze.any3d?ks(u.el,P,T):gn(u.el,P)},_resetGrid:function(){var u=this._map,h=u.options.crs,b=this._tileSize=this.getTileSize(),T=this._tileZoom,P=this._map.getPixelWorldBounds(this._tileZoom);P&&(this._globalTileRange=this._pxBoundsToTileRange(P)),this._wrapX=h.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,h.wrapLng[0]],T).x/b.x),Math.ceil(u.project([0,h.wrapLng[1]],T).x/b.y)],this._wrapY=h.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([h.wrapLat[0],0],T).y/b.x),Math.ceil(u.project([h.wrapLat[1],0],T).y/b.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var h=this._map,b=h._animatingZoom?Math.max(h._animateToZoom,h.getZoom()):h.getZoom(),T=h.getZoomScale(b,this._tileZoom),P=h.project(u,this._tileZoom).floor(),B=h.getSize().divideBy(T*2);return new H(P.subtract(B),P.add(B))},_update:function(u){var h=this._map;if(h){var b=this._clampZoom(h.getZoom());if(u===void 0&&(u=h.getCenter()),this._tileZoom!==void 0){var T=this._getTiledPixelBounds(u),P=this._pxBoundsToTileRange(T),B=P.getCenter(),oe=[],de=this.options.keepBuffer,pe=new H(P.getBottomLeft().subtract([de,-de]),P.getTopRight().add([de,-de]));if(!(isFinite(P.min.x)&&isFinite(P.min.y)&&isFinite(P.max.x)&&isFinite(P.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var we in this._tiles){var De=this._tiles[we].coords;(De.z!==this._tileZoom||!pe.contains(new Z(De.x,De.y)))&&(this._tiles[we].current=!1)}if(Math.abs(b-this._tileZoom)>1){this._setView(u,b);return}for(var We=P.min.y;We<=P.max.y;We++)for(var Je=P.min.x;Je<=P.max.x;Je++){var pr=new Z(Je,We);if(pr.z=this._tileZoom,!!this._isValidTile(pr)){var Pn=this._tiles[this._tileCoordsToKey(pr)];Pn?Pn.current=!0:oe.push(pr)}}if(oe.sort(function(Er,nc){return Er.distanceTo(B)-nc.distanceTo(B)}),oe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ai=document.createDocumentFragment();for(Je=0;Je<oe.length;Je++)this._addTile(oe[Je],ai);this._level.el.appendChild(ai)}}}},_isValidTile:function(u){var h=this._map.options.crs;if(!h.infinite){var b=this._globalTileRange;if(!h.wrapLng&&(u.x<b.min.x||u.x>b.max.x)||!h.wrapLat&&(u.y<b.min.y||u.y>b.max.y))return!1}if(!this.options.bounds)return!0;var T=this._tileCoordsToBounds(u);return q(this.options.bounds).overlaps(T)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var h=this._map,b=this.getTileSize(),T=u.scaleBy(b),P=T.add(b),B=h.unproject(T,u.z),oe=h.unproject(P,u.z);return[B,oe]},_tileCoordsToBounds:function(u){var h=this._tileCoordsToNwSe(u),b=new z(h[0],h[1]);return this.options.noWrap||(b=this._map.wrapLatLngBounds(b)),b},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var h=u.split(":"),b=new Z(+h[0],+h[1]);return b.z=+h[2],b},_removeTile:function(u){var h=this._tiles[u];h&&(Wt(h.el),delete this._tiles[u],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Ke(u,"leaflet-tile");var h=this.getTileSize();u.style.width=h.x+"px",u.style.height=h.y+"px",u.onselectstart=f,u.onmousemove=f,ze.ielt9&&this.options.opacity<1&&ii(u,this.options.opacity)},_addTile:function(u,h){var b=this._getTilePos(u),T=this._tileCoordsToKey(u),P=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(P),this.createTile.length<2&&V(a(this._tileReady,this,u,null,P)),gn(P,b),this._tiles[T]={el:P,coords:u,current:!0},h.appendChild(P),this.fire("tileloadstart",{tile:P,coords:u})},_tileReady:function(u,h,b){h&&this.fire("tileerror",{error:h,tile:b,coords:u});var T=this._tileCoordsToKey(u);b=this._tiles[T],b&&(b.loaded=+new Date,this._map._fadeAnimated?(ii(b.el,0),W(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(b.active=!0,this._pruneTiles()),h||(Ke(b.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:b.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ze.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var h=new Z(this._wrapX?d(u.x,this._wrapX):u.x,this._wrapY?d(u.y,this._wrapY):u.y);return h.z=u.z,h},_pxBoundsToTileRange:function(u){var h=this.getTileSize();return new H(u.min.unscaleBy(h).floor(),u.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function w7(u){return new dd(u)}var tc=dd.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,h){this._url=u,h=y(this,h),h.detectRetina&&ze.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,h){return this._url===u&&h===void 0&&(h=!0),this._url=u,h||this.redraw(),this},createTile:function(u,h){var b=document.createElement("img");return qe(b,"load",a(this._tileOnLoad,this,h,b)),qe(b,"error",a(this._tileOnError,this,h,b)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(b.referrerPolicy=this.options.referrerPolicy),b.alt="",b.src=this.getTileUrl(u),b},getTileUrl:function(u){var h={r:ze.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var b=this._globalTileRange.max.y-u.y;this.options.tms&&(h.y=b),h["-y"]=b}return w(this._url,i(h,this.options))},_tileOnLoad:function(u,h){ze.ielt9?setTimeout(a(u,this,null,h),0):u(null,h)},_tileOnError:function(u,h,b){var T=this.options.errorTileUrl;T&&h.getAttribute("src")!==T&&(h.src=T),u(b,h)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,h=this.options.maxZoom,b=this.options.zoomReverse,T=this.options.zoomOffset;return b&&(u=h-u),u+T},_getSubdomain:function(u){var h=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var u,h;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(h=this._tiles[u].el,h.onload=f,h.onerror=f,!h.complete)){h.src=O;var b=this._tiles[u].coords;Wt(h),delete this._tiles[u],this.fire("tileabort",{tile:h,coords:b})}},_removeTile:function(u){var h=this._tiles[u];if(h)return h.el.setAttribute("src",O),dd.prototype._removeTile.call(this,u)},_tileReady:function(u,h,b){if(!(!this._map||b&&b.getAttribute("src")===O))return dd.prototype._tileReady.call(this,u,h,b)}});function sC(u,h){return new tc(u,h)}var lC=tc.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,h){this._url=u;var b=i({},this.defaultWmsParams);for(var T in h)T in this.options||(b[T]=h[T]);h=y(this,h);var P=h.detectRetina&&ze.retina?2:1,B=this.getTileSize();b.width=B.x*P,b.height=B.y*P,this.wmsParams=b},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,tc.prototype.onAdd.call(this,u)},getTileUrl:function(u){var h=this._tileCoordsToNwSe(u),b=this._crs,T=re(b.project(h[0]),b.project(h[1])),P=T.min,B=T.max,oe=(this._wmsVersion>=1.3&&this._crs===eC?[P.y,P.x,B.y,B.x]:[P.x,P.y,B.x,B.y]).join(","),de=tc.prototype.getTileUrl.call(this,u);return de+x(this.wmsParams,de,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+oe},setParams:function(u,h){return i(this.wmsParams,u),h||this.redraw(),this}});function x7(u,h){return new lC(u,h)}tc.WMS=lC,sC.wms=x7;var No=Mi.extend({options:{padding:.1},initialize:function(u){y(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ke(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,h){var b=this._map.getZoomScale(h,this._zoom),T=this._map.getSize().multiplyBy(.5+this.options.padding),P=this._map.project(this._center,h),B=T.multiplyBy(-b).add(P).subtract(this._map._getNewPixelOrigin(u,h));ze.any3d?ks(this._container,B,b):gn(this._container,B)},_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,h=this._map.getSize(),b=this._map.containerPointToLayerPoint(h.multiplyBy(-u)).round();this._bounds=new H(b,b.add(h.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cC=No.extend({options:{tolerance:0},getEvents:function(){var u=No.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){No.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");qe(u,"mousemove",this._onMouseMove,this),qe(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),qe(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Wt(this._container),Ct(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var h in this._layers)u=this._layers[h],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){No.prototype._update.call(this);var u=this._bounds,h=this._container,b=u.getSize(),T=ze.retina?2:1;gn(h,u.min),h.width=T*b.x,h.height=T*b.y,h.style.width=b.x+"px",h.style.height=b.y+"px",ze.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){No.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var h=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var h=u._order,b=h.next,T=h.prev;b?b.prev=T:this._drawLast=T,T?T.next=b:this._drawFirst=b,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 h=u.options.dashArray.split(/[, ]+/),b=[],T,P;for(P=0;P<h.length;P++){if(T=Number(h[P]),isNaN(T))return;b.push(T)}u.options._dashArray=b}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||V(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var h=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(u._pxBounds.min.subtract([h,h])),this._redrawBounds.extend(u._pxBounds.max.add([h,h]))}},_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 h=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,h.x,h.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,h=this._redrawBounds;if(this._ctx.save(),h){var b=h.getSize();this._ctx.beginPath(),this._ctx.rect(h.min.x,h.min.y,b.x,b.y),this._ctx.clip()}this._drawing=!0;for(var T=this._drawFirst;T;T=T.next)u=T.layer,(!h||u._pxBounds&&u._pxBounds.intersects(h))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,h){if(this._drawing){var b,T,P,B,oe=u._parts,de=oe.length,pe=this._ctx;if(de){for(pe.beginPath(),b=0;b<de;b++){for(T=0,P=oe[b].length;T<P;T++)B=oe[b][T],pe[T?"lineTo":"moveTo"](B.x,B.y);h&&pe.closePath()}this._fillStroke(pe,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var h=u._point,b=this._ctx,T=Math.max(Math.round(u._radius),1),P=(Math.max(Math.round(u._radiusY),1)||T)/T;P!==1&&(b.save(),b.scale(1,P)),b.beginPath(),b.arc(h.x,h.y/P,T,0,Math.PI*2,!1),P!==1&&b.restore(),this._fillStroke(b,u)}},_fillStroke:function(u,h){var b=h.options;b.fill&&(u.globalAlpha=b.fillOpacity,u.fillStyle=b.fillColor||b.color,u.fill(b.fillRule||"evenodd")),b.stroke&&b.weight!==0&&(u.setLineDash&&u.setLineDash(h.options&&h.options._dashArray||[]),u.globalAlpha=b.opacity,u.lineWidth=b.weight,u.strokeStyle=b.color,u.lineCap=b.lineCap,u.lineJoin=b.lineJoin,u.stroke())},_onClick:function(u){for(var h=this._map.mouseEventToLayerPoint(u),b,T,P=this._drawFirst;P;P=P.next)b=P.layer,b.options.interactive&&b._containsPoint(h)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(b))&&(T=b);this._fireEvent(T?[T]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var h=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,h)}},_handleMouseOut:function(u){var h=this._hoveredLayer;h&&(ln(this._container,"leaflet-interactive"),this._fireEvent([h],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,h){if(!this._mouseHoverThrottled){for(var b,T,P=this._drawFirst;P;P=P.next)b=P.layer,b.options.interactive&&b._containsPoint(h)&&(T=b);T!==this._hoveredLayer&&(this._handleMouseOut(u),T&&(Ke(this._container,"leaflet-interactive"),this._fireEvent([T],u,"mouseover"),this._hoveredLayer=T)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,h,b){this._map._fireDOMEvent(h,b||h.type,u)},_bringToFront:function(u){var h=u._order;if(h){var b=h.next,T=h.prev;if(b)b.prev=T;else return;T?T.next=b:b&&(this._drawFirst=b),h.prev=this._drawLast,this._drawLast.next=h,h.next=null,this._drawLast=h,this._requestRedraw(u)}},_bringToBack:function(u){var h=u._order;if(h){var b=h.next,T=h.prev;if(T)T.next=b;else return;b?b.prev=T:T&&(this._drawLast=T),h.prev=null,h.next=this._drawFirst,this._drawFirst.prev=h,this._drawFirst=h,this._requestRedraw(u)}}});function uC(u){return ze.canvas?new cC(u):null}var fd=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">')}}(),S7={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(No.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var h=u._container=fd("shape");Ke(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",u._path=fd("path"),h.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var h=u._container;this._container.appendChild(h),u.options.interactive&&u.addInteractiveTarget(h)},_removePath:function(u){var h=u._container;Wt(h),u.removeInteractiveTarget(h),delete this._layers[l(u)]},_updateStyle:function(u){var h=u._stroke,b=u._fill,T=u.options,P=u._container;P.stroked=!!T.stroke,P.filled=!!T.fill,T.stroke?(h||(h=u._stroke=fd("stroke")),P.appendChild(h),h.weight=T.weight+"px",h.color=T.color,h.opacity=T.opacity,T.dashArray?h.dashStyle=S(T.dashArray)?T.dashArray.join(" "):T.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=T.lineCap.replace("butt","flat"),h.joinstyle=T.lineJoin):h&&(P.removeChild(h),u._stroke=null),T.fill?(b||(b=u._fill=fd("fill")),P.appendChild(b),b.color=T.fillColor||T.color,b.opacity=T.fillOpacity):b&&(P.removeChild(b),u._fill=null)},_updateCircle:function(u){var h=u._point.round(),b=Math.round(u._radius),T=Math.round(u._radiusY||b);this._setPath(u,u._empty()?"M0 0":"AL "+h.x+","+h.y+" "+b+","+T+" 0,"+65535*360)},_setPath:function(u,h){u._path.v=h},_bringToFront:function(u){Zl(u._container)},_bringToBack:function(u){Kl(u._container)}},Dp=ze.vml?fd:Me,hd=No.extend({_initContainer:function(){this._container=Dp("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Dp("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Wt(this._container),Ct(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){No.prototype._update.call(this);var u=this._bounds,h=u.getSize(),b=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,b.setAttribute("width",h.x),b.setAttribute("height",h.y)),gn(b,u.min),b.setAttribute("viewBox",[u.min.x,u.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(u){var h=u._path=Dp("path");u.options.className&&Ke(h,u.options.className),u.options.interactive&&Ke(h,"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){Wt(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var h=u._path,b=u.options;h&&(b.stroke?(h.setAttribute("stroke",b.color),h.setAttribute("stroke-opacity",b.opacity),h.setAttribute("stroke-width",b.weight),h.setAttribute("stroke-linecap",b.lineCap),h.setAttribute("stroke-linejoin",b.lineJoin),b.dashArray?h.setAttribute("stroke-dasharray",b.dashArray):h.removeAttribute("stroke-dasharray"),b.dashOffset?h.setAttribute("stroke-dashoffset",b.dashOffset):h.removeAttribute("stroke-dashoffset")):h.setAttribute("stroke","none"),b.fill?(h.setAttribute("fill",b.fillColor||b.color),h.setAttribute("fill-opacity",b.fillOpacity),h.setAttribute("fill-rule",b.fillRule||"evenodd")):h.setAttribute("fill","none"))},_updatePoly:function(u,h){this._setPath(u,ue(u._parts,h))},_updateCircle:function(u){var h=u._point,b=Math.max(Math.round(u._radius),1),T=Math.max(Math.round(u._radiusY),1)||b,P="a"+b+","+T+" 0 1,0 ",B=u._empty()?"M0 0":"M"+(h.x-b)+","+h.y+P+b*2+",0 "+P+-b*2+",0 ";this._setPath(u,B)},_setPath:function(u,h){u._path.setAttribute("d",h)},_bringToFront:function(u){Zl(u._path)},_bringToBack:function(u){Kl(u._path)}});ze.vml&&hd.include(S7);function dC(u){return ze.svg||ze.vml?new hd(u):null}ct.include({getRenderer:function(u){var h=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var h=this._paneRenderers[u];return h===void 0&&(h=this._createRenderer({pane:u}),this._paneRenderers[u]=h),h},_createRenderer:function(u){return this.options.preferCanvas&&uC(u)||dC(u)}});var fC=Jl.extend({initialize:function(u,h){Jl.prototype.initialize.call(this,this._boundsToLatLngs(u),h)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=q(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function E7(u,h){return new fC(u,h)}hd.create=Dp,hd.pointsToPath=ue,Mo.geometryToLayer=Pp,Mo.coordsToLatLng=f_,Mo.coordsToLatLngs=Lp,Mo.latLngToCoords=h_,Mo.latLngsToCoords=jp,Mo.getFeature=ec,Mo.asFeature=Mp,ct.mergeOptions({boxZoom:!0});var hC=to.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(){qe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ct(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Wt(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(),id(),Z0(),this._startPoint=this._map.mouseEventToContainerPoint(u),qe(document,{contextmenu:js,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),Ke(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var h=new H(this._point,this._startPoint),b=h.getSize();gn(this._box,h.min),this._box.style.width=b.x+"px",this._box.style.height=b.y+"px"},_finish:function(){this._moved&&(Wt(this._box),ln(this._container,"leaflet-crosshair")),od(),K0(),Ct(document,{contextmenu:js,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(a(this._resetState,this),0);var h=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ct.addInitHook("addHandler","boxZoom",hC),ct.mergeOptions({doubleClickZoom:!0});var pC=to.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var h=this._map,b=h.getZoom(),T=h.options.zoomDelta,P=u.originalEvent.shiftKey?b-T:b+T;h.options.doubleClickZoom==="center"?h.setZoom(P):h.setZoomAround(u.containerPoint,P)}});ct.addInitHook("addHandler","doubleClickZoom",pC),ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var mC=to.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new ba(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))}Ke(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ln(this._map._container,"leaflet-grab"),ln(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 h=q(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(h.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(h.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 h=this._lastTime=+new Date,b=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(b),this._times.push(h),this._prunePositions(h)}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),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,h){return u-(u-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;u.x<h.min.x&&(u.x=this._viscousLimit(u.x,h.min.x)),u.y<h.min.y&&(u.y=this._viscousLimit(u.y,h.min.y)),u.x>h.max.x&&(u.x=this._viscousLimit(u.x,h.max.x)),u.y>h.max.y&&(u.y=this._viscousLimit(u.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,h=Math.round(u/2),b=this._initialWorldOffset,T=this._draggable._newPos.x,P=(T-h+b)%u+h-b,B=(T+h+b)%u-h-b,oe=Math.abs(P+b)<Math.abs(B+b)?P:B;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=oe},_onDragEnd:function(u){var h=this._map,b=h.options,T=!b.inertia||u.noInertia||this._times.length<2;if(h.fire("dragend",u),T)h.fire("moveend");else{this._prunePositions(+new Date);var P=this._lastPos.subtract(this._positions[0]),B=(this._lastTime-this._times[0])/1e3,oe=b.easeLinearity,de=P.multiplyBy(oe/B),pe=de.distanceTo([0,0]),we=Math.min(b.inertiaMaxSpeed,pe),De=de.multiplyBy(we/pe),We=we/(b.inertiaDeceleration*oe),Je=De.multiplyBy(-We/2).round();!Je.x&&!Je.y?h.fire("moveend"):(Je=h._limitOffset(Je,h.options.maxBounds),V(function(){h.panBy(Je,{duration:We,easeLinearity:oe,noMoveStart:!0,animate:!0})}))}}});ct.addInitHook("addHandler","dragging",mC),ct.mergeOptions({keyboard:!0,keyboardPanDelta:80});var gC=to.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"),qe(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(),Ct(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,h=document.documentElement,b=u.scrollTop||h.scrollTop,T=u.scrollLeft||h.scrollLeft;this._map._container.focus(),window.scrollTo(T,b)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var h=this._panKeys={},b=this.keyCodes,T,P;for(T=0,P=b.left.length;T<P;T++)h[b.left[T]]=[-1*u,0];for(T=0,P=b.right.length;T<P;T++)h[b.right[T]]=[u,0];for(T=0,P=b.down.length;T<P;T++)h[b.down[T]]=[0,u];for(T=0,P=b.up.length;T<P;T++)h[b.up[T]]=[0,-1*u]},_setZoomDelta:function(u){var h=this._zoomKeys={},b=this.keyCodes,T,P;for(T=0,P=b.zoomIn.length;T<P;T++)h[b.zoomIn[T]]=u;for(T=0,P=b.zoomOut.length;T<P;T++)h[b.zoomOut[T]]=-u},_addHooks:function(){qe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ct(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var h=u.keyCode,b=this._map,T;if(h in this._panKeys){if(!b._panAnim||!b._panAnim._inProgress)if(T=this._panKeys[h],u.shiftKey&&(T=D(T).multiplyBy(3)),b.options.maxBounds&&(T=b._limitOffset(D(T),b.options.maxBounds)),b.options.worldCopyJump){var P=b.wrapLatLng(b.unproject(b.project(b.getCenter()).add(T)));b.panTo(P)}else b.panBy(T)}else if(h in this._zoomKeys)b.setZoom(b.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[h]);else if(h===27&&b._popup&&b._popup.options.closeOnEscapeKey)b.closePopup();else return;js(u)}}});ct.addInitHook("addHandler","keyboard",gC),ct.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var vC=to.extend({addHooks:function(){qe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ct(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var h=BO(u),b=this._map.options.wheelDebounceTime;this._delta+=h,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var T=Math.max(b-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),T),js(u)},_performZoom:function(){var u=this._map,h=u.getZoom(),b=this._map.options.zoomSnap||0;u._stop();var T=this._delta/(this._map.options.wheelPxPerZoomLevel*4),P=4*Math.log(2/(1+Math.exp(-Math.abs(T))))/Math.LN2,B=b?Math.ceil(P/b)*b:P,oe=u._limitZoom(h+(this._delta>0?B:-B))-h;this._delta=0,this._startTime=null,oe&&(u.options.scrollWheelZoom==="center"?u.setZoom(h+oe):u.setZoomAround(this._lastMousePos,h+oe))}});ct.addInitHook("addHandler","scrollWheelZoom",vC);var T7=600;ct.mergeOptions({tapHold:ze.touchNative&&ze.safari&&ze.mobile,tapTolerance:15});var yC=to.extend({addHooks:function(){qe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ct(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var h=u.touches[0];this._startPos=this._newPos=new Z(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(qe(document,"touchend",qn),qe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),T7),qe(document,"touchend touchcancel contextmenu",this._cancel,this),qe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Ct(document,"touchend",qn),Ct(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Ct(document,"touchend touchcancel contextmenu",this._cancel,this),Ct(document,"touchmove",this._onMove,this)},_onMove:function(u){var h=u.touches[0];this._newPos=new Z(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,h){var b=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:h.screenX,screenY:h.screenY,clientX:h.clientX,clientY:h.clientY});b._simulated=!0,h.target.dispatchEvent(b)}});ct.addInitHook("addHandler","tapHold",yC),ct.mergeOptions({touchZoom:ze.touch,bounceAtZoomLimits:!0});var _C=to.extend({addHooks:function(){Ke(this._map._container,"leaflet-touch-zoom"),qe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ln(this._map._container,"leaflet-touch-zoom"),Ct(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var h=this._map;if(!(!u.touches||u.touches.length!==2||h._animatingZoom||this._zooming)){var b=h.mouseEventToContainerPoint(u.touches[0]),T=h.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(b.add(T)._divideBy(2))),this._startDist=b.distanceTo(T),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),qe(document,"touchmove",this._onTouchMove,this),qe(document,"touchend touchcancel",this._onTouchEnd,this),qn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var h=this._map,b=h.mouseEventToContainerPoint(u.touches[0]),T=h.mouseEventToContainerPoint(u.touches[1]),P=b.distanceTo(T)/this._startDist;if(this._zoom=h.getScaleZoom(P,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoom<h.getMinZoom()&&P<1||this._zoom>h.getMaxZoom()&&P>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,P===1)return}else{var B=b._add(T)._divideBy(2)._subtract(this._centerPoint);if(P===1&&B.x===0&&B.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(B),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var oe=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(oe,this,!0),qn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),Ct(document,"touchmove",this._onTouchMove,this),Ct(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",_C),ct.BoxZoom=hC,ct.DoubleClickZoom=pC,ct.Drag=mC,ct.Keyboard=gC,ct.ScrollWheelZoom=vC,ct.TapHold=yC,ct.TouchZoom=_C,n.Bounds=H,n.Browser=ze,n.CRS=he,n.Canvas=cC,n.Circle=d_,n.CircleMarker=kp,n.Class=G,n.Control=ji,n.DivIcon=aC,n.DivOverlay=no,n.DomEvent=VU,n.DomUtil=BU,n.Draggable=ba,n.Evented=le,n.FeatureGroup=Lo,n.GeoJSON=Mo,n.GridLayer=dd,n.Handler=to,n.Icon=Xl,n.ImageOverlay=Np,n.LatLng=ie,n.LatLngBounds=z,n.Layer=Mi,n.LayerGroup=Ql,n.LineUtil=n7,n.Map=ct,n.Marker=Cp,n.Mixin=KU,n.Path=wa,n.Point=Z,n.PolyUtil=QU,n.Polygon=Jl,n.Polyline=jo,n.Popup=Ap,n.PosAnimation=zO,n.Projection=r7,n.Rectangle=fC,n.Renderer=No,n.SVG=hd,n.SVGOverlay=oC,n.TileLayer=tc,n.Tooltip=Rp,n.Transformation=J,n.Util=X,n.VideoOverlay=iC,n.bind=a,n.bounds=re,n.canvas=uC,n.circle=d7,n.circleMarker=u7,n.control=ld,n.divIcon=b7,n.extend=i,n.featureGroup=s7,n.geoJSON=rC,n.geoJson=p7,n.gridLayer=w7,n.icon=l7,n.imageOverlay=m7,n.latLng=ae,n.latLngBounds=q,n.layerGroup=a7,n.map=HU,n.marker=c7,n.point=D,n.polygon=h7,n.polyline=f7,n.popup=y7,n.rectangle=E7,n.setOptions=y,n.stamp=l,n.svg=dC,n.svgOverlay=v7,n.tileLayer=sC,n.tooltip=_7,n.transformation=ee,n.version=r,n.videoOverlay=g7;var O7=window.L;n.noConflict=function(){return window.L=O7,this},window.L=n})})(A2,A2.exports);var pp=A2.exports;const RN=Ku(pp);function vO(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function yO(e,t){return t==null?function(n,r){const i=I.useRef();return i.current||(i.current=e(n,r)),i}:function(n,r){const i=I.useRef();i.current||(i.current=e(n,r));const o=I.useRef(n),{instance:a}=i.current;return I.useEffect(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,r]),i}}function wwe(e,t){I.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var n;(n=t.layerContainer)==null||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function P$(e){return function(t){const n=C$(),r=e(gO(t,n),n);return E$(n.map,t.attribution),k$(r.current,t.eventHandlers),wwe(r.current,n),r}}function xwe(e,t){const n=yO(e,t),r=P$(n);return vwe(r)}function Swe(e,t){const n=yO(e),r=bwe(n,t);return ywe(r)}function Ewe(e,t){const n=yO(e,t),r=P$(n);return _we(r)}function Twe(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 R2(){return R2=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},R2.apply(this,arguments)}function Owe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:c,...d},f){const[p]=I.useState({className:i,id:o,style:s}),[m,v]=I.useState(null);I.useImperativeHandle(f,()=>(m==null?void 0:m.map)??null,[m]);const y=I.useCallback(_=>{if(_!==null&&m===null){const w=new pp.Map(_,d);n!=null&&c!=null?w.setView(n,c):e!=null&&w.fitBounds(e,t),l!=null&&w.whenReady(l),v(mwe(w))}},[]);I.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?Y.createElement(O$,{value:m},r):a??null;return Y.createElement("div",R2({},p,{ref:y}),x)}const Cwe=I.forwardRef(Owe),kwe=xwe(function({position:e,...t},n){const r=new pp.Marker(e,t);return vO(r,gwe(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),t.icon!=null&&t.icon!==n.icon&&e.setIcon(t.icon),t.zIndexOffset!=null&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),e.dragging!=null&&t.draggable!==n.draggable&&(t.draggable===!0?e.dragging.enable():e.dragging.disable())}),Pwe=Swe(function(e,t){const n=new pp.Popup(e,t.overlayContainer);return vO(n,t)},function(e,t,{position:n},r){I.useEffect(function(){const{instance:i}=e;function o(s){s.popup===i&&(i.update(),r(!0))}function a(s){s.popup===i&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),t.overlayContainer==null?(n!=null&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){var s;t.map.off({popupopen:o,popupclose:a}),(s=t.overlayContainer)==null||s.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])}),Lwe=Ewe(function({url:e,...t},n){const r=new pp.TileLayer(e,gO(t,n));return vO(r,n)},function(e,t,n){Twe(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),jwe=()=>g.jsx(Lwe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),Mwe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(mt("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},L$=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(pa,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(ko,{className:"map-modal__modal-body",children:[g.jsxs("h3",{className:"map-modal__modal-title",children:[n,g.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),g.jsxs(Cwe,{...Mwe(r),children:[g.jsx(jwe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(kwe,{position:o,children:g.jsxs(Pwe,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),Nwe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=On(),[a,s]=On(),[l,c]=I.useState([]),d=g0(),f=I.useCallback(p=>{c(p?n.filter(p):n),i()},[n,i]);return g.jsxs(g.Fragment,{children:[!t&&g.jsx(yt,{color:"link",className:"open-map-modal-btn__btn",id:d,onClick:()=>f(),"aria-label":"Show in map",children:g.jsx(Ne,{icon:iw})}),t&&g.jsxs(Wh,{isOpen:a,toggle:s,children:[g.jsx(zu,{color:"link",className:"open-map-modal-btn__btn",id:d,children:g.jsx(Ne,{icon:iw})}),g.jsxs(Bu,{end:!0,children:[g.jsx(Ue,{onClick:()=>f(),children:"Show all locations"}),g.jsx(Ue,{onClick:()=>f(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),g.jsx(Ir,{placement:"left",target:d,children:"Show in map"}),g.jsx(L$,{toggle:o,isOpen:r,title:e,locations:l})]})},Awe=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,a=s=>({active:i===s,onClick:()=>e({...t,orphanVisitsType:s===(t==null?void 0:t.orphanVisitsType)?void 0:s})});return g.jsxs(ga,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,"aria-hidden":!0,children:"Bots:"}),g.jsx(Ue,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsx(Ue,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),g.jsx(Ue,{...a("base_url"),children:"Base URL"}),g.jsx(Ue,{...a("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ue,{...a("regular_404"),children:"Regular 404"})]}),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsx(Ue,{disabled:!po(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:g.jsx("i",{children:"Clear filters"})})]})},j$=(e,t)=>!qu(e)&&po(e[t]),DN=e=>typeof e=="number"?e:e?parseFloat(e):0,Rwe=(e,{os:t})=>{e[t]=(e[t]||0)+1},Dwe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},Iwe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},M$=e=>(t,n)=>{const r=j$(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},Fwe=M$("country"),$we=M$("city"),Uwe=(e,t)=>{if(!j$(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[DN(r),DN(i)]};o.count+=1,e[n]=o},Bwe=(e,t)=>{if(!Cbe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},N$=e=>e.reduce((t,n)=>(Rwe(t.os,n),Dwe(t.browsers,n),Iwe(t.referrers,n),Fwe(t.countries,n),$we(t.cities,n),Uwe(t.citiesForMap,n),Bwe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),A$=V5(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,a={date:n,potentialBot:o,...qbe(t),referer:Zbe(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 fO(e)?{...a,type:e.type,visitedUrl:e.visitedUrl}:a}),zwe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:A$,processStatsFromVisits:N$},Symbol.toStringTag,{value:"Module"})),Kd=20,Vwe=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),Hwe=(e,t)=>t.filter(n=>Vwe(n,e)),Wwe=(e,t)=>QI(t,e),Ywe=(e,t,n)=>{const r=t?Hwe(t,e):[...e],i=Wwe(n,r),o=i.length;return{visitsGroups:_h(Kd,i),total:o}},Gwe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o,a;const s="visits-table__header-cell visits-table__sticky",l=U8(767,r),[c,d]=I.useState(void 0),[f,p]=I.useState({}),m=I.useMemo(()=>Ywe(e,c,f),[e,c,f]),[v,y]=I.useState(1),x=v*Kd,_=x-Kd,w=8+Number(i),S=O=>()=>p({field:O,dir:y0(O,f.field,f.dir)}),E=O=>g.jsx(Pf,{currentOrder:f,field:O,className:"visits-table__header-icon"});return I.useEffect(()=>{y(1),n([])},[c,n]),g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:`${s} text-center`,onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:[g.jsx("span",{className:"sr-only",children:"Is selected"}),g.jsx(Ne,{icon:Zf,className:Qe({"text-primary":t.length>0})})]}),g.jsxs("th",{className:`${s} text-center`,onClick:S("potentialBot"),children:[g.jsx("span",{className:"sr-only",children:"Is bot"}),g.jsx(Ne,{icon:cP}),E("potentialBot")]}),g.jsxs("th",{className:s,onClick:S("date"),children:["Date",E("date")]}),g.jsxs("th",{className:s,onClick:S("country"),children:["Country",E("country")]}),g.jsxs("th",{className:s,onClick:S("city"),children:["City",E("city")]}),g.jsxs("th",{className:s,onClick:S("browser"),children:["Browser",E("browser")]}),g.jsxs("th",{className:s,onClick:S("os"),children:["OS",E("os")]}),g.jsxs("th",{className:s,onClick:S("referer"),children:["Referrer",E("referer")]}),i&&g.jsxs("th",{className:s,onClick:S("visitedUrl"),children:["Visited URL",E("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:w,className:"p-0",children:g.jsx(Zh,{noBorder:!0,large:!1,onChange:d})})})]}),g.jsxs("tbody",{children:[!((o=m.visitsGroups[v-1])!=null&&o.length)&&g.jsx("tr",{children:g.jsx("td",{colSpan:w,className:"text-center",children:"No visits found with current filtering"})}),(a=m.visitsGroups[v-1])==null?void 0:a.map((O,k)=>{const j=t.includes(O);return g.jsxs("tr",{style:{cursor:"pointer"},className:Qe({"table-active":j}),onClick:()=>n(j?t.filter(R=>R!==O):[...t,O]),children:[g.jsx("td",{className:"text-center",children:j&&g.jsx(Ne,{icon:Zf,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:O.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ne,{icon:cP,id:`botIcon${k}`}),g.jsx(Ir,{placement:"right",target:`botIcon${k}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(uy,{date:O.date})}),g.jsx("td",{children:O.country}),g.jsx("td",{children:O.city}),g.jsx("td",{children:O.browser}),g.jsx("td",{children:O.os}),g.jsx("td",{children:O.referer}),i&&g.jsx("td",{children:O.visitedUrl})]},k)})]}),m.total>Kd&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:w,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(aO,{pagesCount:Math.ceil(m.total/Kd),currentPage:v,setCurrentPage:y,centered:l})}),g.jsx("div",{className:Qe("col-md-6",{"d-flex align-items-center flex-row-reverse":!l,"text-center mt-3":l}),children:g.jsxs("div",{children:["Visits ",g.jsx("b",{children:En(_+1)})," to"," ",g.jsx("b",{children:En(J5(x,m.total))})," of"," ",g.jsx("b",{children:En(m.total)})]})})]})})})})]})})},gc={byTime:{title:"By time",subPath:"by-time",icon:SY},byContext:{title:"By context",subPath:"by-context",icon:tE},byLocation:{title:"By location",subPath:"by-location",icon:iw},list:{title:"List",subPath:"list",icon:v4}};let Wm;const mp=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,exportCsv:i,isOrphanVisits:o=!1})=>{const{visits:a,loading:s,loadingLarge:l,error:c,errorData:d,progress:f,fallbackInterval:p}=t,[{dateRange:m,visitsFilter:v},y]=hwe(),x=Hl("visits"),_=Yr(({startDate:z,endDate:q})=>({dateRange:{startDate:z??void 0,endDate:q??void 0}}),y),w=I.useRef(m??p??(x==null?void 0:x.defaultInterval)??"last30Days"),[S,E]=I.useState([]),[O,k]=I.useState(),j=I.useRef(!0),{search:R}=Cn(),U=z=>z?`${z}${R}`:R,A=I.useMemo(()=>A$(a),[a]),{os:V,browsers:W,referrers:X,countries:G,cities:K,citiesForMap:ne,visitedUrls:le}=I.useMemo(()=>N$(A),[A]),Z=I.useMemo(()=>({...v,excludeBots:v.excludeBots??(x==null?void 0:x.excludeBots)}),[v,x==null?void 0:x.excludeBots]),F=Y5(ne),D=I.useCallback(z=>{Wm=void 0,E(z)},[]),H=I.useCallback((z,q)=>{const ie=`${z}_${q}`;Wm===ie?(E([]),k(void 0),Wm=void 0):(E(A.filter(mfe(z,q))),k(q),Wm=ie)},[A]);I.useEffect(()=>r,[r]),I.useEffect(()=>{const z=j.current?m??$me(w.current):m;n({dateRange:z,filter:Z},j.current),j.current=!1},[m,v]),I.useEffect(()=>{p&&w.current===((x==null?void 0:x.defaultInterval)??"last30Days")&&(w.current=p)},[p,x==null?void 0:x.defaultInterval]);const re=()=>l?g.jsxs(qo,{loading:!0,children:["This is going to take a while... :S",g.jsx(DI,{value:f,striped:f===100,className:"mt-3"})]}):s?g.jsx(qo,{loading:!0}):c?g.jsx(Wr,{type:"error",children:g.jsx(aa,{errorData:d,fallbackMessage:"An error occurred while loading visits :("})}):Qi(a)?g.jsx(qo,{children:"There are no visits matching current filter"}):g.jsxs(g.Fragment,{children:[g.jsx(KI,{fill:!0,children:Object.values(gc).map(({title:z,icon:q,subPath:ie},ae)=>g.jsxs(hf,{to:U(ie),replace:!0,children:[g.jsx(Ne,{icon:q}),g.jsx("span",{className:"ms-2 d-none d-sm-inline",children:z})]},ae))}),g.jsx(_r,{children:g.jsxs(r0,{children:[g.jsx(vt,{path:gc.byTime.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(rwe,{title:"Visits during time",visits:A,highlightedVisits:S,highlightedLabel:O,setSelectedVisits:D})})}),g.jsx(vt,{path:gc.byContext.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:Qe("mt-3 col-lg-6",{"col-xl-4":!o}),children:g.jsx(kN,{title:"Operating systems",stats:V})}),g.jsx("div",{className:Qe("mt-3 col-lg-6",{"col-xl-4":!o}),children:g.jsx(kN,{title:"Browsers",stats:W})}),g.jsx("div",{className:Qe("mt-3",{"col-xl-4":!o,"col-lg-6":o}),children:g.jsx(Hm,{title:"Referrers",stats:X,withPagination:!1,highlightedStats:zm(S,"referer"),highlightedLabel:O,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:z=>H("referer",z)})}),o&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(Hm,{title:"Visited URLs",stats:le,highlightedLabel:O,highlightedStats:zm(S,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:z=>H("visitedUrl",z)})})]})}),g.jsx(vt,{path:gc.byLocation.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(Hm,{title:"Countries",stats:G,highlightedStats:zm(S,"country"),highlightedLabel:O,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:z=>H("country",z)})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(Hm,{title:"Cities",stats:K,highlightedStats:zm(S,"city"),highlightedLabel:O,extraHeaderContent:z=>F.length>0&&g.jsx(Nwe,{modalTitle:"Cities",locations:F,activeCities:z}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:z=>H("city",z)})})]})}),g.jsx(vt,{path:gc.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(Gwe,{visits:A,selectedVisits:S,setSelectedVisits:D,isOrphanVisits:o})})}),g.jsx(vt,{path:"*",element:g.jsx(HS,{replace:!0,to:U(gc.byTime.subPath)})})]})})]});return g.jsxs(g.Fragment,{children:[e,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(DF,{updatable:!0,disabled:s,initialDateRange:w.current,defaultText:"All visits",onDatesChange:_})}),g.jsx(Awe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:o,selected:Z,onChange:z=>y({visitsFilter:z})})]})}),a.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(eF,{className:"btn-md-block",amount:A.length,onClick:()=>i(A)}),g.jsxs(yt,{outline:!0,disabled:S.length===0,className:"btn-md-block ms-2",onClick:()=>D([]),children:["Clear selection ",S.length>0&&g.jsxs(g.Fragment,{children:["(",En(S.length),")"]})]})]})})]})}),g.jsx("section",{className:"mt-3",children:re()})]})},R$=Ts(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Qt(R$),i=Zu(),{domain:o=""}=Fl(),[a,s=a]=o.split("_");return g.jsx(mp,{getVisits:(l,c)=>e({domain:s,query:fp(l),doIntervalFallback:c}),cancelGetVisits:n,visitsInfo:t,exportCsv:l=>r.exportVisits(`domain_${a}_visits.csv`,l),children:g.jsx(hp,{goBack:i,visits:t.visits,title:`"${a}" visits`})})},()=>[vi.visits]),qwe=Xt(R$,["ReportExporter"]),D$=Ts(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Qt(D$),i=Zu();return g.jsx(mp,{getVisits:(o,a)=>e({query:fp(o),doIntervalFallback:a}),cancelGetVisits:n,visitsInfo:t,exportCsv:o=>r.exportVisits("non_orphan_visits.csv",o),children:g.jsx(hp,{title:"Non-orphan visits",goBack:i,visits:t.visits})})},()=>[vi.visits]),Zwe=Xt(D$,["ReportExporter"]),I$=Ts(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n})=>{const{ReportExporter:r}=Qt(I$),i=Zu();return g.jsx(mp,{getVisits:(o,a)=>{var s;return e({query:fp(o),orphanVisitsType:(s=o.filter)==null?void 0:s.orphanVisitsType,doIntervalFallback:a})},cancelGetVisits:n,visitsInfo:t,exportCsv:o=>r.exportVisits("orphan_visits.csv",o),isOrphanVisits:!0,children:g.jsx(hp,{title:"Orphan visits",goBack:i,visits:t.visits})})},()=>[vi.orphanVisits]),Kwe=Xt(I$,["ReportExporter"]),F$="shlink/orphanVisits",Qwe={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Xwe=e=>sp({typePrefix:`${F$}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1})=>{const r=e(),i=async(a,s)=>r.getNonOrphanVisits({...t,page:a,itemsPerPage:s}),o=lp(n,a=>r.getNonOrphanVisits(a));return[i,o]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),Jwe=e=>cp({name:F$,initialState:Qwe,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>ip(o.date,r,i))}}),$$="shlink/orphanVisits",exe={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},txe=(e,t)=>!t||t===e.type,nxe=e=>sp({typePrefix:`${$$}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getOrphanVisits({...n,page:s,itemsPerPage:l}).then(c=>{const d=c.data.filter(f=>fO(f)&&txe(f,t));return{...c,data:d}}),a=lp(r,s=>i.getOrphanVisits(s));return[o,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),rxe=e=>cp({name:$$,initialState:exe,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:a})=>!a&&ip(o.date,r,i))}}),U$="shlink/shortUrlVisits",ixe={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},oxe=e=>sp({typePrefix:`${U$}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getShortUrlVisits(t,{...n,page:s,itemsPerPage:l}),a=lp(r,async s=>i.getShortUrlVisits(t,{...s,domain:n.domain}));return[o,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),axe=e=>cp({name:U$,initialState:ixe,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:a}=r;return i.filter(({shortUrl:s,visit:l})=>s&&Tf(s,t,n)&&ip(l.date,o,a))}}),B$="shlink/tagVisits",sxe={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},lxe=e=>sp({typePrefix:`${B$}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getTagVisits(t,{...n,page:s,itemsPerPage:l}),a=lp(r,async s=>i.getTagVisits(t,s));return[o,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),cxe=e=>cp({name:B$,initialState:sxe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>(a==null?void 0:a.tags.includes(t))&&ip(s.date,i,o))}}),z$="shlink/visitsOverview",Ym={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},IN=e=>e.filter(({visit:t})=>t.potentialBot).length,uxe=e=>Dr(`${z$}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),dxe=e=>dr({name:z$,initialState:Ym,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Ym,loading:!0})),t.addCase(e.rejected,()=>({...Ym,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Ym,...r})),t.addCase(ap,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=kbe(o.createdVisits),l=a.length,c=IN(a),d=l-c,f=s.length,p=IN(s),m=f-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+d},orphanVisits:{total:r.total+f,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}}),fxe=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,a=(r==null?void 0:r.shortUrl)??"",s=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return g.jsxs(hp,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Zo,{href:a})]}),goBack:n,visits:o,shortUrl:r,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",(()=>r?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(uy,{date:r.dateCreated,relative:!0})}),g.jsx(Ir,{placement:"bottom",target:"created",children:g.jsx(uy,{date:r.dateCreated})})]}):g.jsx("small",{children:"Loading..."}))()]}),g.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&g.jsx("small",{children:"Loading..."}),!i&&g.jsx(Zo,{href:s,children:l??s})]})]})},V$=Ts(({shortUrlVisits:e,shortUrlDetail:t,getShortUrlVisits:n,getShortUrlDetail:r,cancelGetShortUrlVisits:i})=>{const{ReportExporter:o}=Qt(V$),{shortCode:a=""}=Fl(),{search:s}=Cn(),l=Zu(),{domain:c}=Yu(s),d=(p,m)=>n({shortCode:xg(a),query:{...fp(p),domain:c},doIntervalFallback:m}),f=p=>{var m;return o.exportVisits(`short-url_${(m=t.shortUrl)==null?void 0:m.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,p)};return I.useEffect(()=>{r({shortCode:xg(a),domain:c})},[c,r,a]),g.jsx(mp,{getVisits:d,cancelGetVisits:i,visitsInfo:e,exportCsv:f,children:g.jsx(fxe,{shortUrlDetail:t,shortUrlVisits:e,goBack:l})})},e=>e.shortCode?[vi.shortUrlVisits(xg(e.shortCode))]:[]),hxe=Xt(V$,["ReportExporter"]),pxe=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return g.jsx(hp,{title:g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx(YT,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},H$=Ts(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Qt(H$),o=Zu(),{tag:a=""}=Fl();return g.jsx(mp,{getVisits:(s,l)=>e({tag:a,query:fp(s),doIntervalFallback:l}),cancelGetVisits:n,visitsInfo:t,exportCsv:s=>i.exportVisits(`tag_${a}_visits.csv`,s),children:g.jsx(pxe,{tagVisits:t,goBack:o,colorGenerator:r})})},()=>[vi.visits]),mxe=Xt(H$,["ColorGenerator","ReportExporter"]),gxe=(e,t)=>{e.serviceFactory("MapModal",()=>L$),e.factory("ShortUrlVisits",hxe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",mxe),e.decorator("TagVisits",t(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.factory("DomainVisits",qwe),e.decorator("DomainVisits",t(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.factory("OrphanVisits",Kwe),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.factory("NonOrphanVisits",Zwe),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>zwe),e.serviceFactory("getShortUrlVisits",oxe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",mt("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",lxe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",mt("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",Vme,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",mt("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",nxe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",mt("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",Xwe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",mt("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>ap),e.serviceFactory("loadVisitsOverview",uxe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",dxe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",mt("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Hme,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",mt("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",Jwe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",mt("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",rxe,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",mt("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",axe,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",mt("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",cxe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",mt("reducer"),"tagVisitsReducerCreator")},Rd=({children:e,to:t,className:n,...r})=>g.jsx(qD,{className:({isActive:i})=>Qe("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),vxe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Cn(),r=Qe("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return g.jsx("aside",{className:r,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(Rd,{to:i("/overview"),children:[g.jsx(Ne,{fixedWidth:!0,icon:JY}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(Rd,{to:i("/list-short-urls/1"),className:Qe({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[g.jsx(Ne,{fixedWidth:!0,icon:v4}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(Rd,{to:i("/create-short-url"),children:[g.jsx(Ne,{fixedWidth:!0,icon:iG,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(Rd,{to:i("/manage-tags"),children:[g.jsx(Ne,{fixedWidth:!0,icon:y4}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(Rd,{to:i("/manage-domains"),children:[g.jsx(Ne,{fixedWidth:!0,icon:NY}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},W$=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:l,Overview:c,EditShortUrl:d,ManageDomains:f}=Qt(W$),p=Cn(),m=zl(),[v,y,x,_]=On();I.useEffect(()=>_(),[p,_]);const w=rp("domainVisits"),S=Qe("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":v}),E=ige(x,_);return g.jsxs(g.Fragment,{children:[g.jsx(Ne,{icon:kY,className:S,onClick:y}),g.jsx("div",{...E,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(vxe,{routePrefix:m,showOnMobile:v}),g.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>_(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(r0,{children:[g.jsx(vt,{index:!0,element:g.jsx(HS,{replace:!0,to:"overview"})}),g.jsx(vt,{path:"/overview",element:g.jsx(c,{})}),g.jsx(vt,{path:"/list-short-urls/:page",element:g.jsx(n,{})}),g.jsx(vt,{path:"/create-short-url",element:g.jsx(r,{})}),g.jsx(vt,{path:"/short-code/:shortCode/visits/*",element:g.jsx(i,{})}),g.jsx(vt,{path:"/short-code/:shortCode/edit",element:g.jsx(d,{})}),g.jsx(vt,{path:"/tag/:tag/visits/*",element:g.jsx(o,{})}),w&&g.jsx(vt,{path:"/domain/:domain/visits/*",element:g.jsx(a,{})}),g.jsx(vt,{path:"/orphan-visits/*",element:g.jsx(s,{})}),g.jsx(vt,{path:"/non-orphan-visits/*",element:g.jsx(l,{})}),g.jsx(vt,{path:"/manage-tags",element:g.jsx(t,{})}),g.jsx(vt,{path:"/manage-domains",element:g.jsx(f,{})}),e&&g.jsx(vt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},yxe=Xt(W$,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"]),_xe=!0,bxe=e=>O6({devTools:!_xe,reducer:KE({mercureInfo:e.mercureInfoReducer,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,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),wxe=e=>{e.factory("Main",yxe),e.factory("store",bxe)},Po=new Due,{container:xxe}=Po,Sxe=(e,t)=>(...n)=>e[t](...n),Exe=(e,t)=>({...e,[t]:Sxe(xxe,t)}),gp=(e,t=[])=>DD(e?e8(e):null,t.reduce(Exe,{}));wxe(Po);z0e(Po,gp);l1e(Po,gp);gxe(Po,gp);vge(Po);pge(Po,gp);jge(Po,gp);Obe(Po);let FN;const Txe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=Afe(t),l=I.useRef(),[c,d]=I.useState(),f=Il(),[p,m]=I.useMemo(()=>f?[I.Fragment,{}]:[GD,{basename:i}],[f,i]);return I.useEffect(()=>{FN=n,e.value("apiClientFactory",()=>FN),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:y,store:x,loadMercureInfo:_,listTags:w}=v;l.current=g.jsx(y,{createNotFound:o}),d(x),x.dispatch(_(r)),x.dispatch(w())},[n,o,r,a]),c?g.jsx(ID,{store:c,children:g.jsx(Pge,{value:r,children:g.jsx(Rfe,{value:s,children:g.jsx(Dfe,{value:i,children:g.jsx(p,{...m,children:l.current})})})})}):g.jsx(g.Fragment,{})},Oxe="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=",Cxe="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==",kxe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Pxe=()=>{delete RN.Icon.Default.prototype._getIconUrl,RN.Icon.Default.mergeOptions({iconRetinaUrl:Cxe,iconUrl:Oxe,shadowUrl:kxe})};Pxe();const Lxe=Txe(Po);function gy(e){return t=>{const{resetSelectedServer:n}=t;return I.useEffect(()=>{n()},[n]),g.jsx(e,{...t})}}let jxe=class extends I.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return g.jsx("div",{className:"home",children:g.jsxs(yn,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(yt,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const Y$=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e});const Mxe=({id:e,name:t})=>g.jsxs(zI,{tag:Ft,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ne,{icon:cG,className:"servers-list__server-item-icon"})]}),G$=({servers:e,children:t,embedded:n=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&g.jsx($I,{"data-testid":"list",tag:"div",className:Ve("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>g.jsx(Mxe,{id:r,name:i},r))})]}),q$=({color:e=RE,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),g.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),g.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),g.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const Nxe=({servers:e})=>{const t=Co(),n=QS(e),r=!u4(n);return I.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),g.jsx("div",{className:"home",children:g.jsx(Kr,{className:"home__main-card",children:g.jsxs(_r,{className:"g-0",children:[g.jsx("div",{className:"col-md-5 d-none d-md-block",children:g.jsx("div",{className:"home__logo-wrapper",children:g.jsx("div",{className:"home__logo",children:g.jsx(q$,{})})})}),g.jsxs("div",{className:"col-md-7 home__servers-container",children:[g.jsx("div",{className:"home__title-wrapper",children:g.jsx("h1",{className:"home__title",children:"Welcome!"})}),g.jsx(G$,{embedded:!0,servers:n,children:!r&&g.jsxs("div",{className:"p-4 text-center",children:[g.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{children:g.jsxs(Ft,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ne,{icon:rE})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0 mt-5",children:g.jsx(Y$,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",g.jsx(Ne,{icon:HY})]})})})]})})]})]})})})};const Z$=()=>{const{ServersDropdown:e}=Ci(Z$),[t,n,,r]=On(),i=Cn(),{pathname:o}=i;I.useEffect(r,[i,r]);const a="/settings",s=Ve("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(oI,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(aI,{tag:Ft,to:"/",children:[g.jsx(q$,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(sI,{onClick:n,children:g.jsx(Ne,{icon:sG,className:s})}),g.jsx(aJ,{navbar:!0,isOpen:t,children:g.jsxs(_E,{navbar:!0,className:"ms-auto",children:[g.jsx(bE,{children:g.jsxs(uI,{tag:Ft,to:a,active:o.startsWith(a),children:[g.jsx(Ne,{icon:hG})," Settings"]})}),g.jsx(e,{})]})})]})},Axe=ki(Z$,["ServersDropdown"]),Rxe=({children:e})=>{const t=Cn();return I.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},Dxe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,$N=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Dxe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},UN=e=>e==="*"||e==="x"||e==="X",BN=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Ixe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Fxe=(e,t)=>{if(UN(e)||UN(t))return 0;const[n,r]=Ixe(BN(e),BN(t));return n>r?1:n<r?-1:0},zN=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Fxe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},$xe=(e,t)=>{const n=$N(e),r=$N(t),i=n.pop(),o=r.pop(),a=zN(n,r);return a!==0?a:i&&o?zN(i.split("."),o.split(".")):i||o?i?-1:1:0},Uxe=(e,t,n)=>{Bxe(n);const r=$xe(e,t);return K$[n].includes(r)},K$={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},VN=Object.keys(K$),Bxe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(VN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${VN.join("|")}`)},Q$=d4(c4,e=>{try{return Uxe(e,e,"=")}catch{return!1}}),X$=e=>Q$(e)?`v${e}`:e,J$=(e="latest")=>t=>Q$(t)?t:e,zxe="%_VERSION_%",Vxe=s0(J$(),X$),HN=({project:e,version:t})=>g.jsx(Y$,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),Hxe=({selectedServer:e,clientVersion:t=zxe})=>{const n=Vxe(t);return g.jsxs("small",{className:"text-muted",children:[m4(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(HN,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(HN,{project:"shlink-web-client",version:n})]})};const Wxe=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,Yxe=({selectedServer:e})=>{const{pathname:t}=Cn(),n=I.useMemo(()=>Wxe.test(t),[t]),r=Ve("text-center",{"shlink-versions-container--with-sidebar":n});return g.jsx("div",{className:r,children:g.jsx(Hxe,{selectedServer:e})})};const Xu=({children:e})=>g.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function eU(e){const t=n=>{const{ServerError:r}=Ci(t),i=Fl(),{selectServer:o,selectedServer:a}=n;return I.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?mY(a)?g.jsx(r,{}):g.jsx(e,{...n}):g.jsx(Xu,{children:g.jsx(qo,{loading:!0})})};return t}const tU=eU(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Ci(tU),a=m4(e),s=a?`/server/${e.id}`:"";return a?g.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:s,tagColorsStorage:r,createNotFound:l=>g.jsx(m6,{to:`${s}${l}`,children:"List short URLs"})}):g.jsx(o,{})}),Gxe=ki(tU,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),qxe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",noe,"fetch"),e.serviceFactory("ScrollToTop",()=>Rxe),e.factory("MainHeader",Axe),e.serviceFactory("Home",()=>Nxe),e.decorator("Home",gy),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>Lxe),e.factory("ShlinkWebComponentContainer",Gxe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>Yxe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>jxe)};let Gm;const Zxe=new Uint8Array(16);function Kxe(){if(!Gm&&(Gm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gm(Zxe)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function Qxe(e,t=0){return Kn[e[t+0]]+Kn[e[t+1]]+Kn[e[t+2]]+Kn[e[t+3]]+"-"+Kn[e[t+4]]+Kn[e[t+5]]+"-"+Kn[e[t+6]]+Kn[e[t+7]]+"-"+Kn[e[t+8]]+Kn[e[t+9]]+"-"+Kn[e[t+10]]+Kn[e[t+11]]+Kn[e[t+12]]+Kn[e[t+13]]+Kn[e[t+14]]+Kn[e[t+15]]}const Xxe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),WN={randomUUID:Xxe};function nU(e,t,n){if(WN.randomUUID&&!t&&!e)return WN.randomUUID();e=e||{};const r=e.random||(e.rng||Kxe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Qxe(r)}const rU=()=>{const e=Co();return I.useCallback(()=>e(-1),[e])},Jxe=()=>{const{search:e}=Cn();return I.useMemo(()=>Yu(e),[e])},iU=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return g.jsxs(pa,{centered:!0,isOpen:e,children:[g.jsxs(ma,{children:["Duplicated server",i&&"s"]}),g.jsxs(ko,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:a})]},s):g.jsxs(I.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:a})]})]},s))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs($l,{children:[g.jsx(yt,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),g.jsx(yt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},e2e=e=>s0(t=>t.preventDefault(),e),oU=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=I.useState(""),[a,s]=I.useState(""),[l,c]=I.useState(""),d=e2e(()=>e({name:i,url:a,apiKey:l}));return I.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&c(t.apiKey)},[t]),g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:d,children:[g.jsxs(yn,{className:"mb-3",title:r,children:[g.jsx(dg,{value:i,onChange:o,children:"Name"}),g.jsx(dg,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(dg,{value:l,onChange:c,children:"API key"})]}),g.jsx("div",{className:"text-end",children:n})]})},YN=4e3,GN=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Wr,{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."]})}),aU=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Ci(aU),i=Co(),o=rU(),a=!!Object.keys(e).length,[s,l]=r(!1,YN),[c,d]=r(!1,YN),[f,p]=On(),[m,v]=I.useState(),y=I.useCallback(x=>{const _=nU();t([{...x,id:_}]),i(`/server/${_}`)},[t,i]);return I.useEffect(()=>{if(!m)return;Object.values(e).some(({url:_,apiKey:w})=>(m==null?void 0:m.url)===_&&(m==null?void 0:m.apiKey)===w)?p():y(m)},[y,m,e,p]),g.jsxs(Xu,{children:[g.jsxs(oU,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&g.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:d}),a&&g.jsx(yt,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(yt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&g.jsx(GN,{type:"success"}),c&&g.jsx(GN,{type:"error"}),g.jsx(iU,{isOpen:f,duplicatedServers:m?[m]:[],onDiscard:o,onSave:()=>m&&y(m)})]})},t2e=ki(aU,["ImportServersBtn","useTimeoutToggle"]),sU=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Ci(sU),[o,,a,s]=On();return g.jsxs(g.Fragment,{children:[g.jsxs("button",{type:"button",className:Ve(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&g.jsx(Ne,{fixedWidth:!0,icon:JS}),g.jsx("span",{className:r,children:n??"Remove this server"})]}),g.jsx(i,{server:e,isOpen:o,toggle:s})]})},n2e=ki(sU,["DeleteServerModal"]),r2e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Co(),a=I.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return g.jsxs(pa,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[g.jsx(ma,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(ko,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),g.jsxs($l,{children:[g.jsx(yt,{color:"link",onClick:t,children:"Cancel"}),g.jsx(yt,{color:"danger",onClick:s,children:"Delete"})]})]})},i2e=eU(({editServer:e,selectedServer:t,selectServer:n})=>{const r=rU(),{reconnect:i}=Jxe();if(!sf(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return g.jsx(Xu,{children:g.jsxs(oU,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[g.jsx(yt,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),g.jsx(yt,{outline:!0,color:"primary",children:"Save"})]})})}),o2e=ki(i2e,["ServerError"]),qN=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),lU=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Ci(lU),l=xs(),[c,d]=I.useState([]),[f,,p,m]=On(),v=I.useRef([]),y=I.useCallback(S=>{e(S),r()},[e,r]),x=I.useCallback(async({target:S})=>{var E;return s.importServersFromFile((E=S.files)==null?void 0:E[0]).then(O=>{v.current=O;const k=Object.values(t),j=O.filter(qN(k)),R=!!j.length;R?d(j):y(O),R&&p()}).then(()=>{S.value=null}).catch(i)},[y,i,t,s,p]),_=I.useCallback(()=>{y(v.current),m()},[y,m,v]),w=I.useCallback(()=>{y(v.current.filter(CW(qN(c)))),m()},[y,c,m]);return g.jsxs(g.Fragment,{children:[g.jsxs(yt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var S;return(S=l.current)==null?void 0:S.click()},children:[g.jsx(Ne,{icon:DY,fixedWidth:!0})," ",n??"Import from file"]}),g.jsxs(Ir,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"})," columns."]}),g.jsx("input",{type:"file",accept:"text/csv",className:"d-none",ref:l,onChange:x,"aria-hidden":!0}),g.jsx(iU,{isOpen:f,duplicatedServers:c,onDiscard:w,onSave:_})]})},a2e=ki(lU,["ServersImporter"]);const cU=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Ci(cU);return g.jsx(Xu,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(qo,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!sf(t)&&"Could not find this Shlink server.",sf(t)&&g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),g.jsx(G$,{servers:Object.values(e),children:g.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Ft,{to:"/server/create",children:"add a new one"}),"."]})}),sf(t)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Ft,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},s2e=ki(cU,["DeleteServerButton"]),l2e=4e3,uU=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Ci(uU),o=Object.values(e),[a,s]=I.useState(o),l=p=>s(o.filter(({name:m,url:v})=>`${m} ${v}`.toLowerCase().match(p.toLowerCase()))),c=a.some(({autoConnect:p})=>!!p),[d,f]=r(!1,l2e);return I.useEffect(()=>{s(Object.values(e))},[e]),g.jsxs(Xu,{children:[g.jsx(Zh,{className:"mb-3",onChange:l}),g.jsxs(_r,{className:"mb-3",children:[g.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[g.jsx(n,{className:"flex-fill",onImportError:f,children:"Import servers"}),o.length>0&&g.jsxs(yt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[g.jsx(Ne,{icon:b4,fixedWidth:!0})," Export servers"]})]}),g.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:g.jsxs(yt,{outline:!0,color:"primary",className:"flex-fill",tag:Ft,to:"/server/create",children:[g.jsx(Ne,{icon:rE,fixedWidth:!0})," Add a server"]})})]}),g.jsx(yn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[c&&g.jsx("th",{style:{width:"50px"},children:g.jsx("span",{className:"sr-only",children:"Auto-connect"})}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{children:g.jsx("span",{className:"sr-only",children:"Options"})})]})}),g.jsxs("tbody",{children:[!a.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>g.jsx(i,{server:p,hasAutoConnect:c},p.id))]})]})}),d&&g.jsx("div",{className:"mt-3",children:g.jsx(Wr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},c2e=ki(uU,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),dU=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Ci(dU);return g.jsxs("tr",{className:"responsive-table__row",children:[t&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(Ne,{icon:Zf,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Ir,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Ft,{to:`/server/${e.id}`,children:e.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(n,{server:e})})]})},u2e=ki(dU,["ManageServersRowDropdown"]),fU=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Ci(fU),[r,,i,o]=On(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?AY:soe;return g.jsxs(v0,{minWidth:170,children:[g.jsxs(Ue,{tag:Ft,to:a,children:[g.jsx(Ne,{icon:MY,fixedWidth:!0})," Connect"]}),g.jsxs(Ue,{tag:Ft,to:`${a}/edit`,children:[g.jsx(Ne,{icon:eE,fixedWidth:!0})," Edit server"]}),g.jsxs(Ue,{onClick:()=>t(e,!s),children:[g.jsx(Ne,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(Ne,{icon:JS,fixedWidth:!0})," Remove server"]}),g.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},d2e=ki(fU,["DeleteServerModal"]),hU=(e,t)=>k6(e,t,{serializeError:c4}),f2e={},h2e=e=>e.id?e:lv("id",nU(),e),p2e=s4((e,t)=>lv(t.id,t,e),{}),{actions:m2e,reducer:g2e}=dr({name:"shlink/servers",initialState:f2e,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?lv(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>UW(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?HW(iY(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):lv(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:s0(KS(h2e),p2e,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:v2e,deleteServer:y2e,setAutoConnect:_2e,createServers:pU}=m2e,b2e=g2e,w2e=e=>Array.isArray(e)?e.filter(p4):[],x2e=e=>hU("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${ov.homepage}/servers.json`),i=w2e(r);n(pU(i))}),_O="shlink/selectedServer",S2e="1.0.0",E2e="999.999.999",T2e="latest",O2e=s0(e=>e===T2e?E2e:e,J$(S2e)),C2e=d4(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:O2e(n),printableVersion:X$(n)}))),ZN=null,bO=In(`${_O}/resetSelectedServer`),k2e=e=>hU(`${_O}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(bO());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await C2e(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),P2e=e=>dr({name:_O,initialState:ZN,reducers:{},extraReducers:t=>{t.addCase(bO,()=>ZN),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),L2e=({servers:e,selectedServer:t})=>{const n=QS(e),r=()=>u4(n)?g.jsxs(Ue,{tag:Ft,to:"/server/create",children:[g.jsx(Ne,{icon:rE})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:i,id:o})=>g.jsx(Ue,{tag:Ft,to:`/server/${o}`,active:gY(t)===o,children:i},o)),g.jsx(Ue,{divider:!0,tag:"hr"}),g.jsxs(Ue,{tag:Ft,to:"/manage-servers",children:[g.jsx(Ne,{icon:sP})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(qh,{nav:!0,inNavbar:!0,children:[g.jsxs(zu,{nav:!0,caret:!0,children:[g.jsx(Ne,{icon:sP})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(Bu,{end:!0,style:{right:0},children:r()})]})},j2e=({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)},M2e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);j2e(e,i,n)},N2e="shlink-servers.csv";class A2e{constructor(t,n,r){Fp(this,"exportServers",async()=>{const t=QS(this.storage.get("servers")??{}).map(vY);try{const n=this.jsonToCsv(t);M2e(this.window,n,N2e)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const R2e=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",D2e=e=>Array.isArray(e)&&e.every(R2e);class I2e{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!D2e(r))throw new Error("Provided file does not have the right format.");return r}}const F2e=(e,t)=>{e.factory("ManageServers",c2e),e.decorator("ManageServers",gy),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",u2e),e.factory("ManageServersRowDropdown",d2e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",t2e),e.decorator("CreateServer",gy),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",o2e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>L2e),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>r2e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",n2e),e.factory("ImportServersBtn",a2e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",s2e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",I2e,"csvToJson"),e.service("ServersExporter",A2e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",k2e,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>pU),e.serviceFactory("deleteServer",()=>y2e),e.serviceFactory("editServer",()=>v2e),e.serviceFactory("setAutoConnect",()=>_2e),e.serviceFactory("fetchServers",x2e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>bO),e.serviceFactory("selectedServerReducerCreator",P2e,"selectServer"),e.serviceFactory("selectedServerReducer",hW("reducer"),"selectedServerReducerCreator")},Jc=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),$2e=e=>e?`${e}`:"",U2e=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=g0();return g.jsxs(yn,{title:"Real-time updates",className:"h-100",children:[g.jsx(Vr,{children:g.jsxs(yu,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",g.jsxs(Jc,{children:["Real-time updates are currently being ",g.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),g.jsxs(Hu,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Ve("form-label",{"text-muted":!r.enabled}),id:i,children:[g.jsx(El,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:$2e(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&g.jsxs(Jc,{children:[r.interval!==void 0&&r.interval>0&&g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},mU={field:"dateCreated",dir:"DESC"},B2e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:mU}},z2e=(e,{payload:t})=>XW(e,t),$s=e=>({reducer:z2e,prepare:e}),Us=e=>({payload:e}),{reducer:V2e,actions:H2e}=dr({name:"shlink/settings",initialState:B2e,reducers:{toggleRealTimeUpdates:$s(e=>Us({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:$s(e=>Us({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:$s(e=>Us({shortUrlCreation:e})),setShortUrlsListSettings:$s(e=>Us({shortUrlsList:e})),setUiSettings:$s(e=>Us({ui:e})),setVisitsSettings:$s(e=>Us({visits:e})),setTagsSettings:$s(e=>Us({tags:e}))}}),{toggleRealTimeUpdates:W2e,setRealTimeUpdatesInterval:Y2e,setShortUrlCreationSettings:G2e,setShortUrlsListSettings:q2e,setUiSettings:Z2e,setVisitsSettings:K2e,setTagsSettings:Q2e}=H2e,X2e=V2e,tb=({items:e})=>g.jsx(g.Fragment,{children:e.map((t,n)=>g.jsx("div",{className:"mb-3",children:t},n))}),gU=()=>{const{RealTimeUpdatesSettings:e,ShortUrlCreationSettings:t,ShortUrlsListSettings:n,UserInterfaceSettings:r,VisitsSettings:i,TagsSettings:o}=Ci(gU);return g.jsxs(Xu,{children:[g.jsxs(KI,{className:"mb-3",children:[g.jsx(hf,{to:"general",children:"General"}),g.jsx(hf,{to:"short-urls",children:"Short URLs"}),g.jsx(hf,{to:"other-items",children:"Other items"})]}),g.jsxs(r0,{children:[g.jsx(vt,{path:"general",element:g.jsx(tb,{items:[g.jsx(r,{}),g.jsx(e,{})]})}),g.jsx(vt,{path:"short-urls",element:g.jsx(tb,{items:[g.jsx(t,{}),g.jsx(n,{})]})}),g.jsx(vt,{path:"other-items",element:g.jsx(tb,{items:[g.jsx(o,{}),g.jsx(i,{})]})}),g.jsx(vt,{path:"*",element:g.jsx(HS,{replace:!0,to:"general"})})]})]})},J2e=ki(gU,["RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"]),nb=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",eSe=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),tSe=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return g.jsxs(yn,{title:"Short URLs form",className:"h-100",children:[g.jsx(Vr,{children:g.jsxs(yu,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",g.jsxs(Jc,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),g.jsx(Vr,{children:g.jsxs(yu,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(Jc,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),g.jsxs(Hu,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(ga,{text:nb(n.tagFilteringMode),children:[g.jsx(Ue,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:nb("startsWith")}),g.jsx(Ue,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:nb("includes")})]}),g.jsx(Jc,{children:eSe(n.tagFilteringMode)})]})]})},nSe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},rSe=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>g.jsx(yn,{title:"Short URLs list",className:"h-100",children:g.jsx(Hu,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(Kh,{items:nSe,order:(e==null?void 0:e.defaultOrdering)??mU,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),iSe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},oSe=({settings:{tags:e},setTagsSettings:t})=>g.jsx(yn,{title:"Tags",className:"h-100",children:g.jsx(Hu,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(Kh,{items:iSe,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const aSe=({settings:{ui:e},setUiSettings:t})=>g.jsxs(yn,{title:"User interface",className:"h-100",children:[g.jsx(Ne,{icon:(e==null?void 0:e.theme)==="dark"?mG:rG,className:"user-interface__theme-icon"}),g.jsx(yu,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{t({...e,theme:n?"dark":"light"})},children:"Use dark theme."})]}),vU={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},sSe=(e,t)=>!e||e==="all"?t:vU[e],lSe=({onChange:e,active:t,allText:n})=>g.jsxs(ga,{text:sSe(t,n),children:[g.jsx(Ue,{active:t==="all",onClick:()=>e("all"),children:n}),g.jsx(Ue,{divider:!0}),Object.entries(vU).map(([r,i])=>g.jsx(Ue,{active:t===r,onClick:()=>e(r),children:i},r))]}),KN=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},cSe=({settings:e,setVisitsSettings:t})=>{var n,r;return g.jsxs(yn,{title:"Visits",className:"h-100",children:[g.jsx(Vr,{children:g.jsxs(yu,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:KN(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",g.jsxs(Jc,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(Hu,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(lSe,{allText:"All visits",active:KN(e),onChange:i=>t({defaultInterval:i})})})]})},uSe=(e,t)=>{e.factory("Settings",J2e),e.decorator("Settings",gy),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>U2e),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>tSe),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>aSe),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>cSe),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>oSe),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>rSe),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>W2e),e.serviceFactory("setRealTimeUpdatesInterval",()=>Y2e),e.serviceFactory("setShortUrlCreationSettings",()=>G2e),e.serviceFactory("setShortUrlsListSettings",()=>q2e),e.serviceFactory("setUiSettings",()=>Z2e),e.serviceFactory("setVisitsSettings",()=>K2e),e.serviceFactory("setTagsSettings",()=>Q2e)};var dSe="Expected a function",yU="__lodash_hash_undefined__",_U=1/0,fSe="[object Function]",hSe="[object GeneratorFunction]",pSe="[object Symbol]",mSe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gSe=/^\w*$/,vSe=/^\./,ySe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_Se=/[\\^$.*+?()[\]{}|]/g,bSe=/\\(\\)?/g,wSe=/^\[object .+?Constructor\]$/,xSe=typeof $p=="object"&&$p&&$p.Object===Object&&$p,SSe=typeof self=="object"&&self&&self.Object===Object&&self,wO=xSe||SSe||Function("return this")();function ESe(e,t){return e==null?void 0:e[t]}function TSe(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var OSe=Array.prototype,CSe=Function.prototype,bU=Object.prototype,rb=wO["__core-js_shared__"],QN=function(){var e=/[^.]+$/.exec(rb&&rb.keys&&rb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wU=CSe.toString,xO=bU.hasOwnProperty,xU=bU.toString,kSe=RegExp("^"+wU.call(xO).replace(_Se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),XN=wO.Symbol,PSe=OSe.splice,LSe=SU(wO,"Map"),Mh=SU(Object,"create"),JN=XN?XN.prototype:void 0,eA=JN?JN.toString:void 0;function Ml(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 jSe(){this.__data__=Mh?Mh(null):{}}function MSe(e){return this.has(e)&&delete this.__data__[e]}function NSe(e){var t=this.__data__;if(Mh){var n=t[e];return n===yU?void 0:n}return xO.call(t,e)?t[e]:void 0}function ASe(e){var t=this.__data__;return Mh?t[e]!==void 0:xO.call(t,e)}function RSe(e,t){var n=this.__data__;return n[e]=Mh&&t===void 0?yU:t,this}Ml.prototype.clear=jSe;Ml.prototype.delete=MSe;Ml.prototype.get=NSe;Ml.prototype.has=ASe;Ml.prototype.set=RSe;function Ju(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 DSe(){this.__data__=[]}function ISe(e){var t=this.__data__,n=B0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():PSe.call(t,n,1),!0}function FSe(e){var t=this.__data__,n=B0(t,e);return n<0?void 0:t[n][1]}function $Se(e){return B0(this.__data__,e)>-1}function USe(e,t){var n=this.__data__,r=B0(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ju.prototype.clear=DSe;Ju.prototype.delete=ISe;Ju.prototype.get=FSe;Ju.prototype.has=$Se;Ju.prototype.set=USe;function Yl(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 BSe(){this.__data__={hash:new Ml,map:new(LSe||Ju),string:new Ml}}function zSe(e){return z0(this,e).delete(e)}function VSe(e){return z0(this,e).get(e)}function HSe(e){return z0(this,e).has(e)}function WSe(e,t){return z0(this,e).set(e,t),this}Yl.prototype.clear=BSe;Yl.prototype.delete=zSe;Yl.prototype.get=VSe;Yl.prototype.has=HSe;Yl.prototype.set=WSe;function B0(e,t){for(var n=e.length;n--;)if(nEe(e[n][0],t))return n;return-1}function YSe(e,t){t=KSe(t,e)?[t]:ZSe(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[eEe(t[n++])];return n&&n==r?e:void 0}function GSe(e){if(!TU(e)||XSe(e))return!1;var t=rEe(e)||TSe(e)?kSe:wSe;return t.test(tEe(e))}function qSe(e){if(typeof e=="string")return e;if(EO(e))return eA?eA.call(e):"";var t=e+"";return t=="0"&&1/e==-_U?"-0":t}function ZSe(e){return EU(e)?e:JSe(e)}function z0(e,t){var n=e.__data__;return QSe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function SU(e,t){var n=ESe(e,t);return GSe(n)?n:void 0}function KSe(e,t){if(EU(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||EO(e)?!0:gSe.test(e)||!mSe.test(e)||t!=null&&e in Object(t)}function QSe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function XSe(e){return!!QN&&QN in e}var JSe=SO(function(e){e=oEe(e);var t=[];return vSe.test(e)&&t.push(""),e.replace(ySe,function(n,r,i,o){t.push(i?o.replace(bSe,"$1"):r||n)}),t});function eEe(e){if(typeof e=="string"||EO(e))return e;var t=e+"";return t=="0"&&1/e==-_U?"-0":t}function tEe(e){if(e!=null){try{return wU.call(e)}catch{}try{return e+""}catch{}}return""}function SO(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(dSe);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 a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(SO.Cache||Yl),n}SO.Cache=Yl;function nEe(e,t){return e===t||e!==e&&t!==t}var EU=Array.isArray;function rEe(e){var t=TU(e)?xU.call(e):"";return t==fSe||t==hSe}function TU(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function iEe(e){return!!e&&typeof e=="object"}function EO(e){return typeof e=="symbol"||iEe(e)&&xU.call(e)==pSe}function oEe(e){return e==null?"":qSe(e)}function aEe(e,t,n){var r=e==null?void 0:YSe(e,t);return r===void 0?n:r}var sEe=aEe;const tA=ca(sEe);function ib(e){return e==null?"":`${e}`}function lEe(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function TO(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 cEe(e={stringFormatter:TO()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function uEe(e={stringFormatter:TO()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}function nA(e,t,n){const r=e[t];return r===void 0?n:r}function OU(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function D2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var rA;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(rA||(rA={}));class dEe{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||TO(),i=uEe({stringFormatter:r}),o={header:r,undefined:ib,boolean:ib,number:lEe(),bigint:ib,string:r,symbol:cEe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>tA(i,r,n):i=>nA(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?a=>tA(a,o,i):a=>nA(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const c=s(l,a);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return D2(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(OU,[]),[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 D2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class fEe extends dEe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(OU,[])}processData(t){return D2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var jn;(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"})(jn||(jn={}));jn.QUOTATION_MARK+"",jn.QUOTATION_MARK,jn.REVERSE_SOLIDUS+"",jn.REVERSE_SOLIDUS,jn.SOLIDUS+"",jn.SOLIDUS,jn.LATIN_SMALL_LETTER_B+"",jn.BACKSPACE,jn.LATIN_SMALL_LETTER_F+"",jn.FORM_FEED,jn.LATIN_SMALL_LETTER_N+"",jn.NEWLINE,jn.LATIN_SMALL_LETTER_R+"",jn.CARRIAGE_RETURN,jn.LATIN_SMALL_LETTER_T+"",jn.TAB;var iA;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(iA||(iA={}));var oA;(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"})(oA||(oA={}));var aA;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(aA||(aA={}));var sA;(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"})(sA||(sA={}));var hEe=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 a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));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(v){var y=[];for(var x in v)y.push(x);return y};e.exports=f;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(f,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var d=l[c];f.prototype[d]||(f.prototype[d]=s.prototype[d])}function f(v){if(!(this instanceof f))return new f(v);a.call(this,v),s.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(m,this)}function m(v){v.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),f.prototype._destroy=function(v,y){this.push(null),this.end(),r.nextTick(y,v)}},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),a=n(40);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(C,M){if(s()<M)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(C=new Uint8Array(M)).__proto__=c.prototype:(C===null&&(C=new c(M)),C.length=M),C}function c(C,M,$){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(C,M,$);if(typeof C=="number"){if(typeof M=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,C)}return d(this,C,M,$)}function d(C,M,$,J){if(typeof M=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer?function(ee,se,ge,Me){if(se.byteLength,ge<0||se.byteLength<ge)throw new RangeError("'offset' is out of bounds");if(se.byteLength<ge+(Me||0))throw new RangeError("'length' is out of bounds");return se=ge===void 0&&Me===void 0?new Uint8Array(se):Me===void 0?new Uint8Array(se,ge):new Uint8Array(se,ge,Me),c.TYPED_ARRAY_SUPPORT?(ee=se).__proto__=c.prototype:ee=m(ee,se),ee}(C,M,$,J):typeof M=="string"?function(ee,se,ge){if(typeof ge=="string"&&ge!==""||(ge="utf8"),!c.isEncoding(ge))throw new TypeError('"encoding" must be a valid string encoding');var Me=0|y(se,ge),ue=(ee=l(ee,Me)).write(se,ge);return ue!==Me&&(ee=ee.slice(0,ue)),ee}(C,M,$):function(ee,se){if(c.isBuffer(se)){var ge=0|v(se.length);return(ee=l(ee,ge)).length===0||se.copy(ee,0,0,ge),ee}if(se){if(typeof ArrayBuffer<"u"&&se.buffer instanceof ArrayBuffer||"length"in se)return typeof se.length!="number"||function(Me){return Me!=Me}(se.length)?l(ee,0):m(ee,se);if(se.type==="Buffer"&&a(se.data))return m(ee,se.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(C,M)}function f(C){if(typeof C!="number")throw new TypeError('"size" argument must be a number');if(C<0)throw new RangeError('"size" argument must not be negative')}function p(C,M){if(f(M),C=l(C,M<0?0:0|v(M)),!c.TYPED_ARRAY_SUPPORT)for(var $=0;$<M;++$)C[$]=0;return C}function m(C,M){var $=M.length<0?0:0|v(M.length);C=l(C,$);for(var J=0;J<$;J+=1)C[J]=255&M[J];return C}function v(C){if(C>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|C}function y(C,M){if(c.isBuffer(C))return C.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(C)||C instanceof ArrayBuffer))return C.byteLength;typeof C!="string"&&(C=""+C);var $=C.length;if($===0)return 0;for(var J=!1;;)switch(M){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return ie(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$;case"hex":return $>>>1;case"base64":return ae(C).length;default:if(J)return ie(C).length;M=(""+M).toLowerCase(),J=!0}}function x(C,M,$){var J=C[M];C[M]=C[$],C[$]=J}function _(C,M,$,J,ee){if(C.length===0)return-1;if(typeof $=="string"?(J=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=ee?0:C.length-1),$<0&&($=C.length+$),$>=C.length){if(ee)return-1;$=C.length-1}else if($<0){if(!ee)return-1;$=0}if(typeof M=="string"&&(M=c.from(M,J)),c.isBuffer(M))return M.length===0?-1:w(C,M,$,J,ee);if(typeof M=="number")return M&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(C,M,$):Uint8Array.prototype.lastIndexOf.call(C,M,$):w(C,[M],$,J,ee);throw new TypeError("val must be string, number or Buffer")}function w(C,M,$,J,ee){var se,ge=1,Me=C.length,ue=M.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(C.length<2||M.length<2)return-1;ge=2,Me/=2,ue/=2,$/=2}function me(Ce,je){return ge===1?Ce[je]:Ce.readUInt16BE(je*ge)}if(ee){var _e=-1;for(se=$;se<Me;se++)if(me(C,se)===me(M,_e===-1?0:se-_e)){if(_e===-1&&(_e=se),se-_e+1===ue)return _e*ge}else _e!==-1&&(se-=se-_e),_e=-1}else for($+ue>Me&&($=Me-ue),se=$;se>=0;se--){for(var Se=!0,ke=0;ke<ue;ke++)if(me(C,se+ke)!==me(M,ke)){Se=!1;break}if(Se)return se}return-1}function S(C,M,$,J){$=Number($)||0;var ee=C.length-$;J?(J=Number(J))>ee&&(J=ee):J=ee;var se=M.length;if(se%2!=0)throw new TypeError("Invalid hex string");J>se/2&&(J=se/2);for(var ge=0;ge<J;++ge){var Me=parseInt(M.substr(2*ge,2),16);if(isNaN(Me))return ge;C[$+ge]=Me}return ge}function E(C,M,$,J){return he(ie(M,C.length-$),C,$,J)}function O(C,M,$,J){return he(function(ee){for(var se=[],ge=0;ge<ee.length;++ge)se.push(255&ee.charCodeAt(ge));return se}(M),C,$,J)}function k(C,M,$,J){return O(C,M,$,J)}function j(C,M,$,J){return he(ae(M),C,$,J)}function R(C,M,$,J){return he(function(ee,se){for(var ge,Me,ue,me=[],_e=0;_e<ee.length&&!((se-=2)<0);++_e)Me=(ge=ee.charCodeAt(_e))>>8,ue=ge%256,me.push(ue),me.push(Me);return me}(M,C.length-$),C,$,J)}function U(C,M,$){return M===0&&$===C.length?i.fromByteArray(C):i.fromByteArray(C.slice(M,$))}function A(C,M,$){$=Math.min(C.length,$);for(var J=[],ee=M;ee<$;){var se,ge,Me,ue,me=C[ee],_e=null,Se=me>239?4:me>223?3:me>191?2:1;if(ee+Se<=$)switch(Se){case 1:me<128&&(_e=me);break;case 2:(192&(se=C[ee+1]))==128&&(ue=(31&me)<<6|63&se)>127&&(_e=ue);break;case 3:se=C[ee+1],ge=C[ee+2],(192&se)==128&&(192&ge)==128&&(ue=(15&me)<<12|(63&se)<<6|63&ge)>2047&&(ue<55296||ue>57343)&&(_e=ue);break;case 4:se=C[ee+1],ge=C[ee+2],Me=C[ee+3],(192&se)==128&&(192&ge)==128&&(192&Me)==128&&(ue=(15&me)<<18|(63&se)<<12|(63&ge)<<6|63&Me)>65535&&ue<1114112&&(_e=ue)}_e===null?(_e=65533,Se=1):_e>65535&&(_e-=65536,J.push(_e>>>10&1023|55296),_e=56320|1023&_e),J.push(_e),ee+=Se}return function(ke){var Ce=ke.length;if(Ce<=V)return String.fromCharCode.apply(String,ke);for(var je="",ce=0;ce<Ce;)je+=String.fromCharCode.apply(String,ke.slice(ce,ce+=V));return je}(J)}t.Buffer=c,t.SlowBuffer=function(C){return+C!=C&&(C=0),c.alloc(+C)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var C=new Uint8Array(1);return C.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},C.foo()===42&&typeof C.subarray=="function"&&C.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(C){return C.__proto__=c.prototype,C},c.from=function(C,M,$){return d(null,C,M,$)},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(C,M,$){return function(J,ee,se,ge){return f(ee),ee<=0?l(J,ee):se!==void 0?typeof ge=="string"?l(J,ee).fill(se,ge):l(J,ee).fill(se):l(J,ee)}(null,C,M,$)},c.allocUnsafe=function(C){return p(null,C)},c.allocUnsafeSlow=function(C){return p(null,C)},c.isBuffer=function(C){return!(C==null||!C._isBuffer)},c.compare=function(C,M){if(!c.isBuffer(C)||!c.isBuffer(M))throw new TypeError("Arguments must be Buffers");if(C===M)return 0;for(var $=C.length,J=M.length,ee=0,se=Math.min($,J);ee<se;++ee)if(C[ee]!==M[ee]){$=C[ee],J=M[ee];break}return $<J?-1:J<$?1:0},c.isEncoding=function(C){switch(String(C).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(C,M){if(!a(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return c.alloc(0);var $;if(M===void 0)for(M=0,$=0;$<C.length;++$)M+=C[$].length;var J=c.allocUnsafe(M),ee=0;for($=0;$<C.length;++$){var se=C[$];if(!c.isBuffer(se))throw new TypeError('"list" argument must be an Array of Buffers');se.copy(J,ee),ee+=se.length}return J},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;M<C;M+=2)x(this,M,M+1);return this},c.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var M=0;M<C;M+=4)x(this,M,M+3),x(this,M+1,M+2);return this},c.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var M=0;M<C;M+=8)x(this,M,M+7),x(this,M+1,M+6),x(this,M+2,M+5),x(this,M+3,M+4);return this},c.prototype.toString=function(){var C=0|this.length;return C===0?"":arguments.length===0?A(this,0,C):(function(M,$,J){var ee=!1;if(($===void 0||$<0)&&($=0),$>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=($>>>=0))return"";for(M||(M="utf8");;)switch(M){case"hex":return G(this,$,J);case"utf8":case"utf-8":return A(this,$,J);case"ascii":return W(this,$,J);case"latin1":case"binary":return X(this,$,J);case"base64":return U(this,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,$,J);default:if(ee)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),ee=!0}}).apply(this,arguments)},c.prototype.equals=function(C){if(!c.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||c.compare(this,C)===0},c.prototype.inspect=function(){var C="",M=t.INSPECT_MAX_BYTES;return this.length>0&&(C=this.toString("hex",0,M).match(/.{2}/g).join(" "),this.length>M&&(C+=" ... ")),"<Buffer "+C+">"},c.prototype.compare=function(C,M,$,J,ee){if(!c.isBuffer(C))throw new TypeError("Argument must be a Buffer");if(M===void 0&&(M=0),$===void 0&&($=C?C.length:0),J===void 0&&(J=0),ee===void 0&&(ee=this.length),M<0||$>C.length||J<0||ee>this.length)throw new RangeError("out of range index");if(J>=ee&&M>=$)return 0;if(J>=ee)return-1;if(M>=$)return 1;if(M>>>=0,$>>>=0,J>>>=0,ee>>>=0,this===C)return 0;for(var se=ee-J,ge=$-M,Me=Math.min(se,ge),ue=this.slice(J,ee),me=C.slice(M,$),_e=0;_e<Me;++_e)if(ue[_e]!==me[_e]){se=ue[_e],ge=me[_e];break}return se<ge?-1:ge<se?1:0},c.prototype.includes=function(C,M,$){return this.indexOf(C,M,$)!==-1},c.prototype.indexOf=function(C,M,$){return _(this,C,M,$,!0)},c.prototype.lastIndexOf=function(C,M,$){return _(this,C,M,$,!1)},c.prototype.write=function(C,M,$,J){if(M===void 0)J="utf8",$=this.length,M=0;else if($===void 0&&typeof M=="string")J=M,$=this.length,M=0;else{if(!isFinite(M))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");M|=0,isFinite($)?($|=0,J===void 0&&(J="utf8")):(J=$,$=void 0)}var ee=this.length-M;if(($===void 0||$>ee)&&($=ee),C.length>0&&($<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var se=!1;;)switch(J){case"hex":return S(this,C,M,$);case"utf8":case"utf-8":return E(this,C,M,$);case"ascii":return O(this,C,M,$);case"latin1":case"binary":return k(this,C,M,$);case"base64":return j(this,C,M,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,C,M,$);default:if(se)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function W(C,M,$){var J="";$=Math.min(C.length,$);for(var ee=M;ee<$;++ee)J+=String.fromCharCode(127&C[ee]);return J}function X(C,M,$){var J="";$=Math.min(C.length,$);for(var ee=M;ee<$;++ee)J+=String.fromCharCode(C[ee]);return J}function G(C,M,$){var J=C.length;(!M||M<0)&&(M=0),(!$||$<0||$>J)&&($=J);for(var ee="",se=M;se<$;++se)ee+=q(C[se]);return ee}function K(C,M,$){for(var J=C.slice(M,$),ee="",se=0;se<J.length;se+=2)ee+=String.fromCharCode(J[se]+256*J[se+1]);return ee}function ne(C,M,$){if(C%1!=0||C<0)throw new RangeError("offset is not uint");if(C+M>$)throw new RangeError("Trying to access beyond buffer length")}function le(C,M,$,J,ee,se){if(!c.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>ee||M<se)throw new RangeError('"value" argument is out of bounds');if($+J>C.length)throw new RangeError("Index out of range")}function Z(C,M,$,J){M<0&&(M=65535+M+1);for(var ee=0,se=Math.min(C.length-$,2);ee<se;++ee)C[$+ee]=(M&255<<8*(J?ee:1-ee))>>>8*(J?ee:1-ee)}function F(C,M,$,J){M<0&&(M=4294967295+M+1);for(var ee=0,se=Math.min(C.length-$,4);ee<se;++ee)C[$+ee]=M>>>8*(J?ee:3-ee)&255}function D(C,M,$,J,ee,se){if($+J>C.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function H(C,M,$,J,ee){return ee||D(C,0,$,4),o.write(C,M,$,J,23,4),$+4}function re(C,M,$,J,ee){return ee||D(C,0,$,8),o.write(C,M,$,J,52,8),$+8}c.prototype.slice=function(C,M){var $,J=this.length;if(C=~~C,M=M===void 0?J:~~M,C<0?(C+=J)<0&&(C=0):C>J&&(C=J),M<0?(M+=J)<0&&(M=0):M>J&&(M=J),M<C&&(M=C),c.TYPED_ARRAY_SUPPORT)($=this.subarray(C,M)).__proto__=c.prototype;else{var ee=M-C;$=new c(ee,void 0);for(var se=0;se<ee;++se)$[se]=this[se+C]}return $},c.prototype.readUIntLE=function(C,M,$){C|=0,M|=0,$||ne(C,M,this.length);for(var J=this[C],ee=1,se=0;++se<M&&(ee*=256);)J+=this[C+se]*ee;return J},c.prototype.readUIntBE=function(C,M,$){C|=0,M|=0,$||ne(C,M,this.length);for(var J=this[C+--M],ee=1;M>0&&(ee*=256);)J+=this[C+--M]*ee;return J},c.prototype.readUInt8=function(C,M){return M||ne(C,1,this.length),this[C]},c.prototype.readUInt16LE=function(C,M){return M||ne(C,2,this.length),this[C]|this[C+1]<<8},c.prototype.readUInt16BE=function(C,M){return M||ne(C,2,this.length),this[C]<<8|this[C+1]},c.prototype.readUInt32LE=function(C,M){return M||ne(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},c.prototype.readUInt32BE=function(C,M){return M||ne(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},c.prototype.readIntLE=function(C,M,$){C|=0,M|=0,$||ne(C,M,this.length);for(var J=this[C],ee=1,se=0;++se<M&&(ee*=256);)J+=this[C+se]*ee;return J>=(ee*=128)&&(J-=Math.pow(2,8*M)),J},c.prototype.readIntBE=function(C,M,$){C|=0,M|=0,$||ne(C,M,this.length);for(var J=M,ee=1,se=this[C+--J];J>0&&(ee*=256);)se+=this[C+--J]*ee;return se>=(ee*=128)&&(se-=Math.pow(2,8*M)),se},c.prototype.readInt8=function(C,M){return M||ne(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},c.prototype.readInt16LE=function(C,M){M||ne(C,2,this.length);var $=this[C]|this[C+1]<<8;return 32768&$?4294901760|$:$},c.prototype.readInt16BE=function(C,M){M||ne(C,2,this.length);var $=this[C+1]|this[C]<<8;return 32768&$?4294901760|$:$},c.prototype.readInt32LE=function(C,M){return M||ne(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},c.prototype.readInt32BE=function(C,M){return M||ne(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},c.prototype.readFloatLE=function(C,M){return M||ne(C,4,this.length),o.read(this,C,!0,23,4)},c.prototype.readFloatBE=function(C,M){return M||ne(C,4,this.length),o.read(this,C,!1,23,4)},c.prototype.readDoubleLE=function(C,M){return M||ne(C,8,this.length),o.read(this,C,!0,52,8)},c.prototype.readDoubleBE=function(C,M){return M||ne(C,8,this.length),o.read(this,C,!1,52,8)},c.prototype.writeUIntLE=function(C,M,$,J){C=+C,M|=0,$|=0,J||le(this,C,M,$,Math.pow(2,8*$)-1,0);var ee=1,se=0;for(this[M]=255&C;++se<$&&(ee*=256);)this[M+se]=C/ee&255;return M+$},c.prototype.writeUIntBE=function(C,M,$,J){C=+C,M|=0,$|=0,J||le(this,C,M,$,Math.pow(2,8*$)-1,0);var ee=$-1,se=1;for(this[M+ee]=255&C;--ee>=0&&(se*=256);)this[M+ee]=C/se&255;return M+$},c.prototype.writeUInt8=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,1,255,0),c.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),this[M]=255&C,M+1},c.prototype.writeUInt16LE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[M]=255&C,this[M+1]=C>>>8):Z(this,C,M,!0),M+2},c.prototype.writeUInt16BE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[M]=C>>>8,this[M+1]=255&C):Z(this,C,M,!1),M+2},c.prototype.writeUInt32LE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[M+3]=C>>>24,this[M+2]=C>>>16,this[M+1]=C>>>8,this[M]=255&C):F(this,C,M,!0),M+4},c.prototype.writeUInt32BE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[M]=C>>>24,this[M+1]=C>>>16,this[M+2]=C>>>8,this[M+3]=255&C):F(this,C,M,!1),M+4},c.prototype.writeIntLE=function(C,M,$,J){if(C=+C,M|=0,!J){var ee=Math.pow(2,8*$-1);le(this,C,M,$,ee-1,-ee)}var se=0,ge=1,Me=0;for(this[M]=255&C;++se<$&&(ge*=256);)C<0&&Me===0&&this[M+se-1]!==0&&(Me=1),this[M+se]=(C/ge>>0)-Me&255;return M+$},c.prototype.writeIntBE=function(C,M,$,J){if(C=+C,M|=0,!J){var ee=Math.pow(2,8*$-1);le(this,C,M,$,ee-1,-ee)}var se=$-1,ge=1,Me=0;for(this[M+se]=255&C;--se>=0&&(ge*=256);)C<0&&Me===0&&this[M+se+1]!==0&&(Me=1),this[M+se]=(C/ge>>0)-Me&255;return M+$},c.prototype.writeInt8=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,1,127,-128),c.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),C<0&&(C=255+C+1),this[M]=255&C,M+1},c.prototype.writeInt16LE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[M]=255&C,this[M+1]=C>>>8):Z(this,C,M,!0),M+2},c.prototype.writeInt16BE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[M]=C>>>8,this[M+1]=255&C):Z(this,C,M,!1),M+2},c.prototype.writeInt32LE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[M]=255&C,this[M+1]=C>>>8,this[M+2]=C>>>16,this[M+3]=C>>>24):F(this,C,M,!0),M+4},c.prototype.writeInt32BE=function(C,M,$){return C=+C,M|=0,$||le(this,C,M,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),c.TYPED_ARRAY_SUPPORT?(this[M]=C>>>24,this[M+1]=C>>>16,this[M+2]=C>>>8,this[M+3]=255&C):F(this,C,M,!1),M+4},c.prototype.writeFloatLE=function(C,M,$){return H(this,C,M,!0,$)},c.prototype.writeFloatBE=function(C,M,$){return H(this,C,M,!1,$)},c.prototype.writeDoubleLE=function(C,M,$){return re(this,C,M,!0,$)},c.prototype.writeDoubleBE=function(C,M,$){return re(this,C,M,!1,$)},c.prototype.copy=function(C,M,$,J){if($||($=0),J||J===0||(J=this.length),M>=C.length&&(M=C.length),M||(M=0),J>0&&J<$&&(J=$),J===$||C.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),C.length-M<J-$&&(J=C.length-M+$);var ee,se=J-$;if(this===C&&$<M&&M<J)for(ee=se-1;ee>=0;--ee)C[ee+M]=this[ee+$];else if(se<1e3||!c.TYPED_ARRAY_SUPPORT)for(ee=0;ee<se;++ee)C[ee+M]=this[ee+$];else Uint8Array.prototype.set.call(C,this.subarray($,$+se),M);return se},c.prototype.fill=function(C,M,$,J){if(typeof C=="string"){if(typeof M=="string"?(J=M,M=0,$=this.length):typeof $=="string"&&(J=$,$=this.length),C.length===1){var ee=C.charCodeAt(0);ee<256&&(C=ee)}if(J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!c.isEncoding(J))throw new TypeError("Unknown encoding: "+J)}else typeof C=="number"&&(C&=255);if(M<0||this.length<M||this.length<$)throw new RangeError("Out of range index");if($<=M)return this;var se;if(M>>>=0,$=$===void 0?this.length:$>>>0,C||(C=0),typeof C=="number")for(se=M;se<$;++se)this[se]=C;else{var ge=c.isBuffer(C)?C:ie(new c(C,J).toString()),Me=ge.length;for(se=0;se<$-M;++se)this[se+M]=ge[se%Me]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function q(C){return C<16?"0"+C.toString(16):C.toString(16)}function ie(C,M){var $;M=M||1/0;for(var J=C.length,ee=null,se=[],ge=0;ge<J;++ge){if(($=C.charCodeAt(ge))>55295&&$<57344){if(!ee){if($>56319){(M-=3)>-1&&se.push(239,191,189);continue}if(ge+1===J){(M-=3)>-1&&se.push(239,191,189);continue}ee=$;continue}if($<56320){(M-=3)>-1&&se.push(239,191,189),ee=$;continue}$=65536+(ee-55296<<10|$-56320)}else ee&&(M-=3)>-1&&se.push(239,191,189);if(ee=null,$<128){if((M-=1)<0)break;se.push($)}else if($<2048){if((M-=2)<0)break;se.push($>>6|192,63&$|128)}else if($<65536){if((M-=3)<0)break;se.push($>>12|224,$>>6&63|128,63&$|128)}else{if(!($<1114112))throw new Error("Invalid code point");if((M-=4)<0)break;se.push($>>18|240,$>>12&63|128,$>>6&63|128,63&$|128)}}return se}function ae(C){return i.toByteArray(function(M){if((M=function($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")}(M).replace(z,"")).length<2)return"";for(;M.length%4!=0;)M+="=";return M}(C))}function he(C,M,$,J){for(var ee=0;ee<J&&!(ee+$>=M.length||ee>=C.length);++ee)M[ee+$]=C[ee];return ee}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(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:a}catch{r=a}})();var l,c=[],d=!1,f=-1;function p(){d&&l&&(d=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!d){var x=s(p);d=!0;for(var _=c.length;_;){for(l=c,c=[];++f<_;)l&&l[f].run();f=-1,_=c.length}l=null,d=!1,function(w){if(r===clearTimeout)return clearTimeout(w);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{r(w)}catch{try{return r.call(null,w)}catch{return r.call(this,w)}}}(x)}}function v(x,_){this.fun=x,this.array=_}function y(){}i.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)_[w-1]=arguments[w];c.push(new v(x,_)),c.length!==1||d||s(m)},v.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=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,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,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,c,d=arguments.length;switch(d){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,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(d-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(s,l){for(var c in s)l[c]=s[c]}function a(s,l,c){return i(s,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,c)},a.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var d=i(s);return l!==void 0?typeof c=="string"?d.fill(l,c):d.fill(l):d.fill(0),d},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},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 a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._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(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===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(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,c,d,f,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var m=new Error('Uncaught, unspecified "error" event. ('+s+")");throw m.context=s,m}if(o(l=this._events[a]))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:d=Array.prototype.slice.call(arguments,1),l.apply(this,d)}else if(i(l))for(d=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,f=0;f<c;f++)p[f].apply(this,d);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(a,c),l||(l=!0,s.apply(this,arguments))}return c.listener=s,this.on(a,c),this},n.prototype.removeListener=function(a,s){var l,c,d,f;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(d=(l=this._events[a]).length,c=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(f=d;f-- >0;)if(l[f]===s||l[f].listener&&l[f].listener===s){c=f;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},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 a=n(6);function s(A){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(W,X,G){var K=W.entry;for(W.entry=null;K;){var ne=K.callback;X.pendingcb--,ne(void 0),K=K.next}X.corkedRequestsFree?X.corkedRequestsFree.next=W:X.corkedRequestsFree=W})(V,A)}}e.exports=S;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;S.WritableState=w;var d=n(5);d.inherits=n(2);var f,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function _(){}function w(A,V){l=l||n(1),A=A||{};var W=V instanceof l;this.objectMode=!!A.objectMode,W&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var X=A.highWaterMark,G=A.writableHighWaterMark,K=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:W&&(G||G===0)?G:K,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 ne=A.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(Z,F){var D=Z._writableState,H=D.sync,re=D.writecb;if(function(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}(D),F)(function(q,ie,ae,he,C){--ie.pendingcb,ae?(a.nextTick(C,he),a.nextTick(U,q,ie),q._writableState.errorEmitted=!0,q.emit("error",he)):(C(he),q._writableState.errorEmitted=!0,q.emit("error",he),U(q,ie))})(Z,D,H,F,re);else{var z=j(D);z||D.corked||D.bufferProcessing||!D.bufferedRequest||k(Z,D),H?c(O,Z,D,z,re):O(Z,D,z,re)}})(V,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function S(A){if(l=l||n(1),!(f.call(S,this)||this instanceof l))return new S(A);this._writableState=new w(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),m.call(this)}function E(A,V,W,X,G,K,ne){V.writelen=X,V.writecb=ne,V.writing=!0,V.sync=!0,W?A._writev(G,V.onwrite):A._write(G,K,V.onwrite),V.sync=!1}function O(A,V,W,X){W||function(G,K){K.length===0&&K.needDrain&&(K.needDrain=!1,G.emit("drain"))}(A,V),V.pendingcb--,X(),U(A,V)}function k(A,V){V.bufferProcessing=!0;var W=V.bufferedRequest;if(A._writev&&W&&W.next){var X=V.bufferedRequestCount,G=new Array(X),K=V.corkedRequestsFree;K.entry=W;for(var ne=0,le=!0;W;)G[ne]=W,W.isBuf||(le=!1),W=W.next,ne+=1;G.allBuffers=le,E(A,V,!0,V.length,G,"",K.finish),V.pendingcb++,V.lastBufferedRequest=null,K.next?(V.corkedRequestsFree=K.next,K.next=null):V.corkedRequestsFree=new s(V),V.bufferedRequestCount=0}else{for(;W;){var Z=W.chunk,F=W.encoding,D=W.callback;if(E(A,V,!1,V.objectMode?1:Z.length,Z,F,D),W=W.next,V.bufferedRequestCount--,V.writing)break}W===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=W,V.bufferProcessing=!1}function j(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function R(A,V){A._final(function(W){V.pendingcb--,W&&A.emit("error",W),V.prefinished=!0,A.emit("prefinish"),U(A,V)})}function U(A,V){var W=j(V);return W&&(function(X,G){G.prefinished||G.finalCalled||(typeof X._final=="function"?(G.pendingcb++,G.finalCalled=!0,a.nextTick(R,X,G)):(G.prefinished=!0,X.emit("prefinish")))}(A,V),V.pendingcb===0&&(V.finished=!0,A.emit("finish"))),W}d.inherits(S,m),w.prototype.getBuffer=function(){for(var A=this.bufferedRequest,V=[];A;)V.push(A),A=A.next;return V},function(){try{Object.defineProperty(w.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"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(A){return!!f.call(this,A)||this===S&&A&&A._writableState instanceof w}})):f=function(A){return A instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(A,V,W){var X=this._writableState,G=!1,K=!X.objectMode&&function(ne){return v.isBuffer(ne)||ne instanceof y}(A);return K&&!v.isBuffer(A)&&(A=function(ne){return v.from(ne)}(A)),typeof V=="function"&&(W=V,V=null),K?V="buffer":V||(V=X.defaultEncoding),typeof W!="function"&&(W=_),X.ended?function(ne,le){var Z=new Error("write after end");ne.emit("error",Z),a.nextTick(le,Z)}(this,W):(K||function(ne,le,Z,F){var D=!0,H=!1;return Z===null?H=new TypeError("May not write null values to stream"):typeof Z=="string"||Z===void 0||le.objectMode||(H=new TypeError("Invalid non-string/buffer chunk")),H&&(ne.emit("error",H),a.nextTick(F,H),D=!1),D}(this,X,A,W))&&(X.pendingcb++,G=function(ne,le,Z,F,D,H){if(!Z){var re=function(ae,he,C){return ae.objectMode||ae.decodeStrings===!1||typeof he!="string"||(he=v.from(he,C)),he}(le,F,D);F!==re&&(Z=!0,D="buffer",F=re)}var z=le.objectMode?1:F.length;le.length+=z;var q=le.length<le.highWaterMark;if(q||(le.needDrain=!0),le.writing||le.corked){var ie=le.lastBufferedRequest;le.lastBufferedRequest={chunk:F,encoding:D,isBuf:Z,callback:H,next:null},ie?ie.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else E(ne,le,!1,z,F,D,H);return q}(this,X,K,A,V,W)),G},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.finished||A.bufferProcessing||!A.bufferedRequest||k(this,A))},S.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(A,V,W){W(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(A,V,W){var X=this._writableState;typeof A=="function"?(W=A,A=null,V=null):typeof V=="function"&&(W=V,V=null),A!=null&&this.write(A,V),X.corked&&(X.corked=1,this.uncork()),X.ending||X.finished||function(G,K,ne){K.ending=!0,U(G,K),ne&&(K.finished?a.nextTick(ne):G.once("finish",ne)),K.ended=!0,G.writable=!1}(this,X,W)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),S.prototype.destroy=x.destroy,S.prototype._undestroy=x.undestroy,S.prototype._destroy=function(A,V){this.end(),V(A)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,c){function d(m,v){if(!l[m]){if(!s[m]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(m,!0);if(f)return f(m,!0);var x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var _=l[m]={exports:{}};s[m][0].call(_.exports,function(w){return d(s[m][1][w]||w)},_,_.exports,a,s,l,c)}return l[m].exports}for(var f=typeof _dereq_=="function"&&_dereq_,p=0;p<c.length;p++)d(c[p]);return d}({1:[function(a,s,l){s.exports=function(c){var d=c._SomePromiseArray;function f(p){var m=new d(p),v=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),v}c.any=function(p){return f(p)},c.prototype.any=function(){return f(this)}}},{}],2:[function(a,s,l){var c;try{throw new Error}catch(_){c=_}var d=a("./schedule"),f=a("./queue"),p=a("./util");function m(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new f(16),this._normalQueue=new f(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var _=this;this.drainQueues=function(){_._drainQueues()},this._schedule=d}function v(_,w,S){this._lateQueue.push(_,w,S),this._queueTick()}function y(_,w,S){this._normalQueue.push(_,w,S),this._queueTick()}function x(_){this._normalQueue._pushOne(_),this._queueTick()}m.prototype.setScheduler=function(_){var w=this._schedule;return this._schedule=_,this._customScheduler=!0,w},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(_,w){w?(r.stderr.write("Fatal "+(_ instanceof Error?_.stack:_)+`
|
||
`),r.exit(2)):this.throwLater(_)},m.prototype.throwLater=function(_,w){if(arguments.length===1&&(w=_,_=function(){throw w}),typeof setTimeout<"u")setTimeout(function(){_(w)},0);else try{this._schedule(function(){_(w)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(m.prototype.invokeLater=function(_,w,S){this._trampolineEnabled?v.call(this,_,w,S):this._schedule(function(){setTimeout(function(){_.call(w,S)},100)})},m.prototype.invoke=function(_,w,S){this._trampolineEnabled?y.call(this,_,w,S):this._schedule(function(){_.call(w,S)})},m.prototype.settlePromises=function(_){this._trampolineEnabled?x.call(this,_):this._schedule(function(){_._settlePromises()})}):(m.prototype.invokeLater=v,m.prototype.invoke=y,m.prototype.settlePromises=x),m.prototype._drainQueue=function(_){for(;_.length()>0;){var w=_.shift();if(typeof w=="function"){var S=_.shift(),E=_.shift();w.call(S,E)}else w._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},s.exports=m,s.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(c,d,f,p){var m=!1,v=function(w,S){this._reject(S)},y=function(w,S){S.promiseRejectionQueued=!0,S.bindingPromise._then(v,v,null,this,w)},x=function(w,S){!(50397184&this._bitField)&&this._resolveCallback(S.target)},_=function(w,S){S.promiseRejectionQueued||this._reject(w)};c.prototype.bind=function(w){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var S=f(w),E=new c(d);E._propagateFrom(this,1);var O=this._target();if(E._setBoundTo(S),S instanceof c){var k={promiseRejectionQueued:!1,promise:E,target:O,bindingPromise:S};O._then(d,y,void 0,E,k),S._then(x,_,void 0,E,k),E._setOnCancel(S)}else E._resolveCallback(O);return E},c.prototype._setBoundTo=function(w){w!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=w):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(w,S){return c.resolve(S).bind(w)}}},{}],4:[function(a,s,l){var c;typeof Promise<"u"&&(c=Promise);var d=a("./promise")();d.noConflict=function(){try{Promise===d&&(Promise=c)}catch{}return d},s.exports=d},{"./promise":22}],5:[function(a,s,l){var c=Object.create;if(c){var d=c(null),f=c(null);d[" size"]=f[" size"]=0}s.exports=function(p){var m=a("./util"),v=m.canEvaluate;function y(w){return function(S,E){var O;if(S!=null&&(O=S[E]),typeof O!="function"){var k="Object "+m.classString(S)+" has no method '"+m.toString(E)+"'";throw new p.TypeError(k)}return O}(w,this.pop()).apply(w,this)}function x(w){return w[this]}function _(w){var S=+this;return S<0&&(S=Math.max(0,S+w.length)),w[S]}m.isIdentifier,p.prototype.call=function(w){var S=[].slice.call(arguments,1);return S.push(w),this._then(y,void 0,void 0,S,void 0)},p.prototype.get=function(w){var S;if(typeof w=="number")S=_;else if(v){var E=(void 0)(w);S=E!==null?E:x}else S=x;return this._then(S,void 0,void 0,w,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(c,d,f,p){var m=a("./util"),v=m.tryCatch,y=m.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,w=_;_._isCancellable();){if(!_._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var S=_._cancellationParent;if(S==null||!S._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),w=_,_=S}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(_){return _===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(_,w){if(m.isArray(_))for(var S=0;S<_.length;++S)this._doInvokeOnCancel(_[S],w);else if(_!==void 0)if(typeof _=="function"){if(!w){var E=v(_).call(this._boundValue());E===y&&(this._attachExtraTrace(E.e),x.throwLater(E.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,_)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(c){var d=a("./util"),f=a("./es5").keys,p=d.tryCatch,m=d.errorObj;return function(v,y,x){return function(_){var w=x._boundValue();e:for(var S=0;S<v.length;++S){var E=v[S];if(E===Error||E!=null&&E.prototype instanceof Error){if(_ instanceof E)return p(y).call(w,_)}else if(typeof E=="function"){var O=p(E).call(w,_);if(O===m)return O;if(O)return p(y).call(w,_)}else if(d.isObject(_)){for(var k=f(E),j=0;j<k.length;++j){var R=k[j];if(E[R]!=_[R])continue e}return p(y).call(w,_)}}return c}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(c){var d=!1,f=[];function p(){this._trace=new p.CapturedTrace(m())}function m(){var v=f.length-1;if(v>=0)return f[v]}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,f.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=f.pop(),y=v._promiseCreated;return v._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(d)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=c.prototype._pushContext,y=c.prototype._popContext,x=c._peekContext,_=c.prototype._peekContext,w=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=x,c.prototype._peekContext=_,c.prototype._promiseCreated=w,d=!1},d=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var S=this._peekContext();S&&S._promiseCreated==null&&(S._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(c,d){var f,p,m,v=c._getDomain,y=c._async,x=a("./errors").Warning,_=a("./util"),w=_.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,E=/\((?:timers\.js):\d+:\d+\)/,O=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,j=null,R=!1,U=_.env("BLUEBIRD_DEBUG")!=0,A=!(_.env("BLUEBIRD_WARNINGS")==0||!U&&!_.env("BLUEBIRD_WARNINGS")),V=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!U&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),W=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ge("rejectionHandled",f,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 ce=this._settledValue();this._setUnhandledRejectionIsNotified(),ge("unhandledRejection",p,ce,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(ce,fe,ye){return $(ce,fe,ye||this)},c.onPossiblyUnhandledRejection=function(ce){var fe=v();p=typeof ce=="function"?fe===null?ce:_.domainBind(fe,ce):void 0},c.onUnhandledRejectionHandled=function(ce){var fe=v();f=typeof ce=="function"?fe===null?ce:_.domainBind(fe,ce):void 0};var X=function(){};c.longStackTraces=function(){if(y.haveItemsQueued()&&!je.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!je.longStackTraces&&ue()){var ce=c.prototype._captureStackTrace,fe=c.prototype._attachExtraTrace;je.longStackTraces=!0,X=function(){if(y.haveItemsQueued()&&!je.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=ce,c.prototype._attachExtraTrace=fe,d.deactivateLongStackTraces(),y.enableTrampoline(),je.longStackTraces=!1},c.prototype._captureStackTrace=C,c.prototype._attachExtraTrace=M,d.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return je.longStackTraces&&ue()};var G=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return _.global.dispatchEvent(ce),function(fe,ye){var ve=new CustomEvent(fe.toLowerCase(),{detail:ye,cancelable:!0});return!_.global.dispatchEvent(ve)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),_.global.dispatchEvent(ce),function(fe,ye){var ve=new Event(fe.toLowerCase(),{cancelable:!0});return ve.detail=ye,!_.global.dispatchEvent(ve)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(ce),function(fe,ye){var ve=document.createEvent("CustomEvent");return ve.initCustomEvent(fe.toLowerCase(),!1,!0,ye),!_.global.dispatchEvent(ve)})}catch{}return function(){return!1}}(),K=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(ce){var fe="on"+ce.toLowerCase(),ye=_.global[fe];return!!ye&&(ye.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ne(ce,fe){return{promise:fe}}var le={promiseCreated:ne,promiseFulfilled:ne,promiseRejected:ne,promiseResolved:ne,promiseCancelled:ne,promiseChained:function(ce,fe,ye){return{promise:fe,child:ye}},warning:function(ce,fe){return{warning:fe}},unhandledRejection:function(ce,fe,ye){return{reason:fe,promise:ye}},rejectionHandled:ne},Z=function(ce){var fe=!1;try{fe=K.apply(null,arguments)}catch(ve){y.throwLater(ve),fe=!0}var ye=!1;try{ye=G(ce,le[ce].apply(null,arguments))}catch(ve){y.throwLater(ve),ye=!0}return ye||fe};function F(){return!1}function D(ce,fe,ye){var ve=this;try{ce(fe,ye,function(xe){if(typeof xe!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(xe));ve._attachCancellationCallback(xe)})}catch(xe){return xe}}function H(ce){if(!this._isCancellable())return this;var fe=this._onCancel();fe!==void 0?_.isArray(fe)?fe.push(ce):this._setOnCancel([fe,ce]):this._setOnCancel(ce)}function re(){return this._onCancelField}function z(ce){this._onCancelField=ce}function q(){this._cancellationParent=void 0,this._onCancelField=void 0}function ie(ce,fe){if(1&fe){this._cancellationParent=ce;var ye=ce._branchesRemainingToCancel;ye===void 0&&(ye=0),ce._branchesRemainingToCancel=ye+1}2&fe&&ce._isBound()&&this._setBoundTo(ce._boundTo)}c.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?c.longStackTraces():!ce.longStackTraces&&c.hasLongStackTraces()&&X()),"warnings"in ce){var fe=ce.warnings;je.warnings=!!fe,W=je.warnings,_.isObject(fe)&&"wForgottenReturn"in fe&&(W=!!fe.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!je.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=q,c.prototype._propagateFrom=ie,c.prototype._onCancel=re,c.prototype._setOnCancel=z,c.prototype._attachCancellationCallback=H,c.prototype._execute=D,ae=ie,je.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!je.monitoring?(je.monitoring=!0,c.prototype._fireEvent=Z):!ce.monitoring&&je.monitoring&&(je.monitoring=!1,c.prototype._fireEvent=F)),c},c.prototype._fireEvent=F,c.prototype._execute=function(ce,fe,ye){try{ce(fe,ye)}catch(ve){return ve}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ce){},c.prototype._attachCancellationCallback=function(ce){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ce,fe){};var ae=function(ce,fe){2&fe&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function he(){var ce=this._boundTo;return ce!==void 0&&ce instanceof c?ce.isFulfilled()?ce.value():void 0:ce}function C(){this._trace=new ke(this._peekContext())}function M(ce,fe){if(w(ce)){var ye=this._trace;if(ye!==void 0&&fe&&(ye=ye._parent),ye!==void 0)ye.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var ve=ee(ce);_.notEnumerableProp(ce,"stack",ve.message+`
|
||
`+ve.stack.join(`
|
||
`)),_.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function $(ce,fe,ye){if(je.warnings){var ve,xe=new x(ce);if(fe)ye._attachExtraTrace(xe);else if(je.longStackTraces&&(ve=c._peekContext()))ve.attachExtraTrace(xe);else{var Le=ee(xe);xe.stack=Le.message+`
|
||
`+Le.stack.join(`
|
||
`)}Z("warning",xe)||se(xe,"",!0)}}function J(ce){for(var fe=[],ye=0;ye<ce.length;++ye){var ve=ce[ye],xe=ve===" (No stack trace)"||k.test(ve),Le=xe&&me(ve);xe&&!Le&&(R&&ve.charAt(0)!==" "&&(ve=" "+ve),fe.push(ve))}return fe}function ee(ce){var fe=ce.stack,ye=ce.toString();return fe=typeof fe=="string"&&fe.length>0?function(ve){for(var xe=ve.stack.replace(/\s+$/g,"").split(`
|
||
`),Le=0;Le<xe.length;++Le){var Re=xe[Le];if(Re===" (No stack trace)"||k.test(Re))break}return Le>0&&ve.name!="SyntaxError"&&(xe=xe.slice(Le)),xe}(ce):[" (No stack trace)"],{message:ye,stack:ce.name=="SyntaxError"?fe:J(fe)}}function se(ce,fe,ye){if(typeof console<"u"){var ve;if(_.isObject(ce)){var xe=ce.stack;ve=fe+j(xe,ce)}else ve=fe+String(ce);typeof m=="function"?m(ve,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ve)}}function ge(ce,fe,ye,ve){var xe=!1;try{typeof fe=="function"&&(xe=!0,ce==="rejectionHandled"?fe(ve):fe(ye,ve))}catch(Le){y.throwLater(Le)}ce==="unhandledRejection"?Z(ce,ye,ve)||xe||se(ye,"Unhandled rejection "):Z(ce,ve)}function Me(ce){var fe;if(typeof ce=="function")fe="[function "+(ce.name||"anonymous")+"]";else{if(fe=ce&&typeof ce.toString=="function"?ce.toString():_.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(fe))try{fe=JSON.stringify(ce)}catch{}fe.length===0&&(fe="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(fe)+">, no stack trace)"}function ue(){return typeof Ce=="function"}var me=function(){return!1},_e=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Se(ce){var fe=ce.match(_e);if(fe)return{fileName:fe[1],line:parseInt(fe[2],10)}}function ke(ce){this._parent=ce,this._promisesCreated=0;var fe=this._length=1+(ce===void 0?0:ce._length);Ce(this,ke),fe>32&&this.uncycle()}_.inherits(ke,Error),d.CapturedTrace=ke,ke.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var fe=[],ye={},ve=0,xe=this;xe!==void 0;++ve)fe.push(xe),xe=xe._parent;for(ve=(ce=this._length=ve)-1;ve>=0;--ve){var Le=fe[ve].stack;ye[Le]===void 0&&(ye[Le]=ve)}for(ve=0;ve<ce;++ve){var Re=ye[fe[ve].stack];if(Re!==void 0&&Re!==ve){Re>0&&(fe[Re-1]._parent=void 0,fe[Re-1]._length=1),fe[ve]._parent=void 0,fe[ve]._length=1;var Xe=ve>0?fe[ve-1]:this;Re<ce-1?(Xe._parent=fe[Re+1],Xe._parent.uncycle(),Xe._length=Xe._parent._length+1):(Xe._parent=void 0,Xe._length=1);for(var tt=Xe._length+1,Ge=ve-2;Ge>=0;--Ge)fe[Ge]._length=tt,tt++;return}}}},ke.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var fe=ee(ce),ye=fe.message,ve=[fe.stack],xe=this;xe!==void 0;)ve.push(J(xe.stack.split(`
|
||
`))),xe=xe._parent;(function(Le){for(var Re=Le[0],Xe=1;Xe<Le.length;++Xe){for(var tt=Le[Xe],Ge=Re.length-1,Jt=Re[Ge],Ht=-1,kn=tt.length-1;kn>=0;--kn)if(tt[kn]===Jt){Ht=kn;break}for(kn=Ht;kn>=0;--kn){var fr=tt[kn];if(Re[Ge]!==fr)break;Re.pop(),Ge--}Re=tt}})(ve),function(Le){for(var Re=0;Re<Le.length;++Re)(Le[Re].length===0||Re+1<Le.length&&Le[Re][0]===Le[Re+1][0])&&(Le.splice(Re,1),Re--)}(ve),_.notEnumerableProp(ce,"stack",function(Le,Re){for(var Xe=0;Xe<Re.length-1;++Xe)Re[Xe].push("From previous event:"),Re[Xe]=Re[Xe].join(`
|
||
`);return Xe<Re.length&&(Re[Xe]=Re[Xe].join(`
|
||
`)),Le+`
|
||
`+Re.join(`
|
||
`)}(ye,ve)),_.notEnumerableProp(ce,"__stackCleaned__",!0)}};var Ce=function(){var ce=/^\s*at\s*/,fe=function(Le,Re){return typeof Le=="string"?Le:Re.name!==void 0&&Re.message!==void 0?Re.toString():Me(Re)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,k=ce,j=fe;var ye=Error.captureStackTrace;return me=function(Le){return S.test(Le)},function(Le,Re){Error.stackTraceLimit+=6,ye(Le,Re),Error.stackTraceLimit-=6}}var ve,xe=new Error;if(typeof xe.stack=="string"&&xe.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return k=/@/,j=fe,R=!0,function(Le){Le.stack=new Error().stack};try{throw new Error}catch(Le){ve="stack"in Le}return"stack"in xe||!ve||typeof Error.stackTraceLimit!="number"?(j=function(Le,Re){return typeof Le=="string"?Le:typeof Re!="object"&&typeof Re!="function"||Re.name===void 0||Re.message===void 0?Me(Re):Re.toString()},null):(k=ce,j=fe,function(Le){Error.stackTraceLimit+=6;try{throw new Error}catch(Re){Le.stack=Re.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},_.isNode&&r.stderr.isTTY?m=function(ce,fe){var ye=fe?"\x1B[33m":"\x1B[31m";console.warn(ye+ce+`\x1B[0m
|
||
`)}:_.isNode||typeof new Error().stack!="string"||(m=function(ce,fe){console.warn("%c"+ce,fe?"color: darkorange":"color: red")}));var je={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return V&&c.longStackTraces(),{longStackTraces:function(){return je.longStackTraces},warnings:function(){return je.warnings},cancellation:function(){return je.cancellation},monitoring:function(){return je.monitoring},propagateFromFunction:function(){return ae},boundValueFunction:function(){return he},checkForgottenReturns:function(ce,fe,ye,ve,xe){if(ce===void 0&&fe!==null&&W){if(xe!==void 0&&xe._returnedNonUndefined()||!(65535&ve._bitField))return;ye&&(ye+=" ");var Le="",Re="";if(fe._trace){for(var Xe=fe._trace.stack.split(`
|
||
`),tt=J(Xe),Ge=tt.length-1;Ge>=0;--Ge){var Jt=tt[Ge];if(!E.test(Jt)){var Ht=Jt.match(O);Ht&&(Le="at "+Ht[1]+":"+Ht[2]+":"+Ht[3]+" ");break}}if(tt.length>0){var kn=tt[0];for(Ge=0;Ge<Xe.length;++Ge)if(Xe[Ge]===kn){Ge>0&&(Re=`
|
||
`+Xe[Ge-1]);break}}}var fr="a promise was created in a "+ye+"handler "+Le+"but was not returned from it, see http://goo.gl/rRqMUw"+Re;ve._warn(fr,!0,fe)}},setBounds:function(ce,fe){if(ue()){for(var ye,ve,xe=ce.stack.split(`
|
||
`),Le=fe.stack.split(`
|
||
`),Re=-1,Xe=-1,tt=0;tt<xe.length;++tt)if(Ge=Se(xe[tt])){ye=Ge.fileName,Re=Ge.line;break}for(tt=0;tt<Le.length;++tt){var Ge;if(Ge=Se(Le[tt])){ve=Ge.fileName,Xe=Ge.line;break}}Re<0||Xe<0||!ye||!ve||ye!==ve||Re>=Xe||(me=function(Jt){if(S.test(Jt))return!0;var Ht=Se(Jt);return!!(Ht&&Ht.fileName===ye&&Re<=Ht.line&&Ht.line<=Xe)})}},warn:$,deprecated:function(ce,fe){var ye=ce+" is deprecated and will be removed in a future version.";return fe&&(ye+=" Use "+fe+" instead."),$(ye)},CapturedTrace:ke,fireDomEvent:G,fireGlobalEvent:K}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(c){function d(){return this.value}function f(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(d,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(f,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,f,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,d,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(a,s,l){s.exports=function(c,d){var f=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(v){return f(this,v,d,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(v){return f(this,v,d,d)},c.each=function(v,y){return f(v,y,d,0)._then(m,void 0,void 0,v,void 0)},c.mapSeries=function(v,y){return f(v,y,d,d)}}},{}],12:[function(a,s,l){var c,d,f=a("./es5"),p=f.freeze,m=a("./util"),v=m.inherits,y=m.notEnumerableProp;function x(A,V){function W(X){if(!(this instanceof W))return new W(X);y(this,"message",typeof X=="string"?X:V),y(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(W,Error),W}var _=x("Warning","warning"),w=x("CancellationError","cancellation error"),S=x("TimeoutError","timeout error"),E=x("AggregateError","aggregate error");try{c=TypeError,d=RangeError}catch{c=x("TypeError","type error"),d=x("RangeError","range error")}for(var O="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k<O.length;++k)typeof Array.prototype[O[k]]=="function"&&(E.prototype[O[k]]=Array.prototype[O[k]]);f.defineProperty(E.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),E.prototype.isOperational=!0;var j=0;function R(A){if(!(this instanceof R))return new R(A);y(this,"name","OperationalError"),y(this,"message",A),this.cause=A,this.isOperational=!0,A instanceof Error?(y(this,"message",A.message),y(this,"stack",A.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}E.prototype.toString=function(){var A=Array(4*j+1).join(" "),V=`
|
||
`+A+`AggregateError of:
|
||
`;j++,A=Array(4*j+1).join(" ");for(var W=0;W<this.length;++W){for(var X=this[W]===this?"[Circular AggregateError]":this[W]+"",G=X.split(`
|
||
`),K=0;K<G.length;++K)G[K]=A+G[K];V+=(X=G.join(`
|
||
`))+`
|
||
`}return j--,V},v(R,Error);var U=Error.__BluebirdErrorTypes__;U||(U=p({CancellationError:w,TimeoutError:S,OperationalError:R,RejectionError:R,AggregateError:E}),f.defineProperty(Error,"__BluebirdErrorTypes__",{value:U,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:c,RangeError:d,CancellationError:U.CancellationError,OperationalError:U.OperationalError,TimeoutError:U.TimeoutError,AggregateError:U.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(a,s,l){var c=function(){return this===void 0}();if(c)s.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(v,y){var x=Object.getOwnPropertyDescriptor(v,y);return!(x&&!x.writable&&!x.set)}};else{var d={}.hasOwnProperty,f={}.toString,p={}.constructor.prototype,m=function(v){var y=[];for(var x in v)d.call(v,x)&&y.push(x);return y};s.exports={isArray:function(v){try{return f.call(v)==="[object Array]"}catch{return!1}},keys:m,names:m,defineProperty:function(v,y,x){return v[y]=x.value,v},getDescriptor:function(v,y){return{value:v[y]}},freeze:function(v){return v},getPrototypeOf:function(v){try{return Object(v).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(c,d){var f=c.map;c.prototype.filter=function(p,m){return f(this,p,m,d)},c.filter=function(p,m,v){return f(p,m,v,d)}}},{}],15:[function(a,s,l){s.exports=function(c,d,f){var p=a("./util"),m=c.CancellationError,v=p.errorObj,y=a("./catch_filter")(f);function x(k,j,R){this.promise=k,this.type=j,this.handler=R,this.called=!1,this.cancelPromise=null}function _(k){this.finallyHandler=k}function w(k,j){return k.cancelPromise!=null&&(arguments.length>1?k.cancelPromise._reject(j):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function S(){return O.call(this,this.promise._target()._settledValue())}function E(k){if(!w(this,k))return v.e=k,v}function O(k){var j=this.promise,R=this.handler;if(!this.called){this.called=!0;var U=this.isFinallyHandler()?R.call(j._boundValue()):R.call(j._boundValue(),k);if(U===f)return U;if(U!==void 0){j._setReturnedNonUndefined();var A=d(U,j);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var V=new m("late cancellation observer");return j._attachExtraTrace(V),v.e=V,v}A.isPending()&&A._attachCancellationCallback(new _(this))}return A._then(S,E,void 0,this,void 0)}}}return j.isRejected()?(w(this),v.e=k,v):(w(this),k)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){w(this.finallyHandler)},c.prototype._passThrough=function(k,j,R,U){return typeof k!="function"?this.then():this._then(R,U,void 0,new x(this,j,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,O,O)},c.prototype.tap=function(k){return this._passThrough(k,1,O)},c.prototype.tapCatch=function(k){var j=arguments.length;if(j===1)return this._passThrough(k,1,void 0,O);var R,U=new Array(j-1),A=0;for(R=0;R<j-1;++R){var V=arguments[R];if(!p.isObject(V))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(V)));U[A++]=V}U.length=A;var W=arguments[R];return this._passThrough(y(U,W,this),1,void 0,O)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=a("./errors").TypeError,x=a("./util"),_=x.errorObj,w=x.tryCatch,S=[];function E(O,k,j,R){if(v.cancellation()){var U=new c(f),A=this._finallyPromise=new c(f);this._promise=U.lastly(function(){return A}),U._captureStackTrace(),U._setOnCancel(this)}else(this._promise=new c(f))._captureStackTrace();this._stack=R,this._generatorFunction=O,this._receiver=k,this._generator=void 0,this._yieldHandlers=typeof j=="function"?[j].concat(S):S,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,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},E.prototype._promiseCancelled=function(){if(!this._isResolved()){var O;if(this._generator.return!==void 0)this._promise._pushContext(),O=w(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(),O=w(this._generator.throw).call(this._generator,k),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(O)}},E.prototype._promiseFulfilled=function(O){this._yieldedPromise=null,this._promise._pushContext();var k=w(this._generator.next).call(this._generator,O);this._promise._popContext(),this._continue(k)},E.prototype._promiseRejected=function(O){this._yieldedPromise=null,this._promise._attachExtraTrace(O),this._promise._pushContext();var k=w(this._generator.throw).call(this._generator,O);this._promise._popContext(),this._continue(k)},E.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var O=this._yieldedPromise;this._yieldedPromise=null,O.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(O){var k=this._promise;if(O===_)return this._cleanup(),this._cancellationPhase?k.cancel():k._rejectCallback(O.e,!1);var j=O.value;if(O.done===!0)return this._cleanup(),this._cancellationPhase?k.cancel():k._resolveCallback(j);var R=p(j,this._promise);if(R instanceof c||(R=function(A,V,W){for(var X=0;X<V.length;++X){W._pushContext();var G=w(V[X])(A);if(W._popContext(),G===_){W._pushContext();var K=c.reject(_.e);return W._popContext(),K}var ne=p(G,W);if(ne instanceof c)return ne}return null}(R,this._yieldHandlers,this._promise))!==null){var U=(R=R._target())._bitField;50397184&U?33554432&U?c._async.invoke(this._promiseFulfilled,this,R._value()):16777216&U?c._async.invoke(this._promiseRejected,this,R._reason()):this._promiseCancelled():(this._yieldedPromise=R,R._proxy(this,null))}else this._promiseRejected(new y(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(j))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(O,k){if(typeof O!="function")throw new y(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var j=Object(k).yieldHandler,R=E,U=new Error().stack;return function(){var A=O.apply(this,arguments),V=new R(void 0,void 0,j,U),W=V.promise();return V._generator=A,V._promiseFulfilled(void 0),W}},c.coroutine.addYieldHandler=function(O){if(typeof O!="function")throw new y("expecting a function but got "+x.classString(O));S.push(O)},c.spawn=function(O){if(v.deprecated("Promise.spawn()","Promise.coroutine()"),typeof O!="function")return d(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var k=new E(O,this),j=k.promise();return k._run(c.spawn),j}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=a("./util");y.canEvaluate,y.tryCatch,y.errorObj,c.join=function(){var x,_=arguments.length-1;_>0&&typeof arguments[_]=="function"&&(x=arguments[_]);var w=[].slice.call(arguments);x&&w.pop();var S=new d(w).promise();return x!==void 0?S.spread(x):S}}},{"./util":36}],18:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=c._getDomain,x=a("./util"),_=x.tryCatch,w=x.errorObj,S=c._async;function E(k,j,R,U){this.constructor$(k),this._promise._captureStackTrace();var A=y();this._callback=A===null?j:x.domainBind(A,j),this._preservedValues=U===m?new Array(this.length()):null,this._limit=R,this._inFlight=0,this._queue=[],S.invoke(this._asyncInit,this,void 0)}function O(k,j,R,U){if(typeof j!="function")return f("expecting a function but got "+x.classString(j));var A=0;if(R!==void 0){if(typeof R!="object"||R===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(R)));if(typeof R.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(R.concurrency)));A=R.concurrency}return new E(k,j,A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,U).promise()}x.inherits(E,d),E.prototype._asyncInit=function(){this._init$(void 0,-2)},E.prototype._init=function(){},E.prototype._promiseFulfilled=function(k,j){var R=this._values,U=this.length(),A=this._preservedValues,V=this._limit;if(j<0){if(R[j=-1*j-1]=k,V>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(V>=1&&this._inFlight>=V)return R[j]=k,this._queue.push(j),!1;A!==null&&(A[j]=k);var W=this._promise,X=this._callback,G=W._boundValue();W._pushContext();var K=_(X).call(G,k,j,U),ne=W._popContext();if(v.checkForgottenReturns(K,ne,A!==null?"Promise.filter":"Promise.map",W),K===w)return this._reject(K.e),!0;var le=p(K,this._promise);if(le instanceof c){var Z=(le=le._target())._bitField;if(!(50397184&Z))return V>=1&&this._inFlight++,R[j]=le,le._proxy(this,-1*(j+1)),!1;if(!(33554432&Z))return 16777216&Z?(this._reject(le._reason()),!0):(this._cancel(),!0);K=le._value()}R[j]=K}return++this._totalResolved>=U&&(A!==null?this._filter(R,A):this._resolve(R),!0)},E.prototype._drainQueue=function(){for(var k=this._queue,j=this._limit,R=this._values;k.length>0&&this._inFlight<j;){if(this._isResolved())return;var U=k.pop();this._promiseFulfilled(R[U],U)}},E.prototype._filter=function(k,j){for(var R=j.length,U=new Array(R),A=0,V=0;V<R;++V)k[V]&&(U[A++]=j[V]);U.length=A,this._resolve(U)},E.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(k,j){return O(this,k,j,null)},c.map=function(k,j,R,U){return O(k,j,R,U)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(c,d,f,p,m){var v=a("./util"),y=v.tryCatch;c.method=function(x){if(typeof x!="function")throw new c.TypeError("expecting a function but got "+v.classString(x));return function(){var _=new c(d);_._captureStackTrace(),_._pushContext();var w=y(x).apply(this,arguments),S=_._popContext();return m.checkForgottenReturns(w,S,"Promise.method",_),_._resolveFromSyncValue(w),_}},c.attempt=c.try=function(x){if(typeof x!="function")return p("expecting a function but got "+v.classString(x));var _,w=new c(d);if(w._captureStackTrace(),w._pushContext(),arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],E=arguments[2];_=v.isArray(S)?y(x).apply(E,S):y(x).call(E,S)}else _=y(x)();var O=w._popContext();return m.checkForgottenReturns(_,O,"Promise.try",w),w._resolveFromSyncValue(_),w},c.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,l){var c=a("./util"),d=c.maybeWrapAsError,f=a("./errors").OperationalError,p=a("./es5"),m=/^(?:name|message|stack|cause)$/;function v(y){var x;if(function(E){return E instanceof Error&&p.getPrototypeOf(E)===Error.prototype}(y)){(x=new f(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var _=p.keys(y),w=0;w<_.length;++w){var S=_[w];m.test(S)||(x[S]=y[S])}return x}return c.markAsOriginatingFromRejection(y),y}s.exports=function(y,x){return function(_,w){if(y!==null){if(_){var S=v(d(_));y._attachExtraTrace(S),y._reject(S)}else if(x){var E=[].slice.call(arguments,1);y._fulfill(E)}else y._fulfill(w);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(c){var d=a("./util"),f=c._async,p=d.tryCatch,m=d.errorObj;function v(_,w){if(!d.isArray(_))return y.call(this,_,w);var S=p(w).apply(this._boundValue(),[null].concat(_));S===m&&f.throwLater(S.e)}function y(_,w){var S=this._boundValue(),E=_===void 0?p(w).call(S,null):p(w).call(S,null,_);E===m&&f.throwLater(E.e)}function x(_,w){if(!_){var S=new Error(_+"");S.cause=_,_=S}var E=p(w).call(this._boundValue(),_);E===m&&f.throwLater(E.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,w){if(typeof _=="function"){var S=y;w!==void 0&&Object(w).spread&&(S=v),this._then(S,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var c=function(){return new E(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},d=function(){return new F.PromiseInspection(this._target())},f=function(z){return F.reject(new E(z))};function p(){}var m,v={},y=a("./util");m=y.isNode?function(){var z=r.domain;return z===void 0&&(z=null),z}:function(){return null},y.notEnumerableProp(F,"_getDomain",m);var x=a("./es5"),_=a("./async"),w=new _;x.defineProperty(F,"_async",{value:w});var S=a("./errors"),E=F.TypeError=S.TypeError;F.RangeError=S.RangeError;var O=F.CancellationError=S.CancellationError;F.TimeoutError=S.TimeoutError,F.OperationalError=S.OperationalError,F.RejectionError=S.OperationalError,F.AggregateError=S.AggregateError;var k=function(){},j={},R={},U=a("./thenables")(F,k),A=a("./promise_array")(F,k,U,f,p),V=a("./context")(F),W=V.create,X=a("./debuggability")(F,V),G=(X.CapturedTrace,a("./finally")(F,U,R)),K=a("./catch_filter")(R),ne=a("./nodeback"),le=y.errorObj,Z=y.tryCatch;function F(z){z!==k&&function(q,ie){if(q==null||q.constructor!==F)throw new E(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ie!="function")throw new E("expecting a function but got "+y.classString(ie))}(this,z),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(z),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function D(z){this.promise._resolveCallback(z)}function H(z){this.promise._rejectCallback(z,!1)}function re(z){var q=new F(k);q._fulfillmentHandler0=z,q._rejectionHandler0=z,q._promise0=z,q._receiver0=z}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(z){var q=arguments.length;if(q>1){var ie,ae=new Array(q-1),he=0;for(ie=0;ie<q-1;++ie){var C=arguments[ie];if(!y.isObject(C))return f("Catch statement predicate: expecting an object but got "+y.classString(C));ae[he++]=C}return ae.length=he,z=arguments[ie],this.then(void 0,K(ae,z,this))}return this.then(void 0,z)},F.prototype.reflect=function(){return this._then(d,d,void 0,this,void 0)},F.prototype.then=function(z,q){if(X.warnings()&&arguments.length>0&&typeof z!="function"&&typeof q!="function"){var ie=".then() only accepts functions but was passed: "+y.classString(z);arguments.length>1&&(ie+=", "+y.classString(q)),this._warn(ie)}return this._then(z,q,void 0,void 0,void 0)},F.prototype.done=function(z,q){this._then(z,q,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(z){return typeof z!="function"?f("expecting a function but got "+y.classString(z)):this.all()._then(z,void 0,void 0,j,void 0)},F.prototype.toJSON=function(){var z={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(z.fulfillmentValue=this.value(),z.isFulfilled=!0):this.isRejected()&&(z.rejectionReason=this.reason(),z.isRejected=!0),z},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},F.prototype.error=function(z){return this.caught(y.originatesFromRejection,z)},F.getNewLibraryCopy=s.exports,F.is=function(z){return z instanceof F},F.fromNode=F.fromCallback=function(z){var q=new F(k);q._captureStackTrace();var ie=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=Z(z)(ne(q,ie));return ae===le&&q._rejectCallback(ae.e,!0),q._isFateSealed()||q._setAsyncGuaranteed(),q},F.all=function(z){return new A(z).promise()},F.cast=function(z){var q=U(z);return q instanceof F||((q=new F(k))._captureStackTrace(),q._setFulfilled(),q._rejectionHandler0=z),q},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(z){var q=new F(k);return q._captureStackTrace(),q._rejectCallback(z,!0),q},F.setScheduler=function(z){if(typeof z!="function")throw new E("expecting a function but got "+y.classString(z));return w.setScheduler(z)},F.prototype._then=function(z,q,ie,ae,he){var C=he!==void 0,M=C?he:new F(k),$=this._target(),J=$._bitField;C||(M._propagateFrom(this,3),M._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&J?this._boundValue():$===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,M));var ee=m();if(50397184&J){var se,ge,Me=$._settlePromiseCtx;33554432&J?(ge=$._rejectionHandler0,se=z):16777216&J?(ge=$._fulfillmentHandler0,se=q,$._unsetRejectionIsUnhandled()):(Me=$._settlePromiseLateCancellationObserver,ge=new O("late cancellation observer"),$._attachExtraTrace(ge),se=q),w.invoke(Me,$,{handler:ee===null?se:typeof se=="function"&&y.domainBind(ee,se),promise:M,receiver:ae,value:ge})}else $._addCallbacks(z,q,M,ae,ee);return M},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(z){this._bitField=-65536&this._bitField|65535&z},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){w.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(z){var q=z===0?this._receiver0:this[4*z-4+3];if(q!==v)return q===void 0&&this._isBound()?this._boundValue():q},F.prototype._promiseAt=function(z){return this[4*z-4+2]},F.prototype._fulfillmentHandlerAt=function(z){return this[4*z-4+0]},F.prototype._rejectionHandlerAt=function(z){return this[4*z-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(z){z._bitField;var q=z._fulfillmentHandler0,ie=z._rejectionHandler0,ae=z._promise0,he=z._receiverAt(0);he===void 0&&(he=v),this._addCallbacks(q,ie,ae,he,null)},F.prototype._migrateCallbackAt=function(z,q){var ie=z._fulfillmentHandlerAt(q),ae=z._rejectionHandlerAt(q),he=z._promiseAt(q),C=z._receiverAt(q);C===void 0&&(C=v),this._addCallbacks(ie,ae,he,C,null)},F.prototype._addCallbacks=function(z,q,ie,ae,he){var C=this._length();if(C>=65531&&(C=0,this._setLength(0)),C===0)this._promise0=ie,this._receiver0=ae,typeof z=="function"&&(this._fulfillmentHandler0=he===null?z:y.domainBind(he,z)),typeof q=="function"&&(this._rejectionHandler0=he===null?q:y.domainBind(he,q));else{var M=4*C-4;this[M+2]=ie,this[M+3]=ae,typeof z=="function"&&(this[M+0]=he===null?z:y.domainBind(he,z)),typeof q=="function"&&(this[M+1]=he===null?q:y.domainBind(he,q))}return this._setLength(C+1),C},F.prototype._proxy=function(z,q){this._addCallbacks(void 0,void 0,q,z,null)},F.prototype._resolveCallback=function(z,q){if(!(117506048&this._bitField)){if(z===this)return this._rejectCallback(c(),!1);var ie=U(z,this);if(!(ie instanceof F))return this._fulfill(z);q&&this._propagateFrom(ie,2);var ae=ie._target();if(ae!==this){var he=ae._bitField;if(50397184&he)if(33554432&he)this._fulfill(ae._value());else if(16777216&he)this._reject(ae._reason());else{var $=new O("late cancellation observer");ae._attachExtraTrace($),this._reject($)}else{var C=this._length();C>0&&ae._migrateCallback0(this);for(var M=1;M<C;++M)ae._migrateCallbackAt(this,M);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(c())}},F.prototype._rejectCallback=function(z,q,ie){var ae=y.ensureErrorObject(z),he=ae===z;if(!he&&!ie&&X.warnings()){var C="a promise was rejected with a non-error: "+y.classString(z);this._warn(C,!0)}this._attachExtraTrace(ae,!!q&&he),this._reject(z)},F.prototype._resolveFromExecutor=function(z){if(z!==k){var q=this;this._captureStackTrace(),this._pushContext();var ie=!0,ae=this._execute(z,function(he){q._resolveCallback(he)},function(he){q._rejectCallback(he,ie)});ie=!1,this._popContext(),ae!==void 0&&q._rejectCallback(ae,!0)}},F.prototype._settlePromiseFromHandler=function(z,q,ie,ae){var he=ae._bitField;if(!(65536&he)){var C;ae._pushContext(),q===j?ie&&typeof ie.length=="number"?C=Z(z).apply(this._boundValue(),ie):(C=le).e=new E("cannot .spread() a non-array: "+y.classString(ie)):C=Z(z).call(q,ie);var M=ae._popContext();!(65536&(he=ae._bitField))&&(C===R?ae._reject(ie):C===le?ae._rejectCallback(C.e,!1):(X.checkForgottenReturns(C,M,"",ae,this),ae._resolveCallback(C)))}},F.prototype._target=function(){for(var z=this;z._isFollowing();)z=z._followee();return z},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(z){this._rejectionHandler0=z},F.prototype._settlePromise=function(z,q,ie,ae){var he=z instanceof F,C=this._bitField,M=(134217728&C)!=0;65536&C?(he&&z._invokeInternalOnCancel(),ie instanceof G&&ie.isFinallyHandler()?(ie.cancelPromise=z,Z(q).call(ie,ae)===le&&z._reject(le.e)):q===d?z._fulfill(d.call(ie)):ie instanceof p?ie._promiseCancelled(z):he||z instanceof A?z._cancel():ie.cancel()):typeof q=="function"?he?(M&&z._setAsyncGuaranteed(),this._settlePromiseFromHandler(q,ie,ae,z)):q.call(ie,ae,z):ie instanceof p?ie._isResolved()||(33554432&C?ie._promiseFulfilled(ae,z):ie._promiseRejected(ae,z)):he&&(M&&z._setAsyncGuaranteed(),33554432&C?z._fulfill(ae):z._reject(ae))},F.prototype._settlePromiseLateCancellationObserver=function(z){var q=z.handler,ie=z.promise,ae=z.receiver,he=z.value;typeof q=="function"?ie instanceof F?this._settlePromiseFromHandler(q,ae,he,ie):q.call(ae,he,ie):ie instanceof F&&ie._reject(he)},F.prototype._settlePromiseCtx=function(z){this._settlePromise(z.promise,z.handler,z.receiver,z.value)},F.prototype._settlePromise0=function(z,q,ie){var ae=this._promise0,he=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,z,he,q)},F.prototype._clearCallbackDataAtIndex=function(z){var q=4*z-4;this[q+2]=this[q+3]=this[q+0]=this[q+1]=void 0},F.prototype._fulfill=function(z){var q=this._bitField;if(!((117506048&q)>>>16)){if(z===this){var ie=c();return this._attachExtraTrace(ie),this._reject(ie)}this._setFulfilled(),this._rejectionHandler0=z,(65535&q)>0&&(134217728&q?this._settlePromises():w.settlePromises(this))}},F.prototype._reject=function(z){var q=this._bitField;if(!((117506048&q)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=z,this._isFinal())return w.fatalError(z,y.isNode);(65535&q)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(z,q){for(var ie=1;ie<z;ie++){var ae=this._fulfillmentHandlerAt(ie),he=this._promiseAt(ie),C=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(he,ae,C,q)}},F.prototype._rejectPromises=function(z,q){for(var ie=1;ie<z;ie++){var ae=this._rejectionHandlerAt(ie),he=this._promiseAt(ie),C=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(he,ae,C,q)}},F.prototype._settlePromises=function(){var z=this._bitField,q=65535&z;if(q>0){if(16842752&z){var ie=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ie,z),this._rejectPromises(q,ie)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,z),this._fulfillPromises(q,ae)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var z=this._bitField;return 33554432&z?this._rejectionHandler0:16777216&z?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return X.deprecated("Promise.defer","new Promise"),{promise:new F(k),resolve:D,reject:H}},y.notEnumerableProp(F,"_makeSelfResolutionError",c),a("./method")(F,k,U,f,X),a("./bind")(F,k,U,X),a("./cancel")(F,A,f,X),a("./direct_resolve")(F),a("./synchronous_inspection")(F),a("./join")(F,A,U,k,w,m),F.Promise=F,F.version="3.5.1",a("./map.js")(F,A,f,U,k,X),a("./call_get.js")(F),a("./using.js")(F,f,U,W,k,X),a("./timers.js")(F,k,X),a("./generators.js")(F,f,k,U,p,X),a("./nodeify.js")(F),a("./promisify.js")(F,k),a("./props.js")(F,A,U,f),a("./race.js")(F,k,U,f),a("./reduce.js")(F,A,f,U,k,X),a("./settle.js")(F,A,X),a("./some.js")(F,A,f),a("./filter.js")(F,k),a("./each.js")(F,k),a("./any.js")(F),y.toFastProperties(F),y.toFastProperties(F.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new F(k)),X.setBounds(_.firstLineError,y.lastLineError),F}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,l){s.exports=function(c,d,f,p,m){var v=a("./util");function y(x){var _=this._promise=new c(d);x instanceof c&&_._propagateFrom(x,3),_._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(y,m),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(_,w){var S=f(this._values,this._promise);if(S instanceof c){var E=(S=S._target())._bitField;if(this._values=S,(50397184&E)==0)return this._promise._setAsyncGuaranteed(),S._then(x,this._reject,void 0,this,w);if(!(33554432&E))return 16777216&E?this._reject(S._reason()):this._cancel();S=S._value()}if((S=v.asArray(S))!==null)S.length!==0?this._iterate(S):w===-5?this._resolveEmptyArray():this._resolve(function(k){switch(w){case-2:return[];case-3:return{};case-6:return new Map}}());else{var O=p("expecting an array or an iterable object but got "+v.classString(S)).reason();this._promise._rejectCallback(O,!1)}},y.prototype._iterate=function(x){var _=this.getActualLength(x.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var w=this._promise,S=!1,E=null,O=0;O<_;++O){var k=f(x[O],w);E=k instanceof c?(k=k._target())._bitField:null,S?E!==null&&k.suppressUnhandledRejections():E!==null?50397184&E?S=33554432&E?this._promiseFulfilled(k._value(),O):16777216&E?this._promiseRejected(k._reason(),O):this._promiseCancelled(O):(k._proxy(this,O),this._values[O]=k):S=this._promiseFulfilled(k,O)}S||w._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var _=0;_<x.length;++_)x[_]instanceof c&&x[_].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(x){return x},y}},{"./util":36}],24:[function(a,s,l){s.exports=function(c,d){var f={},p=a("./util"),m=a("./nodeback"),v=p.withAppended,y=p.maybeWrapAsError,x=p.canEvaluate,_=a("./errors").TypeError,w={__isPromisified__:!0},S=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),E=function(W){return p.isIdentifier(W)&&W.charAt(0)!=="_"&&W!=="constructor"};function O(W){return!S.test(W)}function k(W){try{return W.__isPromisified__===!0}catch{return!1}}function j(W,X,G){var K=p.getDataPropertyOrDefault(W,X+G,w);return!!K&&k(K)}function R(W,X,G,K){for(var ne=p.inheritedDataKeys(W),le=[],Z=0;Z<ne.length;++Z){var F=ne[Z],D=W[F],H=K===E||E(F);typeof D!="function"||k(D)||j(W,F,X)||!K(F,D,W,H)||le.push(F,D)}return function(re,z,q){for(var ie=0;ie<re.length;ie+=2){var ae=re[ie];if(q.test(ae)){for(var he=ae.replace(q,""),C=0;C<re.length;C+=2)if(re[C]===he)throw new _(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",z))}}}(le,X,G),le}var U=function(W){return W.replace(/([$])/,"\\$")},A=x?void 0:function(W,X,G,K,ne,le){var Z=function(){return this}(),F=W;function D(){var H=X;X===f&&(H=this);var re=new c(d);re._captureStackTrace();var z=typeof F=="string"&&this!==Z?this[F]:W,q=m(re,le);try{z.apply(H,v(arguments,q))}catch(ie){re._rejectCallback(y(ie),!0,!0)}return re._isFateSealed()||re._setAsyncGuaranteed(),re}return typeof F=="string"&&(W=K),p.notEnumerableProp(D,"__isPromisified__",!0),D};function V(W,X,G,K,ne){for(var le=new RegExp(U(X)+"$"),Z=R(W,X,le,G),F=0,D=Z.length;F<D;F+=2){var H=Z[F],re=Z[F+1],z=H+X;if(K===A)W[z]=A(H,f,H,re,X,ne);else{var q=K(re,function(){return A(H,f,H,re,X,ne)});p.notEnumerableProp(q,"__isPromisified__",!0),W[z]=q}}return p.toFastProperties(W),W}c.promisify=function(W,X){if(typeof W!="function")throw new _("expecting a function but got "+p.classString(W));if(k(W))return W;var G=(X=Object(X)).context===void 0?f:X.context,K=!!X.multiArgs,ne=function(le,Z,F){return A(le,Z,void 0,le,null,K)}(W,G);return p.copyDescriptors(W,ne,O),ne},c.promisifyAll=function(W,X){if(typeof W!="function"&&typeof W!="object")throw new _(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var G=!!(X=Object(X)).multiArgs,K=X.suffix;typeof K!="string"&&(K="Async");var ne=X.filter;typeof ne!="function"&&(ne=E);var le=X.promisifier;if(typeof le!="function"&&(le=A),!p.isIdentifier(K))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var Z=p.inheritedDataKeys(W),F=0;F<Z.length;++F){var D=W[Z[F]];Z[F]!=="constructor"&&p.isClass(D)&&(V(D.prototype,K,ne,le,G),V(D,K,ne,le,G))}return V(W,K,ne,le,G)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(c,d,f,p){var m,v=a("./util"),y=v.isObject,x=a("./es5");typeof Map=="function"&&(m=Map);var _=function(){var E=0,O=0;function k(j,R){this[E]=j,this[E+O]=R,E++}return function(j){O=j.size,E=0;var R=new Array(2*j.size);return j.forEach(k,R),R}}();function w(E){var O,k=!1;if(m!==void 0&&E instanceof m)O=_(E),k=!0;else{var j=x.keys(E),R=j.length;O=new Array(2*R);for(var U=0;U<R;++U){var A=j[U];O[U]=E[A],O[U+R]=A}}this.constructor$(O),this._isMap=k,this._init$(void 0,k?-6:-3)}function S(E){var O,k=f(E);return y(k)?(O=k instanceof c?k._then(c.props,void 0,void 0,void 0,void 0):new w(k).promise(),k instanceof c&&O._propagateFrom(k,2),O):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}v.inherits(w,d),w.prototype._init=function(){},w.prototype._promiseFulfilled=function(E,O){if(this._values[O]=E,++this._totalResolved>=this._length){var k;if(this._isMap)k=function(A){for(var V=new m,W=A.length/2|0,X=0;X<W;++X){var G=A[W+X],K=A[X];V.set(G,K)}return V}(this._values);else{k={};for(var j=this.length(),R=0,U=this.length();R<U;++R)k[this._values[R+j]]=this._values[R]}return this._resolve(k),!0}return!1},w.prototype.shouldCopyValues=function(){return!1},w.prototype.getActualLength=function(E){return E>>1},c.prototype.props=function(){return S(this)},c.props=function(E){return S(E)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function c(d){this._capacity=d,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(d){return this._capacity<d},c.prototype._pushOne=function(d){var f=this.length();this._checkCapacity(f+1),this[this._front+f&this._capacity-1]=d,this._length=f+1},c.prototype.push=function(d,f,p){var m=this.length()+3;if(this._willBeOverCapacity(m))return this._pushOne(d),this._pushOne(f),void this._pushOne(p);var v=this._front+m-3;this._checkCapacity(m);var y=this._capacity-1;this[v+0&y]=d,this[v+1&y]=f,this[v+2&y]=p,this._length=m},c.prototype.shift=function(){var d=this._front,f=this[d];return this[d]=void 0,this._front=d+1&this._capacity-1,this._length--,f},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(d){this._capacity<d&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(d){var f=this._capacity;this._capacity=d,function(p,m,v,y,x){for(var _=0;_<x;++_)v[_+y]=p[_+0],p[_+0]=void 0}(this,0,this,f,this._front+this._length&f-1)},s.exports=c},{}],27:[function(a,s,l){s.exports=function(c,d,f,p){var m=a("./util"),v=function(x){return x.then(function(_){return y(_,x)})};function y(x,_){var w=f(x);if(w instanceof c)return v(w);if((x=m.asArray(x))===null)return p("expecting an array or an iterable object but got "+m.classString(x));var S=new c(d);_!==void 0&&S._propagateFrom(_,3);for(var E=S._fulfill,O=S._reject,k=0,j=x.length;k<j;++k){var R=x[k];(R!==void 0||k in x)&&c.cast(R)._then(E,O,void 0,S,null)}return S}c.race=function(x){return y(x,void 0)},c.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=c._getDomain,x=a("./util"),_=x.tryCatch;function w(j,R,U,A){this.constructor$(j);var V=y();this._fn=V===null?R:x.domainBind(V,R),U!==void 0&&(U=c.resolve(U))._attachCancellationCallback(this),this._initialValue=U,this._currentCancellable=null,this._eachValues=A===m?Array(this._length):A===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function S(j,R){this.isFulfilled()?R._resolve(j):R._reject(j)}function E(j,R,U,A){return typeof R!="function"?f("expecting a function but got "+x.classString(R)):new w(j,R,U,A).promise()}function O(j){this.accum=j,this.array._gotAccum(j);var R=p(this.value,this.array._promise);return R instanceof c?(this.array._currentCancellable=R,R._then(k,void 0,void 0,this,void 0)):k.call(this,R)}function k(j){var R,U=this.array,A=U._promise,V=_(U._fn);A._pushContext(),(R=U._eachValues!==void 0?V.call(A._boundValue(),j,this.index,this.length):V.call(A._boundValue(),this.accum,j,this.index,this.length))instanceof c&&(U._currentCancellable=R);var W=A._popContext();return v.checkForgottenReturns(R,W,U._eachValues!==void 0?"Promise.each":"Promise.reduce",A),R}x.inherits(w,d),w.prototype._gotAccum=function(j){this._eachValues!==void 0&&this._eachValues!==null&&j!==m&&this._eachValues.push(j)},w.prototype._eachComplete=function(j){return this._eachValues!==null&&this._eachValues.push(j),this._eachValues},w.prototype._init=function(){},w.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},w.prototype.shouldCopyValues=function(){return!1},w.prototype._resolve=function(j){this._promise._resolveCallback(j),this._values=null},w.prototype._resultCancelled=function(j){if(j===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},w.prototype._iterate=function(j){var R,U;this._values=j;var A=j.length;if(this._initialValue!==void 0?(R=this._initialValue,U=0):(R=c.resolve(j[0]),U=1),this._currentCancellable=R,!R.isRejected())for(;U<A;++U){var V={accum:null,value:j[U],index:U,length:A,array:this};R=R._then(O,void 0,void 0,V,void 0)}this._eachValues!==void 0&&(R=R._then(this._eachComplete,void 0,void 0,this,void 0)),R._then(S,S,void 0,R,this)},c.prototype.reduce=function(j,R){return E(this,j,R,null)},c.reduce=function(j,R,U,A){return E(j,R,U,A)}}},{"./util":36}],29:[function(a,s,l){var c,d=a("./util"),f=d.getNativePromise();if(d.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,m=r.nextTick;c=d.isRecentNode?function(y){p.call(i,y)}:function(y){m.call(r,y)}}else if(typeof f=="function"&&typeof f.resolve=="function"){var v=f.resolve();c=function(y){v.then(y)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var y=document.createElement("div"),x={attributes:!0},_=!1,w=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),_=!1}).observe(w,x),function(S){var E=new MutationObserver(function(){E.disconnect(),S()});E.observe(y,x),_||(_=!0,w.classList.toggle("foo"))}}();s.exports=c},{"./util":36}],30:[function(a,s,l){s.exports=function(c,d,f){var p=c.PromiseInspection;function m(v){this.constructor$(v)}a("./util").inherits(m,d),m.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,y){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(y,x)},m.prototype._promiseRejected=function(v,y){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(y,x)},c.settle=function(v){return f.deprecated(".settle()",".reflect()"),new m(v).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(c,d,f){var p=a("./util"),m=a("./errors").RangeError,v=a("./errors").AggregateError,y=p.isArray,x={};function _(S){this.constructor$(S),this._howMany=0,this._unwrap=!1,this._initialized=!1}function w(S,E){if((0|E)!==E||E<0)return f(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var O=new _(S),k=O.promise();return O.setHowMany(E),O.init(),k}p.inherits(_,d),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var S=y(this._values);!this._isResolved()&&S&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(S){this._howMany=S},_.prototype._promiseFulfilled=function(S){return this._addFulfilled(S),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},_.prototype._promiseRejected=function(S){return this._addRejected(S),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var S=new v,E=this.length();E<this._values.length;++E)this._values[E]!==x&&S.push(this._values[E]);return S.length>0?this._reject(S):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(S){this._values.push(S)},_.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(S){var E="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new m(E)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(S,E){return w(S,E)},c.prototype.some=function(S){return w(this,S)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(c){function d(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}d.prototype._settledValue=function(){return this._settledValueField};var f=d.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=d.prototype.error=d.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=d.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=d.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=d.prototype.isPending=function(){return(50397184&this._bitField)==0},x=d.prototype.isResolved=function(){return(50331648&this._bitField)!=0};d.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 y.call(this._target())},c.prototype.isRejected=function(){return v.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 f.call(this._target())},c.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=d}},{}],33:[function(a,s,l){s.exports=function(c,d){var f=a("./util"),p=f.errorObj,m=f.isObject,v={}.hasOwnProperty;return function(y,x){if(m(y)){if(y instanceof c)return y;var _=function(S){try{return function(E){return E.then}(S)}catch(E){return p.e=E,p}}(y);if(_===p){x&&x._pushContext();var w=c.reject(_.e);return x&&x._popContext(),w}if(typeof _=="function")return function(S){try{return v.call(S,"_promise0")}catch{return!1}}(y)?(w=new c(d),y._then(w._fulfill,w._reject,void 0,w,null),w):function(S,E,O){var k=new c(d),j=k;O&&O._pushContext(),k._captureStackTrace(),O&&O._popContext();var R=!0,U=f.tryCatch(E).call(S,function(A){k&&(k._resolveCallback(A),k=null)},function(A){k&&(k._rejectCallback(A,R,!0),k=null)});return R=!1,k&&U===p&&(k._rejectCallback(U.e,!0,!0),k=null),j}(y,_,x)}return y}}},{"./util":36}],34:[function(a,s,l){s.exports=function(c,d,f){var p=a("./util"),m=c.TimeoutError;function v(S){this.handle=S}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(S){return x(+this).thenReturn(S)},x=c.delay=function(S,E){var O,k;return E!==void 0?(O=c.resolve(E)._then(y,null,null,S,void 0),f.cancellation()&&E instanceof c&&O._setOnCancel(E)):(O=new c(d),k=setTimeout(function(){O._fulfill()},+S),f.cancellation()&&O._setOnCancel(new v(k)),O._captureStackTrace()),O._setAsyncGuaranteed(),O};function _(S){return clearTimeout(this.handle),S}function w(S){throw clearTimeout(this.handle),S}c.prototype.delay=function(S){return x(S,this)},c.prototype.timeout=function(S,E){var O,k;S=+S;var j=new v(setTimeout(function(){O.isPending()&&function(R,U,A){var V;V=typeof U!="string"?U instanceof Error?U:new m("operation timed out"):new m(U),p.markAsOriginatingFromRejection(V),R._attachExtraTrace(V),R._reject(V),A!=null&&A.cancel()}(O,E,k)},S));return f.cancellation()?(k=this.then(),(O=k._then(_,w,void 0,j,void 0))._setOnCancel(j)):O=this._then(_,w,void 0,j,void 0),O}}},{"./util":36}],35:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=a("./util"),x=a("./errors").TypeError,_=a("./util").inherits,w=y.errorObj,S=y.tryCatch,E={};function O(V){setTimeout(function(){throw V},0)}function k(V,W){var X=0,G=V.length,K=new c(m);return function ne(){if(X>=G)return K._fulfill();var le=function(Z){var F=f(Z);return F!==Z&&typeof Z._isDisposable=="function"&&typeof Z._getDisposer=="function"&&Z._isDisposable()&&F._setDisposable(Z._getDisposer()),F}(V[X++]);if(le instanceof c&&le._isDisposable()){try{le=f(le._getDisposer().tryDispose(W),V.promise)}catch(Z){return O(Z)}if(le instanceof c)return le._then(ne,O,null,null,null)}ne()}(),K}function j(V,W,X){this._data=V,this._promise=W,this._context=X}function R(V,W,X){this.constructor$(V,W,X)}function U(V){return j.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function A(V){this.length=V,this.promise=null,this[V-1]=null}j.prototype.data=function(){return this._data},j.prototype.promise=function(){return this._promise},j.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():E},j.prototype.tryDispose=function(V){var W=this.resource(),X=this._context;X!==void 0&&X._pushContext();var G=W!==E?this.doDispose(W,V):null;return X!==void 0&&X._popContext(),this._promise._unsetDisposable(),this._data=null,G},j.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"},_(R,j),R.prototype.doDispose=function(V,W){return this.data().call(V,V,W)},A.prototype._resultCancelled=function(){for(var V=this.length,W=0;W<V;++W){var X=this[W];X instanceof c&&X.cancel()}},c.using=function(){var V=arguments.length;if(V<2)return d("you must pass at least 2 arguments to Promise.using");var W,X=arguments[V-1];if(typeof X!="function")return d("expecting a function but got "+y.classString(X));var G=!0;V===2&&Array.isArray(arguments[0])?(V=(W=arguments[0]).length,G=!1):(W=arguments,V--);for(var K=new A(V),ne=0;ne<V;++ne){var le=W[ne];if(j.isDisposer(le)){var Z=le;(le=le.promise())._setDisposable(Z)}else{var F=f(le);F instanceof c&&(le=F._then(U,null,null,{resources:K,index:ne},void 0))}K[ne]=le}var D=new Array(K.length);for(ne=0;ne<D.length;++ne)D[ne]=c.resolve(K[ne]).reflect();var H=c.all(D).then(function(z){for(var q=0;q<z.length;++q){var ie=z[q];if(ie.isRejected())return w.e=ie.error(),w;if(!ie.isFulfilled())return void H.cancel();z[q]=ie.value()}re._pushContext(),X=S(X);var ae=G?X.apply(void 0,z):X(z),he=re._popContext();return v.checkForgottenReturns(ae,he,"Promise.using",re),ae}),re=H.lastly(function(){var z=new c.PromiseInspection(H);return k(K,z)});return K.promise=re,re._setOnCancel(K),re},c.prototype._setDisposable=function(V){this._bitField=131072|this._bitField,this._disposer=V},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(V){if(typeof V=="function")return new R(V,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var c,d=a("./es5"),f=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var G=c;return c=null,G.apply(this,arguments)}catch(K){return p.e=K,p}}function y(G){return G==null||G===!0||G===!1||typeof G=="string"||typeof G=="number"}function x(G,K,ne){if(y(G))return G;var le={value:ne,configurable:!0,enumerable:!1,writable:!0};return d.defineProperty(G,K,le),G}var _=function(){var G=[Array.prototype,Object.prototype,Function.prototype],K=function(Z){for(var F=0;F<G.length;++F)if(G[F]===Z)return!0;return!1};if(d.isES5){var ne=Object.getOwnPropertyNames;return function(Z){for(var F=[],D=Object.create(null);Z!=null&&!K(Z);){var H;try{H=ne(Z)}catch{return F}for(var re=0;re<H.length;++re){var z=H[re];if(!D[z]){D[z]=!0;var q=Object.getOwnPropertyDescriptor(Z,z);q!=null&&q.get==null&&q.set==null&&F.push(z)}}Z=d.getPrototypeOf(Z)}return F}}var le={}.hasOwnProperty;return function(Z){if(K(Z))return[];var F=[];e:for(var D in Z)if(le.call(Z,D))F.push(D);else{for(var H=0;H<G.length;++H)if(le.call(G[H],D))continue e;F.push(D)}return F}}(),w=/this\s*\.\s*\S+\s*=/,S=/^[a-z$_][a-z$_0-9]*$/i;function E(G){try{return G+""}catch{return"[no string representation]"}}function O(G){return G instanceof Error||G!==null&&typeof G=="object"&&typeof G.message=="string"&&typeof G.name=="string"}function k(G){return O(G)&&d.propertyIsWritable(G,"stack")}var j="stack"in new Error?function(G){return k(G)?G:new Error(E(G))}:function(G){if(k(G))return G;try{throw new Error(E(G))}catch(K){return K}};function R(G){return{}.toString.call(G)}var U=function(G){return d.isArray(G)?G:null};if(typeof Symbol<"u"&&Symbol.iterator){var A=typeof Array.from=="function"?function(G){return Array.from(G)}:function(G){for(var K,ne=[],le=G[Symbol.iterator]();!(K=le.next()).done;)ne.push(K.value);return ne};U=function(G){return d.isArray(G)?G:G!=null&&typeof G[Symbol.iterator]=="function"?A(G):null}}var V=r!==void 0&&R(r).toLowerCase()==="[object process]",W=r!==void 0&&r.env!==void 0,X={isClass:function(G){try{if(typeof G=="function"){var K=d.names(G.prototype),ne=d.isES5&&K.length>1,le=K.length>0&&!(K.length===1&&K[0]==="constructor"),Z=w.test(G+"")&&d.names(G).length>0;if(ne||le||Z)return!0}return!1}catch{return!1}},isIdentifier:function(G){return S.test(G)},inheritedDataKeys:_,getDataPropertyOrDefault:function(G,K,ne){if(!d.isES5)return{}.hasOwnProperty.call(G,K)?G[K]:void 0;var le=Object.getOwnPropertyDescriptor(G,K);return le!=null?le.get==null&&le.set==null?le.value:ne:void 0},thrower:function(G){throw G},isArray:d.isArray,asArray:U,notEnumerableProp:x,isPrimitive:y,isObject:function(G){return typeof G=="function"||typeof G=="object"&&G!==null},isError:O,canEvaluate:f,errorObj:p,tryCatch:function(G){return c=G,v},inherits:function(G,K){var ne={}.hasOwnProperty;function le(){for(var Z in this.constructor=G,this.constructor$=K,K.prototype)ne.call(K.prototype,Z)&&Z.charAt(Z.length-1)!=="$"&&(this[Z+"$"]=K.prototype[Z])}return le.prototype=K.prototype,G.prototype=new le,G.prototype},withAppended:function(G,K){var ne,le=G.length,Z=new Array(le+1);for(ne=0;ne<le;++ne)Z[ne]=G[ne];return Z[ne]=K,Z},maybeWrapAsError:function(G){return y(G)?new Error(E(G)):G},toFastProperties:function(G){return G},filledRange:function(G,K,ne){for(var le=new Array(G),Z=0;Z<G;++Z)le[Z]=K+Z+ne;return le},toString:E,canAttachTrace:k,ensureErrorObject:j,originatesFromRejection:function(G){return G!=null&&(G instanceof Error.__BluebirdErrorTypes__.OperationalError||G.isOperational===!0)},markAsOriginatingFromRejection:function(G){try{x(G,"isOperational",!0)}catch{}},classString:R,copyDescriptors:function(G,K,ne){for(var le=d.names(G),Z=0;Z<le.length;++Z){var F=le[Z];if(ne(F))try{d.defineProperty(K,F,d.getDescriptor(G,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:V,hasEnvVariables:W,env:function(G){return W?r.env[G]:void 0},global:m,getNativePromise:function(){if(typeof Promise=="function")try{var G=new Promise(function(){});if({}.toString.call(G)==="[object Promise]")return Promise}catch{}},domainBind:function(G,K){return G.bind(K)}};X.isRecentNode=X.isNode&&function(){var G=r.versions.node.split(".").map(Number);return G[0]===0&&G[1]>10||G[0]>0}(),X.isNode&&X.toFastProperties(r);try{throw new Error}catch(G){X.lastLineError=G}s.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,a=r.length;o<a;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,a){var s=i(o,a);return r(s)?s: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 a,s=n(37);E.ReadableState=S,n(12).EventEmitter;var l=function(D,H){return D.listeners(H).length},c=n(24),d=n(7).Buffer,f=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var m=n(41),v=void 0;v=m&&m.debuglog?m.debuglog("stream"):function(){};var y,x=n(42),_=n(25);p.inherits(E,c);var w=["error","close","destroy","pause","resume"];function S(D,H){a=a||n(1),D=D||{};var re=H instanceof a;this.objectMode=!!D.objectMode,re&&(this.objectMode=this.objectMode||!!D.readableObjectMode);var z=D.highWaterMark,q=D.readableHighWaterMark,ie=this.objectMode?16:16384;this.highWaterMark=z||z===0?z:re&&(q||q===0)?q:ie,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&&(y||(y=n(26).StringDecoder),this.decoder=new y(D.encoding),this.encoding=D.encoding)}function E(D){if(a=a||n(1),!(this instanceof E))return new E(D);this._readableState=new S(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 O(D,H,re,z,q){var ie,ae=D._readableState;return H===null?(ae.reading=!1,function(he,C){if(!C.ended){if(C.decoder){var M=C.decoder.end();M&&M.length&&(C.buffer.push(M),C.length+=C.objectMode?1:M.length)}C.ended=!0,U(he)}}(D,ae)):(q||(ie=function(he,C){var M;return function($){return d.isBuffer($)||$ instanceof f}(C)||typeof C=="string"||C===void 0||he.objectMode||(M=new TypeError("Invalid non-string/buffer chunk")),M}(ae,H)),ie?D.emit("error",ie):ae.objectMode||H&&H.length>0?(typeof H=="string"||ae.objectMode||Object.getPrototypeOf(H)===d.prototype||(H=function(he){return d.from(he)}(H)),z?ae.endEmitted?D.emit("error",new Error("stream.unshift() after end event")):k(D,ae,H,!0):ae.ended?D.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!re?(H=ae.decoder.write(H),ae.objectMode||H.length!==0?k(D,ae,H,!1):V(D,ae)):k(D,ae,H,!1))):z||(ae.reading=!1)),function(he){return!he.ended&&(he.needReadable||he.length<he.highWaterMark||he.length===0)}(ae)}function k(D,H,re,z){H.flowing&&H.length===0&&!H.sync?(D.emit("data",re),D.read(0)):(H.length+=H.objectMode?1:re.length,z?H.buffer.unshift(re):H.buffer.push(re),H.needReadable&&U(D)),V(D,H)}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=_.destroy,E.prototype._undestroy=_.undestroy,E.prototype._destroy=function(D,H){this.push(null),H(D)},E.prototype.push=function(D,H){var re,z=this._readableState;return z.objectMode?re=!0:typeof D=="string"&&((H=H||z.defaultEncoding)!==z.encoding&&(D=d.from(D,H),H=""),re=!0),O(this,D,H,!1,re)},E.prototype.unshift=function(D){return O(this,D,null,!0,!1)},E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(D){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(D),this._readableState.encoding=D,this};var j=8388608;function R(D,H){return D<=0||H.length===0&&H.ended?0:H.objectMode?1:D!=D?H.flowing&&H.length?H.buffer.head.data.length:H.length:(D>H.highWaterMark&&(H.highWaterMark=function(re){return re>=j?re=j:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(D)),D<=H.length?D:H.ended?H.length:(H.needReadable=!0,0))}function U(D){var H=D._readableState;H.needReadable=!1,H.emittedReadable||(v("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(A,D):A(D))}function A(D){v("emit readable"),D.emit("readable"),K(D)}function V(D,H){H.readingMore||(H.readingMore=!0,o.nextTick(W,D,H))}function W(D,H){for(var re=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(v("maybeReadMore read 0"),D.read(0),re!==H.length);)re=H.length;H.readingMore=!1}function X(D){v("readable nexttick read 0"),D.read(0)}function G(D,H){H.reading||(v("resume read 0"),D.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,D.emit("resume"),K(D),H.flowing&&!H.reading&&D.read(0)}function K(D){var H=D._readableState;for(v("flow",H.flowing);H.flowing&&D.read()!==null;);}function ne(D,H){return H.length===0?null:(H.objectMode?re=H.buffer.shift():!D||D>=H.length?(re=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear()):re=function(z,q,ie){var ae;return z<q.head.data.length?(ae=q.head.data.slice(0,z),q.head.data=q.head.data.slice(z)):ae=z===q.head.data.length?q.shift():ie?function(he,C){var M=C.head,$=1,J=M.data;for(he-=J.length;M=M.next;){var ee=M.data,se=he>ee.length?ee.length:he;if(se===ee.length?J+=ee:J+=ee.slice(0,he),(he-=se)==0){se===ee.length?(++$,M.next?C.head=M.next:C.head=C.tail=null):(C.head=M,M.data=ee.slice(se));break}++$}return C.length-=$,J}(z,q):function(he,C){var M=d.allocUnsafe(he),$=C.head,J=1;for($.data.copy(M),he-=$.data.length;$=$.next;){var ee=$.data,se=he>ee.length?ee.length:he;if(ee.copy(M,M.length-he,0,se),(he-=se)==0){se===ee.length?(++J,$.next?C.head=$.next:C.head=C.tail=null):(C.head=$,$.data=ee.slice(se));break}++J}return C.length-=J,M}(z,q),ae}(D,H.buffer,H.decoder),re);var re}function le(D){var H=D._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,o.nextTick(Z,H,D))}function Z(D,H){D.endEmitted||D.length!==0||(D.endEmitted=!0,H.readable=!1,H.emit("end"))}function F(D,H){for(var re=0,z=D.length;re<z;re++)if(D[re]===H)return re;return-1}E.prototype.read=function(D){v("read",D),D=parseInt(D,10);var H=this._readableState,re=D;if(D!==0&&(H.emittedReadable=!1),D===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return v("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?le(this):U(this),null;if((D=R(D,H))===0&&H.ended)return H.length===0&&le(this),null;var z,q=H.needReadable;return v("need readable",q),(H.length===0||H.length-D<H.highWaterMark)&&v("length less than watermark",q=!0),H.ended||H.reading?v("reading or ended",q=!1):q&&(v("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(D=R(re,H))),(z=D>0?ne(D,H):null)===null?(H.needReadable=!0,D=0):H.length-=D,H.length===0&&(H.ended||(H.needReadable=!0),re!==D&&H.ended&&le(this)),z!==null&&this.emit("data",z),z},E.prototype._read=function(D){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(D,H){var re=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=D;break;case 1:z.pipes=[z.pipes,D];break;default:z.pipes.push(D)}z.pipesCount+=1,v("pipe count=%d opts=%j",z.pipesCount,H);var q=H&&H.end===!1||D===i.stdout||D===i.stderr?se:ie;function ie(){v("onend"),D.end()}z.endEmitted?o.nextTick(q):re.once("end",q),D.on("unpipe",function ge(Me,ue){v("onunpipe"),Me===re&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),D.removeListener("close",J),D.removeListener("finish",ee),D.removeListener("drain",ae),D.removeListener("error",$),D.removeListener("unpipe",ge),re.removeListener("end",ie),re.removeListener("end",se),re.removeListener("data",M),he=!0,!z.awaitDrain||D._writableState&&!D._writableState.needDrain||ae())});var ae=function(ge){return function(){var Me=ge._readableState;v("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&l(ge,"data")&&(Me.flowing=!0,K(ge))}}(re);D.on("drain",ae);var he=!1,C=!1;function M(ge){v("ondata"),C=!1,D.write(ge)!==!1||C||((z.pipesCount===1&&z.pipes===D||z.pipesCount>1&&F(z.pipes,D)!==-1)&&!he&&(v("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,C=!0),re.pause())}function $(ge){v("onerror",ge),se(),D.removeListener("error",$),l(D,"error")===0&&D.emit("error",ge)}function J(){D.removeListener("finish",ee),se()}function ee(){v("onfinish"),D.removeListener("close",J),se()}function se(){v("unpipe"),re.unpipe(D)}return re.on("data",M),function(ge,Me,ue){if(typeof ge.prependListener=="function")return ge.prependListener(Me,ue);ge._events&&ge._events[Me]?s(ge._events[Me])?ge._events[Me].unshift(ue):ge._events[Me]=[ue,ge._events[Me]]:ge.on(Me,ue)}(D,"error",$),D.once("close",J),D.once("finish",ee),D.emit("pipe",re),z.flowing||(v("pipe resume"),re.resume()),D},E.prototype.unpipe=function(D){var H=this._readableState,re={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return D&&D!==H.pipes?this:(D||(D=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,D&&D.emit("unpipe",this,re),this);if(!D){var z=H.pipes,q=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var ie=0;ie<q;ie++)z[ie].emit("unpipe",this,re);return this}var ae=F(H.pipes,D);return ae===-1?this:(H.pipes.splice(ae,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),D.emit("unpipe",this,re),this)},E.prototype.on=function(D,H){var re=c.prototype.on.call(this,D,H);if(D==="data")this._readableState.flowing!==!1&&this.resume();else if(D==="readable"){var z=this._readableState;z.endEmitted||z.readableListening||(z.readableListening=z.needReadable=!0,z.emittedReadable=!1,z.reading?z.length&&U(this):o.nextTick(X,this))}return re},E.prototype.addListener=E.prototype.on,E.prototype.resume=function(){var D=this._readableState;return D.flowing||(v("resume"),D.flowing=!0,function(H,re){re.resumeScheduled||(re.resumeScheduled=!0,o.nextTick(G,H,re))}(this,D)),this},E.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},E.prototype.wrap=function(D){var H=this,re=this._readableState,z=!1;for(var q in D.on("end",function(){if(v("wrapped end"),re.decoder&&!re.ended){var ae=re.decoder.end();ae&&ae.length&&H.push(ae)}H.push(null)}),D.on("data",function(ae){v("wrapped data"),re.decoder&&(ae=re.decoder.write(ae)),(!re.objectMode||ae!=null)&&(re.objectMode||ae&&ae.length)&&(H.push(ae)||(z=!0,D.pause()))}),D)this[q]===void 0&&typeof D[q]=="function"&&(this[q]=function(ae){return function(){return D[ae].apply(D,arguments)}}(q));for(var ie=0;ie<w.length;ie++)D.on(w[ie],this.emit.bind(this,w[ie]));return this._read=function(ae){v("wrapped _read",ae),z&&(z=!1,D.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=ne}).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,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(a?a(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(d){!a&&d?(r.nextTick(i,s,d),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(d)}),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(v){switch((v=""+v)&&v.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(v){var y;switch(this.encoding=function(x){var _=function(w){if(!w)return"utf8";for(var S;;)switch(w){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 w;default:if(S)return;w=(""+w).toLowerCase(),S=!0}}(x);if(typeof _!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return _||x}(v),this.encoding){case"utf16le":this.text=l,this.end=c,y=4;break;case"utf8":this.fillLast=s,y=4;break;case"base64":this.text=d,this.end=f,y=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}function a(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function s(v){var y=this.lastTotal-this.lastNeed,x=function(_,w,S){if((192&w[0])!=128)return _.lastNeed=0,"<22>";if(_.lastNeed>1&&w.length>1){if((192&w[1])!=128)return _.lastNeed=1,"<22>";if(_.lastNeed>2&&w.length>2&&(192&w[2])!=128)return _.lastNeed=2,"<22>"}}(this,v);return x!==void 0?x:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function l(v,y){if((v.length-y)%2==0){var x=v.toString("utf16le",y);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function c(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function d(v,y){var x=(v.length-y)%3;return x===0?v.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-x))}function f(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var y,x;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<v.length?y?y+this.text(v,x):this.text(v,x):y||""},o.prototype.end=function(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+"<22>":y},o.prototype.text=function(v,y){var x=function(w,S,E){var O=S.length-1;if(O<E)return 0;var k=a(S[O]);return k>=0?(k>0&&(w.lastNeed=k-1),k):--O<E||k===-2?0:(k=a(S[O]))>=0?(k>0&&(w.lastNeed=k-2),k):--O<E||k===-2?0:(k=a(S[O]))>=0?(k>0&&(k===2?k=0:w.lastNeed=k-3),k):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=x;var _=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,_),v.toString("utf8",y,_)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.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,d){var f=this._transformState;f.transforming=!1;var p=f.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,d!=null&&this.push(d),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",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(c,d){s(l,c,d)}):s(this,null,null)}function s(l,c,d){if(c)return l.emit("error",c);if(d!=null&&l.push(d),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,d){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,c,d){var f=this._transformState;if(f.writecb=d,f.writechunk=l,f.writeencoding=c,!f.transforming){var p=this._readableState;(f.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 d=this;r.prototype._destroy.call(this,l,function(f){c(f),d.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,c){var d=o.call(this,"Error: "+s+". JSON Line number: "+l+(c?" near: "+c:""))||this;return d.err=s,d.line=l,d.extra=c,d.name="CSV Parse Error",d}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(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,a){return new r.Converter(o,a)};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(v,y){v.__proto__=y}||function(v,y){for(var x in y)y.hasOwnProperty(x)&&(v[x]=y[x])};return function(v,y){function x(){this.constructor=v}m(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),c=o(n(15)),d=n(52),f=n(105),p=function(m){function v(y,x){x===void 0&&(x={});var _=m.call(this,x)||this;return _.options=x,_.params=s.mergeParams(y),_.runtime=l.initParseRuntime(_),_.result=new f.Result(_),_.processor=new d.ProcessorLocal(_),_.once("error",function(w){r(function(){_.result.processError(w),_.emit("done",w)})}),_.once("done",function(){_.processor.destroy()}),_}return i(v,m),v.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},v.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},v.prototype.subscribe=function(y,x,_){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:_},this},v.prototype.fromFile=function(y,x){var _=this,w=n(!function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}());return w.exists(y,function(S){S?w.createReadStream(y,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(y){return y.pipe(this),this},v.prototype.fromString=function(y){y.toString();var x=new a.Readable,_=0;return x._read=function(w){if(_>=y.length)this.push(null);else{var S=y.substr(_,w);this.push(S),_+=w}},this.fromStream(x)},v.prototype.then=function(y,x){var _=this;return new c.default(function(w,S){_.parseRuntime.then={onfulfilled:function(E){w(y?y(E):E)},onrejected:function(E){x?w(x(E)):S(E)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(y,x,_){var w=this;this.processor.process(y).then(function(S){if(S.length>0)return w.runtime.started=!0,w.result.processResult(S)}).then(function(){w.emit("drained"),_()},function(S){w.runtime.hasError=!0,w.runtime.error=S,w.emit("error",S),_()})},v.prototype._flush=function(y){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(y)},function(_){x.emit("error",_),y()})},v.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,c={},d=!1,f=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(y){i.nextTick(function(){v(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(y)===0&&v(+_.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(_){o.postMessage(y+_,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){v(x.data)},s=function(x){y.port2.postMessage(x)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var y=f.documentElement;s=function(x){var _=f.createElement("script");_.onreadystatechange=function(){v(x),_.onreadystatechange=null,y.removeChild(_),_=null},y.appendChild(_)}}():s=function(y){setTimeout(v,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=new Array(arguments.length-1),_=0;_<x.length;_++)x[_]=arguments[_+1];var w={callback:y,args:x};return c[l]=w,s(l),l++},p.clearImmediate=m}function m(y){delete c[y]}function v(y){if(d)setTimeout(v,0,y);else{var x=c[y];if(x){d=!0;try{(function(_){var w=_.callback,S=_.args;switch(S.length){case 0:w();break;case 1:w(S[0]);break;case 2:w(S[0],S[1]);break;case 3:w(S[0],S[1],S[2]);break;default:w.apply(a,S)}})(x)}finally{m(y),d=!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,a){var s=this;function l(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",c),o._isStdio||a&&a.end===!1||(s.on("end",f),s.on("close",p));var d=!1;function f(){d||(d=!0,o.end())}function p(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function m(y){if(v(),r.listenerCount(this,"error")===0)throw y}function v(){s.removeListener("data",l),o.removeListener("drain",c),s.removeListener("end",f),s.removeListener("close",p),s.removeListener("error",m),o.removeListener("error",m),s.removeListener("end",v),s.removeListener("close",v),o.removeListener("close",v)}return s.on("error",m),o.on("error",m),s.on("end",v),s.on("close",v),o.on("close",v),o.emit("pipe",s),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),v=m[0],y=m[1];return 3*(v+y)/4-y},t.toByteArray=function(p){for(var m,v=c(p),y=v[0],x=v[1],_=new o(3*(y+x)/4-x),w=0,S=x>0?y-4:y,E=0;E<S;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)],_[w++]=m>>16&255,_[w++]=m>>8&255,_[w++]=255&m;return x===2&&(m=i[p.charCodeAt(E)]<<2|i[p.charCodeAt(E+1)]>>4,_[w++]=255&m),x===1&&(m=i[p.charCodeAt(E)]<<10|i[p.charCodeAt(E+1)]<<4|i[p.charCodeAt(E+2)]>>2,_[w++]=m>>8&255,_[w++]=255&m),_},t.fromByteArray=function(p){for(var m,v=p.length,y=v%3,x=[],_=0,w=v-y;_<w;_+=16383)x.push(f(p,_,_+16383>w?w:_+16383));return y===1?(m=p[v-1],x.push(r[m>>2]+r[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-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,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function d(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function f(p,m,v){for(var y,x=[],_=m;_<v;_+=3)y=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(255&p[_+2]),x.push(d(y));return x.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(n,r,i,o,a){var s,l,c=8*a-o-1,d=(1<<c)-1,f=d>>1,p=-7,m=i?a-1:0,v=i?-1:1,y=n[r+m];for(m+=v,s=y&(1<<-p)-1,y>>=-p,p+=c;p>0;s=256*s+n[r+m],m+=v,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(s===0)s=1-f;else{if(s===d)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),s-=f}return(y?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,c,d,f=8*s-a-1,p=(1<<f)-1,m=p>>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:s-1,x=o?1:-1,_=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*(d=Math.pow(2,-l))<1&&(l--,d*=2),(r+=l+m>=1?v/d:v*Math.pow(2,1-m))*d>=2&&(l++,d/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*d-1)*Math.pow(2,a),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;n[i+y]=255&c,y+=x,c/=256,a-=8);for(l=l<<a|c,f+=a;f>0;n[i+y]=255&l,y+=x,l/=256,f-=8);n[i+y-x]|=128*_}},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(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=s+l.data;return c},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),c=this.head,d=0;c;)o(c.data,l,d),d+=c.data.length,c=c.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},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(_,w){_.__proto__=w}||function(_,w){for(var S in w)w.hasOwnProperty(S)&&(_[S]=w[S])};return function(_,w){function S(){this.constructor=_}x(_,w),_.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),c=o(n(16)),d=n(57),f=n(28),p=n(58),m=o(n(59)),v=o(n(29)),y=function(x){function _(){var w=x!==null&&x.apply(this,arguments)||this;return w.rowSplit=new p.RowSplit(w.converter),w.eolEmitted=!1,w._needEmitEol=void 0,w.headEmitted=!1,w._needEmitHead=void 0,w}return i(_,x),_.prototype.flush=function(){var w=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var S=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(S,!0).then(function(E){return w.runtime.csvLineBuffer&&w.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(w.runtime.parsedLineNumber,w.runtime.csvLineBuffer.toString())):s.default.resolve(E)})}return s.default.resolve([])},_.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(_.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(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(w,S){var E,O=this;return S===void 0&&(S=!1),E=S?w.toString():l.prepareData(w,this.converter.parseRuntime),s.default.resolve().then(function(){return O.runtime.preRawDataHook?O.runtime.preRawDataHook(E):E}).then(function(k){return k&&k.length>0?O.processCSV(k,S):s.default.resolve([])})},_.prototype.processCSV=function(w,S){var E=this,O=this.params,k=this.runtime;k.eol||c.default(w,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),O.ignoreEmpty&&!k.started&&(w=f.trimLeft(w));var j=d.stringToLines(w,k);return S?(j.lines.push(j.partial),j.partial=""):this.prependLeftBuf(f.bufFromString(j.partial)),j.lines.length>0?(k.preFileLineHook?this.runPreLineHook(j.lines):s.default.resolve(j.lines)).then(function(R){return k.started||E.runtime.headers?E.processCSVBody(R):E.processDataWithHead(R)}):s.default.resolve([])},_.prototype.processDataWithHead=function(w){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var S="",E=[];w.length;){var O=S+w.shift(),k=this.rowSplit.parse(O);if(k.closed){E=k.cells,S="";break}S=O+c.default(O,this.runtime)}if(this.prependLeftBuf(f.bufFromString(S)),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(w)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var w=this.runtime.headers,S=0;S<w.length;S++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(w[S])){if(!this.params.includeColumns||!this.params.includeColumns.test(w[S]))continue;this.runtime.selectedColumns.push(S)}else this.runtime.selectedColumns.push(S);else this.params.includeColumns?this.params.includeColumns.test(w[S])&&this.runtime.selectedColumns.push(S):this.runtime.selectedColumns.push(S);this.runtime.headers=f.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},_.prototype.processCSVBody=function(w){if(this.params.output==="line")return w;var S=this.rowSplit.parseMultiLines(w);return this.prependLeftBuf(f.bufFromString(S.partial)),this.params.output==="csv"?S.rowsCells:m.default(S.rowsCells,this.converter)},_.prototype.prependLeftBuf=function(w){w&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([w,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=w)},_.prototype.runPreLineHook=function(w){var S=this;return new s.default(function(E,O){(function k(j,R,U,A){if(U>=j.length)A();else if(R.preFileLineHook){var V=j[U],W=R.preFileLineHook(V,R.parsedLineNumber+U);if(U++,W&&W.then)W.then(function(X){j[U-1]=X,k(j,R,U,A)});else{for(j[U-1]=W;U<j.length;)j[U]=R.preFileLineHook(j[U],R.parsedLineNumber+U),U++;A()}}else A()})(w,S.runtime,0,function(k){k?O(k):E(w)})})},_}(a.Processor);t.ProcessorLocal=y}).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(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var l=function(d,f){return f.csvLineBuffer&&f.csvLineBuffer.length>0?r.concat([f.csvLineBuffer,d]):d}(a,s);s.csvLineBuffer=void 0;var c=function(d,f){var p=d.length-1;if(128&d[p]){for(;(192&d[p])==128;)p--;p--}return p!=d.length-1?(f.csvLineBuffer=d.slice(p+1),d.slice(0,p+1)):d}(l,s).toString("utf8");return s.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,a){var s=i.default(o,a),l=o.split(s);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),a=[",","|"," ",";",":"],s=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 d=this.quote,f=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(d==="off"){if(f)for(var v=0;v<m.length;v++)m[v]=m[v].trim();return{cells:m,closed:!0}}return this.toCSVRow(m,f,d,p)},l.prototype.toCSVRow=function(c,d,f,p){for(var m=[],v=!1,y="",x=0,_=c.length;x<_;x++){var w=c[x];!v&&d&&(w=o.trimLeft(w));var S=w.length;if(v)this.isQuoteClose(w)?(v=!1,y+=p+(w=w.substr(0,S-1)),y=this.escapeQuote(y),d&&(y=o.trimRight(y)),m.push(y),y=""):y+=p+w;else{if(S===2&&w===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(w)){if(w=w.substr(1),this.isQuoteClose(w)){w=w.substring(0,w.lastIndexOf(f)),w=this.escapeQuote(w),m.push(w);continue}if(w.indexOf(f)!==-1){for(var E=0,O="",k=0,j=w;k<j.length;k++){var R=j[k];R===f&&O!==this.escape?(E++,O=""):O=R}if(E%2==1){d&&(w=o.trimRight(w)),m.push(f+w);continue}v=!0,y+=w;continue}v=!0,y+=w;continue}d&&(w=o.trimRight(w)),m.push(w)}}return{cells:m,closed:!v}},l.prototype.getDelimiter=function(c){var d;if(this.conv.parseParam.delimiter==="auto")d=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;d=this.conv.parseParam.delimiter}var f=0,p=",";return d.forEach(function(m){var v=c.split(m).length;v>f&&(p=m,f=v)}),p},l.prototype.isQuoteOpen=function(c){var d=this.quote,f=this.escape;return c[0]===d&&(c[1]!==d||c[1]===f&&(c[2]===d||c.length===2))},l.prototype.isQuoteClose=function(c){var d=this.quote,f=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===d||c[m]===f;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var d="es|"+this.quote+"|"+this.escape;this.cachedRegExp[d]===void 0&&(this.cachedRegExp[d]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var f=this.cachedRegExp[d];return c.replace(f,this.quote)},l.prototype.parseMultiLines=function(c){for(var d=[],f="";c.length;){var p=f+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?d.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):d.push(m.cells),f=""):f=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:d,partial:f}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(_,w,S){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&_.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+S);return function(E,O,k){for(var j=!1,R={},U=0,A=E.length;U<A;U++){var V=E[U];if(!k.parseParam.ignoreEmpty||V!==""){j=!0;var W=O[U];W&&W!==""||(W=O[U]="field"+(U+1));var X=c(W,U,k);if(X){var G=X(V,W,R,E,U);G!==void 0&&d(R,W,G,k,U)}else k.parseParam.checkType&&(V=m(V,W,U,k)(V)),V!==void 0&&d(R,W,V,k,U)}}return j?R:null}(_,w.parseRuntime.headers||[],w)||null}t.default=function(_,w){for(var S=[],E=0,O=_.length;E<O;E++){var k=s(_[E],w,E);k&&S.push(k)}return S};var l={string:y,number:v,omit:function(){}};function c(_,w,S){if(S.parseRuntime.columnConv[w]!==void 0)return S.parseRuntime.columnConv[w];var E=S.parseParam.colParser[_];if(E===void 0)return S.parseRuntime.columnConv[w]=null;if(typeof E=="object"&&(E=E.cellParser||"string"),typeof E=="string"){E=E.trim().toLowerCase();var O=l[E];return S.parseRuntime.columnConv[w]=O||null}return S.parseRuntime.columnConv[w]=typeof E=="function"?E:null}function d(_,w,S,E,O){if(!E.parseRuntime.columnValueSetter[O])if(E.parseParam.flatKeys)E.parseRuntime.columnValueSetter[O]=f;else if(w.indexOf(".")>-1){for(var k=w.split("."),j=!0;k.length>0;)if(k.shift().length===0){j=!1;break}!j||E.parseParam.colParser[w]&&E.parseParam.colParser[w].flat?E.parseRuntime.columnValueSetter[O]=f:E.parseRuntime.columnValueSetter[O]=p}else E.parseRuntime.columnValueSetter[O]=f;E.parseParam.nullObject===!0&&S==="null"&&(S=null),E.parseRuntime.columnValueSetter[O](_,w,S)}function f(_,w,S){_[w]=S}function p(_,w,S){o.default(_,w,S)}function m(_,w,S,E){return E.parseRuntime.headerType[S]?E.parseRuntime.headerType[S]:w.indexOf("number#!")>-1?E.parseRuntime.headerType[S]=v:w.indexOf("string#!")>-1?E.parseRuntime.headerType[S]=y:E.parseParam.checkType?E.parseRuntime.headerType[S]=x:E.parseRuntime.headerType[S]=y}function v(_){var w=parseFloat(_);return isNaN(w)?_:w}function y(_){return _.toString()}function x(_){var w=_.trim();return w===""?y(_):a.test(w)?v(_):w.length===5&&w.toLowerCase()==="false"||w.length===4&&w.toLowerCase()==="true"?function(S){var E=S.trim();return E.length!==5||E.toLowerCase()!=="false"}(_):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(_):y(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,c,d,f){if(!a(l))return l;for(var p=-1,m=(c=i(c,l)).length,v=m-1,y=l;y!=null&&++p<m;){var x=s(c[p]),_=d;if(p!=v){var w=y[x];(_=f?f(w,x,y):void 0)===void 0&&(_=a(w)?w:o(c[p+1])?[]:{})}r(y,x,_),y=y[x]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,l){var c=a[s];o.call(a,s)&&i(c,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},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),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,f=c.hasOwnProperty,p=RegExp("^"+d.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!o(m)||i(m))&&(r(m)?p:s).test(a(m))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[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,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=o.call(l,s),d=l[s];try{l[s]=void 0;var f=!0}catch{}var p=a.call(l);return f&&(c?l[s]=d:delete l[s]),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),a=n(100);e.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,l){if(r(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s 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(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,c,d,f){s.push(d?f.replace(i,"$1"):c||l)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var c=arguments,d=s?s.apply(this,c):c[0],f=l.cache;if(f.has(d))return f.get(d);var p=a.apply(this,c);return l.cache=f.set(d,p)||f,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),a=n(98),s=n(99);function l(c){var d=-1,f=c==null?0:c.length;for(this.clear();++d<f;){var p=c[d];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,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),a=n(86),s=n(87);function l(c){var d=-1,f=c==null?0:c.length;for(this.clear();++d<f;){var p=c[d];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,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 a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(c){var d=-1,f=c==null?0:c.length;for(this.clear();++d<f;){var p=c[d];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,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 a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][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 a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][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 a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?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),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function c(d){if(typeof d=="string")return d;if(o(d))return i(d,c)+"";if(a(d))return l?l.call(d):"";var f=d+"";return f=="0"&&1/d==-1/0?"-0":f}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},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),a=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 d=this,f=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&f===0&&s(this.converter,"["+o.EOL),new i.default(function(p,m){d.needEmitLine?function v(y,x,_,w,S){if(_>=y.length)S();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var E=x.parseRuntime.subscribe.onNext,O=y[_],k=E(O,x.parseRuntime.parsedLineNumber+_);if(_++,k&&k.then)k.then(function(){(function(R,U,A,V,W,X,G){W&&s(A,G),v(R,A,V,W,X)})(y,0,x,_,w,S,O)},S);else{for(w&&s(x,O);_<y.length;){var j=y[_];E(j,x.parseRuntime.parsedLineNumber+_),_++,w&&s(x,j)}S()}}else{if(w)for(;_<y.length;)j=y[_++],s(x,j);S()}}(c,d.converter,0,d.needPushDownstream,function(v){v?m(v):(d.appendFinalResult(c),p())}):(d.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"&&s(this.converter,"]"+o.EOL)},l}();function s(l,c){if(typeof c!="object"||l.options.objectMode)l.push(c);else{var d=JSON.stringify(c);l.push(d+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
||
`,t.homedir=function(){return"/"}}]);const pEe=ca(hEe),mEe=e=>new Promise(t=>{pEe().fromString(e).then(t)}),gEe=new fEe,vEe=e=>gEe.parse(e),yEe="shlink",lA=e=>`${yEe}.${e}`;class _Ee{constructor(t){Fp(this,"get",t=>{const n=this.localStorage.getItem(lA(t));return n?JSON.parse(n):void 0});Fp(this,"set",(t,n)=>this.localStorage.setItem(lA(t),JSON.stringify(n)));this.localStorage=t}}class bEe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const wEe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",_Ee,"localStorage"),e.service("TagColorsStorage",bEe,"Storage"),e.constant("csvToJson",mEe),e.constant("jsonToCsv",vEe),e.serviceFactory("useTimeoutToggle",()=>GI)},Gl=new FH,{container:OO}=Gl,xEe=(e,t)=>(...n)=>e[t](...n),SEe=(e,t)=>({...e,[t]:xEe(OO,t)}),V0=(e,t=[])=>DD(e?nY(e):null,t.reduce(SEe,{}));toe(Gl,V0);qxe(Gl,V0);wY(Gl);F2e(Gl,V0);wEe(Gl);uSe(Gl,V0);var CO={},I2={exports:{}};(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=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return r.apply(void 0,c)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return l(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return l(c[0]===!0,!0,c)}t.recursive=i;function o(c){if(Array.isArray(c)){for(var d=[],f=0;f<c.length;++f)d.push(o(c[f]));return d}else if(a(c)){var d={};for(var f in c)d[f]=o(c[f]);return d}else return c}t.clone=o;function a(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=a;function s(c,d){if(!a(c))return d;for(var f in d)f==="__proto__"||f==="constructor"||f==="prototype"||(c[f]=a(c[f])&&a(d[f])?s(c[f],d[f]):d[f]);return c}function l(c,d,f){var p;(c||!a(p=f.shift()))&&(p={});for(var m=0;m<f.length;++m){var v=f[m];if(a(v)){for(var y in v)if(!(y==="__proto__"||y==="constructor"||y==="prototype")){var x=c?o(v[y]):v[y];p[y]=d?s(p[y],x):x}}}return p}})(I2,I2.exports);var EEe=I2.exports;(function(e){var t=n(EEe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=X,e.combineLoads=W,e.load=V,e.save=A;function n(F){return F&&F.__esModule?F:{default:F}}function r(F,D){return l(F)||s(F,D)||o(F,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(F,D){if(F){if(typeof F=="string")return a(F,D);var H=Object.prototype.toString.call(F).slice(8,-1);return H==="Object"&&F.constructor&&(H=F.constructor.name),H==="Map"||H==="Set"?Array.from(F):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?a(F,D):void 0}}function a(F,D){(D==null||D>F.length)&&(D=F.length);for(var H=0,re=Array(D);H<D;H++)re[H]=F[H];return re}function s(F,D){var H=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(H!=null){var re,z,q=[],ie=!0,ae=!1;try{for(H=H.call(F);!(ie=(re=H.next()).done)&&(q.push(re.value),!(D&&q.length===D));ie=!0);}catch(he){ae=!0,z=he}finally{try{ie||H.return==null||H.return()}finally{if(ae)throw z}}return q}}function l(F){if(Array.isArray(F))return F}function c(F){"@babel/helpers - typeof";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(F)}function d(F,D,H){return D in F?Object.defineProperty(F,D,{value:H,enumerable:!0,configurable:!0,writable:!0}):F[D]=H,F}var f="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",v=[],y=[],x=0,_=!1,w=!1,S=new Map;function E(F){console.warn(f,F)}function O(){}var k=function(F){return F?O:E};function j(F,D){return D===void 0?null:F.length===1?D[F[0]]:j(F.slice(1),D[F[0]])}function R(F){function D(re,z){return re.length===0?z:D(re.slice(1),d({},re[0],z))}var H=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return D(F.split(".").reverse(),H)}function U(F){this.warnFn=F||E}Object.defineProperty(U.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),U.prototype.key=function(F){try{return localStorage.key(F)}catch(D){this.warnFn(D)}return null},U.prototype.setItem=function(F,D){try{localStorage.setItem(F,JSON.stringify(D))}catch(H){this.warnFn(H)}},U.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(D){this.warnFn(D)}return null},U.prototype.removeItem=function(F){try{localStorage.removeItem(F)}catch(D){this.warnFn(D)}};function A(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=F.states,H=D===void 0?v:D,re=F.ignoreStates,z=re===void 0?y:re,q=F.namespace,ie=q===void 0?p:q,ae=F.namespaceSeparator,he=ae===void 0?m:ae,C=F.debounce,M=C===void 0?x:C,$=F.disableWarnings,J=$===void 0?w:$;return function(ee){return function(se){return function(ge){function Me(Ce,je){return 1<Ce.split(".").length?j(Ce.split("."),je):j([Ce],je)}function ue(){H.length===0?ke.setItem(ie,me):H.forEach(function(Ce){var je=ie+he+Ce,ce=Me(Ce,me);ce?ke.setItem(je,ce):ke.removeItem(je)})}var me,_e=k(J),Se=se(ge);G(H)||(console.error(f,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),H=v),G(z)||(console.error(f,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),z=y),0<z.length&&(z=z.filter(function(Ce){return K(Ce)?Ce:void console.error(f,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),K(ie)||(console.error(f,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ie=p),K(he)||(console.error(f,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),he=m),ne(M)||(console.error(f,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),M=x),me=0<z.length?Z(z,ee.getState()):ee.getState();var ke=new U(_e);return M?(S.get(H+ie)&&clearTimeout(S.get(H+ie)),S.set(H+ie,setTimeout(function(){ue()},M))):ue(),Se}}}}function V(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=F.states,H=D===void 0?v:D,re=F.immutablejs,z=re===void 0?_:re,q=F.namespace,ie=q===void 0?p:q,ae=F.namespaceSeparator,he=ae===void 0?m:ae,C=F.preloadedState,M=C===void 0?{}:C,$=F.disableWarnings,J=$===void 0?w:$,ee=k(J);G(H)||(console.error(f,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),H=v),K(ie)||(console.error(f,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ie=p),K(he)||(console.error(f,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),he=m),z===!0&&ee("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 U(ee),ge=M;if(H.length===0){var Me=se.getItem(ie);Me&&(ge=Me)}else H.forEach(function(ue){var me=ie+he+ue,_e=se.getItem(me);_e?ge=t.default.recursive(ge,R(ue,_e)):ee("Invalid load '"+me+"' 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 ge}function W(){for(var F={},D=arguments.length,H=Array(D),re=0;re<D;re++)H[re]=arguments[re];return H.forEach(function(z){for(var q in le(z)||(console.error(f,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),z={}),z)F[q]=z[q]}),F}function X(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=F.namespace,H=D===void 0?p:D,re=F.disableWarnings,z=re===void 0?w:re,q=k(z);K(H)||(console.error(f,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),H=p);for(var ie,ae=new U(q),he=ae.length,C=0;C<he;C++)ie=ae.key(C),ie&&ie.slice(0,H.length)===H&&ae.removeItem(ie)}function G(F){return Object.prototype.toString.call(F)==="[object Array]"}function K(F){return typeof F=="string"}function ne(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function le(F){return F!==null&&c(F)==="object"}function Z(F,D){var H=Object.entries(D).reduce(function(re,z){var q=r(z,2),ie=q[0];return q[1],F.indexOf(ie)===-1&&(re[ie]=D[ie]),re},{});return H}})(CO);const TEe=e=>KE({appUpdated:eoe,servers:b2e,selectedServer:e.selectedServerReducer,settings:X2e}),OEe=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},CEe=!0,CU={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},kEe=OEe(CO.load(CU)),PEe=e=>O6({devTools:!CEe,reducer:TEe(e),preloadedState:kEe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(CO.save(CU))}),LEe=!!(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 jEe(e){if("serviceWorker"in navigator){if(new URL(ov.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${ov.homepage}/service-worker.js`;LEe?(MEe(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")})):kU(n,e)})}}function kU(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 MEe(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()})}):kU(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const PU=PEe(OO),{App:NEe,ScrollToTop:AEe,ErrorHandler:REe,appUpdateAvailable:DEe}=OO;xD(document.getElementById("root")).render(g.jsx(ID,{store:PU,children:g.jsx(GD,{basename:ov.homepage,children:g.jsx(REe,{children:g.jsx(AEe,{children:g.jsx(NEe,{})})})})}));jEe({onUpdate(){PU.dispatch(DEe())}});
|