var Iw=Object.defineProperty;var Fw=(t,e,n)=>e in t?Iw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var P=(t,e,n)=>(Fw(t,typeof e!="symbol"?e+"":e,n),n);function Aw(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Sg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cg={exports:{}},Pl={},Mg={exports:{}},Q={};/**
 * @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 lo=Symbol.for("react.element"),jw=Symbol.for("react.portal"),zw=Symbol.for("react.fragment"),Yw=Symbol.for("react.strict_mode"),Bw=Symbol.for("react.profiler"),Ww=Symbol.for("react.provider"),Hw=Symbol.for("react.context"),$w=Symbol.for("react.forward_ref"),Vw=Symbol.for("react.suspense"),Uw=Symbol.for("react.memo"),Qw=Symbol.for("react.lazy"),rh=Symbol.iterator;function Kw(t){return t===null||typeof t!="object"?null:(t=rh&&t[rh]||t["@@iterator"],typeof t=="function"?t:null)}var Eg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pg=Object.assign,Tg={};function Yi(t,e,n){this.props=t,this.context=e,this.refs=Tg,this.updater=n||Eg}Yi.prototype.isReactComponent={};Yi.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Yi.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Og(){}Og.prototype=Yi.prototype;function Sd(t,e,n){this.props=t,this.context=e,this.refs=Tg,this.updater=n||Eg}var Cd=Sd.prototype=new Og;Cd.constructor=Sd;Pg(Cd,Yi.prototype);Cd.isPureReactComponent=!0;var ih=Array.isArray,Ng=Object.prototype.hasOwnProperty,Md={current:null},Rg={key:!0,ref:!0,__self:!0,__source:!0};function Lg(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Ng.call(e,r)&&!Rg.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:lo,type:t,key:s,ref:o,props:i,_owner:Md.current}}function qw(t,e){return{$$typeof:lo,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Ed(t){return typeof t=="object"&&t!==null&&t.$$typeof===lo}function Xw(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var sh=/\/+/g;function lc(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Xw(""+t.key):e.toString(36)}function ca(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case lo:case jw:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+lc(o,0):r,ih(i)?(n="",t!=null&&(n=t.replace(sh,"$&/")+"/"),ca(i,e,n,"",function(c){return c})):i!=null&&(Ed(i)&&(i=qw(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(sh,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",ih(t))for(var a=0;a<t.length;a++){s=t[a];var l=r+lc(s,a);o+=ca(s,e,n,l,i)}else if(l=Kw(t),typeof l=="function")for(t=l.call(t),a=0;!(s=t.next()).done;)s=s.value,l=r+lc(s,a++),o+=ca(s,e,n,l,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function ko(t,e,n){if(t==null)return t;var r=[],i=0;return ca(t,r,"","",function(s){return e.call(n,s,i++)}),r}function Gw(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var et={current:null},ua={transition:null},Jw={ReactCurrentDispatcher:et,ReactCurrentBatchConfig:ua,ReactCurrentOwner:Md};function Ig(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:ko,forEach:function(t,e,n){ko(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return ko(t,function(){e++}),e},toArray:function(t){return ko(t,function(e){return e})||[]},only:function(t){if(!Ed(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Component=Yi;Q.Fragment=zw;Q.Profiler=Bw;Q.PureComponent=Sd;Q.StrictMode=Yw;Q.Suspense=Vw;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jw;Q.act=Ig;Q.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Pg({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=Md.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Ng.call(e,l)&&!Rg.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:lo,type:t.type,key:i,ref:s,props:r,_owner:o}};Q.createContext=function(t){return t={$$typeof:Hw,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Ww,_context:t},t.Consumer=t};Q.createElement=Lg;Q.createFactory=function(t){var e=Lg.bind(null,t);return e.type=t,e};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:$w,render:t}};Q.isValidElement=Ed;Q.lazy=function(t){return{$$typeof:Qw,_payload:{_status:-1,_result:t},_init:Gw}};Q.memo=function(t,e){return{$$typeof:Uw,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=ua.transition;ua.transition={};try{t()}finally{ua.transition=e}};Q.unstable_act=Ig;Q.useCallback=function(t,e){return et.current.useCallback(t,e)};Q.useContext=function(t){return et.current.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t){return et.current.useDeferredValue(t)};Q.useEffect=function(t,e){return et.current.useEffect(t,e)};Q.useId=function(){return et.current.useId()};Q.useImperativeHandle=function(t,e,n){return et.current.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return et.current.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return et.current.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return et.current.useMemo(t,e)};Q.useReducer=function(t,e,n){return et.current.useReducer(t,e,n)};Q.useRef=function(t){return et.current.useRef(t)};Q.useState=function(t){return et.current.useState(t)};Q.useSyncExternalStore=function(t,e,n){return et.current.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return et.current.useTransition()};Q.version="18.3.1";Mg.exports=Q;var R=Mg.exports;const M=Sg(R),Zw=Aw({__proto__:null,default:M},[R]);/**
 * @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 ex=R,tx=Symbol.for("react.element"),nx=Symbol.for("react.fragment"),rx=Object.prototype.hasOwnProperty,ix=ex.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sx={key:!0,ref:!0,__self:!0,__source:!0};function Fg(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)rx.call(e,r)&&!sx.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:tx,type:t,key:s,ref:o,props:i,_owner:ix.current}}Pl.Fragment=nx;Pl.jsx=Fg;Pl.jsxs=Fg;Cg.exports=Pl;var _=Cg.exports,nu={},Ag={exports:{}},wt={},jg={exports:{}},zg={};/**
 * @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(t){function e(L,z){var Y=L.length;L.push(z);e:for(;0<Y;){var se=Y-1>>>1,le=L[se];if(0<i(le,z))L[se]=z,L[Y]=le,Y=se;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],Y=L.pop();if(Y!==z){L[0]=Y;e:for(var se=0,le=L.length,Vt=le>>>1;se<Vt;){var Ke=2*(se+1)-1,ln=L[Ke],qe=Ke+1,bo=L[qe];if(0>i(ln,Y))qe<le&&0>i(bo,ln)?(L[se]=bo,L[qe]=Y,se=qe):(L[se]=ln,L[Ke]=Y,se=Ke);else if(qe<le&&0>i(bo,Y))L[se]=bo,L[qe]=Y,se=qe;else break e}}return z}function i(L,z){var Y=L.sortIndex-z.sortIndex;return Y!==0?Y:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(L){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=L)r(c),z.sortIndex=z.expirationTime,e(l,z);else break;z=n(c)}}function b(L){if(y=!1,v(L),!p)if(n(l)!==null)p=!0,K(k);else{var z=n(c);z!==null&&H(b,z.startTime-L)}}function k(L,z){p=!1,y&&(y=!1,m(S),S=-1),h=!0;var Y=f;try{for(v(z),d=n(l);d!==null&&(!(d.expirationTime>z)||L&&!I());){var se=d.callback;if(typeof se=="function"){d.callback=null,f=d.priorityLevel;var le=se(d.expirationTime<=z);z=t.unstable_now(),typeof le=="function"?d.callback=le:d===n(l)&&r(l),v(z)}else r(l);d=n(l)}if(d!==null)var Vt=!0;else{var Ke=n(c);Ke!==null&&H(b,Ke.startTime-z),Vt=!1}return Vt}finally{d=null,f=Y,h=!1}}var C=!1,D=null,S=-1,O=5,N=-1;function I(){return!(t.unstable_now()-N<O)}function A(){if(D!==null){var L=t.unstable_now();N=L;var z=!0;try{z=D(!0,L)}finally{z?W():(C=!1,D=null)}}else C=!1}var W;if(typeof g=="function")W=function(){g(A)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,B=U.port2;U.port1.onmessage=A,W=function(){B.postMessage(null)}}else W=function(){w(A,0)};function K(L){D=L,C||(C=!0,W())}function H(L,z){S=w(function(){L(t.unstable_now())},z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_continueExecution=function(){p||h||(p=!0,K(k))},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(L){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var Y=f;f=z;try{return L()}finally{f=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Y=f;f=L;try{return z()}finally{f=Y}},t.unstable_scheduleCallback=function(L,z,Y){var se=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?se+Y:se):Y=se,L){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=Y+le,L={id:u++,callback:z,priorityLevel:L,startTime:Y,expirationTime:le,sortIndex:-1},Y>se?(L.sortIndex=Y,e(c,L),n(l)===null&&L===n(c)&&(y?(m(S),S=-1):y=!0,H(b,Y-se))):(L.sortIndex=le,e(l,L),p||h||(p=!0,K(k))),L},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(L){var z=f;return function(){var Y=f;f=z;try{return L.apply(this,arguments)}finally{f=Y}}}})(zg);jg.exports=zg;var ox=jg.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 ax=R,vt=ox;function T(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yg=new Set,Ls={};function Ur(t,e){Di(t,e),Di(t+"Capture",e)}function Di(t,e){for(Ls[t]=e,t=0;t<e.length;t++)Yg.add(e[t])}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ru=Object.prototype.hasOwnProperty,lx=/^[: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]*$/,oh={},ah={};function cx(t){return ru.call(ah,t)?!0:ru.call(oh,t)?!1:lx.test(t)?ah[t]=!0:(oh[t]=!0,!1)}function ux(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function dx(t,e,n,r){if(e===null||typeof e>"u"||ux(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function tt(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Be[t]=new tt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Be[e]=new tt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Be[t]=new tt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Be[t]=new tt(t,2,!1,t,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(t){Be[t]=new tt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Be[t]=new tt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Be[t]=new tt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Be[t]=new tt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Be[t]=new tt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Pd=/[\-:]([a-z])/g;function Td(t){return t[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(t){var e=t.replace(Pd,Td);Be[e]=new tt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Pd,Td);Be[e]=new tt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Pd,Td);Be[e]=new tt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Be[t]=new tt(t,1,!1,t.toLowerCase(),null,!1,!1)});Be.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Be[t]=new tt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Od(t,e,n,r){var i=Be.hasOwnProperty(e)?Be[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(dx(e,n,i,r)&&(n=null),r||i===null?cx(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Mn=ax.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Do=Symbol.for("react.element"),ti=Symbol.for("react.portal"),ni=Symbol.for("react.fragment"),Nd=Symbol.for("react.strict_mode"),iu=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),Wg=Symbol.for("react.context"),Rd=Symbol.for("react.forward_ref"),su=Symbol.for("react.suspense"),ou=Symbol.for("react.suspense_list"),Ld=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),Hg=Symbol.for("react.offscreen"),lh=Symbol.iterator;function Ui(t){return t===null||typeof t!="object"?null:(t=lh&&t[lh]||t["@@iterator"],typeof t=="function"?t:null)}var ye=Object.assign,cc;function cs(t){if(cc===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);cc=e&&e[1]||""}return`
`+cc+t}var uc=!1;function dc(t,e){if(!t||uc)return"";uc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),s=r.stack.split(`
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{uc=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?cs(t):""}function fx(t){switch(t.tag){case 5:return cs(t.type);case 16:return cs("Lazy");case 13:return cs("Suspense");case 19:return cs("SuspenseList");case 0:case 2:case 15:return t=dc(t.type,!1),t;case 11:return t=dc(t.type.render,!1),t;case 1:return t=dc(t.type,!0),t;default:return""}}function au(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ni:return"Fragment";case ti:return"Portal";case iu:return"Profiler";case Nd:return"StrictMode";case su:return"Suspense";case ou:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Wg:return(t.displayName||"Context")+".Consumer";case Bg:return(t._context.displayName||"Context")+".Provider";case Rd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ld:return e=t.displayName||null,e!==null?e:au(t.type)||"Memo";case Rn:e=t._payload,t=t._init;try{return au(t(e))}catch{}}return null}function hx(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return au(e);case 8:return e===Nd?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function nr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $g(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function px(t){var e=$g(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function So(t){t._valueTracker||(t._valueTracker=px(t))}function Vg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=$g(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Oa(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function lu(t,e){var n=e.checked;return ye({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function ch(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=nr(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Ug(t,e){e=e.checked,e!=null&&Od(t,"checked",e,!1)}function cu(t,e){Ug(t,e);var n=nr(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?uu(t,e.type,n):e.hasOwnProperty("defaultValue")&&uu(t,e.type,nr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function uh(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function uu(t,e,n){(e!=="number"||Oa(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var us=Array.isArray;function pi(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+nr(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function du(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(T(91));return ye({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function dh(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(T(92));if(us(n)){if(1<n.length)throw Error(T(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:nr(n)}}function Qg(t,e){var n=nr(e.value),r=nr(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function fh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Kg(t){switch(t){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 fu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Kg(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Co,qg=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Co=Co||document.createElement("div"),Co.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Co.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Is(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ws={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},mx=["Webkit","ms","Moz","O"];Object.keys(ws).forEach(function(t){mx.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ws[e]=ws[t]})});function Xg(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ws.hasOwnProperty(t)&&ws[t]?(""+e).trim():e+"px"}function Gg(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xg(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var gx=ye({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 hu(t,e){if(e){if(gx[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(T(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(T(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(T(61))}if(e.style!=null&&typeof e.style!="object")throw Error(T(62))}}function pu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 mu=null;function Id(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var gu=null,mi=null,gi=null;function hh(t){if(t=fo(t)){if(typeof gu!="function")throw Error(T(280));var e=t.stateNode;e&&(e=Ll(e),gu(t.stateNode,t.type,e))}}function Jg(t){mi?gi?gi.push(t):gi=[t]:mi=t}function Zg(){if(mi){var t=mi,e=gi;if(gi=mi=null,hh(t),e)for(t=0;t<e.length;t++)hh(e[t])}}function ey(t,e){return t(e)}function ty(){}var fc=!1;function ny(t,e,n){if(fc)return t(e,n);fc=!0;try{return ey(t,e,n)}finally{fc=!1,(mi!==null||gi!==null)&&(ty(),Zg())}}function Fs(t,e){var n=t.stateNode;if(n===null)return null;var r=Ll(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(T(231,e,typeof n));return n}var yu=!1;if(bn)try{var Qi={};Object.defineProperty(Qi,"passive",{get:function(){yu=!0}}),window.addEventListener("test",Qi,Qi),window.removeEventListener("test",Qi,Qi)}catch{yu=!1}function yx(t,e,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var xs=!1,Na=null,Ra=!1,vu=null,vx={onError:function(t){xs=!0,Na=t}};function wx(t,e,n,r,i,s,o,a,l){xs=!1,Na=null,yx.apply(vx,arguments)}function xx(t,e,n,r,i,s,o,a,l){if(wx.apply(this,arguments),xs){if(xs){var c=Na;xs=!1,Na=null}else throw Error(T(198));Ra||(Ra=!0,vu=c)}}function Qr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function ry(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function ph(t){if(Qr(t)!==t)throw Error(T(188))}function _x(t){var e=t.alternate;if(!e){if(e=Qr(t),e===null)throw Error(T(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return ph(i),t;if(s===r)return ph(i),e;s=s.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?t:e}function iy(t){return t=_x(t),t!==null?sy(t):null}function sy(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=sy(t);if(e!==null)return e;t=t.sibling}return null}var oy=vt.unstable_scheduleCallback,mh=vt.unstable_cancelCallback,bx=vt.unstable_shouldYield,kx=vt.unstable_requestPaint,be=vt.unstable_now,Dx=vt.unstable_getCurrentPriorityLevel,Fd=vt.unstable_ImmediatePriority,ay=vt.unstable_UserBlockingPriority,La=vt.unstable_NormalPriority,Sx=vt.unstable_LowPriority,ly=vt.unstable_IdlePriority,Tl=null,tn=null;function Cx(t){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Tl,t,void 0,(t.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:Px,Mx=Math.log,Ex=Math.LN2;function Px(t){return t>>>=0,t===0?32:31-(Mx(t)/Ex|0)|0}var Mo=64,Eo=4194304;function ds(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ia(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=ds(a):(s&=o,s!==0&&(r=ds(s)))}else o=n&~i,o!==0?r=ds(o):s!==0&&(r=ds(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-jt(e),i=1<<n,r|=t[n],e&=~i;return r}function Tx(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 Ox(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-jt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Tx(a,e)):l<=e&&(t.expiredLanes|=a),s&=~a}}function wu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function cy(){var t=Mo;return Mo<<=1,!(Mo&4194240)&&(Mo=64),t}function hc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function co(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-jt(e),t[e]=n}function Nx(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-jt(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function Ad(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-jt(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var ie=0;function uy(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var dy,jd,fy,hy,py,xu=!1,Po=[],$n=null,Vn=null,Un=null,As=new Map,js=new Map,Fn=[],Rx="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 gh(t,e){switch(t){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":As.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":js.delete(e.pointerId)}}function Ki(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=fo(e),e!==null&&jd(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Lx(t,e,n,r,i){switch(e){case"focusin":return $n=Ki($n,t,e,n,r,i),!0;case"dragenter":return Vn=Ki(Vn,t,e,n,r,i),!0;case"mouseover":return Un=Ki(Un,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return As.set(s,Ki(As.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,js.set(s,Ki(js.get(s)||null,t,e,n,r,i)),!0}return!1}function my(t){var e=kr(t.target);if(e!==null){var n=Qr(e);if(n!==null){if(e=n.tag,e===13){if(e=ry(n),e!==null){t.blockedOn=e,py(t.priority,function(){fy(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function da(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=_u(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);mu=r,n.target.dispatchEvent(r),mu=null}else return e=fo(n),e!==null&&jd(e),t.blockedOn=n,!1;e.shift()}return!0}function yh(t,e,n){da(t)&&n.delete(e)}function Ix(){xu=!1,$n!==null&&da($n)&&($n=null),Vn!==null&&da(Vn)&&(Vn=null),Un!==null&&da(Un)&&(Un=null),As.forEach(yh),js.forEach(yh)}function qi(t,e){t.blockedOn===e&&(t.blockedOn=null,xu||(xu=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,Ix)))}function zs(t){function e(i){return qi(i,t)}if(0<Po.length){qi(Po[0],t);for(var n=1;n<Po.length;n++){var r=Po[n];r.blockedOn===t&&(r.blockedOn=null)}}for($n!==null&&qi($n,t),Vn!==null&&qi(Vn,t),Un!==null&&qi(Un,t),As.forEach(e),js.forEach(e),n=0;n<Fn.length;n++)r=Fn[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)my(n),n.blockedOn===null&&Fn.shift()}var yi=Mn.ReactCurrentBatchConfig,Fa=!0;function Fx(t,e,n,r){var i=ie,s=yi.transition;yi.transition=null;try{ie=1,zd(t,e,n,r)}finally{ie=i,yi.transition=s}}function Ax(t,e,n,r){var i=ie,s=yi.transition;yi.transition=null;try{ie=4,zd(t,e,n,r)}finally{ie=i,yi.transition=s}}function zd(t,e,n,r){if(Fa){var i=_u(t,e,n,r);if(i===null)kc(t,e,r,Aa,n),gh(t,r);else if(Lx(i,t,e,n,r))r.stopPropagation();else if(gh(t,r),e&4&&-1<Rx.indexOf(t)){for(;i!==null;){var s=fo(i);if(s!==null&&dy(s),s=_u(t,e,n,r),s===null&&kc(t,e,r,Aa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else kc(t,e,r,null,n)}}var Aa=null;function _u(t,e,n,r){if(Aa=null,t=Id(r),t=kr(t),t!==null)if(e=Qr(t),e===null)t=null;else if(n=e.tag,n===13){if(t=ry(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Aa=t,null}function gy(t){switch(t){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(Dx()){case Fd:return 1;case ay:return 4;case La:case Sx:return 16;case ly:return 536870912;default:return 16}default:return 16}}var jn=null,Yd=null,fa=null;function yy(){if(fa)return fa;var t,e=Yd,n=e.length,r,i="value"in jn?jn.value:jn.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[s-r];r++);return fa=i.slice(t,1<r?1-r:void 0)}function ha(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function To(){return!0}function vh(){return!1}function xt(t){function e(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?To:vh,this.isPropagationStopped=vh,this}return ye(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),e}var Bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bd=xt(Bi),uo=ye({},Bi,{view:0,detail:0}),jx=xt(uo),pc,mc,Xi,Ol=ye({},uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Xi&&(Xi&&t.type==="mousemove"?(pc=t.screenX-Xi.screenX,mc=t.screenY-Xi.screenY):mc=pc=0,Xi=t),pc)},movementY:function(t){return"movementY"in t?t.movementY:mc}}),wh=xt(Ol),zx=ye({},Ol,{dataTransfer:0}),Yx=xt(zx),Bx=ye({},uo,{relatedTarget:0}),gc=xt(Bx),Wx=ye({},Bi,{animationName:0,elapsedTime:0,pseudoElement:0}),Hx=xt(Wx),$x=ye({},Bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Vx=xt($x),Ux=ye({},Bi,{data:0}),xh=xt(Ux),Qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kx={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"},qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=qx[t])?!!e[t]:!1}function Wd(){return Xx}var Gx=ye({},uo,{key:function(t){if(t.key){var e=Qx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ha(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Kx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wd,charCode:function(t){return t.type==="keypress"?ha(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ha(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Jx=xt(Gx),Zx=ye({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_h=xt(Zx),e_=ye({},uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wd}),t_=xt(e_),n_=ye({},Bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),r_=xt(n_),i_=ye({},Ol,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),s_=xt(i_),o_=[9,13,27,32],Hd=bn&&"CompositionEvent"in window,_s=null;bn&&"documentMode"in document&&(_s=document.documentMode);var a_=bn&&"TextEvent"in window&&!_s,vy=bn&&(!Hd||_s&&8<_s&&11>=_s),bh=" ",kh=!1;function wy(t,e){switch(t){case"keyup":return o_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xy(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ri=!1;function l_(t,e){switch(t){case"compositionend":return xy(e);case"keypress":return e.which!==32?null:(kh=!0,bh);case"textInput":return t=e.data,t===bh&&kh?null:t;default:return null}}function c_(t,e){if(ri)return t==="compositionend"||!Hd&&wy(t,e)?(t=yy(),fa=Yd=jn=null,ri=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vy&&e.locale!=="ko"?null:e.data;default:return null}}var u_={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 Dh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!u_[t.type]:e==="textarea"}function _y(t,e,n,r){Jg(r),e=ja(e,"onChange"),0<e.length&&(n=new Bd("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var bs=null,Ys=null;function d_(t){Ny(t,0)}function Nl(t){var e=oi(t);if(Vg(e))return t}function f_(t,e){if(t==="change")return e}var by=!1;if(bn){var yc;if(bn){var vc="oninput"in document;if(!vc){var Sh=document.createElement("div");Sh.setAttribute("oninput","return;"),vc=typeof Sh.oninput=="function"}yc=vc}else yc=!1;by=yc&&(!document.documentMode||9<document.documentMode)}function Ch(){bs&&(bs.detachEvent("onpropertychange",ky),Ys=bs=null)}function ky(t){if(t.propertyName==="value"&&Nl(Ys)){var e=[];_y(e,Ys,t,Id(t)),ny(d_,e)}}function h_(t,e,n){t==="focusin"?(Ch(),bs=e,Ys=n,bs.attachEvent("onpropertychange",ky)):t==="focusout"&&Ch()}function p_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Nl(Ys)}function m_(t,e){if(t==="click")return Nl(e)}function g_(t,e){if(t==="input"||t==="change")return Nl(e)}function y_(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Bt=typeof Object.is=="function"?Object.is:y_;function Bs(t,e){if(Bt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ru.call(e,i)||!Bt(t[i],e[i]))return!1}return!0}function Mh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Eh(t,e){var n=Mh(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mh(n)}}function Dy(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Dy(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Sy(){for(var t=window,e=Oa();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Oa(t.document)}return e}function $d(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function v_(t){var e=Sy(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Dy(n.ownerDocument.documentElement,n)){if(r!==null&&$d(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=Eh(n,s);var o=Eh(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var w_=bn&&"documentMode"in document&&11>=document.documentMode,ii=null,bu=null,ks=null,ku=!1;function Ph(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ku||ii==null||ii!==Oa(r)||(r=ii,"selectionStart"in r&&$d(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}),ks&&Bs(ks,r)||(ks=r,r=ja(bu,"onSelect"),0<r.length&&(e=new Bd("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=ii)))}function Oo(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var si={animationend:Oo("Animation","AnimationEnd"),animationiteration:Oo("Animation","AnimationIteration"),animationstart:Oo("Animation","AnimationStart"),transitionend:Oo("Transition","TransitionEnd")},wc={},Cy={};bn&&(Cy=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Rl(t){if(wc[t])return wc[t];if(!si[t])return t;var e=si[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Cy)return wc[t]=e[n];return t}var My=Rl("animationend"),Ey=Rl("animationiteration"),Py=Rl("animationstart"),Ty=Rl("transitionend"),Oy=new Map,Th="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 cr(t,e){Oy.set(t,e),Ur(e,[t])}for(var xc=0;xc<Th.length;xc++){var _c=Th[xc],x_=_c.toLowerCase(),__=_c[0].toUpperCase()+_c.slice(1);cr(x_,"on"+__)}cr(My,"onAnimationEnd");cr(Ey,"onAnimationIteration");cr(Py,"onAnimationStart");cr("dblclick","onDoubleClick");cr("focusin","onFocus");cr("focusout","onBlur");cr(Ty,"onTransitionEnd");Di("onMouseEnter",["mouseout","mouseover"]);Di("onMouseLeave",["mouseout","mouseover"]);Di("onPointerEnter",["pointerout","pointerover"]);Di("onPointerLeave",["pointerout","pointerover"]);Ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ur("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="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(" "),b_=new Set("cancel close invalid load scroll toggle".split(" ").concat(fs));function Oh(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,xx(r,e,void 0,t),t.currentTarget=null}function Ny(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Oh(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Oh(i,a,c),s=l}}}if(Ra)throw t=vu,Ra=!1,vu=null,t}function ce(t,e){var n=e[Eu];n===void 0&&(n=e[Eu]=new Set);var r=t+"__bubble";n.has(r)||(Ry(e,t,2,!1),n.add(r))}function bc(t,e,n){var r=0;e&&(r|=4),Ry(n,t,r,e)}var No="_reactListening"+Math.random().toString(36).slice(2);function Ws(t){if(!t[No]){t[No]=!0,Yg.forEach(function(n){n!=="selectionchange"&&(b_.has(n)||bc(n,!1,t),bc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[No]||(e[No]=!0,bc("selectionchange",!1,e))}}function Ry(t,e,n,r){switch(gy(e)){case 1:var i=Fx;break;case 4:i=Ax;break;default:i=zd}n=i.bind(null,e,n,t),i=void 0,!yu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function kc(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=kr(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}ny(function(){var c=s,u=Id(n),d=[];e:{var f=Oy.get(t);if(f!==void 0){var h=Bd,p=t;switch(t){case"keypress":if(ha(n)===0)break e;case"keydown":case"keyup":h=Jx;break;case"focusin":p="focus",h=gc;break;case"focusout":p="blur",h=gc;break;case"beforeblur":case"afterblur":h=gc;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":h=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=t_;break;case My:case Ey:case Py:h=Hx;break;case Ty:h=r_;break;case"scroll":h=jx;break;case"wheel":h=s_;break;case"copy":case"cut":case"paste":h=Vx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=_h}var y=(e&4)!==0,w=!y&&t==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var g=c,v;g!==null;){v=g;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,m!==null&&(b=Fs(g,m),b!=null&&y.push(Hs(g,b,v)))),w)break;g=g.return}0<y.length&&(f=new h(f,p,null,n,u),d.push({event:f,listeners:y}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",f&&n!==mu&&(p=n.relatedTarget||n.fromElement)&&(kr(p)||p[kn]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=c,p=p?kr(p):null,p!==null&&(w=Qr(p),p!==w||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=c),h!==p)){if(y=wh,b="onMouseLeave",m="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(y=_h,b="onPointerLeave",m="onPointerEnter",g="pointer"),w=h==null?f:oi(h),v=p==null?f:oi(p),f=new y(b,g+"leave",h,n,u),f.target=w,f.relatedTarget=v,b=null,kr(u)===c&&(y=new y(m,g+"enter",p,n,u),y.target=v,y.relatedTarget=w,b=y),w=b,h&&p)t:{for(y=h,m=p,g=0,v=y;v;v=Gr(v))g++;for(v=0,b=m;b;b=Gr(b))v++;for(;0<g-v;)y=Gr(y),g--;for(;0<v-g;)m=Gr(m),v--;for(;g--;){if(y===m||m!==null&&y===m.alternate)break t;y=Gr(y),m=Gr(m)}y=null}else y=null;h!==null&&Nh(d,f,h,y,!1),p!==null&&w!==null&&Nh(d,w,p,y,!0)}}e:{if(f=c?oi(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var k=f_;else if(Dh(f))if(by)k=g_;else{k=p_;var C=h_}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=m_);if(k&&(k=k(t,c))){_y(d,k,n,u);break e}C&&C(t,f,c),t==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&uu(f,"number",f.value)}switch(C=c?oi(c):window,t){case"focusin":(Dh(C)||C.contentEditable==="true")&&(ii=C,bu=c,ks=null);break;case"focusout":ks=bu=ii=null;break;case"mousedown":ku=!0;break;case"contextmenu":case"mouseup":case"dragend":ku=!1,Ph(d,n,u);break;case"selectionchange":if(w_)break;case"keydown":case"keyup":Ph(d,n,u)}var D;if(Hd)e:{switch(t){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else ri?wy(t,n)&&(S="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(vy&&n.locale!=="ko"&&(ri||S!=="onCompositionStart"?S==="onCompositionEnd"&&ri&&(D=yy()):(jn=u,Yd="value"in jn?jn.value:jn.textContent,ri=!0)),C=ja(c,S),0<C.length&&(S=new xh(S,t,null,n,u),d.push({event:S,listeners:C}),D?S.data=D:(D=xy(n),D!==null&&(S.data=D)))),(D=a_?l_(t,n):c_(t,n))&&(c=ja(c,"onBeforeInput"),0<c.length&&(u=new xh("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=D))}Ny(d,e)})}function Hs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ja(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Fs(t,n),s!=null&&r.unshift(Hs(t,s,i)),s=Fs(t,e),s!=null&&r.push(Hs(t,s,i))),t=t.return}return r}function Gr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Nh(t,e,n,r,i){for(var s=e._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Fs(n,s),l!=null&&o.unshift(Hs(n,l,a))):i||(l=Fs(n,s),l!=null&&o.push(Hs(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var k_=/\r\n?/g,D_=/\u0000|\uFFFD/g;function Rh(t){return(typeof t=="string"?t:""+t).replace(k_,`
`).replace(D_,"")}function Ro(t,e,n){if(e=Rh(e),Rh(t)!==e&&n)throw Error(T(425))}function za(){}var Du=null,Su=null;function Cu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Mu=typeof setTimeout=="function"?setTimeout:void 0,S_=typeof clearTimeout=="function"?clearTimeout:void 0,Lh=typeof Promise=="function"?Promise:void 0,C_=typeof queueMicrotask=="function"?queueMicrotask:typeof Lh<"u"?function(t){return Lh.resolve(null).then(t).catch(M_)}:Mu;function M_(t){setTimeout(function(){throw t})}function Dc(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),zs(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zs(e)}function Qn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Ih(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Wi=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Wi,$s="__reactProps$"+Wi,kn="__reactContainer$"+Wi,Eu="__reactEvents$"+Wi,E_="__reactListeners$"+Wi,P_="__reactHandles$"+Wi;function kr(t){var e=t[Jt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[kn]||n[Jt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ih(t);t!==null;){if(n=t[Jt])return n;t=Ih(t)}return e}t=n,n=t.parentNode}return null}function fo(t){return t=t[Jt]||t[kn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function oi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(T(33))}function Ll(t){return t[$s]||null}var Pu=[],ai=-1;function ur(t){return{current:t}}function de(t){0>ai||(t.current=Pu[ai],Pu[ai]=null,ai--)}function ae(t,e){ai++,Pu[ai]=t.current,t.current=e}var rr={},Ue=ur(rr),at=ur(!1),Ir=rr;function Si(t,e){var n=t.type.contextTypes;if(!n)return rr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function lt(t){return t=t.childContextTypes,t!=null}function Ya(){de(at),de(Ue)}function Fh(t,e,n){if(Ue.current!==rr)throw Error(T(168));ae(Ue,e),ae(at,n)}function Ly(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(T(108,hx(t)||"Unknown",i));return ye({},n,r)}function Ba(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||rr,Ir=Ue.current,ae(Ue,t),ae(at,at.current),!0}function Ah(t,e,n){var r=t.stateNode;if(!r)throw Error(T(169));n?(t=Ly(t,e,Ir),r.__reactInternalMemoizedMergedChildContext=t,de(at),de(Ue),ae(Ue,t)):de(at),ae(at,n)}var hn=null,Il=!1,Sc=!1;function Iy(t){hn===null?hn=[t]:hn.push(t)}function T_(t){Il=!0,Iy(t)}function dr(){if(!Sc&&hn!==null){Sc=!0;var t=0,e=ie;try{var n=hn;for(ie=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}hn=null,Il=!1}catch(i){throw hn!==null&&(hn=hn.slice(t+1)),oy(Fd,dr),i}finally{ie=e,Sc=!1}}return null}var li=[],ci=0,Wa=null,Ha=0,kt=[],Dt=0,Fr=null,gn=1,yn="";function vr(t,e){li[ci++]=Ha,li[ci++]=Wa,Wa=t,Ha=e}function Fy(t,e,n){kt[Dt++]=gn,kt[Dt++]=yn,kt[Dt++]=Fr,Fr=t;var r=gn;t=yn;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var s=32-jt(e)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,gn=1<<32-jt(e)+i|n<<i|r,yn=s+t}else gn=1<<s|n<<i|r,yn=t}function Vd(t){t.return!==null&&(vr(t,1),Fy(t,1,0))}function Ud(t){for(;t===Wa;)Wa=li[--ci],li[ci]=null,Ha=li[--ci],li[ci]=null;for(;t===Fr;)Fr=kt[--Dt],kt[Dt]=null,yn=kt[--Dt],kt[Dt]=null,gn=kt[--Dt],kt[Dt]=null}var gt=null,pt=null,he=!1,At=null;function Ay(t,e){var n=St(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function jh(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,gt=t,pt=Qn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,gt=t,pt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Fr!==null?{id:gn,overflow:yn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=St(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,gt=t,pt=null,!0):!1;default:return!1}}function Tu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ou(t){if(he){var e=pt;if(e){var n=e;if(!jh(t,e)){if(Tu(t))throw Error(T(418));e=Qn(n.nextSibling);var r=gt;e&&jh(t,e)?Ay(r,n):(t.flags=t.flags&-4097|2,he=!1,gt=t)}}else{if(Tu(t))throw Error(T(418));t.flags=t.flags&-4097|2,he=!1,gt=t}}}function zh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;gt=t}function Lo(t){if(t!==gt)return!1;if(!he)return zh(t),he=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Cu(t.type,t.memoizedProps)),e&&(e=pt)){if(Tu(t))throw jy(),Error(T(418));for(;e;)Ay(t,e),e=Qn(e.nextSibling)}if(zh(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(T(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){pt=Qn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}pt=null}}else pt=gt?Qn(t.stateNode.nextSibling):null;return!0}function jy(){for(var t=pt;t;)t=Qn(t.nextSibling)}function Ci(){pt=gt=null,he=!1}function Qd(t){At===null?At=[t]:At.push(t)}var O_=Mn.ReactCurrentBatchConfig;function Gi(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,t))}return t}function Io(t,e){throw t=Object.prototype.toString.call(e),Error(T(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Yh(t){var e=t._init;return e(t._payload)}function zy(t){function e(m,g){if(t){var v=m.deletions;v===null?(m.deletions=[g],m.flags|=16):v.push(g)}}function n(m,g){if(!t)return null;for(;g!==null;)e(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=Gn(m,g),m.index=0,m.sibling=null,m}function s(m,g,v){return m.index=v,t?(v=m.alternate,v!==null?(v=v.index,v<g?(m.flags|=2,g):v):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return t&&m.alternate===null&&(m.flags|=2),m}function a(m,g,v,b){return g===null||g.tag!==6?(g=Nc(v,m.mode,b),g.return=m,g):(g=i(g,v),g.return=m,g)}function l(m,g,v,b){var k=v.type;return k===ni?u(m,g,v.props.children,b,v.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&Yh(k)===g.type)?(b=i(g,v.props),b.ref=Gi(m,g,v),b.return=m,b):(b=xa(v.type,v.key,v.props,null,m.mode,b),b.ref=Gi(m,g,v),b.return=m,b)}function c(m,g,v,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=Rc(v,m.mode,b),g.return=m,g):(g=i(g,v.children||[]),g.return=m,g)}function u(m,g,v,b,k){return g===null||g.tag!==7?(g=Pr(v,m.mode,b,k),g.return=m,g):(g=i(g,v),g.return=m,g)}function d(m,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Nc(""+g,m.mode,v),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Do:return v=xa(g.type,g.key,g.props,null,m.mode,v),v.ref=Gi(m,null,g),v.return=m,v;case ti:return g=Rc(g,m.mode,v),g.return=m,g;case Rn:var b=g._init;return d(m,b(g._payload),v)}if(us(g)||Ui(g))return g=Pr(g,m.mode,v,null),g.return=m,g;Io(m,g)}return null}function f(m,g,v,b){var k=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return k!==null?null:a(m,g,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Do:return v.key===k?l(m,g,v,b):null;case ti:return v.key===k?c(m,g,v,b):null;case Rn:return k=v._init,f(m,g,k(v._payload),b)}if(us(v)||Ui(v))return k!==null?null:u(m,g,v,b,null);Io(m,v)}return null}function h(m,g,v,b,k){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(v)||null,a(g,m,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Do:return m=m.get(b.key===null?v:b.key)||null,l(g,m,b,k);case ti:return m=m.get(b.key===null?v:b.key)||null,c(g,m,b,k);case Rn:var C=b._init;return h(m,g,v,C(b._payload),k)}if(us(b)||Ui(b))return m=m.get(v)||null,u(g,m,b,k,null);Io(g,b)}return null}function p(m,g,v,b){for(var k=null,C=null,D=g,S=g=0,O=null;D!==null&&S<v.length;S++){D.index>S?(O=D,D=null):O=D.sibling;var N=f(m,D,v[S],b);if(N===null){D===null&&(D=O);break}t&&D&&N.alternate===null&&e(m,D),g=s(N,g,S),C===null?k=N:C.sibling=N,C=N,D=O}if(S===v.length)return n(m,D),he&&vr(m,S),k;if(D===null){for(;S<v.length;S++)D=d(m,v[S],b),D!==null&&(g=s(D,g,S),C===null?k=D:C.sibling=D,C=D);return he&&vr(m,S),k}for(D=r(m,D);S<v.length;S++)O=h(D,m,S,v[S],b),O!==null&&(t&&O.alternate!==null&&D.delete(O.key===null?S:O.key),g=s(O,g,S),C===null?k=O:C.sibling=O,C=O);return t&&D.forEach(function(I){return e(m,I)}),he&&vr(m,S),k}function y(m,g,v,b){var k=Ui(v);if(typeof k!="function")throw Error(T(150));if(v=k.call(v),v==null)throw Error(T(151));for(var C=k=null,D=g,S=g=0,O=null,N=v.next();D!==null&&!N.done;S++,N=v.next()){D.index>S?(O=D,D=null):O=D.sibling;var I=f(m,D,N.value,b);if(I===null){D===null&&(D=O);break}t&&D&&I.alternate===null&&e(m,D),g=s(I,g,S),C===null?k=I:C.sibling=I,C=I,D=O}if(N.done)return n(m,D),he&&vr(m,S),k;if(D===null){for(;!N.done;S++,N=v.next())N=d(m,N.value,b),N!==null&&(g=s(N,g,S),C===null?k=N:C.sibling=N,C=N);return he&&vr(m,S),k}for(D=r(m,D);!N.done;S++,N=v.next())N=h(D,m,S,N.value,b),N!==null&&(t&&N.alternate!==null&&D.delete(N.key===null?S:N.key),g=s(N,g,S),C===null?k=N:C.sibling=N,C=N);return t&&D.forEach(function(A){return e(m,A)}),he&&vr(m,S),k}function w(m,g,v,b){if(typeof v=="object"&&v!==null&&v.type===ni&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Do:e:{for(var k=v.key,C=g;C!==null;){if(C.key===k){if(k=v.type,k===ni){if(C.tag===7){n(m,C.sibling),g=i(C,v.props.children),g.return=m,m=g;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&Yh(k)===C.type){n(m,C.sibling),g=i(C,v.props),g.ref=Gi(m,C,v),g.return=m,m=g;break e}n(m,C);break}else e(m,C);C=C.sibling}v.type===ni?(g=Pr(v.props.children,m.mode,b,v.key),g.return=m,m=g):(b=xa(v.type,v.key,v.props,null,m.mode,b),b.ref=Gi(m,g,v),b.return=m,m=b)}return o(m);case ti:e:{for(C=v.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=i(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else e(m,g);g=g.sibling}g=Rc(v,m.mode,b),g.return=m,m=g}return o(m);case Rn:return C=v._init,w(m,g,C(v._payload),b)}if(us(v))return p(m,g,v,b);if(Ui(v))return y(m,g,v,b);Io(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,v),g.return=m,m=g):(n(m,g),g=Nc(v,m.mode,b),g.return=m,m=g),o(m)):n(m,g)}return w}var Mi=zy(!0),Yy=zy(!1),$a=ur(null),Va=null,ui=null,Kd=null;function qd(){Kd=ui=Va=null}function Xd(t){var e=$a.current;de($a),t._currentValue=e}function Nu(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function vi(t,e){Va=t,Kd=ui=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(st=!0),t.firstContext=null)}function Ot(t){var e=t._currentValue;if(Kd!==t)if(t={context:t,memoizedValue:e,next:null},ui===null){if(Va===null)throw Error(T(308));ui=t,Va.dependencies={lanes:0,firstContext:t}}else ui=ui.next=t;return e}var Dr=null;function Gd(t){Dr===null?Dr=[t]:Dr.push(t)}function By(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,Gd(e)):(n.next=i.next,i.next=n),e.interleaved=n,Dn(t,r)}function Dn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Ln=!1;function Jd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wy(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function wn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Kn(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Dn(t,n)}return i=r.interleaved,i===null?(e.next=e,Gd(r)):(e.next=i.next,i.next=e),r.interleaved=e,Dn(t,n)}function pa(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Ad(t,n)}}function Bh(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ua(t,e,n,r){var i=t.updateQueue;Ln=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,u=c=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=t,y=a;switch(f=e,h=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=ye({},d,f);break e;case 2:Ln=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);jr|=o,t.lanes=o,t.memoizedState=d}}function Wh(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var ho={},nn=ur(ho),Vs=ur(ho),Us=ur(ho);function Sr(t){if(t===ho)throw Error(T(174));return t}function Zd(t,e){switch(ae(Us,e),ae(Vs,t),ae(nn,ho),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:fu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=fu(e,t)}de(nn),ae(nn,e)}function Ei(){de(nn),de(Vs),de(Us)}function Hy(t){Sr(Us.current);var e=Sr(nn.current),n=fu(e,t.type);e!==n&&(ae(Vs,t),ae(nn,n))}function ef(t){Vs.current===t&&(de(nn),de(Vs))}var pe=ur(0);function Qa(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cc=[];function tf(){for(var t=0;t<Cc.length;t++)Cc[t]._workInProgressVersionPrimary=null;Cc.length=0}var ma=Mn.ReactCurrentDispatcher,Mc=Mn.ReactCurrentBatchConfig,Ar=0,ge=null,Ee=null,Oe=null,Ka=!1,Ds=!1,Qs=0,N_=0;function We(){throw Error(T(321))}function nf(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Bt(t[n],e[n]))return!1;return!0}function rf(t,e,n,r,i,s){if(Ar=s,ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ma.current=t===null||t.memoizedState===null?F_:A_,t=n(r,i),Ds){s=0;do{if(Ds=!1,Qs=0,25<=s)throw Error(T(301));s+=1,Oe=Ee=null,e.updateQueue=null,ma.current=j_,t=n(r,i)}while(Ds)}if(ma.current=qa,e=Ee!==null&&Ee.next!==null,Ar=0,Oe=Ee=ge=null,Ka=!1,e)throw Error(T(300));return t}function sf(){var t=Qs!==0;return Qs=0,t}function Kt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?ge.memoizedState=Oe=t:Oe=Oe.next=t,Oe}function Nt(){if(Ee===null){var t=ge.alternate;t=t!==null?t.memoizedState:null}else t=Ee.next;var e=Oe===null?ge.memoizedState:Oe.next;if(e!==null)Oe=e,Ee=t;else{if(t===null)throw Error(T(310));Ee=t,t={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Oe===null?ge.memoizedState=Oe=t:Oe=Oe.next=t}return Oe}function Ks(t,e){return typeof e=="function"?e(t):e}function Ec(t){var e=Nt(),n=e.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=t;var r=Ee,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var u=c.lane;if((Ar&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,ge.lanes|=u,jr|=u}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Bt(r,e.memoizedState)||(st=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,ge.lanes|=s,jr|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Pc(t){var e=Nt(),n=e.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Bt(s,e.memoizedState)||(st=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function $y(){}function Vy(t,e){var n=ge,r=Nt(),i=e(),s=!Bt(r.memoizedState,i);if(s&&(r.memoizedState=i,st=!0),r=r.queue,of(Ky.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,qs(9,Qy.bind(null,n,r,i,e),void 0,null),Re===null)throw Error(T(349));Ar&30||Uy(n,e,i)}return i}function Uy(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ge.updateQueue,e===null?(e={lastEffect:null,stores:null},ge.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Qy(t,e,n,r){e.value=n,e.getSnapshot=r,qy(e)&&Xy(t)}function Ky(t,e,n){return n(function(){qy(e)&&Xy(t)})}function qy(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Bt(t,n)}catch{return!0}}function Xy(t){var e=Dn(t,1);e!==null&&zt(e,t,1,-1)}function Hh(t){var e=Kt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ks,lastRenderedState:t},e.queue=t,t=t.dispatch=I_.bind(null,ge,t),[e.memoizedState,t]}function qs(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=ge.updateQueue,e===null?(e={lastEffect:null,stores:null},ge.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Gy(){return Nt().memoizedState}function ga(t,e,n,r){var i=Kt();ge.flags|=t,i.memoizedState=qs(1|e,n,void 0,r===void 0?null:r)}function Fl(t,e,n,r){var i=Nt();r=r===void 0?null:r;var s=void 0;if(Ee!==null){var o=Ee.memoizedState;if(s=o.destroy,r!==null&&nf(r,o.deps)){i.memoizedState=qs(e,n,s,r);return}}ge.flags|=t,i.memoizedState=qs(1|e,n,s,r)}function $h(t,e){return ga(8390656,8,t,e)}function of(t,e){return Fl(2048,8,t,e)}function Jy(t,e){return Fl(4,2,t,e)}function Zy(t,e){return Fl(4,4,t,e)}function e0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function t0(t,e,n){return n=n!=null?n.concat([t]):null,Fl(4,4,e0.bind(null,e,t),n)}function af(){}function n0(t,e){var n=Nt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&nf(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function r0(t,e){var n=Nt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&nf(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function i0(t,e,n){return Ar&21?(Bt(n,e)||(n=cy(),ge.lanes|=n,jr|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,st=!0),t.memoizedState=n)}function R_(t,e){var n=ie;ie=n!==0&&4>n?n:4,t(!0);var r=Mc.transition;Mc.transition={};try{t(!1),e()}finally{ie=n,Mc.transition=r}}function s0(){return Nt().memoizedState}function L_(t,e,n){var r=Xn(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o0(t))a0(e,n);else if(n=By(t,e,n,r),n!==null){var i=Ze();zt(n,t,r,i),l0(n,e,r)}}function I_(t,e,n){var r=Xn(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o0(t))a0(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Bt(a,o)){var l=e.interleaved;l===null?(i.next=i,Gd(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=By(t,e,i,r),n!==null&&(i=Ze(),zt(n,t,r,i),l0(n,e,r))}}function o0(t){var e=t.alternate;return t===ge||e!==null&&e===ge}function a0(t,e){Ds=Ka=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function l0(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Ad(t,n)}}var qa={readContext:Ot,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},F_={readContext:Ot,useCallback:function(t,e){return Kt().memoizedState=[t,e===void 0?null:e],t},useContext:Ot,useEffect:$h,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,ga(4194308,4,e0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ga(4194308,4,t,e)},useInsertionEffect:function(t,e){return ga(4,2,t,e)},useMemo:function(t,e){var n=Kt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Kt();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=L_.bind(null,ge,t),[r.memoizedState,t]},useRef:function(t){var e=Kt();return t={current:t},e.memoizedState=t},useState:Hh,useDebugValue:af,useDeferredValue:function(t){return Kt().memoizedState=t},useTransition:function(){var t=Hh(!1),e=t[0];return t=R_.bind(null,t[1]),Kt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ge,i=Kt();if(he){if(n===void 0)throw Error(T(407));n=n()}else{if(n=e(),Re===null)throw Error(T(349));Ar&30||Uy(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,$h(Ky.bind(null,r,s,t),[t]),r.flags|=2048,qs(9,Qy.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Kt(),e=Re.identifierPrefix;if(he){var n=yn,r=gn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Qs++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=N_++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},A_={readContext:Ot,useCallback:n0,useContext:Ot,useEffect:of,useImperativeHandle:t0,useInsertionEffect:Jy,useLayoutEffect:Zy,useMemo:r0,useReducer:Ec,useRef:Gy,useState:function(){return Ec(Ks)},useDebugValue:af,useDeferredValue:function(t){var e=Nt();return i0(e,Ee.memoizedState,t)},useTransition:function(){var t=Ec(Ks)[0],e=Nt().memoizedState;return[t,e]},useMutableSource:$y,useSyncExternalStore:Vy,useId:s0,unstable_isNewReconciler:!1},j_={readContext:Ot,useCallback:n0,useContext:Ot,useEffect:of,useImperativeHandle:t0,useInsertionEffect:Jy,useLayoutEffect:Zy,useMemo:r0,useReducer:Pc,useRef:Gy,useState:function(){return Pc(Ks)},useDebugValue:af,useDeferredValue:function(t){var e=Nt();return Ee===null?e.memoizedState=t:i0(e,Ee.memoizedState,t)},useTransition:function(){var t=Pc(Ks)[0],e=Nt().memoizedState;return[t,e]},useMutableSource:$y,useSyncExternalStore:Vy,useId:s0,unstable_isNewReconciler:!1};function Lt(t,e){if(t&&t.defaultProps){e=ye({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Ru(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:ye({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Al={isMounted:function(t){return(t=t._reactInternals)?Qr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ze(),i=Xn(t),s=wn(r,i);s.payload=e,n!=null&&(s.callback=n),e=Kn(t,s,i),e!==null&&(zt(e,t,i,r),pa(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ze(),i=Xn(t),s=wn(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Kn(t,s,i),e!==null&&(zt(e,t,i,r),pa(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ze(),r=Xn(t),i=wn(n,r);i.tag=2,e!=null&&(i.callback=e),e=Kn(t,i,r),e!==null&&(zt(e,t,r,n),pa(e,t,r))}};function Vh(t,e,n,r,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,o):e.prototype&&e.prototype.isPureReactComponent?!Bs(n,r)||!Bs(i,s):!0}function c0(t,e,n){var r=!1,i=rr,s=e.contextType;return typeof s=="object"&&s!==null?s=Ot(s):(i=lt(e)?Ir:Ue.current,r=e.contextTypes,s=(r=r!=null)?Si(t,i):rr),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Al,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function Uh(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Al.enqueueReplaceState(e,e.state,null)}function Lu(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},Jd(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=Ot(s):(s=lt(e)?Ir:Ue.current,i.context=Si(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(Ru(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Al.enqueueReplaceState(i,i.state,null),Ua(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function Pi(t,e){try{var n="",r=e;do n+=fx(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:t,source:e,stack:i,digest:null}}function Tc(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Iu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var z_=typeof WeakMap=="function"?WeakMap:Map;function u0(t,e,n){n=wn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ga||(Ga=!0,Vu=r),Iu(t,e)},n}function d0(t,e,n){n=wn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Iu(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Iu(t,e),typeof r!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Qh(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new z_;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Z_.bind(null,t,e,n),e.then(t,t))}function Kh(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function qh(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=wn(-1,1),e.tag=2,Kn(n,e,1))),n.lanes|=1),t)}var Y_=Mn.ReactCurrentOwner,st=!1;function Xe(t,e,n,r){e.child=t===null?Yy(e,null,n,r):Mi(e,t.child,n,r)}function Xh(t,e,n,r,i){n=n.render;var s=e.ref;return vi(e,i),r=rf(t,e,n,r,s,i),n=sf(),t!==null&&!st?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Sn(t,e,i)):(he&&n&&Vd(e),e.flags|=1,Xe(t,e,r,i),e.child)}function Gh(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!mf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,f0(t,e,s,r,i)):(t=xa(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Bs,n(o,r)&&t.ref===e.ref)return Sn(t,e,i)}return e.flags|=1,t=Gn(s,r),t.ref=e.ref,t.return=e,e.child=t}function f0(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(Bs(s,r)&&t.ref===e.ref)if(st=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(st=!0);else return e.lanes=t.lanes,Sn(t,e,i)}return Fu(t,e,n,r,i)}function h0(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(fi,ft),ft|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ae(fi,ft),ft|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ae(fi,ft),ft|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,ae(fi,ft),ft|=r;return Xe(t,e,i,n),e.child}function p0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Fu(t,e,n,r,i){var s=lt(n)?Ir:Ue.current;return s=Si(e,s),vi(e,i),n=rf(t,e,n,r,s,i),r=sf(),t!==null&&!st?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Sn(t,e,i)):(he&&r&&Vd(e),e.flags|=1,Xe(t,e,n,i),e.child)}function Jh(t,e,n,r,i){if(lt(n)){var s=!0;Ba(e)}else s=!1;if(vi(e,i),e.stateNode===null)ya(t,e),c0(e,n,r),Lu(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ot(c):(c=lt(n)?Ir:Ue.current,c=Si(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Uh(e,o,r,c),Ln=!1;var f=e.memoizedState;o.state=f,Ua(e,r,o,i),l=e.memoizedState,a!==r||f!==l||at.current||Ln?(typeof u=="function"&&(Ru(e,n,u,r),l=e.memoizedState),(a=Ln||Vh(e,n,a,r,f,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Wy(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:Lt(e.type,a),o.props=c,d=e.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ot(l):(l=lt(n)?Ir:Ue.current,l=Si(e,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Uh(e,o,r,l),Ln=!1,f=e.memoizedState,o.state=f,Ua(e,r,o,i);var p=e.memoizedState;a!==d||f!==p||at.current||Ln?(typeof h=="function"&&(Ru(e,n,h,r),p=e.memoizedState),(c=Ln||Vh(e,n,c,r,f,p,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),o.props=r,o.state=p,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return Au(t,e,n,r,s,i)}function Au(t,e,n,r,i,s){p0(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&Ah(e,n,!1),Sn(t,e,s);r=e.stateNode,Y_.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=Mi(e,t.child,null,s),e.child=Mi(e,null,a,s)):Xe(t,e,a,s),e.memoizedState=r.state,i&&Ah(e,n,!0),e.child}function m0(t){var e=t.stateNode;e.pendingContext?Fh(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Fh(t,e.context,!1),Zd(t,e.containerInfo)}function Zh(t,e,n,r,i){return Ci(),Qd(i),e.flags|=256,Xe(t,e,n,r),e.child}var ju={dehydrated:null,treeContext:null,retryLane:0};function zu(t){return{baseLanes:t,cachePool:null,transitions:null}}function g0(t,e,n){var r=e.pendingProps,i=pe.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),ae(pe,i&1),t===null)return Ou(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Yl(o,r,0,null),t=Pr(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=zu(n),e.memoizedState=ju,t):lf(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return B_(t,e,o,r,a,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Gn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Gn(a,s):(s=Pr(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?zu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=ju,r}return s=t.child,t=s.sibling,r=Gn(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function lf(t,e){return e=Yl({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Fo(t,e,n,r){return r!==null&&Qd(r),Mi(e,t.child,null,n),t=lf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function B_(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=Tc(Error(T(422))),Fo(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Yl({mode:"visible",children:r.children},i,0,null),s=Pr(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&Mi(e,t.child,null,o),e.child.memoizedState=zu(o),e.memoizedState=ju,s);if(!(e.mode&1))return Fo(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(T(419)),r=Tc(s,r,void 0),Fo(t,e,o,r)}if(a=(o&t.childLanes)!==0,st||a){if(r=Re,r!==null){switch(o&-o){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|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Dn(t,i),zt(r,t,i,-1))}return pf(),r=Tc(Error(T(421))),Fo(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=eb.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,pt=Qn(i.nextSibling),gt=e,he=!0,At=null,t!==null&&(kt[Dt++]=gn,kt[Dt++]=yn,kt[Dt++]=Fr,gn=t.id,yn=t.overflow,Fr=e),e=lf(e,r.children),e.flags|=4096,e)}function ep(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Nu(t.return,e,n)}function Oc(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function y0(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(Xe(t,e,r.children,n),r=pe.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ep(t,n,e);else if(t.tag===19)ep(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ae(pe,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Qa(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Oc(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Qa(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Oc(e,!0,n,null,s);break;case"together":Oc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function ya(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),jr|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(T(153));if(e.child!==null){for(t=e.child,n=Gn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Gn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function W_(t,e,n){switch(e.tag){case 3:m0(e),Ci();break;case 5:Hy(e);break;case 1:lt(e.type)&&Ba(e);break;case 4:Zd(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;ae($a,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(ae(pe,pe.current&1),e.flags|=128,null):n&e.child.childLanes?g0(t,e,n):(ae(pe,pe.current&1),t=Sn(t,e,n),t!==null?t.sibling:null);ae(pe,pe.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return y0(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(pe,pe.current),r)break;return null;case 22:case 23:return e.lanes=0,h0(t,e,n)}return Sn(t,e,n)}var v0,Yu,w0,x0;v0=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yu=function(){};w0=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Sr(nn.current);var s=null;switch(n){case"input":i=lu(t,i),r=lu(t,r),s=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),s=[];break;case"textarea":i=du(t,i),r=du(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=za)}hu(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ls.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ls.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ce("scroll",t),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(e.updateQueue=c)&&(e.flags|=4)}};x0=function(t,e,n,r){n!==r&&(e.flags|=4)};function Ji(t,e){if(!he)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function He(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function H_(t,e,n){var r=e.pendingProps;switch(Ud(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(e),null;case 1:return lt(e.type)&&Ya(),He(e),null;case 3:return r=e.stateNode,Ei(),de(at),de(Ue),tf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Lo(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,At!==null&&(Ku(At),At=null))),Yu(t,e),He(e),null;case 5:ef(e);var i=Sr(Us.current);if(n=e.type,t!==null&&e.stateNode!=null)w0(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(T(166));return He(e),null}if(t=Sr(nn.current),Lo(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Jt]=e,r[$s]=s,t=(e.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(i=0;i<fs.length;i++)ce(fs[i],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":ch(r,s),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ce("invalid",r);break;case"textarea":dh(r,s),ce("invalid",r)}hu(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ro(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ro(r.textContent,a,t),i=["children",""+a]):Ls.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ce("scroll",r)}switch(n){case"input":So(r),uh(r,s,!0);break;case"textarea":So(r),fh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=za)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Kg(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Jt]=e,t[$s]=r,v0(t,e,!1,!1),e.stateNode=t;e:{switch(o=pu(n,r),n){case"dialog":ce("cancel",t),ce("close",t),i=r;break;case"iframe":case"object":case"embed":ce("load",t),i=r;break;case"video":case"audio":for(i=0;i<fs.length;i++)ce(fs[i],t);i=r;break;case"source":ce("error",t),i=r;break;case"img":case"image":case"link":ce("error",t),ce("load",t),i=r;break;case"details":ce("toggle",t),i=r;break;case"input":ch(t,r),i=lu(t,r),ce("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=ye({},r,{value:void 0}),ce("invalid",t);break;case"textarea":dh(t,r),i=du(t,r),ce("invalid",t);break;default:i=r}hu(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Gg(t,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qg(t,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Is(t,l):typeof l=="number"&&Is(t,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ls.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ce("scroll",t):l!=null&&Od(t,s,l,o))}switch(n){case"input":So(t),uh(t,r,!1);break;case"textarea":So(t),fh(t);break;case"option":r.value!=null&&t.setAttribute("value",""+nr(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?pi(t,!!r.multiple,s,!1):r.defaultValue!=null&&pi(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=za)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return He(e),null;case 6:if(t&&e.stateNode!=null)x0(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(T(166));if(n=Sr(Us.current),Sr(nn.current),Lo(e)){if(r=e.stateNode,n=e.memoizedProps,r[Jt]=e,(s=r.nodeValue!==n)&&(t=gt,t!==null))switch(t.tag){case 3:Ro(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ro(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jt]=e,e.stateNode=r}return He(e),null;case 13:if(de(pe),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(he&&pt!==null&&e.mode&1&&!(e.flags&128))jy(),Ci(),e.flags|=98560,s=!1;else if(s=Lo(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(T(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(T(317));s[Jt]=e}else Ci(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;He(e),s=!1}else At!==null&&(Ku(At),At=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||pe.current&1?Pe===0&&(Pe=3):pf())),e.updateQueue!==null&&(e.flags|=4),He(e),null);case 4:return Ei(),Yu(t,e),t===null&&Ws(e.stateNode.containerInfo),He(e),null;case 10:return Xd(e.type._context),He(e),null;case 17:return lt(e.type)&&Ya(),He(e),null;case 19:if(de(pe),s=e.memoizedState,s===null)return He(e),null;if(r=(e.flags&128)!==0,o=s.rendering,o===null)if(r)Ji(s,!1);else{if(Pe!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Qa(t),o!==null){for(e.flags|=128,Ji(s,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ae(pe,pe.current&1|2),e.child}t=t.sibling}s.tail!==null&&be()>Ti&&(e.flags|=128,r=!0,Ji(s,!1),e.lanes=4194304)}else{if(!r)if(t=Qa(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ji(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!he)return He(e),null}else 2*be()-s.renderingStartTime>Ti&&n!==1073741824&&(e.flags|=128,r=!0,Ji(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=be(),e.sibling=null,n=pe.current,ae(pe,r?n&1|2:n&1),e):(He(e),null);case 22:case 23:return hf(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?ft&1073741824&&(He(e),e.subtreeFlags&6&&(e.flags|=8192)):He(e),null;case 24:return null;case 25:return null}throw Error(T(156,e.tag))}function $_(t,e){switch(Ud(e),e.tag){case 1:return lt(e.type)&&Ya(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ei(),de(at),de(Ue),tf(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ef(e),null;case 13:if(de(pe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(T(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return de(pe),null;case 4:return Ei(),null;case 10:return Xd(e.type._context),null;case 22:case 23:return hf(),null;case 24:return null;default:return null}}var Ao=!1,Ve=!1,V_=typeof WeakSet=="function"?WeakSet:Set,j=null;function di(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(t,e,r)}else n.current=null}function Bu(t,e,n){try{n()}catch(r){ve(t,e,r)}}var tp=!1;function U_(t,e){if(Du=Fa,t=Sy(),$d(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++c===i&&(a=o),f===s&&++u===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:t,selectionRange:n},Fa=!1,j=e;j!==null;)if(e=j,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,j=t;else for(;j!==null;){e=j;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,w=p.memoizedState,m=e.stateNode,g=m.getSnapshotBeforeUpdate(e.elementType===e.type?y:Lt(e.type,y),w);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(b){ve(e,e.return,b)}if(t=e.sibling,t!==null){t.return=e.return,j=t;break}j=e.return}return p=tp,tp=!1,p}function Ss(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Bu(e,n,s)}i=i.next}while(i!==r)}}function jl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Wu(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function _0(t){var e=t.alternate;e!==null&&(t.alternate=null,_0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Jt],delete e[$s],delete e[Eu],delete e[E_],delete e[P_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function b0(t){return t.tag===5||t.tag===3||t.tag===4}function np(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||b0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Hu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=za));else if(r!==4&&(t=t.child,t!==null))for(Hu(t,e,n),t=t.sibling;t!==null;)Hu(t,e,n),t=t.sibling}function $u(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for($u(t,e,n),t=t.sibling;t!==null;)$u(t,e,n),t=t.sibling}var je=null,It=!1;function Pn(t,e,n){for(n=n.child;n!==null;)k0(t,e,n),n=n.sibling}function k0(t,e,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Tl,n)}catch{}switch(n.tag){case 5:Ve||di(n,e);case 6:var r=je,i=It;je=null,Pn(t,e,n),je=r,It=i,je!==null&&(It?(t=je,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(It?(t=je,n=n.stateNode,t.nodeType===8?Dc(t.parentNode,n):t.nodeType===1&&Dc(t,n),zs(t)):Dc(je,n.stateNode));break;case 4:r=je,i=It,je=n.stateNode.containerInfo,It=!0,Pn(t,e,n),je=r,It=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Bu(n,e,o),i=i.next}while(i!==r)}Pn(t,e,n);break;case 1:if(!Ve&&(di(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ve(n,e,a)}Pn(t,e,n);break;case 21:Pn(t,e,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,Pn(t,e,n),Ve=r):Pn(t,e,n);break;default:Pn(t,e,n)}}function rp(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new V_),e.forEach(function(r){var i=tb.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rt(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:je=a.stateNode,It=!1;break e;case 3:je=a.stateNode.containerInfo,It=!0;break e;case 4:je=a.stateNode.containerInfo,It=!0;break e}a=a.return}if(je===null)throw Error(T(160));k0(s,o,i),je=null,It=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ve(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)D0(e,t),e=e.sibling}function D0(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Rt(e,t),Ut(t),r&4){try{Ss(3,t,t.return),jl(3,t)}catch(y){ve(t,t.return,y)}try{Ss(5,t,t.return)}catch(y){ve(t,t.return,y)}}break;case 1:Rt(e,t),Ut(t),r&512&&n!==null&&di(n,n.return);break;case 5:if(Rt(e,t),Ut(t),r&512&&n!==null&&di(n,n.return),t.flags&32){var i=t.stateNode;try{Is(i,"")}catch(y){ve(t,t.return,y)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Ug(i,s),pu(a,o);var c=pu(a,s);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?Gg(i,d):u==="dangerouslySetInnerHTML"?qg(i,d):u==="children"?Is(i,d):Od(i,u,d,c)}switch(a){case"input":cu(i,s);break;case"textarea":Qg(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?pi(i,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?pi(i,!!s.multiple,s.defaultValue,!0):pi(i,!!s.multiple,s.multiple?[]:"",!1))}i[$s]=s}catch(y){ve(t,t.return,y)}}break;case 6:if(Rt(e,t),Ut(t),r&4){if(t.stateNode===null)throw Error(T(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(y){ve(t,t.return,y)}}break;case 3:if(Rt(e,t),Ut(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zs(e.containerInfo)}catch(y){ve(t,t.return,y)}break;case 4:Rt(e,t),Ut(t);break;case 13:Rt(e,t),Ut(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(df=be())),r&4&&rp(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(Ve=(c=Ve)||u,Rt(e,t),Ve=c):Rt(e,t),Ut(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(j=t,u=t.child;u!==null;){for(d=j=u;j!==null;){switch(f=j,h=f.child,f.tag){case 0:case 11:case 14:case 15:Ss(4,f,f.return);break;case 1:di(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,p.props=e.memoizedProps,p.state=e.memoizedState,p.componentWillUnmount()}catch(y){ve(r,n,y)}}break;case 5:di(f,f.return);break;case 22:if(f.memoizedState!==null){sp(d);continue}}h!==null?(h.return=f,j=h):sp(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Xg("display",o))}catch(y){ve(t,t.return,y)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(y){ve(t,t.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Rt(e,t),Ut(t),r&4&&rp(t);break;case 21:break;default:Rt(e,t),Ut(t)}}function Ut(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(b0(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Is(i,""),r.flags&=-33);var s=np(t);$u(t,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=np(t);Hu(t,a,o);break;default:throw Error(T(161))}}catch(l){ve(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Q_(t,e,n){j=t,S0(t)}function S0(t,e,n){for(var r=(t.mode&1)!==0;j!==null;){var i=j,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Ao;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ve;a=Ao;var c=Ve;if(Ao=o,(Ve=l)&&!c)for(j=i;j!==null;)o=j,l=o.child,o.tag===22&&o.memoizedState!==null?op(i):l!==null?(l.return=o,j=l):op(i);for(;s!==null;)j=s,S0(s),s=s.sibling;j=i,Ao=a,Ve=c}ip(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,j=s):ip(t)}}function ip(t){for(;j!==null;){var e=j;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Ve||jl(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Lt(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&Wh(e,s,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Wh(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.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(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&zs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Ve||e.flags&512&&Wu(e)}catch(f){ve(e,e.return,f)}}if(e===t){j=null;break}if(n=e.sibling,n!==null){n.return=e.return,j=n;break}j=e.return}}function sp(t){for(;j!==null;){var e=j;if(e===t){j=null;break}var n=e.sibling;if(n!==null){n.return=e.return,j=n;break}j=e.return}}function op(t){for(;j!==null;){var e=j;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{jl(4,e)}catch(l){ve(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){ve(e,i,l)}}var s=e.return;try{Wu(e)}catch(l){ve(e,s,l)}break;case 5:var o=e.return;try{Wu(e)}catch(l){ve(e,o,l)}}}catch(l){ve(e,e.return,l)}if(e===t){j=null;break}var a=e.sibling;if(a!==null){a.return=e.return,j=a;break}j=e.return}}var K_=Math.ceil,Xa=Mn.ReactCurrentDispatcher,cf=Mn.ReactCurrentOwner,Et=Mn.ReactCurrentBatchConfig,X=0,Re=null,Ce=null,ze=0,ft=0,fi=ur(0),Pe=0,Xs=null,jr=0,zl=0,uf=0,Cs=null,rt=null,df=0,Ti=1/0,fn=null,Ga=!1,Vu=null,qn=null,jo=!1,zn=null,Ja=0,Ms=0,Uu=null,va=-1,wa=0;function Ze(){return X&6?be():va!==-1?va:va=be()}function Xn(t){return t.mode&1?X&2&&ze!==0?ze&-ze:O_.transition!==null?(wa===0&&(wa=cy()),wa):(t=ie,t!==0||(t=window.event,t=t===void 0?16:gy(t.type)),t):1}function zt(t,e,n,r){if(50<Ms)throw Ms=0,Uu=null,Error(T(185));co(t,n,r),(!(X&2)||t!==Re)&&(t===Re&&(!(X&2)&&(zl|=n),Pe===4&&An(t,ze)),ct(t,r),n===1&&X===0&&!(e.mode&1)&&(Ti=be()+500,Il&&dr()))}function ct(t,e){var n=t.callbackNode;Ox(t,e);var r=Ia(t,t===Re?ze:0);if(r===0)n!==null&&mh(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&mh(n),e===1)t.tag===0?T_(ap.bind(null,t)):Iy(ap.bind(null,t)),C_(function(){!(X&6)&&dr()}),n=null;else{switch(uy(r)){case 1:n=Fd;break;case 4:n=ay;break;case 16:n=La;break;case 536870912:n=ly;break;default:n=La}n=R0(n,C0.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function C0(t,e){if(va=-1,wa=0,X&6)throw Error(T(327));var n=t.callbackNode;if(wi()&&t.callbackNode!==n)return null;var r=Ia(t,t===Re?ze:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Za(t,r);else{e=r;var i=X;X|=2;var s=E0();(Re!==t||ze!==e)&&(fn=null,Ti=be()+500,Er(t,e));do try{G_();break}catch(a){M0(t,a)}while(!0);qd(),Xa.current=s,X=i,Ce!==null?e=0:(Re=null,ze=0,e=Pe)}if(e!==0){if(e===2&&(i=wu(t),i!==0&&(r=i,e=Qu(t,i))),e===1)throw n=Xs,Er(t,0),An(t,r),ct(t,be()),n;if(e===6)An(t,r);else{if(i=t.current.alternate,!(r&30)&&!q_(i)&&(e=Za(t,r),e===2&&(s=wu(t),s!==0&&(r=s,e=Qu(t,s))),e===1))throw n=Xs,Er(t,0),An(t,r),ct(t,be()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(T(345));case 2:wr(t,rt,fn);break;case 3:if(An(t,r),(r&130023424)===r&&(e=df+500-be(),10<e)){if(Ia(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Ze(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Mu(wr.bind(null,t,rt,fn),e);break}wr(t,rt,fn);break;case 4:if(An(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-jt(r);s=1<<o,o=e[o],o>i&&(i=o),r&=~s}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*K_(r/1960))-r,10<r){t.timeoutHandle=Mu(wr.bind(null,t,rt,fn),r);break}wr(t,rt,fn);break;case 5:wr(t,rt,fn);break;default:throw Error(T(329))}}}return ct(t,be()),t.callbackNode===n?C0.bind(null,t):null}function Qu(t,e){var n=Cs;return t.current.memoizedState.isDehydrated&&(Er(t,e).flags|=256),t=Za(t,e),t!==2&&(e=rt,rt=n,e!==null&&Ku(e)),t}function Ku(t){rt===null?rt=t:rt.push.apply(rt,t)}function q_(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Bt(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function An(t,e){for(e&=~uf,e&=~zl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-jt(e),r=1<<n;t[n]=-1,e&=~r}}function ap(t){if(X&6)throw Error(T(327));wi();var e=Ia(t,0);if(!(e&1))return ct(t,be()),null;var n=Za(t,e);if(t.tag!==0&&n===2){var r=wu(t);r!==0&&(e=r,n=Qu(t,r))}if(n===1)throw n=Xs,Er(t,0),An(t,e),ct(t,be()),n;if(n===6)throw Error(T(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,wr(t,rt,fn),ct(t,be()),null}function ff(t,e){var n=X;X|=1;try{return t(e)}finally{X=n,X===0&&(Ti=be()+500,Il&&dr())}}function zr(t){zn!==null&&zn.tag===0&&!(X&6)&&wi();var e=X;X|=1;var n=Et.transition,r=ie;try{if(Et.transition=null,ie=1,t)return t()}finally{ie=r,Et.transition=n,X=e,!(X&6)&&dr()}}function hf(){ft=fi.current,de(fi)}function Er(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,S_(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(Ud(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ya();break;case 3:Ei(),de(at),de(Ue),tf();break;case 5:ef(r);break;case 4:Ei();break;case 13:de(pe);break;case 19:de(pe);break;case 10:Xd(r.type._context);break;case 22:case 23:hf()}n=n.return}if(Re=t,Ce=t=Gn(t.current,null),ze=ft=e,Pe=0,Xs=null,uf=zl=jr=0,rt=Cs=null,Dr!==null){for(e=0;e<Dr.length;e++)if(n=Dr[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Dr=null}return t}function M0(t,e){do{var n=Ce;try{if(qd(),ma.current=qa,Ka){for(var r=ge.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ka=!1}if(Ar=0,Oe=Ee=ge=null,Ds=!1,Qs=0,cf.current=null,n===null||n.return===null){Pe=1,Xs=e,Ce=null;break}e:{var s=t,o=n.return,a=n,l=e;if(e=ze,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Kh(o);if(h!==null){h.flags&=-257,qh(h,o,a,s,e),h.mode&1&&Qh(s,c,e),e=h,l=c;var p=e.updateQueue;if(p===null){var y=new Set;y.add(l),e.updateQueue=y}else p.add(l);break e}else{if(!(e&1)){Qh(s,c,e),pf();break e}l=Error(T(426))}}else if(he&&a.mode&1){var w=Kh(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),qh(w,o,a,s,e),Qd(Pi(l,a));break e}}s=l=Pi(l,a),Pe!==4&&(Pe=2),Cs===null?Cs=[s]:Cs.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var m=u0(s,l,e);Bh(s,m);break e;case 1:a=l;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(qn===null||!qn.has(v)))){s.flags|=65536,e&=-e,s.lanes|=e;var b=d0(s,a,e);Bh(s,b);break e}}s=s.return}while(s!==null)}T0(n)}catch(k){e=k,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function E0(){var t=Xa.current;return Xa.current=qa,t===null?qa:t}function pf(){(Pe===0||Pe===3||Pe===2)&&(Pe=4),Re===null||!(jr&268435455)&&!(zl&268435455)||An(Re,ze)}function Za(t,e){var n=X;X|=2;var r=E0();(Re!==t||ze!==e)&&(fn=null,Er(t,e));do try{X_();break}catch(i){M0(t,i)}while(!0);if(qd(),X=n,Xa.current=r,Ce!==null)throw Error(T(261));return Re=null,ze=0,Pe}function X_(){for(;Ce!==null;)P0(Ce)}function G_(){for(;Ce!==null&&!bx();)P0(Ce)}function P0(t){var e=N0(t.alternate,t,ft);t.memoizedProps=t.pendingProps,e===null?T0(t):Ce=e,cf.current=null}function T0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=$_(n,e),n!==null){n.flags&=32767,Ce=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Pe=6,Ce=null;return}}else if(n=H_(n,e,ft),n!==null){Ce=n;return}if(e=e.sibling,e!==null){Ce=e;return}Ce=e=t}while(e!==null);Pe===0&&(Pe=5)}function wr(t,e,n){var r=ie,i=Et.transition;try{Et.transition=null,ie=1,J_(t,e,n,r)}finally{Et.transition=i,ie=r}return null}function J_(t,e,n,r){do wi();while(zn!==null);if(X&6)throw Error(T(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(T(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(Nx(t,s),t===Re&&(Ce=Re=null,ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||jo||(jo=!0,R0(La,function(){return wi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Et.transition,Et.transition=null;var o=ie;ie=1;var a=X;X|=4,cf.current=null,U_(t,n),D0(n,t),v_(Su),Fa=!!Du,Su=Du=null,t.current=n,Q_(n),kx(),X=a,ie=o,Et.transition=s}else t.current=n;if(jo&&(jo=!1,zn=t,Ja=i),s=t.pendingLanes,s===0&&(qn=null),Cx(n.stateNode),ct(t,be()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ga)throw Ga=!1,t=Vu,Vu=null,t;return Ja&1&&t.tag!==0&&wi(),s=t.pendingLanes,s&1?t===Uu?Ms++:(Ms=0,Uu=t):Ms=0,dr(),null}function wi(){if(zn!==null){var t=uy(Ja),e=Et.transition,n=ie;try{if(Et.transition=null,ie=16>t?16:t,zn===null)var r=!1;else{if(t=zn,zn=null,Ja=0,X&6)throw Error(T(331));var i=X;for(X|=4,j=t.current;j!==null;){var s=j,o=s.child;if(j.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(j=c;j!==null;){var u=j;switch(u.tag){case 0:case 11:case 15:Ss(8,u,s)}var d=u.child;if(d!==null)d.return=u,j=d;else for(;j!==null;){u=j;var f=u.sibling,h=u.return;if(_0(u),u===c){j=null;break}if(f!==null){f.return=h,j=f;break}j=h}}}var p=s.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}j=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,j=o;else e:for(;j!==null;){if(s=j,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ss(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,j=m;break e}j=s.return}}var g=t.current;for(j=g;j!==null;){o=j;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,j=v;else e:for(o=g;j!==null;){if(a=j,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jl(9,a)}}catch(k){ve(a,a.return,k)}if(a===o){j=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,j=b;break e}j=a.return}}if(X=i,dr(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Tl,t)}catch{}r=!0}return r}finally{ie=n,Et.transition=e}}return!1}function lp(t,e,n){e=Pi(n,e),e=u0(t,e,1),t=Kn(t,e,1),e=Ze(),t!==null&&(co(t,1,e),ct(t,e))}function ve(t,e,n){if(t.tag===3)lp(t,t,n);else for(;e!==null;){if(e.tag===3){lp(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qn===null||!qn.has(r))){t=Pi(n,t),t=d0(e,t,1),e=Kn(e,t,1),t=Ze(),e!==null&&(co(e,1,t),ct(e,t));break}}e=e.return}}function Z_(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ze(),t.pingedLanes|=t.suspendedLanes&n,Re===t&&(ze&n)===n&&(Pe===4||Pe===3&&(ze&130023424)===ze&&500>be()-df?Er(t,0):uf|=n),ct(t,e)}function O0(t,e){e===0&&(t.mode&1?(e=Eo,Eo<<=1,!(Eo&130023424)&&(Eo=4194304)):e=1);var n=Ze();t=Dn(t,e),t!==null&&(co(t,e,n),ct(t,n))}function eb(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),O0(t,n)}function tb(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(e),O0(t,n)}var N0;N0=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||at.current)st=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return st=!1,W_(t,e,n);st=!!(t.flags&131072)}else st=!1,he&&e.flags&1048576&&Fy(e,Ha,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;ya(t,e),t=e.pendingProps;var i=Si(e,Ue.current);vi(e,n),i=rf(null,e,r,t,i,n);var s=sf();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,lt(r)?(s=!0,Ba(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jd(e),i.updater=Al,e.stateNode=i,i._reactInternals=e,Lu(e,r,t,n),e=Au(null,e,r,!0,s,n)):(e.tag=0,he&&s&&Vd(e),Xe(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(ya(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=rb(r),t=Lt(r,t),i){case 0:e=Fu(null,e,r,t,n);break e;case 1:e=Jh(null,e,r,t,n);break e;case 11:e=Xh(null,e,r,t,n);break e;case 14:e=Gh(null,e,r,Lt(r.type,t),n);break e}throw Error(T(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Lt(r,i),Fu(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Lt(r,i),Jh(t,e,r,i,n);case 3:e:{if(m0(e),t===null)throw Error(T(387));r=e.pendingProps,s=e.memoizedState,i=s.element,Wy(t,e),Ua(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Pi(Error(T(423)),e),e=Zh(t,e,r,n,i);break e}else if(r!==i){i=Pi(Error(T(424)),e),e=Zh(t,e,r,n,i);break e}else for(pt=Qn(e.stateNode.containerInfo.firstChild),gt=e,he=!0,At=null,n=Yy(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ci(),r===i){e=Sn(t,e,n);break e}Xe(t,e,r,n)}e=e.child}return e;case 5:return Hy(e),t===null&&Ou(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Cu(r,i)?o=null:s!==null&&Cu(r,s)&&(e.flags|=32),p0(t,e),Xe(t,e,o,n),e.child;case 6:return t===null&&Ou(e),null;case 13:return g0(t,e,n);case 4:return Zd(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Mi(e,null,r,n):Xe(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Lt(r,i),Xh(t,e,r,i,n);case 7:return Xe(t,e,e.pendingProps,n),e.child;case 8:return Xe(t,e,e.pendingProps.children,n),e.child;case 12:return Xe(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,ae($a,r._currentValue),r._currentValue=o,s!==null)if(Bt(s.value,o)){if(s.children===i.children&&!at.current){e=Sn(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=wn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Nu(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Nu(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Xe(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,vi(e,n),i=Ot(i),r=r(i),e.flags|=1,Xe(t,e,r,n),e.child;case 14:return r=e.type,i=Lt(r,e.pendingProps),i=Lt(r.type,i),Gh(t,e,r,i,n);case 15:return f0(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Lt(r,i),ya(t,e),e.tag=1,lt(r)?(t=!0,Ba(e)):t=!1,vi(e,n),c0(e,r,i),Lu(e,r,i,n),Au(null,e,r,!0,t,n);case 19:return y0(t,e,n);case 22:return h0(t,e,n)}throw Error(T(156,e.tag))};function R0(t,e){return oy(t,e)}function nb(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 St(t,e,n,r){return new nb(t,e,n,r)}function mf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function rb(t){if(typeof t=="function")return mf(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rd)return 11;if(t===Ld)return 14}return 2}function Gn(t,e){var n=t.alternate;return n===null?(n=St(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function xa(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")mf(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case ni:return Pr(n.children,i,s,e);case Nd:o=8,i|=8;break;case iu:return t=St(12,n,e,i|2),t.elementType=iu,t.lanes=s,t;case su:return t=St(13,n,e,i),t.elementType=su,t.lanes=s,t;case ou:return t=St(19,n,e,i),t.elementType=ou,t.lanes=s,t;case Hg:return Yl(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Bg:o=10;break e;case Wg:o=9;break e;case Rd:o=11;break e;case Ld:o=14;break e;case Rn:o=16,r=null;break e}throw Error(T(130,t==null?t:typeof t,""))}return e=St(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Pr(t,e,n,r){return t=St(7,t,r,e),t.lanes=n,t}function Yl(t,e,n,r){return t=St(22,t,r,e),t.elementType=Hg,t.lanes=n,t.stateNode={isHidden:!1},t}function Nc(t,e,n){return t=St(6,t,null,e),t.lanes=n,t}function Rc(t,e,n){return e=St(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ib(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hc(0),this.expirationTimes=hc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gf(t,e,n,r,i,s,o,a,l){return t=new ib(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=St(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jd(s),t}function sb(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ti,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function L0(t){if(!t)return rr;t=t._reactInternals;e:{if(Qr(t)!==t||t.tag!==1)throw Error(T(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(lt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(T(171))}if(t.tag===1){var n=t.type;if(lt(n))return Ly(t,n,e)}return e}function I0(t,e,n,r,i,s,o,a,l){return t=gf(n,r,!0,t,i,s,o,a,l),t.context=L0(null),n=t.current,r=Ze(),i=Xn(n),s=wn(r,i),s.callback=e??null,Kn(n,s,i),t.current.lanes=i,co(t,i,r),ct(t,r),t}function Bl(t,e,n,r){var i=e.current,s=Ze(),o=Xn(i);return n=L0(n),e.context===null?e.context=n:e.pendingContext=n,e=wn(s,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Kn(i,e,o),t!==null&&(zt(t,i,o,s),pa(t,i,o)),o}function el(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function cp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function yf(t,e){cp(t,e),(t=t.alternate)&&cp(t,e)}function ob(){return null}var F0=typeof reportError=="function"?reportError:function(t){console.error(t)};function vf(t){this._internalRoot=t}Wl.prototype.render=vf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(T(409));Bl(t,e,null,null)};Wl.prototype.unmount=vf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zr(function(){Bl(null,t,null,null)}),e[kn]=null}};function Wl(t){this._internalRoot=t}Wl.prototype.unstable_scheduleHydration=function(t){if(t){var e=hy();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Fn.length&&e!==0&&e<Fn[n].priority;n++);Fn.splice(n,0,t),n===0&&my(t)}};function wf(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Hl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function up(){}function ab(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=el(o);s.call(c)}}var o=I0(e,r,t,0,null,!1,!1,"",up);return t._reactRootContainer=o,t[kn]=o.current,Ws(t.nodeType===8?t.parentNode:t),zr(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=el(l);a.call(c)}}var l=gf(t,0,!1,null,null,!1,!1,"",up);return t._reactRootContainer=l,t[kn]=l.current,Ws(t.nodeType===8?t.parentNode:t),zr(function(){Bl(e,l,n,r)}),l}function $l(t,e,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=el(o);a.call(l)}}Bl(e,o,t,i)}else o=ab(n,e,t,i,r);return el(o)}dy=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=ds(e.pendingLanes);n!==0&&(Ad(e,n|1),ct(e,be()),!(X&6)&&(Ti=be()+500,dr()))}break;case 13:zr(function(){var r=Dn(t,1);if(r!==null){var i=Ze();zt(r,t,1,i)}}),yf(t,1)}};jd=function(t){if(t.tag===13){var e=Dn(t,134217728);if(e!==null){var n=Ze();zt(e,t,134217728,n)}yf(t,134217728)}};fy=function(t){if(t.tag===13){var e=Xn(t),n=Dn(t,e);if(n!==null){var r=Ze();zt(n,t,e,r)}yf(t,e)}};hy=function(){return ie};py=function(t,e){var n=ie;try{return ie=t,e()}finally{ie=n}};gu=function(t,e,n){switch(e){case"input":if(cu(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Ll(r);if(!i)throw Error(T(90));Vg(r),cu(r,i)}}}break;case"textarea":Qg(t,n);break;case"select":e=n.value,e!=null&&pi(t,!!n.multiple,e,!1)}};ey=ff;ty=zr;var lb={usingClientEntryPoint:!1,Events:[fo,oi,Ll,Jg,Zg,ff]},Zi={findFiberByHostInstance:kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cb={bundleType:Zi.bundleType,version:Zi.version,rendererPackageName:Zi.rendererPackageName,rendererConfig:Zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=iy(t),t===null?null:t.stateNode},findFiberByHostInstance:Zi.findFiberByHostInstance||ob,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zo.isDisabled&&zo.supportsFiber)try{Tl=zo.inject(cb),tn=zo}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lb;wt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wf(e))throw Error(T(200));return sb(t,e,null,n)};wt.createRoot=function(t,e){if(!wf(t))throw Error(T(299));var n=!1,r="",i=F0;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=gf(t,1,!1,null,null,n,!1,r,i),t[kn]=e.current,Ws(t.nodeType===8?t.parentNode:t),new vf(e)};wt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(T(188)):(t=Object.keys(t).join(","),Error(T(268,t)));return t=iy(e),t=t===null?null:t.stateNode,t};wt.flushSync=function(t){return zr(t)};wt.hydrate=function(t,e,n){if(!Hl(e))throw Error(T(200));return $l(null,t,e,!0,n)};wt.hydrateRoot=function(t,e,n){if(!wf(t))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=F0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=I0(e,null,t,1,n??null,i,!1,s,o),t[kn]=e.current,Ws(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Wl(e)};wt.render=function(t,e,n){if(!Hl(e))throw Error(T(200));return $l(null,t,e,!1,n)};wt.unmountComponentAtNode=function(t){if(!Hl(t))throw Error(T(40));return t._reactRootContainer?(zr(function(){$l(null,null,t,!1,function(){t._reactRootContainer=null,t[kn]=null})}),!0):!1};wt.unstable_batchedUpdates=ff;wt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Hl(n))throw Error(T(200));if(t==null||t._reactInternals===void 0)throw Error(T(38));return $l(t,e,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function A0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A0)}catch(t){console.error(t)}}A0(),Ag.exports=wt;var Vl=Ag.exports;const ub=Sg(Vl);var dp=Vl;nu.createRoot=dp.createRoot,nu.hydrateRoot=dp.hydrateRoot;/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */function po(t){return t+.5|0}const Yn=(t,e,n)=>Math.max(Math.min(t,n),e);function hs(t){return Yn(po(t*2.55),0,255)}function Jn(t){return Yn(po(t*255),0,255)}function pn(t){return Yn(po(t/2.55)/100,0,1)}function fp(t){return Yn(po(t*100),0,100)}const _t={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},qu=[..."0123456789ABCDEF"],db=t=>qu[t&15],fb=t=>qu[(t&240)>>4]+qu[t&15],Yo=t=>(t&240)>>4===(t&15),hb=t=>Yo(t.r)&&Yo(t.g)&&Yo(t.b)&&Yo(t.a);function pb(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&_t[t[1]]*17,g:255&_t[t[2]]*17,b:255&_t[t[3]]*17,a:e===5?_t[t[4]]*17:255}:(e===7||e===9)&&(n={r:_t[t[1]]<<4|_t[t[2]],g:_t[t[3]]<<4|_t[t[4]],b:_t[t[5]]<<4|_t[t[6]],a:e===9?_t[t[7]]<<4|_t[t[8]]:255})),n}const mb=(t,e)=>t<255?e(t):"";function gb(t){var e=hb(t)?db:fb;return t?"#"+e(t.r)+e(t.g)+e(t.b)+mb(t.a,e):void 0}const yb=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function j0(t,e,n){const r=e*Math.min(n,1-n),i=(s,o=(s+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function vb(t,e,n){const r=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function wb(t,e,n){const r=j0(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function xb(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function xf(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),o=Math.min(n,r,i),a=(s+o)/2;let l,c,u;return s!==o&&(u=s-o,c=a>.5?u/(2-s-o):u/(s+o),l=xb(n,r,i,u,s),l=l*60+.5),[l|0,c||0,a]}function _f(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Jn)}function bf(t,e,n){return _f(j0,t,e,n)}function _b(t,e,n){return _f(wb,t,e,n)}function bb(t,e,n){return _f(vb,t,e,n)}function z0(t){return(t%360+360)%360}function kb(t){const e=yb.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?hs(+e[5]):Jn(+e[5]));const i=z0(+e[2]),s=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=_b(i,s,o):e[1]==="hsv"?r=bb(i,s,o):r=bf(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function Db(t,e){var n=xf(t);n[0]=z0(n[0]+e),n=bf(n),t.r=n[0],t.g=n[1],t.b=n[2]}function Sb(t){if(!t)return;const e=xf(t),n=e[0],r=fp(e[1]),i=fp(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${pn(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const hp={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"},pp={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 Cb(){const t={},e=Object.keys(pp),n=Object.keys(hp);let r,i,s,o,a;for(r=0;r<e.length;r++){for(o=a=e[r],i=0;i<n.length;i++)s=n[i],a=a.replace(s,hp[s]);s=parseInt(pp[o],16),t[a]=[s>>16&255,s>>8&255,s&255]}return t}let Bo;function Mb(t){Bo||(Bo=Cb(),Bo.transparent=[0,0,0,0]);const e=Bo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Eb=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Pb(t){const e=Eb.exec(t);let n=255,r,i,s;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?hs(o):Yn(o*255,0,255)}return r=+e[1],i=+e[3],s=+e[5],r=255&(e[2]?hs(r):Yn(r,0,255)),i=255&(e[4]?hs(i):Yn(i,0,255)),s=255&(e[6]?hs(s):Yn(s,0,255)),{r,g:i,b:s,a:n}}}function Tb(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Lc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Jr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ob(t,e,n){const r=Jr(pn(t.r)),i=Jr(pn(t.g)),s=Jr(pn(t.b));return{r:Jn(Lc(r+n*(Jr(pn(e.r))-r))),g:Jn(Lc(i+n*(Jr(pn(e.g))-i))),b:Jn(Lc(s+n*(Jr(pn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Wo(t,e,n){if(t){let r=xf(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=bf(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Y0(t,e){return t&&Object.assign(e||{},t)}function mp(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Jn(t[3]))):(e=Y0(t,{r:0,g:0,b:0,a:1}),e.a=Jn(e.a)),e}function Nb(t){return t.charAt(0)==="r"?Pb(t):kb(t)}class Gs{constructor(e){if(e instanceof Gs)return e;const n=typeof e;let r;n==="object"?r=mp(e):n==="string"&&(r=pb(e)||Mb(e)||Nb(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Y0(this._rgb);return e&&(e.a=pn(e.a)),e}set rgb(e){this._rgb=mp(e)}rgbString(){return this._valid?Tb(this._rgb):void 0}hexString(){return this._valid?gb(this._rgb):void 0}hslString(){return this._valid?Sb(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let s;const o=n===s?.5:n,a=2*o-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,r.r=255&c*r.r+s*i.r+.5,r.g=255&c*r.g+s*i.g+.5,r.b=255&c*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=Ob(this._rgb,e._rgb,n)),this}clone(){return new Gs(this.rgb)}alpha(e){return this._rgb.a=Jn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=po(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Wo(this._rgb,2,e),this}darken(e){return Wo(this._rgb,2,-e),this}saturate(e){return Wo(this._rgb,1,e),this}desaturate(e){return Wo(this._rgb,1,-e),this}rotate(e){return Db(this._rgb,e),this}}/*!
 * Chart.js v4.4.3
 * https://www.chartjs.org
 * (c) 2024 Chart.js Contributors
 * Released under the MIT License
 */function cn(){}const Rb=(()=>{let t=0;return()=>t++})();function ue(t){return t===null||typeof t>"u"}function we(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function J(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ne(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function dt(t,e){return Ne(t)?t:e}function q(t,e){return typeof t>"u"?e:t}const Lb=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function oe(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function te(t,e,n,r){let i,s,o;if(we(t))for(s=t.length,i=0;i<s;i++)e.call(n,t[i],i);else if(J(t))for(o=Object.keys(t),s=o.length,i=0;i<s;i++)e.call(n,t[o[i]],o[i])}function tl(t,e){let n,r,i,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],s=e[n],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function nl(t){if(we(t))return t.map(nl);if(J(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=nl(t[n[i]]);return e}return t}function B0(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Ib(t,e,n,r){if(!B0(t))return;const i=e[t],s=n[t];J(i)&&J(s)?Js(i,s,r):e[t]=nl(s)}function Js(t,e,n){const r=we(e)?e:[e],i=r.length;if(!J(t))return t;n=n||{};const s=n.merger||Ib;let o;for(let a=0;a<i;++a){if(o=r[a],!J(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)s(l[c],t,o,n)}return t}function Es(t,e){return Js(t,e,{merger:Fb})}function Fb(t,e,n){if(!B0(t))return;const r=e[t],i=n[t];J(r)&&J(i)?Es(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=nl(i))}const gp={"":t=>t,x:t=>t.x,y:t=>t.y};function Ab(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function jb(t){const e=Ab(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function rl(t,e){return(gp[e]||(gp[e]=jb(e)))(t)}function kf(t){return t.charAt(0).toUpperCase()+t.slice(1)}const il=t=>typeof t<"u",ir=t=>typeof t=="function",yp=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function zb(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Me=Math.PI,Pt=2*Me,Yb=Pt+Me,sl=Number.POSITIVE_INFINITY,Bb=Me/180,mt=Me/2,pr=Me/4,vp=Me*2/3,Bn=Math.log10,Oi=Math.sign;function Ps(t,e,n){return Math.abs(t-e)<n}function wp(t){const e=Math.round(t);t=Ps(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Bn(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Wb(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,s)=>i-s).pop(),e}function Zs(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Hb(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function W0(t,e,n){let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function Wn(t){return t*(Me/180)}function Df(t){return t*(180/Me)}function xp(t){if(!Ne(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function $b(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*Me&&(s+=Pt),{angle:s,distance:i}}function Xu(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Vb(t,e){return(t-e+Yb)%Pt-Me}function Ft(t){return(t%Pt+Pt)%Pt}function H0(t,e,n,r){const i=Ft(t),s=Ft(e),o=Ft(n),a=Ft(s-i),l=Ft(o-i),c=Ft(i-s),u=Ft(i-o);return i===s||i===o||r&&s===o||a>l&&c<u}function Ct(t,e,n){return Math.max(e,Math.min(n,t))}function Ub(t){return Ct(t,-32768,32767)}function ps(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Sf(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Cr=(t,e,n,r)=>Sf(t,n,r?i=>{const s=t[i][e];return s<n||s===n&&t[i+1][e]===n}:i=>t[i][e]<n),Qb=(t,e,n)=>Sf(t,n,r=>t[r][e]>=n);function Kb(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const $0=["push","pop","shift","splice","unshift"];function qb(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),$0.forEach(n=>{const r="_onData"+kf(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function _p(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&($0.forEach(s=>{delete t[s]}),delete t._chartjs)}function Xb(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const V0=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function U0(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,V0.call(window,()=>{r=!1,t.apply(e,n)}))}}function Gb(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Cf=t=>t==="start"?"left":t==="end"?"right":"center",$e=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Jb=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function Zb(t,e,n){const r=e.length;let i=0,s=r;if(t._sorted){const{iScale:o,_parsed:a}=t,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:f}=o.getUserBounds();d&&(i=Ct(Math.min(Cr(a,l,c).lo,n?r:Cr(e,l,o.getPixelForValue(c)).lo),0,r-1)),f?s=Ct(Math.max(Cr(a,o.axis,u,!0).hi+1,n?0:Cr(e,l,o.getPixelForValue(u),!0).hi+1),i,r)-i:s=r-i}return{start:i,count:s}}function e1(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const Ho=t=>t===0||t===1,bp=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Pt/n)),kp=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Pt/n)+1,Ts={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*mt)+1,easeOutSine:t=>Math.sin(t*mt),easeInOutSine:t=>-.5*(Math.cos(Me*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Ho(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ho(t)?t:bp(t,.075,.3),easeOutElastic:t=>Ho(t)?t:kp(t,.075,.3),easeInOutElastic(t){return Ho(t)?t:t<.5?.5*bp(t*2,.1125,.45):.5+.5*kp(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ts.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ts.easeInBounce(t*2)*.5:Ts.easeOutBounce(t*2-1)*.5+.5};function Mf(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Dp(t){return Mf(t)?t:new Gs(t)}function Ic(t){return Mf(t)?t:new Gs(t).saturate(.5).darken(.1).hexString()}const t1=["x","y","borderWidth","radius","tension"],n1=["color","borderColor","backgroundColor"];function r1(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:n1},numbers:{type:"number",properties:t1}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function i1(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Sp=new Map;function s1(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Sp.get(n);return r||(r=new Intl.NumberFormat(t,e),Sp.set(n,r)),r}function Ef(t,e,n){return s1(e,n).format(t)}const Q0={values(t){return we(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,s=t;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"),s=o1(t,n)}const o=Bn(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ef(t,r,l)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(Bn(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Q0.numeric.call(this,t,e,n):""}};function o1(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Ul={formatters:Q0};function a1(t){t.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:(e,n)=>n.lineWidth,tickColor:(e,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:Ul.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Yr=Object.create(null),Gu=Object.create(null);function Os(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const s=n[r];t=t[s]||(t[s]=Object.create(null))}return t}function Fc(t,e,n){return typeof e=="string"?Js(Os(t,e),n):Js(Os(t,""),e)}class l1{constructor(e,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)=>Ic(i.backgroundColor),this.hoverBorderColor=(r,i)=>Ic(i.borderColor),this.hoverColor=(r,i)=>Ic(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(e),this.apply(n)}set(e,n){return Fc(this,e,n)}get(e){return Os(this,e)}describe(e,n){return Fc(Gu,e,n)}override(e,n){return Fc(Yr,e,n)}route(e,n,r,i){const s=Os(this,e),o=Os(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[i];return J(l)?Object.assign({},c,l):q(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var xe=new l1({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[r1,i1,a1]);function c1(t){return!t||ue(t.size)||ue(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ol(t,e,n,r,i){let s=e[i];return s||(s=e[i]=t.measureText(i).width,n.push(i)),s>r&&(r=s),r}function u1(t,e,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},s=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let o=0;const a=n.length;let l,c,u,d,f;for(l=0;l<a;l++)if(d=n[l],d!=null&&!we(d))o=ol(t,i,s,o,d);else if(we(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!we(f)&&(o=ol(t,i,s,o,f));t.restore();const h=s.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[s[l]];s.splice(0,h)}return o}function mr(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function Cp(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ju(t,e,n,r){K0(t,e,n,r,null)}function K0(t,e,n,r,i){let s,o,a,l,c,u,d,f;const h=e.pointStyle,p=e.rotation,y=e.radius;let w=(p||0)*Bb;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(w),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(y)||y<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,y,0,0,Pt):t.arc(n,r,y,0,Pt),t.closePath();break;case"triangle":u=i?i/2:y,t.moveTo(n+Math.sin(w)*u,r-Math.cos(w)*y),w+=vp,t.lineTo(n+Math.sin(w)*u,r-Math.cos(w)*y),w+=vp,t.lineTo(n+Math.sin(w)*u,r-Math.cos(w)*y),t.closePath();break;case"rectRounded":c=y*.516,l=y-c,o=Math.cos(w+pr)*l,d=Math.cos(w+pr)*(i?i/2-c:l),a=Math.sin(w+pr)*l,f=Math.sin(w+pr)*(i?i/2-c:l),t.arc(n-d,r-a,c,w-Me,w-mt),t.arc(n+f,r-o,c,w-mt,w),t.arc(n+d,r+a,c,w,w+mt),t.arc(n-f,r+o,c,w+mt,w+Me),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*y,u=i?i/2:l,t.rect(n-u,r-l,2*u,2*l);break}w+=pr;case"rectRot":d=Math.cos(w)*(i?i/2:y),o=Math.cos(w)*y,a=Math.sin(w)*y,f=Math.sin(w)*(i?i/2:y),t.moveTo(n-d,r-a),t.lineTo(n+f,r-o),t.lineTo(n+d,r+a),t.lineTo(n-f,r+o),t.closePath();break;case"crossRot":w+=pr;case"cross":d=Math.cos(w)*(i?i/2:y),o=Math.cos(w)*y,a=Math.sin(w)*y,f=Math.sin(w)*(i?i/2:y),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o);break;case"star":d=Math.cos(w)*(i?i/2:y),o=Math.cos(w)*y,a=Math.sin(w)*y,f=Math.sin(w)*(i?i/2:y),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o),w+=pr,d=Math.cos(w)*(i?i/2:y),o=Math.cos(w)*y,a=Math.sin(w)*y,f=Math.sin(w)*(i?i/2:y),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o);break;case"line":o=i?i/2:Math.cos(w)*y,a=Math.sin(w)*y,t.moveTo(n-o,r-a),t.lineTo(n+o,r+a);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(w)*(i?i/2:y),r+Math.sin(w)*y);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function vn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Pf(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Tf(t){t.restore()}function d1(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if(i==="middle"){const s=(e.x+n.x)/2;t.lineTo(s,e.y),t.lineTo(s,n.y)}else i==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function f1(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function h1(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),ue(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function p1(t,e,n,r,i){if(i.strikethrough||i.underline){const s=t.measureText(r),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(o,u),t.lineTo(a,u),t.stroke()}}function m1(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Br(t,e,n,r,i,s={}){const o=we(e)?e:[e],a=s.strokeWidth>0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,h1(t,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&m1(t,s.backdrop),a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),ue(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,n,r,s.maxWidth)),t.fillText(c,n,r,s.maxWidth),p1(t,n,r,c,s),r+=Number(i.lineHeight);t.restore()}function al(t,e){const{x:n,y:r,w:i,h:s,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Me,Me,!0),t.lineTo(n,r+s-o.bottomLeft),t.arc(n+o.bottomLeft,r+s-o.bottomLeft,o.bottomLeft,Me,mt,!0),t.lineTo(n+i-o.bottomRight,r+s),t.arc(n+i-o.bottomRight,r+s-o.bottomRight,o.bottomRight,mt,0,!0),t.lineTo(n+i,r+o.topRight),t.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-mt,!0),t.lineTo(n+o.topLeft,r)}const g1=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,y1=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function v1(t,e){const n=(""+t).match(g1);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const w1=t=>+t||0;function q0(t,e){const n={},r=J(e),i=r?Object.keys(e):e,s=J(t)?r?o=>q(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of i)n[o]=w1(s(o));return n}function x1(t){return q0(t,{top:"y",right:"x",bottom:"y",left:"x"})}function xi(t){return q0(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Qe(t){const e=x1(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Te(t,e){t=t||{},e=e||xe.font;let n=q(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=q(t.style,e.style);r&&!(""+r).match(y1)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:q(t.family,e.family),lineHeight:v1(q(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:q(t.weight,e.weight),string:""};return i.string=c1(i),i}function $o(t,e,n,r){let i,s,o;for(i=0,s=t.length;i<s;++i)if(o=t[i],o!==void 0&&o!==void 0)return o}function _1(t,e,n){const{min:r,max:i}=t,s=Lb(e,(i-r)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function fr(t,e){return Object.assign(Object.create(t),e)}function Of(t,e=[""],n,r,i=()=>t[0]){const s=n||t;typeof r>"u"&&(r=Z0("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>Of([a,...t],e,s,r)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return G0(a,l,()=>P1(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Ep(a).includes(l)},ownKeys(a){return Ep(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function Ni(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:X0(t,r),setContext:s=>Ni(t,s,n,r),override:s=>Ni(t.override(s),e,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,a){return G0(s,o,()=>k1(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,a){return t[o]=a,delete s[o],!0}})}function X0(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ir(n)?n:()=>n,isIndexable:ir(r)?r:()=>r}}const b1=(t,e)=>t?t+kf(e):e,Nf=(t,e)=>J(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function G0(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function k1(t,e,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=t;let a=r[e];return ir(a)&&o.isScriptable(e)&&(a=D1(e,a,t,n)),we(a)&&a.length&&(a=S1(e,a,t,o.isIndexable)),Nf(e,a)&&(a=Ni(a,i,s&&s[e],o)),a}function D1(t,e,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,o||r);return a.delete(t),Nf(t,l)&&(l=Rf(i._scopes,i,t,l)),l}function S1(t,e,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&r(t))return e[s.index%e.length];if(J(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=Rf(c,i,t,u);e.push(Ni(d,s,o&&o[t],a))}}return e}function J0(t,e,n){return ir(t)?t(e,n):t}const C1=(t,e)=>t===!0?e:typeof t=="string"?rl(e,t):void 0;function M1(t,e,n,r,i){for(const s of e){const o=C1(n,s);if(o){t.add(o);const a=J0(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Rf(t,e,n,r){const i=e._rootScopes,s=J0(e._fallback,n,r),o=[...t,...i],a=new Set;a.add(r);let l=Mp(a,o,n,s||n,r);return l===null||typeof s<"u"&&s!==n&&(l=Mp(a,o,s,l,r),l===null)?!1:Of(Array.from(a),[""],i,s,()=>E1(e,n,r))}function Mp(t,e,n,r,i){for(;n;)n=M1(t,e,n,r,i);return n}function E1(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return we(i)&&J(n)?n:i||{}}function P1(t,e,n,r){let i;for(const s of e)if(i=Z0(b1(s,t),n),typeof i<"u")return Nf(t,i)?Rf(n,r,t,i):i}function Z0(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function Ep(t){let e=t._keys;return e||(e=t._keys=T1(t._scopes)),e}function T1(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}const O1=Number.EPSILON||1e-14,Ri=(t,e)=>e<t.length&&!t[e].skip&&t[e],ev=t=>t==="x"?"y":"x";function N1(t,e,n,r){const i=t.skip?e:t,s=e,o=n.skip?e:n,a=Xu(s,i),l=Xu(o,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:s.x-d*(o.x-i.x),y:s.y-d*(o.y-i.y)},next:{x:s.x+f*(o.x-i.x),y:s.y+f*(o.y-i.y)}}}function R1(t,e,n){const r=t.length;let i,s,o,a,l,c=Ri(t,0);for(let u=0;u<r-1;++u)if(l=c,c=Ri(t,u+1),!(!l||!c)){if(Ps(e[u],0,O1)){n[u]=n[u+1]=0;continue}i=n[u]/e[u],s=n[u+1]/e[u],a=Math.pow(i,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),n[u]=i*o*e[u],n[u+1]=s*o*e[u])}}function L1(t,e,n="x"){const r=ev(n),i=t.length;let s,o,a,l=Ri(t,0);for(let c=0;c<i;++c){if(o=a,a=l,l=Ri(t,c+1),!a)continue;const u=a[n],d=a[r];o&&(s=(u-o[n])/3,a[`cp1${n}`]=u-s,a[`cp1${r}`]=d-s*e[c]),l&&(s=(l[n]-u)/3,a[`cp2${n}`]=u+s,a[`cp2${r}`]=d+s*e[c])}}function I1(t,e="x"){const n=ev(e),r=t.length,i=Array(r).fill(0),s=Array(r);let o,a,l,c=Ri(t,0);for(o=0;o<r;++o)if(a=l,l=c,c=Ri(t,o+1),!!l){if(c){const u=c[e]-l[e];i[o]=u!==0?(c[n]-l[n])/u:0}s[o]=a?c?Oi(i[o-1])!==Oi(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}R1(t,i,s),L1(t,s,e)}function Vo(t,e,n){return Math.max(Math.min(t,n),e)}function F1(t,e){let n,r,i,s,o,a=vn(t[0],e);for(n=0,r=t.length;n<r;++n)o=s,s=a,a=n<r-1&&vn(t[n+1],e),s&&(i=t[n],o&&(i.cp1x=Vo(i.cp1x,e.left,e.right),i.cp1y=Vo(i.cp1y,e.top,e.bottom)),a&&(i.cp2x=Vo(i.cp2x,e.left,e.right),i.cp2y=Vo(i.cp2y,e.top,e.bottom)))}function A1(t,e,n,r,i){let s,o,a,l;if(e.spanGaps&&(t=t.filter(c=>!c.skip)),e.cubicInterpolationMode==="monotone")I1(t,i);else{let c=r?t[t.length-1]:t[0];for(s=0,o=t.length;s<o;++s)a=t[s],l=N1(c,a,t[Math.min(s+1,o-(r?0:1))%o],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}e.capBezierPoints&&F1(t,n)}function Lf(){return typeof window<"u"&&typeof document<"u"}function If(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function ll(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const Ql=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function j1(t,e){return Ql(t).getPropertyValue(e)}const z1=["top","right","bottom","left"];function Tr(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=z1[i];r[s]=parseFloat(t[e+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Y1=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function B1(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:s}=r;let o=!1,a,l;if(Y1(i,s,t.target))a=i,l=s;else{const c=e.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function xr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=Ql(n),s=i.boxSizing==="border-box",o=Tr(i,"padding"),a=Tr(i,"border","width"),{x:l,y:c,box:u}=B1(t,n),d=o.left+(u&&a.left),f=o.top+(u&&a.top);let{width:h,height:p}=e;return s&&(h-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-f)/p*n.height/r)}}function W1(t,e,n){let r,i;if(e===void 0||n===void 0){const s=t&&If(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const o=s.getBoundingClientRect(),a=Ql(s),l=Tr(a,"border","width"),c=Tr(a,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=ll(a.maxWidth,s,"clientWidth"),i=ll(a.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:r||sl,maxHeight:i||sl}}const Uo=t=>Math.round(t*10)/10;function H1(t,e,n,r){const i=Ql(t),s=Tr(i,"margin"),o=ll(i.maxWidth,t,"clientWidth")||sl,a=ll(i.maxHeight,t,"clientHeight")||sl,l=W1(t,e,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=Tr(i,"border","width"),h=Tr(i,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,r?c/r:u-s.height),c=Uo(Math.min(c,o,l.maxWidth)),u=Uo(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Uo(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Uo(Math.floor(u*r))),{width:c,height:u}}function Pp(t,e,n){const r=e||1,i=Math.floor(t.height*r),s=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(t.currentDevicePixelRatio=r,o.height=i,o.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const $1=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Lf()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Tp(t,e){const n=j1(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function _r(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function V1(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function U1(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},o=_r(t,i,n),a=_r(i,s,n),l=_r(s,e,n),c=_r(o,a,n),u=_r(a,l,n);return _r(c,u,n)}const Q1=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},K1=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function _i(t,e,n){return t?Q1(e,n):K1()}function tv(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function nv(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function rv(t){return t==="angle"?{between:H0,compare:Vb,normalize:Ft}:{between:ps,compare:(e,n)=>e-n,normalize:e=>e}}function Op({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function q1(t,e,n){const{property:r,start:i,end:s}=n,{between:o,normalize:a}=rv(r),l=e.length;let{start:c,end:u,loop:d}=t,f,h;if(d){for(c+=l,u+=l,f=0,h=l;f<h&&o(a(e[c%l][r]),i,s);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:t.style}}function X1(t,e,n){if(!n)return[t];const{property:r,start:i,end:s}=n,o=e.length,{compare:a,between:l,normalize:c}=rv(r),{start:u,end:d,loop:f,style:h}=q1(t,e,n),p=[];let y=!1,w=null,m,g,v;const b=()=>l(i,v,m)&&a(i,v)!==0,k=()=>a(s,m)===0||l(s,v,m),C=()=>y||b(),D=()=>!y||k();for(let S=u,O=u;S<=d;++S)g=e[S%o],!g.skip&&(m=c(g[r]),m!==v&&(y=l(m,i,s),w===null&&C()&&(w=a(m,i)===0?S:O),w!==null&&D()&&(p.push(Op({start:w,end:S,loop:f,count:o,style:h})),w=null),O=S,v=m));return w!==null&&p.push(Op({start:w,end:d,loop:f,count:o,style:h})),p}function G1(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const s=X1(r[i],t.points,e);s.length&&n.push(...s)}return n}function J1(t,e,n,r){let i=0,s=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(s+=i);s>i&&t[s%e].skip;)s--;return s%=e,{start:i,end:s}}function Z1(t,e,n,r){const i=t.length,s=[];let o=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%i];c.skip||c.stop?a.skip||(r=!1,s.push({start:e%i,end:(l-1)%i,loop:r}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return o!==null&&s.push({start:e%i,end:o%i,loop:r}),s}function ek(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const s=!!t._loop,{start:o,end:a}=J1(n,i,s,r);if(r===!0)return Np(t,[{start:o,end:a,loop:s}],n,e);const l=a<o?a+i:a,c=!!t._fullLoop&&o===0&&a===i-1;return Np(t,Z1(n,o,l,c),n,e)}function Np(t,e,n,r){return!r||!r.setContext||!n?e:tk(t,e,n,r)}function tk(t,e,n,r){const i=t._chart.getContext(),s=Rp(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,l=n.length,c=[];let u=s,d=e[0].start,f=d;function h(p,y,w,m){const g=a?-1:1;if(p!==y){for(p+=l;n[p%l].skip;)p-=g;for(;n[y%l].skip;)y+=g;p%l!==y%l&&(c.push({start:p%l,end:y%l,loop:w,style:m}),u=m,d=y%l)}}for(const p of e){d=a?d:p.start;let y=n[d%l],w;for(f=d+1;f<=p.end;f++){const m=n[f%l];w=Rp(r.setContext(fr(i,{type:"segment",p0:y,p1:m,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),nk(w,u)&&h(d,f-1,p.loop,u),y=m,u=w}d<f-1&&h(d,f-1,p.loop,u)}return c}function Rp(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function nk(t,e){if(!e)return!1;const n=[],r=function(i,s){return Mf(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(t,r)!==JSON.stringify(e,r)}/*!
 * Chart.js v4.4.3
 * https://www.chartjs.org
 * (c) 2024 Chart.js Contributors
 * Released under the MIT License
 */class rk{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const s=n.listeners[i],o=n.duration;s.forEach(a=>a({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=V0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,e,"progress")),s.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);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(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var un=new rk;const Lp="transparent",ik={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Dp(t||Lp),i=r.valid&&Dp(e||Lp);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class sk{constructor(e,n,r,i){const s=n[r];i=$o([e.to,i,s,e.from]);const o=$o([e.from,s,i]);this._active=!0,this._fn=e.fn||ik[e.type||typeof o],this._easing=Ts[e.easing]||Ts.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=$o([e.to,n,i,e.from]),this._from=$o([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=s;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class iv{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!J(e))return;const n=Object.keys(xe.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const s=e[i];if(!J(s))return;const o={};for(const a of n)o[a]=s[a];(we(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(e,n){const r=n.options,i=ak(e,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&ok(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,i=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const u=n[c];let d=s[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}s[c]=d=new sk(f,e,c,u),i.push(d)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return un.add(this._chart,r),!0}}function ok(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const s=t[r[i]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function ak(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Ip(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:i,end:r?i:s}}function lk(t,e,n){if(n===!1)return!1;const r=Ip(t,n),i=Ip(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function ck(t){let e,n,r,i;return J(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function sv(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,s;for(i=0,s=r.length;i<s;++i)n.push(r[i].index);return n}function Fp(t,e,n,r={}){const i=t.keys,s=r.mode==="single";let o,a,l,c;if(e!==null){for(o=0,a=i.length;o<a;++o){if(l=+i[o],l===n){if(r.all)continue;break}c=t.values[l],Ne(c)&&(s||e===0||Oi(e)===Oi(c))&&(e+=c)}return e}}function uk(t,e){const{iScale:n,vScale:r}=e,i=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",o=Object.keys(t),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[i]:u,[s]:t[u]};return a}function Ap(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function dk(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function fk(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function hk(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function jp(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const s=t[i.index];if(n&&s>0||!n&&s<0)return i.index}return null}function zp(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,l=s.axis,c=o.axis,u=dk(s,o,r),d=e.length;let f;for(let h=0;h<d;++h){const p=e[h],{[l]:y,[c]:w}=p,m=p._stacks||(p._stacks={});f=m[c]=hk(i,u,y),f[a]=w,f._top=jp(f,o,!0,r.type),f._bottom=jp(f,o,!1,r.type);const g=f._visualValues||(f._visualValues={});g[a]=w}}function Ac(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function pk(t,e){return fr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function mk(t,e,n){return fr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function es(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const jc=t=>t==="reset"||t==="none",Yp=(t,e)=>e?t:Object.assign({},t),gk=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:sv(n,!0),values:null};class Ns{constructor(e,n){this.chart=e,this._ctx=e.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 e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ap(e.vScale,e),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(e){this.index!==e&&es(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,s=n.xAxisID=q(r.xAxisID,Ac(e,"x")),o=n.yAxisID=q(r.yAxisID,Ac(e,"y")),a=n.rAxisID=q(r.rAxisID,Ac(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,s,o,a),u=n.vAxisID=i(l,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&_p(this._data,this),e._stacked&&es(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(J(n)){const i=this._cachedMeta;this._data=uk(n,i)}else if(r!==n){if(r){_p(r,this);const i=this._cachedMeta;es(i),i._parsed=[]}n&&Object.isExtensible(n)&&qb(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Ap(n.vScale,n),n.stack!==r.stack&&(i=!0,es(n),n.stack=r.stack),this._resyncElements(e),(i||s!==n._stacked)&&zp(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let l=e===0&&n===i.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{we(i[e])?f=this.parseArrayData(r,i,e,n):J(i[e])?f=this.parseObjectData(r,i,e,n):f=this.parsePrimitiveData(r,i,e,n);const h=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+e]=d=f[u],l&&(h()&&(l=!1),c=d);r._sorted=l}o&&zp(this,f)}parsePrimitiveData(e,n,r,i){const{iScale:s,vScale:o}=e,a=s.axis,l=o.axis,c=s.getLabels(),u=s===o,d=new Array(i);let f,h,p;for(f=0,h=i;f<h;++f)p=f+r,d[f]={[a]:u||s.parse(c[p],p),[l]:o.parse(n[p],p)};return d}parseArrayData(e,n,r,i){const{xScale:s,yScale:o}=e,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],a[l]={x:s.parse(d[0],u),y:o.parse(d[1],u)};return a}parseObjectData(e,n,r,i){const{xScale:s,yScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,f,h;for(u=0,d=i;u<d;++u)f=u+r,h=n[f],c[u]={x:s.parse(rl(h,a),f),y:o.parse(rl(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,s=this._cachedMeta,o=n[e.axis],a={keys:sv(i,!0),values:n._stacks[e.axis]._visualValues};return Fp(a,o,s.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const s=r[n.axis];let o=s===null?NaN:s;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,o=Fp(i,s,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&e===r.iScale,o=i.length,a=this._getOtherScale(e),l=gk(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=fk(a);let f,h;function p(){h=i[f];const y=h[a.axis];return!Ne(h[e.axis])||u>y||d<y}for(f=0;f<o&&!(!p()&&(this.updateRangeFromParsed(c,e,h,l),s));++f);if(s){for(f=o-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i<s;++i)o=n[i][e.axis],Ne(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=ck(q(this.options.clip,lk(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],s=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,s,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?o.push(d):d.draw(e,s))}for(u=0;u<o.length;++u)o[u].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];s=o.$context||(o.$context=mk(this.getContext(),e,o)),s.parsed=this.getParsed(e),s.raw=i.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=pk(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",s=this._cachedDataOpts,o=e+"-"+n,a=s[o],l=this.enableOptionSharing&&il(r);if(a)return Yp(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=i?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),u),h=Object.keys(xe.elements[e]),p=()=>this.getContext(r,i,n),y=c.resolveNamedOptions(f,h,p,d);return y.$shared&&(y.$shared=l,s[o]=Object.freeze(Yp(y,l))),y}_resolveAnimations(e,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(e,r,n))}const c=new iv(i,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||jc(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(e,n,r,i){jc(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!jc(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,e):s<i&&this._removeElements(s,i-s)}_insertElements(e,n,r=!0){const i=this._cachedMeta,s=i.data,o=e+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(s),a=e;a<o;++a)s[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&es(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}P(Ns,"defaults",{}),P(Ns,"datasetElementType",null),P(Ns,"dataElementType",null);class _a extends Ns{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=Zb(n,i,o);this._drawStart=a,this._drawCount=l,e1(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},e),this.updateElements(i,a,l,e)}updateElements(e,n,r,i){const s=i==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=o.axis,h=a.axis,{spanGaps:p,segment:y}=this.options,w=Zs(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||s||i==="none",g=n+r,v=e.length;let b=n>0&&this.getParsed(n-1);for(let k=0;k<v;++k){const C=e[k],D=m?C:{};if(k<n||k>=g){D.skip=!0;continue}const S=this.getParsed(k),O=ue(S[h]),N=D[f]=o.getPixelForValue(S[f],k),I=D[h]=s||O?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[h],k);D.skip=isNaN(N)||isNaN(I)||O,D.stop=k>0&&Math.abs(S[f]-b[f])>w,y&&(D.parsed=S,D.raw=c.data[k]),d&&(D.options=u||this.resolveDataElementOptions(k,C.active?"active":i)),m||this.updateElement(C,k,D,i),b=S}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}P(_a,"id","line"),P(_a,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),P(_a,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function gr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ff{constructor(e){P(this,"options");this.options=e||{}}static override(e){Object.assign(Ff.prototype,e)}init(){}formats(){return gr()}parse(){return gr()}format(){return gr()}add(){return gr()}diff(){return gr()}startOf(){return gr()}endOf(){return gr()}}var yk={_date:Ff};function vk(t,e,n,r){const{controller:i,data:s,_sorted:o}=t,a=i._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&o&&s.length){const l=a._reversePixels?Qb:Cr;if(r){if(i._sharedOptions){const c=s[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(s,e,n-u),f=l(s,e,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(s,e,n)}return{lo:0,hi:s.length-1}}function mo(t,e,n,r,i){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=s.length;a<l;++a){const{index:c,data:u}=s[a],{lo:d,hi:f}=vk(s[a],e,o,i);for(let h=d;h<=f;++h){const p=u[h];p.skip||r(p,c,h)}}}function wk(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const s=e?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function zc(t,e,n,r,i){const s=[];return!i&&!t.isPointInArea(e)||mo(t,n,e,function(a,l,c){!i&&!vn(a,t.chartArea,0)||a.inRange(e.x,e.y,r)&&s.push({element:a,datasetIndex:l,index:c})},!0),s}function xk(t,e,n,r){let i=[];function s(o,a,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],r),{angle:d}=$b(o,{x:e.x,y:e.y});H0(d,c,u)&&i.push({element:o,datasetIndex:a,index:l})}return mo(t,n,e,s),i}function _k(t,e,n,r,i,s){let o=[];const a=wk(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const h=u.inRange(e.x,e.y,i);if(r&&!h)return;const p=u.getCenterPoint(i);if(!(!!s||t.isPointInArea(p))&&!h)return;const w=a(e,p);w<l?(o=[{element:u,datasetIndex:d,index:f}],l=w):w===l&&o.push({element:u,datasetIndex:d,index:f})}return mo(t,n,e,c),o}function Yc(t,e,n,r,i,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?xk(t,e,n,i):_k(t,e,n,r,i,s)}function Bp(t,e,n,r,i){const s=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return mo(t,n,e,(l,c,u)=>{l[o](e[n],i)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,i))}),r&&!a?[]:s}var bk={evaluateInteractionItems:mo,modes:{index(t,e,n,r){const i=xr(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?zc(t,i,s,r,o):Yc(t,i,s,!1,r,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const i=xr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?zc(t,i,s,r,o):Yc(t,i,s,!1,r,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,e,n,r){const i=xr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return zc(t,i,s,r,o)},nearest(t,e,n,r){const i=xr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return Yc(t,i,s,n.intersect,r,o)},x(t,e,n,r){const i=xr(e,t);return Bp(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=xr(e,t);return Bp(t,i,"y",n.intersect,r)}}};const ov=["left","top","right","bottom"];function ts(t,e){return t.filter(n=>n.pos===e)}function Wp(t,e){return t.filter(n=>ov.indexOf(n.pos)===-1&&n.box.axis===e)}function ns(t,e){return t.sort((n,r)=>{const i=e?r:n,s=e?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function kk(t){const e=[];let n,r,i,s,o,a;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],{position:s,options:{stack:o,stackWeight:a=1}}=i,e.push({index:n,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&s+o,stackWeight:a});return e}function Dk(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:s}=n;if(!r||!ov.includes(i))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}function Sk(t,e){const n=Dk(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&e.availableWidth,a.height=i):(a.width=r,a.height=u?u*i:l&&e.availableHeight)}return n}function Ck(t){const e=kk(t),n=ns(e.filter(c=>c.box.fullSize),!0),r=ns(ts(e,"left"),!0),i=ns(ts(e,"right")),s=ns(ts(e,"top"),!0),o=ns(ts(e,"bottom")),a=Wp(e,"x"),l=Wp(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(o).concat(a),chartArea:ts(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(o).concat(a)}}function Hp(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function av(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Mk(t,e,n,r){const{pos:i,box:s}=n,o=t.maxPadding;if(!J(i)){n.size&&(t[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[i]+=n.size}s.getPadding&&av(o,s.getPadding());const a=Math.max(0,e.outerWidth-Hp(o,t,"left","right")),l=Math.max(0,e.outerHeight-Hp(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ek(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Pk(t,e){const n=e.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return r(t?["left","right"]:["top","bottom"])}function ms(t,e,n,r){const i=[];let s,o,a,l,c,u;for(s=0,o=t.length,c=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||e.w,a.height||e.h,Pk(a.horizontal,e));const{same:d,other:f}=Mk(e,n,a,r);c|=d&&i.length,u=u||f,l.fullSize||i.push(a)}return c&&ms(i,e,n,r)||u}function Qo(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function $p(t,e,n,r){const i=n.padding;let{x:s,y:o}=e;for(const a of t){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,f=c.size||l.height;il(c.start)&&(o=c.start),l.fullSize?Qo(l,i.left,o,n.outerWidth-i.right-i.left,f):Qo(l,e.left+c.placed,o,d,f),c.start=o,c.placed+=d,o=l.bottom}else{const d=e.h*u,f=c.size||l.width;il(c.start)&&(s=c.start),l.fullSize?Qo(l,s,i.top,f,n.outerHeight-i.bottom-i.top):Qo(l,s,e.top+c.placed,f,d),c.start=s,c.placed+=d,s=l.right}}e.x=s,e.y=o}var Mt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=Qe(t.options.layout.padding),s=Math.max(e-i.width,0),o=Math.max(n-i.height,0),a=Ck(t.boxes),l=a.vertical,c=a.horizontal;te(t.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=l.reduce((y,w)=>w.box.options&&w.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);av(f,Qe(r));const h=Object.assign({maxPadding:f,w:s,h:o,x:i.left,y:i.top},i),p=Sk(l.concat(c),d);ms(a.fullSize,h,d,p),ms(l,h,d,p),ms(c,h,d,p)&&ms(l,h,d,p),Ek(h),$p(a.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,$p(a.rightAndBottom,h,d,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},te(a.chartArea,y=>{const w=y.box;Object.assign(w,t.chartArea),w.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class lv{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class Tk extends lv{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ba="$chartjs",Ok={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vp=t=>t===null||t==="";function Nk(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[ba]={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",Vp(i)){const s=Tp(t,"width");s!==void 0&&(t.width=s)}if(Vp(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=Tp(t,"height");s!==void 0&&(t.height=s)}return t}const cv=$1?{passive:!0}:!1;function Rk(t,e,n){t&&t.addEventListener(e,n,cv)}function Lk(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,cv)}function Ik(t,e){const n=Ok[t.type]||t.type,{x:r,y:i}=xr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function cl(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Fk(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||cl(a.addedNodes,r),o=o&&!cl(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Ak(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||cl(a.removedNodes,r),o=o&&!cl(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const eo=new Map;let Up=0;function uv(){const t=window.devicePixelRatio;t!==Up&&(Up=t,eo.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function jk(t,e){eo.size||window.addEventListener("resize",uv),eo.set(t,e)}function zk(t){eo.delete(t),eo.size||window.removeEventListener("resize",uv)}function Yk(t,e,n){const r=t.canvas,i=r&&If(r);if(!i)return;const s=U0((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(i),jk(t,s),o}function Bc(t,e,n){n&&n.disconnect(),e==="resize"&&zk(t)}function Bk(t,e,n){const r=t.canvas,i=U0(s=>{t.ctx!==null&&n(Ik(s,t))},t);return Rk(r,e,i),i}class Wk extends lv{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(Nk(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[ba])return!1;const r=n[ba].initial;["height","width"].forEach(s=>{const o=r[s];ue(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[ba],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),o={attach:Fk,detach:Ak,resize:Yk}[n]||Bk;i[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];if(!i)return;({attach:Bc,detach:Bc,resize:Bc}[n]||Lk)(e,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return H1(e,n,r,i)}isAttached(e){const n=e&&If(e);return!!(n&&n.isConnected)}}function Hk(t){return!Lf()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Tk:Wk}var la;let Kr=(la=class{constructor(){P(this,"x");P(this,"y");P(this,"active",!1);P(this,"options");P(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Zs(this.x)&&Zs(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}},P(la,"defaults",{}),P(la,"defaultRoutes"),la);function $k(t,e){const n=t.options.ticks,r=Vk(t),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?Qk(e):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>i)return Kk(e,c,s,o/i),c;const u=Uk(s,e,i);if(o>0){let d,f;const h=o>1?Math.round((l-a)/(o-1)):null;for(Ko(e,c,u,ue(h)?0:a-h,a),d=0,f=o-1;d<f;d++)Ko(e,c,u,s[d],s[d+1]);return Ko(e,c,u,l,ue(h)?e.length:l+h),c}return Ko(e,c,u),c}function Vk(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function Uk(t,e,n){const r=qk(t),i=e.length/n;if(!r)return Math.max(i,1);const s=Wb(r);for(let o=0,a=s.length-1;o<a;o++){const l=s[o];if(l>i)return l}return Math.max(i,1)}function Qk(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function Kk(t,e,n,r){let i=0,s=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===s&&(e.push(t[o]),i++,s=n[i*r])}function Ko(t,e,n,r,i){const s=q(r,0),o=Math.min(q(i,t.length),t.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=s;u<0;)a++,u=Math.round(s+a*n);for(c=Math.max(s,0);c<o;c++)c===u&&(e.push(t[c]),a++,u=Math.round(s+a*n))}function qk(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const Xk=t=>t==="left"?"right":t==="right"?"left":t,Qp=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Kp=(t,e)=>Math.min(e||t,t);function qp(t,e){const n=[],r=t.length/e,i=t.length;let s=0;for(;s<i;s+=r)n.push(t[Math.floor(s)]);return n}function Gk(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),s=t._startPixel,o=t._endPixel,a=1e-6;let l=t.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-s,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(i-1))/2,l+=i<e?c:-c,l<s-a||l>o+a)))return l}function Jk(t,e){te(t,n=>{const r=n.gc,i=r.length/2;let s;if(i>e){for(s=0;s<i;++s)delete n.data[r[s]];r.splice(0,i)}})}function rs(t){return t.drawTicks?t.tickLength:0}function Xp(t,e){if(!t.display)return 0;const n=Te(t.font,e),r=Qe(t.padding);return(we(t.text)?t.text.length:1)*n.lineHeight+r.height}function Zk(t,e){return fr(t,{scale:e,type:"scale"})}function eD(t,e,n){return fr(t,{tick:n,index:e,type:"tick"})}function tD(t,e,n){let r=Cf(t);return(n&&e!=="right"||!n&&e==="right")&&(r=Xk(r)),r}function nD(t,e,n,r){const{top:i,left:s,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d=0,f,h,p;const y=o-i,w=a-s;if(t.isHorizontal()){if(h=$e(r,s,a),J(n)){const m=Object.keys(n)[0],g=n[m];p=u[m].getPixelForValue(g)+y-e}else n==="center"?p=(c.bottom+c.top)/2+y-e:p=Qp(t,n,e);f=a-s}else{if(J(n)){const m=Object.keys(n)[0],g=n[m];h=u[m].getPixelForValue(g)-w+e}else n==="center"?h=(c.left+c.right)/2-w+e:h=Qp(t,n,e);p=$e(r,o,i),d=n==="left"?-mt:mt}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class qr extends Kr{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.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(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=dt(e,Number.POSITIVE_INFINITY),n=dt(n,Number.NEGATIVE_INFINITY),r=dt(r,Number.POSITIVE_INFINITY),i=dt(i,Number.NEGATIVE_INFINITY),{min:dt(e,r),max:dt(n,i),minDefined:Ne(e),maxDefined:Ne(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),o;if(i&&s)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,e),i||(n=Math.min(n,o.min)),s||(r=Math.max(r,o.max));return n=s&&n>r?r:n,r=i&&n>r?n:r,{min:dt(n,dt(r,n)),max:dt(r,dt(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 e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){oe(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,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=_1(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?qp(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=$k(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){oe(this.options.afterUpdate,[this])}beforeSetDimensions(){oe(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(){oe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),oe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){oe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,s;for(r=0,i=e.length;r<i;r++)s=e[r],s.label=oe(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){oe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){oe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Kp(this.ticks.length,e.ticks.maxTicksLimit),i=n.minRotation||0,s=n.maxRotation;let o=i,a,l,c;if(!this._isVisible()||!n.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=Ct(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/r:h/(r-1),d+6>a&&(a=h/(r-(e.offset?.5:1)),l=this.maxHeight-rs(e.grid)-n.padding-Xp(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=Df(Math.min(Math.asin(Ct((u.highest.height+6)/a,-1,1)),Math.asin(Ct(l/c,-1,1))-Math.asin(Ct(f/c,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){oe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){oe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=Xp(i,n.options.font);if(a?(e.width=this.maxWidth,e.height=rs(s)+l):(e.height=this.maxHeight,e.width=rs(s)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,p=Wn(this.labelRotation),y=Math.cos(p),w=Math.sin(p);if(a){const m=r.mirror?0:w*d.width+y*f.height;e.height=Math.min(this.maxHeight,e.height+m+h)}else{const m=r.mirror?0:y*d.width+w*f.height;e.width=Math.min(this.maxWidth,e.width+m+h)}this._calculatePadding(c,u,w,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=i*e.width,h=r*n.height):(f=r*e.height,h=i*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;s==="start"?(u=0,d=e.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_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(){oe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)ue(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=qp(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:i,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(n/Kp(n,r));let c=0,u=0,d,f,h,p,y,w,m,g,v,b,k;for(d=0;d<n;d+=l){if(p=e[d].label,y=this._resolveTickFontOptions(d),i.font=w=y.string,m=s[w]=s[w]||{data:{},gc:[]},g=y.lineHeight,v=b=0,!ue(p)&&!we(p))v=ol(i,m.data,m.gc,v,p),b=g;else if(we(p))for(f=0,h=p.length;f<h;++f)k=p[f],!ue(k)&&!we(k)&&(v=ol(i,m.data,m.gc,v,k),b+=g);o.push(v),a.push(b),c=Math.max(v,c),u=Math.max(b,u)}Jk(s,n);const C=o.indexOf(c),D=a.indexOf(u),S=O=>({width:o[O]||0,height:a[O]||0});return{first:S(0),last:S(n-1),widest:S(C),highest:S(D),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Ub(this._alignToPixels?mr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=eD(this.getContext(),e,r))}return this.$context||(this.$context=Zk(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Wn(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=e.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=rs(s),h=[],p=a.setContext(this.getContext()),y=p.display?p.width:0,w=y/2,m=function(K){return mr(r,K,y)};let g,v,b,k,C,D,S,O,N,I,A,W;if(o==="top")g=m(this.bottom),D=this.bottom-f,O=g-w,I=m(e.top)+w,W=e.bottom;else if(o==="bottom")g=m(this.top),I=e.top,W=m(e.bottom)-w,D=g+w,O=this.top+f;else if(o==="left")g=m(this.right),C=this.right-f,S=g-w,N=m(e.left)+w,A=e.right;else if(o==="right")g=m(this.left),N=e.left,A=m(e.right)-w,C=g+w,S=this.left+f;else if(n==="x"){if(o==="center")g=m((e.top+e.bottom)/2+.5);else if(J(o)){const K=Object.keys(o)[0],H=o[K];g=m(this.chart.scales[K].getPixelForValue(H))}I=e.top,W=e.bottom,D=g+w,O=D+f}else if(n==="y"){if(o==="center")g=m((e.left+e.right)/2);else if(J(o)){const K=Object.keys(o)[0],H=o[K];g=m(this.chart.scales[K].getPixelForValue(H))}C=g-w,S=C-f,N=e.left,A=e.right}const U=q(i.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/U));for(v=0;v<d;v+=B){const K=this.getContext(v),H=s.setContext(K),L=a.setContext(K),z=H.lineWidth,Y=H.color,se=L.dash||[],le=L.dashOffset,Vt=H.tickWidth,Ke=H.tickColor,ln=H.tickBorderDash||[],qe=H.tickBorderDashOffset;b=Gk(this,v,l),b!==void 0&&(k=mr(r,b,z),c?C=S=N=A=k:D=O=I=W=k,h.push({tx1:C,ty1:D,tx2:S,ty2:O,x1:N,y1:I,x2:A,y2:W,width:z,color:Y,borderDash:se,borderDashOffset:le,tickWidth:Vt,tickColor:Ke,tickBorderDash:ln,tickBorderDashOffset:qe}))}return this._ticksLength=d,this._borderValue=g,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:s}=r,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,f=rs(r.grid),h=f+u,p=d?-u:h,y=-Wn(this.labelRotation),w=[];let m,g,v,b,k,C,D,S,O,N,I,A,W="middle";if(i==="top")C=this.bottom-p,D=this._getXAxisLabelAlignment();else if(i==="bottom")C=this.top+p,D=this._getXAxisLabelAlignment();else if(i==="left"){const B=this._getYAxisLabelAlignment(f);D=B.textAlign,k=B.x}else if(i==="right"){const B=this._getYAxisLabelAlignment(f);D=B.textAlign,k=B.x}else if(n==="x"){if(i==="center")C=(e.top+e.bottom)/2+h;else if(J(i)){const B=Object.keys(i)[0],K=i[B];C=this.chart.scales[B].getPixelForValue(K)+h}D=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")k=(e.left+e.right)/2-h;else if(J(i)){const B=Object.keys(i)[0],K=i[B];k=this.chart.scales[B].getPixelForValue(K)}D=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?W="top":l==="end"&&(W="bottom"));const U=this._getLabelSizes();for(m=0,g=a.length;m<g;++m){v=a[m],b=v.label;const B=s.setContext(this.getContext(m));S=this.getPixelForTick(m)+s.labelOffset,O=this._resolveTickFontOptions(m),N=O.lineHeight,I=we(b)?b.length:1;const K=I/2,H=B.color,L=B.textStrokeColor,z=B.textStrokeWidth;let Y=D;o?(k=S,D==="inner"&&(m===g-1?Y=this.options.reverse?"left":"right":m===0?Y=this.options.reverse?"right":"left":Y="center"),i==="top"?c==="near"||y!==0?A=-I*N+N/2:c==="center"?A=-U.highest.height/2-K*N+N:A=-U.highest.height+N/2:c==="near"||y!==0?A=N/2:c==="center"?A=U.highest.height/2-K*N:A=U.highest.height-I*N,d&&(A*=-1),y!==0&&!B.showLabelBackdrop&&(k+=N/2*Math.sin(y))):(C=S,A=(1-I)*N/2);let se;if(B.showLabelBackdrop){const le=Qe(B.backdropPadding),Vt=U.heights[m],Ke=U.widths[m];let ln=A-le.top,qe=0-le.left;switch(W){case"middle":ln-=Vt/2;break;case"bottom":ln-=Vt;break}switch(D){case"center":qe-=Ke/2;break;case"right":qe-=Ke;break;case"inner":m===g-1?qe-=Ke:m>0&&(qe-=Ke/2);break}se={left:qe,top:ln,width:Ke+le.width,height:Vt+le.height,color:B.backdropColor}}w.push({label:b,font:O,textOffset:A,options:{rotation:y,color:H,strokeColor:L,strokeWidth:z,textAlign:Y,textBaseline:W,translation:[k,C],backdrop:se}})}return w}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Wn(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,o=this._getLabelSizes(),a=e+s,l=o.widest.width;let c,u;return n==="left"?i?(u=this.right+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s<o;++s){const l=i[s];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),o=r.display?s.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=mr(e,this.left,o)-o/2,u=mr(e,this.right,a)+a/2,d=f=l):(d=mr(e,this.top,o)-o/2,f=mr(e,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Pf(r,i);const s=this.getLabelItems(e);for(const o of s){const a=o.options,l=o.font,c=o.label,u=o.textOffset;Br(r,c,0,u,l,a)}i&&Tf(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const s=Te(r.font),o=Qe(r.padding),a=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||J(n)?(l+=o.bottom,we(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=nD(this,l,n,a);Br(e,r.text,0,0,s,{color:r.color,maxWidth:d,rotation:f,textAlign:tD(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=q(e.grid&&e.grid.z,-1),i=q(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==qr.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s<o;++s){const a=n[s];a[r]===this.id&&(!e||a.type===e)&&i.push(a)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Te(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class qo{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;sD(n)&&(r=this.register(n));const i=this.items,s=e.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in i||(i[s]=e,rD(e,o,r),this.override&&xe.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in xe[i]&&(delete xe[i][r],this.override&&delete Yr[r])}}function rD(t,e,n){const r=Js(Object.create(null),[n?xe.get(n):{},xe.get(e),t.defaults]);xe.set(e,r),t.defaultRoutes&&iD(e,t.defaultRoutes),t.descriptors&&xe.describe(e,t.descriptors)}function iD(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),i=r.pop(),s=[t].concat(r).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");xe.route(s,i,l,a)})}function sD(t){return"id"in t&&"defaults"in t}class oD{constructor(){this.controllers=new qo(Ns,"datasets",!0),this.elements=new qo(Kr,"elements"),this.plugins=new qo(Object,"plugins"),this.scales=new qo(qr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(e,s,i):te(i,o=>{const a=r||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,r){const i=kf(e);oe(r["before"+i],[],r),n[e](r),oe(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var qt=new oD;class aD{constructor(){this._init=[]}notify(e,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=i?this._descriptors(e).filter(i):this._descriptors(e),o=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,r,i){i=i||{};for(const s of e){const o=s.plugin,a=o[r],l=[n,i,s.options];if(oe(a,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){ue(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=q(r.options&&r.options.plugins,{}),s=lD(r);return i===!1&&!n?[]:uD(e,s,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function lD(t){const e={},n=[],r=Object.keys(qt.plugins.items);for(let s=0;s<r.length;s++)n.push(qt.getPlugin(r[s]));const i=t.plugins||[];for(let s=0;s<i.length;s++){const o=i[s];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function cD(t,e){return!e&&t===!1?null:t===!0?{}:t}function uD(t,{plugins:e,localIds:n},r,i){const s=[],o=t.getContext();for(const a of e){const l=a.id,c=cD(r[l],i);c!==null&&s.push({plugin:a,options:dD(t.config,{plugin:a,local:n[l]},c,o)})}return s}function dD(t,{plugin:e,local:n},r,i){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(r,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zu(t,e){const n=xe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function fD(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function hD(t,e){return t===e?"_index_":"_value_"}function Gp(t){if(t==="x"||t==="y"||t==="r")return t}function pD(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function ed(t,...e){if(Gp(t))return t;for(const n of e){const r=n.axis||pD(n.position)||t.length>1&&Gp(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Jp(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function mD(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Jp(t,"x",n[0])||Jp(t,"y",n[0])}return{}}function gD(t,e){const n=Yr[t.type]||{scales:{}},r=e.scales||{},i=Zu(t.type,e),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!J(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=ed(o,a,mD(o,t),xe.scales[a.type]),c=hD(l,i),u=n.scales||{};s[o]=Es(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||Zu(a,e),u=(Yr[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=fD(d,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),Es(s[h],[{axis:f},r[h],u[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];Es(a,[xe.scales[a.type],xe.scale])}),s}function dv(t){const e=t.options||(t.options={});e.plugins=q(e.plugins,{}),e.scales=gD(t,e)}function fv(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function yD(t){return t=t||{},t.data=fv(t.data),dv(t),t}const Zp=new Map,hv=new Set;function Xo(t,e){let n=Zp.get(t);return n||(n=e(),Zp.set(t,n),hv.add(n)),n}const is=(t,e,n)=>{const r=rl(e,n);r!==void 0&&t.add(r)};class vD{constructor(e){this._config=yD(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=fv(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),dv(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Xo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Xo(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Xo(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Xo(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:s}=this,o=this._cachedScopes(e,r),a=o.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>is(l,e,d))),u.forEach(d=>is(l,i,d)),u.forEach(d=>is(l,Yr[s]||{},d)),u.forEach(d=>is(l,xe,d)),u.forEach(d=>is(l,Gu,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),hv.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Yr[n]||{},xe.datasets[n]||{},{type:n},xe,Gu]}resolveNamedOptions(e,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=em(this._resolverCache,e,i);let l=o;if(xD(o,n)){s.$shared=!1,r=ir(r)?r():r;const c=this.createResolver(e,r,a);l=Ni(o,r,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,r=[""],i){const{resolver:s}=em(this._resolverCache,e,r);return J(n)?Ni(s,n,void 0,i):s}}function em(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Of(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const wD=t=>J(t)&&Object.getOwnPropertyNames(t).some(e=>ir(t[e]));function xD(t,e){const{isScriptable:n,isIndexable:r}=X0(t);for(const i of e){const s=n(i),o=r(i),a=(o||s)&&t[i];if(s&&(ir(a)||wD(a))||o&&we(a))return!0}return!1}var _D="4.4.3";const bD=["top","bottom","left","right","chartArea"];function tm(t,e){return t==="top"||t==="bottom"||bD.indexOf(t)===-1&&e==="x"}function nm(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function rm(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),oe(n&&n.onComplete,[t],e)}function kD(t){const e=t.chart,n=e.options.animation;oe(n&&n.onProgress,[t],e)}function pv(t){return Lf()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ka={},im=t=>{const e=pv(t);return Object.values(ka).filter(n=>n.canvas===e).pop()};function DD(t,e,n){const r=Object.keys(t);for(const i of r){const s=+i;if(s>=e){const o=t[i];delete t[i],(n>0||s>e)&&(t[s+n]=o)}}}function SD(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function Go(t,e,n){return t.options.clip?t[n]:e[n]}function CD(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Go(n,e,"left"),right:Go(n,e,"right"),top:Go(r,e,"top"),bottom:Go(r,e,"bottom")}:e}var Nn;let go=(Nn=class{static register(...e){qt.add(...e),sm()}static unregister(...e){qt.remove(...e),sm()}constructor(e,n){const r=this.config=new vD(n),i=pv(e),s=im(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Hk(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Rb(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,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 aD,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Gb(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],ka[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}un.listen(this,"complete",rm),un.listen(this,"progress",kD),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return ue(e)?n&&s?s:i?r/i: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 qt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Pp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Cp(this.canvas,this.ctx),this}stop(){return un.stop(this),this}resize(e,n){un.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,e,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Pp(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),oe(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};te(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],l=ed(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),te(s,o=>{const a=o.options,l=a.id,c=ed(l,a),u=q(a.type,o.dtype);(a.position===void 0||tm(a.position,c)!==tm(o.dposition))&&(a.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=qt.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,e)}),te(i,(o,a)=>{o||delete r[a]}),te(r,o=>{Mt.configure(this,o,o.options),Mt.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,s)=>i.index-s.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(nm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const s=n[r];let o=this.getDatasetMeta(r);const a=s.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=a,o.indexAxis=s.indexAxis||Zu(a,this.options),o.order=s.order||0,o.index=r,o.label=""+s.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=qt.getController(a),{datasetElementType:c,dataElementType:u}=xe.datasets[a];Object.assign(l,{dataElementType:qt.getElement(u),datasetElementType:c&&qt.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){te(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!i&&s.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||te(s,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(nm("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){te(this.scales,e=>{Mt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!yp(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;DD(e,i,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;s<n;s++)if(!yp(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Mt.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],te(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ir(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(un.has(this)?this.attached&&!un.running(this)&&un.start(this):(this.draw(),rm({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,s;for(i=0,s=n.length;i<s;++i){const o=n[i];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,i=!r.disabled,s=CD(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Pf(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),e.controller.draw(),i&&Tf(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return vn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const s=bk.modes[n];return typeof s=="function"?s(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=fr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,i);il(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),un.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Cp(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ka[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,n=this.platform,r=(s,o)=>{n.addEventListener(this,s,o),e[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};te(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},i=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){te(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},te(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let s,o,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){o=e[a];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:o})=>{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!tl(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=s(n,e),a=r?e:s(e,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(e,i,r,o),l=zb(e),c=SD(e,this._lastEvent,r,l);r&&(this._lastEvent=null,oe(s.onHover,[e,a,this],this),l&&oe(s.onClick,[e,a,this],this));const u=!tl(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,i)}},P(Nn,"defaults",xe),P(Nn,"instances",ka),P(Nn,"overrides",Yr),P(Nn,"registry",qt),P(Nn,"version",_D),P(Nn,"getChart",im),Nn);function sm(){return te(go.instances,t=>t._plugins.invalidate())}function mv(t,e,n=e){t.lineCap=q(n.borderCapStyle,e.borderCapStyle),t.setLineDash(q(n.borderDash,e.borderDash)),t.lineDashOffset=q(n.borderDashOffset,e.borderDashOffset),t.lineJoin=q(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=q(n.borderWidth,e.borderWidth),t.strokeStyle=q(n.borderColor,e.borderColor)}function MD(t,e,n){t.lineTo(n.x,n.y)}function ED(t){return t.stepped?d1:t.tension||t.cubicInterpolationMode==="monotone"?f1:MD}function gv(t,e,n={}){const r=t.length,{start:i=0,end:s=r-1}=n,{start:o,end:a}=e,l=Math.max(i,o),c=Math.min(s,a),u=i<o&&s<o||i>a&&s>a;return{count:r,start:l,loop:e.loop,ilen:c<l&&!u?r+c-l:c-l}}function PD(t,e,n,r){const{points:i,options:s}=e,{count:o,start:a,loop:l,ilen:c}=gv(i,n,r),u=ED(s);let{move:d=!0,reverse:f}=r||{},h,p,y;for(h=0;h<=c;++h)p=i[(a+(f?c-h:h))%o],!p.skip&&(d?(t.moveTo(p.x,p.y),d=!1):u(t,y,p,f,s.stepped),y=p);return l&&(p=i[(a+(f?c:0))%o],u(t,y,p,f,s.stepped)),!!l}function TD(t,e,n,r){const i=e.points,{count:s,start:o,ilen:a}=gv(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,f,h,p,y,w,m;const g=b=>(o+(c?a-b:b))%s,v=()=>{y!==w&&(t.lineTo(u,w),t.lineTo(u,y),t.lineTo(u,m))};for(l&&(h=i[g(0)],t.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=i[g(f)],h.skip)continue;const b=h.x,k=h.y,C=b|0;C===p?(k<y?y=k:k>w&&(w=k),u=(d*u+b)/++d):(v(),t.lineTo(b,k),p=C,d=0,y=w=k),m=k}v()}function td(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?TD:PD}function OD(t){return t.stepped?V1:t.tension||t.cubicInterpolationMode==="monotone"?U1:_r}function ND(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),mv(t,e.options),t.stroke(i)}function RD(t,e,n,r){const{segments:i,options:s}=e,o=td(e);for(const a of i)mv(t,s,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const LD=typeof Path2D=="function";function ID(t,e,n,r){LD&&!e.options.segment?ND(t,e,n,r):RD(t,e,n,r)}class hi extends Kr{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;A1(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=ek(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],s=this.points,o=G1(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],l=OD(r);let c,u;for(c=0,u=o.length;c<u;++c){const{start:d,end:f}=o[c],h=s[d],p=s[f];if(h===p){a.push(h);continue}const y=Math.abs((i-h[n])/(p[n]-h[n])),w=l(h,p,y,r.stepped);w[n]=e[n],a.push(w)}return a.length===1?a[0]:a}pathSegment(e,n,r){return td(this)(e,this,n,r)}path(e,n,r){const i=this.segments,s=td(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)o&=s(e,this,a,{start:n,end:n+r-1});return!!o}draw(e,n,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),ID(e,this,r,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}P(hi,"id","line"),P(hi,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),P(hi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),P(hi,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function om(t,e,n,r){const i=t.options,{[n]:s}=t.getProps([n],r);return Math.abs(e-s)<i.radius+i.hitRadius}class Rs extends Kr{constructor(n){super();P(this,"parsed");P(this,"skip");P(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const s=this.options,{x:o,y:a}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,r){return om(this,n,"x",r)}inYRange(n,r){return om(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!vn(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Ju(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}P(Rs,"id","point"),P(Rs,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),P(Rs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const am=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},FD=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class lm extends Kr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,n,r){this.maxWidth=e,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 e=this.options.labels||{};let n=oe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=Te(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=am(r,s);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((p,y)=>{const w=r+n/2+s.measureText(p.text).width;(y===0||c[c.length-1]+w+2*a>o)&&(d+=u,c[c.length-(y>0?0:1)]=0,h+=u,f++),l[y]={left:0,top:h,row:f,width:w,height:i},c[c.length-1]+=w+a}),d}_fitCols(e,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,f=0,h=0,p=0,y=0;return this.legendItems.forEach((w,m)=>{const{itemWidth:g,itemHeight:v}=AD(r,n,s,w,i);m>0&&h+v+2*a>u&&(d+=f+a,c.push({width:f,height:h}),p+=f+a,y++,f=h=0),l[m]={left:p,top:h,col:y,width:g,height:v},f=Math.max(f,g),h+=v+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=_i(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=$e(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=$e(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+e+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let a=0,l=$e(r,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=$e(r,this.top+e+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.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 e=this.ctx;Pf(e,this),this._draw(),Tf(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=e,a=xe.color,l=_i(e.rtl,this.left,this.width),c=Te(o.font),{padding:u}=o,d=c.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:y,itemHeight:w}=am(o,d),m=function(C,D,S){if(isNaN(p)||p<=0||isNaN(y)||y<0)return;i.save();const O=q(S.lineWidth,1);if(i.fillStyle=q(S.fillStyle,a),i.lineCap=q(S.lineCap,"butt"),i.lineDashOffset=q(S.lineDashOffset,0),i.lineJoin=q(S.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=q(S.strokeStyle,a),i.setLineDash(q(S.lineDash,[])),o.usePointStyle){const N={radius:y*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:O},I=l.xPlus(C,p/2),A=D+f;K0(i,N,I,A,o.pointStyleWidth&&p)}else{const N=D+Math.max((d-y)/2,0),I=l.leftForLtr(C,p),A=xi(S.borderRadius);i.beginPath(),Object.values(A).some(W=>W!==0)?al(i,{x:I,y:N,w:p,h:y,radius:A}):i.rect(I,N,p,y),i.fill(),O!==0&&i.stroke()}i.restore()},g=function(C,D,S){Br(i,S.text,C,D+w/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})},v=this.isHorizontal(),b=this._computeTitleHeight();v?h={x:$e(s,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:$e(s,this.top+b+u,this.bottom-n[0].height),line:0},tv(this.ctx,e.textDirection);const k=w+u;this.legendItems.forEach((C,D)=>{i.strokeStyle=C.fontColor,i.fillStyle=C.fontColor;const S=i.measureText(C.text).width,O=l.textAlign(C.textAlign||(C.textAlign=o.textAlign)),N=p+f+S;let I=h.x,A=h.y;l.setWidth(this.width),v?D>0&&I+N+u>this.right&&(A=h.y+=k,h.line++,I=h.x=$e(s,this.left+u,this.right-r[h.line])):D>0&&A+k>this.bottom&&(I=h.x=I+n[h.line].width+u,h.line++,A=h.y=$e(s,this.top+b+u,this.bottom-n[h.line].height));const W=l.x(I);if(m(W,A,C),I=Jb(O,I+p+f,v?I+N:this.right,e.rtl),g(l.x(I),A,C),v)h.x+=N+u;else if(typeof C.text!="string"){const U=c.lineHeight;h.y+=yv(C,U)+u}else h.y+=k}),nv(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Te(n.font),i=Qe(n.padding);if(!n.display)return;const s=_i(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=$e(e.align,d,this.right-f);else{const p=this.columnSizes.reduce((y,w)=>Math.max(y,w.height),0);u=c+$e(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=$e(a,d,d+f);o.textAlign=s.textAlign(Cf(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Br(o,n.text,h,u,r)}_computeTitleHeight(){const e=this.options.title,n=Te(e.font),r=Qe(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,s;if(ps(e,this.left,this.right)&&ps(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],ps(e,i.left,i.left+i.width)&&ps(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!YD(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,s=FD(i,r);i&&!s&&oe(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!s&&oe(n.onHover,[e,r,this],this)}else r&&oe(n.onClick,[e,r,this],this)}}function AD(t,e,n,r,i){const s=jD(r,t,e,n),o=zD(i,r,e.lineHeight);return{itemWidth:s,itemHeight:o}}function jD(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((s,o)=>s.length>o.length?s:o)),e+n.size/2+r.measureText(i).width}function zD(t,e,n){let r=t;return typeof e.text!="string"&&(r=yv(e,n)),r}function yv(t,e){const n=t.text?t.text.length:0;return e*n}function YD(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var vv={id:"legend",_element:lm,start(t,e,n){const r=t.legend=new lm({ctx:t.ctx,options:n,chart:t});Mt.configure(t,r,n),Mt.addBox(t,r)},stop(t){Mt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Mt.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Qe(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class wv extends Kr{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,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=e,this.height=this.bottom=n;const i=we(r.text)?r.text.length:1;this._padding=Qe(r.padding);const s=i*Te(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=$e(a,r,s),d=n+e,c=s-r):(o.position==="left"?(u=r+e,d=$e(a,i,n),l=Me*-.5):(u=s-e,d=$e(a,n,i),l=Me*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Te(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Br(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Cf(n.align),textBaseline:"middle",translation:[o,a]})}}function BD(t,e){const n=new wv({ctx:t.ctx,options:e,chart:t});Mt.configure(t,n,e),Mt.addBox(t,n),t.titleBlock=n}var xv={id:"title",_element:wv,start(t,e,n){BD(t,n)},stop(t){const e=t.titleBlock;Mt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Mt.configure(t,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 gs={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,s=0;for(e=0,n=t.length;e<n;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),i+=l.y,++s}}return{x:[...r].reduce((a,l)=>a+l)/r.size,y:i/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=t.length;s<o;++s){const l=t[s].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Xu(e,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Qt(t,e){return e&&(we(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function dn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
`)>-1?t.split(`
`):t}function WD(t,e){const{element:n,datasetIndex:r,index:i}=e,s=t.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:t,label:o,parsed:s.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function cm(t,e){const n=t.chart.ctx,{body:r,footer:i,title:s}=t,{boxWidth:o,boxHeight:a}=e,l=Te(e.bodyFont),c=Te(e.titleFont),u=Te(e.footerFont),d=s.length,f=i.length,h=r.length,p=Qe(e.padding);let y=p.height,w=0,m=r.reduce((b,k)=>b+k.before.length+k.lines.length+k.after.length,0);if(m+=t.beforeBody.length+t.afterBody.length,d&&(y+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),m){const b=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=h*b+(m-h)*l.lineHeight+(m-1)*e.bodySpacing}f&&(y+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let g=0;const v=function(b){w=Math.max(w,n.measureText(b).width+g)};return n.save(),n.font=c.string,te(t.title,v),n.font=l.string,te(t.beforeBody.concat(t.afterBody),v),g=e.displayColors?o+2+e.boxPadding:0,te(r,b=>{te(b.before,v),te(b.lines,v),te(b.after,v)}),g=0,n.font=u.string,te(t.footer,v),n.restore(),w+=p.width,{width:w,height:y}}function HD(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function $D(t,e,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&i+s+o>e.width||t==="right"&&i-s-o<0)return!0}function VD(t,e,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=s/2?c="left":i>=o-s/2&&(c="right"),$D(c,t,e,n)&&(c="center"),c}function um(t,e,n){const r=n.yAlign||e.yAlign||HD(t,n);return{xAlign:n.xAlign||e.xAlign||VD(t,e,n,r),yAlign:r}}function UD(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function QD(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function dm(t,e,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,c=i+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=xi(o);let p=UD(e,a);const y=QD(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,f)+i:a==="right"&&(p+=Math.max(d,h)+i),{x:Ct(p,0,r.width-e.width),y:Ct(y,0,r.height-e.height)}}function Jo(t,e,n){const r=Qe(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function fm(t){return Qt([],dn(t))}function KD(t,e,n){return fr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function hm(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const _v={beforeTitle:cn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:cn,beforeBody:cn,beforeLabel:cn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return ue(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:cn,afterBody:cn,beforeFooter:cn,footer:cn,afterFooter:cn};function nt(t,e,n,r){const i=t[e].call(n,r);return typeof i>"u"?_v[e].call(n,r):i}class nd extends Kr{constructor(e){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=e.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new iv(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=KD(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=nt(r,"beforeTitle",this,e),s=nt(r,"title",this,e),o=nt(r,"afterTitle",this,e);let a=[];return a=Qt(a,dn(i)),a=Qt(a,dn(s)),a=Qt(a,dn(o)),a}getBeforeBody(e,n){return fm(nt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return te(e,s=>{const o={before:[],lines:[],after:[]},a=hm(r,s);Qt(o.before,dn(nt(a,"beforeLabel",this,s))),Qt(o.lines,nt(a,"label",this,s)),Qt(o.after,dn(nt(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(e,n){return fm(nt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=nt(r,"beforeFooter",this,e),s=nt(r,"footer",this,e),o=nt(r,"afterFooter",this,e);let a=[];return a=Qt(a,dn(i)),a=Qt(a,dn(s)),a=Qt(a,dn(o)),a}_createItems(e){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(WD(this.chart,n[l]));return e.filter&&(a=a.filter((u,d,f)=>e.filter(u,d,f,r))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,r))),te(a,u=>{const d=hm(e.callbacks,u);i.push(nt(d,"labelColor",this,u)),s.push(nt(d,"labelPointStyle",this,u)),o.push(nt(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=gs[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=cm(this,r),c=Object.assign({},a,l),u=um(this.chart,r,c),d=dm(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const s=this.getCaretPosition(e,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=xi(a),{x:f,y:h}=e,{width:p,height:y}=n;let w,m,g,v,b,k;return s==="center"?(b=h+y/2,i==="left"?(w=f,m=w-o,v=b+o,k=b-o):(w=f+p,m=w+o,v=b-o,k=b+o),g=w):(i==="left"?m=f+Math.max(l,u)+o:i==="right"?m=f+p-Math.max(c,d)-o:m=this.caretX,s==="top"?(v=h,b=v-o,w=m-o,g=m+o):(v=h+y,b=v+o,w=m+o,g=m-o),k=v),{x1:w,x2:m,x3:g,y1:v,y2:b,y3:k}}drawTitle(e,n,r){const i=this.title,s=i.length;let o,a,l;if(s){const c=_i(r.rtl,this.x,this.width);for(e.x=Jo(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=Te(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(i[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,l+1===s&&(e.y+=r.titleMarginBottom-a)}}_drawColorBox(e,n,r,i,s){const o=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,u=Te(s.bodyFont),d=Jo(this,"left",s),f=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,p=n.y+h;if(s.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},w=i.leftForLtr(f,c)+c/2,m=p+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,Ju(e,y,w,m),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Ju(e,y,w,m)}else{e.lineWidth=J(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const y=i.leftForLtr(f,c),w=i.leftForLtr(i.xPlus(f,1),c-2),m=xi(o.borderRadius);Object.values(m).some(g=>g!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,al(e,{x:y,y:p,w:c,h:l,radius:m}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),al(e,{x:w,y:p+1,w:c-2,h:l-2,radius:m}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(y,p,c,l),e.strokeRect(y,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(w,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Te(r.bodyFont);let f=d.lineHeight,h=0;const p=_i(r.rtl,this.x,this.width),y=function(S){n.fillText(S,p.x(e.x+h),e.y+f/2),e.y+=f+s},w=p.textAlign(o);let m,g,v,b,k,C,D;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=Jo(this,w,r),n.fillStyle=r.bodyColor,te(this.beforeBody,y),h=a&&w!=="right"?o==="center"?c/2+u:c+2+u:0,b=0,C=i.length;b<C;++b){for(m=i[b],g=this.labelTextColors[b],n.fillStyle=g,te(m.before,y),v=m.lines,a&&v.length&&(this._drawColorBox(n,e,b,p,r),f=Math.max(d.lineHeight,l)),k=0,D=v.length;k<D;++k)y(v[k]),f=d.lineHeight;te(m.after,y)}h=0,f=d.lineHeight,te(this.afterBody,y),e.y-=s}drawFooter(e,n,r){const i=this.footer,s=i.length;let o,a;if(s){const l=_i(r.rtl,this.x,this.width);for(e.x=Jo(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Te(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,a=0;a<s;++a)n.fillText(i[a],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:s,yAlign:o}=this,{x:a,y:l}=e,{width:c,height:u}=r,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=xi(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),o==="top"&&this.drawCaret(e,n,r,i),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),o==="center"&&s==="right"&&this.drawCaret(e,n,r,i),n.lineTo(a+c,l+u-p),n.quadraticCurveTo(a+c,l+u,a+c-p,l+u),o==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(a+h,l+u),n.quadraticCurveTo(a,l+u,a,l+u-h),o==="center"&&s==="left"&&this.drawCaret(e,n,r,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=gs[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=cm(this,e),l=Object.assign({},o,this._size),c=um(n,e,l),u=dm(e,l,c,n);(i._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){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},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Qe(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,i,n),tv(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),nv(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),s=!tl(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,r),a=this._positionChanged(o,e),l=n||!tl(o,s)||a;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const s=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:i,options:s}=this,o=gs[s.position].call(this,e,n);return o!==!1&&(r!==o.x||i!==o.y)}}P(nd,"positioners",gs);var bv={id:"tooltip",_element:nd,positioners:gs,afterInit(t,e,n){n&&(t.tooltip=new nd({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:_v},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const qD=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function XD(t,e,n,r){const i=t.indexOf(e);if(i===-1)return qD(t,e,n,r);const s=t.lastIndexOf(e);return i!==s?n:i}const GD=(t,e)=>t===null?null:Ct(Math.round(t),0,e);function pm(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class ul extends qr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:s}of n)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(ue(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:XD(r,e,q(n,e),this._addedLabels),GD(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=e===0&&n===s.length-1?s:s.slice(e,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=e;o<=n;o++)i.push({value:o});return i}getLabelForValue(e){return pm.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}P(ul,"id","category"),P(ul,"defaults",{ticks:{callback:pm}});function JD(t,e){const n=[],{bounds:i,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=t,h=s||1,p=u-1,{min:y,max:w}=e,m=!ue(o),g=!ue(a),v=!ue(c),b=(w-y)/(d+1);let k=wp((w-y)/p/h)*h,C,D,S,O;if(k<1e-14&&!m&&!g)return[{value:y},{value:w}];O=Math.ceil(w/k)-Math.floor(y/k),O>p&&(k=wp(O*k/p/h)*h),ue(l)||(C=Math.pow(10,l),k=Math.ceil(k*C)/C),i==="ticks"?(D=Math.floor(y/k)*k,S=Math.ceil(w/k)*k):(D=y,S=w),m&&g&&s&&Hb((a-o)/s,k/1e3)?(O=Math.round(Math.min((a-o)/k,u)),k=(a-o)/O,D=o,S=a):v?(D=m?o:D,S=g?a:S,O=c-1,k=(S-D)/O):(O=(S-D)/k,Ps(O,Math.round(O),k/1e3)?O=Math.round(O):O=Math.ceil(O));const N=Math.max(xp(k),xp(D));C=Math.pow(10,ue(l)?N:l),D=Math.round(D*C)/C,S=Math.round(S*C)/C;let I=0;for(m&&(f&&D!==o?(n.push({value:o}),D<o&&I++,Ps(Math.round((D+I*k)*C)/C,o,mm(o,b,t))&&I++):D<o&&I++);I<O;++I){const A=Math.round((D+I*k)*C)/C;if(g&&A>a)break;n.push({value:A})}return g&&f&&S!==a?n.length&&Ps(n[n.length-1].value,a,mm(a,b,t))?n[n.length-1].value=a:n.push({value:a}):(!g||S===a)&&n.push({value:S}),n}function mm(t,e,{horizontal:n,minRotation:r}){const i=Wn(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class dl extends qr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return ue(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=l=>i=n?i:l,a=l=>s=r?s:l;if(e){const l=Oi(i),c=Oi(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(i===s){let l=s===0?1:Math.abs(s*.05);a(s+l),e||o(i-l)}this.min=i,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,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 e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=JD(i,s);return e.bounds==="ticks"&&W0(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Ef(e,this.chart.options.locale,this.options.ticks.format)}}class fl extends dl{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ne(e)?e:0,this.max=Ne(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Wn(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}P(fl,"id","linear"),P(fl,"defaults",{ticks:{callback:Ul.formatters.numeric}});const to=t=>Math.floor(Bn(t)),yr=(t,e)=>Math.pow(10,to(t)+e);function gm(t){return t/Math.pow(10,to(t))===1}function ym(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function ZD(t,e){const n=e-t;let r=to(n);for(;ym(t,e,r)>10;)r++;for(;ym(t,e,r)<10;)r--;return Math.min(r,to(t))}function eS(t,{min:e,max:n}){e=dt(t.min,e);const r=[],i=to(e);let s=ZD(e,n),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),l=i>s?Math.pow(10,i):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,s)),f=dt(t.min,Math.round((l+u+d*Math.pow(10,s))*o)/o);for(;f<n;)r.push({value:f,major:gm(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,o=s>=0?1:o),f=Math.round((l+u+d*Math.pow(10,s))*o)/o;const h=dt(t.max,f);return r.push({value:h,major:gm(h),significand:d}),r}class vm extends qr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=dl.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return Ne(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ne(e)?Math.max(0,e):null,this.max=Ne(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ne(this._userMin)&&(this.min=e===yr(this.min,0)?yr(this.min,-1):yr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const s=a=>r=e?r:a,o=a=>i=n?i:a;r===i&&(r<=0?(s(1),o(10)):(s(yr(r,-1)),o(yr(i,1)))),r<=0&&s(yr(i,-1)),i<=0&&o(yr(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=eS(n,this);return e.bounds==="ticks"&&W0(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Ef(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Bn(e),this._valueRange=Bn(this.max)-Bn(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Bn(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}P(vm,"id","logarithmic"),P(vm,"defaults",{ticks:{callback:Ul.formatters.logarithmic,major:{enabled:!0}}});function rd(t){const e=t.ticks;if(e.display&&t.display){const n=Qe(e.backdropPadding);return q(e.font&&e.font.size,xe.font.size)+n.height}return 0}function tS(t,e,n){return n=we(n)?n:[n],{w:u1(t,e.string,n),h:n.length*e.lineHeight}}function wm(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function nS(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],s=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?Me/s:0;for(let l=0;l<s;l++){const c=o.setContext(t.getPointLabelContext(l));i[l]=c.padding;const u=t.getPointPosition(l,t.drawingArea+i[l],a),d=Te(c.font),f=tS(t.ctx,d,t._pointLabels[l]);r[l]=f;const h=Ft(t.getIndexAngle(l)+a),p=Math.round(Df(h)),y=wm(p,u.x,f.w,0,180),w=wm(p,u.y,f.h,90,270);rS(n,e,h,y,w)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=oS(t,r,i)}function rS(t,e,n,r,i){const s=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,l=0;r.start<e.l?(a=(e.l-r.start)/s,t.l=Math.min(t.l,e.l-a)):r.end>e.r&&(a=(r.end-e.r)/s,t.r=Math.max(t.r,e.r+a)),i.start<e.t?(l=(e.t-i.start)/o,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function iS(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:s,padding:o,size:a}=n,l=t.getPointPosition(e,r+i+o,s),c=Math.round(Df(Ft(l.angle+mt))),u=cS(l.y,a.h,c),d=aS(c),f=lS(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function sS(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:s}=t;return!(vn({x:n,y:r},e)||vn({x:n,y:s},e)||vn({x:i,y:r},e)||vn({x:i,y:s},e))}function oS(t,e,n){const r=[],i=t._pointLabels.length,s=t.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:rd(s)/2,additionalAngle:o?Me/i:0};let c;for(let u=0;u<i;u++){l.padding=n[u],l.size=e[u];const d=iS(t,u,l);r.push(d),a==="auto"&&(d.visible=sS(d,c),d.visible&&(c=d))}return r}function aS(t){return t===0||t===180?"center":t<180?"left":"right"}function lS(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function cS(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function uS(t,e,n){const{left:r,top:i,right:s,bottom:o}=n,{backdropColor:a}=e;if(!ue(a)){const l=xi(e.borderRadius),c=Qe(e.backdropPadding);t.fillStyle=a;const u=r-c.left,d=i-c.top,f=s-r+c.width,h=o-i+c.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),al(t,{x:u,y:d,w:f,h,radius:l}),t.fill()):t.fillRect(u,d,f,h)}}function dS(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const s=t._pointLabelItems[i];if(!s.visible)continue;const o=r.setContext(t.getPointLabelContext(i));uS(n,o,s);const a=Te(o.font),{x:l,y:c,textAlign:u}=s;Br(n,t._pointLabels[i],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function kv(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Pt);else{let s=t.getPointPosition(0,e);i.moveTo(s.x,s.y);for(let o=1;o<r;o++)s=t.getPointPosition(o,e),i.lineTo(s.x,s.y)}}function fS(t,e,n,r,i){const s=t.ctx,o=e.circular,{color:a,lineWidth:l}=e;!o&&!r||!a||!l||n<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(i.dash),s.lineDashOffset=i.dashOffset,s.beginPath(),kv(t,n,o,r),s.closePath(),s.stroke(),s.restore())}function hS(t,e,n){return fr(t,{label:n,index:e,type:"pointLabel"})}class Zo extends dl{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Qe(rd(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Ne(e)&&!isNaN(e)?e:0,this.max=Ne(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/rd(this.options))}generateTickLabels(e){dl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const i=oe(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?nS(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=Pt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Ft(e*n+Wn(r))}getDistanceFromCenterForValue(e){if(ue(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(ue(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return hS(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-mt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:s}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),kv(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:s}=n,o=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&dS(this,o),i.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),h=i.setContext(f),p=s.setContext(f);fS(this,h,l,o,p)}}),r.display){for(e.save(),a=o-1;a>=0;a--){const u=r.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=Te(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=Qe(c.backdropPadding);e.fillRect(-o/2-d.left,-s-u.size/2-d.top,o+d.width,u.size+d.height)}Br(e,a.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}P(Zo,"id","radialLinear"),P(Zo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ul.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),P(Zo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),P(Zo,"descriptors",{angleLines:{_fallback:"grid"}});const Kl={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}},it=Object.keys(Kl);function xm(t,e){return t-e}function _m(t,e){if(ue(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:s}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Ne(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Zs(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function bm(t,e,n,r){const i=it.length;for(let s=it.indexOf(t);s<i-1;++s){const o=Kl[it[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(a*o.size))<=r)return it[s]}return it[i-1]}function pS(t,e,n,r,i){for(let s=it.length-1;s>=it.indexOf(n);s--){const o=it[s];if(Kl[o].common&&t._adapter.diff(i,r,o)>=e-1)return o}return it[n?it.indexOf(n):0]}function mS(t){for(let e=it.indexOf(t)+1,n=it.length;e<n;++e)if(Kl[it[e]].common)return it[e]}function km(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=Sf(n,e),s=n[r]>=e?n[r]:n[i];t[s]=!0}}function gS(t,e,n,r){const i=t._adapter,s=+i.startOf(e[0].value,r),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+i.add(a,1,r))l=n[a],l>=0&&(e[l].major=!0);return e}function Dm(t,e,n){const r=[],i={},s=e.length;let o,a;for(o=0;o<s;++o)a=e[o],i[a]=o,r.push({value:a,major:!1});return s===0||!n?r:gS(t,r,i,n)}class hl extends qr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new yk._date(e.adapters.date);i.init(n),Es(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:_m(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Ne(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),s=Ne(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,o=this.max,a=Kb(i,s,o);return this._unit=n.unit||(r.autoSkip?bm(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):pS(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:mS(this._unit),this.initOffsets(i),e.reverse&&a.reverse(),Dm(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,i,s;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Ct(n,0,o),r=Ct(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||bm(s.minUnit,n,r,this._getLabelCapacity(n)),a=q(i.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=Zs(l)||l===!0,u={};let d=n,f,h;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<r;f=+e.add(f,a,o),h++)km(u,f,p);return(f===r||i.bounds==="ticks"||h===1)&&km(u,f,p),Object.keys(u).sort(xm).map(y=>+y)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return oe(o,[e,n,r],this);const a=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=r[n],h=c&&d&&f&&f.major;return this._adapter.format(e,i||(h?d:u))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=Wn(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(i),o=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*s+a*o,h:r*o+a*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,Dm(this,[e],this._majorUnit),i),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;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)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(_m(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Xb(e.sort(xm))}}P(hl,"id","time"),P(hl,"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 ea(t,e,n){let r=0,i=t.length-1,s,o,a,l;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=Cr(t,"pos",e)),{pos:s,time:a}=t[r],{pos:o,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=Cr(t,"time",e)),{time:s,pos:a}=t[r],{time:o,pos:l}=t[i]);const c=o-s;return c?a+(l-a)*(e-s)/c:a}class Sm extends hl{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=ea(n,this.min),this._tableRange=ea(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],s=[];let o,a,l,c,u;for(o=0,a=e.length;o<a;++o)c=e[o],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;o<a;++o)u=i[o+1],l=i[o-1],c=i[o],Math.round((u+l)/2)!==c&&s.push({time:c,pos:o/(a-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(ea(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return ea(this._table,r*this._tableRange+this._minPos,!0)}}P(Sm,"id","timeseries"),P(Sm,"defaults",hl.defaults);const Dv="label";function Cm(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function yS(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Sv(t,e){t.labels=e}function Cv(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dv;const r=[];t.datasets=e.map(i=>{const s=t.datasets.find(o=>o[n]===i[n]);return!s||!i.data||r.includes(s)?{...i}:(r.push(s),Object.assign(s,i),s)})}function vS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dv;const n={labels:[],datasets:[]};return Sv(n,t.labels),Cv(n,t.datasets,e),n}function wS(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:o,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...f}=t,h=R.useRef(null),p=R.useRef(),y=()=>{h.current&&(p.current=new go(h.current,{type:o,data:vS(a,s),options:l&&{...l},plugins:c}),Cm(e,p.current))},w=()=>{Cm(e,null),p.current&&(p.current.destroy(),p.current=null)};return R.useEffect(()=>{!i&&p.current&&l&&yS(p.current,l)},[i,l]),R.useEffect(()=>{!i&&p.current&&Sv(p.current.config.data,a.labels)},[i,a.labels]),R.useEffect(()=>{!i&&p.current&&a.datasets&&Cv(p.current.config.data,a.datasets,s)},[i,a.datasets]),R.useEffect(()=>{p.current&&(i?(w(),setTimeout(y)):p.current.update(d))},[i,l,a.labels,a.datasets,d]),R.useEffect(()=>{p.current&&(w(),setTimeout(y))},[o]),R.useEffect(()=>(y(),()=>w()),[]),M.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},f),u)}const xS=R.forwardRef(wS);function _S(t,e){return go.register(e),R.forwardRef((n,r)=>M.createElement(xS,Object.assign({},n,{ref:r,type:t})))}const Mv=_S("line",_a);go.register(ul,fl,Rs,hi,xv,bv,vv);function bS(){const[t,e]=R.useState({fechas:[],costos_totales:[],ingresos_totales:[]}),[n,r]=R.useState(0),[i,s]=R.useState(0),[o,a]=R.useState(0);R.useEffect(()=>{(async()=>{try{const d=await fetch("https://www.servidordna.xyz/api/datos_graficas/");if(!d.ok)throw new Error("Error fetching graph data");const f=await d.json(),{fechas:h,costos_totales:p,ingresos_totales:y}=f.datos;e({fechas:h,costos_totales:p,ingresos_totales:y});const w=await fetch(`https://www.servidordna.xyz/api/conversaciones/?fecha_desde=2023-01-01&fecha_hasta=${new Date().toISOString().split("T")[0]}`);if(!w.ok)throw new Error("Error fetching conversation data");const m=await w.json();console.log("Datos de conversación:",m);const g=m.conversaciones.length,v=m.conversaciones.reduce((D,S)=>D+S.numero_mensajes,0),b=g?v/g:0,k=m.conversaciones.reduce((D,S)=>D+(S.calificacion_satisfaccion||0),0),C=g?k/g:0;a(g),r(b),s(C)}catch(d){console.error("Error fetching data for charts or conversations:",d)}})()},[]);const l={labels:t.fechas,datasets:[{label:"Costo Total",data:t.costos_totales,borderColor:"rgba(153, 102, 255, 1)",backgroundColor:"rgba(153, 102, 255, 0.2)",yAxisID:"y-axis-1"},{label:"Ingresos Totales",data:t.ingresos_totales,borderColor:"rgba(75, 192, 192, 1)",backgroundColor:"rgba(75, 192, 192, 0.2)",yAxisID:"y-axis-2"}]},c={scales:{y:{beginAtZero:!0,ticks:{callback:function(u){return`$${u}`}}}}};return _.jsxs("main",{className:"bg-[#E6EFF5] w-full h-full flex flex-col overflow-y-auto",children:[_.jsxs("section",{className:"w-full h-1/6 flex flex-row items-center justify-center font-bloques",children:[_.jsx("div",{className:"w-1/3 h-full flex items-center justify-center",children:_.jsxs("div",{className:"bg-[#FFFFFF] flex flex-row w-5/6 h-2/3 bloque-info items-center gap-5 p-10",children:[_.jsx("div",{className:"bg-[#78D64B] rounded-full h-[60px] w-[60px] flex items-center justify-center",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg"})}),_.jsxs("div",{className:"flex flex-col",children:[_.jsx("p",{className:"text-[#718EBF]",children:"Promedio de satisfacción"}),_.jsx("p",{className:"font-bold",children:i})]})]})}),_.jsx("div",{className:"w-1/3 h-full flex items-center justify-center",children:_.jsxs("div",{className:"bg-[#FFFFFF] flex flex-row w-5/6 h-1/2 bloque-info items-center gap-5 pr-5 pl-12 pt-12 pb-12 ",children:[_.jsx("div",{className:"bg-[#78D64B] rounded-full h-[60px] w-[60px] flex items-center justify-center",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg"})}),_.jsxs("div",{className:"flex flex-col",children:[_.jsx("p",{className:"text-[#718EBF]",children:"Número de conversaciones"}),_.jsx("p",{className:"font-bold",children:o})]})]})}),_.jsx("div",{className:"w-1/3 h-full flex items-center justify-center",children:_.jsxs("div",{className:"bg-[#FFFFFF] flex flex-row w-5/6 h-1/2 bloque-info items-center gap-5 p-12",children:[_.jsx("div",{className:"bg-[#78D64B] rounded-full h-[60px] w-[60px] flex items-center justify-center",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/convers.svg"})}),_.jsxs("div",{className:"flex flex-col",children:[_.jsx("p",{className:"text-[#718EBF]",children:"Promedio de mensajes"}),_.jsx("p",{className:"font-bold",children:n})]})]})})]}),_.jsx("section",{className:"w-full h-3/6 flex flex-row justify-center",children:_.jsx("div",{className:"flex items-center justify-between flex-row gap-10",children:_.jsxs("div",{className:"w-full h-5/6 flex items-center justify-center flex-col",children:[_.jsx("h3",{className:"text-2xl ml-4 text-[#333B69] font-semibold",children:"Gasto de la IA"}),_.jsx("div",{className:"flex items-center justify-center rounded-md overflow-hidden w-[700px] h-[700px]",children:_.jsx(Mv,{data:l,options:c})})]})})})]})}function kS(){return _.jsxs("main",{className:"bg-[#E6EFF5] min-h-screen w-full overflow-y-auto h-auto",children:[_.jsxs("section",{className:"w-full flex flex-row items-center justify-between p-5",children:[_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"/general/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"Ventas"}),_.jsx("strong",{children:"$50,000"})]})]}),_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"/general/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"Gastos"}),_.jsx("strong",{children:"$50,000"})]})]}),_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"/general/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"Chats"}),_.jsx("strong",{children:"$50,000"})]})]}),_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"/general/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"CTR"}),_.jsx("strong",{children:"$50,000"})]})]})]}),_.jsxs("section",{className:"w-full flex flex-col p-3 gap-6",children:[_.jsx("h2",{className:"text-[#333B69] font-bold text-2xl",children:"Productos"}),_.jsx("div",{className:"bg-white border border-gray-300 rounded-lg",children:_.jsx("div",{className:"table-wrapper rounded-lg",style:{overflowY:"auto",maxHeight:"24rem"},children:_.jsxs("table",{className:"w-full border-collapse",children:[_.jsx("thead",{className:"sticky top-0 bg-gray-200",children:_.jsxs("tr",{children:[_.jsx("th",{className:"border p-2 text-left",children:"No."}),_.jsx("th",{className:"border p-2 text-left",children:"Producto"}),_.jsx("th",{className:"border p-2 text-left",children:"Precio"}),_.jsx("th",{className:"border p-2 text-left",children:"Ventas"}),_.jsx("th",{className:"border p-2 text-left",children:"Tendencia"}),_.jsx("th",{className:"border p-2 text-left",children:"Costo p/v"}),_.jsx("th",{className:"border p-2 text-left",children:"Consultas"})]})}),_.jsxs("tbody",{children:[Array.from({length:20},(t,e)=>_.jsxs("tr",{className:e%2===0?"bg-white hover:bg-gray-100":"bg-gray-50 hover:bg-gray-100",children:[_.jsxs("td",{className:"border p-2",children:[e+1<10?`0${e+1}`:e+1,"."]}),_.jsx("td",{className:"border p-2",children:"Lipoenzimas"}),_.jsx("td",{className:"border p-2",children:"$250"}),_.jsx("td",{className:"border p-2",children:"3 Piezas"}),_.jsx("td",{className:"border p-2",children:"12%"}),_.jsx("td",{className:"border p-2",children:"No"}),_.jsx("td",{className:"border p-2",children:"150"})]},e)),_.jsxs("tr",{className:"bg-white hover:bg-gray-100 font-bold",children:[_.jsx("td",{className:"border p-2",children:"Promedio"}),_.jsx("td",{className:"border p-2",children:"-"}),_.jsx("td",{className:"border p-2 text-red-500",children:"$250"}),_.jsx("td",{className:"border p-2",children:"4 Piezas"}),_.jsx("td",{className:"border p-2 text-red-500",children:"15%"}),_.jsx("td",{className:"border p-2 text-red-500",children:"No"}),_.jsx("td",{className:"border p-2",children:"-"})]})]})]})})})]}),_.jsxs("section",{className:"w-full h-full flex flex-row mb-[200px]",children:[_.jsxs("div",{className:"w-1/2 h-full flex flex-col items-start p-5",children:[_.jsx("h3",{className:"text-2xl font-bold text-[#333B69] mb-3 ml-5",children:"Productos con mayor venta"}),_.jsxs("div",{className:"flex flex-col items-start w-full gap-5",children:[_.jsxs("div",{className:"bg-white flex flex-row w-4/5 p-3 ml-5 bloque-info justify-between",children:[_.jsx("div",{className:"w-1/5",children:_.jsx("div",{className:"bg-[#78D64B] p-2 ancho-foto w-1/2 flex items-center justify-center",children:_.jsx("img",{src:"/general/foto_producto.svg"})})}),_.jsxs("div",{className:"w-1/5",children:[_.jsx("p",{className:"font-bold",children:"Lipoenzimas"}),_.jsx("p",{children:"Vial - $560 c/u"})]}),_.jsxs("div",{className:"w-1/5",children:[_.jsx("p",{className:"font-bold",children:"$5,300"}),_.jsx("p",{children:"Vial - $560 c/u"})]}),_.jsxs("div",{className:"w-1/5",children:[_.jsx("p",{className:"font-bold text-[#16DBAA]",children:"-4%"}),_.jsx("p",{children:"ROI"})]})]}),_.jsxs("div",{className:"bg-white flex flex-row w-4/5 p-3 ml-5 bloque-info justify-between",children:[_.jsx("div",{className:"w-1/5",children:_.jsx("div",{className:"bg-[#78D64B] p-2 ancho-foto w-1/2 flex items-center justify-center",children:_.jsx("img",{src:"/general/foto_producto.svg"})})}),_.jsxs("div",{className:"w-1/5",children:[_.jsx("p",{className:"font-bold",children:"Lipoenzimas"}),_.jsx("p",{children:"Vial - $560 c/u"})]}),_.jsxs("div",{className:"w-1/5",children:[_.jsx("p",{className:"font-bold",children:"$5,300"}),_.jsx("p",{children:"Vial - $560 c/u"})]}),_.jsxs("div",{className:"w-1/5",children:[_.jsx("p",{className:"font-bold text-[#16DBAA]",children:"-4%"}),_.jsx("p",{children:"ROI"})]})]})]})]}),_.jsxs("div",{className:"w-1/2 h-full p-5 gap-5 items-end ",children:[_.jsx("h2",{className:"text-2xl font-bold text-[#333B69] mb-3",children:"Productos en tendencia"}),_.jsx("div",{className:"bg-[#FFFFFF] w-11/12 bloque-info p-5 rounded-lg shadow-md",children:_.jsxs("table",{className:"w-full text-left",children:[_.jsx("thead",{children:_.jsxs("tr",{children:[_.jsx("th",{className:"p-2",children:"No."}),_.jsx("th",{className:"p-2",children:"Nombre"}),_.jsx("th",{className:"p-2",children:"Precio"}),_.jsx("th",{className:"p-2",children:"Retorno"})]})}),_.jsxs("tbody",{children:[_.jsxs("tr",{className:"border-t",children:[_.jsx("td",{className:"p-2",children:"01"}),_.jsx("td",{className:"p-2",children:"Lipoenzima"}),_.jsx("td",{className:"p-2",children:"$520"}),_.jsx("td",{className:"p-2 text-green-500",children:"+5%"})]}),_.jsxs("tr",{className:"border-t",children:[_.jsx("td",{className:"p-2",children:"02"}),_.jsx("td",{className:"p-2",children:"Triac"}),_.jsx("td",{className:"p-2",children:"$480"}),_.jsx("td",{className:"p-2 text-green-500",children:"+10%"})]}),_.jsxs("tr",{className:"border-t",children:[_.jsx("td",{className:"p-2",children:"03"}),_.jsx("td",{className:"p-2",children:"Lipoenzima"}),_.jsx("td",{className:"p-2",children:"$350"}),_.jsx("td",{className:"p-2 text-red-500",children:"-3%"})]}),_.jsxs("tr",{className:"border-t",children:[_.jsx("td",{className:"p-2",children:"04"}),_.jsx("td",{className:"p-2",children:"Triac"}),_.jsx("td",{className:"p-2",children:"$940"}),_.jsx("td",{className:"p-2 text-green-500",children:"+2%"})]}),_.jsxs("tr",{className:"border-t",children:[_.jsx("td",{className:"p-2",children:"05"}),_.jsx("td",{className:"p-2",children:"Lipoenzima"}),_.jsx("td",{className:"p-2",children:"$670"}),_.jsx("td",{className:"p-2 text-red-500",children:"-12%"})]})]})]})})]})]})]})}function Ev(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ev(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ye(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ev(t))&&(r&&(r+=" "),r+=e);return r}function Wr(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function F(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function no(t){if(!Wr(t)&&typeof t!="number")return!1;const e=F(t);return!isNaN(Number(e))}const DS={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"}},SS=(t,e,n)=>{let r;const i=DS[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Wc(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const CS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},MS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ES={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PS={date:Wc({formats:CS,defaultWidth:"full"}),time:Wc({formats:MS,defaultWidth:"full"}),dateTime:Wc({formats:ES,defaultWidth:"full"})},TS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},OS=(t,e,n,r)=>TS[t];function ss(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const NS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},RS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},LS={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"]},IS={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"]},FS={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"}},AS={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"}},jS=(t,e)=>{const n=Number(t),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"},zS={ordinalNumber:jS,era:ss({values:NS,defaultWidth:"wide"}),quarter:ss({values:RS,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ss({values:LS,defaultWidth:"wide"}),day:ss({values:IS,defaultWidth:"wide"}),dayPeriod:ss({values:FS,defaultWidth:"wide",formattingValues:AS,defaultFormattingWidth:"wide"})};function os(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const o=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?BS(a,d=>d.test(o)):YS(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function YS(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function BS(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function WS(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const HS=/^(\d+)(th|st|nd|rd)?/i,$S=/\d+/i,VS={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},US={any:[/^b/i,/^(a|c)/i]},QS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},KS={any:[/1/i,/2/i,/3/i,/4/i]},qS={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},XS={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]},GS={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},JS={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]},ZS={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},eC={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}},tC={ordinalNumber:WS({matchPattern:HS,parsePattern:$S,valueCallback:t=>parseInt(t,10)}),era:os({matchPatterns:VS,defaultMatchWidth:"wide",parsePatterns:US,defaultParseWidth:"any"}),quarter:os({matchPatterns:QS,defaultMatchWidth:"wide",parsePatterns:KS,defaultParseWidth:"any",valueCallback:t=>t+1}),month:os({matchPatterns:qS,defaultMatchWidth:"wide",parsePatterns:XS,defaultParseWidth:"any"}),day:os({matchPatterns:GS,defaultMatchWidth:"wide",parsePatterns:JS,defaultParseWidth:"any"}),dayPeriod:os({matchPatterns:ZS,defaultMatchWidth:"any",parsePatterns:eC,defaultParseWidth:"any"})},Pv={code:"en-US",formatDistance:SS,formatLong:PS,formatRelative:OS,localize:zS,match:tC,options:{weekStartsOn:0,firstWeekContainsDate:1}};let nC={};function Xr(){return nC}const Tv=6048e5,rC=864e5,ql=6e4,Xl=36e5,iC=1e3;function rn(t){const e=F(t);return e.setHours(0,0,0,0),e}function pl(t){const e=F(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function ro(t,e){const n=rn(t),r=rn(e),i=+n-pl(n),s=+r-pl(r);return Math.round((i-s)/rC)}function ne(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Gl(t){const e=F(t),n=ne(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function sC(t){const e=F(t);return ro(e,Gl(e))+1}function Cn(t,e){var a,l,c,u;const n=Xr(),r=(e==null?void 0:e.weekStartsOn)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=F(t),s=i.getDay(),o=(s<r?7:0)+s-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Li(t){return Cn(t,{weekStartsOn:1})}function Ov(t){const e=F(t),n=e.getFullYear(),r=ne(t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Li(r),s=ne(t,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const o=Li(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function oC(t){const e=Ov(t),n=ne(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),Li(n)}function Af(t){const e=F(t),n=+Li(e)-+oC(e);return Math.round(n/Tv)+1}function jf(t,e){var u,d,f,h;const n=F(t),r=n.getFullYear(),i=Xr(),s=(e==null?void 0:e.firstWeekContainsDate)??((d=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=ne(t,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const a=Cn(o,e),l=ne(t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const c=Cn(l,e);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function aC(t,e){var a,l,c,u;const n=Xr(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=jf(t,e),s=ne(t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Cn(s,e)}function Nv(t,e){const n=F(t),r=+Cn(n,e)-+aC(n,e);return Math.round(r/Tv)+1}function ee(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Tn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ee(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ee(n+1,2)},d(t,e){return ee(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e){return ee(t.getHours()%12||12,e.length)},H(t,e){return ee(t.getHours(),e.length)},m(t,e){return ee(t.getMinutes(),e.length)},s(t,e){return ee(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ee(i,e.length)}},Zr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mm={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){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(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tn.y(t,e)},Y:function(t,e,n,r){const i=jf(t,r),s=i>0?i:1-i;if(e==="YY"){const o=s%100;return ee(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):ee(s,e.length)},R:function(t,e){const n=Ov(t);return ee(n,e.length)},u:function(t,e){const n=t.getFullYear();return ee(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ee(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(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ee(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(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Tn.M(t,e);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(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ee(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(t,e,n,r){const i=Nv(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):ee(i,e.length)},I:function(t,e,n){const r=Af(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ee(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Tn.d(t,e)},D:function(t,e,n){const r=sC(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ee(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){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(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ee(s,2);case"eo":return n.ordinalNumber(s,{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(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ee(s,e.length);case"co":return n.ordinalNumber(s,{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(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ee(i,e.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(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,n){const r=t.getHours();let i;switch(r===12?i=Zr.noon:r===0?i=Zr.midnight:i=r/12>=1?"pm":"am",e){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(t,e,n){const r=t.getHours();let i;switch(r>=17?i=Zr.evening:r>=12?i=Zr.afternoon:r>=4?i=Zr.morning:i=Zr.night,e){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(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Tn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ee(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ee(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Tn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Tn.s(t,e)},S:function(t,e){return Tn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Pm(r);case"XXXX":case"XX":return br(r);case"XXXXX":case"XXX":default:return br(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Pm(r);case"xxxx":case"xx":return br(r);case"xxxxx":case"xxx":default:return br(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Em(r,":");case"OOOO":default:return"GMT"+br(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Em(r,":");case"zzzz":default:return"GMT"+br(r,":")}},t:function(t,e,n){const r=Math.trunc(t.getTime()/1e3);return ee(r,e.length)},T:function(t,e,n){const r=t.getTime();return ee(r,e.length)}};function Em(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+ee(s,2)}function Pm(t,e){return t%60===0?(t>0?"-":"+")+ee(Math.abs(t)/60,2):br(t,e)}function br(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=ee(Math.trunc(r/60),2),s=ee(r%60,2);return n+i+e+s}const Tm=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Rv=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},lC=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Tm(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Tm(r,e)).replace("{{time}}",Rv(i,e))},ml={p:Rv,P:lC},cC=/^D+$/,uC=/^Y+$/,dC=["D","DD","YY","YYYY"];function Lv(t){return cC.test(t)}function Iv(t){return uC.test(t)}function id(t,e,n){const r=fC(t,e,n);if(console.warn(r),dC.includes(t))throw new RangeError(r)}function fC(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const hC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mC=/^'([^]*?)'?$/,gC=/''/g,yC=/[a-zA-Z]/;function Om(t,e,n){var u,d,f,h,p,y,w,m;const r=Xr(),i=(n==null?void 0:n.locale)??r.locale??Pv,s=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((y=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((m=(w=r.locale)==null?void 0:w.options)==null?void 0:m.weekStartsOn)??0,a=F(t);if(!no(a))throw new RangeError("Invalid time value");let l=e.match(pC).map(g=>{const v=g[0];if(v==="p"||v==="P"){const b=ml[v];return b(g,i.formatLong)}return g}).join("").match(hC).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const v=g[0];if(v==="'")return{isToken:!1,value:vC(g)};if(Mm[v])return{isToken:!0,value:g};if(v.match(yC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const c={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return l.map(g=>{if(!g.isToken)return g.value;const v=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Iv(v)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Lv(v))&&id(v,e,String(t));const b=Mm[v[0]];return b(a,v,i.localize,c)}).join("")}function vC(t){const e=t.match(mC);return e?e[1].replace(gC,"'"):t}function zf(t,e){const n=+F(t);return ne(t,n+e)}function sd(t,e){return zf(t,e*ql)}function wC(t,e){return zf(t,e*Xl)}function hr(t,e){const n=F(t);return isNaN(e)?ne(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function gl(t,e){const n=e*7;return hr(t,n)}function Wt(t,e){const n=F(t);if(isNaN(e))return ne(t,NaN);if(!e)return n;const r=n.getDate(),i=ne(t,n.getTime());i.setMonth(n.getMonth()+e+1,0);const s=i.getDate();return r>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function Yf(t,e){const n=e*3;return Wt(t,n)}function xn(t,e){return Wt(t,e*12)}function xC(t,e){return hr(t,-e)}function Nm(t,e){return gl(t,-e)}function Ii(t,e){return Wt(t,-e)}function Fv(t,e){return Yf(t,-e)}function Fi(t,e){return xn(t,-e)}function _n(t){return F(t).getSeconds()}function sn(t){return F(t).getMinutes()}function on(t){return F(t).getHours()}function _C(t){return F(t).getDay()}function Rm(t){return F(t).getDate()}function Je(t){return F(t).getMonth()}function Or(t){const e=F(t);return Math.trunc(e.getMonth()/3)+1}function V(t){return F(t).getFullYear()}function od(t){return F(t).getTime()}function Da(t,e){const n=F(t);return n.setSeconds(e),n}function Sa(t,e){const n=F(t);return n.setMinutes(e),n}function Ca(t,e){const n=F(t);return n.setHours(e),n}function bC(t){const e=F(t),n=e.getFullYear(),r=e.getMonth(),i=ne(t,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Ge(t,e){const n=F(t),r=n.getFullYear(),i=n.getDate(),s=ne(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const o=bC(s);return n.setMonth(e,Math.min(i,o)),n}function ei(t,e){const n=F(t),r=Math.trunc(n.getMonth()/3)+1,i=e-r;return Ge(n,n.getMonth()+i*3)}function Xt(t,e){const n=F(t);return isNaN(+n)?ne(t,NaN):(n.setFullYear(e),n)}function Lm(t){let e;return t.forEach(n=>{const r=F(n);(!e||e>r||isNaN(+r))&&(e=r)}),e||new Date(NaN)}function Im(t){let e;return t.forEach(function(n){const r=F(n);(e===void 0||e<r||isNaN(Number(r)))&&(e=r)}),e||new Date(NaN)}function yl(t,e){const n=F(t),r=F(e),i=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return i*12+s}function vl(t,e){const n=F(t),r=F(e);return n.getFullYear()-r.getFullYear()}function wl(t,e){const n=F(t),r=F(e),i=n.getFullYear()-r.getFullYear(),s=Or(n)-Or(r);return i*4+s}function Av(t){const e=F(t);return e.setDate(1),e.setHours(0,0,0,0),e}function ad(t){const e=F(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function ld(t){const e=F(t);return e.setHours(23,59,59,999),e}function kC(t,e){var a,l;const n=Xr(),r=n.weekStartsOn??((l=(a=n.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??0,i=F(t),s=i.getDay(),o=(s<r?-7:0)+6-(s-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function DC(t){const e=F(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function jv(t){const e=F(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}function SC(t,e){const n=F(t),r=F(e);return+n==+r}function CC(t,e){const n=rn(t),r=rn(e);return+n==+r}function MC(t,e){const n=F(t),r=F(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function EC(t,e){const n=F(t),r=F(e);return n.getFullYear()===r.getFullYear()}function PC(t,e){const n=ad(t),r=ad(e);return+n==+r}function sr(t,e){const n=F(t),r=F(e);return n.getTime()>r.getTime()}function Hr(t,e){const n=F(t),r=F(e);return+n<+r}function io(t,e){const n=+F(t),[r,i]=[+F(e.start),+F(e.end)].sort((s,o)=>s-o);return n>=r&&n<=i}function TC(){return Object.assign({},Xr())}function OC(t,e){const n=e instanceof Date?ne(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const NC=10;class zv{constructor(){P(this,"subPriority",0)}validate(e,n){return!0}}class RC extends zv{constructor(e,n,r,i,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=i,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class LC extends zv{constructor(){super(...arguments);P(this,"priority",NC);P(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:ne(n,OC(n,Date))}}class Z{run(e,n,r,i){const s=this.parse(e,n,r,i);return s?{setter:new RC(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class IC extends Z{constructor(){super(...arguments);P(this,"priority",140);P(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const ke={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}/},Zt={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 De(t,e){return t&&{value:e(t.value),rest:t.rest}}function me(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function en(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Xl+s*ql+o*iC),rest:e.slice(n[0].length)}}function Yv(t){return me(ke.anyDigitsSigned,t)}function _e(t,e){switch(t){case 1:return me(ke.singleDigit,e);case 2:return me(ke.twoDigits,e);case 3:return me(ke.threeDigits,e);case 4:return me(ke.fourDigits,e);default:return me(new RegExp("^\\d{1,"+t+"}"),e)}}function xl(t,e){switch(t){case 1:return me(ke.singleDigitSigned,e);case 2:return me(ke.twoDigitsSigned,e);case 3:return me(ke.threeDigitsSigned,e);case 4:return me(ke.fourDigitsSigned,e);default:return me(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Bf(t){switch(t){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 Bv(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const s=r+50,o=Math.trunc(s/100)*100,a=t>=s%100;i=t+o-(a?100:0)}return n?i:1-i}function Wv(t){return t%400===0||t%4===0&&t%100!==0}class FC extends Z{constructor(){super(...arguments);P(this,"priority",130);P(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const s=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return De(_e(4,n),s);case"yo":return De(i.ordinalNumber(n,{unit:"year"}),s);default:return De(_e(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const s=n.getFullYear();if(i.isTwoDigitYear){const a=Bv(i.year,s);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class AC extends Z{constructor(){super(...arguments);P(this,"priority",130);P(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const s=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return De(_e(4,n),s);case"Yo":return De(i.ordinalNumber(n,{unit:"year"}),s);default:return De(_e(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,s){const o=jf(n,s);if(i.isTwoDigitYear){const l=Bv(i.year,o);return n.setFullYear(l,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),Cn(n,s)}const a=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(a,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),Cn(n,s)}}class jC extends Z{constructor(){super(...arguments);P(this,"priority",130);P(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return xl(r==="R"?4:r.length,n)}set(n,r,i){const s=ne(n,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),Li(s)}}class zC extends Z{constructor(){super(...arguments);P(this,"priority",130);P(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return xl(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class YC extends Z{constructor(){super(...arguments);P(this,"priority",120);P(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return _e(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class BC extends Z{constructor(){super(...arguments);P(this,"priority",120);P(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return _e(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class WC extends Z{constructor(){super(...arguments);P(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);P(this,"priority",110)}parse(n,r,i){const s=o=>o-1;switch(r){case"M":return De(me(ke.month,n),s);case"MM":return De(_e(2,n),s);case"Mo":return De(i.ordinalNumber(n,{unit:"month"}),s);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class HC extends Z{constructor(){super(...arguments);P(this,"priority",110);P(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const s=o=>o-1;switch(r){case"L":return De(me(ke.month,n),s);case"LL":return De(_e(2,n),s);case"Lo":return De(i.ordinalNumber(n,{unit:"month"}),s);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function $C(t,e,n){const r=F(t),i=Nv(r,n)-e;return r.setDate(r.getDate()-i*7),r}class VC extends Z{constructor(){super(...arguments);P(this,"priority",100);P(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return me(ke.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _e(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,s){return Cn($C(n,i,s),s)}}function UC(t,e){const n=F(t),r=Af(n)-e;return n.setDate(n.getDate()-r*7),n}class QC extends Z{constructor(){super(...arguments);P(this,"priority",100);P(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return me(ke.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _e(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Li(UC(n,i))}}const KC=[31,28,31,30,31,30,31,31,30,31,30,31],qC=[31,29,31,30,31,30,31,31,30,31,30,31];class XC extends Z{constructor(){super(...arguments);P(this,"priority",90);P(this,"subPriority",1);P(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return me(ke.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _e(r.length,n)}}validate(n,r){const i=n.getFullYear(),s=Wv(i),o=n.getMonth();return s?r>=1&&r<=qC[o]:r>=1&&r<=KC[o]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class GC extends Z{constructor(){super(...arguments);P(this,"priority",90);P(this,"subpriority",1);P(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return me(ke.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _e(r.length,n)}}validate(n,r){const i=n.getFullYear();return Wv(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function Wf(t,e,n){var d,f,h,p;const r=Xr(),i=(n==null?void 0:n.weekStartsOn)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??r.weekStartsOn??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,s=F(t),o=s.getDay(),l=(e%7+7)%7,c=7-i,u=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return hr(s,u)}class JC extends Z{constructor(){super(...arguments);P(this,"priority",90);P(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=Wf(n,i,s),n.setHours(0,0,0,0),n}}class ZC extends Z{constructor(){super(...arguments);P(this,"priority",90);P(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,s){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return De(_e(r.length,n),o);case"eo":return De(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=Wf(n,i,s),n.setHours(0,0,0,0),n}}class eM extends Z{constructor(){super(...arguments);P(this,"priority",90);P(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,s){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return De(_e(r.length,n),o);case"co":return De(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=Wf(n,i,s),n.setHours(0,0,0,0),n}}function tM(t){let n=F(t).getDay();return n===0&&(n=7),n}function nM(t,e){const n=F(t),r=tM(n),i=e-r;return hr(n,i)}class rM extends Z{constructor(){super(...arguments);P(this,"priority",90);P(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const s=o=>o===0?7:o;switch(r){case"i":case"ii":return _e(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return De(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return De(i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return De(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return De(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=nM(n,i),n.setHours(0,0,0,0),n}}class iM extends Z{constructor(){super(...arguments);P(this,"priority",80);P(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Bf(i),0,0,0),n}}class sM extends Z{constructor(){super(...arguments);P(this,"priority",80);P(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Bf(i),0,0,0),n}}class oM extends Z{constructor(){super(...arguments);P(this,"priority",80);P(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(Bf(i),0,0,0),n}}class aM extends Z{constructor(){super(...arguments);P(this,"priority",70);P(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return me(ke.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _e(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const s=n.getHours()>=12;return s&&i<12?n.setHours(i+12,0,0,0):!s&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class lM extends Z{constructor(){super(...arguments);P(this,"priority",70);P(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return me(ke.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _e(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class cM extends Z{constructor(){super(...arguments);P(this,"priority",70);P(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return me(ke.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _e(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class uM extends Z{constructor(){super(...arguments);P(this,"priority",70);P(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return me(ke.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _e(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const s=i<=24?i%24:i;return n.setHours(s,0,0,0),n}}class dM extends Z{constructor(){super(...arguments);P(this,"priority",60);P(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return me(ke.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _e(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class fM extends Z{constructor(){super(...arguments);P(this,"priority",50);P(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return me(ke.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _e(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class hM extends Z{constructor(){super(...arguments);P(this,"priority",30);P(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=s=>Math.trunc(s*Math.pow(10,-r.length+3));return De(_e(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class pM extends Z{constructor(){super(...arguments);P(this,"priority",10);P(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return en(Zt.basicOptionalMinutes,n);case"XX":return en(Zt.basic,n);case"XXXX":return en(Zt.basicOptionalSeconds,n);case"XXXXX":return en(Zt.extendedOptionalSeconds,n);case"XXX":default:return en(Zt.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ne(n,n.getTime()-pl(n)-i)}}class mM extends Z{constructor(){super(...arguments);P(this,"priority",10);P(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return en(Zt.basicOptionalMinutes,n);case"xx":return en(Zt.basic,n);case"xxxx":return en(Zt.basicOptionalSeconds,n);case"xxxxx":return en(Zt.extendedOptionalSeconds,n);case"xxx":default:return en(Zt.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ne(n,n.getTime()-pl(n)-i)}}class gM extends Z{constructor(){super(...arguments);P(this,"priority",40);P(this,"incompatibleTokens","*")}parse(n){return Yv(n)}set(n,r,i){return[ne(n,i*1e3),{timestampIsSet:!0}]}}class yM extends Z{constructor(){super(...arguments);P(this,"priority",20);P(this,"incompatibleTokens","*")}parse(n){return Yv(n)}set(n,r,i){return[ne(n,i),{timestampIsSet:!0}]}}const vM={G:new IC,y:new FC,Y:new AC,R:new jC,u:new zC,Q:new YC,q:new BC,M:new WC,L:new HC,w:new VC,I:new QC,d:new XC,D:new GC,E:new JC,e:new ZC,c:new eM,i:new rM,a:new iM,b:new sM,B:new oM,h:new aM,H:new lM,K:new cM,k:new uM,m:new dM,s:new fM,S:new hM,X:new pM,x:new mM,t:new gM,T:new yM},wM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_M=/^'([^]*?)'?$/,bM=/''/g,kM=/\S/,DM=/[a-zA-Z]/;function Hc(t,e,n,r){var y,w,m,g,v,b,k,C;const i=TC(),s=(r==null?void 0:r.locale)??i.locale??Pv,o=(r==null?void 0:r.firstWeekContainsDate)??((w=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(m=i.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=(r==null?void 0:r.weekStartsOn)??((b=(v=r==null?void 0:r.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??i.weekStartsOn??((C=(k=i.locale)==null?void 0:k.options)==null?void 0:C.weekStartsOn)??0;if(e==="")return t===""?F(n):ne(n,NaN);const l={firstWeekContainsDate:o,weekStartsOn:a,locale:s},c=[new LC],u=e.match(xM).map(D=>{const S=D[0];if(S in ml){const O=ml[S];return O(D,s.formatLong)}return D}).join("").match(wM),d=[];for(let D of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&Iv(D)&&id(D,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Lv(D)&&id(D,e,t);const S=D[0],O=vM[S];if(O){const{incompatibleTokens:N}=O;if(Array.isArray(N)){const A=d.find(W=>N.includes(W.token)||W.token===S);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${D}\` at the same time`)}else if(O.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);d.push({token:S,fullToken:D});const I=O.run(t,D,s.match,l);if(!I)return ne(n,NaN);c.push(I.setter),t=I.rest}else{if(S.match(DM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(D==="''"?D="'":S==="'"&&(D=SM(D)),t.indexOf(D)===0)t=t.slice(D.length);else return ne(n,NaN)}}if(t.length>0&&kM.test(t))return ne(n,NaN);const f=c.map(D=>D.priority).sort((D,S)=>S-D).filter((D,S,O)=>O.indexOf(D)===S).map(D=>c.filter(S=>S.priority===D).sort((S,O)=>O.subPriority-S.subPriority)).map(D=>D[0]);let h=F(n);if(isNaN(h.getTime()))return ne(n,NaN);const p={};for(const D of f){if(!D.validate(h,l))return ne(n,NaN);const S=D.set(h,p,l);Array.isArray(S)?(h=S[0],Object.assign(p,S[1])):h=S}return ne(n,h)}function SM(t){return t.match(_M)[1].replace(bM,"'")}function CM(t,e){const r=TM(t);let i;if(r.date){const l=OM(r.date,2);i=NM(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const s=i.getTime();let o=0,a;if(r.time&&(o=RM(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(a=LM(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(s+o),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(s+o+a)}const ta={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},MM=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,EM=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,PM=/^([+-])(\d{2})(?::?(\d{2}))?$/;function TM(t){const e={},n=t.split(ta.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],ta.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ta.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=ta.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function OM(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function NM(t,e){if(e===null)return new Date(NaN);const n=t.match(MM);if(!n)return new Date(NaN);const r=!!n[4],i=as(n[1]),s=as(n[2])-1,o=as(n[3]),a=as(n[4]),l=as(n[5])-1;if(r)return zM(e,a,l)?IM(e,a,l):new Date(NaN);{const c=new Date(0);return!AM(e,s,o)||!jM(e,i)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(i,o)),c)}}function as(t){return t?parseInt(t):1}function RM(t){const e=t.match(EM);if(!e)return NaN;const n=$c(e[1]),r=$c(e[2]),i=$c(e[3]);return YM(n,r,i)?n*Xl+r*ql+i*1e3:NaN}function $c(t){return t&&parseFloat(t.replace(",","."))||0}function LM(t){if(t==="Z")return 0;const e=t.match(PM);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return BM(r,i)?n*(r*Xl+i*ql):NaN}function IM(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,s=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const FM=[31,null,31,30,31,30,31,31,30,31,30,31];function Hv(t){return t%400===0||t%4===0&&t%100!==0}function AM(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(FM[e]||(Hv(t)?29:28))}function jM(t,e){return e>=1&&e<=(Hv(t)?366:365)}function zM(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function YM(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function BM(t,e){return e>=0&&e<=59}function WM(t,e){return zf(t,e*1e3)}function HM(t,e){let n=F(t);return isNaN(+n)?ne(t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Ge(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function $M(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,cd(t,e)}function cd(t,e){return cd=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},cd(t,e)}function VM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Fm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function UM(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function QM(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&UM(t,e,n))return!0;t=t.parentNode||t.host}return t}function KM(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var qM=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),e}};function XM(t){return t===void 0&&(t=0),function(){return++t}}var GM=XM(),ud,na={},Vc={},JM=["touchstart","touchmove"],ZM="ignore-react-onclickoutside";function Am(t,e){var n={},r=JM.indexOf(e)!==-1;return r&&ud&&(n.passive=!t.props.preventDefault),n}function Jl(t,e){var n,r,i=t.displayName||t.name||"Component";return r=n=function(s){$M(o,s);function o(l){var c;return c=s.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():Vl.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Vc[c._uid])){typeof ud>"u"&&(ud=qM()),Vc[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),na[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&KM(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;QM(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,na[c._uid],Am(Fm(c),d))})}},c.disableOnClickOutside=function(){delete Vc[c._uid];var u=na[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,u,Am(Fm(c),f))}),delete na[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=GM(),c.initTimeStamp=performance.now(),c}var a=o.prototype;return a.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var u=VM(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,R.createElement(t,u)},o}(R.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:ZM,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}function Hi(t){return $v(t)?(t.nodeName||"").toLowerCase():"#document"}function yt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function En(t){var e;return(e=($v(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function $v(t){return t instanceof Node||t instanceof yt(t).Node}function ot(t){return t instanceof Element||t instanceof yt(t).Element}function an(t){return t instanceof HTMLElement||t instanceof yt(t).HTMLElement}function jm(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof yt(t).ShadowRoot}function yo(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function eE(t){return["table","td","th"].includes(Hi(t))}function Hf(t){const e=$f(),n=Ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function tE(t){let e=or(t);for(;an(e)&&!Ai(e);){if(Hf(e))return e;e=or(e)}return null}function $f(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ai(t){return["html","body","#document"].includes(Hi(t))}function Ht(t){return yt(t).getComputedStyle(t)}function Zl(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function or(t){if(Hi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jm(t)&&t.host||En(t);return jm(e)?e.host:e}function Vv(t){const e=or(t);return Ai(e)?t.ownerDocument?t.ownerDocument.body:t.body:an(e)&&yo(e)?e:Vv(e)}function so(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Vv(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=yt(i);return s?e.concat(o,o.visualViewport||[],yo(i)?i:[],o.frameElement&&n?so(o.frameElement):[]):e.concat(i,so(i,[],n))}const ji=Math.min,Nr=Math.max,_l=Math.round,ra=Math.floor,ar=t=>({x:t,y:t}),nE={left:"right",right:"left",bottom:"top",top:"bottom"},rE={start:"end",end:"start"};function iE(t,e,n){return Nr(t,ji(e,n))}function ec(t,e){return typeof t=="function"?t(e):t}function zi(t){return t.split("-")[0]}function vo(t){return t.split("-")[1]}function sE(t){return t==="x"?"y":"x"}function Vf(t){return t==="y"?"height":"width"}function Uf(t){return["top","bottom"].includes(zi(t))?"y":"x"}function Qf(t){return sE(Uf(t))}function oE(t,e,n){n===void 0&&(n=!1);const r=vo(t),i=Qf(t),s=Vf(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=bl(o)),[o,bl(o)]}function aE(t){const e=bl(t);return[dd(t),e,dd(e)]}function dd(t){return t.replace(/start|end/g,e=>rE[e])}function lE(t,e,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?s:o;default:return[]}}function cE(t,e,n,r){const i=vo(t);let s=lE(zi(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(dd)))),s}function bl(t){return t.replace(/left|right|bottom|top/g,e=>nE[e])}function uE(t){return{top:0,right:0,bottom:0,left:0,...t}}function Uv(t){return typeof t!="number"?uE(t):{top:t,right:t,bottom:t,left:t}}function kl(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function zm(t,e,n){let{reference:r,floating:i}=t;const s=Uf(e),o=Qf(e),a=Vf(o),l=zi(e),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(vo(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const dE=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=zm(c,r,l),f=r,h={},p=0;for(let y=0;y<a.length;y++){const{name:w,fn:m}=a[y],{x:g,y:v,data:b,reset:k}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});u=g??u,d=v??d,h={...h,[w]:{...h[w],...b}},k&&p<=50&&(p++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:d}=zm(c,f,l)),y=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function fE(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=ec(e,t),p=Uv(h),w=a[f?d==="floating"?"reference":"floating":d],m=kl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=kl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:l}):g);return{top:(m.top-k.top+p.top)/b.y,bottom:(k.bottom-m.bottom+p.bottom)/b.y,left:(m.left-k.left+p.left)/b.x,right:(k.right-m.right+p.right)/b.x}}const hE=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=ec(t,e)||{};if(c==null)return{};const d=Uv(u),f={x:n,y:r},h=Qf(i),p=Vf(h),y=await o.getDimensions(c),w=h==="y",m=w?"top":"left",g=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=s.reference[p]+s.reference[h]-f[h]-s.floating[p],k=f[h]-s.reference[h],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let D=C?C[v]:0;(!D||!await(o.isElement==null?void 0:o.isElement(C)))&&(D=a.floating[v]||s.floating[p]);const S=b/2-k/2,O=D/2-y[p]/2-1,N=ji(d[m],O),I=ji(d[g],O),A=N,W=D-y[p]-I,U=D/2-y[p]/2+S,B=iE(A,U,W),K=!l.arrow&&vo(i)!=null&&U!==B&&s.reference[p]/2-(U<A?N:I)-y[p]/2<0,H=K?U<A?U-A:U-W:0;return{[h]:f[h]+H,data:{[h]:B,centerOffset:U-B-H,...K&&{alignmentOffset:H}},reset:K}}}),pE=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...w}=ec(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=zi(i),g=zi(a)===a,v=await(l.isRTL==null?void 0:l.isRTL(c.floating)),b=f||(g||!y?[bl(a)]:aE(a));!f&&p!=="none"&&b.push(...cE(a,y,p,v));const k=[a,...b],C=await fE(e,w),D=[];let S=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&D.push(C[m]),d){const A=oE(i,o,v);D.push(C[A[0]],C[A[1]])}if(S=[...S,{placement:i,overflows:D}],!D.every(A=>A<=0)){var O,N;const A=(((O=s.flip)==null?void 0:O.index)||0)+1,W=k[A];if(W)return{data:{index:A,overflows:S},reset:{placement:W}};let U=(N=S.filter(B=>B.overflows[0]<=0).sort((B,K)=>B.overflows[1]-K.overflows[1])[0])==null?void 0:N.placement;if(!U)switch(h){case"bestFit":{var I;const B=(I=S.map(K=>[K.placement,K.overflows.filter(H=>H>0).reduce((H,L)=>H+L,0)]).sort((K,H)=>K[1]-H[1])[0])==null?void 0:I[0];B&&(U=B);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}};async function mE(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=zi(n),a=vo(n),l=Uf(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=ec(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const gE=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=e,l=await mE(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}};function Qv(t){const e=Ht(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=an(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,a=_l(n)!==s||_l(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Kf(t){return ot(t)?t:t.contextElement}function bi(t){const e=Kf(t);if(!an(e))return ar(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Qv(e);let o=(s?_l(n.width):n.width)/r,a=(s?_l(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const yE=ar(0);function Kv(t){const e=yt(t);return!$f()||!e.visualViewport?yE:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function vE(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==yt(t)?!1:e}function $r(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Kf(t);let o=ar(1);e&&(r?ot(r)&&(o=bi(r)):o=bi(t));const a=vE(s,n,r)?Kv(s):ar(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=yt(s),h=r&&ot(r)?yt(r):r;let p=f,y=p.frameElement;for(;y&&r&&h!==p;){const w=bi(y),m=y.getBoundingClientRect(),g=Ht(y),v=m.left+(y.clientLeft+parseFloat(g.paddingLeft))*w.x,b=m.top+(y.clientTop+parseFloat(g.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,d*=w.y,l+=v,c+=b,p=yt(y),y=p.frameElement}}return kl({width:u,height:d,x:l,y:c})}const wE=[":popover-open",":modal"];function qf(t){return wE.some(e=>{try{return t.matches(e)}catch{return!1}})}function xE(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=En(r),a=e?qf(e.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ar(1);const u=ar(0),d=an(r);if((d||!d&&!s)&&((Hi(r)!=="body"||yo(o))&&(l=Zl(r)),an(r))){const f=$r(r);c=bi(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function _E(t){return Array.from(t.getClientRects())}function qv(t){return $r(En(t)).left+Zl(t).scrollLeft}function bE(t){const e=En(t),n=Zl(t),r=t.ownerDocument.body,i=Nr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Nr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+qv(t);const a=-n.scrollTop;return Ht(r).direction==="rtl"&&(o+=Nr(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function kE(t,e){const n=yt(t),r=En(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=$f();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function DE(t,e){const n=$r(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=an(t)?bi(t):ar(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Ym(t,e,n){let r;if(e==="viewport")r=kE(t,n);else if(e==="document")r=bE(En(t));else if(ot(e))r=DE(e,n);else{const i=Kv(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return kl(r)}function Xv(t,e){const n=or(t);return n===e||!ot(n)||Ai(n)?!1:Ht(n).position==="fixed"||Xv(n,e)}function SE(t,e){const n=e.get(t);if(n)return n;let r=so(t,[],!1).filter(a=>ot(a)&&Hi(a)!=="body"),i=null;const s=Ht(t).position==="fixed";let o=s?or(t):t;for(;ot(o)&&!Ai(o);){const a=Ht(o),l=Hf(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||yo(o)&&!l&&Xv(t,o))?r=r.filter(u=>u!==o):i=a,o=or(o)}return e.set(t,r),r}function CE(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?qf(e)?[]:SE(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=Ym(e,u,i);return c.top=Nr(d.top,c.top),c.right=ji(d.right,c.right),c.bottom=ji(d.bottom,c.bottom),c.left=Nr(d.left,c.left),c},Ym(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ME(t){const{width:e,height:n}=Qv(t);return{width:e,height:n}}function EE(t,e,n){const r=an(e),i=En(e),s=n==="fixed",o=$r(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=ar(0);if(r||!r&&!s)if((Hi(e)!=="body"||yo(i))&&(a=Zl(e)),r){const d=$r(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=qv(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function Uc(t){return Ht(t).position==="static"}function Bm(t,e){return!an(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function Gv(t,e){const n=yt(t);if(qf(t))return n;if(!an(t)){let i=or(t);for(;i&&!Ai(i);){if(ot(i)&&!Uc(i))return i;i=or(i)}return n}let r=Bm(t,e);for(;r&&eE(r)&&Uc(r);)r=Bm(r,e);return r&&Ai(r)&&Uc(r)&&!Hf(r)?n:r||tE(t)||n}const PE=async function(t){const e=this.getOffsetParent||Gv,n=this.getDimensions,r=await n(t.floating);return{reference:EE(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function TE(t){return Ht(t).direction==="rtl"}const Jv={convertOffsetParentRelativeRectToViewportRelativeRect:xE,getDocumentElement:En,getClippingRect:CE,getOffsetParent:Gv,getElementRects:PE,getClientRects:_E,getDimensions:ME,getScale:bi,isElement:ot,isRTL:TE};function OE(t,e){let n=null,r;const i=En(t);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=t.getBoundingClientRect();if(a||e(),!d||!f)return;const h=ra(u),p=ra(i.clientWidth-(c+d)),y=ra(i.clientHeight-(u+f)),w=ra(c),g={rootMargin:-h+"px "+-p+"px "+-y+"px "+-w+"px",threshold:Nr(0,ji(1,l))||1};let v=!0;function b(k){const C=k[0].intersectionRatio;if(C!==l){if(!v)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,g)}n.observe(t)}return o(!0),s}function NE(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Kf(t),u=i||s?[...c?so(c):[],...so(e)]:[];u.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const d=c&&a?OE(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(m=>{let[g]=m;g&&g.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let p,y=l?$r(t):null;l&&w();function w(){const m=$r(t);y&&(m.x!==y.x||m.y!==y.y||m.width!==y.width||m.height!==y.height)&&n(),y=m,p=requestAnimationFrame(w)}return n(),()=>{var m;u.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const RE=gE,LE=pE,Wm=hE,IE=(t,e,n)=>{const r=new Map,i={platform:Jv,...n},s={...i.platform,_c:r};return dE(t,e,{...i,platform:s})};var Ma=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Dl(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Dl(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!Dl(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Zv(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Hm(t,e){const n=Zv(t);return Math.round(e*n)/n}function $m(t){const e=R.useRef(t);return Ma(()=>{e.current=t}),e}function FE(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,d]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=R.useState(r);Dl(f,r)||h(r);const[p,y]=R.useState(null),[w,m]=R.useState(null),g=R.useCallback(H=>{H!==C.current&&(C.current=H,y(H))},[]),v=R.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),b=s||p,k=o||w,C=R.useRef(null),D=R.useRef(null),S=R.useRef(u),O=l!=null,N=$m(l),I=$m(i),A=R.useCallback(()=>{if(!C.current||!D.current)return;const H={placement:e,strategy:n,middleware:f};I.current&&(H.platform=I.current),IE(C.current,D.current,H).then(L=>{const z={...L,isPositioned:!0};W.current&&!Dl(S.current,z)&&(S.current=z,Vl.flushSync(()=>{d(z)}))})},[f,e,n,I]);Ma(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[c]);const W=R.useRef(!1);Ma(()=>(W.current=!0,()=>{W.current=!1}),[]),Ma(()=>{if(b&&(C.current=b),k&&(D.current=k),b&&k){if(N.current)return N.current(b,k,A);A()}},[b,k,A,N,O]);const U=R.useMemo(()=>({reference:C,floating:D,setReference:g,setFloating:v}),[g,v]),B=R.useMemo(()=>({reference:b,floating:k}),[b,k]),K=R.useMemo(()=>{const H={position:n,left:0,top:0};if(!B.floating)return H;const L=Hm(B.floating,u.x),z=Hm(B.floating,u.y);return a?{...H,transform:"translate("+L+"px, "+z+"px)",...Zv(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:z}},[n,a,B.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:A,refs:U,elements:B,floatingStyles:K}),[u,A,U,B,K])}const AE=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Wm({element:r.current,padding:i}).fn(n):{}:r?Wm({element:r,padding:i}).fn(n):{}}}},jE=(t,e)=>({...RE(t),options:[t,e]}),zE=(t,e)=>({...LE(t),options:[t,e]}),YE=(t,e)=>({...AE(t),options:[t,e]}),ew={...Zw},BE=ew.useInsertionEffect,WE=BE||(t=>t());function HE(t){const e=R.useRef(()=>{});return WE(()=>{e.current=t}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}var fd=typeof document<"u"?R.useLayoutEffect:R.useEffect;function hd(){return hd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hd.apply(this,arguments)}let Vm=!1,$E=0;const Um=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+$E++;function VE(){const[t,e]=R.useState(()=>Vm?Um():void 0);return fd(()=>{t==null&&e(Um())},[]),R.useEffect(()=>{Vm=!0},[]),t}const UE=ew.useId,tw=UE||VE,QE=R.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:s}},width:o=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...p}={},...y}=e,w=tw();if(!i)return null;const m=c*2,g=m/2,v=o/2*(l/-8+1),b=a/2*l/4,[k,C]=r.split("-"),D=Jv.isRTL(i),S=!!f,O=k==="top"||k==="bottom",N=u&&C==="end"?"bottom":"top";let I=u&&C==="end"?"right":"left";u&&D&&(I=C==="end"?"left":"right");const A=(s==null?void 0:s.x)!=null?u||s.x:"",W=(s==null?void 0:s.y)!=null?u||s.y:"",U=f||"M0,0"+(" H"+o)+(" L"+(o-v)+","+(a-b))+(" Q"+o/2+","+a+" "+v+","+(a-b))+" Z",B={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[k];return R.createElement("svg",hd({},y,{"aria-hidden":!0,ref:n,width:S?o:o+m,height:o,viewBox:"0 0 "+o+" "+(a>o?a:o),style:{position:"absolute",pointerEvents:"none",[I]:A,[N]:W,[k]:O||S?"100%":"calc(100% - "+m/2+"px)",transform:""+B+(h??""),...p}}),m>0&&R.createElement("path",{clipPath:"url(#"+w+")",fill:"none",stroke:d,strokeWidth:m+(f?0:1),d:U}),R.createElement("path",{stroke:m&&!f?y.fill:"none",d:U}),R.createElement("clipPath",{id:w},R.createElement("rect",{x:-g,y:g*(S?-1:1),width:o+m,height:o})))});function KE(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(i=>i!==n))||[])}}}const qE=R.createContext(null),XE=R.createContext(null),GE=()=>{var t;return((t=R.useContext(qE))==null?void 0:t.id)||null},JE=()=>R.useContext(XE);function ZE(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=tw(),s=R.useRef({}),[o]=R.useState(()=>KE()),a=GE()!=null,[l,c]=R.useState(r.reference),u=HE((h,p,y)=>{s.current.openEvent=h?p:void 0,o.emit("openchange",{open:h,event:p,reason:y,nested:a}),n==null||n(h,p,y)}),d=R.useMemo(()=>({setPositionReference:c}),[]),f=R.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return R.useMemo(()=>({dataRef:s,open:e,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[e,u,f,o,i,d])}function eP(t){t===void 0&&(t={});const{nodeId:e}=t,n=ZE({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[s,o]=R.useState(null),[a,l]=R.useState(null),u=(i==null?void 0:i.reference)||s,d=R.useRef(null),f=JE();fd(()=>{u&&(d.current=u)},[u]);const h=FE({...t,elements:{...i,...a&&{reference:a}}}),p=R.useCallback(v=>{const b=ot(v)?{getBoundingClientRect:()=>v.getBoundingClientRect(),contextElement:v}:v;l(b),h.refs.setReference(b)},[h.refs]),y=R.useCallback(v=>{(ot(v)||v===null)&&(d.current=v,o(v)),(ot(h.refs.reference.current)||h.refs.reference.current===null||v!==null&&!ot(v))&&h.refs.setReference(v)},[h.refs]),w=R.useMemo(()=>({...h.refs,setReference:y,setPositionReference:p,domReference:d}),[h.refs,y,p]),m=R.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),g=R.useMemo(()=>({...h,...r,refs:w,elements:m,nodeId:e}),[h,w,m,e,r]);return fd(()=>{r.dataRef.current.floatingContext=g;const v=f==null?void 0:f.nodesRef.current.find(b=>b.id===e);v&&(v.context=g)}),R.useMemo(()=>({...h,context:g,refs:w,elements:m}),[h,w,m,g])}/*!
  react-datepicker v6.9.0
  https://github.com/Hacker0x01/react-datepicker
  Released under the MIT License.
*/function Le(t,e,n){return e=Sl(e),rP(t,nw()?Reflect.construct(e,n||[],Sl(t).constructor):e.apply(t,n))}function nw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nw=function(){return!!t})()}function Qm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qm(Object(n),!0).forEach(function(r){x(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tP(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rw(t){var e=tP(t,"string");return typeof e=="symbol"?e:e+""}function pd(t){"@babel/helpers - typeof";return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pd(t)}function Ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Km(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rw(r.key),r)}}function Fe(t,e,n){return e&&Km(t.prototype,e),n&&Km(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function x(t,e,n){return e=rw(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oo(){return oo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},oo.apply(this,arguments)}function Ae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&md(t,e)}function Sl(t){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sl(t)}function md(t,e){return md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},md(t,e)}function nP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rP(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nP(t)}function lr(t){return iP(t)||sP(t)||oP(t)||aP()}function iP(t){if(Array.isArray(t))return gd(t)}function sP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oP(t,e){if(t){if(typeof t=="string")return gd(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gd(t,e)}}function gd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function aP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wo=12,lP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function re(t){var e=t?typeof t=="string"||t instanceof String?CM(t):F(t):new Date;return In(e)?e:null}function cP(t,e,n,r,i){var s=null,o=tr(n)||tr(Rr()),a=!0;return Array.isArray(e)?(e.forEach(function(l){var c=Hc(t,l,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(a=In(c,i)&&t===fe(c,l,n)),In(c,i)&&a&&(s=c)}),s):(s=Hc(t,e,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r?a=In(s)&&t===fe(s,e,n):In(s)||(e=e.match(lP).map(function(l){var c=l[0];if(c==="p"||c==="P"){var u=ml[c];return o?u(l,o.formatLong):c}return l}).join(""),t.length>0&&(s=Hc(t,e.slice(0,t.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),In(s)||(s=new Date(t))),In(s)&&a?s:null)}function In(t,e){return e=e||new Date("1/1/1000"),no(t)&&!Hr(t,e)}function fe(t,e,n){if(n==="en")return Om(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=tr(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Rr()&&tr(Rr())&&(r=tr(Rr())),Om(t,e,{locale:r||null,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function bt(t,e){var n=e.dateFormat,r=e.locale;return t&&fe(t,Array.isArray(n)?n[0]:n,r)||""}function uP(t,e,n){if(!t)return"";var r=bt(t,n),i=e?bt(e,n):"";return"".concat(r," - ").concat(i)}function dP(t,e){if(!(t!=null&&t.length))return"";var n=bt(t[0],e);if(t.length===1)return n;if(t.length===2){var r=bt(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}function Qc(t,e){var n=e.hour,r=n===void 0?0:n,i=e.minute,s=i===void 0?0:i,o=e.second,a=o===void 0?0:o;return Ca(Sa(Da(t,a),s),r)}function fP(t,e){return Rr()&&tr(Rr()),Af(t)}function hP(t,e){return fe(t,"ddd",e)}function pP(t){return rn(t)}function Zn(t,e,n){var r=tr(e||Rr());return Cn(t,{locale:r,weekStartsOn:n})}function er(t){return Av(t)}function ys(t){return Gl(t)}function qm(t){return ad(t)}function Xm(){return rn(re())}function mP(t){return kC(t)}function Gt(t,e){return t&&e?EC(t,e):!t&&!e}function ht(t,e){return t&&e?MC(t,e):!t&&!e}function Cl(t,e){return t&&e?PC(t,e):!t&&!e}function G(t,e){return t&&e?CC(t,e):!t&&!e}function Mr(t,e){return t&&e?SC(t,e):!t&&!e}function vs(t,e,n){var r,i=rn(e),s=ld(n);try{r=io(t,{start:i,end:s})}catch{r=!1}return r}function Rr(){var t=typeof window<"u"?window:globalThis;return t.__localeId__}function tr(t){if(typeof t=="string"){var e=typeof window<"u"?window:globalThis;return e.__localeData__?e.__localeData__[t]:null}else return t}function gP(t,e,n){return e(fe(t,"EEEE",n))}function yP(t,e){return fe(t,"EEEEEE",e)}function vP(t,e){return fe(t,"EEE",e)}function Xf(t,e){return fe(Ge(re(),t),"LLLL",e)}function iw(t,e){return fe(Ge(re(),t),"LLL",e)}function wP(t,e){return fe(ei(re(),t),"QQQ",e)}function tc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,s=e.excludeDateIntervals,o=e.includeDates,a=e.includeDateIntervals,l=e.filterDate;return nc(t,{minDate:n,maxDate:r})||i&&i.some(function(c){return G(t,c.date?c.date:c)})||s&&s.some(function(c){var u=c.start,d=c.end;return io(t,{start:u,end:d})})||o&&!o.some(function(c){return G(t,c)})||a&&!a.some(function(c){var u=c.start,d=c.end;return io(t,{start:u,end:d})})||l&&!l(re(t))||!1}function Gf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeDates,r=e.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var s=i.start,o=i.end;return io(t,{start:s,end:o})}):n&&n.some(function(i){return G(t,i.date?i.date:i)})||!1}function Ea(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,s=e.includeDates,o=e.filterDate;return nc(t,{minDate:Av(n),maxDate:DC(r)})||i&&i.some(function(a){return ht(t,a)})||s&&!s.some(function(a){return ht(t,a)})||o&&!o(re(t))||!1}function ia(t,e,n,r){var i=V(t),s=Je(t),o=V(e),a=Je(e),l=V(r);if(i===o&&i===l)return s<=n&&n<=a;if(i<o)return l===i&&s<=n||l===o&&a>=n||l<o&&l>i}function Kc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,s=e.includeDates,o=e.filterDate;return nc(t,{minDate:n,maxDate:r})||i&&i.some(function(a){return Cl(t,a)})||s&&!s.some(function(a){return Cl(t,a)})||o&&!o(re(t))||!1}function sa(t,e,n){if(!no(e)||!no(n))return!1;var r=V(e),i=V(n);return r<=t&&i>=t}function sw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,s=e.includeDates,o=e.filterDate,a=new Date(t,0,1);return nc(a,{minDate:Gl(n),maxDate:jv(r)})||i&&i.some(function(l){return Gt(a,l)})||s&&!s.some(function(l){return Gt(a,l)})||o&&!o(re(a))||!1}function oa(t,e,n,r){var i=V(t),s=Or(t),o=V(e),a=Or(e),l=V(r);if(i===o&&i===l)return s<=n&&n<=a;if(i<o)return l===i&&s<=n||l===o&&a>=n||l<o&&l>i}function nc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate;return n&&ro(t,n)<0||r&&ro(t,r)>0}function Gm(t,e){return e.some(function(n){return on(n)===on(t)&&sn(n)===sn(t)&&_n(n)===_n(t)})}function Jm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeTimes,r=e.includeTimes,i=e.filterTime;return n&&Gm(t,n)||r&&!Gm(t,r)||i&&!i(t)||!1}function Zm(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=re();i=Ca(i,on(t)),i=Sa(i,sn(t)),i=Da(i,_n(t));var s=re();s=Ca(s,on(n)),s=Sa(s,sn(n)),s=Da(s,_n(n));var o=re();o=Ca(o,on(r)),o=Sa(o,sn(r)),o=Da(o,_n(r));var a;try{a=!io(i,{start:s,end:o})}catch{a=!1}return a}function eg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=Ii(t,1);return n&&yl(n,i)>0||r&&r.every(function(s){return yl(s,i)>0})||!1}function tg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=Wt(t,1);return n&&yl(i,n)>0||r&&r.every(function(s){return yl(i,s)>0})||!1}function xP(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=Gl(t),s=Fv(i,1);return n&&wl(n,s)>0||r&&r.every(function(o){return wl(o,s)>0})||!1}function _P(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=jv(t),s=Yf(i,1);return n&&wl(s,n)>0||r&&r.every(function(o){return wl(s,o)>0})||!1}function ng(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=Fi(t,1);return n&&vl(n,i)>0||r&&r.every(function(s){return vl(s,i)>0})||!1}function bP(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.yearItemNumber,i=r===void 0?wo:r,s=ys(Fi(t,i)),o=Hn(s,i),a=o.endPeriod,l=n&&V(n);return l&&l>a||!1}function rg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=xn(t,1);return n&&vl(i,n)>0||r&&r.every(function(s){return vl(i,s)>0})||!1}function kP(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.yearItemNumber,i=r===void 0?wo:r,s=xn(t,i),o=Hn(s,i),a=o.startPeriod,l=n&&V(n);return l&&l<a||!1}function ow(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return ro(i,e)>=0});return Lm(r)}else return n?Lm(n):e}function aw(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return ro(i,e)<=0});return Im(r)}else return n?Im(n):e}function ig(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=t.length;r<i;r++){var s=t[r];if(Wr(s)){var o=fe(s,"MM.dd.yyyy"),a=n.get(o)||[];a.includes(e)||(a.push(e),n.set(o,a))}else if(pd(s)==="object"){var l=Object.keys(s),c=l[0],u=s[l[0]];if(typeof c=="string"&&u.constructor===Array)for(var d=0,f=u.length;d<f;d++){var h=fe(u[d],"MM.dd.yyyy"),p=n.get(h)||[];p.includes(c)||(p.push(c),n.set(h,p))}}}return n}function DP(t,e){return t.length!==e.length?!1:t.every(function(n,r){return n===e[r]})}function SP(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return t.forEach(function(r){var i=r.date,s=r.holidayName;if(Wr(i)){var o=fe(i,"MM.dd.yyyy"),a=n.get(o)||{};if(!("className"in a&&a.className===e&&DP(a.holidayNames,[s]))){a.className=e;var l=a.holidayNames;a.holidayNames=l?[].concat(lr(l),[s]):[s],n.set(o,a)}}}),n}function CP(t,e,n,r,i){for(var s=i.length,o=[],a=0;a<s;a++){var l=t;l=wC(l,on(i[a])),l=sd(l,sn(i[a])),l=WM(l,_n(i[a]));var c=sd(t,(n+1)*r);sr(l,e)&&Hr(l,c)&&o.push(i[a])}return o}function sg(t){return t<10?"0".concat(t):"".concat(t)}function Hn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wo,n=Math.ceil(V(t)/e)*e,r=n-(e-1);return{startPeriod:r,endPeriod:n}}function MP(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),24);return Math.round((+n-+e)/36e5)}function og(t){var e=t.getSeconds(),n=t.getMilliseconds();return F(t.getTime()-e*1e3-n)}function EP(t,e){return og(t).getTime()===og(e).getTime()}function ag(t){if(!Wr(t))throw new Error("Invalid date");var e=new Date(t);return e.setHours(0,0,0,0),e}function lg(t,e){if(!Wr(t)||!Wr(e))throw new Error("Invalid date received");var n=ag(t),r=ag(e);return Hr(n,r)}function lw(t){var e=" ";return t.key===e}function PP(t,e,n,r){for(var i=[],s=0;s<2*e+1;s++){var o=t+e-s,a=!0;n&&(a=V(n)<=o),r&&a&&(a=V(r)>=o),a&&i.push(o)}return i}var TP=function(t){function e(n){var r;Ie(this,e),r=Le(this,e,[n]),x(r,"renderOptions",function(){var a=r.props.year,l=r.state.yearsList.map(function(d){return M.createElement("div",{className:a===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),"aria-selected":a===d?"true":void 0},a===d?M.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),c=r.props.minDate?V(r.props.minDate):null,u=r.props.maxDate?V(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&l.unshift(M.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},M.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!r.state.yearsList.find(function(d){return d===c}))&&l.push(M.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},M.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l}),x(r,"onChange",function(a){r.props.onChange(a)}),x(r,"handleClickOutside",function(){r.props.onCancel()}),x(r,"shiftYears",function(a){var l=r.state.yearsList.map(function(c){return c+a});r.setState({yearsList:l})}),x(r,"incrementYears",function(){return r.shiftYears(1)}),x(r,"decrementYears",function(){return r.shiftYears(-1)});var i=n.yearDropdownItemNumber,s=n.scrollableYearDropdown,o=i||(s?10:5);return r.state={yearsList:PP(r.props.year,o,r.props.minDate,r.props.maxDate)},r.dropdownRef=R.createRef(),r}return Ae(e,t),Fe(e,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,s=i?i.find(function(o){return o.ariaSelected}):null;r.scrollTop=s?s.offsetTop+(s.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=Ye({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return M.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}])}(M.Component),OP=Jl(TP),NP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"state",{dropdownVisible:!1}),x(n,"renderSelectOptions",function(){for(var o=n.props.minDate?V(n.props.minDate):1900,a=n.props.maxDate?V(n.props.maxDate):2100,l=[],c=o;c<=a;c++)l.push(M.createElement("option",{key:c,value:c},c));return l}),x(n,"onSelectChange",function(o){n.onChange(o.target.value)}),x(n,"renderSelectMode",function(){return M.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())}),x(n,"renderReadView",function(o){return M.createElement("div",{key:"read",style:{visibility:o?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return n.toggleDropdown(l)}},M.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),M.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))}),x(n,"renderDropdown",function(){return M.createElement(OP,{key:"dropdown",year:n.props.year,onChange:n.onChange,onCancel:n.toggleDropdown,minDate:n.props.minDate,maxDate:n.props.maxDate,scrollableYearDropdown:n.props.scrollableYearDropdown,yearDropdownItemNumber:n.props.yearDropdownItemNumber})}),x(n,"renderScrollMode",function(){var o=n.state.dropdownVisible,a=[n.renderReadView(!o)];return o&&a.unshift(n.renderDropdown()),a}),x(n,"onChange",function(o){n.toggleDropdown(),o!==n.props.year&&n.props.onChange(o)}),x(n,"toggleDropdown",function(o){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,o)})}),x(n,"handleYearChange",function(o,a){n.onSelect(o,a),n.setOpen()}),x(n,"onSelect",function(o,a){n.props.onSelect&&n.props.onSelect(o,a)}),x(n,"setOpen",function(){n.props.setOpen&&n.props.setOpen(!0)}),n}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode();break}return M.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}])}(M.Component),RP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"isSelectedMonth",function(o){return n.props.month===o}),x(n,"renderOptions",function(){return n.props.monthNames.map(function(o,a){return M.createElement("div",{className:n.isSelectedMonth(a)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:o,onClick:n.onChange.bind(n,a),"aria-selected":n.isSelectedMonth(a)?"true":void 0},n.isSelectedMonth(a)?M.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",o)})}),x(n,"onChange",function(o){return n.props.onChange(o)}),x(n,"handleClickOutside",function(){return n.props.onCancel()}),n}return Ae(e,t),Fe(e,[{key:"render",value:function(){return M.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}])}(M.Component),LP=Jl(RP),IP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"state",{dropdownVisible:!1}),x(n,"renderSelectOptions",function(o){return o.map(function(a,l){return M.createElement("option",{key:l,value:l},a)})}),x(n,"renderSelectMode",function(o){return M.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(l){return n.onChange(l.target.value)}},n.renderSelectOptions(o))}),x(n,"renderReadView",function(o,a){return M.createElement("div",{key:"read",style:{visibility:o?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},M.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),M.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},a[n.props.month]))}),x(n,"renderDropdown",function(o){return M.createElement(LP,{key:"dropdown",month:n.props.month,monthNames:o,onChange:n.onChange,onCancel:n.toggleDropdown})}),x(n,"renderScrollMode",function(o){var a=n.state.dropdownVisible,l=[n.renderReadView(!a,o)];return a&&l.unshift(n.renderDropdown(o)),l}),x(n,"onChange",function(o){n.toggleDropdown(),o!==n.props.month&&n.props.onChange(o)}),x(n,"toggleDropdown",function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})}),n}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r=this,i=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return iw(o,r.props.locale)}:function(o){return Xf(o,r.props.locale)}),s;switch(this.props.dropdownMode){case"scroll":s=this.renderScrollMode(i);break;case"select":s=this.renderSelectMode(i);break}return M.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},s)}}])}(M.Component);function FP(t,e){for(var n=[],r=er(t),i=er(e);!sr(r,i);)n.push(re(r)),r=Wt(r,1);return n}var AP=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),x(r,"renderOptions",function(){return r.state.monthYearsList.map(function(i){var s=od(i),o=Gt(r.props.date,i)&&ht(r.props.date,i);return M.createElement("div",{className:o?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:r.onChange.bind(r,s),"aria-selected":o?"true":void 0},o?M.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",fe(i,r.props.dateFormat,r.props.locale))})}),x(r,"onChange",function(i){return r.props.onChange(i)}),x(r,"handleClickOutside",function(){r.props.onCancel()}),r.state={monthYearsList:FP(r.props.minDate,r.props.maxDate)},r}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r=Ye({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return M.createElement("div",{className:r},this.renderOptions())}}])}(M.Component),jP=Jl(AP),zP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"state",{dropdownVisible:!1}),x(n,"renderSelectOptions",function(){for(var o=er(n.props.minDate),a=er(n.props.maxDate),l=[];!sr(o,a);){var c=od(o);l.push(M.createElement("option",{key:c,value:c},fe(o,n.props.dateFormat,n.props.locale))),o=Wt(o,1)}return l}),x(n,"onSelectChange",function(o){n.onChange(o.target.value)}),x(n,"renderSelectMode",function(){return M.createElement("select",{value:od(er(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())}),x(n,"renderReadView",function(o){var a=fe(n.props.date,n.props.dateFormat,n.props.locale);return M.createElement("div",{key:"read",style:{visibility:o?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return n.toggleDropdown(c)}},M.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),M.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},a))}),x(n,"renderDropdown",function(){return M.createElement(jP,{key:"dropdown",date:n.props.date,dateFormat:n.props.dateFormat,onChange:n.onChange,onCancel:n.toggleDropdown,minDate:n.props.minDate,maxDate:n.props.maxDate,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown,locale:n.props.locale})}),x(n,"renderScrollMode",function(){var o=n.state.dropdownVisible,a=[n.renderReadView(!o)];return o&&a.unshift(n.renderDropdown()),a}),x(n,"onChange",function(o){n.toggleDropdown();var a=re(parseInt(o));Gt(n.props.date,a)&&ht(n.props.date,a)||n.props.onChange(a)}),x(n,"toggleDropdown",function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})}),n}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode();break}return M.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}])}(M.Component),YP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"dayEl",M.createRef()),x(n,"handleClick",function(o){!n.isDisabled()&&n.props.onClick&&n.props.onClick(o)}),x(n,"handleMouseEnter",function(o){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(o)}),x(n,"handleOnKeyDown",function(o){var a=o.key;a===" "&&(o.preventDefault(),o.key="Enter"),n.props.handleOnKeyDown(o)}),x(n,"isSameDay",function(o){return G(n.props.day,o)}),x(n,"isKeyboardSelected",function(){var o;if(n.props.disabledKeyboardNavigation)return!1;var a=n.props.selectsMultiple?(o=n.props.selectedDates)===null||o===void 0?void 0:o.some(function(l){return n.isSameDayOrWeek(l)}):n.isSameDayOrWeek(n.props.selected);return!a&&n.isSameDayOrWeek(n.props.preSelection)}),x(n,"isDisabled",function(){return tc(n.props.day,n.props)}),x(n,"isExcluded",function(){return Gf(n.props.day,n.props)}),x(n,"isStartOfWeek",function(){return G(n.props.day,Zn(n.props.day,n.props.locale,n.props.calendarStartDay))}),x(n,"isSameWeek",function(o){return n.props.showWeekPicker&&G(o,Zn(n.props.day,n.props.locale,n.props.calendarStartDay))}),x(n,"isSameDayOrWeek",function(o){return n.isSameDay(o)||n.isSameWeek(o)}),x(n,"getHighLightedClass",function(){var o=n.props,a=o.day,l=o.highlightDates;if(!l)return!1;var c=fe(a,"MM.dd.yyyy");return l.get(c)}),x(n,"getHolidaysClass",function(){var o=n.props,a=o.day,l=o.holidays;if(!l)return!1;var c=fe(a,"MM.dd.yyyy");if(l.has(c))return[l.get(c).className]}),x(n,"isInRange",function(){var o=n.props,a=o.day,l=o.startDate,c=o.endDate;return!l||!c?!1:vs(a,l,c)}),x(n,"isInSelectingRange",function(){var o,a=n.props,l=a.day,c=a.selectsStart,u=a.selectsEnd,d=a.selectsRange,f=a.selectsDisabledDaysInRange,h=a.startDate,p=a.endDate,y=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return!(c||u||d)||!y||!f&&n.isDisabled()?!1:c&&p&&(Hr(y,p)||Mr(y,p))?vs(l,y,p):u&&h&&(sr(y,h)||Mr(y,h))||d&&h&&!p&&(sr(y,h)||Mr(y,h))?vs(l,h,y):!1}),x(n,"isSelectingRangeStart",function(){var o;if(!n.isInSelectingRange())return!1;var a=n.props,l=a.day,c=a.startDate,u=a.selectsStart,d=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return u?G(l,d):G(l,c)}),x(n,"isSelectingRangeEnd",function(){var o;if(!n.isInSelectingRange())return!1;var a=n.props,l=a.day,c=a.endDate,u=a.selectsEnd,d=a.selectsRange,f=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return u||d?G(l,f):G(l,c)}),x(n,"isRangeStart",function(){var o=n.props,a=o.day,l=o.startDate,c=o.endDate;return!l||!c?!1:G(l,a)}),x(n,"isRangeEnd",function(){var o=n.props,a=o.day,l=o.startDate,c=o.endDate;return!l||!c?!1:G(c,a)}),x(n,"isWeekend",function(){var o=_C(n.props.day);return o===0||o===6}),x(n,"isAfterMonth",function(){return n.props.month!==void 0&&(n.props.month+1)%12===Je(n.props.day)}),x(n,"isBeforeMonth",function(){return n.props.month!==void 0&&(Je(n.props.day)+1)%12===n.props.month}),x(n,"isCurrentDay",function(){return n.isSameDay(re())}),x(n,"isSelected",function(){if(n.props.selectsMultiple){var o;return(o=n.props.selectedDates)===null||o===void 0?void 0:o.some(function(a){return n.isSameDayOrWeek(a)})}return n.isSameDayOrWeek(n.props.selected)}),x(n,"getClassNames",function(o){var a=n.props.dayClassName?n.props.dayClassName(o):void 0;return Ye("react-datepicker__day",a,"react-datepicker__day--"+hP(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass("react-datepicker__day--highlighted"),n.getHolidaysClass())}),x(n,"getAriaLabel",function(){var o=n.props,a=o.day,l=o.ariaLabelPrefixWhenEnabled,c=l===void 0?"Choose":l,u=o.ariaLabelPrefixWhenDisabled,d=u===void 0?"Not available":u,f=n.isDisabled()||n.isExcluded()?d:c;return"".concat(f," ").concat(fe(a,"PPPP",n.props.locale))}),x(n,"getTitle",function(){var o=n.props,a=o.day,l=o.holidays,c=l===void 0?new Map:l,u=o.excludeDates,d=fe(a,"MM.dd.yyyy"),f=[];return c.has(d)&&f.push.apply(f,lr(c.get(d).holidayNames)),n.isExcluded()&&f.push(u==null?void 0:u.filter(function(h){return G(h.date?h.date:h,a)}).map(function(h){return h.message})),f.join(", ")}),x(n,"getTabIndex",function(o,a){var l=o||n.props.selected,c=a||n.props.preSelection,u=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(l)&&G(c,l))?0:-1;return u}),x(n,"handleFocusDay",function(){var o,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;n.getTabIndex()===0&&!a.isInputFocused&&n.isSameDay(n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(l=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(l=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0),n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()&&(l=!1),n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()&&(l=!1)),l&&((o=n.dayEl.current)===null||o===void 0||o.focus({preventScroll:!0}))}),x(n,"renderDayContents",function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(Rm(n.props.day),n.props.day):Rm(n.props.day)}),x(n,"render",function(){return M.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&M.createElement("span",{className:"overlay"},n.getTitle()))}),n}return Ae(e,t),Fe(e,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}])}(M.Component),BP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"weekNumberEl",M.createRef()),x(n,"handleClick",function(o){n.props.onClick&&n.props.onClick(o)}),x(n,"handleOnKeyDown",function(o){var a=o.key;a===" "&&(o.preventDefault(),o.key="Enter"),n.props.handleOnKeyDown(o)}),x(n,"isKeyboardSelected",function(){return!n.props.disabledKeyboardNavigation&&!G(n.props.date,n.props.selected)&&G(n.props.date,n.props.preSelection)}),x(n,"getTabIndex",function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||G(n.props.date,n.props.selected)&&G(n.props.preSelection,n.props.selected))?0:-1}),x(n,"handleFocusWeekNumber",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=!1;n.getTabIndex()===0&&!o.isInputFocused&&G(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(a=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(a=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(a=!0)),a&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})}),n}return Ae(e,t),Fe(e,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,i=r.weekNumber,s=r.ariaLabelPrefix,o=s===void 0?"week ":s,a=r.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a,"react-datepicker__week-number--selected":!!a&&G(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{ref:this.weekNumberEl,className:Ye(l),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}])}(M.Component),WP=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"handleDayClick",function(o,a){n.props.onDayClick&&n.props.onDayClick(o,a)}),x(n,"handleDayMouseEnter",function(o){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(o)}),x(n,"handleWeekClick",function(o,a,l){typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(o,a,l),n.props.showWeekPicker&&n.handleDayClick(o,l),n.props.shouldCloseOnSelect&&n.props.setOpen(!1)}),x(n,"formatWeekNumber",function(o){return n.props.formatWeekNumber?n.props.formatWeekNumber(o):fP(o)}),x(n,"renderDays",function(){var o=n.startOfWeek(),a=[],l=n.formatWeekNumber(o);if(n.props.showWeekNumber){var c=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,o,l):void 0;a.push(M.createElement(BP,{key:"W",weekNumber:l,date:o,onClick:c,selected:n.props.selected,preSelection:n.props.preSelection,ariaLabelPrefix:n.props.ariaLabelPrefix,showWeekPicker:n.props.showWeekPicker,showWeekNumber:n.props.showWeekNumber,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,handleOnKeyDown:n.props.handleOnKeyDown,isInputFocused:n.props.isInputFocused,containerRef:n.props.containerRef}))}return a.concat([0,1,2,3,4,5,6].map(function(u){var d=hr(o,u);return M.createElement(YP,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:d.valueOf(),day:d,month:n.props.month,onClick:n.handleDayClick.bind(n,d),usePointerEvent:n.props.usePointerEvent,onMouseEnter:n.handleDayMouseEnter.bind(n,d),minDate:n.props.minDate,maxDate:n.props.maxDate,calendarStartDay:n.props.calendarStartDay,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.props.selectingDate,filterDate:n.props.filterDate,preSelection:n.props.preSelection,selected:n.props.selected,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,showWeekPicker:n.props.showWeekPicker,showWeekNumber:n.props.showWeekNumber,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,selectsMultiple:n.props.selectsMultiple,selectedDates:n.props.selectedDates,startDate:n.props.startDate,endDate:n.props.endDate,dayClassName:n.props.dayClassName,renderDayContents:n.props.renderDayContents,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,handleOnKeyDown:n.props.handleOnKeyDown,isInputFocused:n.props.isInputFocused,containerRef:n.props.containerRef,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:n.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:n.props.monthShowsDuplicateDaysStart,locale:n.props.locale})}))}),x(n,"startOfWeek",function(){return Zn(n.props.day,n.props.locale,n.props.calendarStartDay)}),x(n,"isKeyboardSelected",function(){return!n.props.disabledKeyboardNavigation&&!G(n.startOfWeek(),n.props.selected)&&G(n.startOfWeek(),n.props.preSelection)}),n}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":G(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{className:Ye(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}])}(M.Component),HP=6,ki={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},qc=x(x(x({},ki.TWO_COLUMNS,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),ki.THREE_COLUMNS,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),ki.FOUR_COLUMNS,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4}),aa=1;function cg(t,e){return t?ki.FOUR_COLUMNS:e?ki.TWO_COLUMNS:ki.THREE_COLUMNS}var $P=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"MONTH_REFS",lr(Array(12)).map(function(){return M.createRef()})),x(n,"QUARTER_REFS",lr(Array(4)).map(function(){return M.createRef()})),x(n,"isDisabled",function(o){return tc(o,n.props)}),x(n,"isExcluded",function(o){return Gf(o,n.props)}),x(n,"handleDayClick",function(o,a){n.props.onDayClick&&n.props.onDayClick(o,a,n.props.orderInDisplay)}),x(n,"handleDayMouseEnter",function(o){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(o)}),x(n,"handleMouseLeave",function(){n.props.onMouseLeave&&n.props.onMouseLeave()}),x(n,"isRangeStartMonth",function(o){var a=n.props,l=a.day,c=a.startDate,u=a.endDate;return!c||!u?!1:ht(Ge(l,o),c)}),x(n,"isRangeStartQuarter",function(o){var a=n.props,l=a.day,c=a.startDate,u=a.endDate;return!c||!u?!1:Cl(ei(l,o),c)}),x(n,"isRangeEndMonth",function(o){var a=n.props,l=a.day,c=a.startDate,u=a.endDate;return!c||!u?!1:ht(Ge(l,o),u)}),x(n,"isRangeEndQuarter",function(o){var a=n.props,l=a.day,c=a.startDate,u=a.endDate;return!c||!u?!1:Cl(ei(l,o),u)}),x(n,"isInSelectingRangeMonth",function(o){var a,l=n.props,c=l.day,u=l.selectsStart,d=l.selectsEnd,f=l.selectsRange,h=l.startDate,p=l.endDate,y=(a=n.props.selectingDate)!==null&&a!==void 0?a:n.props.preSelection;return!(u||d||f)||!y?!1:u&&p?ia(y,p,o,c):d&&h||f&&h&&!p?ia(h,y,o,c):!1}),x(n,"isSelectingMonthRangeStart",function(o){var a;if(!n.isInSelectingRangeMonth(o))return!1;var l=n.props,c=l.day,u=l.startDate,d=l.selectsStart,f=Ge(c,o),h=(a=n.props.selectingDate)!==null&&a!==void 0?a:n.props.preSelection;return d?ht(f,h):ht(f,u)}),x(n,"isSelectingMonthRangeEnd",function(o){var a;if(!n.isInSelectingRangeMonth(o))return!1;var l=n.props,c=l.day,u=l.endDate,d=l.selectsEnd,f=l.selectsRange,h=Ge(c,o),p=(a=n.props.selectingDate)!==null&&a!==void 0?a:n.props.preSelection;return d||f?ht(h,p):ht(h,u)}),x(n,"isInSelectingRangeQuarter",function(o){var a,l=n.props,c=l.day,u=l.selectsStart,d=l.selectsEnd,f=l.selectsRange,h=l.startDate,p=l.endDate,y=(a=n.props.selectingDate)!==null&&a!==void 0?a:n.props.preSelection;return!(u||d||f)||!y?!1:u&&p?oa(y,p,o,c):d&&h||f&&h&&!p?oa(h,y,o,c):!1}),x(n,"isWeekInMonth",function(o){var a=n.props.day,l=hr(o,6);return ht(o,a)||ht(l,a)}),x(n,"isCurrentMonth",function(o,a){return V(o)===V(re())&&a===Je(re())}),x(n,"isCurrentQuarter",function(o,a){return V(o)===V(re())&&a===Or(re())}),x(n,"isSelectedMonth",function(o,a,l){return Je(l)===a&&V(o)===V(l)}),x(n,"isSelectedQuarter",function(o,a,l){return Or(o)===a&&V(o)===V(l)}),x(n,"renderWeeks",function(){for(var o=[],a=n.props.fixedHeight,l=0,c=!1,u=Zn(er(n.props.day),n.props.locale,n.props.calendarStartDay),d=n.props.showWeekPicker?Zn(n.props.selected,n.props.locale,n.props.calendarStartDay):n.props.selected,f=n.props.showWeekPicker?Zn(n.props.preSelection,n.props.locale,n.props.calendarStartDay):n.props.preSelection;o.push(M.createElement(WP,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,key:l,day:u,month:Je(n.props.day),onDayClick:n.handleDayClick,usePointerEvent:n.props.usePointerEvent,onDayMouseEnter:n.handleDayMouseEnter,onWeekSelect:n.props.onWeekSelect,formatWeekNumber:n.props.formatWeekNumber,locale:n.props.locale,minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.props.selectingDate,filterDate:n.props.filterDate,preSelection:f,selected:d,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,selectsMultiple:n.props.selectsMultiple,selectedDates:n.props.selectedDates,showWeekNumber:n.props.showWeekNumbers,showWeekPicker:n.props.showWeekPicker,startDate:n.props.startDate,endDate:n.props.endDate,dayClassName:n.props.dayClassName,setOpen:n.props.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,renderDayContents:n.props.renderDayContents,handleOnKeyDown:n.props.handleOnKeyDown,isInputFocused:n.props.isInputFocused,containerRef:n.props.containerRef,calendarStartDay:n.props.calendarStartDay,monthShowsDuplicateDaysEnd:n.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:n.props.monthShowsDuplicateDaysStart})),!c;){l++,u=gl(u,1);var h=a&&l>=HP,p=!a&&!n.isWeekInMonth(u);if(h||p)if(n.props.peekNextMonth)c=!0;else break}return o}),x(n,"onMonthClick",function(o,a){var l=Ge(n.props.day,a);Ea(l,n.props)||n.handleDayClick(er(l),o)}),x(n,"onMonthMouseEnter",function(o){var a=Ge(n.props.day,o);Ea(a,n.props)||n.handleDayMouseEnter(er(a))}),x(n,"handleMonthNavigation",function(o,a){n.isDisabled(a)||n.isExcluded(a)||(n.props.setPreSelection(a),n.MONTH_REFS[o].current&&n.MONTH_REFS[o].current.focus())}),x(n,"onMonthKeyDown",function(o,a){var l=n.props,c=l.selected,u=l.preSelection,d=l.disabledKeyboardNavigation,f=l.showTwoColumnMonthYearPicker,h=l.showFourColumnMonthYearPicker,p=l.setPreSelection,y=l.handleOnMonthKeyDown,w=o.key;if(w!=="Tab"&&o.preventDefault(),!d){var m=cg(h,f),g=qc[m].verticalNavigationOffset,v=qc[m].grid;switch(w){case"Enter":n.onMonthClick(o,a),p(c);break;case"ArrowRight":n.handleMonthNavigation(a===11?0:a+aa,Wt(u,aa));break;case"ArrowLeft":n.handleMonthNavigation(a===0?11:a-aa,Ii(u,aa));break;case"ArrowUp":n.handleMonthNavigation(v[0].includes(a)?a+12-g:a-g,Ii(u,g));break;case"ArrowDown":n.handleMonthNavigation(v[v.length-1].includes(a)?a-12+g:a+g,Wt(u,g));break}}y&&y(o)}),x(n,"onQuarterClick",function(o,a){var l=ei(n.props.day,a);Kc(l,n.props)||n.handleDayClick(qm(l),o)}),x(n,"onQuarterMouseEnter",function(o){var a=ei(n.props.day,o);Kc(a,n.props)||n.handleDayMouseEnter(qm(a))}),x(n,"handleQuarterNavigation",function(o,a){n.isDisabled(a)||n.isExcluded(a)||(n.props.setPreSelection(a),n.QUARTER_REFS[o-1].current&&n.QUARTER_REFS[o-1].current.focus())}),x(n,"onQuarterKeyDown",function(o,a){var l=o.key;if(!n.props.disabledKeyboardNavigation)switch(l){case"Enter":n.onQuarterClick(o,a),n.props.setPreSelection(n.props.selected);break;case"ArrowRight":n.handleQuarterNavigation(a===4?1:a+1,Yf(n.props.preSelection,1));break;case"ArrowLeft":n.handleQuarterNavigation(a===1?4:a-1,Fv(n.props.preSelection,1));break}}),x(n,"isMonthDisabled",function(o){var a=n.props,l=a.day,c=a.minDate,u=a.maxDate,d=a.excludeDates,f=a.includeDates,h=Ge(l,o);return(c||u||d||f)&&Ea(h,n.props)}),x(n,"getMonthClassNames",function(o){var a=n.props,l=a.day,c=a.startDate,u=a.endDate,d=a.selected,f=a.preSelection,h=a.monthClassName,p=h?h(Ge(l,o)):void 0;return Ye("react-datepicker__month-text","react-datepicker__month-".concat(o),p,{"react-datepicker__month-text--disabled":n.isMonthDisabled(o),"react-datepicker__month-text--selected":n.isSelectedMonth(l,o,d),"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&n.isSelectedMonth(l,o,f),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(o),"react-datepicker__month-text--in-range":ia(c,u,o,l),"react-datepicker__month-text--range-start":n.isRangeStartMonth(o),"react-datepicker__month-text--range-end":n.isRangeEndMonth(o),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(o),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(o),"react-datepicker__month-text--today":n.isCurrentMonth(l,o)})}),x(n,"getTabIndex",function(o){var a=Je(n.props.preSelection),l=!n.props.disabledKeyboardNavigation&&o===a?"0":"-1";return l}),x(n,"getQuarterTabIndex",function(o){var a=Or(n.props.preSelection),l=!n.props.disabledKeyboardNavigation&&o===a?"0":"-1";return l}),x(n,"getAriaLabel",function(o){var a=n.props,l=a.chooseDayAriaLabelPrefix,c=l===void 0?"Choose":l,u=a.disabledDayAriaLabelPrefix,d=u===void 0?"Not available":u,f=a.day,h=a.locale,p=Ge(f,o),y=n.isDisabled(p)||n.isExcluded(p)?d:c;return"".concat(y," ").concat(fe(p,"MMMM yyyy",h))}),x(n,"getQuarterClassNames",function(o){var a=n.props,l=a.day,c=a.startDate,u=a.endDate,d=a.selected,f=a.minDate,h=a.maxDate,p=a.preSelection,y=a.disabledKeyboardNavigation;return Ye("react-datepicker__quarter-text","react-datepicker__quarter-".concat(o),{"react-datepicker__quarter-text--disabled":(f||h)&&Kc(ei(l,o),n.props),"react-datepicker__quarter-text--selected":n.isSelectedQuarter(l,o,d),"react-datepicker__quarter-text--keyboard-selected":!y&&n.isSelectedQuarter(l,o,p),"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(o),"react-datepicker__quarter-text--in-range":oa(c,u,o,l),"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(o),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(o)})}),x(n,"getMonthContent",function(o){var a=n.props,l=a.showFullMonthYearPicker,c=a.renderMonthContent,u=a.locale,d=a.day,f=iw(o,u),h=Xf(o,u);return c?c(o,f,h,d):l?h:f}),x(n,"getQuarterContent",function(o){var a=n.props,l=a.renderQuarterContent,c=a.locale,u=wP(o,c);return l?l(o,u):u}),x(n,"renderMonths",function(){var o=n.props,a=o.showTwoColumnMonthYearPicker,l=o.showFourColumnMonthYearPicker,c=o.day,u=o.selected,d=qc[cg(l,a)].grid;return d.map(function(f,h){return M.createElement("div",{className:"react-datepicker__month-wrapper",key:h},f.map(function(p,y){return M.createElement("div",{ref:n.MONTH_REFS[p],key:y,onClick:function(m){n.onMonthClick(m,p)},onKeyDown:function(m){lw(m)&&(m.preventDefault(),m.key="Enter"),n.onMonthKeyDown(m,p)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(p)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(p)}:void 0,tabIndex:n.getTabIndex(p),className:n.getMonthClassNames(p),"aria-disabled":n.isMonthDisabled(p),role:"option","aria-label":n.getAriaLabel(p),"aria-current":n.isCurrentMonth(c,p)?"date":void 0,"aria-selected":n.isSelectedMonth(c,p,u)},n.getMonthContent(p))}))})}),x(n,"renderQuarters",function(){var o=n.props,a=o.day,l=o.selected,c=[1,2,3,4];return M.createElement("div",{className:"react-datepicker__quarter-wrapper"},c.map(function(u,d){return M.createElement("div",{key:d,ref:n.QUARTER_REFS[d],role:"option",onClick:function(h){n.onQuarterClick(h,u)},onKeyDown:function(h){n.onQuarterKeyDown(h,u)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(u)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(u)}:void 0,className:n.getQuarterClassNames(u),"aria-selected":n.isSelectedQuarter(a,u,l),tabIndex:n.getQuarterTabIndex(u),"aria-current":n.isCurrentQuarter(a,u)?"date":void 0},n.getQuarterContent(u))}))}),x(n,"getClassNames",function(){var o=n.props,a=o.selectingDate,l=o.selectsStart,c=o.selectsEnd,u=o.showMonthYearPicker,d=o.showQuarterYearPicker,f=o.showWeekPicker;return Ye("react-datepicker__month",{"react-datepicker__month--selecting-range":a&&(l||c)},{"react-datepicker__monthPicker":u},{"react-datepicker__quarterPicker":d},{"react-datepicker__weekPicker":f})}),n}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,s=r.showQuarterYearPicker,o=r.day,a=r.ariaLabelPrefix,l=a===void 0?"Month ":a,c=l?l.trim()+" ":"";return M.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(fe(o,"MMMM, yyyy",this.props.locale)),role:"listbox"},i?this.renderMonths():s?this.renderQuarters():this.renderWeeks())}}])}(M.Component),cw=function(t){function e(){var n;Ie(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Le(this,e,[].concat(i)),x(n,"state",{height:null}),x(n,"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){n.list&&(n.list.scrollTop=n.centerLi&&e.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-n.header.clientHeight:n.list.clientHeight,n.centerLi))})}),x(n,"handleClick",function(o){(n.props.minTime||n.props.maxTime)&&Zm(o,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Jm(o,n.props)||n.props.onChange(o)}),x(n,"isSelectedTime",function(o){return n.props.selected&&EP(n.props.selected,o)}),x(n,"isDisabledTime",function(o){return(n.props.minTime||n.props.maxTime)&&Zm(o,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Jm(o,n.props)}),x(n,"liClasses",function(o){var a=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(o):void 0];return n.isSelectedTime(o)&&a.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(o)&&a.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(on(o)*3600+sn(o)*60+_n(o))%(n.props.intervals*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")}),x(n,"handleOnKeyDown",function(o,a){o.key===" "&&(o.preventDefault(),o.key="Enter"),(o.key==="ArrowUp"||o.key==="ArrowLeft")&&o.target.previousSibling&&(o.preventDefault(),o.target.previousSibling.focus()),(o.key==="ArrowDown"||o.key==="ArrowRight")&&o.target.nextSibling&&(o.preventDefault(),o.target.nextSibling.focus()),o.key==="Enter"&&n.handleClick(a),n.props.handleOnKeyDown(o)}),x(n,"renderTimes",function(){for(var o=[],a=n.props.format?n.props.format:"p",l=n.props.intervals,c=n.props.selected||n.props.openToDate||re(),u=pP(c),d=n.props.injectTimes&&n.props.injectTimes.sort(function(g,v){return g-v}),f=60*MP(c),h=f/l,p=0;p<h;p++){var y=sd(u,p*l);if(o.push(y),d){var w=CP(u,y,p,l,d);o=o.concat(w)}}var m=o.reduce(function(g,v){return v.getTime()<=c.getTime()?v:g},o[0]);return o.map(function(g,v){return M.createElement("li",{key:v,onClick:n.handleClick.bind(n,g),className:n.liClasses(g),ref:function(k){g===m&&(n.centerLi=k)},onKeyDown:function(k){n.handleOnKeyDown(k,g)},tabIndex:g===m?0:-1,role:"option","aria-selected":n.isSelectedTime(g)?"true":void 0,"aria-disabled":n.isDisabledTime(g)?"true":void 0},fe(g,a,n.props.locale))})}),n}return Ae(e,t),Fe(e,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),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 M.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},M.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}},M.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),M.createElement("div",{className:"react-datepicker__time"},M.createElement("div",{className:"react-datepicker__time-box"},M.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"}}}])}(M.Component);x(cw,"calcCenterPosition",function(t,e){return e.offsetTop-(t/2-e.clientHeight/2)});var ug=3,VP=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),x(r,"YEAR_REFS",lr(Array(r.props.yearItemNumber)).map(function(){return M.createRef()})),x(r,"isDisabled",function(i){return tc(i,r.props)}),x(r,"isExcluded",function(i){return Gf(i,r.props)}),x(r,"selectingDate",function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection}),x(r,"updateFocusOnPaginate",function(i){var s=(function(){this.YEAR_REFS[i].current.focus()}).bind(r);window.requestAnimationFrame(s)}),x(r,"handleYearClick",function(i,s){r.props.onDayClick&&r.props.onDayClick(i,s)}),x(r,"handleYearNavigation",function(i,s){var o=r.props,a=o.date,l=o.yearItemNumber,c=Hn(a,l),u=c.startPeriod;r.isDisabled(s)||r.isExcluded(s)||(r.props.setPreSelection(s),i-u<0?r.updateFocusOnPaginate(l-(u-i)):i-u>=l?r.updateFocusOnPaginate(Math.abs(l-(i-u))):r.YEAR_REFS[i-u].current.focus())}),x(r,"isSameDay",function(i,s){return G(i,s)}),x(r,"isCurrentYear",function(i){return i===V(re())}),x(r,"isRangeStart",function(i){return r.props.startDate&&r.props.endDate&&Gt(Xt(re(),i),r.props.startDate)}),x(r,"isRangeEnd",function(i){return r.props.startDate&&r.props.endDate&&Gt(Xt(re(),i),r.props.endDate)}),x(r,"isInRange",function(i){return sa(i,r.props.startDate,r.props.endDate)}),x(r,"isInSelectingRange",function(i){var s=r.props,o=s.selectsStart,a=s.selectsEnd,l=s.selectsRange,c=s.startDate,u=s.endDate;return!(o||a||l)||!r.selectingDate()?!1:o&&u?sa(i,r.selectingDate(),u):a&&c||l&&c&&!u?sa(i,c,r.selectingDate()):!1}),x(r,"isSelectingRangeStart",function(i){if(!r.isInSelectingRange(i))return!1;var s=r.props,o=s.startDate,a=s.selectsStart,l=Xt(re(),i);return a?Gt(l,r.selectingDate()):Gt(l,o)}),x(r,"isSelectingRangeEnd",function(i){if(!r.isInSelectingRange(i))return!1;var s=r.props,o=s.endDate,a=s.selectsEnd,l=s.selectsRange,c=Xt(re(),i);return a||l?Gt(c,r.selectingDate()):Gt(c,o)}),x(r,"isKeyboardSelected",function(i){var s=ys(Xt(r.props.date,i));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!G(s,ys(r.props.selected))&&G(s,ys(r.props.preSelection))}),x(r,"onYearClick",function(i,s){var o=r.props.date;r.handleYearClick(ys(Xt(o,s)),i)}),x(r,"onYearKeyDown",function(i,s){var o=i.key,a=r.props,l=a.date,c=a.yearItemNumber,u=a.handleOnKeyDown;if(o!=="Tab"&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(o){case"Enter":r.onYearClick(i,s),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(s+1,xn(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(s-1,Fi(r.props.preSelection,1));break;case"ArrowUp":{var d=Hn(l,c),f=d.startPeriod,h=ug,p=s-h;if(p<f){var y=c%h;s>=f&&s<f+y?h=y:h+=y,p=s-h}r.handleYearNavigation(p,Fi(r.props.preSelection,h));break}case"ArrowDown":{var w=Hn(l,c),m=w.endPeriod,g=ug,v=s+g;if(v>m){var b=c%g;s<=m&&s>m-b?g=b:g+=b,v=s+g}r.handleYearNavigation(v,xn(r.props.preSelection,g));break}}u&&u(i)}),x(r,"getYearClassNames",function(i){var s=r.props,o=s.date,a=s.minDate,l=s.maxDate,c=s.selected,u=s.excludeDates,d=s.includeDates,f=s.filterDate,h=s.yearClassName;return Ye("react-datepicker__year-text","react-datepicker__year-".concat(i),h?h(Xt(o,i)):void 0,{"react-datepicker__year-text--selected":i===V(c),"react-datepicker__year-text--disabled":(a||l||u||d||f)&&sw(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.isCurrentYear(i)})}),x(r,"getYearTabIndex",function(i){if(r.props.disabledKeyboardNavigation)return"-1";var s=V(r.props.preSelection);return i===s?"0":"-1"}),x(r,"getYearContainerClassNames",function(){var i=r.props,s=i.selectingDate,o=i.selectsStart,a=i.selectsEnd,l=i.selectsRange;return Ye("react-datepicker__year",{"react-datepicker__year--selecting-range":s&&(o||a||l)})}),x(r,"getYearContent",function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i}),r}return Ae(e,t),Fe(e,[{key:"render",value:function(){for(var r=this,i=[],s=this.props,o=s.date,a=s.yearItemNumber,l=s.onYearMouseEnter,c=s.onYearMouseLeave,u=Hn(o,a),d=u.startPeriod,f=u.endPeriod,h=function(w){i.push(M.createElement("div",{ref:r.YEAR_REFS[w-d],onClick:function(g){r.onYearClick(g,w)},onKeyDown:function(g){lw(g)&&(g.preventDefault(),g.key="Enter"),r.onYearKeyDown(g,w)},tabIndex:r.getYearTabIndex(w),className:r.getYearClassNames(w),onMouseEnter:r.props.usePointerEvent?void 0:function(m){return l(m,w)},onPointerEnter:r.props.usePointerEvent?function(m){return l(m,w)}:void 0,onMouseLeave:r.props.usePointerEvent?void 0:function(m){return c(m,w)},onPointerLeave:r.props.usePointerEvent?function(m){return c(m,w)}:void 0,key:w,"aria-current":r.isCurrentYear(w)?"date":void 0},r.getYearContent(w)))},p=d;p<=f;p++)h(p);return M.createElement("div",{className:this.getYearContainerClassNames()},M.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},i))}}])}(M.Component),UP=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),x(r,"onTimeChange",function(i){r.setState({time:i});var s=r.props.date,o=s instanceof Date&&!isNaN(s),a=o?s:new Date;a.setHours(i.split(":")[0]),a.setMinutes(i.split(":")[1]),r.props.onChange(a)}),x(r,"renderTimeInput",function(){var i=r.state.time,s=r.props,o=s.date,a=s.timeString,l=s.customTimeInput;return l?M.cloneElement(l,{date:o,value:i,onChange:r.onTimeChange}):M.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(u){r.onTimeChange(u.target.value||a)}})}),r.state={time:r.props.timeString},r}return Ae(e,t),Fe(e,[{key:"render",value:function(){return M.createElement("div",{className:"react-datepicker__input-time-container"},M.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),M.createElement("div",{className:"react-datepicker-time__input-container"},M.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}])}(M.Component);function QP(t){var e=t.showTimeSelectOnly,n=e===void 0?!1:e,r=t.showTime,i=r===void 0?!1:r,s=t.className,o=t.children,a=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return M.createElement("div",{className:s,role:"dialog","aria-label":a,"aria-modal":"true"},o)}var KP=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],qP=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=(e.className||"").split(/\s+/);return KP.some(function(r){return n.indexOf(r)>=0})},XP=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),x(r,"handleClickOutside",function(i){r.props.onClickOutside(i)}),x(r,"setClickOutsideRef",function(){return r.containerRef.current}),x(r,"handleDropdownFocus",function(i){qP(i.target)&&r.props.onDropdownFocus()}),x(r,"getDateInView",function(){var i=r.props,s=i.preSelection,o=i.selected,a=i.openToDate,l=ow(r.props),c=aw(r.props),u=re(),d=a||o||s;return d||(l&&Hr(u,l)?l:c&&sr(u,c)?c:u)}),x(r,"increaseMonth",function(){r.setState(function(i){var s=i.date;return{date:Wt(s,1)}},function(){return r.handleMonthChange(r.state.date)})}),x(r,"decreaseMonth",function(){r.setState(function(i){var s=i.date;return{date:Ii(s,1)}},function(){return r.handleMonthChange(r.state.date)})}),x(r,"handleDayClick",function(i,s,o){r.props.onSelect(i,s,o),r.props.setPreSelection&&r.props.setPreSelection(i)}),x(r,"handleDayMouseEnter",function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)}),x(r,"handleMonthMouseLeave",function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()}),x(r,"handleYearMouseEnter",function(i,s){r.setState({selectingDate:Xt(re(),s)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,s)}),x(r,"handleYearMouseLeave",function(i,s){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,s)}),x(r,"handleYearChange",function(i){r.props.onYearChange&&(r.props.onYearChange(i),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)}),x(r,"handleMonthChange",function(i){r.handleCustomMonthChange(i),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)}),x(r,"handleCustomMonthChange",function(i){r.props.onMonthChange&&(r.props.onMonthChange(i),r.setState({isRenderAriaLiveMessage:!0}))}),x(r,"handleMonthYearChange",function(i){r.handleYearChange(i),r.handleMonthChange(i)}),x(r,"changeYear",function(i){r.setState(function(s){var o=s.date;return{date:Xt(o,i)}},function(){return r.handleYearChange(r.state.date)})}),x(r,"changeMonth",function(i){r.setState(function(s){var o=s.date;return{date:Ge(o,i)}},function(){return r.handleMonthChange(r.state.date)})}),x(r,"changeMonthYear",function(i){r.setState(function(s){var o=s.date;return{date:Xt(Ge(o,Je(i)),V(i))}},function(){return r.handleMonthYearChange(r.state.date)})}),x(r,"header",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.state.date,s=Zn(i,r.props.locale,r.props.calendarStartDay),o=[];return r.props.showWeekNumbers&&o.push(M.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(a){var l=hr(s,a),c=r.formatWeekday(l,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(l):void 0;return M.createElement("div",{key:a,"aria-label":fe(l,"EEEE",r.props.locale),className:Ye("react-datepicker__day-name",u)},c)}))}),x(r,"formatWeekday",function(i,s){return r.props.formatWeekDay?gP(i,r.props.formatWeekDay,s):r.props.useWeekdaysShort?vP(i,s):yP(i,s)}),x(r,"decreaseYear",function(){r.setState(function(i){var s=i.date;return{date:Fi(s,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),x(r,"clearSelectingDate",function(){r.setState({selectingDate:null})}),x(r,"renderPreviousButton",function(){if(!r.props.renderCustomHeader){var i;switch(!0){case r.props.showMonthYearPicker:i=ng(r.state.date,r.props);break;case r.props.showYearPicker:i=bP(r.state.date,r.props);break;case r.props.showQuarterYearPicker:i=xP(r.state.date,r.props);break;default:i=eg(r.state.date,r.props);break}if(!(!r.props.forceShowMonthNavigation&&!r.props.showDisabledMonthNavigation&&i||r.props.showTimeSelectOnly)){var s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],o=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(a=r.decreaseYear),i&&r.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--previous--disabled"),a=null);var l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,c=r.props,u=c.previousMonthButtonLabel,d=c.previousYearButtonLabel,f=r.props,h=f.previousMonthAriaLabel,p=h===void 0?typeof u=="string"?u:"Previous Month":h,y=f.previousYearAriaLabel,w=y===void 0?typeof d=="string"?d:"Previous Year":y;return M.createElement("button",{type:"button",className:o.join(" "),onClick:a,onKeyDown:r.props.handleOnKeyDown,"aria-label":l?w:p},M.createElement("span",{className:s.join(" ")},l?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}}),x(r,"increaseYear",function(){r.setState(function(i){var s=i.date;return{date:xn(s,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),x(r,"renderNextButton",function(){if(!r.props.renderCustomHeader){var i;switch(!0){case r.props.showMonthYearPicker:i=rg(r.state.date,r.props);break;case r.props.showYearPicker:i=kP(r.state.date,r.props);break;case r.props.showQuarterYearPicker:i=_P(r.state.date,r.props);break;default:i=tg(r.state.date,r.props);break}if(!(!r.props.forceShowMonthNavigation&&!r.props.showDisabledMonthNavigation&&i||r.props.showTimeSelectOnly)){var s=["react-datepicker__navigation","react-datepicker__navigation--next"],o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var a=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(a=r.increaseYear),i&&r.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),a=null);var l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,c=r.props,u=c.nextMonthButtonLabel,d=c.nextYearButtonLabel,f=r.props,h=f.nextMonthAriaLabel,p=h===void 0?typeof u=="string"?u:"Next Month":h,y=f.nextYearAriaLabel,w=y===void 0?typeof d=="string"?d:"Next Year":y;return M.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:r.props.handleOnKeyDown,"aria-label":l?w:p},M.createElement("span",{className:o.join(" ")},l?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}}),x(r,"renderCurrentMonth",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.state.date,s=["react-datepicker__current-month"];return r.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),M.createElement("div",{className:s.join(" ")},fe(i,r.props.dateFormat,r.props.locale))}),x(r,"renderYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!r.props.showYearDropdown||i))return M.createElement(NP,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:V(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),x(r,"renderMonthDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!r.props.showMonthDropdown||i))return M.createElement(IP,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Je(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})}),x(r,"renderMonthYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!r.props.showMonthYearDropdown||i))return M.createElement(zP,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})}),x(r,"handleTodayButtonClick",function(i){r.props.onSelect(Xm(),i),r.props.setPreSelection&&r.props.setPreSelection(Xm())}),x(r,"renderTodayButton",function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return M.createElement("div",{className:"react-datepicker__today-button",onClick:function(s){return r.handleTodayButtonClick(s)}},r.props.todayButton)}),x(r,"renderDefaultHeader",function(i){var s=i.monthDate,o=i.i;return M.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(s),M.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(o!==0),r.renderMonthYearDropdown(o!==0),r.renderYearDropdown(o!==0)),M.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))}),x(r,"renderCustomHeader",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=i.monthDate,o=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var a=eg(r.state.date,r.props),l=tg(r.state.date,r.props),c=ng(r.state.date,r.props),u=rg(r.state.date,r.props),d=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return M.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(mn(mn({},r.state),{},{customHeaderCount:o,monthDate:s,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:a,nextMonthButtonDisabled:l,prevYearButtonDisabled:c,nextYearButtonDisabled:u})),d&&M.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))}),x(r,"renderYearHeader",function(i){var s=i.monthDate,o=r.props,a=o.showYearPicker,l=o.yearItemNumber,c=Hn(s,l),u=c.startPeriod,d=c.endPeriod;return M.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(u," - ").concat(d):V(s))}),x(r,"renderHeader",function(i){switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(i);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(i);default:return r.renderDefaultHeader(i)}}),x(r,"renderMonths",function(){var i;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var s=[],o=r.props.showPreviousMonths?r.props.monthsShown-1:0,a=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?xn(r.state.date,o):Ii(r.state.date,o),l=(i=r.props.monthSelectedIn)!==null&&i!==void 0?i:o,c=0;c<r.props.monthsShown;++c){var u=c-l+o,d=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?xn(a,u):Wt(a,u),f="month-".concat(c),h=c<r.props.monthsShown-1,p=c>0;s.push(M.createElement("div",{key:f,ref:function(w){r.monthContainer=w},className:"react-datepicker__month-container"},r.renderHeader({monthDate:d,i:c}),M.createElement($P,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:d,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,usePointerEvent:r.props.usePointerEvent,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:c,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,selectsMultiple:r.props.selectsMultiple,selectedDates:r.props.selectedDates,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:p})))}return s}}),x(r,"renderYears",function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return M.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),M.createElement(VP,oo({onDayClick:r.handleDayClick,selectingDate:r.state.selectingDate,clearSelectingDate:r.clearSelectingDate,date:r.state.date},r.props,{onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))}),x(r,"renderTimeSection",function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return M.createElement(cw,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})}),x(r,"renderInputTimeSection",function(){var i=new Date(r.props.selected),s=In(i)&&!!r.props.selected,o=s?"".concat(sg(i.getHours()),":").concat(sg(i.getMinutes())):"";if(r.props.showTimeInput)return M.createElement(UP,{date:i,timeString:o,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})}),x(r,"renderAriaLiveRegion",function(){var i=Hn(r.state.date,r.props.yearItemNumber),s=i.startPeriod,o=i.endPeriod,a;return r.props.showYearPicker?a="".concat(s," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?a=V(r.state.date):a="".concat(Xf(Je(r.state.date),r.props.locale)," ").concat(V(r.state.date)),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&a)}),x(r,"renderChildren",function(){if(r.props.children)return M.createElement("div",{className:"react-datepicker__children-container"},r.props.children)}),r.containerRef=M.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return Ae(e,t),Fe(e,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){r.setState({monthContainer:r.monthContainer})}())}},{key:"componentDidUpdate",value:function(r){var i=this;if(this.props.preSelection&&(!G(this.props.preSelection,r.preSelection)||this.props.monthSelectedIn!==r.monthSelectedIn)){var s=!ht(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return s&&i.handleCustomMonthChange(i.state.date)})}else this.props.openToDate&&!G(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||QP;return M.createElement("div",{style:{display:"contents"},ref:this.containerRef},M.createElement(r,{className:Ye("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},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:wo}}}])}(M.Component),GP=function(e){var n=e.icon,r=e.className,i=r===void 0?"":r,s=e.onClick,o="react-datepicker__calendar-icon";return M.isValidElement(n)?M.cloneElement(n,{className:"".concat(n.props.className||""," ").concat(o," ").concat(i),onClick:function(l){typeof n.props.onClick=="function"&&n.props.onClick(l),typeof s=="function"&&s(l)}}):typeof n=="string"?M.createElement("i",{className:"".concat(o," ").concat(n," ").concat(i),"aria-hidden":"true",onClick:s}):M.createElement("svg",{className:"".concat(o," ").concat(i),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:s},M.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"}))},JP=GP,uw=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),r.el=document.createElement("div"),r}return Ae(e,t),Fe(e,[{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 ub.createPortal(this.props.children,this.el)}}])}(M.Component),ZP="[tabindex], a, button, input, select, textarea",eT=function(e){return!e.disabled&&e.tabIndex!==-1},dw=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),x(r,"getTabChildren",function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll(ZP),1,-1).filter(eT)}),x(r,"handleFocusStart",function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()}),x(r,"handleFocusEnd",function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()}),r.tabLoopRef=M.createRef(),r}return Ae(e,t),Fe(e,[{key:"render",value:function(){return this.props.enableTabLoop?M.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},M.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,M.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}])}(M.Component);function tT(t){var e=function(r){var i=mn(mn({},r),{},{popperModifiers:r.popperModifiers||[],popperProps:r.popperProps||{},hidePopper:typeof r.hidePopper=="boolean"?r.hidePopper:!0}),s=M.useRef(),o=eP(mn({open:!i.hidePopper,whileElementsMounted:NE,placement:i.popperPlacement,middleware:[zE({padding:15}),jE(10),YE({element:s})].concat(lr(i.popperModifiers))},i.popperProps));return M.createElement(t,oo({},i,{popperProps:mn(mn({},o),{},{arrowRef:s})}))};return e}var nT=function(t){function e(){return Ie(this,e),Le(this,e,arguments)}return Ae(e,t),Fe(e,[{key:"render",value:function(){var r=this.props,i=r.className,s=r.wrapperClassName,o=r.hidePopper,a=r.popperComponent,l=r.targetComponent,c=r.enableTabLoop,u=r.popperOnKeyDown,d=r.portalId,f=r.portalHost,h=r.popperProps,p=r.showArrow,y;if(!o){var w=Ye("react-datepicker-popper",i);y=M.createElement(dw,{enableTabLoop:c},M.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:w,"data-placement":h.placement,onKeyDown:u},a,p&&M.createElement(QE,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(y=M.createElement(this.props.popperContainer,{},y)),d&&!o&&(y=M.createElement(uw,{portalId:d,portalHost:f},y));var m=Ye("react-datepicker-wrapper",s);return M.createElement(M.Fragment,null,M.createElement("div",{ref:h.refs.setReference,className:m},l),y)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0}}}])}(M.Component),rT=tT(nT),dg="react-datepicker-ignore-onclickoutside",iT=Jl(XP);function sT(t,e){return t&&e?Je(t)!==Je(e)||V(t)!==V(e):t!==e}var Xc="Date input not valid.",yd=function(t){function e(n){var r;return Ie(this,e),r=Le(this,e,[n]),x(r,"getPreSelection",function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:re()}),x(r,"modifyHolidays",function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(s,o){var a=new Date(o.date);return no(a)?[].concat(lr(s),[mn(mn({},o),{},{date:a})]):s},[])}),x(r,"calcInitialState",function(){var i,s=r.getPreSelection(),o=ow(r.props),a=aw(r.props),l=o&&Hr(s,rn(o))?o:a&&sr(s,ld(a))?a:s;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:l,highlightDates:ig(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),x(r,"clearPreventFocusTimeout",function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)}),x(r,"setFocus",function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})}),x(r,"setBlur",function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()}),x(r,"setOpen",function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:Gc},function(){i||r.setState(function(o){return{focused:s?o.focused:!1}},function(){!s&&r.setBlur(),r.setState({inputValue:null})})})}),x(r,"inputOk",function(){return Wr(r.state.preSelection)}),x(r,"isCalendarOpen",function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open}),x(r,"handleFocus",function(i){r.state.preventFocus||(r.props.onFocus(i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})}),x(r,"sendFocusBackToInput",function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})}),x(r,"cancelFocusInput",function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null}),x(r,"deferFocusInput",function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)}),x(r,"handleDropdownFocus",function(){r.cancelFocusInput()}),x(r,"handleBlur",function(i){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(i),r.setState({focused:!1})}),x(r,"handleCalendarClickOutside",function(i){r.props.inline||r.setOpen(!1),r.props.onClickOutside(i),r.props.withPortal&&i.preventDefault()}),x(r,"handleChange",function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=s[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,s),typeof a.isDefaultPrevented!="function"||a.isDefaultPrevented()))){r.setState({inputValue:a.target.value,lastPreSelectChange:oT});var l=cP(a.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&l&&!G(l,r.props.selected)&&(l=HM(r.props.selected,{hours:on(l),minutes:sn(l),seconds:_n(l)})),(l||!a.target.value)&&r.setSelected(l,a,!0)}}),x(r,"handleSelect",function(i,s,o){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(s),r.setSelected(i,s,!1,o),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(i);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var a=r.props,l=a.startDate,c=a.endDate;l&&!c&&(r.props.swapRange||!lg(i,l))&&r.setOpen(!1)}}),x(r,"setSelected",function(i,s,o,a){var l=i;if(r.props.showYearPicker){if(l!==null&&sw(V(l),r.props))return}else if(r.props.showMonthYearPicker){if(l!==null&&Ea(l,r.props))return}else if(l!==null&&tc(l,r.props))return;var c=r.props,u=c.onChange,d=c.selectsRange,f=c.startDate,h=c.endDate,p=c.selectsMultiple,y=c.selectedDates,w=c.minTime,m=c.swapRange;if(!Mr(r.props.selected,l)||r.props.allowSameDay||d||p)if(l!==null&&(r.props.selected&&(!o||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(l=Qc(l,{hour:on(r.props.selected),minute:sn(r.props.selected),second:_n(r.props.selected)})),!o&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&w&&(l=Qc(l,{hour:w.getHours(),minute:w.getMinutes(),second:w.getSeconds()})),r.props.inline||r.setState({preSelection:l}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:a})),d){var g=!f&&!h,v=f&&!h,b=f&&h;g?u([l,null],s):v&&(l===null?u([null,null],s):lg(l,f)?u(m?[l,f]:[l,null],s):u([f,l],s)),b&&u([l,null],s)}else if(p)if(!(y!=null&&y.length))u([l],s);else{var k=y.some(function(D){return G(D,l)});if(k){var C=y.filter(function(D){return!G(D,l)});u(C,s)}else u([].concat(lr(y),[l]),s)}else u(l,s);o||(r.props.onSelect(l,s),r.setState({inputValue:null}))}),x(r,"setPreSelection",function(i){var s=typeof r.props.minDate<"u",o=typeof r.props.maxDate<"u",a=!0;if(i){var l=rn(i);if(s&&o)a=vs(i,r.props.minDate,r.props.maxDate);else if(s){var c=rn(r.props.minDate);a=sr(i,c)||Mr(l,c)}else if(o){var u=ld(r.props.maxDate);a=Hr(i,u)||Mr(l,u)}}a&&r.setState({preSelection:i})}),x(r,"toggleCalendar",function(){r.setOpen(!r.state.open)}),x(r,"handleTimeChange",function(i){var s=r.props.selected?r.props.selected:r.getPreSelection(),o=r.props.selected?i:Qc(s,{hour:on(i),minute:sn(i)});r.setState({preSelection:o}),r.props.onChange(o),r.props.shouldCloseOnSelect&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}),x(r,"onInputClick",function(){!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),r.props.onInputClick()}),x(r,"onInputKeyDown",function(i){r.props.onKeyDown(i);var s=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(s==="ArrowDown"||s==="ArrowUp"||s==="Enter")&&r.onInputClick();return}if(r.state.open){if(s==="ArrowDown"||s==="ArrowUp"){i.preventDefault();var o=r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',a=r.calendar.componentNode&&r.calendar.componentNode.querySelector(o);a&&a.focus({preventScroll:!0});return}var l=re(r.state.preSelection);s==="Enter"?(i.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===Gc?(r.handleSelect(l,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(l)):r.setOpen(!1)):s==="Escape"?(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):s==="Tab"&&r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:Xc})}}),x(r,"onPortalKeyDown",function(i){var s=i.key;s==="Escape"&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))}),x(r,"onDayKeyDown",function(i){r.props.onKeyDown(i);var s=i.key,o=i.shiftKey,a=re(r.state.preSelection);if(s==="Enter")i.preventDefault(),r.handleSelect(a,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(a);else if(s==="Escape")i.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:Xc});else if(!r.props.disabledKeyboardNavigation){var l;switch(s){case"ArrowLeft":r.props.showWeekPicker?l=Nm(a,1):l=xC(a,1);break;case"ArrowRight":r.props.showWeekPicker?l=gl(a,1):l=hr(a,1);break;case"ArrowUp":l=Nm(a,1);break;case"ArrowDown":l=gl(a,1);break;case"PageUp":l=o?Fi(a,1):Ii(a,1);break;case"PageDown":l=o?xn(a,1):Wt(a,1);break;case"Home":l=Zn(a,r.props.locale,r.props.calendarStartDay);break;case"End":l=mP(a);break;default:l=null;break}if(!l){r.props.onInputError&&r.props.onInputError({code:1,msg:Xc});return}if(i.preventDefault(),r.setState({lastPreSelectChange:Gc}),r.props.adjustDateOnChange&&r.setSelected(l),r.setPreSelection(l),r.props.inline){var c=Je(a),u=Je(l),d=V(a),f=V(l);c!==u||d!==f?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}}),x(r,"onPopperKeyDown",function(i){var s=i.key;s==="Escape"&&(i.preventDefault(),r.sendFocusBackToInput())}),x(r,"onClearClick",function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput(),r.props.selectsRange?r.props.onChange([null,null],i):r.props.onChange(null,i),r.setState({inputValue:null})}),x(r,"clear",function(){r.onClearClick()}),x(r,"onScroll",function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)}),x(r,"renderCalendar",function(){return!r.props.inline&&!r.isCalendarOpen()?null:M.createElement(iT,{ref:function(s){r.calendar=s},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsMultiple:r.props.selectsMultiple,selectedDates:r.props.selectedDates,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,holidays:SP(r.modifyHolidays()),includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:dg,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showDateSelect:r.props.showDateSelect,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,onYearMouseEnter:r.props.onYearMouseEnter,onYearMouseLeave:r.props.onYearMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection,usePointerEvent:r.props.usePointerEvent,yearClassName:r.props.yearClassName},r.props.children)}),x(r,"renderAriaLiveRegion",function(){var i=r.props,s=i.dateFormat,o=i.locale,a=r.props.showTimeInput||r.props.showTimeSelect,l=a?"PPPPp":"PPPP",c;return r.props.selectsRange?c="Selected start date: ".concat(bt(r.props.startDate,{dateFormat:l,locale:o}),". ").concat(r.props.endDate?"End date: "+bt(r.props.endDate,{dateFormat:l,locale:o}):""):r.props.showTimeSelectOnly?c="Selected time: ".concat(bt(r.props.selected,{dateFormat:s,locale:o})):r.props.showYearPicker?c="Selected year: ".concat(bt(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?c="Selected month: ".concat(bt(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?c="Selected quarter: ".concat(bt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):c="Selected date: ".concat(bt(r.props.selected,{dateFormat:l,locale:o})),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},c)}),x(r,"renderDateInput",function(){var i,s=Ye(r.props.className,x({},dg,r.state.open)),o=r.props.customInput||M.createElement("input",{type:"text"}),a=r.props.customInputRef||"ref",l=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?uP(r.props.startDate,r.props.endDate,r.props):r.props.selectsMultiple?dP(r.props.selectedDates,r.props):bt(r.props.selected,r.props);return M.cloneElement(o,(i={},x(x(x(x(x(x(x(x(x(x(i,a,function(c){r.input=c}),"value",l),"onBlur",r.handleBlur),"onChange",r.handleChange),"onClick",r.onInputClick),"onFocus",r.handleFocus),"onKeyDown",r.onInputKeyDown),"id",r.props.id),"name",r.props.name),"form",r.props.form),x(x(x(x(x(x(x(x(x(x(i,"autoFocus",r.props.autoFocus),"placeholder",r.props.placeholderText),"disabled",r.props.disabled),"autoComplete",r.props.autoComplete),"className",Ye(o.props.className,s)),"title",r.props.title),"readOnly",r.props.readOnly),"required",r.props.required),"tabIndex",r.props.tabIndex),"aria-describedby",r.props.ariaDescribedBy),x(x(x(i,"aria-invalid",r.props.ariaInvalid),"aria-labelledby",r.props.ariaLabelledBy),"aria-required",r.props.ariaRequired)))}),x(r,"renderClearButton",function(){var i=r.props,s=i.isClearable,o=i.disabled,a=i.selected,l=i.startDate,c=i.endDate,u=i.clearButtonTitle,d=i.clearButtonClassName,f=d===void 0?"":d,h=i.ariaLabelClose,p=h===void 0?"Close":h,y=i.selectedDates;return s&&(a!=null||l!=null||c!=null||y!=null&&y.length)?M.createElement("button",{type:"button",className:Ye("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":o}),disabled:o,"aria-label":p,onClick:r.onClearClick,title:u,tabIndex:-1}):null}),r.state=r.calcInitialState(),r.preventFocusTimeout=null,r}return Ae(e,t),Fe(e,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){r.inline&&sT(r.selected,this.props.selected)&&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:ig(this.props.highlightDates)}),!i.focused&&!Mr(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,i=r.showIcon,s=r.icon,o=r.calendarIconClassname,a=r.toggleCalendarOnIconClick,l=this.state.open;return M.createElement("div",{className:"react-datepicker__input-container".concat(i?" react-datepicker__view-calendar-icon":"")},i&&M.createElement(JP,oo({icon:s,className:"".concat(o," ").concat(l&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),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?M.createElement(dw,{enableTabLoop:this.props.enableTabLoop},M.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=M.createElement(uw,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),M.createElement("div",null,this.renderInputContainer(),i)}return M.createElement(rT,{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,showArrow:this.props.showPopperArrow})}}],[{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,showWeekPicker:!1,strictParsing:!1,swapRange:!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:wo,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}}}])}(M.Component),oT="input",Gc="navigate";go.register(ul,fl,Rs,hi,xv,bv,vv);function aT(){const[t,e]=R.useState(new Date),[n,r]=R.useState(""),[i,s]=R.useState(0),[o,a]=R.useState({fechas:[],costos_totales:[],ingresos_totales:[]}),[l,c]=R.useState(0),[u,d]=R.useState(0),[f,h]=R.useState(0);R.useEffect(()=>{fetch("https://www.servidordna.xyz/api/datos_graficas/").then(m=>m.json()).then(m=>{const{fechas:g,costos_totales:v,ingresos_totales:b}=m.datos,k=v.reduce((A,W)=>A+W,0),C=b.reduce((A,W)=>A+W,0),D=g.length,S=k/D,O=S/30;a({fechas:g,costos_totales:v,ingresos_totales:b}),c(S),d(O);const N=k,I=(C-N)/N*100;h(I)}).catch(m=>{console.error("Error fetching data for charts:",m)})},[]);const p=()=>{fetch("https://www.servidordna.xyz/api/registrar_costo/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({costo_total:n,mes:t.toISOString().split("T")[0],ingresos_totales:i})}).then(m=>m.ok?m.json():m.text().then(g=>{throw new Error(g)})).then(m=>{alert("Costo registrado exitosamente."),fetch("https://www.servidordna.xyz/api/datos_graficas/").then(g=>g.json()).then(g=>{const{fechas:v,costos_totales:b,ingresos_totales:k}=g.datos,C=b.reduce((W,U)=>W+U,0),D=k.reduce((W,U)=>W+U,0),S=v.length,O=C/S,N=O/30;a({fechas:v,costos_totales:b,ingresos_totales:k}),c(O),d(N);const I=C,A=(D-I)/I*100;h(A)}).catch(g=>{console.error("Error fetching data for charts:",g)})}).catch(m=>{console.error("Error registering cost:",m.message)})},y={labels:o.fechas,datasets:[{label:"Costo Total",data:o.costos_totales,borderColor:"rgba(153, 102, 255, 1)",backgroundColor:"rgba(153, 102, 255, 0.2)",yAxisID:"y-axis-1"},{label:"Ingresos Totales",data:o.ingresos_totales,borderColor:"rgba(75, 192, 192, 1)",backgroundColor:"rgba(75, 192, 192, 0.2)",yAxisID:"y-axis-2"}]},w={scales:{y:{beginAtZero:!0,min:1,max:100,ticks:{stepSize:10,callback:function(m){return`$${m}`}}}}};return _.jsxs("main",{className:"bg-[#E6EFF5] min-h-screen w-full overflow-y-auto h-auto items-center justify-center flex flex-col",children:[_.jsxs("section",{className:"w-full h-1/6 flex flex-row items-center justify-between p-8",children:[_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"Gasto mensual"}),_.jsxs("strong",{children:["$",l.toFixed(2)]})]})]}),_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"Gasto diario"}),_.jsxs("strong",{children:["$",u.toFixed(2)]})]})]}),_.jsxs("div",{className:"bg-white rounded-md w-[22%] flex flex-row items-center justify-center p-2",children:[_.jsx("div",{className:"w-2/5",children:_.jsx("div",{className:"bg-[#78D64B] rounded-full flex items-center justify-center w-1/2 p-2",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg"})})}),_.jsxs("div",{className:"w-3/5",children:[_.jsx("p",{children:"ROI"}),_.jsxs("strong",{children:[f.toFixed(2),"%"]})]})]})]}),_.jsxs("div",{className:"bg-white m-8 rounded-lg h-[80px] flex flex-row items-center w-2/3 justify-between pr-7",children:[_.jsx("div",{className:"bg-[#78D64B] w-[50px] h-2/3 flex items-center justify-center rounded-lg ml-4",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg",alt:"icon"})}),_.jsx("h2",{className:"font-semibold ml-3",children:"Mes:"}),_.jsx(yd,{selected:t,onChange:m=>e(m),dateFormat:"MM/yyyy",showMonthYearPicker:!0,placeholderText:"Elija un mes",className:"ml-2 bg-[#E6EFF5] p-2 text-gray-400 text-center rounded-lg"}),_.jsx("h3",{children:"Costo:"}),_.jsx("input",{type:"number",value:n,onChange:m=>r(m.target.value),max:1e5,min:0,placeholder:"$ 0.00",className:"p-2 bg-[#E6EFF5] rounded-lg"}),_.jsx("h3",{children:"Ingresos:"}),_.jsx("input",{type:"number",value:i,onChange:m=>s(m.target.value),max:1e5,min:0,placeholder:"$ 0.00",className:"p-2 bg-[#E6EFF5] rounded-lg"}),_.jsx("button",{onClick:p,className:"bg-[#78D64B] p-2 text-white font-semibold rounded-lg",children:"Registrar"})]}),_.jsx("section",{className:"w-full h-full flex-wrap flex p-10 items-center justify-center",children:_.jsxs("div",{className:"flex flex-col w-[700px] p-5 gap-3",children:[_.jsx("h2",{className:"text-2xl font-semibold",children:"Gasto general"}),_.jsx("div",{className:"bg-white p-5 rounded-lg",children:_.jsx(Mv,{data:y,options:w})})]})})]})}function fw(t,e){return function(){return t.apply(e,arguments)}}const{toString:lT}=Object.prototype,{getPrototypeOf:Jf}=Object,rc=(t=>e=>{const n=lT.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=t=>(t=t.toLowerCase(),e=>rc(e)===t),ic=t=>e=>typeof e===t,{isArray:$i}=Array,ao=ic("undefined");function cT(t){return t!==null&&!ao(t)&&t.constructor!==null&&!ao(t.constructor)&&Tt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const hw=$t("ArrayBuffer");function uT(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&hw(t.buffer),e}const dT=ic("string"),Tt=ic("function"),pw=ic("number"),sc=t=>t!==null&&typeof t=="object",fT=t=>t===!0||t===!1,Pa=t=>{if(rc(t)!=="object")return!1;const e=Jf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},hT=$t("Date"),pT=$t("File"),mT=$t("Blob"),gT=$t("FileList"),yT=t=>sc(t)&&Tt(t.pipe),vT=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Tt(t.append)&&((e=rc(t))==="formdata"||e==="object"&&Tt(t.toString)&&t.toString()==="[object FormData]"))},wT=$t("URLSearchParams"),[xT,_T,bT,kT]=["ReadableStream","Request","Response","Headers"].map($t),DT=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),$i(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(r=0;r<o;r++)a=s[r],e.call(null,t[a],a,t)}}function mw(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const gw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yw=t=>!ao(t)&&t!==gw;function vd(){const{caseless:t}=yw(this)&&this||{},e={},n=(r,i)=>{const s=t&&mw(e,i)||i;Pa(e[s])&&Pa(r)?e[s]=vd(e[s],r):Pa(r)?e[s]=vd({},r):$i(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&xo(arguments[r],n);return e}const ST=(t,e,n,{allOwnKeys:r}={})=>(xo(e,(i,s)=>{n&&Tt(i)?t[s]=fw(i,n):t[s]=i},{allOwnKeys:r}),t),CT=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),MT=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},ET=(t,e,n,r)=>{let i,s,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Jf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},PT=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},TT=t=>{if(!t)return null;if($i(t))return t;let e=t.length;if(!pw(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},OT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Jf(Uint8Array)),NT=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},RT=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},LT=$t("HTMLFormElement"),IT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),fg=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),FT=$t("RegExp"),vw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};xo(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},AT=t=>{vw(t,(e,n)=>{if(Tt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Tt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jT=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $i(t)?r(t):r(String(t).split(e)),n},zT=()=>{},YT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Jc="abcdefghijklmnopqrstuvwxyz",hg="0123456789",ww={DIGIT:hg,ALPHA:Jc,ALPHA_DIGIT:Jc+Jc.toUpperCase()+hg},BT=(t=16,e=ww.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function WT(t){return!!(t&&Tt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const HT=t=>{const e=new Array(10),n=(r,i)=>{if(sc(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=$i(r)?[]:{};return xo(r,(o,a)=>{const l=n(o,i+1);!ao(l)&&(s[a]=l)}),e[i]=void 0,s}}return r};return n(t,0)},$T=$t("AsyncFunction"),VT=t=>t&&(sc(t)||Tt(t))&&Tt(t.then)&&Tt(t.catch),E={isArray:$i,isArrayBuffer:hw,isBuffer:cT,isFormData:vT,isArrayBufferView:uT,isString:dT,isNumber:pw,isBoolean:fT,isObject:sc,isPlainObject:Pa,isReadableStream:xT,isRequest:_T,isResponse:bT,isHeaders:kT,isUndefined:ao,isDate:hT,isFile:pT,isBlob:mT,isRegExp:FT,isFunction:Tt,isStream:yT,isURLSearchParams:wT,isTypedArray:OT,isFileList:gT,forEach:xo,merge:vd,extend:ST,trim:DT,stripBOM:CT,inherits:MT,toFlatObject:ET,kindOf:rc,kindOfTest:$t,endsWith:PT,toArray:TT,forEachEntry:NT,matchAll:RT,isHTMLForm:LT,hasOwnProperty:fg,hasOwnProp:fg,reduceDescriptors:vw,freezeMethods:AT,toObjectSet:jT,toCamelCase:IT,noop:zT,toFiniteNumber:YT,findKey:mw,global:gw,isContextDefined:yw,ALPHABET:ww,generateString:BT,isSpecCompliantForm:WT,toJSONObject:HT,isAsyncFn:$T,isThenable:VT};function $(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}E.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xw=$.prototype,_w={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{_w[t]={value:t}});Object.defineProperties($,_w);Object.defineProperty(xw,"isAxiosError",{value:!0});$.from=(t,e,n,r,i,s)=>{const o=Object.create(xw);return E.toFlatObject(t,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),$.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const UT=null;function wd(t){return E.isPlainObject(t)||E.isArray(t)}function bw(t){return E.endsWith(t,"[]")?t.slice(0,-2):t}function pg(t,e,n){return t?t.concat(e).map(function(i,s){return i=bw(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function QT(t){return E.isArray(t)&&!t.some(wd)}const KT=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function oc(t,e,n){if(!E.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!E.isUndefined(w[y])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(e);if(!E.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(E.isDate(p))return p.toISOString();if(!l&&E.isBlob(p))throw new $("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(p)||E.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,y,w){let m=p;if(p&&!w&&typeof p=="object"){if(E.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(E.isArray(p)&&QT(p)||(E.isFileList(p)||E.endsWith(y,"[]"))&&(m=E.toArray(p)))return y=bw(y),m.forEach(function(v,b){!(E.isUndefined(v)||v===null)&&e.append(o===!0?pg([y],b,s):o===null?y:y+"[]",c(v))}),!1}return wd(p)?!0:(e.append(pg(w,y,s),c(p)),!1)}const d=[],f=Object.assign(KT,{defaultVisitor:u,convertValue:c,isVisitable:wd});function h(p,y){if(!E.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),E.forEach(p,function(m,g){(!(E.isUndefined(m)||m===null)&&i.call(e,m,E.isString(g)?g.trim():g,y,f))===!0&&h(m,y?y.concat(g):[g])}),d.pop()}}if(!E.isObject(t))throw new TypeError("data must be an object");return h(t),e}function mg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Zf(t,e){this._pairs=[],t&&oc(t,this,e)}const kw=Zf.prototype;kw.append=function(e,n){this._pairs.push([e,n])};kw.toString=function(e){const n=e?function(r){return e.call(this,r,mg)}:mg;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function qT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dw(t,e,n){if(!e)return t;const r=n&&n.encode||qT,i=n&&n.serialize;let s;if(i?s=i(e,n):s=E.isURLSearchParams(e)?e.toString():new Zf(e,n).toString(r),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class gg{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){E.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Sw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XT=typeof URLSearchParams<"u"?URLSearchParams:Zf,GT=typeof FormData<"u"?FormData:null,JT=typeof Blob<"u"?Blob:null,ZT={isBrowser:!0,classes:{URLSearchParams:XT,FormData:GT,Blob:JT},protocols:["http","https","file","blob","url","data"]},eh=typeof window<"u"&&typeof document<"u",eO=(t=>eh&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),tO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nO=eh&&window.location.href||"http://localhost",rO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eh,hasStandardBrowserEnv:eO,hasStandardBrowserWebWorkerEnv:tO,origin:nO},Symbol.toStringTag,{value:"Module"})),Yt={...rO,...ZT};function iO(t,e){return oc(t,new Yt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Yt.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function sO(t){return E.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function oO(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Cw(t){function e(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=n.length;return o=!o&&E.isArray(i)?i.length:o,l?(E.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!E.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&E.isArray(i[o])&&(i[o]=oO(i[o])),!a)}if(E.isFormData(t)&&E.isFunction(t.entries)){const n={};return E.forEachEntry(t,(r,i)=>{e(sO(r),i,n,0)}),n}return null}function aO(t,e,n){if(E.isString(t))try{return(e||JSON.parse)(t),E.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const _o={transitional:Sw,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=E.isObject(e);if(s&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return i?JSON.stringify(Cw(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e)||E.isReadableStream(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iO(e,this.formSerializer).toString();if((a=E.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oc(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),aO(e)):e}],transformResponse:[function(e){const n=this.transitional||_o.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(E.isResponse(e)||E.isReadableStream(e))return e;if(e&&E.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?$.from(a,$.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yt.classes.FormData,Blob:Yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],t=>{_o.headers[t]={}});const lO=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cO=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&lO[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},yg=Symbol("internals");function ls(t){return t&&String(t).trim().toLowerCase()}function Ta(t){return t===!1||t==null?t:E.isArray(t)?t.map(Ta):String(t)}function uO(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const dO=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Zc(t,e,n,r,i){if(E.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!E.isString(e)){if(E.isString(r))return e.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(e)}}function fO(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function hO(t,e){const n=E.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}class ut{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(a,l,c){const u=ls(l);if(!u)throw new Error("header name must be a non-empty string");const d=E.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Ta(a))}const o=(a,l)=>E.forEach(a,(c,u)=>s(c,u,l));if(E.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(E.isString(e)&&(e=e.trim())&&!dO(e))o(cO(e),n);else if(E.isHeaders(e))for(const[a,l]of e.entries())s(l,a,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=ls(e),e){const r=E.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return uO(i);if(E.isFunction(n))return n.call(this,i,r);if(E.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ls(e),e){const r=E.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Zc(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(o){if(o=ls(o),o){const a=E.findKey(r,o);a&&(!n||Zc(r,r[a],a,n))&&(delete r[a],i=!0)}}return E.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||Zc(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return E.forEach(this,(i,s)=>{const o=E.findKey(r,s);if(o){n[o]=Ta(i),delete n[s];return}const a=e?fO(s):String(s).trim();a!==s&&delete n[s],n[a]=Ta(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return E.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[yg]=this[yg]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=ls(o);r[a]||(hO(i,o),r[a]=!0)}return E.isArray(e)?e.forEach(s):s(e),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(ut.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});E.freezeMethods(ut);function eu(t,e){const n=this||_o,r=e||n,i=ut.from(r.headers);let s=r.data;return E.forEach(t,function(a){s=a.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Mw(t){return!!(t&&t.__CANCEL__)}function Vi(t,e,n){$.call(this,t??"canceled",$.ERR_CANCELED,e,n),this.name="CanceledError"}E.inherits(Vi,$,{__CANCEL__:!0});function Ew(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pO(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function mO(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[s];o||(o=c),n[i]=l,r[i]=c;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function gO(t,e){let n=0;const r=1e3/e;let i=null;return function(){const o=this===!0,a=Date.now();if(o||a-n>r)return i&&(clearTimeout(i),i=null),n=a,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,arguments)),r-(a-n)))}}const Ml=(t,e,n=3)=>{let r=0;const i=mO(50,250);return gO(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,c=i(l),u=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-o)/c:void 0,event:s,lengthComputable:a!=null};d[e?"download":"upload"]=!0,t(d)},n)},yO=Yt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=E.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),vO=Yt.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const o=[t+"="+encodeURIComponent(e)];E.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),E.isString(r)&&o.push("path="+r),E.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wO(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function xO(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Pw(t,e){return t&&!wO(e)?xO(t,e):e}const vg=t=>t instanceof ut?{...t}:t;function Vr(t,e){e=e||{};const n={};function r(c,u,d){return E.isPlainObject(c)&&E.isPlainObject(u)?E.merge.call({caseless:d},c,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function i(c,u,d){if(E.isUndefined(u)){if(!E.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function s(c,u){if(!E.isUndefined(u))return r(void 0,u)}function o(c,u){if(E.isUndefined(u)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in e)return r(c,u);if(d in t)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>i(vg(c),vg(u),!0)};return E.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=l[u]||i,f=d(t[u],e[u],u);E.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Tw=t=>{const e=Vr({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=ut.from(o),e.url=Dw(Pw(e.baseURL,e.url),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(E.isFormData(n)){if(Yt.hasStandardBrowserEnv||Yt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Yt.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(e)),r||r!==!1&&yO(e.url))){const c=i&&s&&vO.read(s);c&&o.set(i,c)}return e},_O=typeof XMLHttpRequest<"u",bO=_O&&function(t){return new Promise(function(n,r){const i=Tw(t);let s=i.data;const o=ut.from(i.headers).normalize();let{responseType:a}=i,l;function c(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function d(){if(!u)return;const h=ut.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};Ew(function(m){n(m),c()},function(m){r(m),c()},y),u=null}"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new $("Request aborted",$.ECONNABORTED,i,u)),u=null)},u.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,i,u)),u=null},u.ontimeout=function(){let p=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const y=i.transitional||Sw;i.timeoutErrorMessage&&(p=i.timeoutErrorMessage),r(new $(p,y.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,i,u)),u=null},s===void 0&&o.setContentType(null),"setRequestHeader"in u&&E.forEach(o.toJSON(),function(p,y){u.setRequestHeader(y,p)}),E.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),a&&a!=="json"&&(u.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&u.addEventListener("progress",Ml(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ml(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=h=>{u&&(r(!h||h.type?new Vi(null,t,u):h),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const f=pO(i.url);if(f&&Yt.protocols.indexOf(f)===-1){r(new $("Unsupported protocol "+f+":",$.ERR_BAD_REQUEST,t));return}u.send(s||null)})},kO=(t,e)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof $?c:new Vi(c instanceof Error?c.message:c))}};let s=e&&setTimeout(()=>{i(new $(`timeout ${e} of ms exceeded`,$.ETIMEDOUT))},e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]},DO=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},SO=async function*(t,e,n){for await(const r of t)yield*DO(ArrayBuffer.isView(r)?r:await n(String(r)),e)},wg=(t,e,n,r,i)=>{const s=SO(t,e,i);let o=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:c}=await s.next();if(l){a.close(),r();return}let u=c.byteLength;n&&n(o+=u),a.enqueue(new Uint8Array(c))},cancel(a){return r(a),s.return()}},{highWaterMark:2})},xg=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},ac=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ow=ac&&typeof ReadableStream=="function",xd=ac&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),CO=Ow&&(()=>{let t=!1;const e=new Request(Yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),_g=64*1024,_d=Ow&&!!(()=>{try{return E.isReadableStream(new Response("").body)}catch{}})(),El={stream:_d&&(t=>t.body)};ac&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!El[e]&&(El[e]=E.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})})(new Response);const MO=async t=>{if(t==null)return 0;if(E.isBlob(t))return t.size;if(E.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(E.isArrayBufferView(t))return t.byteLength;if(E.isURLSearchParams(t)&&(t=t+""),E.isString(t))return(await xd(t)).byteLength},EO=async(t,e)=>{const n=E.toFiniteNumber(t.getContentLength());return n??MO(e)},PO=ac&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Tw(t);c=c?(c+"").toLowerCase():"text";let[h,p]=i||s||o?kO([i,s],o):[],y,w;const m=()=>{!y&&setTimeout(()=>{h&&h.unsubscribe()}),y=!0};let g;try{if(l&&CO&&n!=="get"&&n!=="head"&&(g=await EO(u,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),D;E.isFormData(r)&&(D=C.headers.get("content-type"))&&u.setContentType(D),C.body&&(r=wg(C.body,_g,xg(g,Ml(l)),null,xd))}E.isString(d)||(d=d?"cors":"omit"),w=new Request(e,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let v=await fetch(w);const b=_d&&(c==="stream"||c==="response");if(_d&&(a||b)){const C={};["status","statusText","headers"].forEach(S=>{C[S]=v[S]});const D=E.toFiniteNumber(v.headers.get("content-length"));v=new Response(wg(v.body,_g,a&&xg(D,Ml(a,!0)),b&&m,xd),C)}c=c||"text";let k=await El[E.findKey(El,c)||"text"](v,t);return!b&&m(),p&&p(),await new Promise((C,D)=>{Ew(C,D,{data:k,headers:ut.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:w})})}catch(v){throw m(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,t,w),{cause:v.cause||v}):$.from(v,v&&v.code,t,w)}}),bd={http:UT,xhr:bO,fetch:PO};E.forEach(bd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const bg=t=>`- ${t}`,TO=t=>E.isFunction(t)||t===null||t===!1,Nw={getAdapter:t=>{t=E.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let o;if(r=n,!TO(n)&&(r=bd[(o=String(n)).toLowerCase()],r===void 0))throw new $(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
`+s.map(bg).join(`
`):" "+bg(s[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:bd};function tu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vi(null,t)}function kg(t){return tu(t),t.headers=ut.from(t.headers),t.data=eu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Nw.getAdapter(t.adapter||_o.adapter)(t).then(function(r){return tu(t),r.data=eu.call(t,t.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return Mw(r)||(tu(t),r&&r.response&&(r.response.data=eu.call(t,t.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const Rw="1.7.2",th={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{th[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Dg={};th.transitional=function(e,n,r){function i(s,o){return"[Axios v"+Rw+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(e===!1)throw new $(i(o," has been removed"+(n?" in "+n:"")),$.ERR_DEPRECATED);return n&&!Dg[o]&&(Dg[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,a):!0}};function OO(t,e,n){if(typeof t!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const a=t[s],l=a===void 0||o(a,s,t);if(l!==!0)throw new $("option "+s+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $("Unknown option "+s,$.ERR_BAD_OPTION)}}const kd={assertOptions:OO,validators:th},On=kd.validators;class Lr{constructor(e){this.defaults=e,this.interceptors={request:new gg,response:new gg}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Vr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&kd.assertOptions(r,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),i!=null&&(E.isFunction(i)?n.paramsSerializer={serialize:i}:kd.assertOptions(i,{encode:On.function,serialize:On.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&E.merge(s.common,s[n.method]);s&&E.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=ut.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const p=[kg.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=n;for(d=0;d<f;){const p=a[d++],y=a[d++];try{h=p(h)}catch(w){y.call(this,w);break}}try{u=kg.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Vr(this.defaults,e);const n=Pw(e.baseURL,e.url);return Dw(n,e.params,e.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(e){Lr.prototype[e]=function(n,r){return this.request(Vr(r||{},{method:e,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(e){function n(r){return function(s,o,a){return this.request(Vr(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Lr.prototype[e]=n(),Lr.prototype[e+"Form"]=n(!0)});class nh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,a){r.reason||(r.reason=new Vi(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new nh(function(i){e=i}),cancel:e}}}function NO(t){return function(n){return t.apply(null,n)}}function RO(t){return E.isObject(t)&&t.isAxiosError===!0}const Dd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dd).forEach(([t,e])=>{Dd[e]=t});function Lw(t){const e=new Lr(t),n=fw(Lr.prototype.request,e);return E.extend(n,Lr.prototype,e,{allOwnKeys:!0}),E.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Lw(Vr(t,i))},n}const Se=Lw(_o);Se.Axios=Lr;Se.CanceledError=Vi;Se.CancelToken=nh;Se.isCancel=Mw;Se.VERSION=Rw;Se.toFormData=oc;Se.AxiosError=$;Se.Cancel=Se.CanceledError;Se.all=function(e){return Promise.all(e)};Se.spread=NO;Se.isAxiosError=RO;Se.mergeConfig=Vr;Se.AxiosHeaders=ut;Se.formToJSON=t=>Cw(E.isHTMLForm(t)?new FormData(t):t);Se.getAdapter=Nw.getAdapter;Se.HttpStatusCode=Dd;Se.default=Se;function LO(){const[t,e]=R.useState(new Date),[n,r]=R.useState(new Date),[i,s]=R.useState([]),[o,a]=R.useState([]),[l,c]=R.useState(null),u=()=>{Se.get("https://www.servidordna.xyz/api/conversaciones/",{params:{fecha_desde:t.toISOString().split("T")[0],fecha_hasta:n.toISOString().split("T")[0]}}).then(h=>{s(h.data.conversaciones)}).catch(h=>{console.error("Error fetching conversaciones:",h)})},d=h=>{c(h),Se.get("https://www.servidordna.xyz/api/mensajes/",{params:{conversacion_id:h}}).then(p=>{a(p.data.mensajes)}).catch(p=>{console.error("Error fetching mensajes:",p)})},f=i.length;return _.jsxs("main",{className:"bg-[#E6EFF5] min-h-screen w-full overflow-y-auto h-auto flex flex-col items-center",children:[_.jsxs("div",{className:"bg-white m-8 rounded-lg h-[80px] flex flex-row items-center w-2/3 justify-between pr-7",children:[_.jsx("div",{className:"bg-[#78D64B] w-[50px] h-2/3 flex items-center justify-center rounded-lg ml-4",children:_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/smile.svg",alt:"icon"})}),_.jsx("h2",{className:"font-semibold ml-3",children:"Desde:"}),_.jsx(yd,{selected:t,onChange:h=>e(h),dateFormat:"dd/MM/yyyy",placeholderText:"Elija una fecha",className:"ml-2 bg-[#E6EFF5] p-2 text-gray-400 text-center rounded-lg z-20"}),_.jsx("h2",{className:"font-semibold ml-3",children:"Hasta:"}),_.jsx(yd,{selected:n,onChange:h=>r(h),dateFormat:"dd/MM/yyyy",placeholderText:"Elija una fecha",className:"ml-2 bg-[#E6EFF5] p-2 text-gray-400 text-center rounded-lg z-20"}),_.jsx("button",{onClick:u,className:"bg-[#78D64B] p-2 text-white font-semibold rounded-lg",children:"Buscar"})]}),_.jsxs("div",{className:"w-full h-full flex flex-row p-4",children:[_.jsxs("div",{className:"w-1/2 h-full p-4 rounded-lg overflow-y-auto max-h-[500px]",children:[_.jsxs("p",{className:"font-semibold",children:["Total de conversaciones: ",f]}),_.jsxs("table",{className:"min-w-full bg-white rounded-lg",children:[_.jsx("thead",{className:"bg-gray-200 text-gray-600 rounded-lg sticky top-0 z-1",children:_.jsxs("tr",{children:[_.jsx("th",{className:"w-1/6 py-2",children:"No."}),_.jsx("th",{className:"w-1/3 py-2",children:"Fecha Inicio"}),_.jsx("th",{className:"w-1/6 py-2",children:"Hora Inicio"}),_.jsx("th",{className:"w-1/6 py-2",children:"Num. Mensajes"}),_.jsx("th",{className:"w-1/6 py-2"})]})}),_.jsxs("tbody",{children:[i.map((h,p)=>_.jsxs("tr",{className:"text-center",onClick:()=>d(h.id),children:[_.jsx("td",{className:"py-2",children:p+1}),_.jsx("td",{className:"py-2",children:new Date(h.fecha_hora_inicio).toLocaleDateString()}),_.jsx("td",{className:"py-2",children:new Date(h.fecha_hora_inicio).toLocaleTimeString()}),_.jsx("td",{className:"py-2",children:h.numero_mensajes}),_.jsx("td",{className:"py-2",children:_.jsx("button",{className:"bg-[#78D64B] p-1 rounded text-white",children:"👁️"})})]},h.id)),_.jsxs("tr",{className:"bg-gray-200",children:[_.jsx("td",{className:"py-2 font-semibold",colSpan:"4"}),_.jsx("td",{})]})]})]})]}),_.jsx("div",{className:"w-1/2 h-full p-4",children:_.jsx("div",{className:"h-full max-h-[500px] border-2 border-[#78D64B] bg-white rounded-lg p-4 overflow-y-auto",children:l?o.map(h=>_.jsx("div",{className:`mb-2 p-2 rounded-lg ${h.tipo_mensaje==="usuario"?"bg-gray-200 text-gray-600":"bg-[#78D64B] text-white"}`,children:h.contenido_mensaje},h.id)):_.jsx("div",{className:"text-center text-gray-600",children:"Selecciona una conversación para ver los mensajes"})})})]})]})}function IO(){const[t,e]=R.useState("general"),[n,r]=R.useState("Reporte General"),i=o=>{switch(o){case"general":r("Reporte General"),e("general");break;case"productos":r("Reporte Productos"),e("productos");break;case"costo":r("Reporte Costos"),e("costo");break;case"chats":r("Reporte Chats"),e("chats");break;default:console.log(`Opción no válida
`);break}},s=o=>{switch(o){case"general":return _.jsx(bS,{});case"productos":return _.jsx(kS,{});case"costo":return _.jsx(aT,{});case"chats":return _.jsx(LO,{});default:console.log(`Opción no válida
`)}};return _.jsxs("main",{className:"flex flex-row h-screen w-full",children:[_.jsxs("section",{className:"ancho-barra bg-[#FFFFFF] fixed top-0 left-0 h-full",children:[_.jsxs("header",{className:"flex flex-row h-[80px] w-full items-center justify-center gap-4",children:[_.jsx("img",{src:"https://pruebasdna.com/wp-content/uploads/2024/06/central.svg",className:"h-[50px] w-[50px]",alt:"Central logo"}),_.jsx("h1",{className:"text-[#78D64B] font-bold text-3xl",children:"Central"})]}),_.jsx("div",{className:"flex flex-row h-full w-full",children:_.jsxs("ul",{className:"flex flex-col gap-10",children:[_.jsxs("li",{className:"flex flex-row gap-10 h-[70px] items-center",children:[_.jsx("div",{className:`${t==="general"?"bg-[#78D64B]":"bg-transparent"} h-full w-[8px] rounded-r-lg`}),_.jsxs("button",{className:"flex flex-row gap-4 items-center",onClick:()=>i("general"),children:[_.jsx("img",{src:t==="general"?"https://pruebasdna.com/wp-content/uploads/2024/06/home-green.svg":"https://pruebasdna.com/wp-content/uploads/2024/06/home.svg",className:"w-[30px] h-[30px]",alt:"Home"}),_.jsx("h3",{children:"General"})]})]}),_.jsxs("li",{className:"flex flex-row gap-10 h-[70px] items-center",children:[_.jsx("div",{className:`${t==="costo"?"bg-[#78D64B]":"bg-transparent"} h-full w-[8px] rounded-r-lg`}),_.jsxs("button",{className:"flex flex-row gap-4 items-center",onClick:()=>i("costo"),children:[_.jsx("img",{src:t==="costo"?"https://pruebasdna.com/wp-content/uploads/2024/06/costo-green.svg":"https://pruebasdna.com/wp-content/uploads/2024/06/cost.svg",className:"w-[30px] h-[30px]",alt:"Costos"}),_.jsx("h3",{children:"Costo"})]})]}),_.jsxs("li",{className:"flex flex-row gap-10 h-[70px] items-center",children:[_.jsx("div",{className:`${t==="chats"?"bg-[#78D64B]":"bg-transparent"} h-full w-[8px] rounded-r-lg`}),_.jsxs("button",{className:"flex flex-row gap-4 items-center",onClick:()=>i("chats"),children:[_.jsx("img",{src:t==="chats"?"https://pruebasdna.com/wp-content/uploads/2024/06/chats-green.svg":"https://pruebasdna.com/wp-content/uploads/2024/06/chats.svg",className:"w-[30px] h-[30px]",alt:"Chats"}),_.jsx("h3",{children:"Chats"})]})]})]})})]}),_.jsxs("section",{className:"w-full ml-[200px]",children:[_.jsx("header",{className:"h-[80px] w-full bg-[#FFFFFF] flex flex-row fixed top-0 z-10 items-center justify-between",children:_.jsx("div",{className:"flex w-1/2 h-full items-center",children:_.jsx("h2",{className:"font-bold text-[#78D64B] text-3xl ml-7",children:n})})}),_.jsx("main",{className:"h-full w-full mt-[80px] main-content",children:s(t)})]})]})}nu.createRoot(document.getElementById("root")).render(_.jsx(M.StrictMode,{children:_.jsx(IO,{})}));
