-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.js
89 lines (86 loc) · 590 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
(()=>{var eR=Object.create;var sc=Object.defineProperty,tR=Object.defineProperties,nR=Object.getOwnPropertyDescriptor,rR=Object.getOwnPropertyDescriptors,iR=Object.getOwnPropertyNames,oc=Object.getOwnPropertySymbols,aR=Object.getPrototypeOf,hm=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable;var R_=(e,t,n)=>t in e?sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eo=(e,t)=>{for(var n in t||(t={}))hm.call(t,n)&&R_(e,n,t[n]);if(oc)for(var n of oc(t))I_.call(t,n)&&R_(e,n,t[n]);return e},pm=(e,t)=>tR(e,rR(t)),oR=e=>sc(e,"__esModule",{value:!0});var N_=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var L_=(e,t)=>{var n={};for(var r in e)hm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&oc)for(var r of oc(e))t.indexOf(r)<0&&I_.call(e,r)&&(n[r]=e[r]);return n};var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sR=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of iR(t))!hm.call(e,i)&&(n||i!=="default")&&sc(e,i,{get:()=>t[i],enumerable:!(r=nR(t,i))||r.enumerable});return e},fn=(e,t)=>sR(oR(sc(e!=null?eR(aR(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var mm=$((b4,A_)=>{"use strict";var F_=Object.getOwnPropertySymbols,lR=Object.prototype.hasOwnProperty,uR=Object.prototype.propertyIsEnumerable;function cR(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function dR(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}A_.exports=dR()?Object.assign:function(e,t){for(var n,r=cR(e),i,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var o in n)lR.call(n,o)&&(r[o]=n[o]);if(F_){i=F_(n);for(var s=0;s<i.length;s++)uR.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r}});var G_=$(Re=>{"use strict";var wm=mm(),tr=typeof Symbol=="function"&&Symbol.for,_s=tr?Symbol.for("react.element"):60103,fR=tr?Symbol.for("react.portal"):60106,hR=tr?Symbol.for("react.fragment"):60107,pR=tr?Symbol.for("react.strict_mode"):60108,mR=tr?Symbol.for("react.profiler"):60114,gR=tr?Symbol.for("react.provider"):60109,vR=tr?Symbol.for("react.context"):60110,yR=tr?Symbol.for("react.forward_ref"):60112,_R=tr?Symbol.for("react.suspense"):60113,wR=tr?Symbol.for("react.memo"):60115,xR=tr?Symbol.for("react.lazy"):60116,W_=typeof Symbol=="function"&&Symbol.iterator;function ws(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Y_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z_={};function to(e,t,n){this.props=e,this.context=t,this.refs=z_,this.updater=n||Y_}to.prototype.isReactComponent={};to.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(ws(85));this.updater.enqueueSetState(this,e,t,"setState")};to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function q_(){}q_.prototype=to.prototype;function xm(e,t,n){this.props=e,this.context=t,this.refs=z_,this.updater=n||Y_}var bm=xm.prototype=new q_;bm.constructor=xm;wm(bm,to.prototype);bm.isPureReactComponent=!0;var Sm={current:null},H_=Object.prototype.hasOwnProperty,U_={key:!0,ref:!0,__self:!0,__source:!0};function B_(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)H_.call(t,r)&&!U_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),d=0;d<s;d++)u[d]=arguments[d+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:_s,type:e,key:a,ref:o,props:i,_owner:Sm.current}}function bR(e,t){return{$$typeof:_s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Mm(e){return typeof e=="object"&&e!==null&&e.$$typeof===_s}function SR(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var V_=/\/+/g,lc=[];function j_(e,t,n,r){if(lc.length){var i=lc.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function $_(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>lc.length&&lc.push(e)}function vm(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case _s:case fR:a=!0}}if(a)return n(r,e,t===""?"."+gm(e,0):t),1;if(a=0,t=t===""?".":t+":",Array.isArray(e))for(var o=0;o<e.length;o++){i=e[o];var s=t+gm(i,o);a+=vm(i,s,n,r)}else if(e===null||typeof e!="object"?s=null:(s=W_&&e[W_]||e["@@iterator"],s=typeof s=="function"?s:null),typeof s=="function")for(e=s.call(e),o=0;!(i=e.next()).done;)i=i.value,s=t+gm(i,o++),a+=vm(i,s,n,r);else if(i==="object")throw n=""+e,Error(ws(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function ym(e,t,n){return e==null?0:vm(e,"",t,n)}function gm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?SR(e.key):t.toString(36)}function MR(e,t){e.func.call(e.context,t,e.count++)}function kR(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?_m(e,r,n,function(a){return a}):e!=null&&(Mm(e)&&(e=bR(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(V_,"$&/")+"/")+n)),r.push(e))}function _m(e,t,n,r,i){var a="";n!=null&&(a=(""+n).replace(V_,"$&/")+"/"),t=j_(t,a,r,i),ym(e,kR,t),$_(t)}var Q_={current:null};function Vr(){var e=Q_.current;if(e===null)throw Error(ws(321));return e}var DR={ReactCurrentDispatcher:Q_,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Sm,IsSomeRendererActing:{current:!1},assign:wm};Re.Children={map:function(e,t,n){if(e==null)return e;var r=[];return _m(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=j_(null,null,t,n),ym(e,MR,t),$_(t)},count:function(e){return ym(e,function(){return null},null)},toArray:function(e){var t=[];return _m(e,t,null,function(n){return n}),t},only:function(e){if(!Mm(e))throw Error(ws(143));return e}};Re.Component=to;Re.Fragment=hR;Re.Profiler=mR;Re.PureComponent=xm;Re.StrictMode=pR;Re.Suspense=_R;Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DR;Re.cloneElement=function(e,t,n){if(e==null)throw Error(ws(267,e));var r=wm({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Sm.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)H_.call(t,u)&&!U_.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var d=0;d<u;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:_s,type:e.type,key:i,ref:a,props:r,_owner:o}};Re.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:vR,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:gR,_context:e},e.Consumer=e};Re.createElement=B_;Re.createFactory=function(e){var t=B_.bind(null,e);return t.type=e,t};Re.createRef=function(){return{current:null}};Re.forwardRef=function(e){return{$$typeof:yR,render:e}};Re.isValidElement=Mm;Re.lazy=function(e){return{$$typeof:xR,_ctor:e,_status:-1,_result:null}};Re.memo=function(e,t){return{$$typeof:wR,type:e,compare:t===void 0?null:t}};Re.useCallback=function(e,t){return Vr().useCallback(e,t)};Re.useContext=function(e,t){return Vr().useContext(e,t)};Re.useDebugValue=function(){};Re.useEffect=function(e,t){return Vr().useEffect(e,t)};Re.useImperativeHandle=function(e,t,n){return Vr().useImperativeHandle(e,t,n)};Re.useLayoutEffect=function(e,t){return Vr().useLayoutEffect(e,t)};Re.useMemo=function(e,t){return Vr().useMemo(e,t)};Re.useReducer=function(e,t,n){return Vr().useReducer(e,t,n)};Re.useRef=function(e){return Vr().useRef(e)};Re.useState=function(e){return Vr().useState(e)};Re.version="16.14.0"});var Tt=$((M4,X_)=>{"use strict";X_.exports=G_()});var nw=$(Ce=>{"use strict";var ro,Ss,fc,Em;typeof performance=="object"&&typeof performance.now=="function"?(K_=performance,Ce.unstable_now=function(){return K_.now()}):(km=Date,Z_=km.now(),Ce.unstable_now=function(){return km.now()-Z_});var K_,km,Z_;typeof window>"u"||typeof MessageChannel!="function"?(no=null,Dm=null,Cm=function(){if(no!==null)try{var e=Ce.unstable_now();no(!0,e),no=null}catch(t){throw setTimeout(Cm,0),t}},ro=function(e){no!==null?setTimeout(ro,0,e):(no=e,setTimeout(Cm,0))},Ss=function(e,t){Dm=setTimeout(e,t)},fc=function(){clearTimeout(Dm)},Ce.unstable_shouldYield=function(){return!1},Em=Ce.unstable_forceFrameRate=function(){}):(J_=window.setTimeout,ew=window.clearTimeout,typeof console<"u"&&(tw=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof tw!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),xs=!1,bs=null,uc=-1,Om=5,Pm=0,Ce.unstable_shouldYield=function(){return Ce.unstable_now()>=Pm},Em=function(){},Ce.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Om=0<e?Math.floor(1e3/e):5},Tm=new MessageChannel,cc=Tm.port2,Tm.port1.onmessage=function(){if(bs!==null){var e=Ce.unstable_now();Pm=e+Om;try{bs(!0,e)?cc.postMessage(null):(xs=!1,bs=null)}catch(t){throw cc.postMessage(null),t}}else xs=!1},ro=function(e){bs=e,xs||(xs=!0,cc.postMessage(null))},Ss=function(e,t){uc=J_(function(){e(Ce.unstable_now())},t)},fc=function(){ew(uc),uc=-1});var no,Dm,Cm,J_,ew,tw,xs,bs,uc,Om,Pm,Tm,cc;function Rm(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(i!==void 0&&0<dc(i,t))e[r]=t,e[n]=i,n=r;else break e}}function nr(e){return e=e[0],e===void 0?null:e}function hc(e){var t=e[0];if(t!==void 0){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(o!==void 0&&0>dc(o,n))u!==void 0&&0>dc(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else if(u!==void 0&&0>dc(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}return null}function dc(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}var xr=[],pi=[],CR=1,Ln=null,Qt=3,pc=!1,la=!1,Ms=!1;function Im(e){for(var t=nr(pi);t!==null;){if(t.callback===null)hc(pi);else if(t.startTime<=e)hc(pi),t.sortIndex=t.expirationTime,Rm(xr,t);else break;t=nr(pi)}}function Nm(e){if(Ms=!1,Im(e),!la)if(nr(xr)!==null)la=!0,ro(Lm);else{var t=nr(pi);t!==null&&Ss(Nm,t.startTime-e)}}function Lm(e,t){la=!1,Ms&&(Ms=!1,fc()),pc=!0;var n=Qt;try{for(Im(t),Ln=nr(xr);Ln!==null&&(!(Ln.expirationTime>t)||e&&!Ce.unstable_shouldYield());){var r=Ln.callback;if(typeof r=="function"){Ln.callback=null,Qt=Ln.priorityLevel;var i=r(Ln.expirationTime<=t);t=Ce.unstable_now(),typeof i=="function"?Ln.callback=i:Ln===nr(xr)&&hc(xr),Im(t)}else hc(xr);Ln=nr(xr)}if(Ln!==null)var a=!0;else{var o=nr(pi);o!==null&&Ss(Nm,o.startTime-t),a=!1}return a}finally{Ln=null,Qt=n,pc=!1}}var OR=Em;Ce.unstable_IdlePriority=5;Ce.unstable_ImmediatePriority=1;Ce.unstable_LowPriority=4;Ce.unstable_NormalPriority=3;Ce.unstable_Profiling=null;Ce.unstable_UserBlockingPriority=2;Ce.unstable_cancelCallback=function(e){e.callback=null};Ce.unstable_continueExecution=function(){la||pc||(la=!0,ro(Lm))};Ce.unstable_getCurrentPriorityLevel=function(){return Qt};Ce.unstable_getFirstCallbackNode=function(){return nr(xr)};Ce.unstable_next=function(e){switch(Qt){case 1:case 2:case 3:var t=3;break;default:t=Qt}var n=Qt;Qt=t;try{return e()}finally{Qt=n}};Ce.unstable_pauseExecution=function(){};Ce.unstable_requestPaint=OR;Ce.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Qt;Qt=e;try{return t()}finally{Qt=n}};Ce.unstable_scheduleCallback=function(e,t,n){var r=Ce.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:CR++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,Rm(pi,e),nr(xr)===null&&e===nr(pi)&&(Ms?fc():Ms=!0,Ss(Nm,n-r))):(e.sortIndex=i,Rm(xr,e),la||pc||(la=!0,ro(Lm))),e};Ce.unstable_wrapCallback=function(e){var t=Qt;return function(){var n=Qt;Qt=t;try{return e.apply(this,arguments)}finally{Qt=n}}}});var iw=$((D4,rw)=>{"use strict";rw.exports=nw()});var Bb=$(qn=>{"use strict";var sd=Tt(),Ze=mm(),Et=iw();function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!sd)throw Error(Z(227));var vx=new Set,el={};function _a(e,t){ko(e,t),ko(e+"Capture",t)}function ko(e,t){for(el[e]=t,e=0;e<t.length;e++)vx.add(t[e])}var Kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PR=/^[: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]*$/,aw=Object.prototype.hasOwnProperty,ow={},sw={};function TR(e){return aw.call(sw,e)?!0:aw.call(ow,e)?!1:PR.test(e)?sw[e]=!0:(ow[e]=!0,!1)}function ER(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function RR(e,t,n,r){if(t===null||typeof t>"u"||ER(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function sn(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wt[e]=new sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wt[t]=new sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wt[e]=new sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wt[e]=new sn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Wt[e]=new sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wt[e]=new sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wt[e]=new sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wt[e]=new sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wt[e]=new sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bg=/[\-:]([a-z])/g;function Vg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bg,Vg);Wt[t]=new sn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bg,Vg);Wt[t]=new sn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bg,Vg);Wt[t]=new sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wt[e]=new sn(e,1,!1,e.toLowerCase(),null,!1,!1)});Wt.xlinkHref=new sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wt[e]=new sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function jg(e,t,n,r){var i=Wt.hasOwnProperty(t)?Wt[t]:null,a=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(RR(t,n,i,r)&&(n=null),r||i===null?TR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var wa=sd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,As=60103,ca=60106,gi=60107,$g=60108,Hs=60114,Qg=60109,Gg=60110,ld=60112,Us=60113,Wc=60120,ud=60115,Xg=60116,Kg=60121,Zg=60128,yx=60129,Jg=60130,ig=60131;typeof Symbol=="function"&&Symbol.for&&(Ct=Symbol.for,As=Ct("react.element"),ca=Ct("react.portal"),gi=Ct("react.fragment"),$g=Ct("react.strict_mode"),Hs=Ct("react.profiler"),Qg=Ct("react.provider"),Gg=Ct("react.context"),ld=Ct("react.forward_ref"),Us=Ct("react.suspense"),Wc=Ct("react.suspense_list"),ud=Ct("react.memo"),Xg=Ct("react.lazy"),Kg=Ct("react.block"),Ct("react.scope"),Zg=Ct("react.opaque.id"),yx=Ct("react.debug_trace_mode"),Jg=Ct("react.offscreen"),ig=Ct("react.legacy_hidden"));var Ct,lw=typeof Symbol=="function"&&Symbol.iterator;function ks(e){return e===null||typeof e!="object"?null:(e=lw&&e[lw]||e["@@iterator"],typeof e=="function"?e:null)}var Fm;function Ws(e){if(Fm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fm=t&&t[1]||""}return`
`+Fm+e}var Am=!1;function mc(e,t){if(!e||Am)return"";Am=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),a=r.stack.split(`
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s])return`
`+i[o].replace(" at new "," at ");while(1<=o&&0<=s);break}}}finally{Am=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ws(e):""}function IR(e){switch(e.tag){case 5:return Ws(e.type);case 16:return Ws("Lazy");case 13:return Ws("Suspense");case 19:return Ws("SuspenseList");case 0:case 2:case 15:return e=mc(e.type,!1),e;case 11:return e=mc(e.type.render,!1),e;case 22:return e=mc(e.type._render,!1),e;case 1:return e=mc(e.type,!0),e;default:return""}}function mo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case gi:return"Fragment";case ca:return"Portal";case Hs:return"Profiler";case $g:return"StrictMode";case Us:return"Suspense";case Wc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gg:return(e.displayName||"Context")+".Consumer";case Qg:return(e._context.displayName||"Context")+".Provider";case ld:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case ud:return mo(e.type);case Kg:return mo(e._render);case Xg:t=e._payload,e=e._init;try{return mo(e(t))}catch(n){}}return null}function Oi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NR(e){var t=_x(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gc(e){e._valueTracker||(e._valueTracker=NR(e))}function wx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_x(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ag(e,t){var n=t.checked;return Ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function uw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Oi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xx(e,t){t=t.checked,t!=null&&jg(e,"checked",t,!1)}function og(e,t){xx(e,t);var n=Oi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sg(e,t.type,n):t.hasOwnProperty("defaultValue")&&sg(e,t.type,Oi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sg(e,t,n){(t!=="number"||Yc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function LR(e){var t="";return sd.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function lg(e,t){return e=Ze({children:void 0},t),(t=LR(t.children))&&(e.children=t),e}function go(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Oi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ug(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return Ze({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function dw(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Oi(n)}}function bx(e,t){var n=Oi(t.value),r=Oi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function fw(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var cg={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Sx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function dg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Sx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vc,Mx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==cg.svg||"innerHTML"in e)e.innerHTML=t;else{for(vc=vc||document.createElement("div"),vc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bs={animationIterationCount:!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},FR=["Webkit","ms","Moz","O"];Object.keys(Bs).forEach(function(e){FR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bs[t]=Bs[e]})});function kx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bs.hasOwnProperty(e)&&Bs[e]?(""+t).trim():t+"px"}function Dx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=kx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var AR=Ze({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 fg(e,t){if(t){if(AR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function hg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ev(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pg=null,vo=null,yo=null;function hw(e){if(e=ml(e)){if(typeof pg!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=md(t),pg(e.stateNode,e.type,t))}}function Cx(e){vo?yo?yo.push(e):yo=[e]:vo=e}function Ox(){if(vo){var e=vo,t=yo;if(yo=vo=null,hw(e),t)for(e=0;e<t.length;e++)hw(t[e])}}function tv(e,t){return e(t)}function Px(e,t,n,r,i){return e(t,n,r,i)}function nv(){}var Tx=tv,da=!1,Wm=!1;function rv(){(vo!==null||yo!==null)&&(nv(),Ox())}function WR(e,t,n){if(Wm)return e(t,n);Wm=!0;try{return Tx(e,t,n)}finally{Wm=!1,rv()}}function nl(e,t){var n=e.stateNode;if(n===null)return null;var r=md(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Z(231,t,typeof n));return n}var mg=!1;if(Kr)try{io={},Object.defineProperty(io,"passive",{get:function(){mg=!0}}),window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch(e){mg=!1}var io;function YR(e,t,n,r,i,a,o,s,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var Vs=!1,zc=null,qc=!1,gg=null,zR={onError:function(e){Vs=!0,zc=e}};function qR(e,t,n,r,i,a,o,s,u){Vs=!1,zc=null,YR.apply(zR,arguments)}function HR(e,t,n,r,i,a,o,s,u){if(qR.apply(this,arguments),Vs){if(Vs){var d=zc;Vs=!1,zc=null}else throw Error(Z(198));qc||(qc=!0,gg=d)}}function xa(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ex(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pw(e){if(xa(e)!==e)throw Error(Z(188))}function UR(e){var t=e.alternate;if(!t){if(t=xa(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return pw(i),e;if(a===r)return pw(i),t;a=a.sibling}throw Error(Z(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function Rx(e){if(e=UR(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function mw(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Ix,iv,Nx,Lx,vg=!1,br=[],wi=null,xi=null,bi=null,rl=new Map,il=new Map,Ds=[],gw="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 yg(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function vw(e,t){switch(e){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":xi=null;break;case"mouseover":case"mouseout":bi=null;break;case"pointerover":case"pointerout":rl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":il.delete(t.pointerId)}}function Cs(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e=yg(t,n,r,i,a),t!==null&&(t=ml(t),t!==null&&iv(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function BR(e,t,n,r,i){switch(t){case"focusin":return wi=Cs(wi,e,t,n,r,i),!0;case"dragenter":return xi=Cs(xi,e,t,n,r,i),!0;case"mouseover":return bi=Cs(bi,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return rl.set(a,Cs(rl.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,il.set(a,Cs(il.get(a)||null,e,t,n,r,i)),!0}return!1}function VR(e){var t=fa(e.target);if(t!==null){var n=xa(t);if(n!==null){if(t=n.tag,t===13){if(t=Ex(n),t!==null){e.blockedOn=t,Lx(e.lanePriority,function(){Et.unstable_runWithPriority(e.priority,function(){Nx(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Oc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=ml(n),t!==null&&iv(t),e.blockedOn=n,!1;t.shift()}return!0}function yw(e,t,n){Oc(e)&&n.delete(t)}function jR(){for(vg=!1;0<br.length;){var e=br[0];if(e.blockedOn!==null){e=ml(e.blockedOn),e!==null&&Ix(e);break}for(var t=e.targetContainers;0<t.length;){var n=lv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&br.shift()}wi!==null&&Oc(wi)&&(wi=null),xi!==null&&Oc(xi)&&(xi=null),bi!==null&&Oc(bi)&&(bi=null),rl.forEach(yw),il.forEach(yw)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,vg||(vg=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,jR)))}function Fx(e){function t(i){return Os(i,e)}if(0<br.length){Os(br[0],e);for(var n=1;n<br.length;n++){var r=br[n];r.blockedOn===e&&(r.blockedOn=null)}}for(wi!==null&&Os(wi,e),xi!==null&&Os(xi,e),bi!==null&&Os(bi,e),rl.forEach(t),il.forEach(t),n=0;n<Ds.length;n++)r=Ds[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ds.length&&(n=Ds[0],n.blockedOn===null);)VR(n),n.blockedOn===null&&Ds.shift()}function yc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lo={animationend:yc("Animation","AnimationEnd"),animationiteration:yc("Animation","AnimationIteration"),animationstart:yc("Animation","AnimationStart"),transitionend:yc("Transition","TransitionEnd")},Ym={},Ax={};Kr&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function cd(e){if(Ym[e])return Ym[e];if(!lo[e])return e;var t=lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ax)return Ym[e]=t[n];return e}var Wx=cd("animationend"),Yx=cd("animationiteration"),zx=cd("animationstart"),qx=cd("transitionend"),Hx=new Map,av=new Map,$R=["abort","abort",Wx,"animationEnd",Yx,"animationIteration",zx,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",qx,"transitionEnd","waiting","waiting"];function ov(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),av.set(r,t),Hx.set(r,i),_a(i,[r])}}var QR=Et.unstable_now;QR();var He=8;function oo(e){if((1&e)!==0)return He=15,1;if((2&e)!==0)return He=14,2;if((4&e)!==0)return He=13,4;var t=24&e;return t!==0?(He=12,t):(e&32)!==0?(He=11,32):(t=192&e,t!==0?(He=10,t):(e&256)!==0?(He=9,256):(t=3584&e,t!==0?(He=8,t):(e&4096)!==0?(He=7,4096):(t=4186112&e,t!==0?(He=6,t):(t=62914560&e,t!==0?(He=5,t):e&67108864?(He=4,67108864):(e&134217728)!==0?(He=3,134217728):(t=805306368&e,t!==0?(He=2,t):(1073741824&e)!==0?(He=1,1073741824):(He=8,e))))))}function GR(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function XR(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(Z(358,e))}}function al(e,t){var n=e.pendingLanes;if(n===0)return He=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)r=a,i=He=15;else if(a=n&134217727,a!==0){var u=a&~o;u!==0?(r=oo(u),i=He):(s&=a,s!==0&&(r=oo(s),i=He))}else a=n&~o,a!==0?(r=oo(a),i=He):s!==0&&(r=oo(s),i=He);if(r===0)return 0;if(r=31-Pi(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&o)===0){if(oo(t),i<=He)return t;He=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Pi(t),i=1<<n,r|=e[n],t&=~i;return r}function Ux(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hc(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=so(24&~t),e===0?Hc(10,t):e;case 10:return e=so(192&~t),e===0?Hc(8,t):e;case 8:return e=so(3584&~t),e===0&&(e=so(4186112&~t),e===0&&(e=512)),e;case 2:return t=so(805306368&~t),t===0&&(t=268435456),t}throw Error(Z(358,e))}function so(e){return e&-e}function zm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function dd(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Pi(t),e[t]=n}var Pi=Math.clz32?Math.clz32:JR,KR=Math.log,ZR=Math.LN2;function JR(e){return e===0?32:31-(KR(e)/ZR|0)|0}var eI=Et.unstable_UserBlockingPriority,tI=Et.unstable_runWithPriority,Pc=!0;function nI(e,t,n,r){da||nv();var i=sv,a=da;da=!0;try{Px(i,e,t,n,r)}finally{(da=a)||rv()}}function rI(e,t,n,r){tI(eI,sv.bind(null,e,t,n,r))}function sv(e,t,n,r){if(Pc){var i;if((i=(t&4)===0)&&0<br.length&&-1<gw.indexOf(e))e=yg(null,e,t,n,r),br.push(e);else{var a=lv(e,t,n,r);if(a===null)i&&vw(e,r);else{if(i){if(-1<gw.indexOf(e)){e=yg(a,e,t,n,r),br.push(e);return}if(BR(a,e,t,n,r))return;vw(e,r)}nb(e,t,r,null,n)}}}}function lv(e,t,n,r){var i=ev(r);if(i=fa(i),i!==null){var a=xa(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=Ex(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return nb(e,t,r,i,n),null}var vi=null,uv=null,Tc=null;function Bx(){if(Tc)return Tc;var e,t=uv,n=t.length,r,i="value"in vi?vi.value:vi.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Tc=i.slice(e,1<r?1-r:void 0)}function Ec(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _c(){return!0}function _w(){return!1}function Sn(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?_c:_w,this.isPropagationStopped=_w,this}return Ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_c)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_c)},persist:function(){},isPersistent:_c}),t}var Po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cv=Sn(Po),pl=Ze({},Po,{view:0,detail:0}),iI=Sn(pl),qm,Hm,Ps,fd=Ze({},pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ps&&(Ps&&e.type==="mousemove"?(qm=e.screenX-Ps.screenX,Hm=e.screenY-Ps.screenY):Hm=qm=0,Ps=e),qm)},movementY:function(e){return"movementY"in e?e.movementY:Hm}}),ww=Sn(fd),aI=Ze({},fd,{dataTransfer:0}),oI=Sn(aI),sI=Ze({},pl,{relatedTarget:0}),Um=Sn(sI),lI=Ze({},Po,{animationName:0,elapsedTime:0,pseudoElement:0}),uI=Sn(lI),cI=Ze({},Po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dI=Sn(cI),fI=Ze({},Po,{data:0}),xw=Sn(fI),hI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pI={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"},mI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mI[e])?!!t[e]:!1}function dv(){return gI}var vI=Ze({},pl,{key:function(e){if(e.key){var t=hI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ec(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dv,charCode:function(e){return e.type==="keypress"?Ec(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ec(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yI=Sn(vI),_I=Ze({},fd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bw=Sn(_I),wI=Ze({},pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dv}),xI=Sn(wI),bI=Ze({},Po,{propertyName:0,elapsedTime:0,pseudoElement:0}),SI=Sn(bI),MI=Ze({},fd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kI=Sn(MI),DI=[9,13,27,32],fv=Kr&&"CompositionEvent"in window,js=null;Kr&&"documentMode"in document&&(js=document.documentMode);var CI=Kr&&"TextEvent"in window&&!js,Vx=Kr&&(!fv||js&&8<js&&11>=js),Sw=String.fromCharCode(32),Mw=!1;function jx(e,t){switch(e){case"keyup":return DI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $x(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uo=!1;function OI(e,t){switch(e){case"compositionend":return $x(t);case"keypress":return t.which!==32?null:(Mw=!0,Sw);case"textInput":return e=t.data,e===Sw&&Mw?null:e;default:return null}}function PI(e,t){if(uo)return e==="compositionend"||!fv&&jx(e,t)?(e=Bx(),Tc=uv=vi=null,uo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vx&&t.locale!=="ko"?null:t.data;default:return null}}var TI={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 kw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!TI[e.type]:t==="textarea"}function Qx(e,t,n,r){Cx(r),t=Uc(t,"onChange"),0<t.length&&(n=new cv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $s=null,ol=null;function EI(e){Jx(e,0)}function hd(e){var t=fo(e);if(wx(t))return e}function RI(e,t){if(e==="change")return t}var Gx=!1;Kr&&(Kr?(xc="oninput"in document,xc||(Bm=document.createElement("div"),Bm.setAttribute("oninput","return;"),xc=typeof Bm.oninput=="function"),wc=xc):wc=!1,Gx=wc&&(!document.documentMode||9<document.documentMode));var wc,xc,Bm;function Dw(){$s&&($s.detachEvent("onpropertychange",Xx),ol=$s=null)}function Xx(e){if(e.propertyName==="value"&&hd(ol)){var t=[];if(Qx(t,ol,e,ev(e)),e=EI,da)e(t);else{da=!0;try{tv(e,t)}finally{da=!1,rv()}}}}function II(e,t,n){e==="focusin"?(Dw(),$s=t,ol=n,$s.attachEvent("onpropertychange",Xx)):e==="focusout"&&Dw()}function NI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hd(ol)}function LI(e,t){if(e==="click")return hd(t)}function FI(e,t){if(e==="input"||e==="change")return hd(t)}function AI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:AI,WI=Object.prototype.hasOwnProperty;function sl(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!WI.call(t,n[r])||!Fn(e[n[r]],t[n[r]]))return!1;return!0}function Cw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ow(e,t){var n=Cw(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cw(n)}}function Kx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pw(){for(var e=window,t=Yc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=Yc(e.document)}return t}function _g(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var YI=Kr&&"documentMode"in document&&11>=document.documentMode,co=null,wg=null,Qs=null,xg=!1;function Tw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xg||co==null||co!==Yc(r)||(r=co,"selectionStart"in r&&_g(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}),Qs&&sl(Qs,r)||(Qs=r,r=Uc(wg,"onSelect"),0<r.length&&(t=new cv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=co)))}ov("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);ov("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);ov($R,2);for(Vm="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),bc=0;bc<Vm.length;bc++)av.set(Vm[bc],0);var Vm,bc;ko("onMouseEnter",["mouseout","mouseover"]);ko("onMouseLeave",["mouseout","mouseover"]);ko("onPointerEnter",["pointerout","pointerover"]);ko("onPointerLeave",["pointerout","pointerover"]);_a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_a("onBeforeInput",["compositionend","keypress","textInput","paste"]);_a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ys="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ys));function Ew(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,HR(r,t,void 0,e),e.currentTarget=null}function Jx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,d=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Ew(i,s,d),a=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,d=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Ew(i,s,d),a=u}}}if(qc)throw e=gg,qc=!1,gg=null,e}function je(e,t){var n=ib(t),r=e+"__bubble";n.has(r)||(tb(t,e,2,!1),n.add(r))}var Rw="_reactListening"+Math.random().toString(36).slice(2);function eb(e){e[Rw]||(e[Rw]=!0,vx.forEach(function(t){Zx.has(t)||Iw(t,!1,e,null),Iw(t,!0,e,null)}))}function Iw(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e==="selectionchange"&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&Zx.has(e)){if(e!=="scroll")return;i|=2,a=r}var o=ib(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),tb(a,e,i,t),o.add(s))}function tb(e,t,n,r){var i=av.get(t);switch(i===void 0?2:i){case 0:i=nI;break;case 1:i=rI;break;default:i=sv}n=i.bind(null,t,n,e),i=void 0,!mg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function nb(e,t,n,r,i){var a=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;s!==null;){if(o=fa(s),o===null)return;if(u=o.tag,u===5||u===6){r=a=o;continue e}s=s.parentNode}}r=r.return}WR(function(){var d=a,p=ev(n),g=[];e:{var v=Hx.get(e);if(v!==void 0){var S=cv,C=e;switch(e){case"keypress":if(Ec(n)===0)break e;case"keydown":case"keyup":S=yI;break;case"focusin":C="focus",S=Um;break;case"focusout":C="blur",S=Um;break;case"beforeblur":case"afterblur":S=Um;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":S=ww;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=oI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=xI;break;case Wx:case Yx:case zx:S=uI;break;case qx:S=SI;break;case"scroll":S=iI;break;case"wheel":S=kI;break;case"copy":case"cut":case"paste":S=dI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=bw}var x=(t&4)!==0,w=!x&&e==="scroll",_=x?v!==null?v+"Capture":null:v;x=[];for(var D=d,O;D!==null;){O=D;var E=O.stateNode;if(O.tag===5&&E!==null&&(O=E,_!==null&&(E=nl(D,_),E!=null&&x.push(ll(D,E,O)))),w)break;D=D.return}0<x.length&&(v=new S(v,C,null,n,p),g.push({event:v,listeners:x}))}}if((t&7)===0){e:{if(v=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",v&&(t&16)===0&&(C=n.relatedTarget||n.fromElement)&&(fa(C)||C[To]))break e;if((S||v)&&(v=p.window===p?p:(v=p.ownerDocument)?v.defaultView||v.parentWindow:window,S?(C=n.relatedTarget||n.toElement,S=d,C=C?fa(C):null,C!==null&&(w=xa(C),C!==w||C.tag!==5&&C.tag!==6)&&(C=null)):(S=null,C=d),S!==C)){if(x=ww,E="onMouseLeave",_="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(x=bw,E="onPointerLeave",_="onPointerEnter",D="pointer"),w=S==null?v:fo(S),O=C==null?v:fo(C),v=new x(E,D+"leave",S,n,p),v.target=w,v.relatedTarget=O,E=null,fa(p)===d&&(x=new x(_,D+"enter",C,n,p),x.target=O,x.relatedTarget=w,E=x),w=E,S&&C)t:{for(x=S,_=C,D=0,O=x;O;O=ao(O))D++;for(O=0,E=_;E;E=ao(E))O++;for(;0<D-O;)x=ao(x),D--;for(;0<O-D;)_=ao(_),O--;for(;D--;){if(x===_||_!==null&&x===_.alternate)break t;x=ao(x),_=ao(_)}x=null}else x=null;S!==null&&Nw(g,v,S,x,!1),C!==null&&w!==null&&Nw(g,w,C,x,!0)}}e:{if(v=d?fo(d):window,S=v.nodeName&&v.nodeName.toLowerCase(),S==="select"||S==="input"&&v.type==="file")var L=RI;else if(kw(v))if(Gx)L=FI;else{L=NI;var Y=II}else(S=v.nodeName)&&S.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(L=LI);if(L&&(L=L(e,d))){Qx(g,L,n,p);break e}Y&&Y(e,v,d),e==="focusout"&&(Y=v._wrapperState)&&Y.controlled&&v.type==="number"&&sg(v,"number",v.value)}switch(Y=d?fo(d):window,e){case"focusin":(kw(Y)||Y.contentEditable==="true")&&(co=Y,wg=d,Qs=null);break;case"focusout":Qs=wg=co=null;break;case"mousedown":xg=!0;break;case"contextmenu":case"mouseup":case"dragend":xg=!1,Tw(g,n,p);break;case"selectionchange":if(YI)break;case"keydown":case"keyup":Tw(g,n,p)}var q;if(fv)e:{switch(e){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else uo?jx(e,n)&&(B="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(B="onCompositionStart");B&&(Vx&&n.locale!=="ko"&&(uo||B!=="onCompositionStart"?B==="onCompositionEnd"&&uo&&(q=Bx()):(vi=p,uv="value"in vi?vi.value:vi.textContent,uo=!0)),Y=Uc(d,B),0<Y.length&&(B=new xw(B,e,null,n,p),g.push({event:B,listeners:Y}),q?B.data=q:(q=$x(n),q!==null&&(B.data=q)))),(q=CI?OI(e,n):PI(e,n))&&(d=Uc(d,"onBeforeInput"),0<d.length&&(p=new xw("onBeforeInput","beforeinput",null,n,p),g.push({event:p,listeners:d}),p.data=q))}Jx(g,t)})}function ll(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=nl(e,n),a!=null&&r.unshift(ll(e,a,i)),a=nl(e,t),a!=null&&r.push(ll(e,a,i))),e=e.return}return r}function ao(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nw(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,d=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&d!==null&&(s=d,i?(u=nl(n,a),u!=null&&o.unshift(ll(n,u,s))):i||(u=nl(n,a),u!=null&&o.push(ll(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function Bc(){}var jm=null,$m=null;function rb(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bg(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lw=typeof setTimeout=="function"?setTimeout:void 0,zI=typeof clearTimeout=="function"?clearTimeout:void 0;function hv(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function _o(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Fw(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Qm=0;function qI(e){return{$$typeof:Zg,toString:e,valueOf:e}}var pd=Math.random().toString(36).slice(2),yi="__reactFiber$"+pd,Vc="__reactProps$"+pd,To="__reactContainer$"+pd,Aw="__reactEvents$"+pd;function fa(e){var t=e[yi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[To]||n[yi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fw(e);e!==null;){if(n=e[yi])return n;e=Fw(e)}return t}e=n,n=e.parentNode}return null}function ml(e){return e=e[yi]||e[To],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function md(e){return e[Vc]||null}function ib(e){var t=e[Aw];return t===void 0&&(t=e[Aw]=new Set),t}var Sg=[],ho=-1;function Ii(e){return{current:e}}function $e(e){0>ho||(e.current=Sg[ho],Sg[ho]=null,ho--)}function ut(e,t){ho++,Sg[ho]=e.current,e.current=t}var Ti={},Zt=Ii(Ti),mn=Ii(!1),ga=Ti;function Do(e,t){var n=e.type.contextTypes;if(!n)return Ti;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gn(e){return e=e.childContextTypes,e!=null}function jc(){$e(mn),$e(Zt)}function Ww(e,t,n){if(Zt.current!==Ti)throw Error(Z(168));ut(Zt,t),ut(mn,n)}function ab(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Z(108,mo(t)||"Unknown",i));return Ze({},n,r)}function Rc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,ga=Zt.current,ut(Zt,e),ut(mn,mn.current),!0}function Yw(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=ab(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,$e(mn),$e(Zt),ut(Zt,e)):$e(mn),ut(mn,n)}var pv=null,ma=null,HI=Et.unstable_runWithPriority,mv=Et.unstable_scheduleCallback,Mg=Et.unstable_cancelCallback,UI=Et.unstable_shouldYield,zw=Et.unstable_requestPaint,kg=Et.unstable_now,BI=Et.unstable_getCurrentPriorityLevel,gd=Et.unstable_ImmediatePriority,ob=Et.unstable_UserBlockingPriority,sb=Et.unstable_NormalPriority,lb=Et.unstable_LowPriority,ub=Et.unstable_IdlePriority,Gm={},VI=zw!==void 0?zw:function(){},jr=null,Ic=null,Xm=!1,qw=kg(),Xt=1e4>qw?kg:function(){return kg()-qw};function Co(){switch(BI()){case gd:return 99;case ob:return 98;case sb:return 97;case lb:return 96;case ub:return 95;default:throw Error(Z(332))}}function cb(e){switch(e){case 99:return gd;case 98:return ob;case 97:return sb;case 96:return lb;case 95:return ub;default:throw Error(Z(332))}}function va(e,t){return e=cb(e),HI(e,t)}function ul(e,t,n){return e=cb(e),mv(e,t,n)}function Cr(){if(Ic!==null){var e=Ic;Ic=null,Mg(e)}db()}function db(){if(!Xm&&jr!==null){Xm=!0;var e=0;try{var t=jr;va(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),jr=null}catch(n){throw jr!==null&&(jr=jr.slice(e+1)),mv(gd,Cr),n}finally{Xm=!1}}}var jI=wa.ReactCurrentBatchConfig;function rr(e,t){if(e&&e.defaultProps){t=Ze({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var $c=Ii(null),Qc=null,po=null,Gc=null;function gv(){Gc=po=Qc=null}function vv(e){var t=$c.current;$e($c),e.type._context._currentValue=t}function fb(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function wo(e,t){Qc=e,Gc=po=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ir=!0),e.firstContext=null)}function Yn(e,t){if(Gc!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Gc=e,t=1073741823),t={context:e,observedBits:t,next:null},po===null){if(Qc===null)throw Error(Z(308));po=t,Qc.dependencies={lanes:0,firstContext:t,responders:null}}else po=po.next=t;return e._currentValue}var mi=!1;function yv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function hb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Hw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=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};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var i=e.updateQueue;mi=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,d=u.next;u.next=null,o===null?a=d:o.next=d,o=u;var p=e.alternate;if(p!==null){p=p.updateQueue;var g=p.lastBaseUpdate;g!==o&&(g===null?p.firstBaseUpdate=d:g.next=d,p.lastBaseUpdate=u)}}if(a!==null){g=i.baseState,o=0,p=d=u=null;do{s=a.lane;var v=a.eventTime;if((r&s)===s){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var S=e,C=a;switch(s=t,v=n,C.tag){case 1:if(S=C.payload,typeof S=="function"){g=S.call(v,g,s);break e}g=S;break e;case 3:S.flags=S.flags&-4097|64;case 0:if(S=C.payload,s=typeof S=="function"?S.call(v,g,s):S,s==null)break e;g=Ze({},g,s);break e;case 2:mi=!0}}a.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[a]:s.push(a))}else v={eventTime:v,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(d=p=v,u=g):p=p.next=v,o|=s;if(a=a.next,a===null){if(s=i.shared.pending,s===null)break;a=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);p===null&&(u=g),i.baseState=u,i.firstBaseUpdate=d,i.lastBaseUpdate=p,vl|=o,e.lanes=o,e.memoizedState=g}}function Uw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Z(191,i));i.call(r)}}}var pb=new sd.Component().refs;function Xc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vd={isMounted:function(e){return(e=e._reactInternals)?xa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bn(),i=ki(e),a=Si(r,i);a.payload=t,n!=null&&(a.callback=n),Mi(e,a),Di(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bn(),i=ki(e),a=Si(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),Mi(e,a),Di(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bn(),r=ki(e),i=Si(n,r);i.tag=2,t!=null&&(i.callback=t),Mi(e,i),Di(e,r,n)}};function Bw(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!sl(n,r)||!sl(i,a):!0}function mb(e,t,n){var r=!1,i=Ti,a=t.contextType;return typeof a=="object"&&a!==null?a=Yn(a):(i=gn(t)?ga:Zt.current,r=t.contextTypes,a=(r=r!=null)?Do(e,i):Ti),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Vw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vd.enqueueReplaceState(t,t.state,null)}function Dg(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=pb,yv(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Yn(a):(a=gn(t)?ga:Zt.current,i.context=Do(e,a)),cl(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Xc(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&vd.enqueueReplaceState(i,i.state,null),cl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Sc=Array.isArray;function Ts(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=r.refs;o===pb&&(o=r.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function Mc(e,t){if(e.type!=="textarea")throw Error(Z(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function gb(e){function t(w,_){if(e){var D=w.lastEffect;D!==null?(D.nextEffect=_,w.lastEffect=_):w.firstEffect=w.lastEffect=_,_.nextEffect=null,_.flags=8}}function n(w,_){if(!e)return null;for(;_!==null;)t(w,_),_=_.sibling;return null}function r(w,_){for(w=new Map;_!==null;)_.key!==null?w.set(_.key,_):w.set(_.index,_),_=_.sibling;return w}function i(w,_){return w=Ri(w,_),w.index=0,w.sibling=null,w}function a(w,_,D){return w.index=D,e?(D=w.alternate,D!==null?(D=D.index,D<_?(w.flags=2,_):D):(w.flags=2,_)):_}function o(w){return e&&w.alternate===null&&(w.flags=2),w}function s(w,_,D,O){return _===null||_.tag!==6?(_=tg(D,w.mode,O),_.return=w,_):(_=i(_,D),_.return=w,_)}function u(w,_,D,O){return _!==null&&_.elementType===D.type?(O=i(_,D.props),O.ref=Ts(w,_,D),O.return=w,O):(O=Ac(D.type,D.key,D.props,null,w.mode,O),O.ref=Ts(w,_,D),O.return=w,O)}function d(w,_,D,O){return _===null||_.tag!==4||_.stateNode.containerInfo!==D.containerInfo||_.stateNode.implementation!==D.implementation?(_=ng(D,w.mode,O),_.return=w,_):(_=i(_,D.children||[]),_.return=w,_)}function p(w,_,D,O,E){return _===null||_.tag!==7?(_=Mo(D,w.mode,O,E),_.return=w,_):(_=i(_,D),_.return=w,_)}function g(w,_,D){if(typeof _=="string"||typeof _=="number")return _=tg(""+_,w.mode,D),_.return=w,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case As:return D=Ac(_.type,_.key,_.props,null,w.mode,D),D.ref=Ts(w,null,_),D.return=w,D;case ca:return _=ng(_,w.mode,D),_.return=w,_}if(Sc(_)||ks(_))return _=Mo(_,w.mode,D,null),_.return=w,_;Mc(w,_)}return null}function v(w,_,D,O){var E=_!==null?_.key:null;if(typeof D=="string"||typeof D=="number")return E!==null?null:s(w,_,""+D,O);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case As:return D.key===E?D.type===gi?p(w,_,D.props.children,O,E):u(w,_,D,O):null;case ca:return D.key===E?d(w,_,D,O):null}if(Sc(D)||ks(D))return E!==null?null:p(w,_,D,O,null);Mc(w,D)}return null}function S(w,_,D,O,E){if(typeof O=="string"||typeof O=="number")return w=w.get(D)||null,s(_,w,""+O,E);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case As:return w=w.get(O.key===null?D:O.key)||null,O.type===gi?p(_,w,O.props.children,E,O.key):u(_,w,O,E);case ca:return w=w.get(O.key===null?D:O.key)||null,d(_,w,O,E)}if(Sc(O)||ks(O))return w=w.get(D)||null,p(_,w,O,E,null);Mc(_,O)}return null}function C(w,_,D,O){for(var E=null,L=null,Y=_,q=_=0,B=null;Y!==null&&q<D.length;q++){Y.index>q?(B=Y,Y=null):B=Y.sibling;var V=v(w,Y,D[q],O);if(V===null){Y===null&&(Y=B);break}e&&Y&&V.alternate===null&&t(w,Y),_=a(V,_,q),L===null?E=V:L.sibling=V,L=V,Y=B}if(q===D.length)return n(w,Y),E;if(Y===null){for(;q<D.length;q++)Y=g(w,D[q],O),Y!==null&&(_=a(Y,_,q),L===null?E=Y:L.sibling=Y,L=Y);return E}for(Y=r(w,Y);q<D.length;q++)B=S(Y,w,q,D[q],O),B!==null&&(e&&B.alternate!==null&&Y.delete(B.key===null?q:B.key),_=a(B,_,q),L===null?E=B:L.sibling=B,L=B);return e&&Y.forEach(function(re){return t(w,re)}),E}function x(w,_,D,O){var E=ks(D);if(typeof E!="function")throw Error(Z(150));if(D=E.call(D),D==null)throw Error(Z(151));for(var L=E=null,Y=_,q=_=0,B=null,V=D.next();Y!==null&&!V.done;q++,V=D.next()){Y.index>q?(B=Y,Y=null):B=Y.sibling;var re=v(w,Y,V.value,O);if(re===null){Y===null&&(Y=B);break}e&&Y&&re.alternate===null&&t(w,Y),_=a(re,_,q),L===null?E=re:L.sibling=re,L=re,Y=B}if(V.done)return n(w,Y),E;if(Y===null){for(;!V.done;q++,V=D.next())V=g(w,V.value,O),V!==null&&(_=a(V,_,q),L===null?E=V:L.sibling=V,L=V);return E}for(Y=r(w,Y);!V.done;q++,V=D.next())V=S(Y,w,q,V.value,O),V!==null&&(e&&V.alternate!==null&&Y.delete(V.key===null?q:V.key),_=a(V,_,q),L===null?E=V:L.sibling=V,L=V);return e&&Y.forEach(function(J){return t(w,J)}),E}return function(w,_,D,O){var E=typeof D=="object"&&D!==null&&D.type===gi&&D.key===null;E&&(D=D.props.children);var L=typeof D=="object"&&D!==null;if(L)switch(D.$$typeof){case As:e:{for(L=D.key,E=_;E!==null;){if(E.key===L){switch(E.tag){case 7:if(D.type===gi){n(w,E.sibling),_=i(E,D.props.children),_.return=w,w=_;break e}break;default:if(E.elementType===D.type){n(w,E.sibling),_=i(E,D.props),_.ref=Ts(w,E,D),_.return=w,w=_;break e}}n(w,E);break}else t(w,E);E=E.sibling}D.type===gi?(_=Mo(D.props.children,w.mode,O,D.key),_.return=w,w=_):(O=Ac(D.type,D.key,D.props,null,w.mode,O),O.ref=Ts(w,_,D),O.return=w,w=O)}return o(w);case ca:e:{for(E=D.key;_!==null;){if(_.key===E)if(_.tag===4&&_.stateNode.containerInfo===D.containerInfo&&_.stateNode.implementation===D.implementation){n(w,_.sibling),_=i(_,D.children||[]),_.return=w,w=_;break e}else{n(w,_);break}else t(w,_);_=_.sibling}_=ng(D,w.mode,O),_.return=w,w=_}return o(w)}if(typeof D=="string"||typeof D=="number")return D=""+D,_!==null&&_.tag===6?(n(w,_.sibling),_=i(_,D),_.return=w,w=_):(n(w,_),_=tg(D,w.mode,O),_.return=w,w=_),o(w);if(Sc(D))return C(w,_,D,O);if(ks(D))return x(w,_,D,O);if(L&&Mc(w,D),typeof D>"u"&&!E)switch(w.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Z(152,mo(w.type)||"Component"))}return n(w,_)}}var Kc=gb(!0),vb=gb(!1),gl={},kr=Ii(gl),dl=Ii(gl),fl=Ii(gl);function ha(e){if(e===gl)throw Error(Z(174));return e}function Cg(e,t){switch(ut(fl,t),ut(dl,e),ut(kr,gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dg(t,e)}$e(kr),ut(kr,t)}function Oo(){$e(kr),$e(dl),$e(fl)}function jw(e){ha(fl.current);var t=ha(kr.current),n=dg(t,e.type);t!==n&&(ut(dl,e),ut(kr,n))}function _v(e){dl.current===e&&($e(kr),$e(dl))}var lt=Ii(0);function Zc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qr=null,_i=null,Dr=!1;function yb(e,t){var n=An(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function $w(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Og(e){if(Dr){var t=_i;if(t){var n=t;if(!$w(e,t)){if(t=_o(n.nextSibling),!t||!$w(e,t)){e.flags=e.flags&-1025|2,Dr=!1,Qr=e;return}yb(Qr,n)}Qr=e,_i=_o(t.firstChild)}else e.flags=e.flags&-1025|2,Dr=!1,Qr=e}}function Qw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qr=e}function kc(e){if(e!==Qr)return!1;if(!Dr)return Qw(e),Dr=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!bg(t,e.memoizedProps))for(t=_i;t;)yb(e,t),t=_o(t.nextSibling);if(Qw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_i=_o(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_i=null}}else _i=Qr?_o(e.stateNode.nextSibling):null;return!0}function Km(){_i=Qr=null,Dr=!1}var xo=[];function wv(){for(var e=0;e<xo.length;e++)xo[e]._workInProgressVersionPrimary=null;xo.length=0}var Gs=wa.ReactCurrentDispatcher,Wn=wa.ReactCurrentBatchConfig,hl=0,gt=null,Gt=null,Ft=null,Jc=!1,Xs=!1;function hn(){throw Error(Z(321))}function xv(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function bv(e,t,n,r,i,a){if(hl=a,gt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gs.current=e===null||e.memoizedState===null?QI:GI,e=n(r,i),Xs){a=0;do{if(Xs=!1,!(25>a))throw Error(Z(301));a+=1,Ft=Gt=null,t.updateQueue=null,Gs.current=XI,e=n(r,i)}while(Xs)}if(Gs.current=rd,t=Gt!==null&&Gt.next!==null,hl=0,Ft=Gt=gt=null,Jc=!1,t)throw Error(Z(300));return e}function pa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?gt.memoizedState=Ft=e:Ft=Ft.next=e,Ft}function ba(){if(Gt===null){var e=gt.alternate;e=e!==null?e.memoizedState:null}else e=Gt.next;var t=Ft===null?gt.memoizedState:Ft.next;if(t!==null)Ft=t,Gt=e;else{if(e===null)throw Error(Z(310));Gt=e,e={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},Ft===null?gt.memoizedState=Ft=e:Ft=Ft.next=e}return Ft}function Sr(e,t){return typeof t=="function"?t(e):t}function Es(e){var t=ba(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=Gt,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=o=a=null,u=i;do{var d=u.lane;if((hl&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(o=s=p,a=r):s=s.next=p,gt.lanes|=d,vl|=d}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=o,Fn(r,t.memoizedState)||(ir=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Rs(e){var t=ba(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Fn(a,t.memoizedState)||(ir=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Gw(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(hl&e)===e)&&(t._workInProgressVersionPrimary=r,xo.push(t))),e)return n(t._source);throw xo.push(t),Error(Z(350))}function _b(e,t,n,r){var i=on;if(i===null)throw Error(Z(349));var a=t._getVersion,o=a(t._source),s=Gs.current,u=s.useState(function(){return Gw(i,t,n)}),d=u[1],p=u[0];u=Ft;var g=e.memoizedState,v=g.refs,S=v.getSnapshot,C=g.source;g=g.subscribe;var x=gt;return e.memoizedState={refs:v,source:t,subscribe:r},s.useEffect(function(){v.getSnapshot=n,v.setSnapshot=d;var w=a(t._source);if(!Fn(o,w)){w=n(t._source),Fn(p,w)||(d(w),w=ki(x),i.mutableReadLanes|=w&i.pendingLanes),w=i.mutableReadLanes,i.entangledLanes|=w;for(var _=i.entanglements,D=w;0<D;){var O=31-Pi(D),E=1<<O;_[O]|=w,D&=~E}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var w=v.getSnapshot,_=v.setSnapshot;try{_(w(t._source));var D=ki(x);i.mutableReadLanes|=D&i.pendingLanes}catch(O){_(function(){throw O})}})},[t,r]),Fn(S,n)&&Fn(C,t)&&Fn(g,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:p},e.dispatch=d=kv.bind(null,gt,e),u.queue=e,u.baseQueue=null,p=Gw(i,t,n),u.memoizedState=u.baseState=p),p}function wb(e,t,n){var r=ba();return _b(r,e,t,n)}function Is(e){var t=pa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:e},e=e.dispatch=kv.bind(null,gt,e),[t.memoizedState,e]}function ed(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=gt.updateQueue,t===null?(t={lastEffect:null},gt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Xw(e){var t=pa();return e={current:e},t.memoizedState=e}function td(){return ba().memoizedState}function Pg(e,t,n,r){var i=pa();gt.flags|=e,i.memoizedState=ed(1|t,n,void 0,r===void 0?null:r)}function Sv(e,t,n,r){var i=ba();r=r===void 0?null:r;var a=void 0;if(Gt!==null){var o=Gt.memoizedState;if(a=o.destroy,r!==null&&xv(r,o.deps)){ed(t,n,a,r);return}}gt.flags|=e,i.memoizedState=ed(1|t,n,a,r)}function Kw(e,t){return Pg(516,4,e,t)}function nd(e,t){return Sv(516,4,e,t)}function xb(e,t){return Sv(4,2,e,t)}function bb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sb(e,t,n){return n=n!=null?n.concat([e]):null,Sv(4,2,bb.bind(null,t,e),n)}function Mv(){}function Mb(e,t){var n=ba();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xv(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kb(e,t){var n=ba();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xv(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $I(e,t){var n=Co();va(98>n?98:n,function(){e(!0)}),va(97<n?97:n,function(){var r=Wn.transition;Wn.transition=1;try{e(!1),t()}finally{Wn.transition=r}})}function kv(e,t,n){var r=bn(),i=ki(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===gt||o!==null&&o===gt)Xs=Jc=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,n);if(a.eagerReducer=o,a.eagerState=u,Fn(u,s))return}catch(d){}finally{}Di(e,i,r)}}var rd={readContext:Yn,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useOpaqueIdentifier:hn,unstable_isNewReconciler:!1},QI={readContext:Yn,useCallback:function(e,t){return pa().memoizedState=[e,t===void 0?null:t],e},useContext:Yn,useEffect:Kw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pg(4,2,bb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pg(4,2,e,t)},useMemo:function(e,t){var n=pa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=kv.bind(null,gt,e),[r.memoizedState,e]},useRef:Xw,useState:Is,useDebugValue:Mv,useDeferredValue:function(e){var t=Is(e),n=t[0],r=t[1];return Kw(function(){var i=Wn.transition;Wn.transition=1;try{r(e)}finally{Wn.transition=i}},[e]),n},useTransition:function(){var e=Is(!1),t=e[0];return e=$I.bind(null,e[1]),Xw(e),[e,t]},useMutableSource:function(e,t,n){var r=pa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},_b(r,e,t,n)},useOpaqueIdentifier:function(){if(Dr){var e=!1,t=qI(function(){throw e||(e=!0,n("r:"+(Qm++).toString(36))),Error(Z(355))}),n=Is(t)[1];return(gt.mode&2)===0&&(gt.flags|=516,ed(5,function(){n("r:"+(Qm++).toString(36))},void 0,null)),t}return t="r:"+(Qm++).toString(36),Is(t),t},unstable_isNewReconciler:!1},GI={readContext:Yn,useCallback:Mb,useContext:Yn,useEffect:nd,useImperativeHandle:Sb,useLayoutEffect:xb,useMemo:kb,useReducer:Es,useRef:td,useState:function(){return Es(Sr)},useDebugValue:Mv,useDeferredValue:function(e){var t=Es(Sr),n=t[0],r=t[1];return nd(function(){var i=Wn.transition;Wn.transition=1;try{r(e)}finally{Wn.transition=i}},[e]),n},useTransition:function(){var e=Es(Sr)[0];return[td().current,e]},useMutableSource:wb,useOpaqueIdentifier:function(){return Es(Sr)[0]},unstable_isNewReconciler:!1},XI={readContext:Yn,useCallback:Mb,useContext:Yn,useEffect:nd,useImperativeHandle:Sb,useLayoutEffect:xb,useMemo:kb,useReducer:Rs,useRef:td,useState:function(){return Rs(Sr)},useDebugValue:Mv,useDeferredValue:function(e){var t=Rs(Sr),n=t[0],r=t[1];return nd(function(){var i=Wn.transition;Wn.transition=1;try{r(e)}finally{Wn.transition=i}},[e]),n},useTransition:function(){var e=Rs(Sr)[0];return[td().current,e]},useMutableSource:wb,useOpaqueIdentifier:function(){return Rs(Sr)[0]},unstable_isNewReconciler:!1},KI=wa.ReactCurrentOwner,ir=!1;function pn(e,t,n,r){t.child=e===null?vb(t,null,n,r):Kc(t,e.child,n,r)}function Zw(e,t,n,r,i){n=n.render;var a=t.ref;return wo(t,i),r=bv(e,t,n,r,a,i),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Gr(e,t,i)):(t.flags|=1,pn(e,t,r,i),t.child)}function Jw(e,t,n,r,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!Ev(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Db(e,t,o,r,i,a)):(e=Ac(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,n=n.compare,n=n!==null?n:sl,n(i,r)&&e.ref===t.ref)?Gr(e,t,a):(t.flags|=1,e=Ri(o,r),e.ref=t.ref,e.return=t,t.child=e)}function Db(e,t,n,r,i,a){if(e!==null&&sl(e.memoizedProps,r)&&e.ref===t.ref)if(ir=!1,(a&i)!==0)(e.flags&16384)!==0&&(ir=!0);else return t.lanes=e.lanes,Gr(e,t,a);return Tg(e,t,n,r,a)}function Zm(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},Cc(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},Cc(t,a!==null?a.baseLanes:n);else return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Cc(t,e),null;else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Cc(t,r);return pn(e,t,i,n),t.child}function Cb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Tg(e,t,n,r,i){var a=gn(n)?ga:Zt.current;return a=Do(t,a),wo(t,i),n=bv(e,t,n,r,a,i),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Gr(e,t,i)):(t.flags|=1,pn(e,t,n,i),t.child)}function ex(e,t,n,r,i){if(gn(n)){var a=!0;Rc(t)}else a=!1;if(wo(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),mb(t,n,r),Dg(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=Yn(d):(d=gn(n)?ga:Zt.current,d=Do(t,d));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==d)&&Vw(t,o,r,d),mi=!1;var v=t.memoizedState;o.state=v,cl(t,r,o,i),u=t.memoizedState,s!==r||v!==u||mn.current||mi?(typeof p=="function"&&(Xc(t,n,p,r),u=t.memoizedState),(s=mi||Bw(t,n,s,r,v,u,d))?(g||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"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{o=t.stateNode,hb(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:rr(t.type,s),o.props=d,g=t.pendingProps,v=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Yn(u):(u=gn(n)?ga:Zt.current,u=Do(t,u));var S=n.getDerivedStateFromProps;(p=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==g||v!==u)&&Vw(t,o,r,u),mi=!1,v=t.memoizedState,o.state=v,cl(t,r,o,i);var C=t.memoizedState;s!==g||v!==C||mn.current||mi?(typeof S=="function"&&(Xc(t,n,S,r),C=t.memoizedState),(d=mi||Bw(t,n,d,r,v,C,u))?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,C,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,C,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=C),o.props=r,o.state=C,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),r=!1)}return Eg(e,t,n,r,a,i)}function Eg(e,t,n,r,i,a){Cb(e,t);var o=(t.flags&64)!==0;if(!r&&!o)return i&&Yw(t,n,!1),Gr(e,t,a);r=t.stateNode,KI.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Kc(t,e.child,null,a),t.child=Kc(t,null,s,a)):pn(e,t,s,a),t.memoizedState=r.state,i&&Yw(t,n,!0),t.child}function tx(e){var t=e.stateNode;t.pendingContext?Ww(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ww(e,t.context,!1),Cg(e,t.containerInfo)}var Dc={dehydrated:null,retryLane:0};function nx(e,t,n){var r=t.pendingProps,i=lt.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),ut(lt,i&1),e===null?(r.fallback!==void 0&&Og(t),e=r.children,i=r.fallback,a?(e=rx(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Dc,e):typeof r.unstable_expectedLoadTime=="number"?(e=rx(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Dc,t.lanes=33554432,e):(n=Rv({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?a?(r=ax(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Dc,r):(n=ix(e,t,r.children,n),t.memoizedState=null,n):a?(r=ax(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Dc,r):(n=ix(e,t,r.children,n),t.memoizedState=null,n)}function rx(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},(i&2)===0&&a!==null?(a.childLanes=0,a.pendingProps=t):a=Rv(t,i,0,null),n=Mo(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function ix(e,t,n,r){var i=e.child;return e=i.sibling,n=Ri(i,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ax(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return(a&2)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,o=n.lastEffect,o!==null?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ri(o,s),e!==null?r=Ri(e,r):(r=Mo(r,a,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ox(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),fb(e.return,t)}function Jm(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function sx(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(pn(e,t,r.children,n),r=lt.current,(r&2)!==0)r=r&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ox(e,n);else if(e.tag===19)ox(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ut(lt,r),(t.mode&2)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Zc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Jm(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Jm(t,!0,n,null,a,t.lastEffect);break;case"together":Jm(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Gr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=Ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Ob,Rg,Pb,Tb;Ob=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Rg=function(){};Pb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ha(kr.current);var a=null;switch(n){case"input":i=ag(e,i),r=ag(e,r),a=[];break;case"option":i=lg(e,i),r=lg(e,r),a=[];break;case"select":i=Ze({},i,{value:void 0}),r=Ze({},r,{value:void 0}),a=[];break;case"textarea":i=ug(e,i),r=ug(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bc)}fg(n,r);var o;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var s=i[d];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(el.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in r){var u=r[d];if(s=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&u!==s&&(u!=null||s!=null))if(d==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(el.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&je("scroll",e),a||s===u||(a=[])):typeof u=="object"&&u!==null&&u.$$typeof===Zg?u.toString():(a=a||[]).push(d,u))}n&&(a=a||[]).push("style",n);var d=a;(t.updateQueue=d)&&(t.flags|=4)}};Tb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ns(e,t){if(!Dr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ZI(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gn(t.type)&&jc(),null;case 3:return Oo(),$e(mn),$e(Zt),wv(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kc(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Rg(t),null;case 5:_v(t);var i=ha(fl.current);if(n=t.type,e!==null&&t.stateNode!=null)Pb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return null}if(e=ha(kr.current),kc(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[yi]=t,r[Vc]=a,n){case"dialog":je("cancel",r),je("close",r);break;case"iframe":case"object":case"embed":je("load",r);break;case"video":case"audio":for(e=0;e<Ys.length;e++)je(Ys[e],r);break;case"source":je("error",r);break;case"img":case"image":case"link":je("error",r),je("load",r);break;case"details":je("toggle",r);break;case"input":uw(r,a),je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},je("invalid",r);break;case"textarea":dw(r,a),je("invalid",r)}fg(n,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):el.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&je("scroll",r));switch(n){case"input":gc(r),cw(r,a,!0);break;case"textarea":gc(r),fw(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Bc)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===cg.html&&(e=Sx(n)),e===cg.html?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[yi]=t,e[Vc]=r,Ob(e,t,!1,!1),t.stateNode=e,o=hg(n,r),n){case"dialog":je("cancel",e),je("close",e),i=r;break;case"iframe":case"object":case"embed":je("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ys.length;i++)je(Ys[i],e);i=r;break;case"source":je("error",e),i=r;break;case"img":case"image":case"link":je("error",e),je("load",e),i=r;break;case"details":je("toggle",e),i=r;break;case"input":uw(e,r),i=ag(e,r),je("invalid",e);break;case"option":i=lg(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ze({},r,{value:void 0}),je("invalid",e);break;case"textarea":dw(e,r),i=ug(e,r),je("invalid",e);break;default:i=r}fg(n,i);var s=i;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];a==="style"?Dx(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Mx(e,u)):a==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&tl(e,u):typeof u=="number"&&tl(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(el.hasOwnProperty(a)?u!=null&&a==="onScroll"&&je("scroll",e):u!=null&&jg(e,a,u,o))}switch(n){case"input":gc(e),cw(e,r,!1);break;case"textarea":gc(e),fw(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Oi(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?go(e,!!r.multiple,a,!1):r.defaultValue!=null&&go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bc)}rb(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Tb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));n=ha(fl.current),ha(kr.current),kc(t)?(r=t.stateNode,n=t.memoizedProps,r[yi]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yi]=t,t.stateNode=r)}return null;case 13:return $e(lt),r=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&kc(t):n=e.memoizedState!==null,r&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(lt.current&1)!==0?At===0&&(At=3):((At===0||At===3)&&(At=4),on===null||(vl&134217727)===0&&(Ro&134217727)===0||bo(on,Kt))),(r||n)&&(t.flags|=4),null);case 4:return Oo(),Rg(t),e===null&&eb(t.stateNode.containerInfo),null;case 10:return vv(t),null;case 17:return gn(t.type)&&jc(),null;case 19:if($e(lt),r=t.memoizedState,r===null)return null;if(a=(t.flags&64)!==0,o=r.rendering,o===null)if(a)Ns(r,!1);else{if(At!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(o=Zc(e),o!==null){for(t.flags|=64,Ns(r,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ut(lt,lt.current&1|2),t.child}e=e.sibling}r.tail!==null&&Xt()>Wg&&(t.flags|=64,a=!0,Ns(r,!1),t.lanes=33554432)}else{if(!a)if(e=Zc(o),e!==null){if(t.flags|=64,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ns(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Dr)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Xt()-r.renderingStartTime>Wg&&n!==1073741824&&(t.flags|=64,a=!0,Ns(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(n=r.last,n!==null?n.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Xt(),n.sibling=null,t=lt.current,ut(lt,a?t&1|2:t&1),n):null;case 23:case 24:return Tv(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Z(156,t.tag))}function JI(e){switch(e.tag){case 1:gn(e.type)&&jc();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Oo(),$e(mn),$e(Zt),wv(),t=e.flags,(t&64)!==0)throw Error(Z(285));return e.flags=t&-4097|64,e;case 5:return _v(e),null;case 13:return $e(lt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return $e(lt),null;case 4:return Oo(),null;case 10:return vv(e),null;case 23:case 24:return Tv(),null;default:return null}}function Dv(e,t){try{var n="",r=t;do n+=IR(r),r=r.return;while(r);var i=n}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i}}function Ig(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eN=typeof WeakMap=="function"?WeakMap:Map;function Eb(e,t,n){n=Si(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,Yg=r),Ig(e,t)},n}function Rb(e,t,n){n=Si(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return Ig(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this),Ig(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}var tN=typeof WeakSet=="function"?WeakSet:Set;function lx(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Ci(e,n)}else t.current=null}function nN(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:rr(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&hv(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Z(163))}function rN(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,(i&4)!==0&&(i&1)!==0&&(qb(n,e),dN(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:rr(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Uw(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Uw(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&rb(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Fx(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Z(163))}function ux(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=kx("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&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}}function cx(e,t){if(ma&&typeof ma.onCommitFiberUnmount=="function")try{ma.onCommitFiberUnmount(pv,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if((r&4)!==0)qb(t,n);else{r=t;try{i()}catch(a){Ci(r,a)}}n=n.next}while(n!==e)}break;case 1:if(lx(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ci(t,a)}break;case 5:lx(t);break;case 4:Ib(e,t)}}function dx(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function fx(e){return e.tag===5||e.tag===3||e.tag===4}function hx(e){e:{for(var t=e.return;t!==null;){if(fx(t))break e;t=t.return}throw Error(Z(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(Z(161))}n.flags&16&&(tl(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||fx(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Ng(e,n,t):Lg(e,n,t)}function Ng(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bc));else if(r!==4&&(e=e.child,e!==null))for(Ng(e,t,n),e=e.sibling;e!==null;)Ng(e,t,n),e=e.sibling}function Lg(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lg(e,t,n),e=e.sibling;e!==null;)Lg(e,t,n),e=e.sibling}function Ib(e,t){for(var n=t,r=!1,i,a;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(Z(160));switch(i=r.stateNode,r.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var o=e,s=n,u=s;;)if(cx(o,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a?(o=i,s=n.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,a=!0,n.child.return=n,n=n.child;continue}}else if(cx(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function eg(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(n[Vc]=r,e==="input"&&r.type==="radio"&&r.name!=null&&xx(n,r),hg(e,i),t=hg(e,r),i=0;i<a.length;i+=2){var o=a[i],s=a[i+1];o==="style"?Dx(n,s):o==="dangerouslySetInnerHTML"?Mx(n,s):o==="children"?tl(n,s):jg(n,o,s,t)}switch(e){case"input":og(n,r);break;case"textarea":bx(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,a=r.value,a!=null?go(n,!!r.multiple,a,!1):e!==!!r.multiple&&(r.defaultValue!=null?go(n,!!r.multiple,r.defaultValue,!0):go(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(Z(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Fx(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Pv=Xt(),ux(t.child,!0)),px(t);return;case 19:px(t);return;case 17:return;case 23:case 24:ux(t,t.memoizedState!==null);return}throw Error(Z(163))}function px(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tN),t.forEach(function(r){var i=pN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function iN(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var aN=Math.ceil,id=wa.ReactCurrentDispatcher,Cv=wa.ReactCurrentOwner,ce=0,on=null,Ot=null,Kt=0,ya=0,Fg=Ii(0),At=0,yd=null,Eo=0,vl=0,Ro=0,Ov=0,Ag=null,Pv=0,Wg=1/0;function Io(){Wg=Xt()+500}var ie=null,ad=!1,Yg=null,Mr=null,Ei=!1,Ks=null,zs=90,zg=[],qg=[],Xr=null,Zs=0,Hg=null,Nc=-1,$r=0,Lc=0,Js=null,Fc=!1;function bn(){return(ce&48)!==0?Xt():Nc!==-1?Nc:Nc=Xt()}function ki(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return Co()===99?1:2;if($r===0&&($r=Eo),jI.transition!==0){Lc!==0&&(Lc=Ag!==null?Ag.pendingLanes:0),e=$r;var t=4186112&~Lc;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Co(),(ce&4)!==0&&e===98?e=Hc(12,$r):(e=GR(e),e=Hc(e,$r)),e}function Di(e,t,n){if(50<Zs)throw Zs=0,Hg=null,Error(Z(185));if(e=_d(e,t),e===null)return null;dd(e,t,n),e===on&&(Ro|=t,At===4&&bo(e,Kt));var r=Co();t===1?(ce&8)!==0&&(ce&48)===0?Ug(e):(zn(e,n),ce===0&&(Io(),Cr())):((ce&4)===0||r!==98&&r!==99||(Xr===null?Xr=new Set([e]):Xr.add(e)),zn(e,n)),Ag=e}function _d(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function zn(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Pi(o),u=1<<s,d=a[s];if(d===-1){if((u&r)===0||(u&i)!==0){d=t,oo(u);var p=He;a[s]=10<=p?d+250:6<=p?d+5e3:-1}}else d<=t&&(e.expiredLanes|=u);o&=~u}if(r=al(e,e===on?Kt:0),t=He,r===0)n!==null&&(n!==Gm&&Mg(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Gm&&Mg(n)}t===15?(n=Ug.bind(null,e),jr===null?(jr=[n],Ic=mv(gd,db)):jr.push(n),n=Gm):t===14?n=ul(99,Ug.bind(null,e)):(n=XR(t),n=ul(n,Nb.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Nb(e){if(Nc=-1,Lc=$r=0,(ce&48)!==0)throw Error(Z(327));var t=e.callbackNode;if(Ni()&&e.callbackNode!==t)return null;var n=al(e,e===on?Kt:0);if(n===0)return null;var r=n,i=ce;ce|=16;var a=Wb();(on!==e||Kt!==r)&&(Io(),So(e,r));do try{lN();break}catch(s){Ab(e,s)}while(1);if(gv(),id.current=a,ce=i,Ot!==null?r=0:(on=null,Kt=0,r=At),(Eo&Ro)!==0)So(e,0);else if(r!==0){if(r===2&&(ce|=64,e.hydrate&&(e.hydrate=!1,hv(e.containerInfo)),n=Ux(e),n!==0&&(r=qs(e,n))),r===1)throw t=yd,So(e,0),bo(e,n),zn(e,Xt()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(Z(345));case 2:ua(e);break;case 3:if(bo(e,n),(n&62914560)===n&&(r=Pv+500-Xt(),10<r)){if(al(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){bn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Lw(ua.bind(null,e),r);break}ua(e);break;case 4:if(bo(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-Pi(n);a=1<<o,o=r[o],o>i&&(i=o),n&=~a}if(n=i,n=Xt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*aN(n/1960))-n,10<n){e.timeoutHandle=Lw(ua.bind(null,e),n);break}ua(e);break;case 5:ua(e);break;default:throw Error(Z(329))}}return zn(e,Xt()),e.callbackNode===t?Nb.bind(null,e):null}function bo(e,t){for(t&=~Ov,t&=~Ro,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pi(t),r=1<<n;e[n]=-1,t&=~r}}function Ug(e){if((ce&48)!==0)throw Error(Z(327));if(Ni(),e===on&&(e.expiredLanes&Kt)!==0){var t=Kt,n=qs(e,t);(Eo&Ro)!==0&&(t=al(e,t),n=qs(e,t))}else t=al(e,0),n=qs(e,t);if(e.tag!==0&&n===2&&(ce|=64,e.hydrate&&(e.hydrate=!1,hv(e.containerInfo)),t=Ux(e),t!==0&&(n=qs(e,t))),n===1)throw n=yd,So(e,0),bo(e,t),zn(e,Xt()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ua(e),zn(e,Xt()),null}function oN(){if(Xr!==null){var e=Xr;Xr=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,zn(t,Xt())})}Cr()}function Lb(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(Io(),Cr())}}function Fb(e,t){var n=ce;ce&=-2,ce|=8;try{return e(t)}finally{ce=n,ce===0&&(Io(),Cr())}}function Cc(e,t){ut(Fg,ya),ya|=t,Eo|=t}function Tv(){ya=Fg.current,$e(Fg)}function So(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zI(n)),Ot!==null)for(n=Ot.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&jc();break;case 3:Oo(),$e(mn),$e(Zt),wv();break;case 5:_v(r);break;case 4:Oo();break;case 13:$e(lt);break;case 19:$e(lt);break;case 10:vv(r);break;case 23:case 24:Tv()}n=n.return}on=e,Ot=Ri(e.current,null),Kt=ya=Eo=t,At=0,yd=null,Ov=Ro=vl=0}function Ab(e,t){do{var n=Ot;try{if(gv(),Gs.current=rd,Jc){for(var r=gt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Jc=!1}if(hl=0,Ft=Gt=gt=null,Xs=!1,Cv.current=null,n===null||n.return===null){At=1,yd=t,Ot=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Kt,s.flags|=2048,s.firstEffect=s.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u;if((s.mode&2)===0){var p=s.alternate;p?(s.updateQueue=p.updateQueue,s.memoizedState=p.memoizedState,s.lanes=p.lanes):(s.updateQueue=null,s.memoizedState=null)}var g=(lt.current&1)!==0,v=o;do{var S;if(S=v.tag===13){var C=v.memoizedState;if(C!==null)S=C.dehydrated!==null;else{var x=v.memoizedProps;S=x.fallback===void 0?!1:x.unstable_avoidThisFallback!==!0?!0:!g}}if(S){var w=v.updateQueue;if(w===null){var _=new Set;_.add(d),v.updateQueue=_}else w.add(d);if((v.mode&2)===0){if(v.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var D=Si(-1,1);D.tag=2,Mi(s,D)}s.lanes|=1;break e}u=void 0,s=t;var O=a.pingCache;if(O===null?(O=a.pingCache=new eN,u=new Set,O.set(d,u)):(u=O.get(d),u===void 0&&(u=new Set,O.set(d,u))),!u.has(s)){u.add(s);var E=hN.bind(null,a,d,s);d.then(E,E)}v.flags|=4096,v.lanes=t;break e}v=v.return}while(v!==null);u=Error((mo(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}At!==5&&(At=2),u=Dv(u,s),v=o;do{switch(v.tag){case 3:a=u,v.flags|=4096,t&=-t,v.lanes|=t;var L=Eb(v,a,t);Hw(v,L);break e;case 1:a=u;var Y=v.type,q=v.stateNode;if((v.flags&64)===0&&(typeof Y.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(Mr===null||!Mr.has(q)))){v.flags|=4096,t&=-t,v.lanes|=t;var B=Rb(v,a,t);Hw(v,B);break e}}v=v.return}while(v!==null)}zb(n)}catch(V){t=V,Ot===n&&n!==null&&(Ot=n=n.return);continue}break}while(1)}function Wb(){var e=id.current;return id.current=rd,e===null?rd:e}function qs(e,t){var n=ce;ce|=16;var r=Wb();on===e&&Kt===t||So(e,t);do try{sN();break}catch(i){Ab(e,i)}while(1);if(gv(),ce=n,id.current=r,Ot!==null)throw Error(Z(261));return on=null,Kt=0,At}function sN(){for(;Ot!==null;)Yb(Ot)}function lN(){for(;Ot!==null&&!UI();)Yb(Ot)}function Yb(e){var t=Hb(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?zb(e):Ot=t,Cv.current=null}function zb(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=ZI(n,t,ya),n!==null){Ot=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(ya&1073741824)!==0||(n.mode&4)===0){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=JI(t),n!==null){n.flags&=2047,Ot=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Ot=t;return}Ot=t=e}while(t!==null);At===0&&(At=5)}function ua(e){var t=Co();return va(99,uN.bind(null,e,t)),null}function uN(e,t){do Ni();while(Ks!==null);if((ce&48)!==0)throw Error(Z(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,s=e.expirationTimes;0<a;){var u=31-Pi(a),d=1<<u;i[u]=0,o[u]=-1,s[u]=-1,a&=~d}if(Xr!==null&&(r&24)===0&&Xr.has(e)&&Xr.delete(e),e===on&&(Ot=on=null,Kt=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=ce,ce|=32,Cv.current=null,jm=Pc,o=Pw(),_g(o)){if("selectionStart"in o)s={start:o.selectionStart,end:o.selectionEnd};else e:if(s=(s=o.ownerDocument)&&s.defaultView||window,(d=s.getSelection&&s.getSelection())&&d.rangeCount!==0){s=d.anchorNode,a=d.anchorOffset,u=d.focusNode,d=d.focusOffset;try{s.nodeType,u.nodeType}catch(V){s=null;break e}var p=0,g=-1,v=-1,S=0,C=0,x=o,w=null;t:for(;;){for(var _;x!==s||a!==0&&x.nodeType!==3||(g=p+a),x!==u||d!==0&&x.nodeType!==3||(v=p+d),x.nodeType===3&&(p+=x.nodeValue.length),(_=x.firstChild)!==null;)w=x,x=_;for(;;){if(x===o)break t;if(w===s&&++S===a&&(g=p),w===u&&++C===d&&(v=p),(_=x.nextSibling)!==null)break;x=w,w=x.parentNode}x=_}s=g===-1||v===-1?null:{start:g,end:v}}else s=null;s=s||{start:0,end:0}}else s=null;$m={focusedElem:o,selectionRange:s},Pc=!1,Js=null,Fc=!1,ie=r;do try{cN()}catch(V){if(ie===null)throw Error(Z(330));Ci(ie,V),ie=ie.nextEffect}while(ie!==null);Js=null,ie=r;do try{for(o=e;ie!==null;){var D=ie.flags;if(D&16&&tl(ie.stateNode,""),D&128){var O=ie.alternate;if(O!==null){var E=O.ref;E!==null&&(typeof E=="function"?E(null):E.current=null)}}switch(D&1038){case 2:hx(ie),ie.flags&=-3;break;case 6:hx(ie),ie.flags&=-3,eg(ie.alternate,ie);break;case 1024:ie.flags&=-1025;break;case 1028:ie.flags&=-1025,eg(ie.alternate,ie);break;case 4:eg(ie.alternate,ie);break;case 8:s=ie,Ib(o,s);var L=s.alternate;dx(s),L!==null&&dx(L)}ie=ie.nextEffect}}catch(V){if(ie===null)throw Error(Z(330));Ci(ie,V),ie=ie.nextEffect}while(ie!==null);if(E=$m,O=Pw(),D=E.focusedElem,o=E.selectionRange,O!==D&&D&&D.ownerDocument&&Kx(D.ownerDocument.documentElement,D)){for(o!==null&&_g(D)&&(O=o.start,E=o.end,E===void 0&&(E=O),"selectionStart"in D?(D.selectionStart=O,D.selectionEnd=Math.min(E,D.value.length)):(E=(O=D.ownerDocument||document)&&O.defaultView||window,E.getSelection&&(E=E.getSelection(),s=D.textContent.length,L=Math.min(o.start,s),o=o.end===void 0?L:Math.min(o.end,s),!E.extend&&L>o&&(s=o,o=L,L=s),s=Ow(D,L),a=Ow(D,o),s&&a&&(E.rangeCount!==1||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&(O=O.createRange(),O.setStart(s.node,s.offset),E.removeAllRanges(),L>o?(E.addRange(O),E.extend(a.node,a.offset)):(O.setEnd(a.node,a.offset),E.addRange(O)))))),O=[],E=D;E=E.parentNode;)E.nodeType===1&&O.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<O.length;D++)E=O[D],E.element.scrollLeft=E.left,E.element.scrollTop=E.top}Pc=!!jm,$m=jm=null,e.current=n,ie=r;do try{for(D=e;ie!==null;){var Y=ie.flags;if(Y&36&&rN(D,ie.alternate,ie),Y&128){O=void 0;var q=ie.ref;if(q!==null){var B=ie.stateNode;switch(ie.tag){case 5:O=B;break;default:O=B}typeof q=="function"?q(O):q.current=O}}ie=ie.nextEffect}}catch(V){if(ie===null)throw Error(Z(330));Ci(ie,V),ie=ie.nextEffect}while(ie!==null);ie=null,VI(),ce=i}else e.current=n;if(Ei)Ei=!1,Ks=e,zs=t;else for(ie=r;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(Y=ie,Y.sibling=null,Y.stateNode=null),ie=t;if(r=e.pendingLanes,r===0&&(Mr=null),r===1?e===Hg?Zs++:(Zs=0,Hg=e):Zs=0,n=n.stateNode,ma&&typeof ma.onCommitFiberRoot=="function")try{ma.onCommitFiberRoot(pv,n,void 0,(n.current.flags&64)===64)}catch(V){}if(zn(e,Xt()),ad)throw ad=!1,e=Yg,Yg=null,e;return(ce&8)!==0||Cr(),null}function cN(){for(;ie!==null;){var e=ie.alternate;Fc||Js===null||((ie.flags&8)!==0?mw(ie,Js)&&(Fc=!0):ie.tag===13&&iN(e,ie)&&mw(ie,Js)&&(Fc=!0));var t=ie.flags;(t&256)!==0&&nN(e,ie),(t&512)===0||Ei||(Ei=!0,ul(97,function(){return Ni(),null})),ie=ie.nextEffect}}function Ni(){if(zs!==90){var e=97<zs?97:zs;return zs=90,va(e,fN)}return!1}function dN(e,t){zg.push(t,e),Ei||(Ei=!0,ul(97,function(){return Ni(),null}))}function qb(e,t){qg.push(t,e),Ei||(Ei=!0,ul(97,function(){return Ni(),null}))}function fN(){if(Ks===null)return!1;var e=Ks;if(Ks=null,(ce&48)!==0)throw Error(Z(331));var t=ce;ce|=32;var n=qg;qg=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(u){if(a===null)throw Error(Z(330));Ci(a,u)}}for(n=zg,zg=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var s=i.create;i.destroy=s()}catch(u){if(a===null)throw Error(Z(330));Ci(a,u)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return ce=t,Cr(),!0}function mx(e,t,n){t=Dv(n,t),t=Eb(e,t,1),Mi(e,t),t=bn(),e=_d(e,1),e!==null&&(dd(e,1,t),zn(e,t))}function Ci(e,t){if(e.tag===3)mx(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){mx(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mr===null||!Mr.has(r))){e=Dv(t,e);var i=Rb(n,e,1);if(Mi(n,i),i=bn(),n=_d(n,1),n!==null)dd(n,1,i),zn(n,i);else if(typeof r.componentDidCatch=="function"&&(Mr===null||!Mr.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function hN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=bn(),e.pingedLanes|=e.suspendedLanes&n,on===e&&(Kt&n)===n&&(At===4||At===3&&(Kt&62914560)===Kt&&500>Xt()-Pv?So(e,0):Ov|=n),zn(e,t)}function pN(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Co()===99?1:2:($r===0&&($r=Eo),t=so(62914560&~$r),t===0&&(t=4194304))),n=bn(),e=_d(e,t),e!==null&&(dd(e,t,n),zn(e,n))}var Hb;Hb=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||mn.current)ir=!0;else if((n&r)!==0)ir=(e.flags&16384)!==0;else{switch(ir=!1,t.tag){case 3:tx(t),Km();break;case 5:jw(t);break;case 1:gn(t.type)&&Rc(t);break;case 4:Cg(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ut($c,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?nx(e,t,n):(ut(lt,lt.current&1),t=Gr(e,t,n),t!==null?t.sibling:null);ut(lt,lt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&64)!==0){if(r)return sx(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(lt,lt.current),r)break;return null;case 23:case 24:return t.lanes=0,Zm(e,t,n)}return Gr(e,t,n)}else ir=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Do(t,Zt.current),wo(t,n),i=bv(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gn(r)){var a=!0;Rc(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,yv(t);var o=r.getDerivedStateFromProps;typeof o=="function"&&Xc(t,r,o,e),i.updater=vd,t.stateNode=i,i._reactInternals=t,Dg(t,r,e,n),t=Eg(null,t,r,!0,a,n)}else t.tag=0,pn(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=gN(i),e=rr(i,e),a){case 0:t=Tg(null,t,i,e,n);break e;case 1:t=ex(null,t,i,e,n);break e;case 11:t=Zw(null,t,i,e,n);break e;case 14:t=Jw(null,t,i,rr(i.type,e),r,n);break e}throw Error(Z(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rr(r,i),Tg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rr(r,i),ex(e,t,r,i,n);case 3:if(tx(t),r=t.updateQueue,e===null||r===null)throw Error(Z(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,hb(e,t),cl(t,r,null,n),r=t.memoizedState.element,r===i)Km(),t=Gr(e,t,n);else{if(i=t.stateNode,(a=i.hydrate)&&(_i=_o(t.stateNode.containerInfo.firstChild),Qr=t,a=Dr=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],xo.push(a);for(n=vb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else pn(e,t,r,n),Km();t=t.child}return t;case 5:return jw(t),e===null&&Og(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,bg(r,i)?o=null:a!==null&&bg(r,a)&&(t.flags|=16),Cb(e,t),pn(e,t,o,n),t.child;case 6:return e===null&&Og(t),null;case 13:return nx(e,t,n);case 4:return Cg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kc(t,null,r,n):pn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rr(r,i),Zw(e,t,r,i,n);case 7:return pn(e,t,t.pendingProps,n),t.child;case 8:return pn(e,t,t.pendingProps.children,n),t.child;case 12:return pn(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var s=t.type._context;if(ut($c,s._currentValue),s._currentValue=a,o!==null)if(s=o.value,a=Fn(s,a)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,a):1073741823)|0,a===0){if(o.children===i.children&&!mn.current){t=Gr(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){o=s.child;for(var d=u.firstContext;d!==null;){if(d.context===r&&(d.observedBits&a)!==0){s.tag===1&&(d=Si(-1,n&-n),d.tag=2,Mi(s,d)),s.lanes|=n,d=s.alternate,d!==null&&(d.lanes|=n),fb(s.return,n),u.lanes|=n;break}d=d.next}}else o=s.tag===10&&s.type===t.type?null:s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}pn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,r=a.children,wo(t,n),i=Yn(i,a.unstable_observedBits),r=r(i),t.flags|=1,pn(e,t,r,n),t.child;case 14:return i=t.type,a=rr(i,t.pendingProps),a=rr(i.type,a),Jw(e,t,i,a,r,n);case 15:return Db(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rr(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gn(r)?(e=!0,Rc(t)):e=!1,wo(t,n),mb(t,r,i),Dg(t,r,i,n),Eg(null,t,r,!0,e,n);case 19:return sx(e,t,n);case 23:return Zm(e,t,n);case 24:return Zm(e,t,n)}throw Error(Z(156,t.tag))};function mN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function An(e,t,n,r){return new mN(e,t,n,r)}function Ev(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gN(e){if(typeof e=="function")return Ev(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ld)return 11;if(e===ud)return 14}return 2}function Ri(e,t){var n=e.alternate;return n===null?(n=An(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")Ev(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gi:return Mo(n.children,i,a,t);case yx:o=8,i|=16;break;case $g:o=8,i|=1;break;case Hs:return e=An(12,n,t,i|8),e.elementType=Hs,e.type=Hs,e.lanes=a,e;case Us:return e=An(13,n,t,i),e.type=Us,e.elementType=Us,e.lanes=a,e;case Wc:return e=An(19,n,t,i),e.elementType=Wc,e.lanes=a,e;case Jg:return Rv(n,i,a,t);case ig:return e=An(24,n,t,i),e.elementType=ig,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qg:o=10;break e;case Gg:o=9;break e;case ld:o=11;break e;case ud:o=14;break e;case Xg:o=16,r=null;break e;case Kg:o=22;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=An(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Mo(e,t,n,r){return e=An(7,e,r,t),e.lanes=n,e}function Rv(e,t,n,r){return e=An(23,e,r,t),e.elementType=Jg,e.lanes=n,e}function tg(e,t,n){return e=An(6,e,null,t),e.lanes=n,e}function ng(e,t,n){return t=An(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vN(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zm(0),this.expirationTimes=zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zm(0),this.mutableSourceEagerHydrationData=null}function yN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ca,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function od(e,t,n,r){var i=t.current,a=bn(),o=ki(i);e:if(n){n=n._reactInternals;t:{if(xa(n)!==n||n.tag!==1)throw Error(Z(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(gn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(Z(171))}if(n.tag===1){var u=n.type;if(gn(u)){n=ab(n,u,s);break e}}n=s}else n=Ti;return t.context===null?t.context=n:t.pendingContext=n,t=Si(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Mi(i,t),Di(i,o,a),o}function rg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Iv(e,t){gx(e,t),(e=e.alternate)&&gx(e,t)}function _N(){return null}function Nv(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new vN(e,t,n!=null&&n.hydrate===!0),t=An(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,yv(t),e[To]=n.current,eb(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}Nv.prototype.render=function(e){od(e,this._internalRoot,null,null)};Nv.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;od(null,e,null,function(){t[To]=null})};function yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wN(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Nv(e,0,t?{hydrate:!0}:void 0)}function wd(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var s=i;i=function(){var d=rg(o);s.call(d)}}od(t,o,e,i)}else{if(a=n._reactRootContainer=wN(n,r),o=a._internalRoot,typeof i=="function"){var u=i;i=function(){var d=rg(o);u.call(d)}}Fb(function(){od(t,o,e,i)})}return rg(o)}Ix=function(e){if(e.tag===13){var t=bn();Di(e,4,t),Iv(e,4)}};iv=function(e){if(e.tag===13){var t=bn();Di(e,67108864,t),Iv(e,67108864)}};Nx=function(e){if(e.tag===13){var t=bn(),n=ki(e);Di(e,n,t),Iv(e,n)}};Lx=function(e,t){return t()};pg=function(e,t,n){switch(t){case"input":if(og(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=md(r);if(!i)throw Error(Z(90));wx(r),og(r,i)}}}break;case"textarea":bx(e,n);break;case"select":t=n.value,t!=null&&go(e,!!n.multiple,t,!1)}};tv=Lb;Px=function(e,t,n,r,i){var a=ce;ce|=4;try{return va(98,e.bind(null,t,n,r,i))}finally{ce=a,ce===0&&(Io(),Cr())}};nv=function(){(ce&49)===0&&(oN(),Ni())};Tx=function(e,t){var n=ce;ce|=2;try{return e(t)}finally{ce=n,ce===0&&(Io(),Cr())}};function Ub(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yl(t))throw Error(Z(200));return yN(e,t,null,n)}var xN={Events:[ml,fo,md,Cx,Ox,Ni,{current:!1}]},Ls={findFiberByHostInstance:fa,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},bN={bundleType:Ls.bundleType,version:Ls.version,rendererPackageName:Ls.rendererPackageName,rendererConfig:Ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rx(e),e===null?null:e.stateNode},findFiberByHostInstance:Ls.findFiberByHostInstance||_N,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Fs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Fs.isDisabled&&Fs.supportsFiber))try{pv=Fs.inject(bN),ma=Fs}catch(e){}var Fs;qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xN;qn.createPortal=Ub;qn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):Error(Z(268,Object.keys(e)));return e=Rx(t),e=e===null?null:e.stateNode,e};qn.flushSync=function(e,t){var n=ce;if((n&48)!==0)return e(t);ce|=1;try{if(e)return va(99,e.bind(null,t))}finally{ce=n,Cr()}};qn.hydrate=function(e,t,n){if(!yl(t))throw Error(Z(200));return wd(null,e,t,!0,n)};qn.render=function(e,t,n){if(!yl(t))throw Error(Z(200));return wd(null,e,t,!1,n)};qn.unmountComponentAtNode=function(e){if(!yl(e))throw Error(Z(40));return e._reactRootContainer?(Fb(function(){wd(null,null,e,!1,function(){e._reactRootContainer=null,e[To]=null})}),!0):!1};qn.unstable_batchedUpdates=Lb;qn.unstable_createPortal=function(e,t){return Ub(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};qn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yl(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return wd(e,t,n,!1,r)};qn.version="17.0.2"});var xd=$((O4,jb)=>{"use strict";function Vb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vb)}catch(e){console.error(e)}}Vb(),jb.exports=Bb()});var Qb=$((L4,$b)=>{"use strict";var SN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";$b.exports=SN});var Zb=$((F4,Kb)=>{"use strict";var MN=Qb();function Gb(){}function Xb(){}Xb.resetWarningCache=Gb;Kb.exports=function(){function e(r,i,a,o,s,u){if(u!==MN){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xb,resetWarningCache:Gb};return n.PropTypes=n,n}});var eS=$((Y4,Jb)=>{Jb.exports=Zb()();var A4,W4});var tS=$((z4,bd)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var i=arguments[r];if(!!i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var o=t.apply(null,i);o&&n.push(o)}}else if(a==="object")if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&n.push(s);else n.push(i.toString())}}return n.join(" ")}typeof bd<"u"&&bd.exports?(t.default=t,bd.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var te=$((Sd,nS)=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.default=kN;function kN(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}nS.exports=Sd.default});var Lv=$((Md,rS)=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.default=ON;var DN=CN(te());function CN(e){return e&&e.__esModule?e:{default:e}}function ON(e){return(0,DN.default)(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}rS.exports=Md.default});var le=$((kd,iS)=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.default=EN;var PN=TN(te());function TN(e){return e&&e.__esModule?e:{default:e}}function EN(e){(0,PN.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}iS.exports=kd.default});var Av=$((Dd,aS)=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=LN;var RN=Fv(Lv()),IN=Fv(le()),NN=Fv(te());function Fv(e){return e&&e.__esModule?e:{default:e}}function LN(e){if((0,NN.default)(1,arguments),!(0,RN.default)(e)&&typeof e!="number")return!1;var t=(0,IN.default)(e);return!isNaN(Number(t))}aS.exports=Dd.default});var sS=$((_l,oS)=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var FN={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"}},AN=function(e,t,n){var r,i=FN[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},WN=AN;_l.default=WN;oS.exports=_l.default});var uS=$((Cd,lS)=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.default=YN;function YN(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}lS.exports=Cd.default});var dS=$((wl,cS)=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=void 0;var Wv=zN(uS());function zN(e){return e&&e.__esModule?e:{default:e}}var qN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},HN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},UN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BN={date:(0,Wv.default)({formats:qN,defaultWidth:"full"}),time:(0,Wv.default)({formats:HN,defaultWidth:"full"}),dateTime:(0,Wv.default)({formats:UN,defaultWidth:"full"})},VN=BN;wl.default=VN;cS.exports=wl.default});var hS=$((xl,fS)=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=void 0;var jN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$N=function(e,t,n,r){return jN[e]},QN=$N;xl.default=QN;fS.exports=xl.default});var mS=$((Od,pS)=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.default=GN;function GN(e){return function(t,n){var r=n||{},i=r.context?String(r.context):"standalone",a;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=r.width?String(r.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{var u=e.defaultWidth,d=r.width?String(r.width):e.defaultWidth;a=e.values[d]||e.values[u]}var p=e.argumentCallback?e.argumentCallback(t):t;return a[p]}}pS.exports=Od.default});var vS=$((Sl,gS)=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=void 0;var bl=XN(mS());function XN(e){return e&&e.__esModule?e:{default:e}}var KN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ZN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},JN={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"]},e2={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"]},t2={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"}},n2={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"}},r2=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},i2={ordinalNumber:r2,era:(0,bl.default)({values:KN,defaultWidth:"wide"}),quarter:(0,bl.default)({values:ZN,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,bl.default)({values:JN,defaultWidth:"wide"}),day:(0,bl.default)({values:e2,defaultWidth:"wide"}),dayPeriod:(0,bl.default)({values:t2,defaultWidth:"wide",formattingValues:n2,defaultFormattingWidth:"wide"})},a2=i2;Sl.default=a2;gS.exports=Sl.default});var _S=$((Pd,yS)=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.default=o2;function o2(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?l2(s,function(g){return g.test(o)}):s2(s,function(g){return g.test(o)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var p=t.slice(o.length);return{value:d,rest:p}}}function s2(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function l2(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}yS.exports=Pd.default});var xS=$((Td,wS)=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.default=u2;function u2(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}wS.exports=Td.default});var MS=$((kl,SS)=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.default=void 0;var Ml=bS(_S()),c2=bS(xS());function bS(e){return e&&e.__esModule?e:{default:e}}var d2=/^(\d+)(th|st|nd|rd)?/i,f2=/\d+/i,h2={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},p2={any:[/^b/i,/^(a|c)/i]},m2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g2={any:[/1/i,/2/i,/3/i,/4/i]},v2={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},y2={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]},_2={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},w2={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]},x2={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},b2={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}},S2={ordinalNumber:(0,c2.default)({matchPattern:d2,parsePattern:f2,valueCallback:function(e){return parseInt(e,10)}}),era:(0,Ml.default)({matchPatterns:h2,defaultMatchWidth:"wide",parsePatterns:p2,defaultParseWidth:"any"}),quarter:(0,Ml.default)({matchPatterns:m2,defaultMatchWidth:"wide",parsePatterns:g2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,Ml.default)({matchPatterns:v2,defaultMatchWidth:"wide",parsePatterns:y2,defaultParseWidth:"any"}),day:(0,Ml.default)({matchPatterns:_2,defaultMatchWidth:"wide",parsePatterns:w2,defaultParseWidth:"any"}),dayPeriod:(0,Ml.default)({matchPatterns:x2,defaultMatchWidth:"any",parsePatterns:b2,defaultParseWidth:"any"})},M2=S2;kl.default=M2;SS.exports=kl.default});var Yv=$((Cl,kS)=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=void 0;var k2=Dl(sS()),D2=Dl(dS()),C2=Dl(hS()),O2=Dl(vS()),P2=Dl(MS());function Dl(e){return e&&e.__esModule?e:{default:e}}var T2={code:"en-US",formatDistance:k2.default,formatLong:D2.default,formatRelative:C2.default,localize:O2.default,match:P2.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},E2=T2;Cl.default=E2;kS.exports=Cl.default});var Se=$((Ed,DS)=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.default=R2;function R2(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}DS.exports=Ed.default});var Id=$((Rd,CS)=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=F2;var I2=zv(Se()),N2=zv(le()),L2=zv(te());function zv(e){return e&&e.__esModule?e:{default:e}}function F2(e,t){(0,L2.default)(2,arguments);var n=(0,N2.default)(e).getTime(),r=(0,I2.default)(t);return new Date(n+r)}CS.exports=Rd.default});var Hv=$((Nd,OS)=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=z2;var A2=qv(Se()),W2=qv(Id()),Y2=qv(te());function qv(e){return e&&e.__esModule?e:{default:e}}function z2(e,t){(0,Y2.default)(2,arguments);var n=(0,A2.default)(t);return(0,W2.default)(e,-n)}OS.exports=Nd.default});var ES=$((Ld,TS)=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.default=B2;var q2=PS(le()),H2=PS(te());function PS(e){return e&&e.__esModule?e:{default:e}}var U2=864e5;function B2(e){(0,H2.default)(1,arguments);var t=(0,q2.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/U2)+1}TS.exports=Ld.default});var Ol=$((Fd,IS)=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.default=$2;var V2=RS(le()),j2=RS(te());function RS(e){return e&&e.__esModule?e:{default:e}}function $2(e){(0,j2.default)(1,arguments);var t=1,n=(0,V2.default)(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}IS.exports=Fd.default});var Bv=$((Ad,LS)=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.default=X2;var Q2=Uv(le()),G2=Uv(te()),NS=Uv(Ol());function Uv(e){return e&&e.__esModule?e:{default:e}}function X2(e){(0,G2.default)(1,arguments);var t=(0,Q2.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=(0,NS.default)(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=(0,NS.default)(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}LS.exports=Ad.default});var AS=$((Wd,FS)=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.default=eL;var K2=Vv(Bv()),Z2=Vv(Ol()),J2=Vv(te());function Vv(e){return e&&e.__esModule?e:{default:e}}function eL(e){(0,J2.default)(1,arguments);var t=(0,K2.default)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,Z2.default)(n);return r}FS.exports=Wd.default});var jv=$((zd,WS)=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.default=oL;var tL=Yd(le()),nL=Yd(Ol()),rL=Yd(AS()),iL=Yd(te());function Yd(e){return e&&e.__esModule?e:{default:e}}var aL=6048e5;function oL(e){(0,iL.default)(1,arguments);var t=(0,tL.default)(e),n=(0,nL.default)(t).getTime()-(0,rL.default)(t).getTime();return Math.round(n/aL)+1}WS.exports=zd.default});var Pl=$((qd,zS)=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.default=uL;var sL=$v(le()),lL=$v(te()),YS=$v(Se());function $v(e){return e&&e.__esModule?e:{default:e}}function uL(e,t){(0,lL.default)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=i==null?0:(0,YS.default)(i),o=n.weekStartsOn==null?a:(0,YS.default)(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,sL.default)(e),u=s.getUTCDay(),d=(u<o?7:0)+u-o;return s.setUTCDate(s.getUTCDate()-d),s.setUTCHours(0,0,0,0),s}zS.exports=qd.default});var Bd=$((Ud,US)=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.default=fL;var cL=Hd(le()),dL=Hd(te()),qS=Hd(Pl()),HS=Hd(Se());function Hd(e){return e&&e.__esModule?e:{default:e}}function fL(e,t){(0,dL.default)(1,arguments);var n=(0,cL.default)(e),r=n.getUTCFullYear(),i=t||{},a=i.locale,o=a&&a.options&&a.options.firstWeekContainsDate,s=o==null?1:(0,HS.default)(o),u=i.firstWeekContainsDate==null?s:(0,HS.default)(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(r+1,0,u),d.setUTCHours(0,0,0,0);var p=(0,qS.default)(d,t),g=new Date(0);g.setUTCFullYear(r,0,u),g.setUTCHours(0,0,0,0);var v=(0,qS.default)(g,t);return n.getTime()>=p.getTime()?r+1:n.getTime()>=v.getTime()?r:r-1}US.exports=Ud.default});var jS=$((jd,VS)=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.default=gL;var hL=Vd(Bd()),pL=Vd(te()),mL=Vd(Pl()),BS=Vd(Se());function Vd(e){return e&&e.__esModule?e:{default:e}}function gL(e,t){(0,pL.default)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,a=i==null?1:(0,BS.default)(i),o=n.firstWeekContainsDate==null?a:(0,BS.default)(n.firstWeekContainsDate),s=(0,hL.default)(e,t),u=new Date(0);u.setUTCFullYear(s,0,o),u.setUTCHours(0,0,0,0);var d=(0,mL.default)(u,t);return d}VS.exports=jd.default});var Qv=$((Qd,$S)=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.default=bL;var vL=$d(le()),yL=$d(Pl()),_L=$d(jS()),wL=$d(te());function $d(e){return e&&e.__esModule?e:{default:e}}var xL=6048e5;function bL(e,t){(0,wL.default)(1,arguments);var n=(0,vL.default)(e),r=(0,yL.default)(n,t).getTime()-(0,_L.default)(n,t).getTime();return Math.round(r/xL)+1}$S.exports=Qd.default});var Gv=$((Gd,QS)=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.default=SL;function SL(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}QS.exports=Gd.default});var XS=$((Tl,GS)=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=void 0;var Li=ML(Gv());function ML(e){return e&&e.__esModule?e:{default:e}}var kL={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,Li.default)(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):(0,Li.default)(n+1,2)},d:function(e,t){return(0,Li.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return(0,Li.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,Li.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,Li.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,Li.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,Li.default)(i,t.length)}},DL=kL;Tl.default=DL;GS.exports=Tl.default});var e1=$((El,JS)=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=void 0;var CL=Ma(ES()),OL=Ma(jv()),PL=Ma(Bv()),TL=Ma(Qv()),EL=Ma(Bd()),vt=Ma(Gv()),Fi=Ma(XS());function Ma(e){return e&&e.__esModule?e:{default:e}}var No={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},RL={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Fi.default.y(e,t)},Y:function(e,t,n,r){var i=(0,EL.default)(e,r),a=i>0?i:1-i;if(t==="YY"){var o=a%100;return(0,vt.default)(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):(0,vt.default)(a,t.length)},R:function(e,t){var n=(0,PL.default)(e);return(0,vt.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,vt.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,vt.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,vt.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Fi.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,vt.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,TL.default)(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):(0,vt.default)(i,t.length)},I:function(e,t,n){var r=(0,OL.default)(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):(0,vt.default)(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Fi.default.d(e,t)},D:function(e,t,n){var r=(0,CL.default)(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,vt.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,vt.default)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,vt.default)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return(0,vt.default)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),i;switch(r===12?i=No.noon:r===0?i=No.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),i;switch(r>=17?i=No.evening:r>=12?i=No.afternoon:r>=4?i=No.morning:i=No.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fi.default.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Fi.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):(0,vt.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):(0,vt.default)(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Fi.default.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Fi.default.s(e,t)},S:function(e,t){return Fi.default.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,a=i.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return ZS(a);case"XXXX":case"XX":return Sa(a);case"XXXXX":case"XXX":default:return Sa(a,":")}},x:function(e,t,n,r){var i=r._originalDate||e,a=i.getTimezoneOffset();switch(t){case"x":return ZS(a);case"xxxx":case"xx":return Sa(a);case"xxxxx":case"xxx":default:return Sa(a,":")}},O:function(e,t,n,r){var i=r._originalDate||e,a=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+KS(a,":");case"OOOO":default:return"GMT"+Sa(a,":")}},z:function(e,t,n,r){var i=r._originalDate||e,a=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+KS(a,":");case"zzzz":default:return"GMT"+Sa(a,":")}},t:function(e,t,n,r){var i=r._originalDate||e,a=Math.floor(i.getTime()/1e3);return(0,vt.default)(a,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,a=i.getTime();return(0,vt.default)(a,t.length)}};function KS(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=t||"";return n+String(i)+o+(0,vt.default)(a,2)}function ZS(e,t){if(e%60===0){var n=e>0?"-":"+";return n+(0,vt.default)(Math.abs(e)/60,2)}return Sa(e,t)}function Sa(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),a=(0,vt.default)(Math.floor(i/60),2),o=(0,vt.default)(i%60,2);return r+a+n+o}var IL=RL;El.default=IL;JS.exports=El.default});var Xv=$((Rl,r1)=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=void 0;function t1(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function n1(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function NL(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return t1(e,t);var a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",t1(r,t)).replace("{{time}}",n1(i,t))}var LL={p:n1,P:NL},FL=LL;Rl.default=FL;r1.exports=Rl.default});var Il=$((Xd,i1)=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.default=AL;function AL(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}i1.exports=Xd.default});var Kv=$(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.isProtectedDayOfYearToken=zL;Nl.isProtectedWeekYearToken=qL;Nl.throwProtectedError=HL;var WL=["D","DD"],YL=["YY","YYYY"];function zL(e){return WL.indexOf(e)!==-1}function qL(e){return YL.indexOf(e)!==-1}function HL(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}});var o1=$((Jd,a1)=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.default=nF;var UL=Zr(Av()),BL=Zr(Yv()),VL=Zr(Hv()),jL=Zr(le()),$L=Zr(e1()),QL=Zr(Xv()),GL=Zr(Il()),Kd=Kv(),Zd=Zr(Se()),XL=Zr(te());function Zr(e){return e&&e.__esModule?e:{default:e}}var KL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JL=/^'([^]*?)'?$/,eF=/''/g,tF=/[a-zA-Z]/;function nF(e,t,n){(0,XL.default)(2,arguments);var r=String(t),i=n||{},a=i.locale||BL.default,o=a.options&&a.options.firstWeekContainsDate,s=o==null?1:(0,Zd.default)(o),u=i.firstWeekContainsDate==null?s:(0,Zd.default)(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=a.options&&a.options.weekStartsOn,p=d==null?0:(0,Zd.default)(d),g=i.weekStartsOn==null?p:(0,Zd.default)(i.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var v=(0,jL.default)(e);if(!(0,UL.default)(v))throw new RangeError("Invalid time value");var S=(0,GL.default)(v),C=(0,VL.default)(v,S),x={firstWeekContainsDate:u,weekStartsOn:g,locale:a,_originalDate:v},w=r.match(ZL).map(function(_){var D=_[0];if(D==="p"||D==="P"){var O=QL.default[D];return O(_,a.formatLong,x)}return _}).join("").match(KL).map(function(_){if(_==="''")return"'";var D=_[0];if(D==="'")return rF(_);var O=$L.default[D];if(O)return!i.useAdditionalWeekYearTokens&&(0,Kd.isProtectedWeekYearToken)(_)&&(0,Kd.throwProtectedError)(_,t,e),!i.useAdditionalDayOfYearTokens&&(0,Kd.isProtectedDayOfYearToken)(_)&&(0,Kd.throwProtectedError)(_,t,e),O(C,_,a.localize,x);if(D.match(tF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return _}).join("");return w}function rF(e){return e.match(JL)[1].replace(eF,"'")}a1.exports=Jd.default});var Jv=$((ef,s1)=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.default=lF;var iF=Zv(Se()),aF=Zv(Id()),oF=Zv(te());function Zv(e){return e&&e.__esModule?e:{default:e}}var sF=6e4;function lF(e,t){(0,oF.default)(2,arguments);var n=(0,iF.default)(t);return(0,aF.default)(e,n*sF)}s1.exports=ef.default});var ty=$((tf,l1)=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.default=hF;var uF=ey(Se()),cF=ey(Id()),dF=ey(te());function ey(e){return e&&e.__esModule?e:{default:e}}var fF=36e5;function hF(e,t){(0,dF.default)(2,arguments);var n=(0,uF.default)(t);return(0,cF.default)(e,n*fF)}l1.exports=tf.default});var rf=$((nf,u1)=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.default=vF;var pF=ny(Se()),mF=ny(le()),gF=ny(te());function ny(e){return e&&e.__esModule?e:{default:e}}function vF(e,t){(0,gF.default)(2,arguments);var n=(0,mF.default)(e),r=(0,pF.default)(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}u1.exports=nf.default});var iy=$((af,c1)=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.default=xF;var yF=ry(Se()),_F=ry(rf()),wF=ry(te());function ry(e){return e&&e.__esModule?e:{default:e}}function xF(e,t){(0,wF.default)(2,arguments);var n=(0,yF.default)(t),r=n*7;return(0,_F.default)(e,r)}c1.exports=af.default});var sf=$((of,d1)=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.default=kF;var bF=ay(Se()),SF=ay(le()),MF=ay(te());function ay(e){return e&&e.__esModule?e:{default:e}}function kF(e,t){(0,MF.default)(2,arguments);var n=(0,SF.default)(e),r=(0,bF.default)(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var o=a.getDate();return i>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}d1.exports=of.default});var sy=$((lf,f1)=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.default=PF;var DF=oy(Se()),CF=oy(sf()),OF=oy(te());function oy(e){return e&&e.__esModule?e:{default:e}}function PF(e,t){(0,OF.default)(2,arguments);var n=(0,DF.default)(t);return(0,CF.default)(e,n*12)}f1.exports=lf.default});var p1=$((uf,h1)=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.default=IF;var TF=ly(Se()),EF=ly(Jv()),RF=ly(te());function ly(e){return e&&e.__esModule?e:{default:e}}function IF(e,t){(0,RF.default)(2,arguments);var n=(0,TF.default)(t);return(0,EF.default)(e,-n)}h1.exports=uf.default});var g1=$((cf,m1)=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.default=AF;var NF=uy(Se()),LF=uy(ty()),FF=uy(te());function uy(e){return e&&e.__esModule?e:{default:e}}function AF(e,t){(0,FF.default)(2,arguments);var n=(0,NF.default)(t);return(0,LF.default)(e,-n)}m1.exports=cf.default});var y1=$((df,v1)=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.default=qF;var WF=cy(Se()),YF=cy(rf()),zF=cy(te());function cy(e){return e&&e.__esModule?e:{default:e}}function qF(e,t){(0,zF.default)(2,arguments);var n=(0,WF.default)(t);return(0,YF.default)(e,-n)}v1.exports=df.default});var w1=$((ff,_1)=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.default=VF;var HF=dy(Se()),UF=dy(iy()),BF=dy(te());function dy(e){return e&&e.__esModule?e:{default:e}}function VF(e,t){(0,BF.default)(2,arguments);var n=(0,HF.default)(t);return(0,UF.default)(e,-n)}_1.exports=ff.default});var b1=$((hf,x1)=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.default=GF;var jF=fy(Se()),$F=fy(sf()),QF=fy(te());function fy(e){return e&&e.__esModule?e:{default:e}}function GF(e,t){(0,QF.default)(2,arguments);var n=(0,jF.default)(t);return(0,$F.default)(e,-n)}x1.exports=hf.default});var M1=$((pf,S1)=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.default=JF;var XF=hy(Se()),KF=hy(sy()),ZF=hy(te());function hy(e){return e&&e.__esModule?e:{default:e}}function JF(e,t){(0,ZF.default)(2,arguments);var n=(0,XF.default)(t);return(0,KF.default)(e,-n)}S1.exports=pf.default});var C1=$((mf,D1)=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.default=nA;var eA=k1(le()),tA=k1(te());function k1(e){return e&&e.__esModule?e:{default:e}}function nA(e){(0,tA.default)(1,arguments);var t=(0,eA.default)(e),n=t.getSeconds();return n}D1.exports=mf.default});var T1=$((gf,P1)=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.default=aA;var rA=O1(le()),iA=O1(te());function O1(e){return e&&e.__esModule?e:{default:e}}function aA(e){(0,iA.default)(1,arguments);var t=(0,rA.default)(e),n=t.getMinutes();return n}P1.exports=gf.default});var I1=$((vf,R1)=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.default=lA;var oA=E1(le()),sA=E1(te());function E1(e){return e&&e.__esModule?e:{default:e}}function lA(e){(0,sA.default)(1,arguments);var t=(0,oA.default)(e),n=t.getHours();return n}R1.exports=vf.default});var F1=$((yf,L1)=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.default=dA;var uA=N1(le()),cA=N1(te());function N1(e){return e&&e.__esModule?e:{default:e}}function dA(e){(0,cA.default)(1,arguments);var t=(0,uA.default)(e),n=t.getDay();return n}L1.exports=yf.default});var Y1=$((_f,W1)=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.default=pA;var fA=A1(le()),hA=A1(te());function A1(e){return e&&e.__esModule?e:{default:e}}function pA(e){(0,hA.default)(1,arguments);var t=(0,fA.default)(e),n=t.getDate();return n}W1.exports=_f.default});var xf=$((wf,q1)=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.default=vA;var mA=py(le()),z1=py(Se()),gA=py(te());function py(e){return e&&e.__esModule?e:{default:e}}function vA(e,t){(0,gA.default)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=i==null?0:(0,z1.default)(i),o=n.weekStartsOn==null?a:(0,z1.default)(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,mA.default)(e),u=s.getDay(),d=(u<o?7:0)+u-o;return s.setDate(s.getDate()-d),s.setHours(0,0,0,0),s}q1.exports=wf.default});var Sf=$((bf,U1)=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.default=wA;var yA=H1(xf()),_A=H1(te());function H1(e){return e&&e.__esModule?e:{default:e}}function wA(e){return(0,_A.default)(1,arguments),(0,yA.default)(e,{weekStartsOn:1})}U1.exports=bf.default});var j1=$((Mf,V1)=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=SA;var xA=my(le()),B1=my(Sf()),bA=my(te());function my(e){return e&&e.__esModule?e:{default:e}}function SA(e){(0,bA.default)(1,arguments);var t=(0,xA.default)(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=(0,B1.default)(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var o=(0,B1.default)(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}V1.exports=Mf.default});var Q1=$((kf,$1)=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.default=CA;var MA=gy(j1()),kA=gy(Sf()),DA=gy(te());function gy(e){return e&&e.__esModule?e:{default:e}}function CA(e){(0,DA.default)(1,arguments);var t=(0,MA.default)(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=(0,kA.default)(n);return r}$1.exports=kf.default});var X1=$((Cf,G1)=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.default=IA;var OA=Df(le()),PA=Df(Sf()),TA=Df(Q1()),EA=Df(te());function Df(e){return e&&e.__esModule?e:{default:e}}var RA=6048e5;function IA(e){(0,EA.default)(1,arguments);var t=(0,OA.default)(e),n=(0,PA.default)(t).getTime()-(0,TA.default)(t).getTime();return Math.round(n/RA)+1}G1.exports=Cf.default});var J1=$((Of,Z1)=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.default=FA;var NA=K1(le()),LA=K1(te());function K1(e){return e&&e.__esModule?e:{default:e}}function FA(e){(0,LA.default)(1,arguments);var t=(0,NA.default)(e),n=t.getMonth();return n}Z1.exports=Of.default});var nM=$((Pf,tM)=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=YA;var AA=eM(le()),WA=eM(te());function eM(e){return e&&e.__esModule?e:{default:e}}function YA(e){(0,WA.default)(1,arguments);var t=(0,AA.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}tM.exports=Pf.default});var aM=$((Tf,iM)=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.default=HA;var zA=rM(le()),qA=rM(te());function rM(e){return e&&e.__esModule?e:{default:e}}function HA(e){return(0,qA.default)(1,arguments),(0,zA.default)(e).getFullYear()}iM.exports=Tf.default});var lM=$((Ef,sM)=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=VA;var UA=oM(le()),BA=oM(te());function oM(e){return e&&e.__esModule?e:{default:e}}function VA(e){(0,BA.default)(1,arguments);var t=(0,UA.default)(e),n=t.getTime();return n}sM.exports=Ef.default});var cM=$((Rf,uM)=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.default=GA;var jA=vy(Se()),$A=vy(le()),QA=vy(te());function vy(e){return e&&e.__esModule?e:{default:e}}function GA(e,t){(0,QA.default)(2,arguments);var n=(0,$A.default)(e),r=(0,jA.default)(t);return n.setSeconds(r),n}uM.exports=Rf.default});var fM=$((If,dM)=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.default=JA;var XA=yy(Se()),KA=yy(le()),ZA=yy(te());function yy(e){return e&&e.__esModule?e:{default:e}}function JA(e,t){(0,ZA.default)(2,arguments);var n=(0,KA.default)(e),r=(0,XA.default)(t);return n.setMinutes(r),n}dM.exports=If.default});var pM=$((Nf,hM)=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.default=rW;var eW=_y(Se()),tW=_y(le()),nW=_y(te());function _y(e){return e&&e.__esModule?e:{default:e}}function rW(e,t){(0,nW.default)(2,arguments);var n=(0,tW.default)(e),r=(0,eW.default)(t);return n.setHours(r),n}hM.exports=Nf.default});var vM=$((Lf,gM)=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=oW;var iW=mM(le()),aW=mM(te());function mM(e){return e&&e.__esModule?e:{default:e}}function oW(e){(0,aW.default)(1,arguments);var t=(0,iW.default)(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}gM.exports=Lf.default});var wy=$((Af,yM)=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.default=dW;var sW=Ff(Se()),lW=Ff(le()),uW=Ff(vM()),cW=Ff(te());function Ff(e){return e&&e.__esModule?e:{default:e}}function dW(e,t){(0,cW.default)(2,arguments);var n=(0,lW.default)(e),r=(0,sW.default)(t),i=n.getFullYear(),a=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var s=(0,uW.default)(o);return n.setMonth(r,Math.min(a,s)),n}yM.exports=Af.default});var wM=$((Yf,_M)=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.default=gW;var fW=Wf(Se()),hW=Wf(le()),pW=Wf(wy()),mW=Wf(te());function Wf(e){return e&&e.__esModule?e:{default:e}}function gW(e,t){(0,mW.default)(2,arguments);var n=(0,hW.default)(e),r=(0,fW.default)(t),i=Math.floor(n.getMonth()/3)+1,a=r-i;return(0,pW.default)(n,n.getMonth()+a*3)}_M.exports=Yf.default});var bM=$((zf,xM)=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.default=wW;var vW=xy(Se()),yW=xy(le()),_W=xy(te());function xy(e){return e&&e.__esModule?e:{default:e}}function wW(e,t){(0,_W.default)(2,arguments);var n=(0,yW.default)(e),r=(0,vW.default)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}xM.exports=zf.default});var kM=$((qf,MM)=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.default=SW;var xW=SM(le()),bW=SM(te());function SM(e){return e&&e.__esModule?e:{default:e}}function SW(e){(0,bW.default)(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(typeof e=="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=(0,xW.default)(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}MM.exports=qf.default});var OM=$((Hf,CM)=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=DW;var MW=DM(le()),kW=DM(te());function DM(e){return e&&e.__esModule?e:{default:e}}function DW(e){(0,kW.default)(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(typeof e=="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=(0,MW.default)(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}CM.exports=Hf.default});var Bf=$((Uf,TM)=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.default=PW;var CW=PM(le()),OW=PM(te());function PM(e){return e&&e.__esModule?e:{default:e}}function PW(e){(0,OW.default)(1,arguments);var t=(0,CW.default)(e);return t.setHours(0,0,0,0),t}TM.exports=Uf.default});var NM=$((Vf,IM)=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.default=RW;var EM=by(Il()),RM=by(Bf()),TW=by(te());function by(e){return e&&e.__esModule?e:{default:e}}var EW=864e5;function RW(e,t){(0,TW.default)(2,arguments);var n=(0,RM.default)(e),r=(0,RM.default)(t),i=n.getTime()-(0,EM.default)(n),a=r.getTime()-(0,EM.default)(r);return Math.round((i-a)/EW)}IM.exports=Vf.default});var WM=$((jf,AM)=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.default=NW;var LM=FM(le()),IW=FM(te());function FM(e){return e&&e.__esModule?e:{default:e}}function NW(e,t){(0,IW.default)(2,arguments);var n=(0,LM.default)(e),r=(0,LM.default)(t),i=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return i*12+a}AM.exports=jf.default});var HM=$(($f,qM)=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.default=AW;var YM=Sy(xf()),zM=Sy(Il()),LW=Sy(te());function Sy(e){return e&&e.__esModule?e:{default:e}}var FW=6048e5;function AW(e,t,n){(0,LW.default)(2,arguments);var r=(0,YM.default)(e,n),i=(0,YM.default)(t,n),a=r.getTime()-(0,zM.default)(r),o=i.getTime()-(0,zM.default)(i);return Math.round((a-o)/FW)}qM.exports=$f.default});var jM=$((Qf,VM)=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.default=YW;var UM=BM(le()),WW=BM(te());function BM(e){return e&&e.__esModule?e:{default:e}}function YW(e,t){(0,WW.default)(2,arguments);var n=(0,UM.default)(e),r=(0,UM.default)(t);return n.getFullYear()-r.getFullYear()}VM.exports=Qf.default});var GM=$((Gf,QM)=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=HW;var zW=$M(le()),qW=$M(te());function $M(e){return e&&e.__esModule?e:{default:e}}function HW(e){(0,qW.default)(1,arguments);var t=(0,zW.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}QM.exports=Gf.default});var My=$((Xf,KM)=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=VW;var UW=XM(le()),BW=XM(te());function XM(e){return e&&e.__esModule?e:{default:e}}function VW(e){(0,BW.default)(1,arguments);var t=(0,UW.default)(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}KM.exports=Xf.default});var ek=$((Kf,JM)=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=QW;var jW=ZM(le()),$W=ZM(te());function ZM(e){return e&&e.__esModule?e:{default:e}}function QW(e){(0,$W.default)(1,arguments);var t=(0,jW.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}JM.exports=Kf.default});var rk=$((Zf,nk)=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=KW;var GW=tk(le()),XW=tk(te());function tk(e){return e&&e.__esModule?e:{default:e}}function KW(e){(0,XW.default)(1,arguments);var t=(0,GW.default)(e);return t.setHours(23,59,59,999),t}nk.exports=Zf.default});var ok=$((Jf,ak)=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.default=eY;var ZW=ky(le()),ik=ky(Se()),JW=ky(te());function ky(e){return e&&e.__esModule?e:{default:e}}function eY(e,t){(0,JW.default)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=i==null?0:(0,ik.default)(i),o=n.weekStartsOn==null?a:(0,ik.default)(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,ZW.default)(e),u=s.getDay(),d=(u<o?-7:0)+6-(u-o);return s.setDate(s.getDate()+d),s.setHours(23,59,59,999),s}ak.exports=Jf.default});var uk=$((eh,lk)=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.default=rY;var tY=sk(le()),nY=sk(te());function sk(e){return e&&e.__esModule?e:{default:e}}function rY(e){(0,nY.default)(1,arguments);var t=(0,tY.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}lk.exports=eh.default});var hk=$((th,fk)=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.default=aY;var ck=dk(le()),iY=dk(te());function dk(e){return e&&e.__esModule?e:{default:e}}function aY(e,t){(0,iY.default)(2,arguments);var n=(0,ck.default)(e),r=(0,ck.default)(t);return n.getTime()===r.getTime()}fk.exports=th.default});var vk=$((nh,gk)=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.default=sY;var pk=mk(Bf()),oY=mk(te());function mk(e){return e&&e.__esModule?e:{default:e}}function sY(e,t){(0,oY.default)(2,arguments);var n=(0,pk.default)(e),r=(0,pk.default)(t);return n.getTime()===r.getTime()}gk.exports=nh.default});var xk=$((rh,wk)=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.default=uY;var yk=_k(le()),lY=_k(te());function _k(e){return e&&e.__esModule?e:{default:e}}function uY(e,t){(0,lY.default)(2,arguments);var n=(0,yk.default)(e),r=(0,yk.default)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}wk.exports=rh.default});var kk=$((ih,Mk)=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.default=dY;var bk=Sk(le()),cY=Sk(te());function Sk(e){return e&&e.__esModule?e:{default:e}}function dY(e,t){(0,cY.default)(2,arguments);var n=(0,bk.default)(e),r=(0,bk.default)(t);return n.getFullYear()===r.getFullYear()}Mk.exports=ih.default});var Pk=$((ah,Ok)=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.default=hY;var Dk=Ck(My()),fY=Ck(te());function Ck(e){return e&&e.__esModule?e:{default:e}}function hY(e,t){(0,fY.default)(2,arguments);var n=(0,Dk.default)(e),r=(0,Dk.default)(t);return n.getTime()===r.getTime()}Ok.exports=ah.default});var Ik=$((oh,Rk)=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.default=mY;var Tk=Ek(le()),pY=Ek(te());function Ek(e){return e&&e.__esModule?e:{default:e}}function mY(e,t){(0,pY.default)(2,arguments);var n=(0,Tk.default)(e),r=(0,Tk.default)(t);return n.getTime()>r.getTime()}Rk.exports=oh.default});var Ak=$((sh,Fk)=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.default=vY;var Nk=Lk(le()),gY=Lk(te());function Lk(e){return e&&e.__esModule?e:{default:e}}function vY(e,t){(0,gY.default)(2,arguments);var n=(0,Nk.default)(e),r=(0,Nk.default)(t);return n.getTime()<r.getTime()}Fk.exports=sh.default});var zk=$((lh,Yk)=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.default=_Y;var Dy=Wk(le()),yY=Wk(te());function Wk(e){return e&&e.__esModule?e:{default:e}}function _Y(e,t){(0,yY.default)(2,arguments);var n=(0,Dy.default)(e).getTime(),r=(0,Dy.default)(t.start).getTime(),i=(0,Dy.default)(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}Yk.exports=lh.default});var Hk=$((uh,qk)=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.default=wY;function wY(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}qk.exports=uh.default});var Bk=$((ch,Uk)=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.default=SY;var xY=Oy(le()),bY=Oy(te()),Cy=Oy(Se());function Oy(e){return e&&e.__esModule?e:{default:e}}function SY(e,t,n){(0,bY.default)(2,arguments);var r=n||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,o=a==null?0:(0,Cy.default)(a),s=r.weekStartsOn==null?o:(0,Cy.default)(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,xY.default)(e),d=(0,Cy.default)(t),p=u.getUTCDay(),g=d%7,v=(g+7)%7,S=(v<s?7:0)+d-p;return u.setUTCDate(u.getUTCDate()+S),u}Uk.exports=ch.default});var jk=$((dh,Vk)=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.default=CY;var MY=Py(le()),kY=Py(te()),DY=Py(Se());function Py(e){return e&&e.__esModule?e:{default:e}}function CY(e,t){(0,kY.default)(2,arguments);var n=(0,DY.default)(t);n%7===0&&(n=n-7);var r=1,i=(0,MY.default)(e),a=i.getUTCDay(),o=n%7,s=(o+7)%7,u=(s<r?7:0)+n-a;return i.setUTCDate(i.getUTCDate()+u),i}Vk.exports=dh.default});var Qk=$((hh,$k)=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.default=RY;var OY=fh(Se()),PY=fh(le()),TY=fh(jv()),EY=fh(te());function fh(e){return e&&e.__esModule?e:{default:e}}function RY(e,t){(0,EY.default)(2,arguments);var n=(0,PY.default)(e),r=(0,OY.default)(t),i=(0,TY.default)(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}$k.exports=hh.default});var Xk=$((mh,Gk)=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.default=AY;var IY=ph(Se()),NY=ph(le()),LY=ph(Qv()),FY=ph(te());function ph(e){return e&&e.__esModule?e:{default:e}}function AY(e,t,n){(0,FY.default)(2,arguments);var r=(0,NY.default)(e),i=(0,IY.default)(t),a=(0,LY.default)(r,n)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}Gk.exports=mh.default});var nD=$((Ll,tD)=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=void 0;var WY=ka(Bd()),Ty=ka(Bk()),YY=ka(jk()),zY=ka(Qk()),qY=ka(Xk()),Kk=ka(Ol()),Ey=ka(Pl());function ka(e){return e&&e.__esModule?e:{default:e}}var HY=36e5,UY=6e4,BY=1e3,yt={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}/},Or={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 nt(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function Pr(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*HY+a*UY+o*BY),rest:t.slice(n[0].length)}}function Zk(e,t){return nt(yt.anyDigitsSigned,e,t)}function ct(e,t,n){switch(e){case 1:return nt(yt.singleDigit,t,n);case 2:return nt(yt.twoDigits,t,n);case 3:return nt(yt.threeDigits,t,n);case 4:return nt(yt.fourDigits,t,n);default:return nt(new RegExp("^\\d{1,"+e+"}"),t,n)}}function gh(e,t,n){switch(e){case 1:return nt(yt.singleDigitSigned,t,n);case 2:return nt(yt.twoDigitsSigned,t,n);case 3:return nt(yt.threeDigitsSigned,t,n);case 4:return nt(yt.fourDigitsSigned,t,n);default:return nt(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Ry(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Jk(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}var VY=[31,28,31,30,31,30,31,31,30,31,30,31],jY=[31,29,31,30,31,30,31,31,30,31,30,31];function eD(e){return e%400===0||e%4===0&&e%100!==0}var $Y={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(a){return{year:a,isTwoDigitYear:t==="yy"}};switch(t){case"y":return ct(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return ct(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var a=Jk(n.year,i);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var o=!("era"in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(a){return{year:a,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return ct(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return ct(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=(0,WY.default)(e,r);if(n.isTwoDigitYear){var a=Jk(n.year,i);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ey.default)(e,r)}var o=!("era"in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ey.default)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return gh(t==="R"?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),(0,Kk.default)(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return gh(t==="u"?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return ct(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return ct(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(a){return a-1};switch(t){case"M":return nt(yt.month,e,i);case"MM":return ct(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(a){return a-1};switch(t){case"L":return nt(yt.month,e,i);case"LL":return ct(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return nt(yt.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,Ey.default)((0,qY.default)(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return nt(yt.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,Kk.default)((0,zY.default)(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return nt(yt.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ct(t.length,e)}},validate:function(e,t,n){var r=e.getUTCFullYear(),i=eD(r),a=e.getUTCMonth();return i?t>=1&&t<=jY[a]:t>=1&&t<=VY[a]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return nt(yt.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ct(t.length,e)}},validate:function(e,t,n){var r=e.getUTCFullYear(),i=eD(r);return i?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return e=(0,Ty.default)(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(a){var o=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+o};switch(t){case"e":case"ee":return ct(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return e=(0,Ty.default)(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(a){var o=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+o};switch(t){case"c":case"cc":return ct(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return e=(0,Ty.default)(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(a){return a===0?7:a};switch(t){case"i":case"ii":return ct(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=(0,YY.default)(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Ry(n),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Ry(n),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Ry(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return nt(yt.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):!i&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return nt(yt.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return nt(yt.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return nt(yt.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return nt(yt.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return nt(yt.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ct(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){var i=function(a){return Math.floor(a*Math.pow(10,-t.length+3))};return ct(t.length,e,i)},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return Pr(Or.basicOptionalMinutes,e);case"XX":return Pr(Or.basic,e);case"XXXX":return Pr(Or.basicOptionalSeconds,e);case"XXXXX":return Pr(Or.extendedOptionalSeconds,e);case"XXX":default:return Pr(Or.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return Pr(Or.basicOptionalMinutes,e);case"xx":return Pr(Or.basic,e);case"xxxx":return Pr(Or.basicOptionalSeconds,e);case"xxxxx":return Pr(Or.extendedOptionalSeconds,e);case"xxx":default:return Pr(Or.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return Zk(e)},set:function(e,t,n,r){return[new Date(n*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return Zk(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},QY=$Y;Ll.default=QY;tD.exports=Ll.default});var aD=$((_h,iD)=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.default=uz;var GY=Jr(Yv()),XY=Jr(Hv()),rD=Jr(le()),KY=Jr(Hk()),ZY=Jr(Xv()),JY=Jr(Il()),vh=Kv(),yh=Jr(Se()),ez=Jr(nD()),tz=Jr(te());function Jr(e){return e&&e.__esModule?e:{default:e}}var nz=10,rz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,az=/^'([^]*?)'?$/,oz=/''/g,sz=/\S/,lz=/[a-zA-Z]/;function uz(e,t,n,r){(0,tz.default)(3,arguments);var i=String(e),a=String(t),o=r||{},s=o.locale||GY.default;if(!s.match)throw new RangeError("locale must contain match property");var u=s.options&&s.options.firstWeekContainsDate,d=u==null?1:(0,yh.default)(u),p=o.firstWeekContainsDate==null?d:(0,yh.default)(o.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=s.options&&s.options.weekStartsOn,v=g==null?0:(0,yh.default)(g),S=o.weekStartsOn==null?v:(0,yh.default)(o.weekStartsOn);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(a==="")return i===""?(0,rD.default)(n):new Date(NaN);var C={firstWeekContainsDate:p,weekStartsOn:S,locale:s},x=[{priority:nz,subPriority:-1,set:cz,index:0}],w,_=a.match(iz).map(function(pe){var de=pe[0];if(de==="p"||de==="P"){var Te=ZY.default[de];return Te(pe,s.formatLong,C)}return pe}).join("").match(rz),D=[];for(w=0;w<_.length;w++){var O=_[w];!o.useAdditionalWeekYearTokens&&(0,vh.isProtectedWeekYearToken)(O)&&(0,vh.throwProtectedError)(O,a,e),!o.useAdditionalDayOfYearTokens&&(0,vh.isProtectedDayOfYearToken)(O)&&(0,vh.throwProtectedError)(O,a,e);var E=O[0],L=ez.default[E];if(L){var Y=L.incompatibleTokens;if(Array.isArray(Y)){for(var q=void 0,B=0;B<D.length;B++){var V=D[B].token;if(Y.indexOf(V)!==-1||V===E){q=D[B];break}}if(q)throw new RangeError("The format string mustn't contain `".concat(q.fullToken,"` and `").concat(O,"` at the same time"))}else if(L.incompatibleTokens==="*"&&D.length)throw new RangeError("The format string mustn't contain `".concat(O,"` and any other token at the same time"));D.push({token:E,fullToken:O});var re=L.parse(i,O,s.match,C);if(!re)return new Date(NaN);x.push({priority:L.priority,subPriority:L.subPriority||0,set:L.set,validate:L.validate,value:re.value,index:x.length}),i=re.rest}else{if(E.match(lz))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(O==="''"?O="'":E==="'"&&(O=dz(O)),i.indexOf(O)===0)i=i.slice(O.length);else return new Date(NaN)}}if(i.length>0&&sz.test(i))return new Date(NaN);var J=x.map(function(pe){return pe.priority}).sort(function(pe,de){return de-pe}).filter(function(pe,de,Te){return Te.indexOf(pe)===de}).map(function(pe){return x.filter(function(de){return de.priority===pe}).sort(function(de,Te){return Te.subPriority-de.subPriority})}).map(function(pe){return pe[0]}),ue=(0,rD.default)(n);if(isNaN(ue))return new Date(NaN);var ge=(0,XY.default)(ue,(0,JY.default)(ue)),ve={};for(w=0;w<J.length;w++){var ae=J[w];if(ae.validate&&!ae.validate(ge,ae.value,C))return new Date(NaN);var oe=ae.set(ge,ve,ae.value,C);oe[0]?(ge=oe[0],(0,KY.default)(ve,oe[1])):ge=oe}return ge}function cz(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function dz(e){return e.match(az)[1].replace(oz,"'")}iD.exports=_h.default});var sD=$(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.secondsInMinute=Ue.secondsInHour=Ue.quartersInYear=Ue.monthsInYear=Ue.monthsInQuarter=Ue.minutesInHour=Ue.minTime=Ue.millisecondsInSecond=Ue.millisecondsInHour=Ue.millisecondsInMinute=Ue.maxTime=Ue.daysInWeek=void 0;var fz=7;Ue.daysInWeek=fz;var oD=Math.pow(10,8)*24*60*60*1e3;Ue.maxTime=oD;var hz=6e4;Ue.millisecondsInMinute=hz;var pz=36e5;Ue.millisecondsInHour=pz;var mz=1e3;Ue.millisecondsInSecond=mz;var gz=-oD;Ue.minTime=gz;var vz=60;Ue.minutesInHour=vz;var yz=3;Ue.monthsInQuarter=yz;var _z=12;Ue.monthsInYear=_z;var wz=4;Ue.quartersInYear=wz;var xz=3600;Ue.secondsInHour=xz;var bz=60;Ue.secondsInMinute=bz});var dD=$((bh,cD)=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.default=kz;var xh=sD(),Sz=lD(te()),Mz=lD(Se());function lD(e){return e&&e.__esModule?e:{default:e}}function kz(e,t){(0,Sz.default)(1,arguments);var n=t||{},r=n.additionalDigits==null?2:(0,Mz.default)(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Pz(e),a;if(i.date){var o=Tz(i.date,r);a=Ez(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),u=0,d;if(i.time&&(u=Rz(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(d=Iz(i.timezone),isNaN(d))return new Date(NaN)}else{var p=new Date(s+u),g=new Date(0);return g.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),g.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),g}return new Date(s+u+d)}var wh={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Dz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Cz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Oz=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Pz(e){var t={},n=e.split(wh.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],wh.timeZoneDelimiter.test(t.date)&&(t.date=e.split(wh.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=wh.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Tz(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Ez(e,t){if(t===null)return new Date(NaN);var n=e.match(Dz);if(!n)return new Date(NaN);var r=!!n[4],i=Fl(n[1]),a=Fl(n[2])-1,o=Fl(n[3]),s=Fl(n[4]),u=Fl(n[5])-1;if(r)return Wz(t,s,u)?Nz(t,s,u):new Date(NaN);var d=new Date(0);return!Fz(t,a,o)||!Az(t,i)?new Date(NaN):(d.setUTCFullYear(t,a,Math.max(i,o)),d)}function Fl(e){return e?parseInt(e):1}function Rz(e){var t=e.match(Cz);if(!t)return NaN;var n=Iy(t[1]),r=Iy(t[2]),i=Iy(t[3]);return Yz(n,r,i)?n*xh.millisecondsInHour+r*xh.millisecondsInMinute+i*1e3:NaN}function Iy(e){return e&&parseFloat(e.replace(",","."))||0}function Iz(e){if(e==="Z")return 0;var t=e.match(Oz);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return zz(r,i)?n*(r*xh.millisecondsInHour+i*xh.millisecondsInMinute):NaN}function Nz(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var Lz=[31,null,31,30,31,30,31,31,30,31,30,31];function uD(e){return e%400===0||e%4===0&&e%100!==0}function Fz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Lz[t]||(uD(e)?29:28))}function Az(e,t){return t>=1&&t<=(uD(e)?366:365)}function Wz(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Yz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function zz(e,t){return t>=0&&t<=59}cD.exports=bh.default});var gD=$(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var fD=Tt(),qz=xd();function Hz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ly(e,t)}function Ly(e,t){return Ly=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ly(e,t)}function Uz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bz(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Vz(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Bz(e,t,n))return!0;e=e.parentNode||e.host}return e}function jz(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var $z=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function Qz(e){return e===void 0&&(e=0),function(){return++e}}var Gz=Qz(),Fy,Sh={},Ny={},Xz=["touchstart","touchmove"],mD="ignore-react-onclickoutside";function pD(e,t){var n=null,r=Xz.indexOf(t)!==-1;return r&&Fy&&(n={passive:!e.props.preventDefault}),n}function Kz(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(a){Hz(o,a);function o(u){var d;return d=a.call(this,u)||this,d.__outsideClickHandler=function(p){if(typeof d.__clickOutsideHandlerProp=="function"){d.__clickOutsideHandlerProp(p);return}var g=d.getInstance();if(typeof g.props.handleClickOutside=="function"){g.props.handleClickOutside(p);return}if(typeof g.handleClickOutside=="function"){g.handleClickOutside(p);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},d.__getComponentNode=function(){var p=d.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(p):typeof p.setClickOutsideRef=="function"?p.setClickOutsideRef():qz.findDOMNode(p)},d.enableOnClickOutside=function(){if(!(typeof document>"u"||Ny[d._uid])){typeof Fy>"u"&&(Fy=$z()),Ny[d._uid]=!0;var p=d.props.eventTypes;p.forEach||(p=[p]),Sh[d._uid]=function(g){if(d.componentNode!==null&&(d.props.preventDefault&&g.preventDefault(),d.props.stopPropagation&&g.stopPropagation(),!(d.props.excludeScrollbar&&jz(g)))){var v=g.composed&&g.composedPath&&g.composedPath().shift()||g.target;Vz(v,d.componentNode,d.props.outsideClickIgnoreClass)===document&&d.__outsideClickHandler(g)}},p.forEach(function(g){document.addEventListener(g,Sh[d._uid],pD(hD(d),g))})}},d.disableOnClickOutside=function(){delete Ny[d._uid];var p=Sh[d._uid];if(p&&typeof document<"u"){var g=d.props.eventTypes;g.forEach||(g=[g]),g.forEach(function(v){return document.removeEventListener(v,p,pD(hD(d),v))}),delete Sh[d._uid]}},d.getRef=function(p){return d.instanceRef=p},d._uid=Gz(),d}var s=o.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var d=this.instanceRef;return d.getInstance?d.getInstance():d},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var d=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(d),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var d=this.props;d.excludeScrollbar;var p=Uz(d,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?p.ref=this.getRef:p.wrappedRef=this.getRef,p.disableOnClickOutside=this.disableOnClickOutside,p.enableOnClickOutside=this.enableOnClickOutside,fD.createElement(e,p)},o}(fD.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:mD,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}Mh.IGNORE_CLASS_NAME=mD;Mh.default=Kz});var kh=$(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.Manager=Jz;Da.ManagerReferenceNodeSetterContext=Da.ManagerReferenceNodeContext=void 0;var Ai=Zz(Tt());function vD(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return vD=function(){return e},e}function Zz(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=vD();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var yD=Ai.createContext();Da.ManagerReferenceNodeContext=yD;var _D=Ai.createContext();Da.ManagerReferenceNodeSetterContext=_D;function Jz(e){var t=e.children,n=Ai.useState(null),r=n[0],i=n[1],a=Ai.useRef(!1);Ai.useEffect(function(){return function(){a.current=!0}},[]);var o=Ai.useCallback(function(s){a.current||i(s)},[]);return Ai.createElement(yD.Provider,{value:r},Ai.createElement(_D.Provider,{value:o},t))}});var Dh=$(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.useIsomorphicLayoutEffect=Hn.fromEntries=Hn.setRef=Hn.safeInvoke=Hn.unwrapArray=void 0;var wD=eq(Tt());function xD(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return xD=function(){return e},e}function eq(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=xD();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var tq=function(t){return Array.isArray(t)?t[0]:t};Hn.unwrapArray=tq;var bD=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}};Hn.safeInvoke=bD;var nq=function(t,n){if(typeof t=="function")return bD(t,n);t!=null&&(t.current=n)};Hn.setRef=nq;var rq=function(t){return t.reduce(function(n,r){var i=r[0],a=r[1];return n[i]=a,n},{})};Hn.fromEntries=rq;var iq=typeof window<"u"&&window.document&&window.document.createElement?wD.useLayoutEffect:wD.useEffect;Hn.useIsomorphicLayoutEffect=iq});var jD=$(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});function ar(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lo(e){var t=ar(e).Element;return e instanceof t||e instanceof Element}function Un(e){var t=ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wy(e){if(typeof ShadowRoot>"u")return!1;var t=ar(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ca=Math.max,Ph=Math.min,Fo=Math.round;function Ao(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Un(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(r=Fo(n.width)/o||1),a>0&&(i=Fo(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Yy(e){var t=ar(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function aq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oq(e){return e===ar(e)||!Un(e)?Yy(e):aq(e)}function Er(e){return e?(e.nodeName||"").toLowerCase():null}function Wi(e){return((Lo(e)?e.ownerDocument:e.document)||window.document).documentElement}function zy(e){return Ao(Wi(e)).left+Yy(e).scrollLeft}function ei(e){return ar(e).getComputedStyle(e)}function qy(e){var t=ei(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function sq(e){var t=e.getBoundingClientRect(),n=Fo(t.width)/e.offsetWidth||1,r=Fo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lq(e,t,n){n===void 0&&(n=!1);var r=Un(t),i=Un(t)&&sq(t),a=Wi(t),o=Ao(e,i),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Er(t)!=="body"||qy(a))&&(s=oq(t)),Un(t)?(u=Ao(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=zy(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function Hy(e){var t=Ao(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Th(e){return Er(e)==="html"?e:e.assignedSlot||e.parentNode||(Wy(e)?e.host:null)||Wi(e)}function RD(e){return["html","body","#document"].indexOf(Er(e))>=0?e.ownerDocument.body:Un(e)&&qy(e)?e:RD(Th(e))}function Wl(e,t){var n;t===void 0&&(t=[]);var r=RD(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ar(r),o=i?[a].concat(a.visualViewport||[],qy(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Wl(Th(o)))}function uq(e){return["table","td","th"].indexOf(Er(e))>=0}function SD(e){return!Un(e)||ei(e).position==="fixed"?null:e.offsetParent}function cq(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Un(e)){var r=ei(e);if(r.position==="fixed")return null}var i=Th(e);for(Wy(i)&&(i=i.host);Un(i)&&["html","body"].indexOf(Er(i))<0;){var a=ei(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function ql(e){for(var t=ar(e),n=SD(e);n&&uq(n)&&ei(n).position==="static";)n=SD(n);return n&&(Er(n)==="html"||Er(n)==="body"&&ei(n).position==="static")?t:n||cq(e)||t}var vn="top",Bn="bottom",Vn="right",yn="left",Uy="auto",Hl=[vn,Bn,Vn,yn],Wo="start",zl="end",dq="clippingParents",ID="viewport",Al="popper",fq="reference",MD=Hl.reduce(function(e,t){return e.concat([t+"-"+Wo,t+"-"+zl])},[]),ND=[].concat(Hl,[Uy]).reduce(function(e,t){return e.concat([t,t+"-"+Wo,t+"-"+zl])},[]),hq="beforeRead",pq="read",mq="afterRead",gq="beforeMain",vq="main",yq="afterMain",_q="beforeWrite",wq="write",xq="afterWrite",bq=[hq,pq,mq,gq,vq,yq,_q,wq,xq];function Sq(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Mq(e){var t=Sq(e);return bq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function kq(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Tr(e){return e.split("-")[0]}function Dq(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function Cq(e){var t=ar(e),n=Wi(e),r=t.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,s=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:i,height:a,x:o+zy(e),y:s}}function Oq(e){var t,n=Wi(e),r=Yy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Ca(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ca(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+zy(e),u=-r.scrollTop;return ei(i||n).direction==="rtl"&&(s+=Ca(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function LD(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ay(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pq(e){var t=Ao(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kD(e,t){return t===ID?Ay(Cq(e)):Lo(t)?Pq(t):Ay(Oq(Wi(e)))}function Tq(e){var t=Wl(Th(e)),n=["absolute","fixed"].indexOf(ei(e).position)>=0,r=n&&Un(e)?ql(e):e;return Lo(r)?t.filter(function(i){return Lo(i)&&LD(i,r)&&Er(i)!=="body"}):[]}function Eq(e,t,n){var r=t==="clippingParents"?Tq(e):[].concat(t),i=[].concat(r,[n]),a=i[0],o=i.reduce(function(s,u){var d=kD(e,u);return s.top=Ca(d.top,s.top),s.right=Ph(d.right,s.right),s.bottom=Ph(d.bottom,s.bottom),s.left=Ca(d.left,s.left),s},kD(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Yo(e){return e.split("-")[1]}function By(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function FD(e){var t=e.reference,n=e.element,r=e.placement,i=r?Tr(r):null,a=r?Yo(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(i){case vn:u={x:o,y:t.y-n.height};break;case Bn:u={x:o,y:t.y+t.height};break;case Vn:u={x:t.x+t.width,y:s};break;case yn:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var d=i?By(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Wo:u[d]=u[d]-(t[p]/2-n[p]/2);break;case zl:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function AD(){return{top:0,right:0,bottom:0,left:0}}function WD(e){return Object.assign({},AD(),e)}function YD(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function zo(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.boundary,o=a===void 0?dq:a,s=n.rootBoundary,u=s===void 0?ID:s,d=n.elementContext,p=d===void 0?Al:d,g=n.altBoundary,v=g===void 0?!1:g,S=n.padding,C=S===void 0?0:S,x=WD(typeof C!="number"?C:YD(C,Hl)),w=p===Al?fq:Al,_=e.rects.popper,D=e.elements[v?w:p],O=Eq(Lo(D)?D:D.contextElement||Wi(e.elements.popper),o,u),E=Ao(e.elements.reference),L=FD({reference:E,element:_,strategy:"absolute",placement:i}),Y=Ay(Object.assign({},_,L)),q=p===Al?Y:E,B={top:O.top-q.top+x.top,bottom:q.bottom-O.bottom+x.bottom,left:O.left-q.left+x.left,right:q.right-O.right+x.right},V=e.modifiersData.offset;if(p===Al&&V){var re=V[i];Object.keys(B).forEach(function(J){var ue=[Vn,Bn].indexOf(J)>=0?1:-1,ge=[vn,Bn].indexOf(J)>=0?"y":"x";B[J]+=re[ge]*ue})}return B}var DD={placement:"bottom",modifiers:[],strategy:"absolute"};function CD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Vy(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?DD:i;return function(s,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},DD,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},g=[],v=!1,S={state:p,setOptions:function(_){var D=typeof _=="function"?_(p.options):_;x(),p.options=Object.assign({},a,p.options,D),p.scrollParents={reference:Lo(s)?Wl(s):s.contextElement?Wl(s.contextElement):[],popper:Wl(u)};var O=Mq(Dq([].concat(r,p.options.modifiers)));if(p.orderedModifiers=O.filter(function(J){return J.enabled}),!1){var E;if(Tr(p.options.placement)===Uy)var L;var Y,q,B,V,re}return C(),S.update()},forceUpdate:function(){if(!v){var _=p.elements,D=_.reference,O=_.popper;if(!!CD(D,O)){p.rects={reference:lq(D,ql(O),p.options.strategy==="fixed"),popper:Hy(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(J){return p.modifiersData[J.name]=Object.assign({},J.data)});for(var E=0,L=0;L<p.orderedModifiers.length;L++){if(p.reset===!0){p.reset=!1,L=-1;continue}var Y=p.orderedModifiers[L],q=Y.fn,B=Y.options,V=B===void 0?{}:B,re=Y.name;typeof q=="function"&&(p=q({state:p,options:V,name:re,instance:S})||p)}}}},update:kq(function(){return new Promise(function(w){S.forceUpdate(),w(p)})}),destroy:function(){x(),v=!0}};if(!CD(s,u))return S;S.setOptions(d).then(function(w){!v&&d.onFirstUpdate&&d.onFirstUpdate(w)});function C(){p.orderedModifiers.forEach(function(w){var _=w.name,D=w.options,O=D===void 0?{}:D,E=w.effect;if(typeof E=="function"){var L=E({state:p,name:_,instance:S,options:O}),Y=function(){};g.push(L||Y)}})}function x(){g.forEach(function(w){return w()}),g=[]}return S}}var Ch={passive:!0};function Rq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,u=ar(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,Ch)}),s&&u.addEventListener("resize",n.update,Ch),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Ch)}),s&&u.removeEventListener("resize",n.update,Ch)}}var jy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rq,data:{}};function Iq(e){var t=e.state,n=e.name;t.modifiersData[n]=FD({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var $y={name:"popperOffsets",enabled:!0,phase:"read",fn:Iq,data:{}},Nq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lq(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Fo(t*i)/i||0,y:Fo(n*i)/i||0}}function OD(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,v=o.x,S=v===void 0?0:v,C=o.y,x=C===void 0?0:C,w=typeof p=="function"?p({x:S,y:x}):{x:S,y:x};S=w.x,x=w.y;var _=o.hasOwnProperty("x"),D=o.hasOwnProperty("y"),O=yn,E=vn,L=window;if(d){var Y=ql(n),q="clientHeight",B="clientWidth";if(Y===ar(n)&&(Y=Wi(n),ei(Y).position!=="static"&&s==="absolute"&&(q="scrollHeight",B="scrollWidth")),Y=Y,i===vn||(i===yn||i===Vn)&&a===zl){E=Bn;var V=g&&Y===L&&L.visualViewport?L.visualViewport.height:Y[q];x-=V-r.height,x*=u?1:-1}if(i===yn||(i===vn||i===Bn)&&a===zl){O=Vn;var re=g&&Y===L&&L.visualViewport?L.visualViewport.width:Y[B];S-=re-r.width,S*=u?1:-1}}var J=Object.assign({position:s},d&&Nq),ue=p===!0?Lq({x:S,y:x}):{x:S,y:x};if(S=ue.x,x=ue.y,u){var ge;return Object.assign({},J,(ge={},ge[E]=D?"0":"",ge[O]=_?"0":"",ge.transform=(L.devicePixelRatio||1)<=1?"translate("+S+"px, "+x+"px)":"translate3d("+S+"px, "+x+"px, 0)",ge))}return Object.assign({},J,(t={},t[E]=D?x+"px":"",t[O]=_?S+"px":"",t.transform="",t))}function Fq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,u=s===void 0?!0:s;if(!1)var d;var p={placement:Tr(t.placement),variation:Yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OD(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OD(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Qy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fq,data:{}};function Aq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Un(a)||!Er(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function Wq(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(u,d){return u[d]="",u},{});!Un(i)||!Er(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}var Gy={name:"applyStyles",enabled:!0,phase:"write",fn:Aq,effect:Wq,requires:["computeStyles"]};function Yq(e,t,n){var r=Tr(e),i=[yn,vn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[yn,Vn].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function zq(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=ND.reduce(function(p,g){return p[g]=Yq(g,t.rects,a),p},{}),s=o[t.placement],u=s.x,d=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=o}var zD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zq},qq={left:"right",right:"left",bottom:"top",top:"bottom"};function Oh(e){return e.replace(/left|right|bottom|top/g,function(t){return qq[t]})}var Hq={start:"end",end:"start"};function PD(e){return e.replace(/start|end/g,function(t){return Hq[t]})}function Uq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?ND:u,p=Yo(r),g=p?s?MD:MD.filter(function(C){return Yo(C)===p}):Hl,v=g.filter(function(C){return d.indexOf(C)>=0});v.length===0&&(v=g);var S=v.reduce(function(C,x){return C[x]=zo(e,{placement:x,boundary:i,rootBoundary:a,padding:o})[Tr(x)],C},{});return Object.keys(S).sort(function(C,x){return S[C]-S[x]})}function Bq(e){if(Tr(e)===Uy)return[];var t=Oh(e);return[PD(e),t,PD(t)]}function Vq(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,v=n.altBoundary,S=n.flipVariations,C=S===void 0?!0:S,x=n.allowedAutoPlacements,w=t.options.placement,_=Tr(w),D=_===w,O=u||(D||!C?[Oh(w)]:Bq(w)),E=[w].concat(O).reduce(function(Be,Fe){return Be.concat(Tr(Fe)===Uy?Uq(t,{placement:Fe,boundary:p,rootBoundary:g,padding:d,flipVariations:C,allowedAutoPlacements:x}):Fe)},[]),L=t.rects.reference,Y=t.rects.popper,q=new Map,B=!0,V=E[0],re=0;re<E.length;re++){var J=E[re],ue=Tr(J),ge=Yo(J)===Wo,ve=[vn,Bn].indexOf(ue)>=0,ae=ve?"width":"height",oe=zo(t,{placement:J,boundary:p,rootBoundary:g,altBoundary:v,padding:d}),pe=ve?ge?Vn:yn:ge?Bn:vn;L[ae]>Y[ae]&&(pe=Oh(pe));var de=Oh(pe),Te=[];if(a&&Te.push(oe[ue]<=0),s&&Te.push(oe[pe]<=0,oe[de]<=0),Te.every(function(Be){return Be})){V=J,B=!1;break}q.set(J,Te)}if(B)for(var Je=C?3:1,ot=function(Fe){var cn=E.find(function(dt){var Ge=q.get(dt);if(Ge)return Ge.slice(0,Fe).every(function(_t){return _t})});if(cn)return V=cn,"break"},Ee=Je;Ee>0;Ee--){var ne=ot(Ee);if(ne==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}var qD={name:"flip",enabled:!0,phase:"main",fn:Vq,requiresIfExists:["offset"],data:{_skip:!1}};function jq(e){return e==="x"?"y":"x"}function Yl(e,t,n){return Ca(e,Ph(t,n))}function $q(e,t,n){var r=Yl(e,t,n);return r>n?n:r}function Qq(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,v=n.tether,S=v===void 0?!0:v,C=n.tetherOffset,x=C===void 0?0:C,w=zo(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:p}),_=Tr(t.placement),D=Yo(t.placement),O=!D,E=By(_),L=jq(E),Y=t.modifiersData.popperOffsets,q=t.rects.reference,B=t.rects.popper,V=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,re=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),J=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ue={x:0,y:0};if(!!Y){if(a){var ge,ve=E==="y"?vn:yn,ae=E==="y"?Bn:Vn,oe=E==="y"?"height":"width",pe=Y[E],de=pe+w[ve],Te=pe-w[ae],Je=S?-B[oe]/2:0,ot=D===Wo?q[oe]:B[oe],Ee=D===Wo?-B[oe]:-q[oe],ne=t.elements.arrow,Be=S&&ne?Hy(ne):{width:0,height:0},Fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AD(),cn=Fe[ve],dt=Fe[ae],Ge=Yl(0,q[oe],Be[oe]),_t=O?q[oe]/2-Je-Ge-cn-re.mainAxis:ot-Ge-cn-re.mainAxis,It=O?-q[oe]/2+Je+Ge+dt+re.mainAxis:Ee+Ge+dt+re.mainAxis,Tn=t.elements.arrow&&ql(t.elements.arrow),cr=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Nt=(ge=J==null?void 0:J[E])!=null?ge:0,ft=pe+_t-Nt-cr,dn=pe+It-Nt,Lt=Yl(S?Ph(de,ft):de,pe,S?Ca(Te,dn):Te);Y[E]=Lt,ue[E]=Lt-pe}if(s){var dr,tn=E==="x"?vn:yn,Ae=E==="x"?Bn:Vn,ze=Y[L],zt=L==="y"?"height":"width",fr=ze+w[tn],ht=ze-w[Ae],Gi=[vn,yn].indexOf(_)!==-1,Fr=(dr=J==null?void 0:J[L])!=null?dr:0,St=Gi?fr:ze-q[zt]-B[zt]-Fr+re.altAxis,X=Gi?ze+q[zt]+B[zt]-Fr-re.altAxis:ht,H=S&&Gi?$q(St,ze,X):Yl(S?St:fr,ze,S?X:ht);Y[L]=H,ue[L]=H-ze}t.modifiersData[r]=ue}}var HD={name:"preventOverflow",enabled:!0,phase:"main",fn:Qq,requiresIfExists:["offset"]},Gq=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WD(typeof t!="number"?t:YD(t,Hl))};function Xq(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Tr(n.placement),u=By(s),d=[yn,Vn].indexOf(s)>=0,p=d?"height":"width";if(!(!a||!o)){var g=Gq(i.padding,n),v=Hy(a),S=u==="y"?vn:yn,C=u==="y"?Bn:Vn,x=n.rects.reference[p]+n.rects.reference[u]-o[u]-n.rects.popper[p],w=o[u]-n.rects.reference[u],_=ql(a),D=_?u==="y"?_.clientHeight||0:_.clientWidth||0:0,O=x/2-w/2,E=g[S],L=D-v[p]-g[C],Y=D/2-v[p]/2+O,q=Yl(E,Y,L),B=u;n.modifiersData[r]=(t={},t[B]=q,t.centerOffset=q-Y,t)}}function Kq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!LD(t.elements.popper,i)||(t.elements.arrow=i))}var UD={name:"arrow",enabled:!0,phase:"main",fn:Xq,effect:Kq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function TD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ED(e){return[vn,Vn,Bn,yn].some(function(t){return e[t]>=0})}function Zq(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=zo(t,{elementContext:"reference"}),s=zo(t,{altBoundary:!0}),u=TD(o,r),d=TD(s,i,a),p=ED(u),g=ED(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}var BD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zq},Jq=[jy,$y,Qy,Gy],eH=Vy({defaultModifiers:Jq}),VD=[jy,$y,Qy,Gy,zD,qD,HD,UD,BD],tH=Vy({defaultModifiers:VD});Jt.applyStyles=Gy;Jt.arrow=UD;Jt.computeStyles=Qy;Jt.createPopper=tH;Jt.createPopperLite=eH;Jt.defaultModifiers=VD;Jt.detectOverflow=zo;Jt.eventListeners=jy;Jt.flip=qD;Jt.hide=BD;Jt.offset=zD;Jt.popperGenerator=Vy;Jt.popperOffsets=$y;Jt.preventOverflow=HD});var QD=$(($4,$D)=>{var nH=typeof Element<"u",rH=typeof Map=="function",iH=typeof Set=="function",aH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Eh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Eh(e[r],t[r]))return!1;return!0}var a;if(rH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Eh(r.value[1],t.get(r.value[0])))return!1;return!0}if(iH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(aH&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(nH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Eh(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}$D.exports=function(t,n){try{return Eh(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}});var Xy=$(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.usePopper=void 0;var Ul=uH(Tt()),oH=jD(),sH=lH(QD()),Rh=Dh();function lH(e){return e&&e.__esModule?e:{default:e}}function GD(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return GD=function(){return e},e}function uH(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=GD();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var cH=[],dH=function(t,n,r){r===void 0&&(r={});var i=Ul.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||cH},o=Ul.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=o[0],u=o[1],d=Ul.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(S){var C=S.state,x=Object.keys(C.elements);u({styles:(0,Rh.fromEntries)(x.map(function(w){return[w,C.styles[w]||{}]})),attributes:(0,Rh.fromEntries)(x.map(function(w){return[w,C.attributes[w]]}))})},requires:["computeStyles"]}},[]),p=Ul.useMemo(function(){var v={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[d,{name:"applyStyles",enabled:!1}])};return(0,sH.default)(i.current,v)?i.current||v:(i.current=v,v)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,d]),g=Ul.useRef();return(0,Rh.useIsomorphicLayoutEffect)(function(){g.current&&g.current.setOptions(p)},[p]),(0,Rh.useIsomorphicLayoutEffect)(function(){if(!(t==null||n==null)){var v=r.createPopper||oH.createPopper,S=v(t,n,p);return g.current=S,function(){S.destroy(),g.current=null}}},[t,n,r.createPopper]),{state:g.current?g.current.state:null,styles:s.styles,attributes:s.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};Ih.usePopper=dH});var ZD=$(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.Popper=yH;var qo=pH(Tt()),fH=kh(),XD=Dh(),hH=Xy();function KD(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return KD=function(){return e},e}function pH(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=KD();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var mH=function(){},gH=function(){return Promise.resolve(null)},vH=[];function yH(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,a=e.modifiers,o=a===void 0?vH:a,s=e.referenceElement,u=e.onFirstUpdate,d=e.innerRef,p=e.children,g=qo.useContext(fH.ManagerReferenceNodeContext),v=qo.useState(null),S=v[0],C=v[1],x=qo.useState(null),w=x[0],_=x[1];qo.useEffect(function(){(0,XD.setRef)(d,S)},[d,S]);var D=qo.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:u,modifiers:[].concat(o,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,u,o,w]),O=(0,hH.usePopper)(s||g,S,D),E=O.state,L=O.styles,Y=O.forceUpdate,q=O.update,B=qo.useMemo(function(){return{ref:C,style:L.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:L.arrow,ref:_},forceUpdate:Y||mH,update:q||gH}},[C,_,n,E,L,q,Y]);return(0,XD.unwrapArray)(p)(B)}});var nC=$((X4,tC)=>{"use strict";var _H=!1,eC=function(){};_H&&(JD=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var a=0,o="Warning: "+t.replace(/%s/g,function(){return n[a++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch(s){}},eC=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||JD.apply(null,[t].concat(n))});var JD;tC.exports=eC});var iC=$(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.Reference=MH;var Nh=SH(Tt()),wH=bH(nC()),xH=kh(),Lh=Dh();function bH(e){return e&&e.__esModule?e:{default:e}}function rC(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return rC=function(){return e},e}function SH(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=rC();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function MH(e){var t=e.children,n=e.innerRef,r=Nh.useContext(xH.ManagerReferenceNodeSetterContext),i=Nh.useCallback(function(a){(0,Lh.setRef)(n,a),(0,Lh.safeInvoke)(r,a)},[n,r]);return Nh.useEffect(function(){return function(){return(0,Lh.setRef)(n,null)}}),Nh.useEffect(function(){(0,wH.default)(Boolean(r),"`Reference` should not be used outside of a `Manager` component.")},[r]),(0,Lh.unwrapArray)(t)({ref:i})}});var aC=$(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Object.defineProperty(Ho,"Popper",{enumerable:!0,get:function(){return kH.Popper}});Object.defineProperty(Ho,"Manager",{enumerable:!0,get:function(){return DH.Manager}});Object.defineProperty(Ho,"Reference",{enumerable:!0,get:function(){return CH.Reference}});Object.defineProperty(Ho,"usePopper",{enumerable:!0,get:function(){return OH.usePopper}});var kH=ZD(),DH=kh(),CH=iC(),OH=Xy()});var Jy=$((Fh,oC)=>{(function(e,t){typeof Fh=="object"&&typeof oC<"u"?t(Fh,Tt(),eS(),tS(),Lv(),Av(),o1(),Jv(),ty(),rf(),iy(),sf(),sy(),p1(),g1(),y1(),w1(),b1(),M1(),C1(),T1(),I1(),F1(),Y1(),X1(),J1(),nM(),aM(),lM(),cM(),fM(),pM(),wy(),wM(),bM(),kM(),OM(),NM(),WM(),HM(),jM(),Bf(),xf(),GM(),My(),ek(),rk(),ok(),uk(),hk(),vk(),xk(),kk(),Pk(),Ik(),Ak(),zk(),le(),aD(),dD(),gD(),xd(),aC()):typeof define=="function"&&define.amd?define(["exports","react","prop-types","classnames","date-fns/isDate","date-fns/isValid","date-fns/format","date-fns/addMinutes","date-fns/addHours","date-fns/addDays","date-fns/addWeeks","date-fns/addMonths","date-fns/addYears","date-fns/subMinutes","date-fns/subHours","date-fns/subDays","date-fns/subWeeks","date-fns/subMonths","date-fns/subYears","date-fns/getSeconds","date-fns/getMinutes","date-fns/getHours","date-fns/getDay","date-fns/getDate","date-fns/getISOWeek","date-fns/getMonth","date-fns/getQuarter","date-fns/getYear","date-fns/getTime","date-fns/setSeconds","date-fns/setMinutes","date-fns/setHours","date-fns/setMonth","date-fns/setQuarter","date-fns/setYear","date-fns/min","date-fns/max","date-fns/differenceInCalendarDays","date-fns/differenceInCalendarMonths","date-fns/differenceInCalendarWeeks","date-fns/differenceInCalendarYears","date-fns/startOfDay","date-fns/startOfWeek","date-fns/startOfMonth","date-fns/startOfQuarter","date-fns/startOfYear","date-fns/endOfDay","date-fns/endOfWeek","date-fns/endOfMonth","date-fns/isEqual","date-fns/isSameDay","date-fns/isSameMonth","date-fns/isSameYear","date-fns/isSameQuarter","date-fns/isAfter","date-fns/isBefore","date-fns/isWithinInterval","date-fns/toDate","date-fns/parse","date-fns/parseISO","react-onclickoutside","react-dom","react-popper"],t):t((e=typeof globalThis<"u"?globalThis:e||self).DatePicker={},e.React,e.PropTypes,e.classNames,e.isDate,e.isValidDate,e.format,e.addMinutes,e.addHours,e.addDays,e.addWeeks,e.addMonths,e.addYears,null,null,e.subDays,e.subWeeks,e.subMonths,e.subYears,e.getSeconds,e.getMinutes,e.getHours,e.getDay,e.getDate,e.getISOWeek,e.getMonth,e.getQuarter,e.getYear,e.getTime,e.setSeconds,e.setMinutes,e.setHours,e.setMonth,e.setQuarter,e.setYear,e.min,e.max,e.differenceInCalendarDays,e.differenceInCalendarMonths,null,e.differenceInCalendarYears,e.startOfDay,e.startOfWeek,e.startOfMonth,e.startOfQuarter,e.startOfYear,e.endOfDay,null,null,e.dfIsEqual,e.dfIsSameDay,e.dfIsSameMonth,e.dfIsSameYear,e.dfIsSameQuarter,e.isAfter,e.isBefore,e.isWithinInterval,e.toDate,e.parse,e.parseISO,e.onClickOutside,e.ReactDOM,e.ReactPopper)})(Fh,function(e,t,n,r,i,a,o,s,u,d,p,g,v,S,C,x,w,_,D,O,E,L,Y,q,B,V,re,J,ue,ge,ve,ae,oe,pe,de,Te,Je,ot,Ee,ne,Be,Fe,cn,dt,Ge,_t,It,Tn,cr,Nt,ft,dn,Lt,dr,tn,Ae,ze,zt,fr,ht,Gi,Fr,St){"use strict";function X(R){return R&&typeof R=="object"&&"default"in R?R:{default:R}}var H=X(t),Mt=X(r),rs=X(i),kp=X(a),Du=X(o),Ya=X(s),nn=X(u),Xi=X(d),za=X(p),En=X(g),De=X(v),Cu=X(x),Ou=X(w),hr=X(_),Ar=X(D),qa=X(O),Pt=X(E),qt=X(L),Dp=X(Y),Ki=X(q),Cp=X(B),pt=X(V),li=X(re),G=X(J),is=X(ue),Op=X(ge),kt=X(ve),Wr=X(ae),ye=X(oe),Gn=X(pe),Ha=X(de),Dt=X(Te),Rn=X(Je),rn=X(ot),Xe=X(Ee),Ht=X(Be),Ut=X(Fe),Yr=X(cn),Pp=X(dt),Tp=X(Ge),Ep=X(_t),Ve=X(It),Ua=X(Nt),Rp=X(ft),Pu=X(dn),Tu=X(Lt),Ip=X(dr),pr=X(tn),Xn=X(Ae),Zi=X(ze),Np=X(zt),as=X(fr),Eu=X(ht),Ji=X(Gi),Lp=X(Fr);function Ru(R,P){var I=Object.keys(R);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(R);P&&(h=h.filter(function(c){return Object.getOwnPropertyDescriptor(R,c).enumerable})),I.push.apply(I,h)}return I}function Iu(R){for(var P=1;P<arguments.length;P++){var I=arguments[P]!=null?arguments[P]:{};P%2?Ru(Object(I),!0).forEach(function(h){F(R,h,I[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(I)):Ru(Object(I)).forEach(function(h){Object.defineProperty(R,h,Object.getOwnPropertyDescriptor(I,h))})}return R}function os(R){return(os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(R)}function Ke(R,P){if(!(R instanceof P))throw new TypeError("Cannot call a class as a function")}function ss(R,P){for(var I=0;I<P.length;I++){var h=P[I];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(R,h.key,h)}}function wt(R,P,I){return P&&ss(R.prototype,P),I&&ss(R,I),Object.defineProperty(R,"prototype",{writable:!1}),R}function F(R,P,I){return P in R?Object.defineProperty(R,P,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[P]=I,R}function mr(){return(mr=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var I=arguments[P];for(var h in I)Object.prototype.hasOwnProperty.call(I,h)&&(R[h]=I[h])}return R}).apply(this,arguments)}function et(R,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(R,"prototype",{value:Object.create(P&&P.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),writable:!1}),P&&ui(R,P)}function Ba(R){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(R)}function ui(R,P){return(ui=Object.setPrototypeOf||function(I,h){return I.__proto__=h,I})(R,P)}function W(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function Fp(R,P){if(P&&(typeof P=="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(R)}function xt(R){var P=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(I){return!1}}();return function(){var I,h=Ba(R);if(P){var c=Ba(this).constructor;I=Reflect.construct(h,arguments,c)}else I=h.apply(this,arguments);return Fp(this,I)}}function Nu(R){return function(P){if(Array.isArray(P))return ls(P)}(R)||function(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}(R)||function(P,I){if(!!P){if(typeof P=="string")return ls(P,I);var h=Object.prototype.toString.call(P).slice(8,-1);if(h==="Object"&&P.constructor&&(h=P.constructor.name),h==="Map"||h==="Set")return Array.from(P);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return ls(P,I)}}(R)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ls(R,P){(P==null||P>R.length)&&(P=R.length);for(var I=0,h=new Array(P);I<P;I++)h[I]=R[I];return h}function Lu(R,P){switch(R){case"P":return P.date({width:"short"});case"PP":return P.date({width:"medium"});case"PPP":return P.date({width:"long"});case"PPPP":default:return P.date({width:"full"})}}function Fu(R,P){switch(R){case"p":return P.time({width:"short"});case"pp":return P.time({width:"medium"});case"ppp":return P.time({width:"long"});case"pppp":default:return P.time({width:"full"})}}var Ap={p:Fu,P:function(R,P){var I,h=R.match(/(P+)(p+)?/)||[],c=h[1],k=h[2];if(!k)return Lu(R,P);switch(c){case"P":I=P.dateTime({width:"short"});break;case"PP":I=P.dateTime({width:"medium"});break;case"PPP":I=P.dateTime({width:"long"});break;case"PPPP":default:I=P.dateTime({width:"full"})}return I.replace("{{date}}",Lu(c,P)).replace("{{time}}",Fu(k,P))}},ea=12,us=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function st(R){var P=R?typeof R=="string"||R instanceof String?Eu.default(R):Np.default(R):new Date;return gr(P)?P:null}function Au(R,P,I,h,c){var k=null,N=Kn(I)||Kn(yr()),b=!0;return Array.isArray(P)?(P.forEach(function(T){var z=as.default(R,T,new Date,{locale:N});h&&(b=gr(z,c)&&R===tt(z,T,I)),gr(z,c)&&b&&(k=z)}),k):(k=as.default(R,P,new Date,{locale:N}),h?b=gr(k)&&R===tt(k,P,I):gr(k)||(P=P.match(us).map(function(T){var z=T[0];return z==="p"||z==="P"?N?(0,Ap[z])(T,N.formatLong):z:T}).join(""),R.length>0&&(k=as.default(R,P.slice(0,R.length),new Date)),gr(k)||(k=new Date(R))),gr(k)&&b?k:null)}function gr(R,P){return P=P||new Date("1/1/1000"),kp.default(R)&&!Xn.default(R,P)}function tt(R,P,I){if(I==="en")return Du.default(R,P,{awareOfUnicodeTokens:!0});var h=Kn(I);return I&&!h&&console.warn('A locale object was not found for the provided string ["'.concat(I,'"].')),!h&&yr()&&Kn(yr())&&(h=Kn(yr())),Du.default(R,P,{locale:h||null,awareOfUnicodeTokens:!0})}function cs(R,P){var I=P.dateFormat,h=P.locale;return R&&tt(R,Array.isArray(I)?I[0]:I,h)||""}function Wu(R,P){var I=P.hour,h=I===void 0?0:I,c=P.minute,k=c===void 0?0:c,N=P.second,b=N===void 0?0:N;return Wr.default(kt.default(Op.default(R,b),k),h)}function Wp(R,P){var I=P&&Kn(P)||yr()&&Kn(yr());return Cp.default(R,I?{locale:I}:null)}function Yp(R,P){return tt(R,"ddd",P)}function zp(R){return Ut.default(R)}function ds(R,P,I){var h=Kn(P||yr());return Yr.default(R,{locale:h,weekStartsOn:I})}function zr(R){return Pp.default(R)}function ta(R){return Ep.default(R)}function qp(R){return Tp.default(R)}function Yu(R,P){return R&&P?Tu.default(R,P):!R&&!P}function vr(R,P){return R&&P?Pu.default(R,P):!R&&!P}function Va(R,P){return R&&P?Ip.default(R,P):!R&&!P}function Bt(R,P){return R&&P?Rp.default(R,P):!R&&!P}function In(R,P){return R&&P?Ua.default(R,P):!R&&!P}function ci(R,P,I){var h,c=Ut.default(P),k=Ve.default(I);try{h=Zi.default(R,{start:c,end:k})}catch(N){h=!1}return h}function yr(){return(typeof window<"u"?window:globalThis).__localeId__}function Kn(R){if(typeof R=="string"){var P=typeof window<"u"?window:globalThis;return P.__localeData__?P.__localeData__[R]:null}return R}function fs(R,P){return tt(ye.default(st(),R),"LLLL",P)}function zu(R,P){return tt(ye.default(st(),R),"LLL",P)}function Hp(R,P){return tt(Gn.default(st(),R),"QQQ",P)}function ja(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.maxDate,c=P.excludeDates,k=P.excludeDateIntervals,N=P.includeDates,b=P.includeDateIntervals,T=P.filterDate;return ia(R,{minDate:I,maxDate:h})||c&&c.some(function(z){return Bt(R,z)})||k&&k.some(function(z){var U=z.start,Q=z.end;return Zi.default(R,{start:U,end:Q})})||N&&!N.some(function(z){return Bt(R,z)})||b&&!b.some(function(z){var U=z.start,Q=z.end;return Zi.default(R,{start:U,end:Q})})||T&&!T(st(R))||!1}function hs(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.excludeDates,h=P.excludeDateIntervals;return h&&h.length>0?h.some(function(c){var k=c.start,N=c.end;return Zi.default(R,{start:k,end:N})}):I&&I.some(function(c){return Bt(R,c)})||!1}function qu(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.maxDate,c=P.excludeDates,k=P.includeDates,N=P.filterDate;return ia(R,{minDate:I,maxDate:h})||c&&c.some(function(b){return vr(R,b)})||k&&!k.some(function(b){return vr(R,b)})||N&&!N(st(R))||!1}function qe(R,P,I,h){var c=G.default(R),k=pt.default(R),N=G.default(P),b=pt.default(P),T=G.default(h);return c===N&&c===T?k<=I&&I<=b:c<N?T===c&&k<=I||T===N&&b>=I||T<N&&T>c:void 0}function na(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.maxDate,c=P.excludeDates,k=P.includeDates,N=P.filterDate;return ia(R,{minDate:I,maxDate:h})||c&&c.some(function(b){return Va(R,b)})||k&&!k.some(function(b){return Va(R,b)})||N&&!N(st(R))||!1}function ra(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.maxDate,c=new Date(R,0,1);return ia(c,{minDate:I,maxDate:h})||!1}function Up(R,P,I,h){var c=G.default(R),k=li.default(R),N=G.default(P),b=li.default(P),T=G.default(h);return c===N&&c===T?k<=I&&I<=b:c<N?T===c&&k<=I||T===N&&b>=I||T<N&&T>c:void 0}function ia(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.maxDate;return I&&rn.default(R,I)<0||h&&rn.default(R,h)>0}function Hu(R,P){return P.some(function(I){return qt.default(I)===qt.default(R)&&Pt.default(I)===Pt.default(R)})}function Uu(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.excludeTimes,h=P.includeTimes,c=P.filterTime;return I&&Hu(R,I)||h&&!Hu(R,h)||c&&!c(R)||!1}function aa(R,P){var I=P.minTime,h=P.maxTime;if(!I||!h)throw new Error("Both minTime and maxTime props required");var c,k=st(),N=Wr.default(kt.default(k,Pt.default(R)),qt.default(R)),b=Wr.default(kt.default(k,Pt.default(I)),qt.default(I)),T=Wr.default(kt.default(k,Pt.default(h)),qt.default(h));try{c=!Zi.default(N,{start:b,end:T})}catch(z){c=!1}return c}function Zn(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.includeDates,c=hr.default(R,1);return I&&Xe.default(I,c)>0||h&&h.every(function(k){return Xe.default(k,c)>0})||!1}function $a(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.maxDate,h=P.includeDates,c=En.default(R,1);return I&&Xe.default(c,I)>0||h&&h.every(function(k){return Xe.default(c,k)>0})||!1}function Bu(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.minDate,h=P.includeDates,c=Ar.default(R,1);return I&&Ht.default(I,c)>0||h&&h.every(function(k){return Ht.default(k,c)>0})||!1}function Nn(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=P.maxDate,h=P.includeDates,c=De.default(R,1);return I&&Ht.default(c,I)>0||h&&h.every(function(k){return Ht.default(c,k)>0})||!1}function Vu(R){var P=R.minDate,I=R.includeDates;if(I&&P){var h=I.filter(function(c){return rn.default(c,P)>=0});return Dt.default(h)}return I?Dt.default(I):P}function Qa(R){var P=R.maxDate,I=R.includeDates;if(I&&P){var h=I.filter(function(c){return rn.default(c,P)<=0});return Rn.default(h)}return I?Rn.default(I):P}function ju(){for(var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",I=new Map,h=0,c=R.length;h<c;h++){var k=R[h];if(rs.default(k)){var N=tt(k,"MM.dd.yyyy"),b=I.get(N)||[];b.includes(P)||(b.push(P),I.set(N,b))}else if(os(k)==="object"){var T=Object.keys(k),z=T[0],U=k[T[0]];if(typeof z=="string"&&U.constructor===Array)for(var Q=0,ee=U.length;Q<ee;Q++){var he=tt(U[Q],"MM.dd.yyyy"),fe=I.get(he)||[];fe.includes(z)||(fe.push(z),I.set(he,fe))}}}return I}function Bp(R,P,I,h,c){for(var k=c.length,N=[],b=0;b<k;b++){var T=Ya.default(nn.default(R,qt.default(c[b])),Pt.default(c[b])),z=Ya.default(R,(I+1)*h);pr.default(T,P)&&Xn.default(T,z)&&N.push(c[b])}return N}function $u(R){return R<10?"0".concat(R):"".concat(R)}function _r(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ea,I=Math.ceil(G.default(R)/P)*P,h=I-(P-1);return{startPeriod:h,endPeriod:I}}function ps(R,P,I,h){for(var c=[],k=0;k<2*P+1;k++){var N=R+P-k,b=!0;I&&(b=G.default(I)<=N),h&&b&&(b=G.default(h)>=N),b&&c.push(N)}return c}var Vp=function(R){et(I,R);var P=xt(I);function I(h){var c;Ke(this,I),F(W(c=P.call(this,h)),"renderOptions",function(){var T=c.props.year,z=c.state.yearsList.map(function(ee){return H.default.createElement("div",{className:T===ee?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:ee,onClick:c.onChange.bind(W(c),ee),"aria-selected":T===ee?"true":void 0},T===ee?H.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",ee)}),U=c.props.minDate?G.default(c.props.minDate):null,Q=c.props.maxDate?G.default(c.props.maxDate):null;return Q&&c.state.yearsList.find(function(ee){return ee===Q})||z.unshift(H.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:c.incrementYears},H.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),U&&c.state.yearsList.find(function(ee){return ee===U})||z.push(H.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:c.decrementYears},H.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),z}),F(W(c),"onChange",function(T){c.props.onChange(T)}),F(W(c),"handleClickOutside",function(){c.props.onCancel()}),F(W(c),"shiftYears",function(T){var z=c.state.yearsList.map(function(U){return U+T});c.setState({yearsList:z})}),F(W(c),"incrementYears",function(){return c.shiftYears(1)}),F(W(c),"decrementYears",function(){return c.shiftYears(-1)});var k=h.yearDropdownItemNumber,N=h.scrollableYearDropdown,b=k||(N?10:5);return c.state={yearsList:ps(c.props.year,b,c.props.minDate,c.props.maxDate)},c.dropdownRef=t.createRef(),c}return wt(I,[{key:"componentDidMount",value:function(){var h=this.dropdownRef.current;h&&(h.scrollTop=h.scrollHeight/2-h.clientHeight/2)}},{key:"render",value:function(){var h=Mt.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return H.default.createElement("div",{className:h,ref:this.dropdownRef},this.renderOptions())}}]),I}(H.default.Component),jp=Ji.default(Vp),$p=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"state",{dropdownVisible:!1}),F(W(h),"renderSelectOptions",function(){for(var b=h.props.minDate?G.default(h.props.minDate):1900,T=h.props.maxDate?G.default(h.props.maxDate):2100,z=[],U=b;U<=T;U++)z.push(H.default.createElement("option",{key:U,value:U},U));return z}),F(W(h),"onSelectChange",function(b){h.onChange(b.target.value)}),F(W(h),"renderSelectMode",function(){return H.default.createElement("select",{value:h.props.year,className:"react-datepicker__year-select",onChange:h.onSelectChange},h.renderSelectOptions())}),F(W(h),"renderReadView",function(b){return H.default.createElement("div",{key:"read",style:{visibility:b?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(T){return h.toggleDropdown(T)}},H.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),H.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},h.props.year))}),F(W(h),"renderDropdown",function(){return H.default.createElement(jp,{key:"dropdown",year:h.props.year,onChange:h.onChange,onCancel:h.toggleDropdown,minDate:h.props.minDate,maxDate:h.props.maxDate,scrollableYearDropdown:h.props.scrollableYearDropdown,yearDropdownItemNumber:h.props.yearDropdownItemNumber})}),F(W(h),"renderScrollMode",function(){var b=h.state.dropdownVisible,T=[h.renderReadView(!b)];return b&&T.unshift(h.renderDropdown()),T}),F(W(h),"onChange",function(b){h.toggleDropdown(),b!==h.props.year&&h.props.onChange(b)}),F(W(h),"toggleDropdown",function(b){h.setState({dropdownVisible:!h.state.dropdownVisible},function(){h.props.adjustDateOnChange&&h.handleYearChange(h.props.date,b)})}),F(W(h),"handleYearChange",function(b,T){h.onSelect(b,T),h.setOpen()}),F(W(h),"onSelect",function(b,T){h.props.onSelect&&h.props.onSelect(b,T)}),F(W(h),"setOpen",function(){h.props.setOpen&&h.props.setOpen(!0)}),h}return wt(I,[{key:"render",value:function(){var h;switch(this.props.dropdownMode){case"scroll":h=this.renderScrollMode();break;case"select":h=this.renderSelectMode()}return H.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},h)}}]),I}(H.default.Component),Qu=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"isSelectedMonth",function(b){return h.props.month===b}),F(W(h),"renderOptions",function(){return h.props.monthNames.map(function(b,T){return H.default.createElement("div",{className:h.isSelectedMonth(T)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:b,onClick:h.onChange.bind(W(h),T),"aria-selected":h.isSelectedMonth(T)?"true":void 0},h.isSelectedMonth(T)?H.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",b)})}),F(W(h),"onChange",function(b){return h.props.onChange(b)}),F(W(h),"handleClickOutside",function(){return h.props.onCancel()}),h}return wt(I,[{key:"render",value:function(){return H.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),I}(H.default.Component),Qp=Ji.default(Qu),Gp=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"state",{dropdownVisible:!1}),F(W(h),"renderSelectOptions",function(b){return b.map(function(T,z){return H.default.createElement("option",{key:z,value:z},T)})}),F(W(h),"renderSelectMode",function(b){return H.default.createElement("select",{value:h.props.month,className:"react-datepicker__month-select",onChange:function(T){return h.onChange(T.target.value)}},h.renderSelectOptions(b))}),F(W(h),"renderReadView",function(b,T){return H.default.createElement("div",{key:"read",style:{visibility:b?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:h.toggleDropdown},H.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),H.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},T[h.props.month]))}),F(W(h),"renderDropdown",function(b){return H.default.createElement(Qp,{key:"dropdown",month:h.props.month,monthNames:b,onChange:h.onChange,onCancel:h.toggleDropdown})}),F(W(h),"renderScrollMode",function(b){var T=h.state.dropdownVisible,z=[h.renderReadView(!T,b)];return T&&z.unshift(h.renderDropdown(b)),z}),F(W(h),"onChange",function(b){h.toggleDropdown(),b!==h.props.month&&h.props.onChange(b)}),F(W(h),"toggleDropdown",function(){return h.setState({dropdownVisible:!h.state.dropdownVisible})}),h}return wt(I,[{key:"render",value:function(){var h,c=this,k=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(N){return zu(N,c.props.locale)}:function(N){return fs(N,c.props.locale)});switch(this.props.dropdownMode){case"scroll":h=this.renderScrollMode(k);break;case"select":h=this.renderSelectMode(k)}return H.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},h)}}]),I}(H.default.Component);function Xp(R,P){for(var I=[],h=zr(R),c=zr(P);!pr.default(h,c);)I.push(st(h)),h=En.default(h,1);return I}var Kp=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),F(W(c=P.call(this,h)),"renderOptions",function(){return c.state.monthYearsList.map(function(k){var N=is.default(k),b=Yu(c.props.date,k)&&vr(c.props.date,k);return H.default.createElement("div",{className:b?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:N,onClick:c.onChange.bind(W(c),N),"aria-selected":b?"true":void 0},b?H.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",tt(k,c.props.dateFormat,c.props.locale))})}),F(W(c),"onChange",function(k){return c.props.onChange(k)}),F(W(c),"handleClickOutside",function(){c.props.onCancel()}),c.state={monthYearsList:Xp(c.props.minDate,c.props.maxDate)},c}return wt(I,[{key:"render",value:function(){var h=Mt.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return H.default.createElement("div",{className:h},this.renderOptions())}}]),I}(H.default.Component),Zp=Ji.default(Kp),Gu=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"state",{dropdownVisible:!1}),F(W(h),"renderSelectOptions",function(){for(var b=zr(h.props.minDate),T=zr(h.props.maxDate),z=[];!pr.default(b,T);){var U=is.default(b);z.push(H.default.createElement("option",{key:U,value:U},tt(b,h.props.dateFormat,h.props.locale))),b=En.default(b,1)}return z}),F(W(h),"onSelectChange",function(b){h.onChange(b.target.value)}),F(W(h),"renderSelectMode",function(){return H.default.createElement("select",{value:is.default(zr(h.props.date)),className:"react-datepicker__month-year-select",onChange:h.onSelectChange},h.renderSelectOptions())}),F(W(h),"renderReadView",function(b){var T=tt(h.props.date,h.props.dateFormat,h.props.locale);return H.default.createElement("div",{key:"read",style:{visibility:b?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(z){return h.toggleDropdown(z)}},H.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),H.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},T))}),F(W(h),"renderDropdown",function(){return H.default.createElement(Zp,{key:"dropdown",date:h.props.date,dateFormat:h.props.dateFormat,onChange:h.onChange,onCancel:h.toggleDropdown,minDate:h.props.minDate,maxDate:h.props.maxDate,scrollableMonthYearDropdown:h.props.scrollableMonthYearDropdown,locale:h.props.locale})}),F(W(h),"renderScrollMode",function(){var b=h.state.dropdownVisible,T=[h.renderReadView(!b)];return b&&T.unshift(h.renderDropdown()),T}),F(W(h),"onChange",function(b){h.toggleDropdown();var T=st(parseInt(b));Yu(h.props.date,T)&&vr(h.props.date,T)||h.props.onChange(T)}),F(W(h),"toggleDropdown",function(){return h.setState({dropdownVisible:!h.state.dropdownVisible})}),h}return wt(I,[{key:"render",value:function(){var h;switch(this.props.dropdownMode){case"scroll":h=this.renderScrollMode();break;case"select":h=this.renderSelectMode()}return H.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},h)}}]),I}(H.default.Component),Jp=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"dayEl",H.default.createRef()),F(W(h),"handleClick",function(b){!h.isDisabled()&&h.props.onClick&&h.props.onClick(b)}),F(W(h),"handleMouseEnter",function(b){!h.isDisabled()&&h.props.onMouseEnter&&h.props.onMouseEnter(b)}),F(W(h),"handleOnKeyDown",function(b){b.key===" "&&(b.preventDefault(),b.key="Enter"),h.props.handleOnKeyDown(b)}),F(W(h),"isSameDay",function(b){return Bt(h.props.day,b)}),F(W(h),"isKeyboardSelected",function(){return!h.props.disabledKeyboardNavigation&&!h.isSameDay(h.props.selected)&&h.isSameDay(h.props.preSelection)}),F(W(h),"isDisabled",function(){return ja(h.props.day,h.props)}),F(W(h),"isExcluded",function(){return hs(h.props.day,h.props)}),F(W(h),"getHighLightedClass",function(b){var T=h.props,z=T.day,U=T.highlightDates;if(!U)return!1;var Q=tt(z,"MM.dd.yyyy");return U.get(Q)}),F(W(h),"isInRange",function(){var b=h.props,T=b.day,z=b.startDate,U=b.endDate;return!(!z||!U)&&ci(T,z,U)}),F(W(h),"isInSelectingRange",function(){var b,T=h.props,z=T.day,U=T.selectsStart,Q=T.selectsEnd,ee=T.selectsRange,he=T.selectsDisabledDaysInRange,fe=T.startDate,Ie=T.endDate,_e=(b=h.props.selectingDate)!==null&&b!==void 0?b:h.props.preSelection;return!(!(U||Q||ee)||!_e||!he&&h.isDisabled())&&(U&&Ie&&(Xn.default(_e,Ie)||In(_e,Ie))?ci(z,_e,Ie):(Q&&fe&&(pr.default(_e,fe)||In(_e,fe))||!(!ee||!fe||Ie||!pr.default(_e,fe)&&!In(_e,fe)))&&ci(z,fe,_e))}),F(W(h),"isSelectingRangeStart",function(){var b;if(!h.isInSelectingRange())return!1;var T=h.props,z=T.day,U=T.startDate,Q=T.selectsStart,ee=(b=h.props.selectingDate)!==null&&b!==void 0?b:h.props.preSelection;return Bt(z,Q?ee:U)}),F(W(h),"isSelectingRangeEnd",function(){var b;if(!h.isInSelectingRange())return!1;var T=h.props,z=T.day,U=T.endDate,Q=T.selectsEnd,ee=(b=h.props.selectingDate)!==null&&b!==void 0?b:h.props.preSelection;return Bt(z,Q?ee:U)}),F(W(h),"isRangeStart",function(){var b=h.props,T=b.day,z=b.startDate,U=b.endDate;return!(!z||!U)&&Bt(z,T)}),F(W(h),"isRangeEnd",function(){var b=h.props,T=b.day,z=b.startDate,U=b.endDate;return!(!z||!U)&&Bt(U,T)}),F(W(h),"isWeekend",function(){var b=Dp.default(h.props.day);return b===0||b===6}),F(W(h),"isAfterMonth",function(){return h.props.month!==void 0&&(h.props.month+1)%12===pt.default(h.props.day)}),F(W(h),"isBeforeMonth",function(){return h.props.month!==void 0&&(pt.default(h.props.day)+1)%12===h.props.month}),F(W(h),"isCurrentDay",function(){return h.isSameDay(st())}),F(W(h),"isSelected",function(){return h.isSameDay(h.props.selected)}),F(W(h),"getClassNames",function(b){var T=h.props.dayClassName?h.props.dayClassName(b):void 0;return Mt.default("react-datepicker__day",T,"react-datepicker__day--"+Yp(h.props.day),{"react-datepicker__day--disabled":h.isDisabled(),"react-datepicker__day--excluded":h.isExcluded(),"react-datepicker__day--selected":h.isSelected(),"react-datepicker__day--keyboard-selected":h.isKeyboardSelected(),"react-datepicker__day--range-start":h.isRangeStart(),"react-datepicker__day--range-end":h.isRangeEnd(),"react-datepicker__day--in-range":h.isInRange(),"react-datepicker__day--in-selecting-range":h.isInSelectingRange(),"react-datepicker__day--selecting-range-start":h.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":h.isSelectingRangeEnd(),"react-datepicker__day--today":h.isCurrentDay(),"react-datepicker__day--weekend":h.isWeekend(),"react-datepicker__day--outside-month":h.isAfterMonth()||h.isBeforeMonth()},h.getHighLightedClass("react-datepicker__day--highlighted"))}),F(W(h),"getAriaLabel",function(){var b=h.props,T=b.day,z=b.ariaLabelPrefixWhenEnabled,U=z===void 0?"Choose":z,Q=b.ariaLabelPrefixWhenDisabled,ee=Q===void 0?"Not available":Q,he=h.isDisabled()||h.isExcluded()?ee:U;return"".concat(he," ").concat(tt(T,"PPPP",h.props.locale))}),F(W(h),"getTabIndex",function(b,T){var z=b||h.props.selected,U=T||h.props.preSelection;return h.isKeyboardSelected()||h.isSameDay(z)&&Bt(U,z)?0:-1}),F(W(h),"handleFocusDay",function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=!1;h.getTabIndex()===0&&!b.isInputFocused&&h.isSameDay(h.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(T=!0),h.props.inline&&!h.props.shouldFocusDayInline&&(T=!1),h.props.containerRef&&h.props.containerRef.current&&h.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(T=!0)),T&&h.dayEl.current.focus({preventScroll:!0})}),F(W(h),"renderDayContents",function(){return h.props.monthShowsDuplicateDaysEnd&&h.isAfterMonth()||h.props.monthShowsDuplicateDaysStart&&h.isBeforeMonth()?null:h.props.renderDayContents?h.props.renderDayContents(Ki.default(h.props.day),h.props.day):Ki.default(h.props.day)}),F(W(h),"render",function(){return H.default.createElement("div",{ref:h.dayEl,className:h.getClassNames(h.props.day),onKeyDown:h.handleOnKeyDown,onClick:h.handleClick,onMouseEnter:h.handleMouseEnter,tabIndex:h.getTabIndex(),"aria-label":h.getAriaLabel(),role:"option","aria-disabled":h.isDisabled(),"aria-current":h.isCurrentDay()?"date":void 0,"aria-selected":h.isSelected()},h.renderDayContents())}),h}return wt(I,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(h){this.handleFocusDay(h)}}]),I}(H.default.Component),di=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"handleClick",function(b){h.props.onClick&&h.props.onClick(b)}),h}return wt(I,[{key:"render",value:function(){var h=this.props,c=h.weekNumber,k=h.ariaLabelPrefix,N=k===void 0?"week ":k,b={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!h.onClick};return H.default.createElement("div",{className:Mt.default(b),"aria-label":"".concat(N," ").concat(this.props.weekNumber),onClick:this.handleClick},c)}}]),I}(H.default.Component),em=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"handleDayClick",function(b,T){h.props.onDayClick&&h.props.onDayClick(b,T)}),F(W(h),"handleDayMouseEnter",function(b){h.props.onDayMouseEnter&&h.props.onDayMouseEnter(b)}),F(W(h),"handleWeekClick",function(b,T,z){typeof h.props.onWeekSelect=="function"&&h.props.onWeekSelect(b,T,z),h.props.shouldCloseOnSelect&&h.props.setOpen(!1)}),F(W(h),"formatWeekNumber",function(b){return h.props.formatWeekNumber?h.props.formatWeekNumber(b):Wp(b)}),F(W(h),"renderDays",function(){var b=ds(h.props.day,h.props.locale,h.props.calendarStartDay),T=[],z=h.formatWeekNumber(b);if(h.props.showWeekNumber){var U=h.props.onWeekSelect?h.handleWeekClick.bind(W(h),b,z):void 0;T.push(H.default.createElement(di,{key:"W",weekNumber:z,onClick:U,ariaLabelPrefix:h.props.ariaLabelPrefix}))}return T.concat([0,1,2,3,4,5,6].map(function(Q){var ee=Xi.default(b,Q);return H.default.createElement(Jp,{ariaLabelPrefixWhenEnabled:h.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:h.props.disabledDayAriaLabelPrefix,key:ee.valueOf(),day:ee,month:h.props.month,onClick:h.handleDayClick.bind(W(h),ee),onMouseEnter:h.handleDayMouseEnter.bind(W(h),ee),minDate:h.props.minDate,maxDate:h.props.maxDate,excludeDates:h.props.excludeDates,excludeDateIntervals:h.props.excludeDateIntervals,includeDates:h.props.includeDates,includeDateIntervals:h.props.includeDateIntervals,highlightDates:h.props.highlightDates,selectingDate:h.props.selectingDate,filterDate:h.props.filterDate,preSelection:h.props.preSelection,selected:h.props.selected,selectsStart:h.props.selectsStart,selectsEnd:h.props.selectsEnd,selectsRange:h.props.selectsRange,selectsDisabledDaysInRange:h.props.selectsDisabledDaysInRange,startDate:h.props.startDate,endDate:h.props.endDate,dayClassName:h.props.dayClassName,renderDayContents:h.props.renderDayContents,disabledKeyboardNavigation:h.props.disabledKeyboardNavigation,handleOnKeyDown:h.props.handleOnKeyDown,isInputFocused:h.props.isInputFocused,containerRef:h.props.containerRef,inline:h.props.inline,shouldFocusDayInline:h.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:h.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:h.props.monthShowsDuplicateDaysStart,locale:h.props.locale})}))}),h}return wt(I,[{key:"render",value:function(){return H.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),I}(H.default.Component),ms=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"MONTH_REFS",Nu(Array(12)).map(function(){return H.default.createRef()})),F(W(h),"isDisabled",function(b){return ja(b,h.props)}),F(W(h),"isExcluded",function(b){return hs(b,h.props)}),F(W(h),"handleDayClick",function(b,T){h.props.onDayClick&&h.props.onDayClick(b,T,h.props.orderInDisplay)}),F(W(h),"handleDayMouseEnter",function(b){h.props.onDayMouseEnter&&h.props.onDayMouseEnter(b)}),F(W(h),"handleMouseLeave",function(){h.props.onMouseLeave&&h.props.onMouseLeave()}),F(W(h),"isRangeStartMonth",function(b){var T=h.props,z=T.day,U=T.startDate,Q=T.endDate;return!(!U||!Q)&&vr(ye.default(z,b),U)}),F(W(h),"isRangeStartQuarter",function(b){var T=h.props,z=T.day,U=T.startDate,Q=T.endDate;return!(!U||!Q)&&Va(Gn.default(z,b),U)}),F(W(h),"isRangeEndMonth",function(b){var T=h.props,z=T.day,U=T.startDate,Q=T.endDate;return!(!U||!Q)&&vr(ye.default(z,b),Q)}),F(W(h),"isRangeEndQuarter",function(b){var T=h.props,z=T.day,U=T.startDate,Q=T.endDate;return!(!U||!Q)&&Va(Gn.default(z,b),Q)}),F(W(h),"isWeekInMonth",function(b){var T=h.props.day,z=Xi.default(b,6);return vr(b,T)||vr(z,T)}),F(W(h),"isCurrentMonth",function(b,T){return G.default(b)===G.default(st())&&T===pt.default(st())}),F(W(h),"isSelectedMonth",function(b,T,z){return pt.default(b)===T&&G.default(b)===G.default(z)}),F(W(h),"isSelectedQuarter",function(b,T,z){return li.default(b)===T&&G.default(b)===G.default(z)}),F(W(h),"renderWeeks",function(){for(var b=[],T=h.props.fixedHeight,z=0,U=!1,Q=ds(zr(h.props.day),h.props.locale,h.props.calendarStartDay);b.push(H.default.createElement(em,{ariaLabelPrefix:h.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:h.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:h.props.disabledDayAriaLabelPrefix,key:z,day:Q,month:pt.default(h.props.day),onDayClick:h.handleDayClick,onDayMouseEnter:h.handleDayMouseEnter,onWeekSelect:h.props.onWeekSelect,formatWeekNumber:h.props.formatWeekNumber,locale:h.props.locale,minDate:h.props.minDate,maxDate:h.props.maxDate,excludeDates:h.props.excludeDates,excludeDateIntervals:h.props.excludeDateIntervals,includeDates:h.props.includeDates,includeDateIntervals:h.props.includeDateIntervals,inline:h.props.inline,shouldFocusDayInline:h.props.shouldFocusDayInline,highlightDates:h.props.highlightDates,selectingDate:h.props.selectingDate,filterDate:h.props.filterDate,preSelection:h.props.preSelection,selected:h.props.selected,selectsStart:h.props.selectsStart,selectsEnd:h.props.selectsEnd,selectsRange:h.props.selectsRange,selectsDisabledDaysInRange:h.props.selectsDisabledDaysInRange,showWeekNumber:h.props.showWeekNumbers,startDate:h.props.startDate,endDate:h.props.endDate,dayClassName:h.props.dayClassName,setOpen:h.props.setOpen,shouldCloseOnSelect:h.props.shouldCloseOnSelect,disabledKeyboardNavigation:h.props.disabledKeyboardNavigation,renderDayContents:h.props.renderDayContents,handleOnKeyDown:h.props.handleOnKeyDown,isInputFocused:h.props.isInputFocused,containerRef:h.props.containerRef,calendarStartDay:h.props.calendarStartDay,monthShowsDuplicateDaysEnd:h.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:h.props.monthShowsDuplicateDaysStart})),!U;){z++,Q=za.default(Q,1);var ee=T&&z>=6,he=!T&&!h.isWeekInMonth(Q);if(ee||he){if(!h.props.peekNextMonth)break;U=!0}}return b}),F(W(h),"onMonthClick",function(b,T){h.handleDayClick(zr(ye.default(h.props.day,T)),b)}),F(W(h),"handleMonthNavigation",function(b,T){h.isDisabled(T)||h.isExcluded(T)||(h.props.setPreSelection(T),h.MONTH_REFS[b].current&&h.MONTH_REFS[b].current.focus())}),F(W(h),"onMonthKeyDown",function(b,T){var z=b.key;if(!h.props.disabledKeyboardNavigation)switch(z){case"Enter":h.onMonthClick(b,T),h.props.setPreSelection(h.props.selected);break;case"ArrowRight":h.handleMonthNavigation(T===11?0:T+1,En.default(h.props.preSelection,1));break;case"ArrowLeft":h.handleMonthNavigation(T===0?11:T-1,hr.default(h.props.preSelection,1))}}),F(W(h),"onQuarterClick",function(b,T){h.handleDayClick(qp(Gn.default(h.props.day,T)),b)}),F(W(h),"getMonthClassNames",function(b){var T=h.props,z=T.day,U=T.startDate,Q=T.endDate,ee=T.selected,he=T.minDate,fe=T.maxDate,Ie=T.preSelection,_e=T.monthClassName,Vt=_e?_e(z):void 0;return Mt.default("react-datepicker__month-text","react-datepicker__month-".concat(b),Vt,{"react-datepicker__month--disabled":(he||fe)&&qu(ye.default(z,b),h.props),"react-datepicker__month--selected":h.isSelectedMonth(z,b,ee),"react-datepicker__month-text--keyboard-selected":pt.default(Ie)===b,"react-datepicker__month--in-range":qe(U,Q,b,z),"react-datepicker__month--range-start":h.isRangeStartMonth(b),"react-datepicker__month--range-end":h.isRangeEndMonth(b),"react-datepicker__month-text--today":h.isCurrentMonth(z,b)})}),F(W(h),"getTabIndex",function(b){var T=pt.default(h.props.preSelection);return h.props.disabledKeyboardNavigation||b!==T?"-1":"0"}),F(W(h),"getAriaLabel",function(b){var T=h.props,z=T.ariaLabelPrefix,U=z===void 0?"Choose":z,Q=T.disabledDayAriaLabelPrefix,ee=Q===void 0?"Not available":Q,he=T.day,fe=ye.default(he,b),Ie=h.isDisabled(fe)||h.isExcluded(fe)?ee:U;return"".concat(Ie," ").concat(tt(fe,"MMMM yyyy"))}),F(W(h),"getQuarterClassNames",function(b){var T=h.props,z=T.day,U=T.startDate,Q=T.endDate,ee=T.selected,he=T.minDate,fe=T.maxDate;return Mt.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(b),{"react-datepicker__quarter--disabled":(he||fe)&&na(Gn.default(z,b),h.props),"react-datepicker__quarter--selected":h.isSelectedQuarter(z,b,ee),"react-datepicker__quarter--in-range":Up(U,Q,b,z),"react-datepicker__quarter--range-start":h.isRangeStartQuarter(b),"react-datepicker__quarter--range-end":h.isRangeEndQuarter(b)})}),F(W(h),"renderMonths",function(){var b=h.props,T=b.showFullMonthYearPicker,z=b.showTwoColumnMonthYearPicker,U=b.showFourColumnMonthYearPicker,Q=b.locale,ee=b.day,he=b.selected;return(U?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:z?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(fe,Ie){return H.default.createElement("div",{className:"react-datepicker__month-wrapper",key:Ie},fe.map(function(_e,Vt){return H.default.createElement("div",{ref:h.MONTH_REFS[_e],key:Vt,onClick:function(jt){h.onMonthClick(jt,_e)},onKeyDown:function(jt){h.onMonthKeyDown(jt,_e)},tabIndex:h.getTabIndex(_e),className:h.getMonthClassNames(_e),role:"option","aria-label":h.getAriaLabel(_e),"aria-current":h.isCurrentMonth(ee,_e)?"date":void 0,"aria-selected":h.isSelectedMonth(ee,_e,he)},T?fs(_e,Q):zu(_e,Q))}))})}),F(W(h),"renderQuarters",function(){var b=h.props,T=b.day,z=b.selected;return H.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(U,Q){return H.default.createElement("div",{key:Q,role:"option",onClick:function(ee){h.onQuarterClick(ee,U)},className:h.getQuarterClassNames(U),"aria-selected":h.isSelectedQuarter(T,U,z)},Hp(U,h.props.locale))}))}),F(W(h),"getClassNames",function(){var b=h.props;b.day;var T=b.selectingDate,z=b.selectsStart,U=b.selectsEnd,Q=b.showMonthYearPicker,ee=b.showQuarterYearPicker;return Mt.default("react-datepicker__month",{"react-datepicker__month--selecting-range":T&&(z||U)},{"react-datepicker__monthPicker":Q},{"react-datepicker__quarterPicker":ee})}),h}return wt(I,[{key:"render",value:function(){var h=this.props,c=h.showMonthYearPicker,k=h.showQuarterYearPicker,N=h.day,b=h.ariaLabelPrefix,T=b===void 0?"month ":b;return H.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(T," ").concat(tt(N,"yyyy-MM")),role:"listbox"},c?this.renderMonths():k?this.renderQuarters():this.renderWeeks())}}]),I}(H.default.Component),Xu=function(R){et(I,R);var P=xt(I);function I(){var h;Ke(this,I);for(var c=arguments.length,k=new Array(c),N=0;N<c;N++)k[N]=arguments[N];return F(W(h=P.call.apply(P,[this].concat(k))),"state",{height:null}),F(W(h),"handleClick",function(b){(h.props.minTime||h.props.maxTime)&&aa(b,h.props)||(h.props.excludeTimes||h.props.includeTimes||h.props.filterTime)&&Uu(b,h.props)||h.props.onChange(b)}),F(W(h),"isSelectedTime",function(b,T,z){return h.props.selected&&T===qt.default(b)&&z===Pt.default(b)}),F(W(h),"liClasses",function(b,T,z){var U=["react-datepicker__time-list-item",h.props.timeClassName?h.props.timeClassName(b,T,z):void 0];return h.isSelectedTime(b,T,z)&&U.push("react-datepicker__time-list-item--selected"),((h.props.minTime||h.props.maxTime)&&aa(b,h.props)||(h.props.excludeTimes||h.props.includeTimes||h.props.filterTime)&&Uu(b,h.props))&&U.push("react-datepicker__time-list-item--disabled"),h.props.injectTimes&&(60*qt.default(b)+Pt.default(b))%h.props.intervals!=0&&U.push("react-datepicker__time-list-item--injected"),U.join(" ")}),F(W(h),"handleOnKeyDown",function(b,T){b.key===" "&&(b.preventDefault(),b.key="Enter"),b.key==="Enter"&&h.handleClick(T),h.props.handleOnKeyDown(b)}),F(W(h),"renderTimes",function(){for(var b=[],T=h.props.format?h.props.format:"p",z=h.props.intervals,U=zp(st(h.props.selected)),Q=1440/z,ee=h.props.injectTimes&&h.props.injectTimes.sort(function(mt,xn){return mt-xn}),he=h.props.selected||h.props.openToDate||st(),fe=qt.default(he),Ie=Pt.default(he),_e=Wr.default(kt.default(U,Ie),fe),Vt=0;Vt<Q;Vt++){var jt=Ya.default(U,Vt*z);if(b.push(jt),ee){var $t=Bp(U,jt,Vt,z,ee);b=b.concat($t)}}return b.map(function(mt,xn){return H.default.createElement("li",{key:xn,onClick:h.handleClick.bind(W(h),mt),className:h.liClasses(mt,fe,Ie),ref:function(Jn){(Xn.default(mt,_e)||In(mt,_e))&&(h.centerLi=Jn)},onKeyDown:function(Jn){h.handleOnKeyDown(Jn,mt)},tabIndex:"0","aria-selected":h.isSelectedTime(mt,fe,Ie)?"true":void 0},tt(mt,T,h.props.locale))})}),h}return wt(I,[{key:"componentDidMount",value:function(){this.list.scrollTop=I.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var h=this,c=this.state.height;return H.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},H.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(k){h.header=k}},H.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),H.default.createElement("div",{className:"react-datepicker__time"},H.default.createElement("div",{className:"react-datepicker__time-box"},H.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(k){h.list=k},style:c?{height:c}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),I}(H.default.Component);F(Xu,"calcCenterPosition",function(R,P){return P.offsetTop-(R/2-P.clientHeight/2)});var gs=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),F(W(c=P.call(this,h)),"YEAR_REFS",Nu(Array(c.props.yearItemNumber)).map(function(){return H.default.createRef()})),F(W(c),"isDisabled",function(k){return ja(k,c.props)}),F(W(c),"isExcluded",function(k){return hs(k,c.props)}),F(W(c),"updateFocusOnPaginate",function(k){var N=function(){this.YEAR_REFS[k].current.focus()}.bind(W(c));window.requestAnimationFrame(N)}),F(W(c),"handleYearClick",function(k,N){c.props.onDayClick&&c.props.onDayClick(k,N)}),F(W(c),"handleYearNavigation",function(k,N){var b=c.props,T=b.date,z=b.yearItemNumber,U=_r(T,z).startPeriod;c.isDisabled(N)||c.isExcluded(N)||(c.props.setPreSelection(N),k-U==-1?c.updateFocusOnPaginate(z-1):k-U===z?c.updateFocusOnPaginate(0):c.YEAR_REFS[k-U].current.focus())}),F(W(c),"isSameDay",function(k,N){return Bt(k,N)}),F(W(c),"isCurrentYear",function(k){return k===G.default(st())}),F(W(c),"isKeyboardSelected",function(k){var N=ta(Ha.default(c.props.date,k));return!c.props.disabledKeyboardNavigation&&!c.props.inline&&!Bt(N,ta(c.props.selected))&&Bt(N,ta(c.props.preSelection))}),F(W(c),"onYearClick",function(k,N){var b=c.props.date;c.handleYearClick(ta(Ha.default(b,N)),k)}),F(W(c),"onYearKeyDown",function(k,N){var b=k.key;if(!c.props.disabledKeyboardNavigation)switch(b){case"Enter":c.onYearClick(k,N),c.props.setPreSelection(c.props.selected);break;case"ArrowRight":c.handleYearNavigation(N+1,De.default(c.props.preSelection,1));break;case"ArrowLeft":c.handleYearNavigation(N-1,Ar.default(c.props.preSelection,1))}}),F(W(c),"getYearClassNames",function(k){var N=c.props,b=N.minDate,T=N.maxDate,z=N.selected;return Mt.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":k===G.default(z),"react-datepicker__year-text--disabled":(b||T)&&ra(k,c.props),"react-datepicker__year-text--keyboard-selected":c.isKeyboardSelected(k),"react-datepicker__year-text--today":c.isCurrentYear(k)})}),F(W(c),"getYearTabIndex",function(k){return c.props.disabledKeyboardNavigation?"-1":k===G.default(c.props.preSelection)?"0":"-1"}),c}return wt(I,[{key:"render",value:function(){for(var h=this,c=[],k=this.props,N=_r(k.date,k.yearItemNumber),b=N.startPeriod,T=N.endPeriod,z=function(Q){c.push(H.default.createElement("div",{ref:h.YEAR_REFS[Q-b],onClick:function(ee){h.onYearClick(ee,Q)},onKeyDown:function(ee){h.onYearKeyDown(ee,Q)},tabIndex:h.getYearTabIndex(Q),className:h.getYearClassNames(Q),key:Q,"aria-current":h.isCurrentYear(Q)?"date":void 0},Q))},U=b;U<=T;U++)z(U);return H.default.createElement("div",{className:"react-datepicker__year"},H.default.createElement("div",{className:"react-datepicker__year-wrapper"},c))}}]),I}(H.default.Component),tm=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),F(W(c=P.call(this,h)),"onTimeChange",function(k){c.setState({time:k});var N=new Date;N.setHours(k.split(":")[0]),N.setMinutes(k.split(":")[1]),c.props.onChange(N)}),F(W(c),"renderTimeInput",function(){var k=c.state.time,N=c.props,b=N.date,T=N.timeString,z=N.customTimeInput;return z?H.default.cloneElement(z,{date:b,value:k,onChange:c.onTimeChange}):H.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:k,onChange:function(U){c.onTimeChange(U.target.value||T)}})}),c.state={time:c.props.timeString},c}return wt(I,[{key:"render",value:function(){return H.default.createElement("div",{className:"react-datepicker__input-time-container"},H.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),H.default.createElement("div",{className:"react-datepicker-time__input-container"},H.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(h,c){return h.timeString!==c.time?{time:h.timeString}:null}}]),I}(H.default.Component);function Ku(R){var P=R.className,I=R.children,h=R.showPopperArrow,c=R.arrowProps,k=c===void 0?{}:c;return H.default.createElement("div",{className:P},h&&H.default.createElement("div",mr({className:"react-datepicker__triangle"},k)),I)}var nm=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],rm=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),F(W(c=P.call(this,h)),"handleClickOutside",function(k){c.props.onClickOutside(k)}),F(W(c),"setClickOutsideRef",function(){return c.containerRef.current}),F(W(c),"handleDropdownFocus",function(k){(function(){var N=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return nm.some(function(b){return N.indexOf(b)>=0})})(k.target)&&c.props.onDropdownFocus()}),F(W(c),"getDateInView",function(){var k=c.props,N=k.preSelection,b=k.selected,T=k.openToDate,z=Vu(c.props),U=Qa(c.props),Q=st(),ee=T||b||N;return ee||(z&&Xn.default(Q,z)?z:U&&pr.default(Q,U)?U:Q)}),F(W(c),"increaseMonth",function(){c.setState(function(k){var N=k.date;return{date:En.default(N,1)}},function(){return c.handleMonthChange(c.state.date)})}),F(W(c),"decreaseMonth",function(){c.setState(function(k){var N=k.date;return{date:hr.default(N,1)}},function(){return c.handleMonthChange(c.state.date)})}),F(W(c),"handleDayClick",function(k,N,b){c.props.onSelect(k,N,b),c.props.setPreSelection&&c.props.setPreSelection(k)}),F(W(c),"handleDayMouseEnter",function(k){c.setState({selectingDate:k}),c.props.onDayMouseEnter&&c.props.onDayMouseEnter(k)}),F(W(c),"handleMonthMouseLeave",function(){c.setState({selectingDate:null}),c.props.onMonthMouseLeave&&c.props.onMonthMouseLeave()}),F(W(c),"handleYearChange",function(k){c.props.onYearChange&&c.props.onYearChange(k),c.props.adjustDateOnChange&&(c.props.onSelect&&c.props.onSelect(k),c.props.setOpen&&c.props.setOpen(!0)),c.props.setPreSelection&&c.props.setPreSelection(k)}),F(W(c),"handleMonthChange",function(k){c.props.onMonthChange&&c.props.onMonthChange(k),c.props.adjustDateOnChange&&(c.props.onSelect&&c.props.onSelect(k),c.props.setOpen&&c.props.setOpen(!0)),c.props.setPreSelection&&c.props.setPreSelection(k)}),F(W(c),"handleMonthYearChange",function(k){c.handleYearChange(k),c.handleMonthChange(k)}),F(W(c),"changeYear",function(k){c.setState(function(N){var b=N.date;return{date:Ha.default(b,k)}},function(){return c.handleYearChange(c.state.date)})}),F(W(c),"changeMonth",function(k){c.setState(function(N){var b=N.date;return{date:ye.default(b,k)}},function(){return c.handleMonthChange(c.state.date)})}),F(W(c),"changeMonthYear",function(k){c.setState(function(N){var b=N.date;return{date:Ha.default(ye.default(b,pt.default(k)),G.default(k))}},function(){return c.handleMonthYearChange(c.state.date)})}),F(W(c),"header",function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c.state.date,N=ds(k,c.props.locale,c.props.calendarStartDay),b=[];return c.props.showWeekNumbers&&b.push(H.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},c.props.weekLabel||"#")),b.concat([0,1,2,3,4,5,6].map(function(T){var z=Xi.default(N,T),U=c.formatWeekday(z,c.props.locale),Q=c.props.weekDayClassName?c.props.weekDayClassName(z):void 0;return H.default.createElement("div",{key:T,className:Mt.default("react-datepicker__day-name",Q)},U)}))}),F(W(c),"formatWeekday",function(k,N){return c.props.formatWeekDay?function(b,T,z){return T(tt(b,"EEEE",z))}(k,c.props.formatWeekDay,N):c.props.useWeekdaysShort?function(b,T){return tt(b,"EEE",T)}(k,N):function(b,T){return tt(b,"EEEEEE",T)}(k,N)}),F(W(c),"decreaseYear",function(){c.setState(function(k){var N=k.date;return{date:Ar.default(N,c.props.showYearPicker?c.props.yearItemNumber:1)}},function(){return c.handleYearChange(c.state.date)})}),F(W(c),"renderPreviousButton",function(){if(!c.props.renderCustomHeader){var k;switch(!0){case c.props.showMonthYearPicker:k=Bu(c.state.date,c.props);break;case c.props.showYearPicker:k=function(Vt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=jt.minDate,mt=jt.yearItemNumber,xn=mt===void 0?ea:mt,Jn=_r(ta(Ar.default(Vt,xn)),xn).endPeriod,wr=$t&&G.default($t);return wr&&wr>Jn||!1}(c.state.date,c.props);break;default:k=Zn(c.state.date,c.props)}if((c.props.forceShowMonthNavigation||c.props.showDisabledMonthNavigation||!k)&&!c.props.showTimeSelectOnly){var N=["react-datepicker__navigation","react-datepicker__navigation--previous"],b=c.decreaseMonth;(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker)&&(b=c.decreaseYear),k&&c.props.showDisabledMonthNavigation&&(N.push("react-datepicker__navigation--previous--disabled"),b=null);var T=c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker,z=c.props,U=z.previousMonthButtonLabel,Q=z.previousYearButtonLabel,ee=c.props,he=ee.previousMonthAriaLabel,fe=he===void 0?typeof U=="string"?U:"Previous Month":he,Ie=ee.previousYearAriaLabel,_e=Ie===void 0?typeof Q=="string"?Q:"Previous Year":Ie;return H.default.createElement("button",{type:"button",className:N.join(" "),onClick:b,onKeyDown:c.props.handleOnKeyDown,"aria-label":T?_e:fe},H.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},T?c.props.previousYearButtonLabel:c.props.previousMonthButtonLabel))}}}),F(W(c),"increaseYear",function(){c.setState(function(k){var N=k.date;return{date:De.default(N,c.props.showYearPicker?c.props.yearItemNumber:1)}},function(){return c.handleYearChange(c.state.date)})}),F(W(c),"renderNextButton",function(){if(!c.props.renderCustomHeader){var k;switch(!0){case c.props.showMonthYearPicker:k=Nn(c.state.date,c.props);break;case c.props.showYearPicker:k=function(Vt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=jt.maxDate,mt=jt.yearItemNumber,xn=mt===void 0?ea:mt,Jn=_r(De.default(Vt,xn),xn).startPeriod,wr=$t&&G.default($t);return wr&&wr<Jn||!1}(c.state.date,c.props);break;default:k=$a(c.state.date,c.props)}if((c.props.forceShowMonthNavigation||c.props.showDisabledMonthNavigation||!k)&&!c.props.showTimeSelectOnly){var N=["react-datepicker__navigation","react-datepicker__navigation--next"];c.props.showTimeSelect&&N.push("react-datepicker__navigation--next--with-time"),c.props.todayButton&&N.push("react-datepicker__navigation--next--with-today-button");var b=c.increaseMonth;(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker)&&(b=c.increaseYear),k&&c.props.showDisabledMonthNavigation&&(N.push("react-datepicker__navigation--next--disabled"),b=null);var T=c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker,z=c.props,U=z.nextMonthButtonLabel,Q=z.nextYearButtonLabel,ee=c.props,he=ee.nextMonthAriaLabel,fe=he===void 0?typeof U=="string"?U:"Next Month":he,Ie=ee.nextYearAriaLabel,_e=Ie===void 0?typeof Q=="string"?Q:"Next Year":Ie;return H.default.createElement("button",{type:"button",className:N.join(" "),onClick:b,onKeyDown:c.props.handleOnKeyDown,"aria-label":T?_e:fe},H.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},T?c.props.nextYearButtonLabel:c.props.nextMonthButtonLabel))}}}),F(W(c),"renderCurrentMonth",function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c.state.date,N=["react-datepicker__current-month"];return c.props.showYearDropdown&&N.push("react-datepicker__current-month--hasYearDropdown"),c.props.showMonthDropdown&&N.push("react-datepicker__current-month--hasMonthDropdown"),c.props.showMonthYearDropdown&&N.push("react-datepicker__current-month--hasMonthYearDropdown"),H.default.createElement("div",{className:N.join(" ")},tt(k,c.props.dateFormat,c.props.locale))}),F(W(c),"renderYearDropdown",function(){var k=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(c.props.showYearDropdown&&!k)return H.default.createElement($p,{adjustDateOnChange:c.props.adjustDateOnChange,date:c.state.date,onSelect:c.props.onSelect,setOpen:c.props.setOpen,dropdownMode:c.props.dropdownMode,onChange:c.changeYear,minDate:c.props.minDate,maxDate:c.props.maxDate,year:G.default(c.state.date),scrollableYearDropdown:c.props.scrollableYearDropdown,yearDropdownItemNumber:c.props.yearDropdownItemNumber})}),F(W(c),"renderMonthDropdown",function(){var k=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(c.props.showMonthDropdown&&!k)return H.default.createElement(Gp,{dropdownMode:c.props.dropdownMode,locale:c.props.locale,onChange:c.changeMonth,month:pt.default(c.state.date),useShortMonthInDropdown:c.props.useShortMonthInDropdown})}),F(W(c),"renderMonthYearDropdown",function(){var k=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(c.props.showMonthYearDropdown&&!k)return H.default.createElement(Gu,{dropdownMode:c.props.dropdownMode,locale:c.props.locale,dateFormat:c.props.dateFormat,onChange:c.changeMonthYear,minDate:c.props.minDate,maxDate:c.props.maxDate,date:c.state.date,scrollableMonthYearDropdown:c.props.scrollableMonthYearDropdown})}),F(W(c),"renderTodayButton",function(){if(c.props.todayButton&&!c.props.showTimeSelectOnly)return H.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(k){return c.props.onSelect(Ut.default(st()),k)}},c.props.todayButton)}),F(W(c),"renderDefaultHeader",function(k){var N=k.monthDate,b=k.i;return H.default.createElement("div",{className:"react-datepicker__header ".concat(c.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},c.renderCurrentMonth(N),H.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(c.props.dropdownMode),onFocus:c.handleDropdownFocus},c.renderMonthDropdown(b!==0),c.renderMonthYearDropdown(b!==0),c.renderYearDropdown(b!==0)),H.default.createElement("div",{className:"react-datepicker__day-names"},c.header(N)))}),F(W(c),"renderCustomHeader",function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=k.monthDate,b=k.i;if(c.props.showTimeSelect&&!c.state.monthContainer||c.props.showTimeSelectOnly)return null;var T=Zn(c.state.date,c.props),z=$a(c.state.date,c.props),U=Bu(c.state.date,c.props),Q=Nn(c.state.date,c.props),ee=!c.props.showMonthYearPicker&&!c.props.showQuarterYearPicker&&!c.props.showYearPicker;return H.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:c.props.onDropdownFocus},c.props.renderCustomHeader(Iu(Iu({},c.state),{},{customHeaderCount:b,monthDate:N,changeMonth:c.changeMonth,changeYear:c.changeYear,decreaseMonth:c.decreaseMonth,increaseMonth:c.increaseMonth,decreaseYear:c.decreaseYear,increaseYear:c.increaseYear,prevMonthButtonDisabled:T,nextMonthButtonDisabled:z,prevYearButtonDisabled:U,nextYearButtonDisabled:Q})),ee&&H.default.createElement("div",{className:"react-datepicker__day-names"},c.header(N)))}),F(W(c),"renderYearHeader",function(){var k=c.state.date,N=c.props,b=N.showYearPicker,T=_r(k,N.yearItemNumber),z=T.startPeriod,U=T.endPeriod;return H.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},b?"".concat(z," - ").concat(U):G.default(k))}),F(W(c),"renderHeader",function(k){switch(!0){case c.props.renderCustomHeader!==void 0:return c.renderCustomHeader(k);case(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker):return c.renderYearHeader(k);default:return c.renderDefaultHeader(k)}}),F(W(c),"renderMonths",function(){if(!c.props.showTimeSelectOnly&&!c.props.showYearPicker){for(var k=[],N=c.props.showPreviousMonths?c.props.monthsShown-1:0,b=hr.default(c.state.date,N),T=0;T<c.props.monthsShown;++T){var z=T-c.props.monthSelectedIn,U=En.default(b,z),Q="month-".concat(T),ee=T<c.props.monthsShown-1,he=T>0;k.push(H.default.createElement("div",{key:Q,ref:function(fe){c.monthContainer=fe},className:"react-datepicker__month-container"},c.renderHeader({monthDate:U,i:T}),H.default.createElement(ms,{chooseDayAriaLabelPrefix:c.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:c.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:c.props.weekAriaLabelPrefix,onChange:c.changeMonthYear,day:U,dayClassName:c.props.dayClassName,calendarStartDay:c.props.calendarStartDay,monthClassName:c.props.monthClassName,onDayClick:c.handleDayClick,handleOnKeyDown:c.props.handleOnDayKeyDown,onDayMouseEnter:c.handleDayMouseEnter,onMouseLeave:c.handleMonthMouseLeave,onWeekSelect:c.props.onWeekSelect,orderInDisplay:T,formatWeekNumber:c.props.formatWeekNumber,locale:c.props.locale,minDate:c.props.minDate,maxDate:c.props.maxDate,excludeDates:c.props.excludeDates,excludeDateIntervals:c.props.excludeDateIntervals,highlightDates:c.props.highlightDates,selectingDate:c.state.selectingDate,includeDates:c.props.includeDates,includeDateIntervals:c.props.includeDateIntervals,inline:c.props.inline,shouldFocusDayInline:c.props.shouldFocusDayInline,fixedHeight:c.props.fixedHeight,filterDate:c.props.filterDate,preSelection:c.props.preSelection,setPreSelection:c.props.setPreSelection,selected:c.props.selected,selectsStart:c.props.selectsStart,selectsEnd:c.props.selectsEnd,selectsRange:c.props.selectsRange,selectsDisabledDaysInRange:c.props.selectsDisabledDaysInRange,showWeekNumbers:c.props.showWeekNumbers,startDate:c.props.startDate,endDate:c.props.endDate,peekNextMonth:c.props.peekNextMonth,setOpen:c.props.setOpen,shouldCloseOnSelect:c.props.shouldCloseOnSelect,renderDayContents:c.props.renderDayContents,disabledKeyboardNavigation:c.props.disabledKeyboardNavigation,showMonthYearPicker:c.props.showMonthYearPicker,showFullMonthYearPicker:c.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:c.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:c.props.showFourColumnMonthYearPicker,showYearPicker:c.props.showYearPicker,showQuarterYearPicker:c.props.showQuarterYearPicker,isInputFocused:c.props.isInputFocused,containerRef:c.containerRef,monthShowsDuplicateDaysEnd:ee,monthShowsDuplicateDaysStart:he})))}return k}}),F(W(c),"renderYears",function(){if(!c.props.showTimeSelectOnly)return c.props.showYearPicker?H.default.createElement("div",{className:"react-datepicker__year--container"},c.renderHeader(),H.default.createElement(gs,mr({onDayClick:c.handleDayClick,date:c.state.date},c.props))):void 0}),F(W(c),"renderTimeSection",function(){if(c.props.showTimeSelect&&(c.state.monthContainer||c.props.showTimeSelectOnly))return H.default.createElement(Xu,{selected:c.props.selected,openToDate:c.props.openToDate,onChange:c.props.onTimeChange,timeClassName:c.props.timeClassName,format:c.props.timeFormat,includeTimes:c.props.includeTimes,intervals:c.props.timeIntervals,minTime:c.props.minTime,maxTime:c.props.maxTime,excludeTimes:c.props.excludeTimes,filterTime:c.props.filterTime,timeCaption:c.props.timeCaption,todayButton:c.props.todayButton,showMonthDropdown:c.props.showMonthDropdown,showMonthYearDropdown:c.props.showMonthYearDropdown,showYearDropdown:c.props.showYearDropdown,withPortal:c.props.withPortal,monthRef:c.state.monthContainer,injectTimes:c.props.injectTimes,locale:c.props.locale,handleOnKeyDown:c.props.handleOnKeyDown,showTimeSelectOnly:c.props.showTimeSelectOnly})}),F(W(c),"renderInputTimeSection",function(){var k=new Date(c.props.selected),N=gr(k)&&Boolean(c.props.selected)?"".concat($u(k.getHours()),":").concat($u(k.getMinutes())):"";if(c.props.showTimeInput)return H.default.createElement(tm,{date:k,timeString:N,timeInputLabel:c.props.timeInputLabel,onChange:c.props.onTimeChange,customTimeInput:c.props.customTimeInput})}),c.containerRef=H.default.createRef(),c.state={date:c.getDateInView(),selectingDate:null,monthContainer:null},c}return wt(I,[{key:"componentDidMount",value:function(){var h=this;this.props.showTimeSelect&&(this.assignMonthContainer=void h.setState({monthContainer:h.monthContainer}))}},{key:"componentDidUpdate",value:function(h){this.props.preSelection&&!Bt(this.props.preSelection,h.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Bt(this.props.openToDate,h.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var h=this.props.container||Ku;return H.default.createElement("div",{ref:this.containerRef},H.default.createElement(h,{className:Mt.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:ea}}}]),I}(H.default.Component),vs=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),(c=P.call(this,h)).el=document.createElement("div"),c}return wt(I,[{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 Lp.default.createPortal(this.props.children,this.el)}}]),I}(H.default.Component),im=function(R){return!R.disabled&&R.tabIndex!==-1},Zu=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),F(W(c=P.call(this,h)),"getTabChildren",function(){return Array.prototype.slice.call(c.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(im)}),F(W(c),"handleFocusStart",function(k){var N=c.getTabChildren();N&&N.length>1&&N[N.length-1].focus()}),F(W(c),"handleFocusEnd",function(k){var N=c.getTabChildren();N&&N.length>1&&N[0].focus()}),c.tabLoopRef=H.default.createRef(),c}return wt(I,[{key:"render",value:function(){return this.props.enableTabLoop?H.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},H.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,H.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),I}(H.default.Component),We=function(R){et(I,R);var P=xt(I);function I(){return Ke(this,I),P.apply(this,arguments)}return wt(I,[{key:"render",value:function(){var h,c=this.props,k=c.className,N=c.wrapperClassName,b=c.hidePopper,T=c.popperComponent,z=c.popperModifiers,U=c.popperPlacement,Q=c.popperProps,ee=c.targetComponent,he=c.enableTabLoop,fe=c.popperOnKeyDown,Ie=c.portalId,_e=c.portalHost;if(!b){var Vt=Mt.default("react-datepicker-popper",k);h=H.default.createElement(St.Popper,mr({modifiers:z,placement:U},Q),function($t){var mt=$t.ref,xn=$t.style,Jn=$t.placement,wr=$t.arrowProps;return H.default.createElement(Zu,{enableTabLoop:he},H.default.createElement("div",{ref:mt,style:xn,className:Vt,"data-placement":Jn,onKeyDown:fe},H.default.cloneElement(T,{arrowProps:wr})))})}this.props.popperContainer&&(h=H.default.createElement(this.props.popperContainer,{},h)),Ie&&!b&&(h=H.default.createElement(vs,{portalId:Ie,portalHost:_e},h));var jt=Mt.default("react-datepicker-wrapper",N);return H.default.createElement(St.Manager,{className:"react-datepicker-manager"},H.default.createElement(St.Reference,null,function($t){var mt=$t.ref;return H.default.createElement("div",{ref:mt,className:jt},ee)}),h)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),I}(H.default.Component),Ju="react-datepicker-ignore-onclickoutside",am=Ji.default(rm),Ga="Date input not valid.",om=function(R){et(I,R);var P=xt(I);function I(h){var c;return Ke(this,I),F(W(c=P.call(this,h)),"getPreSelection",function(){return c.props.openToDate?c.props.openToDate:c.props.selectsEnd&&c.props.startDate?c.props.startDate:c.props.selectsStart&&c.props.endDate?c.props.endDate:st()}),F(W(c),"calcInitialState",function(){var k,N=c.getPreSelection(),b=Vu(c.props),T=Qa(c.props),z=b&&Xn.default(N,Ut.default(b))?b:T&&pr.default(N,Ve.default(T))?T:N;return{open:c.props.startOpen||!1,preventFocus:!1,preSelection:(k=c.props.selectsRange?c.props.startDate:c.props.selected)!==null&&k!==void 0?k:z,highlightDates:ju(c.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),F(W(c),"clearPreventFocusTimeout",function(){c.preventFocusTimeout&&clearTimeout(c.preventFocusTimeout)}),F(W(c),"setFocus",function(){c.input&&c.input.focus&&c.input.focus({preventScroll:!0})}),F(W(c),"setBlur",function(){c.input&&c.input.blur&&c.input.blur(),c.cancelFocusInput()}),F(W(c),"setOpen",function(k){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c.setState({open:k,preSelection:k&&c.state.open?c.state.preSelection:c.calcInitialState().preSelection,lastPreSelectChange:ys},function(){k||c.setState(function(b){return{focused:!!N&&b.focused}},function(){!N&&c.setBlur(),c.setState({inputValue:null})})})}),F(W(c),"inputOk",function(){return rs.default(c.state.preSelection)}),F(W(c),"isCalendarOpen",function(){return c.props.open===void 0?c.state.open&&!c.props.disabled&&!c.props.readOnly:c.props.open}),F(W(c),"handleFocus",function(k){c.state.preventFocus||(c.props.onFocus(k),c.props.preventOpenOnFocus||c.props.readOnly||c.setOpen(!0)),c.setState({focused:!0})}),F(W(c),"cancelFocusInput",function(){clearTimeout(c.inputFocusTimeout),c.inputFocusTimeout=null}),F(W(c),"deferFocusInput",function(){c.cancelFocusInput(),c.inputFocusTimeout=setTimeout(function(){return c.setFocus()},1)}),F(W(c),"handleDropdownFocus",function(){c.cancelFocusInput()}),F(W(c),"handleBlur",function(k){(!c.state.open||c.props.withPortal||c.props.showTimeInput)&&c.props.onBlur(k),c.setState({focused:!1})}),F(W(c),"handleCalendarClickOutside",function(k){c.props.inline||c.setOpen(!1),c.props.onClickOutside(k),c.props.withPortal&&k.preventDefault()}),F(W(c),"handleChange",function(){for(var k=arguments.length,N=new Array(k),b=0;b<k;b++)N[b]=arguments[b];var T=N[0];if(!c.props.onChangeRaw||(c.props.onChangeRaw.apply(W(c),N),typeof T.isDefaultPrevented=="function"&&!T.isDefaultPrevented())){c.setState({inputValue:T.target.value,lastPreSelectChange:sm});var z=Au(T.target.value,c.props.dateFormat,c.props.locale,c.props.strictParsing,c.props.minDate);!z&&T.target.value||c.setSelected(z,T,!0)}}),F(W(c),"handleSelect",function(k,N,b){if(c.setState({preventFocus:!0},function(){return c.preventFocusTimeout=setTimeout(function(){return c.setState({preventFocus:!1})},50),c.preventFocusTimeout}),c.props.onChangeRaw&&c.props.onChangeRaw(N),c.setSelected(k,N,!1,b),!c.props.shouldCloseOnSelect||c.props.showTimeSelect)c.setPreSelection(k);else if(!c.props.inline){c.props.selectsRange||c.setOpen(!1);var T=c.props,z=T.startDate,U=T.endDate;!z||U||Xn.default(k,z)||c.setOpen(!1)}}),F(W(c),"setSelected",function(k,N,b,T){var z=k;if(z===null||!ja(z,c.props)){var U=c.props,Q=U.onChange,ee=U.selectsRange,he=U.startDate,fe=U.endDate;if(!In(c.props.selected,z)||c.props.allowSameDay||ee)if(z!==null&&(!c.props.selected||b&&(c.props.showTimeSelect||c.props.showTimeSelectOnly||c.props.showTimeInput)||(z=Wu(z,{hour:qt.default(c.props.selected),minute:Pt.default(c.props.selected),second:qa.default(c.props.selected)})),c.props.inline||c.setState({preSelection:z}),c.props.focusSelectedMonth||c.setState({monthSelectedIn:T})),ee){var Ie=he&&!fe,_e=he&&fe;!he&&!fe?Q([z,null],N):Ie&&(Xn.default(z,he)?Q([z,null],N):Q([he,z],N)),_e&&Q([z,null],N)}else Q(z,N);b||(c.props.onSelect(z,N),c.setState({inputValue:null}))}}),F(W(c),"setPreSelection",function(k){var N=c.props.minDate!==void 0,b=c.props.maxDate!==void 0,T=!0;if(k){var z=Ut.default(k);if(N&&b)T=ci(k,c.props.minDate,c.props.maxDate);else if(N){var U=Ut.default(c.props.minDate);T=pr.default(k,U)||In(z,U)}else if(b){var Q=Ve.default(c.props.maxDate);T=Xn.default(k,Q)||In(z,Q)}}T&&c.setState({preSelection:k})}),F(W(c),"handleTimeChange",function(k){var N=Wu(c.props.selected?c.props.selected:c.getPreSelection(),{hour:qt.default(k),minute:Pt.default(k)});c.setState({preSelection:N}),c.props.onChange(N),c.props.shouldCloseOnSelect&&c.setOpen(!1),c.props.showTimeInput&&c.setOpen(!0),c.setState({inputValue:null})}),F(W(c),"onInputClick",function(){c.props.disabled||c.props.readOnly||c.setOpen(!0),c.props.onInputClick()}),F(W(c),"onInputKeyDown",function(k){c.props.onKeyDown(k);var N=k.key;if(c.state.open||c.props.inline||c.props.preventOpenOnFocus){if(c.state.open){if(N==="ArrowDown"||N==="ArrowUp"){k.preventDefault();var b=c.calendar.componentNode&&c.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(b&&b.focus({preventScroll:!0}))}var T=st(c.state.preSelection);N==="Enter"?(k.preventDefault(),c.inputOk()&&c.state.lastPreSelectChange===ys?(c.handleSelect(T,k),!c.props.shouldCloseOnSelect&&c.setPreSelection(T)):c.setOpen(!1)):N==="Escape"&&(k.preventDefault(),c.setOpen(!1)),c.inputOk()||c.props.onInputError({code:1,msg:Ga})}}else N!=="ArrowDown"&&N!=="ArrowUp"&&N!=="Enter"||c.onInputClick()}),F(W(c),"onDayKeyDown",function(k){c.props.onKeyDown(k);var N=k.key,b=st(c.state.preSelection);if(N==="Enter")k.preventDefault(),c.handleSelect(b,k),!c.props.shouldCloseOnSelect&&c.setPreSelection(b);else if(N==="Escape")k.preventDefault(),c.setOpen(!1),c.inputOk()||c.props.onInputError({code:1,msg:Ga});else if(!c.props.disabledKeyboardNavigation){var T;switch(N){case"ArrowLeft":T=Cu.default(b,1);break;case"ArrowRight":T=Xi.default(b,1);break;case"ArrowUp":T=Ou.default(b,1);break;case"ArrowDown":T=za.default(b,1);break;case"PageUp":T=hr.default(b,1);break;case"PageDown":T=En.default(b,1);break;case"Home":T=Ar.default(b,1);break;case"End":T=De.default(b,1)}if(!T)return void(c.props.onInputError&&c.props.onInputError({code:1,msg:Ga}));if(k.preventDefault(),c.setState({lastPreSelectChange:ys}),c.props.adjustDateOnChange&&c.setSelected(T),c.setPreSelection(T),c.props.inline){var z=pt.default(b),U=pt.default(T),Q=G.default(b),ee=G.default(T);z!==U||Q!==ee?c.setState({shouldFocusDayInline:!0}):c.setState({shouldFocusDayInline:!1})}}}),F(W(c),"onPopperKeyDown",function(k){k.key==="Escape"&&(k.preventDefault(),c.setState({preventFocus:!0},function(){c.setOpen(!1),setTimeout(function(){c.setFocus(),c.setState({preventFocus:!1})})}))}),F(W(c),"onClearClick",function(k){k&&k.preventDefault&&k.preventDefault(),c.props.selectsRange?c.props.onChange([null,null],k):c.props.onChange(null,k),c.setState({inputValue:null})}),F(W(c),"clear",function(){c.onClearClick()}),F(W(c),"onScroll",function(k){typeof c.props.closeOnScroll=="boolean"&&c.props.closeOnScroll?k.target!==document&&k.target!==document.documentElement&&k.target!==document.body||c.setOpen(!1):typeof c.props.closeOnScroll=="function"&&c.props.closeOnScroll(k)&&c.setOpen(!1)}),F(W(c),"renderCalendar",function(){return c.props.inline||c.isCalendarOpen()?H.default.createElement(am,{ref:function(k){c.calendar=k},locale:c.props.locale,calendarStartDay:c.props.calendarStartDay,chooseDayAriaLabelPrefix:c.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:c.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:c.props.weekAriaLabelPrefix,adjustDateOnChange:c.props.adjustDateOnChange,setOpen:c.setOpen,shouldCloseOnSelect:c.props.shouldCloseOnSelect,dateFormat:c.props.dateFormatCalendar,useWeekdaysShort:c.props.useWeekdaysShort,formatWeekDay:c.props.formatWeekDay,dropdownMode:c.props.dropdownMode,selected:c.props.selected,preSelection:c.state.preSelection,onSelect:c.handleSelect,onWeekSelect:c.props.onWeekSelect,openToDate:c.props.openToDate,minDate:c.props.minDate,maxDate:c.props.maxDate,selectsStart:c.props.selectsStart,selectsEnd:c.props.selectsEnd,selectsRange:c.props.selectsRange,startDate:c.props.startDate,endDate:c.props.endDate,excludeDates:c.props.excludeDates,excludeDateIntervals:c.props.excludeDateIntervals,filterDate:c.props.filterDate,onClickOutside:c.handleCalendarClickOutside,formatWeekNumber:c.props.formatWeekNumber,highlightDates:c.state.highlightDates,includeDates:c.props.includeDates,includeDateIntervals:c.props.includeDateIntervals,includeTimes:c.props.includeTimes,injectTimes:c.props.injectTimes,inline:c.props.inline,shouldFocusDayInline:c.state.shouldFocusDayInline,peekNextMonth:c.props.peekNextMonth,showMonthDropdown:c.props.showMonthDropdown,showPreviousMonths:c.props.showPreviousMonths,useShortMonthInDropdown:c.props.useShortMonthInDropdown,showMonthYearDropdown:c.props.showMonthYearDropdown,showWeekNumbers:c.props.showWeekNumbers,showYearDropdown:c.props.showYearDropdown,withPortal:c.props.withPortal,forceShowMonthNavigation:c.props.forceShowMonthNavigation,showDisabledMonthNavigation:c.props.showDisabledMonthNavigation,scrollableYearDropdown:c.props.scrollableYearDropdown,scrollableMonthYearDropdown:c.props.scrollableMonthYearDropdown,todayButton:c.props.todayButton,weekLabel:c.props.weekLabel,outsideClickIgnoreClass:Ju,fixedHeight:c.props.fixedHeight,monthsShown:c.props.monthsShown,monthSelectedIn:c.state.monthSelectedIn,onDropdownFocus:c.handleDropdownFocus,onMonthChange:c.props.onMonthChange,onYearChange:c.props.onYearChange,dayClassName:c.props.dayClassName,weekDayClassName:c.props.weekDayClassName,monthClassName:c.props.monthClassName,timeClassName:c.props.timeClassName,showTimeSelect:c.props.showTimeSelect,showTimeSelectOnly:c.props.showTimeSelectOnly,onTimeChange:c.handleTimeChange,timeFormat:c.props.timeFormat,timeIntervals:c.props.timeIntervals,minTime:c.props.minTime,maxTime:c.props.maxTime,excludeTimes:c.props.excludeTimes,filterTime:c.props.filterTime,timeCaption:c.props.timeCaption,className:c.props.calendarClassName,container:c.props.calendarContainer,yearItemNumber:c.props.yearItemNumber,yearDropdownItemNumber:c.props.yearDropdownItemNumber,previousMonthAriaLabel:c.props.previousMonthAriaLabel,previousMonthButtonLabel:c.props.previousMonthButtonLabel,nextMonthAriaLabel:c.props.nextMonthAriaLabel,nextMonthButtonLabel:c.props.nextMonthButtonLabel,previousYearAriaLabel:c.props.previousYearAriaLabel,previousYearButtonLabel:c.props.previousYearButtonLabel,nextYearAriaLabel:c.props.nextYearAriaLabel,nextYearButtonLabel:c.props.nextYearButtonLabel,timeInputLabel:c.props.timeInputLabel,disabledKeyboardNavigation:c.props.disabledKeyboardNavigation,renderCustomHeader:c.props.renderCustomHeader,popperProps:c.props.popperProps,renderDayContents:c.props.renderDayContents,onDayMouseEnter:c.props.onDayMouseEnter,onMonthMouseLeave:c.props.onMonthMouseLeave,selectsDisabledDaysInRange:c.props.selectsDisabledDaysInRange,showTimeInput:c.props.showTimeInput,showMonthYearPicker:c.props.showMonthYearPicker,showFullMonthYearPicker:c.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:c.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:c.props.showFourColumnMonthYearPicker,showYearPicker:c.props.showYearPicker,showQuarterYearPicker:c.props.showQuarterYearPicker,showPopperArrow:c.props.showPopperArrow,excludeScrollbar:c.props.excludeScrollbar,handleOnKeyDown:c.props.onKeyDown,handleOnDayKeyDown:c.onDayKeyDown,isInputFocused:c.state.focused,customTimeInput:c.props.customTimeInput,setPreSelection:c.setPreSelection},c.props.children):null}),F(W(c),"renderDateInput",function(){var k,N=Mt.default(c.props.className,F({},Ju,c.state.open)),b=c.props.customInput||H.default.createElement("input",{type:"text"}),T=c.props.customInputRef||"ref",z=typeof c.props.value=="string"?c.props.value:typeof c.state.inputValue=="string"?c.state.inputValue:c.props.selectsRange?function(U,Q,ee){if(!U)return"";var he=cs(U,ee),fe=Q?cs(Q,ee):"";return"".concat(he," - ").concat(fe)}(c.props.startDate,c.props.endDate,c.props):cs(c.props.selected,c.props);return H.default.cloneElement(b,(F(k={},T,function(U){c.input=U}),F(k,"value",z),F(k,"onBlur",c.handleBlur),F(k,"onChange",c.handleChange),F(k,"onClick",c.onInputClick),F(k,"onFocus",c.handleFocus),F(k,"onKeyDown",c.onInputKeyDown),F(k,"id",c.props.id),F(k,"name",c.props.name),F(k,"autoFocus",c.props.autoFocus),F(k,"placeholder",c.props.placeholderText),F(k,"disabled",c.props.disabled),F(k,"autoComplete",c.props.autoComplete),F(k,"className",Mt.default(b.props.className,N)),F(k,"title",c.props.title),F(k,"readOnly",c.props.readOnly),F(k,"required",c.props.required),F(k,"tabIndex",c.props.tabIndex),F(k,"aria-describedby",c.props.ariaDescribedBy),F(k,"aria-invalid",c.props.ariaInvalid),F(k,"aria-labelledby",c.props.ariaLabelledBy),F(k,"aria-required",c.props.ariaRequired),k))}),F(W(c),"renderClearButton",function(){var k=c.props,N=k.isClearable,b=k.selected,T=k.startDate,z=k.endDate,U=k.clearButtonTitle,Q=k.clearButtonClassName,ee=Q===void 0?"":Q,he=k.ariaLabelClose,fe=he===void 0?"Close":he;return!N||b==null&&T==null&&z==null?null:H.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(ee).trim(),"aria-label":fe,onClick:c.onClearClick,title:U,tabIndex:-1})}),c.state=c.calcInitialState(),c}return wt(I,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(h,c){var k,N;h.inline&&(k=h.selected,N=this.props.selected,k&&N?pt.default(k)!==pt.default(N)||G.default(k)!==G.default(N):k!==N)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&h.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),h.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ju(this.props.highlightDates)}),c.focused||In(h.selected,this.props.selected)||this.setState({inputValue:null}),c.open!==this.state.open&&(c.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),c.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return H.default.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var h=this.renderCalendar();if(this.props.inline)return h;if(this.props.withPortal){var c=this.state.open?H.default.createElement("div",{className:"react-datepicker__portal"},h):null;return this.state.open&&this.props.portalId&&(c=H.default.createElement(vs,{portalId:this.props.portalId,portalHost:this.props.portalHost},c)),H.default.createElement("div",null,this.renderInputContainer(),c)}return H.default.createElement(We,{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:h,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:ea,renderDayContents:function(h){return h},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),I}(H.default.Component),sm="input",ys="navigate";e.CalendarContainer=Ku,e.default=om,e.getDefaultLocale=yr,e.registerLocale=function(R,P){var I=typeof window<"u"?window:globalThis;I.__localeData__||(I.__localeData__={}),I.__localeData__[R]=P},e.setDefaultLocale=function(R){(typeof window<"u"?window:globalThis).__localeId__=R},Object.defineProperty(e,"__esModule",{value:!0})})});var p0=$((h0,Uo)=>{(function(e,t){typeof h0=="object"&&typeof Uo<"u"?Uo.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(h0,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(l){e=l}function r(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function i(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function a(l,f){return Object.prototype.hasOwnProperty.call(l,f)}function o(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var f;for(f in l)if(a(l,f))return!1;return!0}function s(l){return l===void 0}function u(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function d(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function p(l,f){var m=[],y,M=l.length;for(y=0;y<M;++y)m.push(f(l[y],y));return m}function g(l,f){for(var m in f)a(f,m)&&(l[m]=f[m]);return a(f,"toString")&&(l.toString=f.toString),a(f,"valueOf")&&(l.valueOf=f.valueOf),l}function v(l,f,m,y){return Zu(l,f,m,y,!0).utc()}function S(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function C(l){return l._pf==null&&(l._pf=S()),l._pf}var x;Array.prototype.some?x=Array.prototype.some:x=function(l){var f=Object(this),m=f.length>>>0,y;for(y=0;y<m;y++)if(y in f&&l.call(this,f[y],y,f))return!0;return!1};function w(l){if(l._isValid==null){var f=C(l),m=x.call(f.parsedDateParts,function(M){return M!=null}),y=!isNaN(l._d.getTime())&&f.overflow<0&&!f.empty&&!f.invalidEra&&!f.invalidMonth&&!f.invalidWeekday&&!f.weekdayMismatch&&!f.nullInput&&!f.invalidFormat&&!f.userInvalidated&&(!f.meridiem||f.meridiem&&m);if(l._strict&&(y=y&&f.charsLeftOver===0&&f.unusedTokens.length===0&&f.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=y;else return y}return l._isValid}function _(l){var f=v(NaN);return l!=null?g(C(f),l):C(f).userInvalidated=!0,f}var D=t.momentProperties=[],O=!1;function E(l,f){var m,y,M,A=D.length;if(s(f._isAMomentObject)||(l._isAMomentObject=f._isAMomentObject),s(f._i)||(l._i=f._i),s(f._f)||(l._f=f._f),s(f._l)||(l._l=f._l),s(f._strict)||(l._strict=f._strict),s(f._tzm)||(l._tzm=f._tzm),s(f._isUTC)||(l._isUTC=f._isUTC),s(f._offset)||(l._offset=f._offset),s(f._pf)||(l._pf=C(f)),s(f._locale)||(l._locale=f._locale),A>0)for(m=0;m<A;m++)y=D[m],M=f[y],s(M)||(l[y]=M);return l}function L(l){E(this,l),this._d=new Date(l._d!=null?l._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),O===!1&&(O=!0,t.updateOffset(this),O=!1)}function Y(l){return l instanceof L||l!=null&&l._isAMomentObject!=null}function q(l){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+l)}function B(l,f){var m=!0;return g(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,l),m){var y=[],M,A,j,se=arguments.length;for(A=0;A<se;A++){if(M="",typeof arguments[A]=="object"){M+=`
[`+A+"] ";for(j in arguments[0])a(arguments[0],j)&&(M+=j+": "+arguments[0][j]+", ");M=M.slice(0,-2)}else M=arguments[A];y.push(M)}q(l+`
Arguments: `+Array.prototype.slice.call(y).join("")+`
`+new Error().stack),m=!1}return f.apply(this,arguments)},f)}var V={};function re(l,f){t.deprecationHandler!=null&&t.deprecationHandler(l,f),V[l]||(q(f),V[l]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function J(l){return typeof Function<"u"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function ue(l){var f,m;for(m in l)a(l,m)&&(f=l[m],J(f)?this[m]=f:this["_"+m]=f);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ge(l,f){var m=g({},l),y;for(y in f)a(f,y)&&(i(l[y])&&i(f[y])?(m[y]={},g(m[y],l[y]),g(m[y],f[y])):f[y]!=null?m[y]=f[y]:delete m[y]);for(y in l)a(l,y)&&!a(f,y)&&i(l[y])&&(m[y]=g({},m[y]));return m}function ve(l){l!=null&&this.set(l)}var ae;Object.keys?ae=Object.keys:ae=function(l){var f,m=[];for(f in l)a(l,f)&&m.push(f);return m};var oe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pe(l,f,m){var y=this._calendar[l]||this._calendar.sameElse;return J(y)?y.call(f,m):y}function de(l,f,m){var y=""+Math.abs(l),M=f-y.length,A=l>=0;return(A?m?"+":"":"-")+Math.pow(10,Math.max(0,M)).toString().substr(1)+y}var Te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},Ee={};function ne(l,f,m,y){var M=y;typeof y=="string"&&(M=function(){return this[y]()}),l&&(Ee[l]=M),f&&(Ee[f[0]]=function(){return de(M.apply(this,arguments),f[1],f[2])}),m&&(Ee[m]=function(){return this.localeData().ordinal(M.apply(this,arguments),l)})}function Be(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function Fe(l){var f=l.match(Te),m,y;for(m=0,y=f.length;m<y;m++)Ee[f[m]]?f[m]=Ee[f[m]]:f[m]=Be(f[m]);return function(M){var A="",j;for(j=0;j<y;j++)A+=J(f[j])?f[j].call(M,l):f[j];return A}}function cn(l,f){return l.isValid()?(f=dt(f,l.localeData()),ot[f]=ot[f]||Fe(f),ot[f](l)):l.localeData().invalidDate()}function dt(l,f){var m=5;function y(M){return f.longDateFormat(M)||M}for(Je.lastIndex=0;m>=0&&Je.test(l);)l=l.replace(Je,y),Je.lastIndex=0,m-=1;return l}var Ge={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function _t(l){var f=this._longDateFormat[l],m=this._longDateFormat[l.toUpperCase()];return f||!m?f:(this._longDateFormat[l]=m.match(Te).map(function(y){return y==="MMMM"||y==="MM"||y==="DD"||y==="dddd"?y.slice(1):y}).join(""),this._longDateFormat[l])}var It="Invalid date";function Tn(){return this._invalidDate}var cr="%d",Nt=/\d{1,2}/;function ft(l){return this._ordinal.replace("%d",l)}var dn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Lt(l,f,m,y){var M=this._relativeTime[m];return J(M)?M(l,f,m,y):M.replace(/%d/i,l)}function dr(l,f){var m=this._relativeTime[l>0?"future":"past"];return J(m)?m(f):m.replace(/%s/i,f)}var tn={};function Ae(l,f){var m=l.toLowerCase();tn[m]=tn[m+"s"]=tn[f]=l}function ze(l){return typeof l=="string"?tn[l]||tn[l.toLowerCase()]:void 0}function zt(l){var f={},m,y;for(y in l)a(l,y)&&(m=ze(y),m&&(f[m]=l[y]));return f}var fr={};function ht(l,f){fr[l]=f}function Gi(l){var f=[],m;for(m in l)a(l,m)&&f.push({unit:m,priority:fr[m]});return f.sort(function(y,M){return y.priority-M.priority}),f}function Fr(l){return l%4===0&&l%100!==0||l%400===0}function St(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function X(l){var f=+l,m=0;return f!==0&&isFinite(f)&&(m=St(f)),m}function H(l,f){return function(m){return m!=null?(rs(this,l,m),t.updateOffset(this,f),this):Mt(this,l)}}function Mt(l,f){return l.isValid()?l._d["get"+(l._isUTC?"UTC":"")+f]():NaN}function rs(l,f,m){l.isValid()&&!isNaN(m)&&(f==="FullYear"&&Fr(l.year())&&l.month()===1&&l.date()===29?(m=X(m),l._d["set"+(l._isUTC?"UTC":"")+f](m,l.month(),Ua(m,l.month()))):l._d["set"+(l._isUTC?"UTC":"")+f](m))}function kp(l){return l=ze(l),J(this[l])?this[l]():this}function Du(l,f){if(typeof l=="object"){l=zt(l);var m=Gi(l),y,M=m.length;for(y=0;y<M;y++)this[m[y].unit](l[m[y].unit])}else if(l=ze(l),J(this[l]))return this[l](f);return this}var Ya=/\d/,nn=/\d\d/,Xi=/\d{3}/,za=/\d{4}/,En=/[+-]?\d{6}/,De=/\d\d?/,Cu=/\d\d\d\d?/,Ou=/\d\d\d\d\d\d?/,hr=/\d{1,3}/,Ar=/\d{1,4}/,qa=/[+-]?\d{1,6}/,Pt=/\d+/,qt=/[+-]?\d+/,Dp=/Z|[+-]\d\d:?\d\d/gi,Ki=/Z|[+-]\d\d(?::?\d\d)?/gi,Cp=/[+-]?\d+(\.\d{1,3})?/,pt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,li;li={};function G(l,f,m){li[l]=J(f)?f:function(y,M){return y&&m?m:f}}function is(l,f){return a(li,l)?li[l](f._strict,f._locale):new RegExp(Op(l))}function Op(l){return kt(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(f,m,y,M,A){return m||y||M||A}))}function kt(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Wr={};function ye(l,f){var m,y=f,M;for(typeof l=="string"&&(l=[l]),u(f)&&(y=function(A,j){j[f]=X(A)}),M=l.length,m=0;m<M;m++)Wr[l[m]]=y}function Gn(l,f){ye(l,function(m,y,M,A){M._w=M._w||{},f(m,M._w,M,A)})}function Ha(l,f,m){f!=null&&a(Wr,l)&&Wr[l](f,m._a,m,l)}var Dt=0,Rn=1,rn=2,Xe=3,Ht=4,Ut=5,Yr=6,Pp=7,Tp=8;function Ep(l,f){return(l%f+f)%f}var Ve;Array.prototype.indexOf?Ve=Array.prototype.indexOf:Ve=function(l){var f;for(f=0;f<this.length;++f)if(this[f]===l)return f;return-1};function Ua(l,f){if(isNaN(l)||isNaN(f))return NaN;var m=Ep(f,12);return l+=(f-m)/12,m===1?Fr(l)?29:28:31-m%7%2}ne("M",["MM",2],"Mo",function(){return this.month()+1}),ne("MMM",0,0,function(l){return this.localeData().monthsShort(this,l)}),ne("MMMM",0,0,function(l){return this.localeData().months(this,l)}),Ae("month","M"),ht("month",8),G("M",De),G("MM",De,nn),G("MMM",function(l,f){return f.monthsShortRegex(l)}),G("MMMM",function(l,f){return f.monthsRegex(l)}),ye(["M","MM"],function(l,f){f[Rn]=X(l)-1}),ye(["MMM","MMMM"],function(l,f,m,y){var M=m._locale.monthsParse(l,y,m._strict);M!=null?f[Rn]=M:C(m).invalidMonth=l});var Rp="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Tu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ip=pt,pr=pt;function Xn(l,f){return l?r(this._months)?this._months[l.month()]:this._months[(this._months.isFormat||Tu).test(f)?"format":"standalone"][l.month()]:r(this._months)?this._months:this._months.standalone}function Zi(l,f){return l?r(this._monthsShort)?this._monthsShort[l.month()]:this._monthsShort[Tu.test(f)?"format":"standalone"][l.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Np(l,f,m){var y,M,A,j=l.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],y=0;y<12;++y)A=v([2e3,y]),this._shortMonthsParse[y]=this.monthsShort(A,"").toLocaleLowerCase(),this._longMonthsParse[y]=this.months(A,"").toLocaleLowerCase();return m?f==="MMM"?(M=Ve.call(this._shortMonthsParse,j),M!==-1?M:null):(M=Ve.call(this._longMonthsParse,j),M!==-1?M:null):f==="MMM"?(M=Ve.call(this._shortMonthsParse,j),M!==-1?M:(M=Ve.call(this._longMonthsParse,j),M!==-1?M:null)):(M=Ve.call(this._longMonthsParse,j),M!==-1?M:(M=Ve.call(this._shortMonthsParse,j),M!==-1?M:null))}function as(l,f,m){var y,M,A;if(this._monthsParseExact)return Np.call(this,l,f,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),y=0;y<12;y++){if(M=v([2e3,y]),m&&!this._longMonthsParse[y]&&(this._longMonthsParse[y]=new RegExp("^"+this.months(M,"").replace(".","")+"$","i"),this._shortMonthsParse[y]=new RegExp("^"+this.monthsShort(M,"").replace(".","")+"$","i")),!m&&!this._monthsParse[y]&&(A="^"+this.months(M,"")+"|^"+this.monthsShort(M,""),this._monthsParse[y]=new RegExp(A.replace(".",""),"i")),m&&f==="MMMM"&&this._longMonthsParse[y].test(l))return y;if(m&&f==="MMM"&&this._shortMonthsParse[y].test(l))return y;if(!m&&this._monthsParse[y].test(l))return y}}function Eu(l,f){var m;if(!l.isValid())return l;if(typeof f=="string"){if(/^\d+$/.test(f))f=X(f);else if(f=l.localeData().monthsParse(f),!u(f))return l}return m=Math.min(l.date(),Ua(l.year(),f)),l._d["set"+(l._isUTC?"UTC":"")+"Month"](f,m),l}function Ji(l){return l!=null?(Eu(this,l),t.updateOffset(this,!0),this):Mt(this,"Month")}function Lp(){return Ua(this.year(),this.month())}function Ru(l){return this._monthsParseExact?(a(this,"_monthsRegex")||os.call(this),l?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ip),this._monthsShortStrictRegex&&l?this._monthsShortStrictRegex:this._monthsShortRegex)}function Iu(l){return this._monthsParseExact?(a(this,"_monthsRegex")||os.call(this),l?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=pr),this._monthsStrictRegex&&l?this._monthsStrictRegex:this._monthsRegex)}function os(){function l(j,se){return se.length-j.length}var f=[],m=[],y=[],M,A;for(M=0;M<12;M++)A=v([2e3,M]),f.push(this.monthsShort(A,"")),m.push(this.months(A,"")),y.push(this.months(A,"")),y.push(this.monthsShort(A,""));for(f.sort(l),m.sort(l),y.sort(l),M=0;M<12;M++)f[M]=kt(f[M]),m[M]=kt(m[M]);for(M=0;M<24;M++)y[M]=kt(y[M]);this._monthsRegex=new RegExp("^("+y.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+f.join("|")+")","i")}ne("Y",0,0,function(){var l=this.year();return l<=9999?de(l,4):"+"+l}),ne(0,["YY",2],0,function(){return this.year()%100}),ne(0,["YYYY",4],0,"year"),ne(0,["YYYYY",5],0,"year"),ne(0,["YYYYYY",6,!0],0,"year"),Ae("year","y"),ht("year",1),G("Y",qt),G("YY",De,nn),G("YYYY",Ar,za),G("YYYYY",qa,En),G("YYYYYY",qa,En),ye(["YYYYY","YYYYYY"],Dt),ye("YYYY",function(l,f){f[Dt]=l.length===2?t.parseTwoDigitYear(l):X(l)}),ye("YY",function(l,f){f[Dt]=t.parseTwoDigitYear(l)}),ye("Y",function(l,f){f[Dt]=parseInt(l,10)});function Ke(l){return Fr(l)?366:365}t.parseTwoDigitYear=function(l){return X(l)+(X(l)>68?1900:2e3)};var ss=H("FullYear",!0);function wt(){return Fr(this.year())}function F(l,f,m,y,M,A,j){var se;return l<100&&l>=0?(se=new Date(l+400,f,m,y,M,A,j),isFinite(se.getFullYear())&&se.setFullYear(l)):se=new Date(l,f,m,y,M,A,j),se}function mr(l){var f,m;return l<100&&l>=0?(m=Array.prototype.slice.call(arguments),m[0]=l+400,f=new Date(Date.UTC.apply(null,m)),isFinite(f.getUTCFullYear())&&f.setUTCFullYear(l)):f=new Date(Date.UTC.apply(null,arguments)),f}function et(l,f,m){var y=7+f-m,M=(7+mr(l,0,y).getUTCDay()-f)%7;return-M+y-1}function Ba(l,f,m,y,M){var A=(7+m-y)%7,j=et(l,y,M),se=1+7*(f-1)+A+j,me,Ne;return se<=0?(me=l-1,Ne=Ke(me)+se):se>Ke(l)?(me=l+1,Ne=se-Ke(l)):(me=l,Ne=se),{year:me,dayOfYear:Ne}}function ui(l,f,m){var y=et(l.year(),f,m),M=Math.floor((l.dayOfYear()-y-1)/7)+1,A,j;return M<1?(j=l.year()-1,A=M+W(j,f,m)):M>W(l.year(),f,m)?(A=M-W(l.year(),f,m),j=l.year()+1):(j=l.year(),A=M),{week:A,year:j}}function W(l,f,m){var y=et(l,f,m),M=et(l+1,f,m);return(Ke(l)-y+M)/7}ne("w",["ww",2],"wo","week"),ne("W",["WW",2],"Wo","isoWeek"),Ae("week","w"),Ae("isoWeek","W"),ht("week",5),ht("isoWeek",5),G("w",De),G("ww",De,nn),G("W",De),G("WW",De,nn),Gn(["w","ww","W","WW"],function(l,f,m,y){f[y.substr(0,1)]=X(l)});function Fp(l){return ui(l,this._week.dow,this._week.doy).week}var xt={dow:0,doy:6};function Nu(){return this._week.dow}function ls(){return this._week.doy}function Lu(l){var f=this.localeData().week(this);return l==null?f:this.add((l-f)*7,"d")}function Fu(l){var f=ui(this,1,4).week;return l==null?f:this.add((l-f)*7,"d")}ne("d",0,"do","day"),ne("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),ne("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),ne("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),ne("e",0,0,"weekday"),ne("E",0,0,"isoWeekday"),Ae("day","d"),Ae("weekday","e"),Ae("isoWeekday","E"),ht("day",11),ht("weekday",11),ht("isoWeekday",11),G("d",De),G("e",De),G("E",De),G("dd",function(l,f){return f.weekdaysMinRegex(l)}),G("ddd",function(l,f){return f.weekdaysShortRegex(l)}),G("dddd",function(l,f){return f.weekdaysRegex(l)}),Gn(["dd","ddd","dddd"],function(l,f,m,y){var M=m._locale.weekdaysParse(l,y,m._strict);M!=null?f.d=M:C(m).invalidWeekday=l}),Gn(["d","e","E"],function(l,f,m,y){f[y]=X(l)});function Ap(l,f){return typeof l!="string"?l:isNaN(l)?(l=f.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function ea(l,f){return typeof l=="string"?f.weekdaysParse(l)%7||7:isNaN(l)?null:l}function us(l,f){return l.slice(f,7).concat(l.slice(0,f))}var st="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Au="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tt=pt,cs=pt,Wu=pt;function Wp(l,f){var m=r(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(f)?"format":"standalone"];return l===!0?us(m,this._week.dow):l?m[l.day()]:m}function Yp(l){return l===!0?us(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function zp(l){return l===!0?us(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function ds(l,f,m){var y,M,A,j=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],y=0;y<7;++y)A=v([2e3,1]).day(y),this._minWeekdaysParse[y]=this.weekdaysMin(A,"").toLocaleLowerCase(),this._shortWeekdaysParse[y]=this.weekdaysShort(A,"").toLocaleLowerCase(),this._weekdaysParse[y]=this.weekdays(A,"").toLocaleLowerCase();return m?f==="dddd"?(M=Ve.call(this._weekdaysParse,j),M!==-1?M:null):f==="ddd"?(M=Ve.call(this._shortWeekdaysParse,j),M!==-1?M:null):(M=Ve.call(this._minWeekdaysParse,j),M!==-1?M:null):f==="dddd"?(M=Ve.call(this._weekdaysParse,j),M!==-1||(M=Ve.call(this._shortWeekdaysParse,j),M!==-1)?M:(M=Ve.call(this._minWeekdaysParse,j),M!==-1?M:null)):f==="ddd"?(M=Ve.call(this._shortWeekdaysParse,j),M!==-1||(M=Ve.call(this._weekdaysParse,j),M!==-1)?M:(M=Ve.call(this._minWeekdaysParse,j),M!==-1?M:null)):(M=Ve.call(this._minWeekdaysParse,j),M!==-1||(M=Ve.call(this._weekdaysParse,j),M!==-1)?M:(M=Ve.call(this._shortWeekdaysParse,j),M!==-1?M:null))}function zr(l,f,m){var y,M,A;if(this._weekdaysParseExact)return ds.call(this,l,f,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),y=0;y<7;y++){if(M=v([2e3,1]).day(y),m&&!this._fullWeekdaysParse[y]&&(this._fullWeekdaysParse[y]=new RegExp("^"+this.weekdays(M,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[y]=new RegExp("^"+this.weekdaysShort(M,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[y]=new RegExp("^"+this.weekdaysMin(M,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[y]||(A="^"+this.weekdays(M,"")+"|^"+this.weekdaysShort(M,"")+"|^"+this.weekdaysMin(M,""),this._weekdaysParse[y]=new RegExp(A.replace(".",""),"i")),m&&f==="dddd"&&this._fullWeekdaysParse[y].test(l))return y;if(m&&f==="ddd"&&this._shortWeekdaysParse[y].test(l))return y;if(m&&f==="dd"&&this._minWeekdaysParse[y].test(l))return y;if(!m&&this._weekdaysParse[y].test(l))return y}}function ta(l){if(!this.isValid())return l!=null?this:NaN;var f=this._isUTC?this._d.getUTCDay():this._d.getDay();return l!=null?(l=Ap(l,this.localeData()),this.add(l-f,"d")):f}function qp(l){if(!this.isValid())return l!=null?this:NaN;var f=(this.day()+7-this.localeData()._week.dow)%7;return l==null?f:this.add(l-f,"d")}function Yu(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var f=ea(l,this.localeData());return this.day(this.day()%7?f:f-7)}else return this.day()||7}function vr(l){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||In.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=tt),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function Va(l){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||In.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cs),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bt(l){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||In.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wu),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function In(){function l(an,Br){return Br.length-an.length}var f=[],m=[],y=[],M=[],A,j,se,me,Ne;for(A=0;A<7;A++)j=v([2e3,1]).day(A),se=kt(this.weekdaysMin(j,"")),me=kt(this.weekdaysShort(j,"")),Ne=kt(this.weekdays(j,"")),f.push(se),m.push(me),y.push(Ne),M.push(se),M.push(me),M.push(Ne);f.sort(l),m.sort(l),y.sort(l),M.sort(l),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function ci(){return this.hours()%12||12}function yr(){return this.hours()||24}ne("H",["HH",2],0,"hour"),ne("h",["hh",2],0,ci),ne("k",["kk",2],0,yr),ne("hmm",0,0,function(){return""+ci.apply(this)+de(this.minutes(),2)}),ne("hmmss",0,0,function(){return""+ci.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)}),ne("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)}),ne("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)});function Kn(l,f){ne(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),f)})}Kn("a",!0),Kn("A",!1),Ae("hour","h"),ht("hour",13);function fs(l,f){return f._meridiemParse}G("a",fs),G("A",fs),G("H",De),G("h",De),G("k",De),G("HH",De,nn),G("hh",De,nn),G("kk",De,nn),G("hmm",Cu),G("hmmss",Ou),G("Hmm",Cu),G("Hmmss",Ou),ye(["H","HH"],Xe),ye(["k","kk"],function(l,f,m){var y=X(l);f[Xe]=y===24?0:y}),ye(["a","A"],function(l,f,m){m._isPm=m._locale.isPM(l),m._meridiem=l}),ye(["h","hh"],function(l,f,m){f[Xe]=X(l),C(m).bigHour=!0}),ye("hmm",function(l,f,m){var y=l.length-2;f[Xe]=X(l.substr(0,y)),f[Ht]=X(l.substr(y)),C(m).bigHour=!0}),ye("hmmss",function(l,f,m){var y=l.length-4,M=l.length-2;f[Xe]=X(l.substr(0,y)),f[Ht]=X(l.substr(y,2)),f[Ut]=X(l.substr(M)),C(m).bigHour=!0}),ye("Hmm",function(l,f,m){var y=l.length-2;f[Xe]=X(l.substr(0,y)),f[Ht]=X(l.substr(y))}),ye("Hmmss",function(l,f,m){var y=l.length-4,M=l.length-2;f[Xe]=X(l.substr(0,y)),f[Ht]=X(l.substr(y,2)),f[Ut]=X(l.substr(M))});function zu(l){return(l+"").toLowerCase().charAt(0)==="p"}var Hp=/[ap]\.?m?\.?/i,ja=H("Hours",!0);function hs(l,f,m){return l>11?m?"pm":"PM":m?"am":"AM"}var qu={calendar:oe,longDateFormat:Ge,invalidDate:It,ordinal:cr,dayOfMonthOrdinalParse:Nt,relativeTime:dn,months:Rp,monthsShort:Pu,week:xt,weekdays:st,weekdaysMin:gr,weekdaysShort:Au,meridiemParse:Hp},qe={},na={},ra;function Up(l,f){var m,y=Math.min(l.length,f.length);for(m=0;m<y;m+=1)if(l[m]!==f[m])return m;return y}function ia(l){return l&&l.toLowerCase().replace("_","-")}function Hu(l){for(var f=0,m,y,M,A;f<l.length;){for(A=ia(l[f]).split("-"),m=A.length,y=ia(l[f+1]),y=y?y.split("-"):null;m>0;){if(M=aa(A.slice(0,m).join("-")),M)return M;if(y&&y.length>=m&&Up(A,y)>=m-1)break;m--}f++}return ra}function Uu(l){return l.match("^[^/\\\\]*$")!=null}function aa(l){var f=null,m;if(qe[l]===void 0&&typeof Uo<"u"&&Uo&&Uo.exports&&Uu(l))try{f=ra._abbr,m=N_,m("./locale/"+l),Zn(f)}catch(y){qe[l]=null}return qe[l]}function Zn(l,f){var m;return l&&(s(f)?m=Nn(l):m=$a(l,f),m?ra=m:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),ra._abbr}function $a(l,f){if(f!==null){var m,y=qu;if(f.abbr=l,qe[l]!=null)re("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),y=qe[l]._config;else if(f.parentLocale!=null)if(qe[f.parentLocale]!=null)y=qe[f.parentLocale]._config;else if(m=aa(f.parentLocale),m!=null)y=m._config;else return na[f.parentLocale]||(na[f.parentLocale]=[]),na[f.parentLocale].push({name:l,config:f}),null;return qe[l]=new ve(ge(y,f)),na[l]&&na[l].forEach(function(M){$a(M.name,M.config)}),Zn(l),qe[l]}else return delete qe[l],null}function Bu(l,f){if(f!=null){var m,y,M=qu;qe[l]!=null&&qe[l].parentLocale!=null?qe[l].set(ge(qe[l]._config,f)):(y=aa(l),y!=null&&(M=y._config),f=ge(M,f),y==null&&(f.abbr=l),m=new ve(f),m.parentLocale=qe[l],qe[l]=m),Zn(l)}else qe[l]!=null&&(qe[l].parentLocale!=null?(qe[l]=qe[l].parentLocale,l===Zn()&&Zn(l)):qe[l]!=null&&delete qe[l]);return qe[l]}function Nn(l){var f;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return ra;if(!r(l)){if(f=aa(l),f)return f;l=[l]}return Hu(l)}function Vu(){return ae(qe)}function Qa(l){var f,m=l._a;return m&&C(l).overflow===-2&&(f=m[Rn]<0||m[Rn]>11?Rn:m[rn]<1||m[rn]>Ua(m[Dt],m[Rn])?rn:m[Xe]<0||m[Xe]>24||m[Xe]===24&&(m[Ht]!==0||m[Ut]!==0||m[Yr]!==0)?Xe:m[Ht]<0||m[Ht]>59?Ht:m[Ut]<0||m[Ut]>59?Ut:m[Yr]<0||m[Yr]>999?Yr:-1,C(l)._overflowDayOfYear&&(f<Dt||f>rn)&&(f=rn),C(l)._overflowWeeks&&f===-1&&(f=Pp),C(l)._overflowWeekday&&f===-1&&(f=Tp),C(l).overflow=f),l}var ju=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bp=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$u=/Z|[+-]\d\d(?::?\d\d)?/,_r=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ps=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vp=/^\/?Date\((-?\d+)/i,jp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$p={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Qu(l){var f,m,y=l._i,M=ju.exec(y)||Bp.exec(y),A,j,se,me,Ne=_r.length,an=ps.length;if(M){for(C(l).iso=!0,f=0,m=Ne;f<m;f++)if(_r[f][1].exec(M[1])){j=_r[f][0],A=_r[f][2]!==!1;break}if(j==null){l._isValid=!1;return}if(M[3]){for(f=0,m=an;f<m;f++)if(ps[f][1].exec(M[3])){se=(M[2]||" ")+ps[f][0];break}if(se==null){l._isValid=!1;return}}if(!A&&se!=null){l._isValid=!1;return}if(M[4])if($u.exec(M[4]))me="Z";else{l._isValid=!1;return}l._f=j+(se||"")+(me||""),gs(l)}else l._isValid=!1}function Qp(l,f,m,y,M,A){var j=[Gp(l),Pu.indexOf(f),parseInt(m,10),parseInt(y,10),parseInt(M,10)];return A&&j.push(parseInt(A,10)),j}function Gp(l){var f=parseInt(l,10);return f<=49?2e3+f:f<=999?1900+f:f}function Xp(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kp(l,f,m){if(l){var y=Au.indexOf(l),M=new Date(f[0],f[1],f[2]).getDay();if(y!==M)return C(m).weekdayMismatch=!0,m._isValid=!1,!1}return!0}function Zp(l,f,m){if(l)return $p[l];if(f)return 0;var y=parseInt(m,10),M=y%100,A=(y-M)/100;return A*60+M}function Gu(l){var f=jp.exec(Xp(l._i)),m;if(f){if(m=Qp(f[4],f[3],f[2],f[5],f[6],f[7]),!Kp(f[1],m,l))return;l._a=m,l._tzm=Zp(f[8],f[9],f[10]),l._d=mr.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),C(l).rfc2822=!0}else l._isValid=!1}function Jp(l){var f=Vp.exec(l._i);if(f!==null){l._d=new Date(+f[1]);return}if(Qu(l),l._isValid===!1)delete l._isValid;else return;if(Gu(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:t.createFromInputFallback(l)}t.createFromInputFallback=B("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function di(l,f,m){return l!=null?l:f!=null?f:m}function em(l){var f=new Date(t.now());return l._useUTC?[f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()]:[f.getFullYear(),f.getMonth(),f.getDate()]}function ms(l){var f,m,y=[],M,A,j;if(!l._d){for(M=em(l),l._w&&l._a[rn]==null&&l._a[Rn]==null&&Xu(l),l._dayOfYear!=null&&(j=di(l._a[Dt],M[Dt]),(l._dayOfYear>Ke(j)||l._dayOfYear===0)&&(C(l)._overflowDayOfYear=!0),m=mr(j,0,l._dayOfYear),l._a[Rn]=m.getUTCMonth(),l._a[rn]=m.getUTCDate()),f=0;f<3&&l._a[f]==null;++f)l._a[f]=y[f]=M[f];for(;f<7;f++)l._a[f]=y[f]=l._a[f]==null?f===2?1:0:l._a[f];l._a[Xe]===24&&l._a[Ht]===0&&l._a[Ut]===0&&l._a[Yr]===0&&(l._nextDay=!0,l._a[Xe]=0),l._d=(l._useUTC?mr:F).apply(null,y),A=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[Xe]=24),l._w&&typeof l._w.d<"u"&&l._w.d!==A&&(C(l).weekdayMismatch=!0)}}function Xu(l){var f,m,y,M,A,j,se,me,Ne;f=l._w,f.GG!=null||f.W!=null||f.E!=null?(A=1,j=4,m=di(f.GG,l._a[Dt],ui(We(),1,4).year),y=di(f.W,1),M=di(f.E,1),(M<1||M>7)&&(me=!0)):(A=l._locale._week.dow,j=l._locale._week.doy,Ne=ui(We(),A,j),m=di(f.gg,l._a[Dt],Ne.year),y=di(f.w,Ne.week),f.d!=null?(M=f.d,(M<0||M>6)&&(me=!0)):f.e!=null?(M=f.e+A,(f.e<0||f.e>6)&&(me=!0)):M=A),y<1||y>W(m,A,j)?C(l)._overflowWeeks=!0:me!=null?C(l)._overflowWeekday=!0:(se=Ba(m,y,M,A,j),l._a[Dt]=se.year,l._dayOfYear=se.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function gs(l){if(l._f===t.ISO_8601){Qu(l);return}if(l._f===t.RFC_2822){Gu(l);return}l._a=[],C(l).empty=!0;var f=""+l._i,m,y,M,A,j,se=f.length,me=0,Ne,an;for(M=dt(l._f,l._locale).match(Te)||[],an=M.length,m=0;m<an;m++)A=M[m],y=(f.match(is(A,l))||[])[0],y&&(j=f.substr(0,f.indexOf(y)),j.length>0&&C(l).unusedInput.push(j),f=f.slice(f.indexOf(y)+y.length),me+=y.length),Ee[A]?(y?C(l).empty=!1:C(l).unusedTokens.push(A),Ha(A,y,l)):l._strict&&!y&&C(l).unusedTokens.push(A);C(l).charsLeftOver=se-me,f.length>0&&C(l).unusedInput.push(f),l._a[Xe]<=12&&C(l).bigHour===!0&&l._a[Xe]>0&&(C(l).bigHour=void 0),C(l).parsedDateParts=l._a.slice(0),C(l).meridiem=l._meridiem,l._a[Xe]=tm(l._locale,l._a[Xe],l._meridiem),Ne=C(l).era,Ne!==null&&(l._a[Dt]=l._locale.erasConvertYear(Ne,l._a[Dt])),ms(l),Qa(l)}function tm(l,f,m){var y;return m==null?f:l.meridiemHour!=null?l.meridiemHour(f,m):(l.isPM!=null&&(y=l.isPM(m),y&&f<12&&(f+=12),!y&&f===12&&(f=0)),f)}function Ku(l){var f,m,y,M,A,j,se=!1,me=l._f.length;if(me===0){C(l).invalidFormat=!0,l._d=new Date(NaN);return}for(M=0;M<me;M++)A=0,j=!1,f=E({},l),l._useUTC!=null&&(f._useUTC=l._useUTC),f._f=l._f[M],gs(f),w(f)&&(j=!0),A+=C(f).charsLeftOver,A+=C(f).unusedTokens.length*10,C(f).score=A,se?A<y&&(y=A,m=f):(y==null||A<y||j)&&(y=A,m=f,j&&(se=!0));g(l,m||f)}function nm(l){if(!l._d){var f=zt(l._i),m=f.day===void 0?f.date:f.day;l._a=p([f.year,f.month,m,f.hour,f.minute,f.second,f.millisecond],function(y){return y&&parseInt(y,10)}),ms(l)}}function rm(l){var f=new L(Qa(vs(l)));return f._nextDay&&(f.add(1,"d"),f._nextDay=void 0),f}function vs(l){var f=l._i,m=l._f;return l._locale=l._locale||Nn(l._l),f===null||m===void 0&&f===""?_({nullInput:!0}):(typeof f=="string"&&(l._i=f=l._locale.preparse(f)),Y(f)?new L(Qa(f)):(d(f)?l._d=f:r(m)?Ku(l):m?gs(l):im(l),w(l)||(l._d=null),l))}function im(l){var f=l._i;s(f)?l._d=new Date(t.now()):d(f)?l._d=new Date(f.valueOf()):typeof f=="string"?Jp(l):r(f)?(l._a=p(f.slice(0),function(m){return parseInt(m,10)}),ms(l)):i(f)?nm(l):u(f)?l._d=new Date(f):t.createFromInputFallback(l)}function Zu(l,f,m,y,M){var A={};return(f===!0||f===!1)&&(y=f,f=void 0),(m===!0||m===!1)&&(y=m,m=void 0),(i(l)&&o(l)||r(l)&&l.length===0)&&(l=void 0),A._isAMomentObject=!0,A._useUTC=A._isUTC=M,A._l=m,A._i=l,A._f=f,A._strict=y,rm(A)}function We(l,f,m,y){return Zu(l,f,m,y,!1)}var Ju=B("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=We.apply(null,arguments);return this.isValid()&&l.isValid()?l<this?this:l:_()}),am=B("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=We.apply(null,arguments);return this.isValid()&&l.isValid()?l>this?this:l:_()});function Ga(l,f){var m,y;if(f.length===1&&r(f[0])&&(f=f[0]),!f.length)return We();for(m=f[0],y=1;y<f.length;++y)(!f[y].isValid()||f[y][l](m))&&(m=f[y]);return m}function om(){var l=[].slice.call(arguments,0);return Ga("isBefore",l)}function sm(){var l=[].slice.call(arguments,0);return Ga("isAfter",l)}var ys=function(){return Date.now?Date.now():+new Date},R=["year","quarter","month","week","day","hour","minute","second","millisecond"];function P(l){var f,m=!1,y,M=R.length;for(f in l)if(a(l,f)&&!(Ve.call(R,f)!==-1&&(l[f]==null||!isNaN(l[f]))))return!1;for(y=0;y<M;++y)if(l[R[y]]){if(m)return!1;parseFloat(l[R[y]])!==X(l[R[y]])&&(m=!0)}return!0}function I(){return this._isValid}function h(){return er(NaN)}function c(l){var f=zt(l),m=f.year||0,y=f.quarter||0,M=f.month||0,A=f.week||f.isoWeek||0,j=f.day||0,se=f.hour||0,me=f.minute||0,Ne=f.second||0,an=f.millisecond||0;this._isValid=P(f),this._milliseconds=+an+Ne*1e3+me*6e4+se*1e3*60*60,this._days=+j+A*7,this._months=+M+y*3+m*12,this._data={},this._locale=Nn(),this._bubble()}function k(l){return l instanceof c}function N(l){return l<0?Math.round(-1*l)*-1:Math.round(l)}function b(l,f,m){var y=Math.min(l.length,f.length),M=Math.abs(l.length-f.length),A=0,j;for(j=0;j<y;j++)(m&&l[j]!==f[j]||!m&&X(l[j])!==X(f[j]))&&A++;return A+M}function T(l,f){ne(l,0,0,function(){var m=this.utcOffset(),y="+";return m<0&&(m=-m,y="-"),y+de(~~(m/60),2)+f+de(~~m%60,2)})}T("Z",":"),T("ZZ",""),G("Z",Ki),G("ZZ",Ki),ye(["Z","ZZ"],function(l,f,m){m._useUTC=!0,m._tzm=U(Ki,l)});var z=/([\+\-]|\d\d)/gi;function U(l,f){var m=(f||"").match(l),y,M,A;return m===null?null:(y=m[m.length-1]||[],M=(y+"").match(z)||["-",0,0],A=+(M[1]*60)+X(M[2]),A===0?0:M[0]==="+"?A:-A)}function Q(l,f){var m,y;return f._isUTC?(m=f.clone(),y=(Y(l)||d(l)?l.valueOf():We(l).valueOf())-m.valueOf(),m._d.setTime(m._d.valueOf()+y),t.updateOffset(m,!1),m):We(l).local()}function ee(l){return-Math.round(l._d.getTimezoneOffset())}t.updateOffset=function(){};function he(l,f,m){var y=this._offset||0,M;if(!this.isValid())return l!=null?this:NaN;if(l!=null){if(typeof l=="string"){if(l=U(Ki,l),l===null)return this}else Math.abs(l)<16&&!m&&(l=l*60);return!this._isUTC&&f&&(M=ee(this)),this._offset=l,this._isUTC=!0,M!=null&&this.add(M,"m"),y!==l&&(!f||this._changeInProgress?g_(this,er(l-y,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?y:ee(this)}function fe(l,f){return l!=null?(typeof l!="string"&&(l=-l),this.utcOffset(l,f),this):-this.utcOffset()}function Ie(l){return this.utcOffset(0,l)}function _e(l){return this._isUTC&&(this.utcOffset(0,l),this._isUTC=!1,l&&this.subtract(ee(this),"m")),this}function Vt(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var l=U(Dp,this._i);l!=null?this.utcOffset(l):this.utcOffset(0,!0)}return this}function jt(l){return this.isValid()?(l=l?We(l).utcOffset():0,(this.utcOffset()-l)%60===0):!1}function $t(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function mt(){if(!s(this._isDSTShifted))return this._isDSTShifted;var l={},f;return E(l,this),l=vs(l),l._a?(f=l._isUTC?v(l._a):We(l._a),this._isDSTShifted=this.isValid()&&b(l._a,f.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xn(){return this.isValid()?!this._isUTC:!1}function Jn(){return this.isValid()?this._isUTC:!1}function wr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aT=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oT=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function er(l,f){var m=l,y=null,M,A,j;return k(l)?m={ms:l._milliseconds,d:l._days,M:l._months}:u(l)||!isNaN(+l)?(m={},f?m[f]=+l:m.milliseconds=+l):(y=aT.exec(l))?(M=y[1]==="-"?-1:1,m={y:0,d:X(y[rn])*M,h:X(y[Xe])*M,m:X(y[Ht])*M,s:X(y[Ut])*M,ms:X(N(y[Yr]*1e3))*M}):(y=oT.exec(l))?(M=y[1]==="-"?-1:1,m={y:oa(y[2],M),M:oa(y[3],M),w:oa(y[4],M),d:oa(y[5],M),h:oa(y[6],M),m:oa(y[7],M),s:oa(y[8],M)}):m==null?m={}:typeof m=="object"&&("from"in m||"to"in m)&&(j=sT(We(m.from),We(m.to)),m={},m.ms=j.milliseconds,m.M=j.months),A=new c(m),k(l)&&a(l,"_locale")&&(A._locale=l._locale),k(l)&&a(l,"_isValid")&&(A._isValid=l._isValid),A}er.fn=c.prototype,er.invalid=h;function oa(l,f){var m=l&&parseFloat(l.replace(",","."));return(isNaN(m)?0:m)*f}function p_(l,f){var m={};return m.months=f.month()-l.month()+(f.year()-l.year())*12,l.clone().add(m.months,"M").isAfter(f)&&--m.months,m.milliseconds=+f-+l.clone().add(m.months,"M"),m}function sT(l,f){var m;return l.isValid()&&f.isValid()?(f=Q(f,l),l.isBefore(f)?m=p_(l,f):(m=p_(f,l),m.milliseconds=-m.milliseconds,m.months=-m.months),m):{milliseconds:0,months:0}}function m_(l,f){return function(m,y){var M,A;return y!==null&&!isNaN(+y)&&(re(f,"moment()."+f+"(period, number) is deprecated. Please use moment()."+f+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),A=m,m=y,y=A),M=er(m,y),g_(this,M,l),this}}function g_(l,f,m,y){var M=f._milliseconds,A=N(f._days),j=N(f._months);!l.isValid()||(y=y==null?!0:y,j&&Eu(l,Mt(l,"Month")+j*m),A&&rs(l,"Date",Mt(l,"Date")+A*m),M&&l._d.setTime(l._d.valueOf()+M*m),y&&t.updateOffset(l,A||j))}var lT=m_(1,"add"),uT=m_(-1,"subtract");function v_(l){return typeof l=="string"||l instanceof String}function cT(l){return Y(l)||d(l)||v_(l)||u(l)||fT(l)||dT(l)||l===null||l===void 0}function dT(l){var f=i(l)&&!o(l),m=!1,y=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],M,A,j=y.length;for(M=0;M<j;M+=1)A=y[M],m=m||a(l,A);return f&&m}function fT(l){var f=r(l),m=!1;return f&&(m=l.filter(function(y){return!u(y)&&v_(l)}).length===0),f&&m}function hT(l){var f=i(l)&&!o(l),m=!1,y=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],M,A;for(M=0;M<y.length;M+=1)A=y[M],m=m||a(l,A);return f&&m}function pT(l,f){var m=l.diff(f,"days",!0);return m<-6?"sameElse":m<-1?"lastWeek":m<0?"lastDay":m<1?"sameDay":m<2?"nextDay":m<7?"nextWeek":"sameElse"}function mT(l,f){arguments.length===1&&(arguments[0]?cT(arguments[0])?(l=arguments[0],f=void 0):hT(arguments[0])&&(f=arguments[0],l=void 0):(l=void 0,f=void 0));var m=l||We(),y=Q(m,this).startOf("day"),M=t.calendarFormat(this,y)||"sameElse",A=f&&(J(f[M])?f[M].call(this,m):f[M]);return this.format(A||this.localeData().calendar(M,this,We(m)))}function gT(){return new L(this)}function vT(l,f){var m=Y(l)?l:We(l);return this.isValid()&&m.isValid()?(f=ze(f)||"millisecond",f==="millisecond"?this.valueOf()>m.valueOf():m.valueOf()<this.clone().startOf(f).valueOf()):!1}function yT(l,f){var m=Y(l)?l:We(l);return this.isValid()&&m.isValid()?(f=ze(f)||"millisecond",f==="millisecond"?this.valueOf()<m.valueOf():this.clone().endOf(f).valueOf()<m.valueOf()):!1}function _T(l,f,m,y){var M=Y(l)?l:We(l),A=Y(f)?f:We(f);return this.isValid()&&M.isValid()&&A.isValid()?(y=y||"()",(y[0]==="("?this.isAfter(M,m):!this.isBefore(M,m))&&(y[1]===")"?this.isBefore(A,m):!this.isAfter(A,m))):!1}function wT(l,f){var m=Y(l)?l:We(l),y;return this.isValid()&&m.isValid()?(f=ze(f)||"millisecond",f==="millisecond"?this.valueOf()===m.valueOf():(y=m.valueOf(),this.clone().startOf(f).valueOf()<=y&&y<=this.clone().endOf(f).valueOf())):!1}function xT(l,f){return this.isSame(l,f)||this.isAfter(l,f)}function bT(l,f){return this.isSame(l,f)||this.isBefore(l,f)}function ST(l,f,m){var y,M,A;if(!this.isValid())return NaN;if(y=Q(l,this),!y.isValid())return NaN;switch(M=(y.utcOffset()-this.utcOffset())*6e4,f=ze(f),f){case"year":A=ec(this,y)/12;break;case"month":A=ec(this,y);break;case"quarter":A=ec(this,y)/3;break;case"second":A=(this-y)/1e3;break;case"minute":A=(this-y)/6e4;break;case"hour":A=(this-y)/36e5;break;case"day":A=(this-y-M)/864e5;break;case"week":A=(this-y-M)/6048e5;break;default:A=this-y}return m?A:St(A)}function ec(l,f){if(l.date()<f.date())return-ec(f,l);var m=(f.year()-l.year())*12+(f.month()-l.month()),y=l.clone().add(m,"months"),M,A;return f-y<0?(M=l.clone().add(m-1,"months"),A=(f-y)/(y-M)):(M=l.clone().add(m+1,"months"),A=(f-y)/(M-y)),-(m+A)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function MT(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function kT(l){if(!this.isValid())return null;var f=l!==!0,m=f?this.clone().utc():this;return m.year()<0||m.year()>9999?cn(m,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):J(Date.prototype.toISOString)?f?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",cn(m,"Z")):cn(m,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function DT(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",f="",m,y,M,A;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",f="Z"),m="["+l+'("]',y=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",M="-MM-DD[T]HH:mm:ss.SSS",A=f+'[")]',this.format(m+y+M+A)}function CT(l){l||(l=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var f=cn(this,l);return this.localeData().postformat(f)}function OT(l,f){return this.isValid()&&(Y(l)&&l.isValid()||We(l).isValid())?er({to:this,from:l}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function PT(l){return this.from(We(),l)}function TT(l,f){return this.isValid()&&(Y(l)&&l.isValid()||We(l).isValid())?er({from:this,to:l}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function ET(l){return this.to(We(),l)}function y_(l){var f;return l===void 0?this._locale._abbr:(f=Nn(l),f!=null&&(this._locale=f),this)}var __=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function w_(){return this._locale}var tc=1e3,Xa=60*tc,nc=60*Xa,x_=(365*400+97)*24*nc;function Ka(l,f){return(l%f+f)%f}function b_(l,f,m){return l<100&&l>=0?new Date(l+400,f,m)-x_:new Date(l,f,m).valueOf()}function S_(l,f,m){return l<100&&l>=0?Date.UTC(l+400,f,m)-x_:Date.UTC(l,f,m)}function RT(l){var f,m;if(l=ze(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?S_:b_,l){case"year":f=m(this.year(),0,1);break;case"quarter":f=m(this.year(),this.month()-this.month()%3,1);break;case"month":f=m(this.year(),this.month(),1);break;case"week":f=m(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":f=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":f=m(this.year(),this.month(),this.date());break;case"hour":f=this._d.valueOf(),f-=Ka(f+(this._isUTC?0:this.utcOffset()*Xa),nc);break;case"minute":f=this._d.valueOf(),f-=Ka(f,Xa);break;case"second":f=this._d.valueOf(),f-=Ka(f,tc);break}return this._d.setTime(f),t.updateOffset(this,!0),this}function IT(l){var f,m;if(l=ze(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?S_:b_,l){case"year":f=m(this.year()+1,0,1)-1;break;case"quarter":f=m(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":f=m(this.year(),this.month()+1,1)-1;break;case"week":f=m(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":f=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":f=m(this.year(),this.month(),this.date()+1)-1;break;case"hour":f=this._d.valueOf(),f+=nc-Ka(f+(this._isUTC?0:this.utcOffset()*Xa),nc)-1;break;case"minute":f=this._d.valueOf(),f+=Xa-Ka(f,Xa)-1;break;case"second":f=this._d.valueOf(),f+=tc-Ka(f,tc)-1;break}return this._d.setTime(f),t.updateOffset(this,!0),this}function NT(){return this._d.valueOf()-(this._offset||0)*6e4}function LT(){return Math.floor(this.valueOf()/1e3)}function FT(){return new Date(this.valueOf())}function AT(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function WT(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function YT(){return this.isValid()?this.toISOString():null}function zT(){return w(this)}function qT(){return g({},C(this))}function HT(){return C(this).overflow}function UT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ne("N",0,0,"eraAbbr"),ne("NN",0,0,"eraAbbr"),ne("NNN",0,0,"eraAbbr"),ne("NNNN",0,0,"eraName"),ne("NNNNN",0,0,"eraNarrow"),ne("y",["y",1],"yo","eraYear"),ne("y",["yy",2],0,"eraYear"),ne("y",["yyy",3],0,"eraYear"),ne("y",["yyyy",4],0,"eraYear"),G("N",lm),G("NN",lm),G("NNN",lm),G("NNNN",eE),G("NNNNN",tE),ye(["N","NN","NNN","NNNN","NNNNN"],function(l,f,m,y){var M=m._locale.erasParse(l,y,m._strict);M?C(m).era=M:C(m).invalidEra=l}),G("y",Pt),G("yy",Pt),G("yyy",Pt),G("yyyy",Pt),G("yo",nE),ye(["y","yy","yyy","yyyy"],Dt),ye(["yo"],function(l,f,m,y){var M;m._locale._eraYearOrdinalRegex&&(M=l.match(m._locale._eraYearOrdinalRegex)),m._locale.eraYearOrdinalParse?f[Dt]=m._locale.eraYearOrdinalParse(l,M):f[Dt]=parseInt(l,10)});function BT(l,f){var m,y,M,A=this._eras||Nn("en")._eras;for(m=0,y=A.length;m<y;++m){switch(typeof A[m].since){case"string":M=t(A[m].since).startOf("day"),A[m].since=M.valueOf();break}switch(typeof A[m].until){case"undefined":A[m].until=1/0;break;case"string":M=t(A[m].until).startOf("day").valueOf(),A[m].until=M.valueOf();break}}return A}function VT(l,f,m){var y,M,A=this.eras(),j,se,me;for(l=l.toUpperCase(),y=0,M=A.length;y<M;++y)if(j=A[y].name.toUpperCase(),se=A[y].abbr.toUpperCase(),me=A[y].narrow.toUpperCase(),m)switch(f){case"N":case"NN":case"NNN":if(se===l)return A[y];break;case"NNNN":if(j===l)return A[y];break;case"NNNNN":if(me===l)return A[y];break}else if([j,se,me].indexOf(l)>=0)return A[y]}function jT(l,f){var m=l.since<=l.until?1:-1;return f===void 0?t(l.since).year():t(l.since).year()+(f-l.offset)*m}function $T(){var l,f,m,y=this.localeData().eras();for(l=0,f=y.length;l<f;++l)if(m=this.clone().startOf("day").valueOf(),y[l].since<=m&&m<=y[l].until||y[l].until<=m&&m<=y[l].since)return y[l].name;return""}function QT(){var l,f,m,y=this.localeData().eras();for(l=0,f=y.length;l<f;++l)if(m=this.clone().startOf("day").valueOf(),y[l].since<=m&&m<=y[l].until||y[l].until<=m&&m<=y[l].since)return y[l].narrow;return""}function GT(){var l,f,m,y=this.localeData().eras();for(l=0,f=y.length;l<f;++l)if(m=this.clone().startOf("day").valueOf(),y[l].since<=m&&m<=y[l].until||y[l].until<=m&&m<=y[l].since)return y[l].abbr;return""}function XT(){var l,f,m,y,M=this.localeData().eras();for(l=0,f=M.length;l<f;++l)if(m=M[l].since<=M[l].until?1:-1,y=this.clone().startOf("day").valueOf(),M[l].since<=y&&y<=M[l].until||M[l].until<=y&&y<=M[l].since)return(this.year()-t(M[l].since).year())*m+M[l].offset;return this.year()}function KT(l){return a(this,"_erasNameRegex")||um.call(this),l?this._erasNameRegex:this._erasRegex}function ZT(l){return a(this,"_erasAbbrRegex")||um.call(this),l?this._erasAbbrRegex:this._erasRegex}function JT(l){return a(this,"_erasNarrowRegex")||um.call(this),l?this._erasNarrowRegex:this._erasRegex}function lm(l,f){return f.erasAbbrRegex(l)}function eE(l,f){return f.erasNameRegex(l)}function tE(l,f){return f.erasNarrowRegex(l)}function nE(l,f){return f._eraYearOrdinalRegex||Pt}function um(){var l=[],f=[],m=[],y=[],M,A,j=this.eras();for(M=0,A=j.length;M<A;++M)f.push(kt(j[M].name)),l.push(kt(j[M].abbr)),m.push(kt(j[M].narrow)),y.push(kt(j[M].name)),y.push(kt(j[M].abbr)),y.push(kt(j[M].narrow));this._erasRegex=new RegExp("^("+y.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+f.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+m.join("|")+")","i")}ne(0,["gg",2],0,function(){return this.weekYear()%100}),ne(0,["GG",2],0,function(){return this.isoWeekYear()%100});function rc(l,f){ne(0,[l,l.length],0,f)}rc("gggg","weekYear"),rc("ggggg","weekYear"),rc("GGGG","isoWeekYear"),rc("GGGGG","isoWeekYear"),Ae("weekYear","gg"),Ae("isoWeekYear","GG"),ht("weekYear",1),ht("isoWeekYear",1),G("G",qt),G("g",qt),G("GG",De,nn),G("gg",De,nn),G("GGGG",Ar,za),G("gggg",Ar,za),G("GGGGG",qa,En),G("ggggg",qa,En),Gn(["gggg","ggggg","GGGG","GGGGG"],function(l,f,m,y){f[y.substr(0,2)]=X(l)}),Gn(["gg","GG"],function(l,f,m,y){f[y]=t.parseTwoDigitYear(l)});function rE(l){return M_.call(this,l,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function iE(l){return M_.call(this,l,this.isoWeek(),this.isoWeekday(),1,4)}function aE(){return W(this.year(),1,4)}function oE(){return W(this.isoWeekYear(),1,4)}function sE(){var l=this.localeData()._week;return W(this.year(),l.dow,l.doy)}function lE(){var l=this.localeData()._week;return W(this.weekYear(),l.dow,l.doy)}function M_(l,f,m,y,M){var A;return l==null?ui(this,y,M).year:(A=W(l,y,M),f>A&&(f=A),uE.call(this,l,f,m,y,M))}function uE(l,f,m,y,M){var A=Ba(l,f,m,y,M),j=mr(A.year,0,A.dayOfYear);return this.year(j.getUTCFullYear()),this.month(j.getUTCMonth()),this.date(j.getUTCDate()),this}ne("Q",0,"Qo","quarter"),Ae("quarter","Q"),ht("quarter",7),G("Q",Ya),ye("Q",function(l,f){f[Rn]=(X(l)-1)*3});function cE(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}ne("D",["DD",2],"Do","date"),Ae("date","D"),ht("date",9),G("D",De),G("DD",De,nn),G("Do",function(l,f){return l?f._dayOfMonthOrdinalParse||f._ordinalParse:f._dayOfMonthOrdinalParseLenient}),ye(["D","DD"],rn),ye("Do",function(l,f){f[rn]=X(l.match(De)[0])});var k_=H("Date",!0);ne("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("dayOfYear","DDD"),ht("dayOfYear",4),G("DDD",hr),G("DDDD",Xi),ye(["DDD","DDDD"],function(l,f,m){m._dayOfYear=X(l)});function dE(l){var f=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?f:this.add(l-f,"d")}ne("m",["mm",2],0,"minute"),Ae("minute","m"),ht("minute",14),G("m",De),G("mm",De,nn),ye(["m","mm"],Ht);var fE=H("Minutes",!1);ne("s",["ss",2],0,"second"),Ae("second","s"),ht("second",15),G("s",De),G("ss",De,nn),ye(["s","ss"],Ut);var hE=H("Seconds",!1);ne("S",0,0,function(){return~~(this.millisecond()/100)}),ne(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ne(0,["SSS",3],0,"millisecond"),ne(0,["SSSS",4],0,function(){return this.millisecond()*10}),ne(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ne(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ne(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ne(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ne(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("millisecond","ms"),ht("millisecond",16),G("S",hr,Ya),G("SS",hr,nn),G("SSS",hr,Xi);var fi,D_;for(fi="SSSS";fi.length<=9;fi+="S")G(fi,Pt);function pE(l,f){f[Yr]=X(("0."+l)*1e3)}for(fi="S";fi.length<=9;fi+="S")ye(fi,pE);D_=H("Milliseconds",!1),ne("z",0,0,"zoneAbbr"),ne("zz",0,0,"zoneName");function mE(){return this._isUTC?"UTC":""}function gE(){return this._isUTC?"Coordinated Universal Time":""}var K=L.prototype;K.add=lT,K.calendar=mT,K.clone=gT,K.diff=ST,K.endOf=IT,K.format=CT,K.from=OT,K.fromNow=PT,K.to=TT,K.toNow=ET,K.get=kp,K.invalidAt=HT,K.isAfter=vT,K.isBefore=yT,K.isBetween=_T,K.isSame=wT,K.isSameOrAfter=xT,K.isSameOrBefore=bT,K.isValid=zT,K.lang=__,K.locale=y_,K.localeData=w_,K.max=am,K.min=Ju,K.parsingFlags=qT,K.set=Du,K.startOf=RT,K.subtract=uT,K.toArray=AT,K.toObject=WT,K.toDate=FT,K.toISOString=kT,K.inspect=DT,typeof Symbol<"u"&&Symbol.for!=null&&(K[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),K.toJSON=YT,K.toString=MT,K.unix=LT,K.valueOf=NT,K.creationData=UT,K.eraName=$T,K.eraNarrow=QT,K.eraAbbr=GT,K.eraYear=XT,K.year=ss,K.isLeapYear=wt,K.weekYear=rE,K.isoWeekYear=iE,K.quarter=K.quarters=cE,K.month=Ji,K.daysInMonth=Lp,K.week=K.weeks=Lu,K.isoWeek=K.isoWeeks=Fu,K.weeksInYear=sE,K.weeksInWeekYear=lE,K.isoWeeksInYear=aE,K.isoWeeksInISOWeekYear=oE,K.date=k_,K.day=K.days=ta,K.weekday=qp,K.isoWeekday=Yu,K.dayOfYear=dE,K.hour=K.hours=ja,K.minute=K.minutes=fE,K.second=K.seconds=hE,K.millisecond=K.milliseconds=D_,K.utcOffset=he,K.utc=Ie,K.local=_e,K.parseZone=Vt,K.hasAlignedHourOffset=jt,K.isDST=$t,K.isLocal=xn,K.isUtcOffset=Jn,K.isUtc=wr,K.isUTC=wr,K.zoneAbbr=mE,K.zoneName=gE,K.dates=B("dates accessor is deprecated. Use date instead.",k_),K.months=B("months accessor is deprecated. Use month instead",Ji),K.years=B("years accessor is deprecated. Use year instead",ss),K.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fe),K.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",mt);function vE(l){return We(l*1e3)}function yE(){return We.apply(null,arguments).parseZone()}function C_(l){return l}var ke=ve.prototype;ke.calendar=pe,ke.longDateFormat=_t,ke.invalidDate=Tn,ke.ordinal=ft,ke.preparse=C_,ke.postformat=C_,ke.relativeTime=Lt,ke.pastFuture=dr,ke.set=ue,ke.eras=BT,ke.erasParse=VT,ke.erasConvertYear=jT,ke.erasAbbrRegex=ZT,ke.erasNameRegex=KT,ke.erasNarrowRegex=JT,ke.months=Xn,ke.monthsShort=Zi,ke.monthsParse=as,ke.monthsRegex=Iu,ke.monthsShortRegex=Ru,ke.week=Fp,ke.firstDayOfYear=ls,ke.firstDayOfWeek=Nu,ke.weekdays=Wp,ke.weekdaysMin=zp,ke.weekdaysShort=Yp,ke.weekdaysParse=zr,ke.weekdaysRegex=vr,ke.weekdaysShortRegex=Va,ke.weekdaysMinRegex=Bt,ke.isPM=zu,ke.meridiem=hs;function ic(l,f,m,y){var M=Nn(),A=v().set(y,f);return M[m](A,l)}function O_(l,f,m){if(u(l)&&(f=l,l=void 0),l=l||"",f!=null)return ic(l,f,m,"month");var y,M=[];for(y=0;y<12;y++)M[y]=ic(l,y,m,"month");return M}function cm(l,f,m,y){typeof l=="boolean"?(u(f)&&(m=f,f=void 0),f=f||""):(f=l,m=f,l=!1,u(f)&&(m=f,f=void 0),f=f||"");var M=Nn(),A=l?M._week.dow:0,j,se=[];if(m!=null)return ic(f,(m+A)%7,y,"day");for(j=0;j<7;j++)se[j]=ic(f,(j+A)%7,y,"day");return se}function _E(l,f){return O_(l,f,"months")}function wE(l,f){return O_(l,f,"monthsShort")}function xE(l,f,m){return cm(l,f,m,"weekdays")}function bE(l,f,m){return cm(l,f,m,"weekdaysShort")}function SE(l,f,m){return cm(l,f,m,"weekdaysMin")}Zn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(l){var f=l%10,m=X(l%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th";return l+m}}),t.lang=B("moment.lang is deprecated. Use moment.locale instead.",Zn),t.langData=B("moment.langData is deprecated. Use moment.localeData instead.",Nn);var qr=Math.abs;function ME(){var l=this._data;return this._milliseconds=qr(this._milliseconds),this._days=qr(this._days),this._months=qr(this._months),l.milliseconds=qr(l.milliseconds),l.seconds=qr(l.seconds),l.minutes=qr(l.minutes),l.hours=qr(l.hours),l.months=qr(l.months),l.years=qr(l.years),this}function P_(l,f,m,y){var M=er(f,m);return l._milliseconds+=y*M._milliseconds,l._days+=y*M._days,l._months+=y*M._months,l._bubble()}function kE(l,f){return P_(this,l,f,1)}function DE(l,f){return P_(this,l,f,-1)}function T_(l){return l<0?Math.floor(l):Math.ceil(l)}function CE(){var l=this._milliseconds,f=this._days,m=this._months,y=this._data,M,A,j,se,me;return l>=0&&f>=0&&m>=0||l<=0&&f<=0&&m<=0||(l+=T_(dm(m)+f)*864e5,f=0,m=0),y.milliseconds=l%1e3,M=St(l/1e3),y.seconds=M%60,A=St(M/60),y.minutes=A%60,j=St(A/60),y.hours=j%24,f+=St(j/24),me=St(E_(f)),m+=me,f-=T_(dm(me)),se=St(m/12),m%=12,y.days=f,y.months=m,y.years=se,this}function E_(l){return l*4800/146097}function dm(l){return l*146097/4800}function OE(l){if(!this.isValid())return NaN;var f,m,y=this._milliseconds;if(l=ze(l),l==="month"||l==="quarter"||l==="year")switch(f=this._days+y/864e5,m=this._months+E_(f),l){case"month":return m;case"quarter":return m/3;case"year":return m/12}else switch(f=this._days+Math.round(dm(this._months)),l){case"week":return f/7+y/6048e5;case"day":return f+y/864e5;case"hour":return f*24+y/36e5;case"minute":return f*1440+y/6e4;case"second":return f*86400+y/1e3;case"millisecond":return Math.floor(f*864e5)+y;default:throw new Error("Unknown unit "+l)}}function PE(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+X(this._months/12)*31536e6:NaN}function Hr(l){return function(){return this.as(l)}}var TE=Hr("ms"),EE=Hr("s"),RE=Hr("m"),IE=Hr("h"),NE=Hr("d"),LE=Hr("w"),FE=Hr("M"),AE=Hr("Q"),WE=Hr("y");function YE(){return er(this)}function zE(l){return l=ze(l),this.isValid()?this[l+"s"]():NaN}function sa(l){return function(){return this.isValid()?this._data[l]:NaN}}var qE=sa("milliseconds"),HE=sa("seconds"),UE=sa("minutes"),BE=sa("hours"),VE=sa("days"),jE=sa("months"),$E=sa("years");function QE(){return St(this.days()/7)}var Ur=Math.round,Za={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function GE(l,f,m,y,M){return M.relativeTime(f||1,!!m,l,y)}function XE(l,f,m,y){var M=er(l).abs(),A=Ur(M.as("s")),j=Ur(M.as("m")),se=Ur(M.as("h")),me=Ur(M.as("d")),Ne=Ur(M.as("M")),an=Ur(M.as("w")),Br=Ur(M.as("y")),hi=A<=m.ss&&["s",A]||A<m.s&&["ss",A]||j<=1&&["m"]||j<m.m&&["mm",j]||se<=1&&["h"]||se<m.h&&["hh",se]||me<=1&&["d"]||me<m.d&&["dd",me];return m.w!=null&&(hi=hi||an<=1&&["w"]||an<m.w&&["ww",an]),hi=hi||Ne<=1&&["M"]||Ne<m.M&&["MM",Ne]||Br<=1&&["y"]||["yy",Br],hi[2]=f,hi[3]=+l>0,hi[4]=y,GE.apply(null,hi)}function KE(l){return l===void 0?Ur:typeof l=="function"?(Ur=l,!0):!1}function ZE(l,f){return Za[l]===void 0?!1:f===void 0?Za[l]:(Za[l]=f,l==="s"&&(Za.ss=f-1),!0)}function JE(l,f){if(!this.isValid())return this.localeData().invalidDate();var m=!1,y=Za,M,A;return typeof l=="object"&&(f=l,l=!1),typeof l=="boolean"&&(m=l),typeof f=="object"&&(y=Object.assign({},Za,f),f.s!=null&&f.ss==null&&(y.ss=f.s-1)),M=this.localeData(),A=XE(this,!m,y,M),m&&(A=M.pastFuture(+this,A)),M.postformat(A)}var fm=Math.abs;function Ja(l){return(l>0)-(l<0)||+l}function ac(){if(!this.isValid())return this.localeData().invalidDate();var l=fm(this._milliseconds)/1e3,f=fm(this._days),m=fm(this._months),y,M,A,j,se=this.asSeconds(),me,Ne,an,Br;return se?(y=St(l/60),M=St(y/60),l%=60,y%=60,A=St(m/12),m%=12,j=l?l.toFixed(3).replace(/\.?0+$/,""):"",me=se<0?"-":"",Ne=Ja(this._months)!==Ja(se)?"-":"",an=Ja(this._days)!==Ja(se)?"-":"",Br=Ja(this._milliseconds)!==Ja(se)?"-":"",me+"P"+(A?Ne+A+"Y":"")+(m?Ne+m+"M":"")+(f?an+f+"D":"")+(M||y||l?"T":"")+(M?Br+M+"H":"")+(y?Br+y+"M":"")+(l?Br+j+"S":"")):"P0D"}var xe=c.prototype;xe.isValid=I,xe.abs=ME,xe.add=kE,xe.subtract=DE,xe.as=OE,xe.asMilliseconds=TE,xe.asSeconds=EE,xe.asMinutes=RE,xe.asHours=IE,xe.asDays=NE,xe.asWeeks=LE,xe.asMonths=FE,xe.asQuarters=AE,xe.asYears=WE,xe.valueOf=PE,xe._bubble=CE,xe.clone=YE,xe.get=zE,xe.milliseconds=qE,xe.seconds=HE,xe.minutes=UE,xe.hours=BE,xe.days=VE,xe.weeks=QE,xe.months=jE,xe.years=$E,xe.humanize=JE,xe.toISOString=ac,xe.toString=ac,xe.toJSON=ac,xe.locale=y_,xe.localeData=w_,xe.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ac),xe.lang=__,ne("X",0,0,"unix"),ne("x",0,0,"valueOf"),G("x",qt),G("X",Cp),ye("X",function(l,f,m){m._d=new Date(parseFloat(l)*1e3)}),ye("x",function(l,f,m){m._d=new Date(X(l))});return t.version="2.29.4",n(We),t.fn=K,t.min=om,t.max=sm,t.now=ys,t.utc=v,t.unix=vE,t.months=_E,t.isDate=d,t.locale=Zn,t.invalid=_,t.duration=er,t.isMoment=Y,t.weekdays=xE,t.parseZone=yE,t.localeData=Nn,t.isDuration=k,t.monthsShort=wE,t.weekdaysMin=SE,t.defineLocale=$a,t.updateLocale=Bu,t.locales=Vu,t.weekdaysShort=bE,t.normalizeUnits=ze,t.relativeTimeRounding=KE,t.relativeTimeThreshold=ZE,t.calendarFormat=pT,t.prototype=K,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})});var rT=fn(Tt()),iT=fn(xd());var ur=fn(Tt()),tT=fn(Jy());var PH={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"}},TH=function(e,t,n){var r,i=PH[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},sC=TH;var EH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},RH=function(e,t,n,r){return EH[e]},lC=RH;function Oa(e){return function(t,n){var r=n||{},i=r.context?String(r.context):"standalone",a;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=r.width?String(r.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{var u=e.defaultWidth,d=r.width?String(r.width):e.defaultWidth;a=e.values[d]||e.values[u]}var p=e.argumentCallback?e.argumentCallback(t):t;return a[p]}}var IH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},NH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},LH={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"]},FH={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"]},AH={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"}},WH={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"}},YH=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zH={ordinalNumber:YH,era:Oa({values:IH,defaultWidth:"wide"}),quarter:Oa({values:NH,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Oa({values:LH,defaultWidth:"wide"}),day:Oa({values:FH,defaultWidth:"wide"}),dayPeriod:Oa({values:AH,defaultWidth:"wide",formattingValues:WH,defaultFormattingWidth:"wide"})},uC=zH;function Pa(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?HH(s,function(g){return g.test(o)}):qH(s,function(g){return g.test(o)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var p=t.slice(o.length);return{value:d,rest:p}}}function qH(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function HH(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function e0(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var UH=/^(\d+)(th|st|nd|rd)?/i,BH=/\d+/i,VH={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},jH={any:[/^b/i,/^(a|c)/i]},$H={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},QH={any:[/1/i,/2/i,/3/i,/4/i]},GH={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},XH={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]},KH={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},ZH={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]},JH={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},e3={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}},t3={ordinalNumber:e0({matchPattern:UH,parsePattern:BH,valueCallback:function(e){return parseInt(e,10)}}),era:Pa({matchPatterns:VH,defaultMatchWidth:"wide",parsePatterns:jH,defaultParseWidth:"any"}),quarter:Pa({matchPatterns:$H,defaultMatchWidth:"wide",parsePatterns:QH,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Pa({matchPatterns:GH,defaultMatchWidth:"wide",parsePatterns:XH,defaultParseWidth:"any"}),day:Pa({matchPatterns:KH,defaultMatchWidth:"wide",parsePatterns:ZH,defaultParseWidth:"any"}),dayPeriod:Pa({matchPatterns:JH,defaultMatchWidth:"any",parsePatterns:e3,defaultParseWidth:"any"})},cC=t3;function Bl(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var n3={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},r3={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},i3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a3={date:Bl({formats:n3,defaultWidth:"full"}),time:Bl({formats:r3,defaultWidth:"full"}),dateTime:Bl({formats:i3,defaultWidth:"full"})},dC=a3;var o3={code:"en-GB",formatDistance:sC,formatLong:dC,formatRelative:lC,localize:uC,match:cC,options:{weekStartsOn:1,firstWeekContainsDate:4}},fC=o3;var Le=fn(Tt(),1);function gC(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(p){try{d(r.next(p))}catch(g){o(g)}}function u(p){try{d(r.throw(p))}catch(g){o(g)}}function d(p){p.done?a(p.value):i(p.value).then(s,u)}d((r=r.apply(e,t||[])).next())})}function vC(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(p){return u([d,p])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],i=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}var Rr=function(){},en=Rr(),Vl=Object,ln=function(e){return e===en},Ea=function(e){return typeof e=="function"},ti=function(e,t){return Vl.assign({},e,t)},l0="undefined",u0=function(){return typeof window!=l0},s3=function(){return typeof document!=l0},l3=function(){return u0()&&typeof window.requestAnimationFrame!=l0},Ah=new WeakMap,u3=0,Ql=function(e){var t=typeof e,n=e&&e.constructor,r=n==Date,i,a;if(Vl(e)===e&&!r&&n!=RegExp){if(i=Ah.get(e),i)return i;if(i=++u3+"~",Ah.set(e,i),n==Array){for(i="@",a=0;a<e.length;a++)i+=Ql(e[a])+",";Ah.set(e,i)}if(n==Vl){i="#";for(var o=Vl.keys(e).sort();!ln(a=o.pop());)ln(e[a])||(i+=a+":"+Ql(e[a])+",");Ah.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},r0=!0,c3=function(){return r0},yC=u0(),c0=s3(),i0=yC&&window.addEventListener?window.addEventListener.bind(window):Rr,d3=c0?document.addEventListener.bind(document):Rr,a0=yC&&window.removeEventListener?window.removeEventListener.bind(window):Rr,f3=c0?document.removeEventListener.bind(document):Rr,h3=function(){var e=c0&&document.visibilityState;return ln(e)||e!=="hidden"},p3=function(e){return d3("visibilitychange",e),i0("focus",e),function(){f3("visibilitychange",e),a0("focus",e)}},m3=function(e){var t=function(){r0=!0,e()},n=function(){r0=!1};return i0("online",t),i0("offline",n),function(){a0("online",t),a0("offline",n)}},g3={isOnline:c3,isVisible:h3},v3={initFocus:p3,initReconnect:m3},Wh=!u0()||"Deno"in window,y3=function(e){return l3()?window.requestAnimationFrame(e):setTimeout(e,1)},jl=Wh?Le.useEffect:Le.useLayoutEffect,t0=typeof navigator<"u"&&navigator.connection,hC=!Wh&&t0&&(["slow-2g","2g"].includes(t0.effectiveType)||t0.saveData),_C=function(e){if(Ea(e))try{e=e()}catch(r){e=""}var t=[].concat(e);e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ql(e):"";var n=e?"$swr$"+e:"";return[e,t,n]},Ta=new WeakMap,wC=0,xC=1,bC=2,$l=function(e,t,n,r,i,a,o){o===void 0&&(o=!0);var s=Ta.get(e),u=s[0],d=s[1],p=s[3],g=u[t],v=d[t];if(o&&v)for(var S=0;S<v.length;++S)v[S](n,r,i);return a&&(delete p[t],g&&g[0])?g[0](bC).then(function(){return e.get(t)}):e.get(t)},_3=0,o0=function(){return++_3},SC=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gC(void 0,void 0,void 0,function(){var n,r,i,a,o,s,u,d,p,g,v,S,C,x,w,_,D,O,E,L;return vC(this,function(Y){switch(Y.label){case 0:if(n=e[0],r=e[1],i=e[2],a=e[3],o=typeof a=="boolean"?{revalidate:a}:a||{},s=ln(o.populateCache)?!0:o.populateCache,u=o.revalidate!==!1,d=o.rollbackOnError!==!1,p=o.optimisticData,g=_C(r),v=g[0],S=g[2],!v)return[2];if(C=Ta.get(n),x=C[2],e.length<3)return[2,$l(n,v,n.get(v),en,en,u,!0)];if(w=i,D=o0(),x[v]=[D,0],O=!ln(p),E=n.get(v),O&&(n.set(v,p),$l(n,v,p)),Ea(w))try{w=w(n.get(v))}catch(q){_=q}return w&&Ea(w.then)?[4,w.catch(function(q){_=q})]:[3,2];case 1:if(w=Y.sent(),D!==x[v][0]){if(_)throw _;return[2,w]}else _&&O&&d&&(s=!0,w=E,n.set(v,E));Y.label=2;case 2:return s&&(_||(Ea(s)&&(w=s(w,E)),n.set(v,w)),n.set(S,ti(n.get(S),{error:_}))),x[v][1]=o0(),[4,$l(n,v,w,_,en,u,!!s)];case 3:if(L=Y.sent(),_)throw _;return[2,s?L:w]}})})},pC=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},MC=function(e,t){if(!Ta.has(e)){var n=ti(v3,t),r={},i=SC.bind(en,e),a=Rr;if(Ta.set(e,[r,{},{},{},i]),!Wh){var o=n.initFocus(setTimeout.bind(en,pC.bind(en,r,wC))),s=n.initReconnect(setTimeout.bind(en,pC.bind(en,r,xC)));a=function(){o&&o(),s&&s(),Ta.delete(e)}}return[e,i,a]}return[e,Ta.get(e)[4]]},w3=function(e,t,n,r,i){var a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!ln(a)&&o>a||setTimeout(r,s,i)},kC=MC(new Map),DC=kC[0],x3=kC[1],CC=ti({onLoadingSlow:Rr,onSuccess:Rr,onError:Rr,onErrorRetry:w3,onDiscarded:Rr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:hC?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:hC?5e3:3e3,compare:function(e,t){return Ql(e)==Ql(t)},isPaused:function(){return!1},cache:DC,mutate:x3,fallback:{}},g3),OC=function(e,t){var n=ti(e,t);if(t){var r=e.use,i=e.fallback,a=t.use,o=t.fallback;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=ti(i,o))}return n},s0=(0,Le.createContext)({}),b3=function(e){var t=e.value,n=OC((0,Le.useContext)(s0),t),r=t&&t.provider,i=(0,Le.useState)(function(){return r?MC(r(n.cache||DC),t):en})[0];return i&&(n.cache=i[0],n.mutate=i[1]),jl(function(){return i?i[2]:en},[]),(0,Le.createElement)(s0.Provider,ti(e,{value:n}))},S3=function(e,t){var n=(0,Le.useState)({})[1],r=(0,Le.useRef)(e),i=(0,Le.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,Le.useCallback)(function(o){var s=!1,u=r.current;for(var d in o){var p=d;u[p]!==o[p]&&(u[p]=o[p],i.current[p]&&(s=!0))}s&&!t.current&&n({})},[]);return jl(function(){r.current=e}),[r,i.current,a]},M3=function(e){return Ea(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}]},k3=function(){return ti(CC,(0,Le.useContext)(s0))},D3=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=k3(),a=M3(n),o=a[0],s=a[1],u=a[2],d=OC(i,u),p=e,g=d.use;if(g)for(var v=g.length;v-- >0;)p=g[v](p);return p(o,s||d.fetcher,d)}},mC=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}},n0={dedupe:!0},C3=function(e,t,n){var r=n.cache,i=n.compare,a=n.fallbackData,o=n.suspense,s=n.revalidateOnMount,u=n.refreshInterval,d=n.refreshWhenHidden,p=n.refreshWhenOffline,g=Ta.get(r),v=g[0],S=g[1],C=g[2],x=g[3],w=_C(e),_=w[0],D=w[1],O=w[2],E=(0,Le.useRef)(!1),L=(0,Le.useRef)(!1),Y=(0,Le.useRef)(_),q=(0,Le.useRef)(t),B=(0,Le.useRef)(n),V=function(){return B.current},re=function(){return V().isVisible()&&V().isOnline()},J=function(dt){return r.set(O,ti(r.get(O),dt))},ue=r.get(_),ge=ln(a)?n.fallback[_]:a,ve=ln(ue)?ge:ue,ae=r.get(O)||{},oe=ae.error,pe=!E.current,de=function(){return pe&&!ln(s)?s:V().isPaused()?!1:o?!ln(ve):ln(ve)||n.revalidateIfStale},Te=function(){return!_||!t?!1:ae.isValidating?!0:pe&&de()},Je=Te(),ot=S3({data:ve,error:oe,isValidating:Je},L),Ee=ot[0],ne=ot[1],Be=ot[2],Fe=(0,Le.useCallback)(function(dt){return gC(void 0,void 0,void 0,function(){var Ge,_t,It,Tn,cr,Nt,ft,dn,Lt,dr,tn,Ae,ze;return vC(this,function(zt){switch(zt.label){case 0:if(Ge=q.current,!_||!Ge||L.current||V().isPaused())return[2,!1];Tn=!0,cr=dt||{},Nt=!x[_]||!cr.dedupe,ft=function(){return!L.current&&_===Y.current&&E.current},dn=function(){var fr=x[_];fr&&fr[1]===It&&delete x[_]},Lt={isValidating:!1},dr=function(){J({isValidating:!1}),ft()&&Be(Lt)},J({isValidating:!0}),Be({isValidating:!0}),zt.label=1;case 1:return zt.trys.push([1,3,,4]),Nt&&($l(r,_,Ee.current.data,Ee.current.error,!0),n.loadingTimeout&&!r.get(_)&&setTimeout(function(){Tn&&ft()&&V().onLoadingSlow(_,n)},n.loadingTimeout),x[_]=[Ge.apply(void 0,D),o0()]),ze=x[_],_t=ze[0],It=ze[1],[4,_t];case 2:return _t=zt.sent(),Nt&&setTimeout(dn,n.dedupingInterval),!x[_]||x[_][1]!==It?(Nt&&ft()&&V().onDiscarded(_),[2,!1]):(J({error:en}),Lt.error=en,tn=C[_],!ln(tn)&&(It<=tn[0]||It<=tn[1]||tn[1]===0)?(dr(),Nt&&ft()&&V().onDiscarded(_),[2,!1]):(i(Ee.current.data,_t)?Lt.data=Ee.current.data:Lt.data=_t,i(r.get(_),_t)||r.set(_,_t),Nt&&ft()&&V().onSuccess(_t,_,n),[3,4]));case 3:return Ae=zt.sent(),dn(),V().isPaused()||(J({error:Ae}),Lt.error=Ae,Nt&&ft()&&(V().onError(Ae,_,n),(typeof n.shouldRetryOnError=="boolean"&&n.shouldRetryOnError||Ea(n.shouldRetryOnError)&&n.shouldRetryOnError(Ae))&&re()&&V().onErrorRetry(Ae,_,n,Fe,{retryCount:(cr.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return Tn=!1,dr(),ft()&&Nt&&$l(r,_,Lt.data,Lt.error,!1),[2,!0]}})})},[_]),cn=(0,Le.useCallback)(SC.bind(en,r,function(){return Y.current}),[]);if(jl(function(){q.current=t,B.current=n}),jl(function(){if(!!_){var dt=_!==Y.current,Ge=Fe.bind(en,n0),_t=function(ft,dn,Lt){Be(ti({error:dn,isValidating:Lt},i(Ee.current.data,ft)?en:{data:ft}))},It=0,Tn=function(ft){if(ft==wC){var dn=Date.now();V().revalidateOnFocus&&dn>It&&re()&&(It=dn+V().focusThrottleInterval,Ge())}else if(ft==xC)V().revalidateOnReconnect&&re()&&Ge();else if(ft==bC)return Fe()},cr=mC(_,S,_t),Nt=mC(_,v,Tn);return L.current=!1,Y.current=_,E.current=!0,dt&&Be({data:ve,error:oe,isValidating:Je}),de()&&(ln(ve)||Wh?Ge():y3(Ge)),function(){L.current=!0,cr(),Nt()}}},[_,Fe]),jl(function(){var dt;function Ge(){var It=Ea(u)?u(ve):u;It&&dt!==-1&&(dt=setTimeout(_t,It))}function _t(){!Ee.current.error&&(d||V().isVisible())&&(p||V().isOnline())?Fe(n0).then(Ge):Ge()}return Ge(),function(){dt&&(clearTimeout(dt),dt=-1)}},[u,d,p,Fe]),(0,Le.useDebugValue)(ve),o&&ln(ve)&&_)throw q.current=t,B.current=n,L.current=!1,ln(oe)?Fe(n0):oe;return{mutate:cn,get data(){return ne.data=!0,ve},get error(){return ne.error=!0,oe},get isValidating(){return ne.isValidating=!0,Je}}},y5=Vl.defineProperty(b3,"default",{value:CC});var d0=D3(C3);var Mn=fn(Tt());var PC=async()=>{try{return(await(await fetch("./tags.txt")).text()).split(`
`).map(r=>r.trim()).filter(r=>r.length>0).map(r=>r.split("--"))}catch(e){console.log(e)}},O3=e=>{let t=e.length,n;for(;t!=0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},TC=async e=>{let i=await fetch(`./data/${e}.txt`);if(i.status===404)return[];let s=(await i.text()).split(`
`).filter(d=>d.length>0).map(d=>{let[p,g]=d.split(" ");return{date:new Date(p),viewCount:parseInt(g)}});return s.length<1e3?s:[...O3(Array.from(Array(s.length-100).keys())).slice(0,1e3-100).sort((d,p)=>d-p).map(d=>s[d]),...s.slice(-100)]};var f0=()=>{let{data:e,error:t}=d0("tags",PC),[n,r]=(0,Mn.useState)("#uncategorized"),i=(0,Mn.useMemo)(()=>{let s=e==null?void 0:e.map(([d,p])=>[d.trim(),(p||"#uncategorized").split(" ").map(g=>g.trim()).filter(g=>g.length>0)]);return(s==null?void 0:s.reduce((d,p)=>pm(eo({},d),{[p[0]]:p[1]}),{}))||{}},[e]),a=(0,Mn.useMemo)(()=>{var u;let s={};return(u=Object.keys(i))==null||u.forEach(d=>{(i[d]||[]).forEach(g=>{s[g]=[...s[g]||[],d]})}),s},[i]),o=(0,Mn.useMemo)(()=>Object.keys(a),[a]);return(0,Mn.useEffect)(()=>{r(o[0])},[o]),{tabNames:o,currentTab:n,setCurrentTab:r,tabs:a,tagsWithTabs:i,error:t,loading:!e&&!t}},EC=e=>{let{data:t,error:n}=d0(["tags",e],()=>TC(e)),{tagsWithTabs:r}=f0(),i=(0,Mn.useMemo)(()=>r[e],[r]);return{tagData:t,tagTabs:i,error:n,loading:!t&&!n}},RC=(e,t)=>{let n=(0,Mn.useRef)();return(0,Mn.useCallback)((...r)=>{let i=()=>{clearTimeout(n.current),e(...r)};clearTimeout(n.current),n.current=setTimeout(i,t)},[e,t])};var bt=fn(Tt()),ZP=fn(Jy());var Pn=fn(Tt()),si=fn(p0());var _0=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function w0(e,t,n){let r=n||(o=>Array.prototype.slice.call(o)),i=!1,a=[];return function(...o){a=r(o),i||(i=!0,_0.call(window,()=>{i=!1,e.apply(t,a)}))}}function $C(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var QC=e=>e==="start"?"left":e==="end"?"right":"center",x0=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2;function Ir(){}var GC=function(){let e=0;return function(){return e++}}();function Oe(e){return e===null||typeof e>"u"}function Qe(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.substr(0,7)==="[object"&&t.substr(-6)==="Array]"}function Me(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}var Rt=e=>(typeof e=="number"||e instanceof Number)&&isFinite(+e);function Dn(e,t){return Rt(e)?e:t}function be(e,t){return typeof e>"u"?t:e}var XC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:e/t,b0=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function at(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Pe(e,t,n,r){let i,a,o;if(Qe(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(Me(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function tu(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Bh(e){if(Qe(e))return e.map(Bh);if(Me(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=Bh(e[n[i]]);return t}return e}function KC(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function P3(e,t,n,r){if(!KC(e))return;let i=t[e],a=n[e];Me(i)&&Me(a)?Vo(i,a,r):t[e]=Bh(a)}function Vo(e,t,n){let r=Qe(t)?t:[t],i=r.length;if(!Me(e))return e;n=n||{};let a=n.merger||P3;for(let o=0;o<i;++o){if(t=r[o],!Me(t))continue;let s=Object.keys(t);for(let u=0,d=s.length;u<d;++u)a(s[u],e,t,n)}return e}function $o(e,t){return Vo(e,t,{merger:T3})}function T3(e,t,n){if(!KC(e))return;let r=t[e],i=n[e];Me(r)&&Me(i)?$o(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Bh(i))}var E3="",R3=".";function IC(e,t){let n=e.indexOf(R3,t);return n===-1?e.length:n}function qi(e,t){if(t===E3)return e;let n=0,r=IC(t,n);for(;e&&r>n;)e=e[t.substr(n,r-n)],n=r+1,r=IC(t,n);return e}function Qh(e){return e.charAt(0).toUpperCase()+e.slice(1)}var kn=e=>typeof e<"u",ni=e=>typeof e=="function",S0=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function ZC(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var it=Math.PI,Ye=2*it,I3=Ye+it,Vh=Number.POSITIVE_INFINITY,N3=it/180,rt=it/2,Gl=it/4,NC=it*2/3,Cn=Math.log10,or=Math.sign;function M0(e){let t=Math.round(e);e=Go(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(Cn(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function JC(e){let t=[],n=Math.sqrt(e),r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function Qo(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Go(e,t,n){return Math.abs(e-t)<n}function eO(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function k0(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Qn(e){return e*(it/180)}function Gh(e){return e*(180/it)}function D0(e){if(!Rt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function C0(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*it&&(a+=Ye),{angle:a,distance:i}}function jh(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function L3(e,t){return(e-t+I3)%Ye-it}function $n(e){return(e%Ye+Ye)%Ye}function Xo(e,t,n,r){let i=$n(e),a=$n(t),o=$n(n),s=$n(a-i),u=$n(o-i),d=$n(i-a),p=$n(i-o);return i===a||i===o||r&&a===o||s>u&&d<p}function Yt(e,t,n){return Math.max(t,Math.min(n,e))}function tO(e){return Yt(e,-32768,32767)}function nu(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}var Yh=e=>e===0||e===1,LC=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ye/n)),FC=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ye/n)+1,Bo={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*rt)+1,easeOutSine:e=>Math.sin(e*rt),easeInOutSine:e=>-.5*(Math.cos(it*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Yh(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Yh(e)?e:LC(e,.075,.3),easeOutElastic:e=>Yh(e)?e:FC(e,.075,.3),easeInOutElastic(e){return Yh(e)?e:e<.5?.5*LC(e*2,.1125,.45):.5+.5*FC(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Bo.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Bo.easeInBounce(e*2)*.5:Bo.easeOutBounce(e*2-1)*.5+.5};var jn={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},y0="0123456789ABCDEF",F3=e=>y0[e&15],A3=e=>y0[(e&240)>>4]+y0[e&15],zh=e=>(e&240)>>4===(e&15);function W3(e){return zh(e.r)&&zh(e.g)&&zh(e.b)&&zh(e.a)}function Y3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&jn[e[1]]*17,g:255&jn[e[2]]*17,b:255&jn[e[3]]*17,a:t===5?jn[e[4]]*17:255}:(t===7||t===9)&&(n={r:jn[e[1]]<<4|jn[e[2]],g:jn[e[3]]<<4|jn[e[4]],b:jn[e[5]]<<4|jn[e[6]],a:t===9?jn[e[7]]<<4|jn[e[8]]:255})),n}function z3(e){var t=W3(e)?F3:A3;return e&&"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):"")}function ru(e){return e+.5|0}var Xh=(e,t,n)=>Math.max(Math.min(e,n),t);function Xl(e){return Xh(ru(e*2.55),0,255)}function Zl(e){return Xh(ru(e*255),0,255)}function O0(e){return Xh(ru(e/2.55)/100,0,1)}function AC(e){return Xh(ru(e*100),0,100)}var q3=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function H3(e){let t=q3.exec(e),n=255,r,i,a;if(!!t){if(t[7]!==r){let o=+t[7];n=255&(t[8]?Xl(o):o*255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?Xl(r):r),i=255&(t[4]?Xl(i):i),a=255&(t[6]?Xl(a):a),{r,g:i,b:a,a:n}}}function U3(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${O0(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var B3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function nO(e,t,n){let r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function V3(e,t,n){let r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function j3(e,t,n){let r=nO(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function P0(e){let n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2,u,d,p;return a!==o&&(p=a-o,d=s>.5?p/(2-a-o):p/(a+o),u=a===n?(r-i)/p+(r<i?6:0):a===r?(i-n)/p+2:(n-r)/p+4,u=u*60+.5),[u|0,d||0,s]}function T0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Zl)}function E0(e,t,n){return T0(nO,e,t,n)}function $3(e,t,n){return T0(j3,e,t,n)}function Q3(e,t,n){return T0(V3,e,t,n)}function rO(e){return(e%360+360)%360}function G3(e){let t=B3.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Xl(+t[5]):Zl(+t[5]));let i=rO(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=$3(i,a,o):t[1]==="hsv"?r=Q3(i,a,o):r=E0(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function X3(e,t){var n=P0(e);n[0]=rO(n[0]+t),n=E0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function K3(e){if(!e)return;let t=P0(e),n=t[0],r=AC(t[1]),i=AC(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${O0(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var WC={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"},YC={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 Z3(){let e={},t=Object.keys(YC),n=Object.keys(WC),r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,WC[a]);a=parseInt(YC[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}var qh;function J3(e){qh||(qh=Z3(),qh.transparent=[0,0,0,0]);let t=qh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}function Hh(e,t,n){if(e){let r=P0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=E0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function iO(e,t){return e&&Object.assign(t||{},e)}function zC(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Zl(e[3]))):(t=iO(e,{r:0,g:0,b:0,a:1}),t.a=Zl(t.a)),t}function eU(e){return e.charAt(0)==="r"?H3(e):G3(e)}var Jl=class{constructor(t){if(t instanceof Jl)return t;let n=typeof t,r;n==="object"?r=zC(t):n==="string"&&(r=Y3(t)||J3(t)||eU(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=iO(this._rgb);return t&&(t.a=O0(t.a)),t}set rgb(t){this._rgb=zC(t)}rgbString(){return this._valid?U3(this._rgb):this._rgb}hexString(){return this._valid?z3(this._rgb):this._rgb}hslString(){return this._valid?K3(this._rgb):this._rgb}mix(t,n){let r=this;if(t){let i=r.rgb,a=t.rgb,o,s=n===o?.5:n,u=2*s-1,d=i.a-a.a,p=((u*d===-1?u:(u+d)/(1+u*d))+1)/2;o=1-p,i.r=255&p*i.r+o*a.r+.5,i.g=255&p*i.g+o*a.g+.5,i.b=255&p*i.b+o*a.b+.5,i.a=s*i.a+(1-s)*a.a,r.rgb=i}return r}clone(){return new Jl(this.rgb)}alpha(t){return this._rgb.a=Zl(t),this}clearer(t){let n=this._rgb;return n.a*=1-t,this}greyscale(){let t=this._rgb,n=ru(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){let n=this._rgb;return n.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hh(this._rgb,2,t),this}darken(t){return Hh(this._rgb,2,-t),this}saturate(t){return Hh(this._rgb,1,t),this}desaturate(t){return Hh(this._rgb,1,-t),this}rotate(t){return X3(this._rgb,t),this}};function aO(e){return new Jl(e)}var oO=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function R0(e){return oO(e)?e:aO(e)}function m0(e){return oO(e)?e:aO(e).saturate(.5).darken(.1).hexString()}var Hi=Object.create(null),Kh=Object.create(null);function Kl(e,t){if(!t)return e;let n=t.split(".");for(let r=0,i=n.length;r<i;++r){let a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function g0(e,t,n){return typeof t=="string"?Vo(Kl(e,t),n):Vo(Kl(e,""),t)}var sO=class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>m0(r.backgroundColor),this.hoverBorderColor=(n,r)=>m0(r.borderColor),this.hoverColor=(n,r)=>m0(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,n){return g0(this,t,n)}get(t){return Kl(this,t)}describe(t,n){return g0(Kh,t,n)}override(t,n){return g0(Hi,t,n)}route(t,n,r,i){let a=Kl(this,t),o=Kl(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){let u=this[s],d=o[i];return Me(u)?Object.assign({},d,u):be(u,d)},set(u){this[s]=u}}})}},we=new sO({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function tU(e){return!e||Oe(e.size)||Oe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function eu(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function lO(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,u,d,p,g,v;for(u=0;u<s;u++)if(g=n[u],g!=null&&Qe(g)!==!0)o=eu(e,i,a,o,g);else if(Qe(g))for(d=0,p=g.length;d<p;d++)v=g[d],v!=null&&!Qe(v)&&(o=eu(e,i,a,o,v));e.restore();let S=a.length/2;if(S>n.length){for(u=0;u<S;u++)delete i[a[u]];a.splice(0,S)}return o}function Ui(e,t,n){let r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function I0(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Zh(e,t,n,r){let i,a,o,s,u,d=t.pointStyle,p=t.rotation,g=t.radius,v=(p||0)*N3;if(d&&typeof d=="object"&&(i=d.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),d){default:e.arc(n,r,g,0,Ye),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(v)*g,r-Math.cos(v)*g),v+=NC,e.lineTo(n+Math.sin(v)*g,r-Math.cos(v)*g),v+=NC,e.lineTo(n+Math.sin(v)*g,r-Math.cos(v)*g),e.closePath();break;case"rectRounded":u=g*.516,s=g-u,a=Math.cos(v+Gl)*s,o=Math.sin(v+Gl)*s,e.arc(n-a,r-o,u,v-it,v-rt),e.arc(n+o,r-a,u,v-rt,v),e.arc(n+a,r+o,u,v,v+rt),e.arc(n-o,r+a,u,v+rt,v+it),e.closePath();break;case"rect":if(!p){s=Math.SQRT1_2*g,e.rect(n-s,r-s,2*s,2*s);break}v+=Gl;case"rectRot":a=Math.cos(v)*g,o=Math.sin(v)*g,e.moveTo(n-a,r-o),e.lineTo(n+o,r-a),e.lineTo(n+a,r+o),e.lineTo(n-o,r+a),e.closePath();break;case"crossRot":v+=Gl;case"cross":a=Math.cos(v)*g,o=Math.sin(v)*g,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"star":a=Math.cos(v)*g,o=Math.sin(v)*g,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a),v+=Gl,a=Math.cos(v)*g,o=Math.sin(v)*g,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"line":a=Math.cos(v)*g,o=Math.sin(v)*g,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*g,r+Math.sin(v)*g);break}e.fill(),t.borderWidth>0&&e.stroke()}}function zi(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function N0(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function L0(e){e.restore()}function uO(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){let a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function cO(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function iu(e,t,n,r,i,a={}){let o=Qe(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="",u,d;for(e.save(),e.font=i.string,nU(e,a),u=0;u<o.length;++u)d=o[u],s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Oe(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(d,n,r,a.maxWidth)),e.fillText(d,n,r,a.maxWidth),rU(e,n,r,d,a),r+=i.lineHeight;e.restore()}function nU(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Oe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function rU(e,t,n,r,i){if(i.strikethrough||i.underline){let a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,u=n-a.actualBoundingBoxAscent,d=n+a.actualBoundingBoxDescent,p=i.strikethrough?(u+d)/2:d;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,p),e.lineTo(s,p),e.stroke()}}function Jh(e,t){let{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-rt,it,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,it,rt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,rt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-rt,!0),e.lineTo(n+o.topLeft,r)}var iU=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),aU=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function oU(e,t){let n=(""+e).match(iU);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}var sU=e=>+e||0;function ep(e,t){let n={},r=Me(t),i=r?Object.keys(t):t,a=Me(e)?r?o=>be(e[o],e[t[o]]):o=>e[o]:()=>e;for(let o of i)n[o]=sU(a(o));return n}function F0(e){return ep(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ko(e){return ep(e,["topLeft","topRight","bottomLeft","bottomRight"])}function On(e){let t=F0(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _n(e,t){e=e||{},t=t||we.font;let n=be(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=be(e.style,t.style);r&&!(""+r).match(aU)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");let i={family:be(e.family,t.family),lineHeight:oU(be(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:be(e.weight,t.weight),string:""};return i.string=tU(i),i}function au(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;a<o;++a)if(s=e[a],s!==void 0&&(t!==void 0&&typeof s=="function"&&(s=s(t),i=!1),n!==void 0&&Qe(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function dO(e,t,n){let{min:r,max:i}=e,a=b0(t,(i-r)/2),o=(s,u)=>n&&s===0?0:s+u;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function ri(e,t){return Object.assign(Object.create(e),t)}function tp(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var Bi=(e,t,n)=>tp(e,n,r=>e[r][t]<n),fO=(e,t,n)=>tp(e,n,r=>e[r][t]>=n);function hO(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var pO=["push","pop","shift","splice","unshift"];function mO(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),pO.forEach(n=>{let r="_onData"+Qh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){let o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function A0(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(pO.forEach(a=>{delete e[a]}),delete e._chartjs)}function W0(e){let t=new Set,n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}function np(e,t=[""],n=e,r,i=()=>e[0]){kn(r)||(r=yO("_fallback",e));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:o=>np([o,...e],t,n,r)};return new Proxy(a,{deleteProperty(o,s){return delete o[s],delete o._keys,delete e[0][s],!0},get(o,s){return gO(o,s,()=>mU(s,t,e,o))},getOwnPropertyDescriptor(o,s){return Reflect.getOwnPropertyDescriptor(o._scopes[0],s)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,s){return HC(o).includes(s)},ownKeys(o){return HC(o)},set(o,s,u){let d=o._storage||(o._storage=i());return o[s]=d[s]=u,delete o._keys,!0}})}function Ia(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Y0(e,r),setContext:a=>Ia(e,a,n,r),override:a=>Ia(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return gO(a,o,()=>uU(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function Y0(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ni(n)?n:()=>n,isIndexable:ni(r)?r:()=>r}}var lU=(e,t)=>e?e+Qh(t):t,z0=(e,t)=>Me(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function gO(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let r=n();return e[t]=r,r}function uU(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return ni(s)&&o.isScriptable(t)&&(s=cU(t,s,e,n)),Qe(s)&&s.length&&(s=dU(t,s,e,o.isIndexable)),z0(t,s)&&(s=Ia(s,i,a&&a[t],o)),s}function cU(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);return s.add(e),t=t(a,o||r),s.delete(e),z0(e,t)&&(t=q0(i._scopes,i,e,t)),t}function dU(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(kn(a.index)&&r(e))t=t[a.index%t.length];else if(Me(t[0])){let u=t,d=i._scopes.filter(p=>p!==u);t=[];for(let p of u){let g=q0(d,i,e,p);t.push(Ia(g,a,o&&o[e],s))}}return t}function vO(e,t,n){return ni(e)?e(t,n):e}var fU=(e,t)=>e===!0?t:typeof e=="string"?qi(t,e):void 0;function hU(e,t,n,r,i){for(let a of t){let o=fU(n,a);if(o){e.add(o);let s=vO(o._fallback,n,i);if(kn(s)&&s!==n&&s!==r)return s}else if(o===!1&&kn(r)&&n!==r)return null}return!1}function q0(e,t,n,r){let i=t._rootScopes,a=vO(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let u=qC(s,o,n,a||n,r);return u===null||kn(a)&&a!==n&&(u=qC(s,o,a,u,r),u===null)?!1:np(Array.from(s),[""],i,a,()=>pU(t,n,r))}function qC(e,t,n,r,i){for(;n;)n=hU(e,t,n,r,i);return n}function pU(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return Qe(i)&&Me(n)?n:i}function mU(e,t,n,r){let i;for(let a of t)if(i=yO(lU(a,e),n),kn(i))return z0(e,i)?q0(n,r,e,i):i}function yO(e,t){for(let n of t){if(!n)continue;let r=n[e];if(kn(r))return r}}function HC(e){let t=e._keys;return t||(t=e._keys=gU(e._scopes)),t}function gU(e){let t=new Set;for(let n of e)for(let r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}var vU=Number.EPSILON||1e-14,jo=(e,t)=>t<e.length&&!e[t].skip&&e[t],_O=e=>e==="x"?"y":"x";function yU(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=jh(a,i),u=jh(o,a),d=s/(s+u),p=u/(s+u);d=isNaN(d)?0:d,p=isNaN(p)?0:p;let g=r*d,v=r*p;return{previous:{x:a.x-g*(o.x-i.x),y:a.y-g*(o.y-i.y)},next:{x:a.x+v*(o.x-i.x),y:a.y+v*(o.y-i.y)}}}function _U(e,t,n){let r=e.length,i,a,o,s,u,d=jo(e,0);for(let p=0;p<r-1;++p)if(u=d,d=jo(e,p+1),!(!u||!d)){if(Go(t[p],0,vU)){n[p]=n[p+1]=0;continue}i=n[p]/t[p],a=n[p+1]/t[p],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[p]=i*o*t[p],n[p+1]=a*o*t[p])}}function wU(e,t,n="x"){let r=_O(n),i=e.length,a,o,s,u=jo(e,0);for(let d=0;d<i;++d){if(o=s,s=u,u=jo(e,d+1),!s)continue;let p=s[n],g=s[r];o&&(a=(p-o[n])/3,s[`cp1${n}`]=p-a,s[`cp1${r}`]=g-a*t[d]),u&&(a=(u[n]-p)/3,s[`cp2${n}`]=p+a,s[`cp2${r}`]=g+a*t[d])}}function xU(e,t="x"){let n=_O(t),r=e.length,i=Array(r).fill(0),a=Array(r),o,s,u,d=jo(e,0);for(o=0;o<r;++o)if(s=u,u=d,d=jo(e,o+1),!!u){if(d){let p=d[t]-u[t];i[o]=p!==0?(d[n]-u[n])/p:0}a[o]=s?d?or(i[o-1])!==or(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}_U(e,i,a),wU(e,a,t)}function Uh(e,t,n){return Math.max(Math.min(e,n),t)}function bU(e,t){let n,r,i,a,o,s=zi(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&zi(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Uh(i.cp1x,t.left,t.right),i.cp1y=Uh(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Uh(i.cp2x,t.left,t.right),i.cp2y=Uh(i.cp2y,t.top,t.bottom)))}function wO(e,t,n,r,i){let a,o,s,u;if(t.spanGaps&&(e=e.filter(d=>!d.skip)),t.cubicInterpolationMode==="monotone")xU(e,i);else{let d=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],u=yU(d,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=u.previous.x,s.cp1y=u.previous.y,s.cp2x=u.next.x,s.cp2y=u.next.y,d=s}t.capBezierPoints&&bU(e,n)}function H0(){return typeof window<"u"&&typeof document<"u"}function rp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function $h(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}var ip=e=>window.getComputedStyle(e,null);function SU(e,t){return ip(e).getPropertyValue(t)}var MU=["top","right","bottom","left"];function Ra(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let a=MU[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var kU=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function DU(e,t){let n=e.native||e,r=n.touches,i=r&&r.length?r[0]:n,{offsetX:a,offsetY:o}=i,s=!1,u,d;if(kU(a,o,n.target))u=a,d=o;else{let p=t.getBoundingClientRect();u=i.clientX-p.left,d=i.clientY-p.top,s=!0}return{x:u,y:d,box:s}}function U0(e,t){let{canvas:n,currentDevicePixelRatio:r}=t,i=ip(n),a=i.boxSizing==="border-box",o=Ra(i,"padding"),s=Ra(i,"border","width"),{x:u,y:d,box:p}=DU(e,n),g=o.left+(p&&s.left),v=o.top+(p&&s.top),{width:S,height:C}=t;return a&&(S-=o.width+s.width,C-=o.height+s.height),{x:Math.round((u-g)/S*n.width/r),y:Math.round((d-v)/C*n.height/r)}}function CU(e,t,n){let r,i;if(t===void 0||n===void 0){let a=rp(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let o=a.getBoundingClientRect(),s=ip(a),u=Ra(s,"border","width"),d=Ra(s,"padding");t=o.width-d.width-u.width,n=o.height-d.height-u.height,r=$h(s.maxWidth,a,"clientWidth"),i=$h(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Vh,maxHeight:i||Vh}}var v0=e=>Math.round(e*10)/10;function xO(e,t,n,r){let i=ip(e),a=Ra(i,"margin"),o=$h(i.maxWidth,e,"clientWidth")||Vh,s=$h(i.maxHeight,e,"clientHeight")||Vh,u=CU(e,t,n),{width:d,height:p}=u;if(i.boxSizing==="content-box"){let g=Ra(i,"border","width"),v=Ra(i,"padding");d-=v.width+g.width,p-=v.height+g.height}return d=Math.max(0,d-a.width),p=Math.max(0,r?Math.floor(d/r):p-a.height),d=v0(Math.min(d,o,u.maxWidth)),p=v0(Math.min(p,s,u.maxHeight)),d&&!p&&(p=v0(d/2)),{width:d,height:p}}function B0(e,t,n){let r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=i/r,e.width=a/r;let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var bO=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function V0(e,t){let n=SU(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Yi(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function SO(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function MO(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=Yi(e,i,n),s=Yi(i,a,n),u=Yi(a,t,n),d=Yi(o,s,n),p=Yi(s,u,n);return Yi(d,p,n)}var UC=new Map;function OU(e,t){t=t||{};let n=e+JSON.stringify(t),r=UC.get(n);return r||(r=new Intl.NumberFormat(e,t),UC.set(n,r)),r}function Zo(e,t,n){return OU(t,n).format(e)}var PU=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},TU=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ap(e,t,n){return e?PU(t,n):TU()}function kO(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function DO(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function CO(e){return e==="angle"?{between:Xo,compare:L3,normalize:$n}:{between:nu,compare:(t,n)=>t-n,normalize:t=>t}}function BC({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function EU(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=CO(r),u=t.length,{start:d,end:p,loop:g}=e,v,S;if(g){for(d+=u,p+=u,v=0,S=u;v<S&&o(s(t[d%u][r]),i,a);++v)d--,p--;d%=u,p%=u}return p<d&&(p+=u),{start:d,end:p,loop:g,style:e.style}}function OO(e,t,n){if(!n)return[e];let{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:u,normalize:d}=CO(r),{start:p,end:g,loop:v,style:S}=EU(e,t,n),C=[],x=!1,w=null,_,D,O,E=()=>u(i,O,_)&&s(i,O)!==0,L=()=>s(a,_)===0||u(a,O,_),Y=()=>x||E(),q=()=>!x||L();for(let B=p,V=p;B<=g;++B)D=t[B%o],!D.skip&&(_=d(D[r]),_!==O&&(x=u(_,i,a),w===null&&Y()&&(w=s(_,i)===0?B:V),w!==null&&q()&&(C.push(BC({start:w,end:B,loop:v,count:o,style:S})),w=null),V=B,O=_));return w!==null&&C.push(BC({start:w,end:g,loop:v,count:o,style:S})),C}function PO(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let a=OO(r[i],e.points,t);a.length&&n.push(...a)}return n}function RU(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function IU(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],u;for(u=t+1;u<=n;++u){let d=e[u%i];d.skip||d.stop?s.skip||(r=!1,a.push({start:t%i,end:(u-1)%i,loop:r}),t=o=d.stop?u:null):(o=u,s.skip&&(t=u)),s=d}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function TO(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=RU(n,i,a,r);if(r===!0)return VC(e,[{start:o,end:s,loop:a}],n,t);let u=s<o?s+i:s,d=!!e._fullLoop&&o===0&&s===i-1;return VC(e,IU(n,o,u,d),n,t)}function VC(e,t,n,r){return!r||!r.setContext||!n?t:NU(e,t,n,r)}function NU(e,t,n,r){let i=e._chart.getContext(),a=jC(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,u=n.length,d=[],p=a,g=t[0].start,v=g;function S(C,x,w,_){let D=s?-1:1;if(C!==x){for(C+=u;n[C%u].skip;)C-=D;for(;n[x%u].skip;)x+=D;C%u!==x%u&&(d.push({start:C%u,end:x%u,loop:w,style:_}),p=_,g=x%u)}}for(let C of t){g=s?g:C.start;let x=n[g%u],w;for(v=g+1;v<=C.end;v++){let _=n[v%u];w=jC(r.setContext(ri(i,{type:"segment",p0:x,p1:_,p0DataIndex:(v-1)%u,p1DataIndex:v%u,datasetIndex:o}))),LU(w,p)&&S(g,v-1,C.loop,p),x=_,p=w}g<v-1&&S(g,v-1,C.loop,p)}return d}function jC(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function LU(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var mP=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){let a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=_0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;let a=r.items,o=a.length-1,s=!1,u;for(;o>=0;--o)u=a[o],u._active?(u._total>r.duration&&(r.duration=u._total),u.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){let n=this._charts,r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){let n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;let n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){let n=this._charts.get(t);if(!n||!n.items.length)return;let r=n.items,i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},ii=new mP,EO="transparent",FU={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=R0(e||EO),i=r.valid&&R0(t||EO);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},gP=class{constructor(t,n,r,i){let a=n[r];i=au([t.to,i,a,t.from]);let o=au([t.from,a,i]);this._active=!0,this._fn=t.fn||FU[t.type||typeof o],this._easing=Bo[t.easing]||Bo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);let i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=au([t.to,n,i,t.from]),this._from=au([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to,u;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}u=n/r%2,u=o&&u>1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(a,s,u)}wait(){let t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){let n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}},AU=["x","y","borderWidth","radius","tension"],WU=["color","borderColor","backgroundColor"];we.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var YU=Object.keys(we.animation);we.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"});we.set("animations",{colors:{type:"color",properties:WU},numbers:{type:"number",properties:AU}});we.describe("animations",{_fallback:"animation"});we.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}}}});var a_=class{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Me(t))return;let n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{let i=t[r];if(!Me(i))return;let a={};for(let o of YU)a[o]=i[o];(Qe(i.properties)&&i.properties||[r]).forEach(o=>{(o===r||!n.has(o))&&n.set(o,a)})})}_animateOptions(t,n){let r=n.options,i=qU(t,r);if(!i)return[];let a=this._createAnimations(i,r);return r.$shared&&zU(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){let r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now(),u;for(u=o.length-1;u>=0;--u){let d=o[u];if(d.charAt(0)==="$")continue;if(d==="options"){i.push(...this._animateOptions(t,n));continue}let p=n[d],g=a[d],v=r.get(d);if(g)if(v&&g.active()){g.update(v,p,s);continue}else g.cancel();if(!v||!v.duration){t[d]=p;continue}a[d]=g=new gP(v,t,d,p),i.push(g)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}let r=this._createAnimations(t,n);if(r.length)return ii.add(this._chart,r),!0}};function zU(e,t){let n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){let a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function qU(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function RO(e,t){let n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function HU(e,t,n){if(n===!1)return!1;let r=RO(e,n),i=RO(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function UU(e){let t,n,r,i;return Me(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function vP(e,t){let n=[],r=e._getSortedDatasetMetas(t),i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function IO(e,t,n,r={}){let i=e.keys,a=r.mode==="single",o,s,u,d;if(t!==null){for(o=0,s=i.length;o<s;++o){if(u=+i[o],u===n){if(r.all)continue;break}d=e.values[u],Rt(d)&&(a||t===0||or(t)===or(d))&&(t+=d)}return t}}function BU(e){let t=Object.keys(e),n=new Array(t.length),r,i,a;for(r=0,i=t.length;r<i;++r)a=t[r],n[r]={x:a,y:e[a]};return n}function NO(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function VU(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function jU(e){let{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function $U(e,t,n){let r=e[t]||(e[t]={});return r[n]||(r[n]={})}function LO(e,t,n,r){for(let i of t.getMatchingVisibleMetas(r).reverse()){let a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function FO(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,u=a.axis,d=o.axis,p=VU(a,o,r),g=t.length,v;for(let S=0;S<g;++S){let C=t[S],{[u]:x,[d]:w}=C,_=C._stacks||(C._stacks={});v=_[d]=$U(i,p,x),v[s]=w,v._top=LO(v,o,!0,r.type),v._bottom=LO(v,o,!1,r.type)}}function j0(e,t){let n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function QU(e,t){return ri(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function GU(e,t,n){return ri(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ou(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(let i of t){let a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n]}}}var $0=e=>e==="reset"||e==="none",AO=(e,t)=>t?e:Object.assign({},e),XU=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:vP(n,!0),values:null},sr=class{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=NO(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&ou(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(g,v,S,C)=>g==="x"?v:g==="r"?C:S,a=n.xAxisID=be(r.xAxisID,j0(t,"x")),o=n.yAxisID=be(r.yAxisID,j0(t,"y")),s=n.rAxisID=be(r.rAxisID,j0(t,"r")),u=n.indexAxis,d=n.iAxisID=i(u,a,o,s),p=n.vAxisID=i(u,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(d),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&A0(this._data,this),t._stacked&&ou(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Me(n))this._data=BU(n);else if(r!==n){if(r){A0(r,this);let i=this._cachedMeta;ou(i),i._parsed=[]}n&&Object.isExtensible(n)&&mO(n,this),this._syncList=[],this._data=n}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let n=this._cachedMeta,r=this.getDataset(),i=!1;this._dataCheck();let a=n._stacked;n._stacked=NO(n.vScale,n),n.stack!==r.stack&&(i=!0,ou(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&FO(this,n._parsed)}configure(){let t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){let{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis,u=t===0&&n===i.length?!0:r._sorted,d=t>0&&r._parsed[t-1],p,g,v;if(this._parsing===!1)r._parsed=i,r._sorted=!0,v=i;else{Qe(i[t])?v=this.parseArrayData(r,i,t,n):Me(i[t])?v=this.parseObjectData(r,i,t,n):v=this.parsePrimitiveData(r,i,t,n);let S=()=>g[s]===null||d&&g[s]<d[s];for(p=0;p<n;++p)r._parsed[p+t]=g=v[p],u&&(S()&&(u=!1),d=g);r._sorted=u}o&&FO(this,v)}parsePrimitiveData(t,n,r,i){let{iScale:a,vScale:o}=t,s=a.axis,u=o.axis,d=a.getLabels(),p=a===o,g=new Array(i),v,S,C;for(v=0,S=i;v<S;++v)C=v+r,g[v]={[s]:p||a.parse(d[C],C),[u]:o.parse(n[C],C)};return g}parseArrayData(t,n,r,i){let{xScale:a,yScale:o}=t,s=new Array(i),u,d,p,g;for(u=0,d=i;u<d;++u)p=u+r,g=n[p],s[u]={x:a.parse(g[0],p),y:o.parse(g[1],p)};return s}parseObjectData(t,n,r,i){let{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:u="y"}=this._parsing,d=new Array(i),p,g,v,S;for(p=0,g=i;p<g;++p)v=p+r,S=n[v],d[p]={x:a.parse(qi(S,s),v),y:o.parse(qi(S,u),v)};return d}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){let i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:vP(i,!0),values:n._stacks[t.axis]};return IO(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){let a=r[n.axis],o=a===null?NaN:a,s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=IO(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){let r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),u=XU(n,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:g}=jU(s),v,S;function C(){S=i[v];let x=S[s.axis];return!Rt(S[t.axis])||p>x||g<x}for(v=0;v<o&&!(!C()&&(this.updateRangeFromParsed(d,t,S,u),a));++v);if(a){for(v=o-1;v>=0;--v)if(!C()){this.updateRangeFromParsed(d,t,S,u);break}}return d}getAllParsedValues(t){let n=this._cachedMeta._parsed,r=[],i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],Rt(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){let n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){let n=this._cachedMeta;this.update(t||"default"),n._clip=UU(be(this.options.clip,HU(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,u=this._drawCount||i.length-s,d=this.options.drawActiveElementsOnTop,p;for(r.dataset&&r.dataset.draw(t,a,s,u),p=s;p<s+u;++p){let g=i[p];g.hidden||(g.active&&d?o.push(g):g.draw(t,a))}for(p=0;p<o.length;++p)o[p].draw(t,a)}getStyle(t,n){let r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){let i=this.getDataset(),a;if(t>=0&&t<this._cachedMeta.data.length){let o=this._cachedMeta.data[t];a=o.$context||(o.$context=GU(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=QU(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){let i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],u=this.enableOptionSharing&&kn(r);if(s)return AO(s,u);let d=this.chart.config,p=d.datasetElementScopeKeys(this._type,t),g=i?[`${t}Hover`,"hover",t,""]:[t,""],v=d.getOptionScopes(this.getDataset(),p),S=Object.keys(we.elements[t]),C=()=>this.getContext(r,i),x=d.resolveNamedOptions(v,S,C,g);return x.$shared&&(x.$shared=u,a[o]=Object.freeze(AO(x,u))),x}_resolveAnimations(t,n,r){let i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let u;if(i.options.animation!==!1){let p=this.chart.config,g=p.datasetAnimationScopeKeys(this._type,n),v=p.getOptionScopes(this.getDataset(),g);u=p.createResolver(v,this.getContext(t,r,n))}let d=new a_(i,u&&u.animations);return u&&u._cacheable&&(a[o]=Object.freeze(d)),d}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||$0(t)||this.chart._animationsDisabled}updateElement(t,n,r,i){$0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!$0(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;let a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let n=this._data,r=this._cachedMeta.data;for(let[s,u,d]of this._syncList)this[s](u,d);this._syncList=[];let i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){let i=this._cachedMeta,a=i.data,o=t+n,s,u=d=>{for(d.length+=n,s=d.length-1;s>=o;s--)d[s]=d[s-n]};for(u(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&u(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){let r=this._cachedMeta;if(this._parsing){let i=r._parsed.splice(t,n);r._stacked&&ou(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);let r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};sr.defaults={};sr.prototype.datasetElementType=null;sr.prototype.dataElementType=null;function KU(e,t){if(!e._cache.$bar){let n=e.getMatchingVisibleMetas(t),r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=W0(r.sort((i,a)=>i-a))}return e._cache.$bar}function ZU(e){let t=e.iScale,n=KU(t,e.type),r=t._length,i,a,o,s,u=()=>{o===32767||o===-32768||(kn(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),u();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),u();return r}function JU(e,t,n,r){let i=n.barThickness,a,o;return Oe(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function eB(e,t,n,r){let i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,u=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);let d=a-(a-Math.min(o,s))/2*u;return{chunk:Math.abs(s-o)/2*u/r,ratio:n.barPercentage,start:d}}function tB(e,t,n,r){let i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),u=o,d=s;Math.abs(o)>Math.abs(s)&&(u=s,d=o),t[n.axis]=d,t._custom={barStart:u,barEnd:d,start:i,end:a,min:o,max:s}}function yP(e,t,n,r){return Qe(e)?tB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function WO(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,u=[],d,p,g,v;for(d=n,p=n+r;d<p;++d)v=t[d],g={},g[i.axis]=s||i.parse(o[d],d),u.push(yP(v,g,a,d));return u}function Q0(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function nB(e,t,n){return e!==0?or(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function rB(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function iB(e,t,n,r){let i=t.borderSkipped,a={};if(!i){e.borderSkipped=a;return}let{start:o,end:s,reverse:u,top:d,bottom:p}=rB(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=d:(n._bottom||0)===r?i=p:(a[YO(p,o,s,u)]=!0,i=d)),a[YO(i,o,s,u)]=!0,e.borderSkipped=a}function YO(e,t,n,r){return r?(e=aB(e,t,n),e=zO(e,n,t)):e=zO(e,t,n),e}function aB(e,t,n){return e===t?n:e===n?t:e}function zO(e,t,n){return e==="start"?t:e==="end"?n:e}function oB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}var vu=class extends sr{parsePrimitiveData(t,n,r,i){return WO(t,n,r,i)}parseArrayData(t,n,r,i){return WO(t,n,r,i)}parseObjectData(t,n,r,i){let{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:u="y"}=this._parsing,d=a.axis==="x"?s:u,p=o.axis==="x"?s:u,g=[],v,S,C,x;for(v=r,S=r+i;v<S;++v)x=n[v],C={},C[a.axis]=a.parse(qi(x,d),v),g.push(yP(qi(x,p),C,o,v));return g}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);let a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),o=a._custom,s=Q0(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){let a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,u=s.getBasePixel(),d=s.isHorizontal(),p=this._getRuler(),g=this.resolveDataElementOptions(n,i),v=this.getSharedOptions(g),S=this.includeOptions(i,v);this.updateSharedOptions(v,i,g);for(let C=n;C<n+r;C++){let x=this.getParsed(C),w=a||Oe(x[s.axis])?{base:u,head:u}:this._calculateBarValuePixels(C),_=this._calculateBarIndexPixels(C,p),D=(x._stacks||{})[s.axis],O={horizontal:d,base:w.base,enableBorderRadius:!D||Q0(x._custom)||o===D._top||o===D._bottom,x:d?w.head:_.center,y:d?_.center:w.head,height:d?_.size:Math.abs(w.size),width:d?Math.abs(w.size):_.size};S&&(O.options=v||this.resolveDataElementOptions(C,t[C].active?"active":i));let E=O.options||t[C].options;iB(O,E,D,o),oB(O,E,p.ratio),this.updateElement(t[C],C,O,i)}}_getStacks(t,n){let i=this._cachedMeta.iScale,a=i.getMatchingVisibleMetas(this._type),o=i.options.stacked,s=a.length,u=[],d,p;for(d=0;d<s;++d)if(p=a[d],!!p.controller.options.grouped){if(typeof n<"u"){let g=p.controller.getParsed(n)[p.controller._cachedMeta.vScale.axis];if(Oe(g)||isNaN(g))continue}if((o===!1||u.indexOf(p.stack)===-1||o===void 0&&p.stack===void 0)&&u.push(p.stack),p.index===t)break}return u.length||u.push(void 0),u}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){let i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){let t=this.options,n=this._cachedMeta,r=n.iScale,i=[],a,o;for(a=0,o=n.data.length;a<o;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));let s=t.barThickness;return{min:s||ZU(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:n,_stacked:r},options:{base:i,minBarLength:a}}=this,o=i||0,s=this.getParsed(t),u=s._custom,d=Q0(u),p=s[n.axis],g=0,v=r?this.applyStack(n,s,r):p,S,C;v!==p&&(g=v-p,v=p),d&&(p=u.barStart,v=u.barEnd-u.barStart,p!==0&&or(p)!==or(u.barEnd)&&(g=0),g+=p);let x=!Oe(i)&&!d?i:g,w=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?S=n.getPixelForValue(g+v):S=w,C=S-w,Math.abs(C)<a&&(C=nB(C,n,o)*a,p===o&&(w-=C/2),S=w+C),w===n.getPixelForValue(o)){let _=or(C)*n.getLineWidthForValue(o)/2;w+=_,C-=_}return{size:C,base:w,head:S,center:S+C/2}}_calculateBarIndexPixels(t,n){let r=n.scale,i=this.options,a=i.skipNull,o=be(i.maxBarThickness,1/0),s,u;if(n.grouped){let d=a?this._getStackCount(t):n.stackCount,p=i.barThickness==="flex"?eB(t,n,i,d):JU(t,n,i,d),g=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);s=p.start+p.chunk*g+p.chunk/2,u=Math.min(o,p.chunk*p.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),u=Math.min(o,n.min*n.ratio);return{base:s-u/2,head:s+u/2,center:s,size:u}}draw(){let t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length,a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&r[a].draw(this._ctx)}};vu.id="bar";vu.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};vu.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var yu=class extends sr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){let a=super.parsePrimitiveData(t,n,r,i);for(let o=0;o<a.length;o++)a[o]._custom=this.resolveDataElementOptions(o+r).radius;return a}parseArrayData(t,n,r,i){let a=super.parseArrayData(t,n,r,i);for(let o=0;o<a.length;o++){let s=n[r+o];a[o]._custom=be(s[2],this.resolveDataElementOptions(o+r).radius)}return a}parseObjectData(t,n,r,i){let a=super.parseObjectData(t,n,r,i);for(let o=0;o<a.length;o++){let s=n[r+o];a[o]._custom=be(s&&s.r&&+s.r,this.resolveDataElementOptions(o+r).radius)}return a}getMaxOverflow(){let t=this._cachedMeta.data,n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){let n=this._cachedMeta,{xScale:r,yScale:i}=n,a=this.getParsed(t),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),u=a._custom;return{label:n.label,value:"("+o+", "+s+(u?", "+u:"")+")"}}update(t){let n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){let a=i==="reset",{iScale:o,vScale:s}=this._cachedMeta,u=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(u),p=this.includeOptions(i,d),g=o.axis,v=s.axis;for(let S=n;S<n+r;S++){let C=t[S],x=!a&&this.getParsed(S),w={},_=w[g]=a?o.getPixelForDecimal(.5):o.getPixelForValue(x[g]),D=w[v]=a?s.getBasePixel():s.getPixelForValue(x[v]);w.skip=isNaN(_)||isNaN(D),p&&(w.options=this.resolveDataElementOptions(S,C.active?"active":i),a&&(w.options.radius=0)),this.updateElement(C,S,w,i)}this.updateSharedOptions(d,i,u)}resolveDataElementOptions(t,n){let r=this.getParsed(t),i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));let a=i.radius;return n!=="active"&&(i.radius=0),i.radius+=be(r&&r._custom,a),i}};yu.id="bubble";yu.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};yu.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function sB(e,t,n){let r=1,i=1,a=0,o=0;if(t<Ye){let s=e,u=s+t,d=Math.cos(s),p=Math.sin(s),g=Math.cos(u),v=Math.sin(u),S=(O,E,L)=>Xo(O,s,u,!0)?1:Math.max(E,E*n,L,L*n),C=(O,E,L)=>Xo(O,s,u,!0)?-1:Math.min(E,E*n,L,L*n),x=S(0,d,g),w=S(rt,p,v),_=C(it,d,g),D=C(it+rt,p,v);r=(x-_)/2,i=(w-D)/2,a=-(x+_)/2,o=-(w+D)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var La=class extends sr{constructor(t,n){super(t,n);this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){let r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=u=>+r[u];if(Me(r[t])){let{key:u="value"}=this._parsing;a=d=>+qi(r[d],u)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Qn(this.options.rotation-90)}_getCircumference(){return Qn(this.options.circumference)}_getRotationExtents(){let t=Ye,n=-Ye;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)){let i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){let n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),u=Math.min(XC(this.options.cutout,s),1),d=this._getRingWeight(this.index),{circumference:p,rotation:g}=this._getRotationExtents(),{ratioX:v,ratioY:S,offsetX:C,offsetY:x}=sB(g,p,u),w=(r.width-o)/v,_=(r.height-o)/S,D=Math.max(Math.min(w,_)/2,0),O=b0(this.options.radius,D),E=Math.max(O*u,0),L=(O-E)/this._getVisibleDatasetWeightTotal();this.offsetX=C*O,this.offsetY=x*O,i.total=this.calculateTotal(),this.outerRadius=O-L*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-L*d,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){let r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Ye)}updateElements(t,n,r,i){let a=i==="reset",o=this.chart,s=o.chartArea,d=o.options.animation,p=(s.left+s.right)/2,g=(s.top+s.bottom)/2,v=a&&d.animateScale,S=v?0:this.innerRadius,C=v?0:this.outerRadius,x=this.resolveDataElementOptions(n,i),w=this.getSharedOptions(x),_=this.includeOptions(i,w),D=this._getRotation(),O;for(O=0;O<n;++O)D+=this._circumference(O,a);for(O=n;O<n+r;++O){let E=this._circumference(O,a),L=t[O],Y={x:p+this.offsetX,y:g+this.offsetY,startAngle:D,endAngle:D+E,circumference:E,outerRadius:C,innerRadius:S};_&&(Y.options=w||this.resolveDataElementOptions(O,L.active?"active":i)),D+=E,this.updateElement(L,O,Y,i)}this.updateSharedOptions(w,i,x)}calculateTotal(){let t=this._cachedMeta,n=t.data,r=0,i;for(i=0;i<n.length;i++){let a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){let n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ye*(Math.abs(t)/n):0}getLabelAndValue(t){let n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Zo(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0,r=this.chart,i,a,o,s,u;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)u=s.resolveDataElementOptions(i),u.borderAlign!=="inner"&&(n=Math.max(n,u.borderWidth||0,u.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){let a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(be(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};La.id="doughnut";La.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};La.descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"};La.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{let o=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){let t=e.label,n=": "+e.formattedValue;return Qe(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};var Fa=class extends sr{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){let n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled,{start:s,count:u}=lB(n,i,o);this._drawStart=s,this._drawCount=u,uB(n)&&(s=0,u=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;let d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:d},t),this.updateElements(i,s,u,t)}updateElements(t,n,r,i){let a=i==="reset",{iScale:o,vScale:s,_stacked:u,_dataset:d}=this._cachedMeta,p=this.resolveDataElementOptions(n,i),g=this.getSharedOptions(p),v=this.includeOptions(i,g),S=o.axis,C=s.axis,{spanGaps:x,segment:w}=this.options,_=Qo(x)?x:Number.POSITIVE_INFINITY,D=this.chart._animationsDisabled||a||i==="none",O=n>0&&this.getParsed(n-1);for(let E=n;E<n+r;++E){let L=t[E],Y=this.getParsed(E),q=D?L:{},B=Oe(Y[C]),V=q[S]=o.getPixelForValue(Y[S],E),re=q[C]=a||B?s.getBasePixel():s.getPixelForValue(u?this.applyStack(s,Y,u):Y[C],E);q.skip=isNaN(V)||isNaN(re)||B,q.stop=E>0&&Y[S]-O[S]>_,w&&(q.parsed=Y,q.raw=d.data[E]),v&&(q.options=g||this.resolveDataElementOptions(E,L.active?"active":i)),D||this.updateElement(L,E,q,i),O=Y}this.updateSharedOptions(g,i,p)}getMaxOverflow(){let t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;let a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}};Fa.id="line";Fa.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};Fa.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};function lB(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,_parsed:s}=e,u=o.axis,{min:d,max:p,minDefined:g,maxDefined:v}=o.getUserBounds();g&&(i=Yt(Math.min(Bi(s,o.axis,d).lo,n?r:Bi(t,u,o.getPixelForValue(d)).lo),0,r-1)),v?a=Yt(Math.max(Bi(s,o.axis,p).hi+1,n?0:Bi(t,u,o.getPixelForValue(p)).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function uB(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var _u=class extends sr{constructor(t,n){super(t,n);this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Zo(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:a}}update(t){let n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}_updateRadius(){let t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),o=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),s=(a-o)/t.getVisibleDatasetCount();this.outerRadius=a-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,n,r,i){let a=i==="reset",o=this.chart,s=this.getDataset(),d=o.options.animation,p=this._cachedMeta.rScale,g=p.xCenter,v=p.yCenter,S=p.getIndexAngle(0)-.5*it,C=S,x,w=360/this.countVisibleElements();for(x=0;x<n;++x)C+=this._computeAngle(x,i,w);for(x=n;x<n+r;x++){let _=t[x],D=C,O=C+this._computeAngle(x,i,w),E=o.getDataVisibility(x)?p.getDistanceFromCenterForValue(s.data[x]):0;C=O,a&&(d.animateScale&&(E=0),d.animateRotate&&(D=O=S));let L={x:g,y:v,innerRadius:0,outerRadius:E,startAngle:D,endAngle:O,options:this.resolveDataElementOptions(x,_.active?"active":i)};this.updateElement(_,x,L,i)}}countVisibleElements(){let t=this.getDataset(),n=this._cachedMeta,r=0;return n.data.forEach((i,a)=>{!isNaN(t.data[a])&&this.chart.getDataVisibility(a)&&r++}),r}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Qn(this.resolveDataElementOptions(t,n).angle||r):0}};_u.id="polarArea";_u.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};_u.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{let o=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var yp=class extends La{};yp.id="pie";yp.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var wu=class extends sr{getLabelAndValue(t){let n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}update(t){let n=this._cachedMeta,r=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(r.points=i,t!=="resize"){let o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);let s={_loop:!0,_fullLoop:a.length===i.length,options:o};this.updateElement(r,void 0,s,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){let a=this.getDataset(),o=this._cachedMeta.rScale,s=i==="reset";for(let u=n;u<n+r;u++){let d=t[u],p=this.resolveDataElementOptions(u,d.active?"active":i),g=o.getPointPositionForValue(u,a.data[u]),v=s?o.xCenter:g.x,S=s?o.yCenter:g.y,C={x:v,y:S,angle:g.angle,skip:isNaN(v)||isNaN(S),options:p};this.updateElement(d,u,C,i)}}};wu.id="radar";wu.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};wu.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var xu=class extends Fa{};xu.id="scatter";xu.defaults={showLine:!1,fill:!1};xu.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Na(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var hp=class{constructor(t){this.options=t||{}}formats(){return Na()}parse(t,n){return Na()}format(t,n){return Na()}add(t,n,r){return Na()}diff(t,n,r){return Na()}startOf(t,n,r){return Na()}endOf(t,n){return Na()}};hp.override=function(e){Object.assign(hp.prototype,e)};var o_={_date:hp};function du(e,t){return"native"in e?{x:e.x,y:e.y}:U0(e,t)}function cB(e,t){let n=e.getSortedVisibleDatasetMetas(),r,i,a;for(let o=0,s=n.length;o<s;++o){({index:r,data:i}=n[o]);for(let u=0,d=i.length;u<d;++u)a=i[u],a.skip||t(a,r,u)}}function dB(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){let u=s._reversePixels?fO:Bi;if(r){if(i._sharedOptions){let d=a[0],p=typeof d.getRange=="function"&&d.getRange(t);if(p){let g=u(a,t,n-p),v=u(a,t,n+p);return{lo:g.lo,hi:v.hi}}}}else return u(a,t,n)}return{lo:0,hi:a.length-1}}function s_(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,u=a.length;s<u;++s){let{index:d,data:p}=a[s],{lo:g,hi:v}=dB(a[s],t,o,i);for(let S=g;S<=v;++S){let C=p[S];C.skip||r(C,d,S)}}}function fB(e){let t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){let a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function G0(e,t,n,r){let i=[];return zi(t,e.chartArea,e._minPadding)&&s_(e,n,t,function(o,s,u){o.inRange(t.x,t.y,r)&&i.push({element:o,datasetIndex:s,index:u})},!0),i}function hB(e,t,n,r){let i=[];function a(o,s,u){let{startAngle:d,endAngle:p}=o.getProps(["startAngle","endAngle"],r),{angle:g}=C0(o,{x:t.x,y:t.y});Xo(g,d,p)&&i.push({element:o,datasetIndex:s,index:u})}return s_(e,n,t,a),i}function pB(e,t,n,r,i){let a=[],o=fB(n),s=Number.POSITIVE_INFINITY;function u(d,p,g){let v=d.inRange(t.x,t.y,i);if(r&&!v)return;let S=d.getCenterPoint(i);if(!zi(S,e.chartArea,e._minPadding)&&!v)return;let x=o(t,S);x<s?(a=[{element:d,datasetIndex:p,index:g}],s=x):x===s&&a.push({element:d,datasetIndex:p,index:g})}return s_(e,n,t,u),a}function X0(e,t,n,r,i){return zi(t,e.chartArea,e._minPadding)?n==="r"&&!r?hB(e,t,n,i):pB(e,t,n,r,i):[]}function qO(e,t,n,r){let i=du(t,e),a=[],o=n.axis,s=o==="x"?"inXRange":"inYRange",u=!1;return cB(e,(d,p,g)=>{d[s](i[o],r)&&a.push({element:d,datasetIndex:p,index:g}),d.inRange(i.x,i.y,r)&&(u=!0)}),n.intersect&&!u?[]:a}var mB={modes:{index(e,t,n,r){let i=du(t,e),a=n.axis||"x",o=n.intersect?G0(e,i,a,r):X0(e,i,a,!1,r),s=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{let d=o[0].index,p=u.data[d];p&&!p.skip&&s.push({element:p,datasetIndex:u.index,index:d})}),s):[]},dataset(e,t,n,r){let i=du(t,e),a=n.axis||"xy",o=n.intersect?G0(e,i,a,r):X0(e,i,a,!1,r);if(o.length>0){let s=o[0].datasetIndex,u=e.getDatasetMeta(s).data;o=[];for(let d=0;d<u.length;++d)o.push({element:u[d],datasetIndex:s,index:d})}return o},point(e,t,n,r){let i=du(t,e),a=n.axis||"xy";return G0(e,i,a,r)},nearest(e,t,n,r){let i=du(t,e),a=n.axis||"xy";return X0(e,i,a,n.intersect,r)},x(e,t,n,r){return qO(e,t,{axis:"x",intersect:n.intersect},r)},y(e,t,n,r){return qO(e,t,{axis:"y",intersect:n.intersect},r)}}},_P=["left","top","right","bottom"];function su(e,t){return e.filter(n=>n.pos===t)}function HO(e,t){return e.filter(n=>_P.indexOf(n.pos)===-1&&n.box.axis===t)}function lu(e,t){return e.sort((n,r)=>{let i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function gB(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function vB(e){let t={};for(let n of e){let{stack:r,pos:i,stackWeight:a}=n;if(!r||!_P.includes(i))continue;let o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function yB(e,t){let n=vB(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t,a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];let{fullSize:u}=s.box,d=n[s.stack],p=d&&s.stackWeight/d.weight;s.horizontal?(s.width=p?p*r:u&&t.availableWidth,s.height=i):(s.width=r,s.height=p?p*i:u&&t.availableHeight)}return n}function _B(e){let t=gB(e),n=lu(t.filter(d=>d.box.fullSize),!0),r=lu(su(t,"left"),!0),i=lu(su(t,"right")),a=lu(su(t,"top"),!0),o=lu(su(t,"bottom")),s=HO(t,"x"),u=HO(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(o).concat(s),chartArea:su(t,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(o).concat(s)}}function UO(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function wP(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function wB(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!Me(i)){n.size&&(e[i]-=n.size);let g=r[n.stack]||{size:0,count:1};g.size=Math.max(g.size,n.horizontal?a.height:a.width),n.size=g.size/g.count,e[i]+=n.size}a.getPadding&&wP(o,a.getPadding());let s=Math.max(0,t.outerWidth-UO(o,e,"left","right")),u=Math.max(0,t.outerHeight-UO(o,e,"top","bottom")),d=s!==e.w,p=u!==e.h;return e.w=s,e.h=u,n.horizontal?{same:d,other:p}:{same:p,other:d}}function xB(e){let t=e.maxPadding;function n(r){let i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function bB(e,t){let n=t.maxPadding;function r(i){let a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function fu(e,t,n,r){let i=[],a,o,s,u,d,p;for(a=0,o=e.length,d=0;a<o;++a){s=e[a],u=s.box,u.update(s.width||t.w,s.height||t.h,bB(s.horizontal,t));let{same:g,other:v}=wB(t,n,s,r);d|=g&&i.length,p=p||v,u.fullSize||i.push(s)}return d&&fu(i,t,n,r)||p}function op(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function BO(e,t,n,r){let i=n.padding,{x:a,y:o}=t;for(let s of e){let u=s.box,d=r[s.stack]||{count:1,placed:0,weight:1},p=s.stackWeight/d.weight||1;if(s.horizontal){let g=t.w*p,v=d.size||u.height;kn(d.start)&&(o=d.start),u.fullSize?op(u,i.left,o,n.outerWidth-i.right-i.left,v):op(u,t.left+d.placed,o,g,v),d.start=o,d.placed+=g,o=u.bottom}else{let g=t.h*p,v=d.size||u.width;kn(d.start)&&(a=d.start),u.fullSize?op(u,a,i.top,v,n.outerHeight-i.bottom-i.top):op(u,a,t.top+d.placed,v,g),d.start=a,d.placed+=g,a=u.right}}t.x=a,t.y=o}we.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var sp={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){let n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;let i=On(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=_B(e.boxes),u=s.vertical,d=s.horizontal;Pe(e.boxes,x=>{typeof x.beforeLayout=="function"&&x.beforeLayout()});let p=u.reduce((x,w)=>w.box.options&&w.box.options.display===!1?x:x+1,0)||1,g=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/p,hBoxMaxHeight:o/2}),v=Object.assign({},i);wP(v,On(r));let S=Object.assign({maxPadding:v,w:a,h:o,x:i.left,y:i.top},i),C=yB(u.concat(d),g);fu(s.fullSize,S,g,C),fu(u,S,g,C),fu(d,S,g,C)&&fu(u,S,g,C),xB(S),BO(s.leftAndTop,S,g,C),S.x+=S.w,S.y+=S.h,BO(s.rightAndBottom,S,g,C),e.chartArea={left:S.left,top:S.top,right:S.left+S.w,bottom:S.top+S.h,height:S.h,width:S.w},Pe(s.chartArea,x=>{let w=x.box;Object.assign(w,e.chartArea),w.update(S.w,S.h,{left:0,top:0,right:0,bottom:0})})}},l_=class{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}},xP=class extends l_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},fp="$chartjs",SB={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},VO=e=>e===null||e==="";function MB(e,t){let n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[fp]={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",VO(i)){let a=V0(e,"width");a!==void 0&&(e.width=a)}if(VO(r))if(e.style.height==="")e.height=e.width/(t||2);else{let a=V0(e,"height");a!==void 0&&(e.height=a)}return e}var bP=bO?{passive:!0}:!1;function kB(e,t,n){e.addEventListener(t,n,bP)}function DB(e,t,n){e.canvas.removeEventListener(t,n,bP)}function CB(e,t){let n=SB[e.type]||e.type,{x:r,y:i}=U0(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function pp(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function OB(e,t,n){let r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(let s of a)o=o||pp(s.addedNodes,r),o=o&&!pp(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function PB(e,t,n){let r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(let s of a)o=o||pp(s.removedNodes,r),o=o&&!pp(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var mu=new Map,jO=0;function SP(){let e=window.devicePixelRatio;e!==jO&&(jO=e,mu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function TB(e,t){mu.size||window.addEventListener("resize",SP),mu.set(e,t)}function EB(e){mu.delete(e),mu.size||window.removeEventListener("resize",SP)}function RB(e,t,n){let r=e.canvas,i=r&&rp(r);if(!i)return;let a=w0((s,u)=>{let d=i.clientWidth;n(s,u),d<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{let u=s[0],d=u.contentRect.width,p=u.contentRect.height;d===0&&p===0||a(d,p)});return o.observe(i),TB(e,a),o}function K0(e,t,n){n&&n.disconnect(),t==="resize"&&EB(e)}function IB(e,t,n){let r=e.canvas,i=w0(a=>{e.ctx!==null&&n(CB(a,e))},e,a=>{let o=a[0];return[o,o.offsetX,o.offsetY]});return kB(r,t,i),i}var MP=class extends l_{acquireContext(t,n){let r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(MB(t,n),r):null}releaseContext(t){let n=t.canvas;if(!n[fp])return!1;let r=n[fp].initial;["height","width"].forEach(a=>{let o=r[a];Oe(o)?n.removeAttribute(a):n.setAttribute(a,o)});let i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[fp],!0}addEventListener(t,n,r){this.removeEventListener(t,n);let i=t.$proxies||(t.$proxies={}),o={attach:OB,detach:PB,resize:RB}[n]||IB;i[n]=o(t,n,r)}removeEventListener(t,n){let r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:K0,detach:K0,resize:K0}[n]||DB)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return xO(t,n,r,i)}isAttached(t){let n=rp(t);return!!(n&&n.isConnected)}};function NB(e){return!H0()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?xP:MP}var Lr=class{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){let{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Qo(this.x)&&Qo(this.y)}getProps(t,n){let r=this.$animations;if(!n||!r)return this;let i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}};Lr.defaults={};Lr.defaultRoutes=void 0;var kP={values(e){return Qe(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";let r=this.chart.options.locale,i,a=e;if(n.length>1){let d=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(d<1e-4||d>1e15)&&(i="scientific"),a=LB(e,n)}let o=Cn(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(u,this.options.ticks.format),Zo(e,r,u)},logarithmic(e,t,n){if(e===0)return"0";let r=e/Math.pow(10,Math.floor(Cn(e)));return r===1||r===2||r===5?kP.numeric.call(this,e,t,n):""}};function LB(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var _p={formatters:kP};we.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:_p.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});we.route("scale.ticks","color","","color");we.route("scale.grid","color","","borderColor");we.route("scale.grid","borderColor","","borderColor");we.route("scale.title","color","","color");we.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"});we.describe("scales",{_fallback:"scale"});we.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"});function FB(e,t){let n=e.options.ticks,r=n.maxTicksLimit||AB(e),i=n.major.enabled?YB(t):[],a=i.length,o=i[0],s=i[a-1],u=[];if(a>r)return zB(t,u,i,a/r),u;let d=WB(i,t,r);if(a>0){let p,g,v=a>1?Math.round((s-o)/(a-1)):null;for(lp(t,u,d,Oe(v)?0:o-v,o),p=0,g=a-1;p<g;p++)lp(t,u,d,i[p],i[p+1]);return lp(t,u,d,s,Oe(v)?t.length:s+v),u}return lp(t,u,d),u}function AB(e){let t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function WB(e,t,n){let r=qB(e),i=t.length/n;if(!r)return Math.max(i,1);let a=JC(r);for(let o=0,s=a.length-1;o<s;o++){let u=a[o];if(u>i)return u}return Math.max(i,1)}function YB(e){let t=[],n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function zB(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function lp(e,t,n,r,i){let a=be(r,0),o=Math.min(be(i,e.length),e.length),s=0,u,d,p;for(n=Math.ceil(n),i&&(u=i-r,n=u/Math.floor(u/n)),p=a;p<0;)s++,p=Math.round(a+s*n);for(d=Math.max(a,0);d<o;d++)d===p&&(t.push(e[d]),s++,p=Math.round(a+s*n))}function qB(e){let t=e.length,n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}var HB=e=>e==="left"?"right":e==="right"?"left":e,$O=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function QO(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function UB(e,t,n){let r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6,u=e.getPixelForTick(i),d;if(!(n&&(r===1?d=Math.max(u-a,o-u):t===0?d=(e.getPixelForTick(1)-u)/2:d=(u-e.getPixelForTick(i-1))/2,u+=i<t?d:-d,u<a-s||u>o+s)))return u}function BB(e,t){Pe(e,n=>{let r=n.gc,i=r.length/2,a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function uu(e){return e.drawTicks?e.tickLength:0}function GO(e,t){if(!e.display)return 0;let n=_n(e.font,t),r=On(e.padding);return(Qe(e.text)?e.text.length:1)*n.lineHeight+r.height}function VB(e,t){return ri(e,{scale:t,type:"scale"})}function jB(e,t,n){return ri(e,{tick:n,index:t,type:"tick"})}function $B(e,t,n){let r=QC(e);return(n&&t!=="right"||!n&&t==="right")&&(r=HB(r)),r}function QB(e,t,n,r){let{top:i,left:a,bottom:o,right:s,chart:u}=e,{chartArea:d,scales:p}=u,g=0,v,S,C,x=o-i,w=s-a;if(e.isHorizontal()){if(S=x0(r,a,s),Me(n)){let _=Object.keys(n)[0],D=n[_];C=p[_].getPixelForValue(D)+x-t}else n==="center"?C=(d.bottom+d.top)/2+x-t:C=$O(e,n,t);v=s-a}else{if(Me(n)){let _=Object.keys(n)[0],D=n[_];S=p[_].getPixelForValue(D)-w+t}else n==="center"?S=(d.left+d.right)/2-w+t:S=$O(e,n,t);C=x0(r,o,i),g=n==="left"?-rt:rt}return{titleX:S,titleY:C,maxWidth:v,rotation:g}}var $i=class extends Lr{constructor(t){super();this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Dn(t,Number.POSITIVE_INFINITY),n=Dn(n,Number.NEGATIVE_INFINITY),r=Dn(r,Number.POSITIVE_INFINITY),i=Dn(i,Number.NEGATIVE_INFINITY),{min:Dn(t,r),max:Dn(n,i),minDefined:Rt(t),maxDefined:Rt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};let s=this.getMatchingVisibleMetas();for(let u=0,d=s.length;u<d;++u)o=s[u].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Dn(n,Dn(r,n)),max:Dn(r,Dn(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(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){at(this.options.beforeUpdate,[this])}update(t,n,r){let{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=dO(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let u=s<this.ticks.length;this._convertTicksToLabels(u?QO(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=FB(this,this.ticks),this._labelSizes=null),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){at(this.options.afterUpdate,[this])}beforeSetDimensions(){at(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(){at(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),at(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){at(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let n=this.options.ticks,r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=at(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){at(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){at(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,a=n.maxRotation,o=i,s,u,d;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}let p=this._getLabelSizes(),g=p.widest.width,v=p.highest.height,S=Yt(this.chart.width-g,0,this.maxWidth);s=t.offset?this.maxWidth/r:S/(r-1),g+6>s&&(s=S/(r-(t.offset?.5:1)),u=this.maxHeight-uu(t.grid)-n.padding-GO(t.title,this.chart.options.font),d=Math.sqrt(g*g+v*v),o=Gh(Math.min(Math.asin(Yt((p.highest.height+6)/s,-1,1)),Math.asin(Yt(u/d,-1,1))-Math.asin(Yt(v/d,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){at(this.options.afterCalculateLabelRotation,[this])}beforeFit(){at(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){let u=GO(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=uu(a)+u):(t.height=this.maxHeight,t.width=uu(a)+u),r.display&&this.ticks.length){let{first:d,last:p,widest:g,highest:v}=this._getLabelSizes(),S=r.padding*2,C=Qn(this.labelRotation),x=Math.cos(C),w=Math.sin(C);if(s){let _=r.mirror?0:w*g.width+x*v.height;t.height=Math.min(this.maxHeight,t.height+_+S)}else{let _=r.mirror?0:x*g.width+w*v.height;t.width=Math.min(this.maxWidth,t.width+_+S)}this._calculatePadding(d,p,w,x)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){let{ticks:{align:a,padding:o},position:s}=this.options,u=this.labelRotation!==0,d=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let p=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1),v=0,S=0;u?d?(v=i*t.width,S=r*n.height):(v=r*t.height,S=i*n.width):a==="start"?S=n.width:a==="end"?v=t.width:(v=t.width/2,S=n.width/2),this.paddingLeft=Math.max((v-p+o)*this.width/(this.width-p),0),this.paddingRight=Math.max((S-g+o)*this.width/(this.width-g),0)}else{let p=n.height/2,g=t.height/2;a==="start"?(p=0,g=t.height):a==="end"&&(p=n.height,g=0),this.paddingTop=p+o,this.paddingBottom=g+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(){at(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Oe(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let n=this.options.ticks.sampleSize,r=this.ticks;n<r.length&&(r=QO(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){let{ctx:r,_longestTextCache:i}=this,a=[],o=[],s=0,u=0,d,p,g,v,S,C,x,w,_,D,O;for(d=0;d<n;++d){if(v=t[d].label,S=this._resolveTickFontOptions(d),r.font=C=S.string,x=i[C]=i[C]||{data:{},gc:[]},w=S.lineHeight,_=D=0,!Oe(v)&&!Qe(v))_=eu(r,x.data,x.gc,_,v),D=w;else if(Qe(v))for(p=0,g=v.length;p<g;++p)O=v[p],!Oe(O)&&!Qe(O)&&(_=eu(r,x.data,x.gc,_,O),D+=w);a.push(_),o.push(D),s=Math.max(_,s),u=Math.max(D,u)}BB(i,n);let E=a.indexOf(s),L=o.indexOf(u),Y=q=>({width:a[q]||0,height:o[q]||0});return{first:Y(0),last:Y(n-1),widest:Y(E),highest:Y(L),widths:a,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let n=this._startPixel+t*this._length;return tO(this._alignToPixels?Ui(this.chart,n,0):n)}getDecimalForPixel(t){let n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){let n=this.ticks||[];if(t>=0&&t<n.length){let r=n[t];return r.$context||(r.$context=jB(this.getContext(),t,r))}return this.$context||(this.$context=VB(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,n=Qn(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,u=a?a.highest.height+o:0;return this.isHorizontal()?u*r>s*i?s/r:u/i:u*i<s*r?u/r:s/i}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let n=this.axis,r=this.chart,i=this.options,{grid:a,position:o}=i,s=a.offset,u=this.isHorizontal(),p=this.ticks.length+(s?1:0),g=uu(a),v=[],S=a.setContext(this.getContext()),C=S.drawBorder?S.borderWidth:0,x=C/2,w=function(ae){return Ui(r,ae,C)},_,D,O,E,L,Y,q,B,V,re,J,ue;if(o==="top")_=w(this.bottom),Y=this.bottom-g,B=_-x,re=w(t.top)+x,ue=t.bottom;else if(o==="bottom")_=w(this.top),re=t.top,ue=w(t.bottom)-x,Y=_+x,B=this.top+g;else if(o==="left")_=w(this.right),L=this.right-g,q=_-x,V=w(t.left)+x,J=t.right;else if(o==="right")_=w(this.left),V=t.left,J=w(t.right)-x,L=_+x,q=this.left+g;else if(n==="x"){if(o==="center")_=w((t.top+t.bottom)/2+.5);else if(Me(o)){let ae=Object.keys(o)[0],oe=o[ae];_=w(this.chart.scales[ae].getPixelForValue(oe))}re=t.top,ue=t.bottom,Y=_+x,B=Y+g}else if(n==="y"){if(o==="center")_=w((t.left+t.right)/2);else if(Me(o)){let ae=Object.keys(o)[0],oe=o[ae];_=w(this.chart.scales[ae].getPixelForValue(oe))}L=_-x,q=L-g,V=t.left,J=t.right}let ge=be(i.ticks.maxTicksLimit,p),ve=Math.max(1,Math.ceil(p/ge));for(D=0;D<p;D+=ve){let ae=a.setContext(this.getContext(D)),oe=ae.lineWidth,pe=ae.color,de=a.borderDash||[],Te=ae.borderDashOffset,Je=ae.tickWidth,ot=ae.tickColor,Ee=ae.tickBorderDash||[],ne=ae.tickBorderDashOffset;O=UB(this,D,s),O!==void 0&&(E=Ui(r,O,oe),u?L=q=V=J=E:Y=B=re=ue=E,v.push({tx1:L,ty1:Y,tx2:q,ty2:B,x1:V,y1:re,x2:J,y2:ue,width:oe,color:pe,borderDash:de,borderDashOffset:Te,tickWidth:Je,tickColor:ot,tickBorderDash:Ee,tickBorderDashOffset:ne}))}return this._ticksLength=p,this._borderValue=_,v}_computeLabelItems(t){let n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:u,crossAlign:d,padding:p,mirror:g}=a,v=uu(r.grid),S=v+p,C=g?-p:S,x=-Qn(this.labelRotation),w=[],_,D,O,E,L,Y,q,B,V,re,J,ue,ge="middle";if(i==="top")Y=this.bottom-C,q=this._getXAxisLabelAlignment();else if(i==="bottom")Y=this.top+C,q=this._getXAxisLabelAlignment();else if(i==="left"){let ae=this._getYAxisLabelAlignment(v);q=ae.textAlign,L=ae.x}else if(i==="right"){let ae=this._getYAxisLabelAlignment(v);q=ae.textAlign,L=ae.x}else if(n==="x"){if(i==="center")Y=(t.top+t.bottom)/2+S;else if(Me(i)){let ae=Object.keys(i)[0],oe=i[ae];Y=this.chart.scales[ae].getPixelForValue(oe)+S}q=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")L=(t.left+t.right)/2-S;else if(Me(i)){let ae=Object.keys(i)[0],oe=i[ae];L=this.chart.scales[ae].getPixelForValue(oe)}q=this._getYAxisLabelAlignment(v).textAlign}n==="y"&&(u==="start"?ge="top":u==="end"&&(ge="bottom"));let ve=this._getLabelSizes();for(_=0,D=s.length;_<D;++_){O=s[_],E=O.label;let ae=a.setContext(this.getContext(_));B=this.getPixelForTick(_)+a.labelOffset,V=this._resolveTickFontOptions(_),re=V.lineHeight,J=Qe(E)?E.length:1;let oe=J/2,pe=ae.color,de=ae.textStrokeColor,Te=ae.textStrokeWidth;o?(L=B,i==="top"?d==="near"||x!==0?ue=-J*re+re/2:d==="center"?ue=-ve.highest.height/2-oe*re+re:ue=-ve.highest.height+re/2:d==="near"||x!==0?ue=re/2:d==="center"?ue=ve.highest.height/2-oe*re:ue=ve.highest.height-J*re,g&&(ue*=-1)):(Y=B,ue=(1-J)*re/2);let Je;if(ae.showLabelBackdrop){let ot=On(ae.backdropPadding),Ee=ve.heights[_],ne=ve.widths[_],Be=Y+ue-ot.top,Fe=L-ot.left;switch(ge){case"middle":Be-=Ee/2;break;case"bottom":Be-=Ee;break}switch(q){case"center":Fe-=ne/2;break;case"right":Fe-=ne;break}Je={left:Fe,top:Be,width:ne+ot.width,height:Ee+ot.height,color:ae.backdropColor}}w.push({rotation:x,label:E,font:V,color:pe,strokeColor:de,strokeWidth:Te,textOffset:ue,textAlign:q,textBaseline:ge,translation:[L,Y],backdrop:Je})}return w}_getXAxisLabelAlignment(){let{position:t,ticks:n}=this.options;if(-Qn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"&&(i="right"),i}_getYAxisLabelAlignment(t){let{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,u=o.widest.width,d,p;return n==="left"?i?(p=this.right+a,r==="near"?d="left":r==="center"?(d="center",p+=u/2):(d="right",p+=u)):(p=this.right-s,r==="near"?d="right":r==="center"?(d="center",p-=u/2):(d="left",p=this.left)):n==="right"?i?(p=this.left+a,r==="near"?d="right":r==="center"?(d="center",p-=u/2):(d="left",p-=u)):(p=this.left+s,r==="near"?d="left":r==="center"?(d="center",p+=u/2):(d="right",p=this.right)):d="right",{textAlign:d,x:p}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){let n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),a,o,s=(u,d,p)=>{!p.width||!p.color||(r.save(),r.lineWidth=p.width,r.strokeStyle=p.color,r.setLineDash(p.borderDash||[]),r.lineDashOffset=p.borderDashOffset,r.beginPath(),r.moveTo(u.x,u.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){let u=i[a];n.drawOnChartArea&&s({x:u.x1,y:u.y1},{x:u.x2,y:u.y2},u),n.drawTicks&&s({x:u.tx1,y:u.ty1},{x:u.tx2,y:u.ty2},{color:u.tickColor,width:u.tickWidth,borderDash:u.tickBorderDash,borderDashOffset:u.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:n,options:{grid:r}}=this,i=r.setContext(this.getContext()),a=r.drawBorder?i.borderWidth:0;if(!a)return;let o=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue,u,d,p,g;this.isHorizontal()?(u=Ui(t,this.left,a)-a/2,d=Ui(t,this.right,o)+o/2,p=g=s):(p=Ui(t,this.top,a)-a/2,g=Ui(t,this.bottom,o)+o/2,u=d=s),n.save(),n.lineWidth=i.borderWidth,n.strokeStyle=i.borderColor,n.beginPath(),n.moveTo(u,p),n.lineTo(d,g),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;let r=this.ctx,i=this._computeLabelArea();i&&N0(r,i);let a=this._labelItems||(this._labelItems=this._computeLabelItems(t)),o,s;for(o=0,s=a.length;o<s;++o){let u=a[o],d=u.font,p=u.label;u.backdrop&&(r.fillStyle=u.backdrop.color,r.fillRect(u.backdrop.left,u.backdrop.top,u.backdrop.width,u.backdrop.height));let g=u.textOffset;iu(r,p,0,g,d,u)}i&&L0(r)}drawTitle(){let{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;let a=_n(r.font),o=On(r.padding),s=r.align,u=a.lineHeight/2;n==="bottom"||n==="center"||Me(n)?(u+=o.bottom,Qe(r.text)&&(u+=a.lineHeight*(r.text.length-1))):u+=o.top;let{titleX:d,titleY:p,maxWidth:g,rotation:v}=QB(this,u,n,s);iu(t,r.text,0,0,a,{color:r.color,maxWidth:g,rotation:v,textAlign:$B(s,n,i),textBaseline:"middle",translation:[d,p]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,r=be(t.grid&&t.grid.z,-1);return!this._isVisible()||this.draw!==$i.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){let n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[],a,o;for(a=0,o=n.length;a<o;++a){let s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){let n=this.options.ticks.setContext(this.getContext(t));return _n(n.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},hu=class{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let n=Object.getPrototypeOf(t),r;KB(n)&&(r=this.register(n));let i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,GB(t,o,r),this.override&&we.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){let n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in we[i]&&(delete we[i][r],this.override&&delete Hi[r])}};function GB(e,t,n){let r=Vo(Object.create(null),[n?we.get(n):{},we.get(t),e.defaults]);we.set(t,r),e.defaultRoutes&&XB(t,e.defaultRoutes),e.descriptors&&we.describe(t,e.descriptors)}function XB(e,t){Object.keys(t).forEach(n=>{let r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),u=o.join(".");we.route(a,i,u,s)})}function KB(e){return"id"in e&&"defaults"in e}var DP=class{constructor(){this.controllers=new hu(sr,"datasets",!0),this.elements=new hu(Lr,"elements"),this.plugins=new hu(Object,"plugins"),this.scales=new hu($i,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{let a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Pe(i,o=>{let s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){let i=Qh(t);at(r["before"+i],[],r),n[t](r),at(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){let r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){let i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}},oi=new DP,CP=class{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(let a of t){let o=a.plugin,s=o[r],u=[n,i,a.options];if(at(s,u,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Oe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){let r=t&&t.config,i=be(r.options&&r.options.plugins,{}),a=ZB(r);return i===!1&&!n?[]:eV(t,a,i,n)}_notifyStateChanges(t){let n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(u=>s.plugin.id===u.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}};function ZB(e){let t=[],n=Object.keys(oi.plugins.items);for(let i=0;i<n.length;i++)t.push(oi.getPlugin(n[i]));let r=e.plugins||[];for(let i=0;i<r.length;i++){let a=r[i];t.indexOf(a)===-1&&t.push(a)}return t}function JB(e,t){return!t&&e===!1?null:e===!0?{}:e}function eV(e,t,n,r){let i=[],a=e.getContext();for(let o=0;o<t.length;o++){let s=t[o],u=s.id,d=JB(n[u],r);d!==null&&i.push({plugin:s,options:tV(e.config,s,d,a)})}return i}function tV(e,t,n,r){let i=e.pluginScopeKeys(t),a=e.getOptionScopes(n,i);return e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function e_(e,t){let n=we.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function nV(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function rV(e,t){return e===t?"_index_":"_value_"}function iV(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function t_(e,t){return e==="x"||e==="y"?e:t.axis||iV(t.position)||e.charAt(0).toLowerCase()}function aV(e,t){let n=Hi[e.type]||{scales:{}},r=t.scales||{},i=e_(e.type,t),a=Object.create(null),o=Object.create(null);return Object.keys(r).forEach(s=>{let u=r[s];if(!Me(u))return console.error(`Invalid scale configuration for scale: ${s}`);if(u._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);let d=t_(s,u),p=rV(d,i),g=n.scales||{};a[d]=a[d]||s,o[s]=$o(Object.create(null),[{axis:d},u,g[d],g[p]])}),e.data.datasets.forEach(s=>{let u=s.type||e.type,d=s.indexAxis||e_(u,t),g=(Hi[u]||{}).scales||{};Object.keys(g).forEach(v=>{let S=nV(v,d),C=s[S+"AxisID"]||a[S]||S;o[C]=o[C]||Object.create(null),$o(o[C],[{axis:S},r[C],g[v]])})}),Object.keys(o).forEach(s=>{let u=o[s];$o(u,[we.scales[u.type],we.scale])}),o}function OP(e){let t=e.options||(e.options={});t.plugins=be(t.plugins,{}),t.scales=aV(e,t)}function PP(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function oV(e){return e=e||{},e.data=PP(e.data),OP(e),e}var XO=new Map,TP=new Set;function up(e,t){let n=XO.get(e);return n||(n=t(),XO.set(e,n),TP.add(n)),n}var cu=(e,t,n)=>{let r=qi(t,n);r!==void 0&&e.add(r)},EP=class{constructor(t){this._config=oV(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=PP(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),OP(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return up(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return up(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return up(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){let n=t.id,r=this.type;return up(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){let r=this._scopeCache,i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){let{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;let u=new Set;n.forEach(p=>{t&&(u.add(t),p.forEach(g=>cu(u,t,g))),p.forEach(g=>cu(u,i,g)),p.forEach(g=>cu(u,Hi[a]||{},g)),p.forEach(g=>cu(u,we,g)),p.forEach(g=>cu(u,Kh,g))});let d=Array.from(u);return d.length===0&&d.push(Object.create(null)),TP.has(n)&&o.set(n,d),d}chartOptionScopes(){let{options:t,type:n}=this;return[t,Hi[n]||{},we.datasets[n]||{},{type:n},we,Kh]}resolveNamedOptions(t,n,r,i=[""]){let a={$shared:!0},{resolver:o,subPrefixes:s}=KO(this._resolverCache,t,i),u=o;if(lV(o,n)){a.$shared=!1,r=ni(r)?r():r;let d=this.createResolver(t,r,s);u=Ia(o,r,d)}for(let d of n)a[d]=u[d];return a}createResolver(t,n,r=[""],i){let{resolver:a}=KO(this._resolverCache,t,r);return Me(n)?Ia(a,n,void 0,i):a}};function KO(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:np(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}var sV=e=>Me(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||ni(e[n]),!1);function lV(e,t){let{isScriptable:n,isIndexable:r}=Y0(e);for(let i of t){let a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(ni(s)||sV(s))||o&&Qe(s))return!0}return!1}var uV="3.7.1",cV=["top","bottom","left","right","chartArea"];function ZO(e,t){return e==="top"||e==="bottom"||cV.indexOf(e)===-1&&t==="x"}function JO(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function eP(e){let t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),at(n&&n.onComplete,[e],t)}function dV(e){let t=e.chart,n=t.options.animation;at(n&&n.onProgress,[e],t)}function RP(e){return H0()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var mp={},IP=e=>{let t=RP(e);return Object.values(mp).filter(n=>n.canvas===t).pop()};function fV(e,t,n){let r=Object.keys(e);for(let i of r){let a=+i;if(a>=t){let o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function hV(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}var Qi=class{constructor(t,n){let r=this.config=new EP(n),i=RP(t),a=IP(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas can be reused.");let o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||NB(i)),this.platform.updateConfig(r);let s=this.platform.acquireContext(i,o.aspectRatio),u=s&&s.canvas,d=u&&u.height,p=u&&u.width;if(this.id=GC(),this.ctx=s,this.canvas=u,this.width=p,this.height=d,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 CP,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=$C(g=>this.update(g),o.resizeDelay||0),this._dataChanges=[],mp[this.id]=this,!s||!u){console.error("Failed to create chart: can't acquire context from the given item");return}ii.listen(this,"complete",eP),ii.listen(this,"progress",dV),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Oe(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():B0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return I0(this.canvas,this.ctx),this}stop(){return ii.stop(this),this}resize(t,n){ii.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){let r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,B0(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),at(r.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){let n=this.options.scales||{};Pe(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){let t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{}),a=[];n&&(a=a.concat(Object.keys(n).map(o=>{let s=n[o],u=t_(o,s),d=u==="r",p=u==="x";return{options:s,dposition:d?"chartArea":p?"bottom":"left",dtype:d?"radialLinear":p?"category":"linear"}}))),Pe(a,o=>{let s=o.options,u=s.id,d=t_(u,s),p=be(s.type,o.dtype);(s.position===void 0||ZO(s.position,d)!==ZO(o.dposition))&&(s.position=o.dposition),i[u]=!0;let g=null;if(u in r&&r[u].type===p)g=r[u];else{let v=oi.getScale(p);g=new v({id:u,type:p,ctx:this.ctx,chart:this}),r[g.id]=g}g.init(s,t)}),Pe(i,(o,s)=>{o||delete r[s]}),Pe(r,o=>{sp.configure(this,o,o.options),sp.addBox(this,o)})}_updateMetasets(){let t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(JO("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t=[],n=this.data.datasets,r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){let a=n[r],o=this.getDatasetMeta(r),s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||e_(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{let u=oi.getController(s),{datasetElementType:d,dataElementType:p}=we.datasets[s];Object.assign(u.prototype,{dataElementType:oi.getElement(p),datasetElementType:d&&oi.getElement(d)}),o.controller=new u(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Pe(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let n=this.config;n.update();let r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let d=0,p=this.data.datasets.length;d<p;d++){let{controller:g}=this.getDatasetMeta(d),v=!i&&a.indexOf(g)===-1;g.buildOrUpdateElements(v),o=Math.max(+g.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Pe(a,d=>{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(JO("z","_idx"));let{_active:s,_lastEvent:u}=this;u?this._eventHandler(u,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Pe(this.scales,t=>{sp.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!S0(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(let{method:r,start:i,count:a}of n){let o=r==="_removeElements"?-a:a;fV(t,i,o)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!S0(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;sp.update(this,this.width,this.height,t);let n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Pe(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ni(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){let r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ii.has(this)?this.attached&&!ii.running(this)&&ii.start(this):(this.draw(),eP({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{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;let n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let n=this._sortedMetasets,r=[],i,a;for(i=0,a=n.length;i<a;++i){let o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let n=this.ctx,r=t._clip,i=!r.disabled,a=this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&N0(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&L0(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(t,n,r,i){let a=mB.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){let n=this.data.datasets[t],r=this._metasets,i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ri(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let n=this.data.datasets[t];if(!n)return!1;let r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){let r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){let i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);kn(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){let n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ii.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),I0(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete mp[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Pe(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,n=this.platform,r=(u,d)=>{n.addEventListener(this,u,d),t[u]=d},i=(u,d)=>{t[u]&&(n.removeEventListener(this,u,d),delete t[u])},a=(u,d)=>{this.canvas&&this.resize(u,d)},o,s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){Pe(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Pe(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){let i=r?"set":"remove",a,o,s,u;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,u=t.length;s<u;++s){o=t[s];let d=o&&this.getDatasetMeta(o.datasetIndex).controller;d&&d[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{let s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!tu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}_updateHoverStyles(t,n,r){let i=this.options.hover,a=(u,d)=>u.filter(p=>!d.some(g=>p.datasetIndex===g.datasetIndex&&p.index===g.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){let r={event:t,replay:n,cancelable:!0,inChartArea:zi(t,this.chartArea,this._minPadding)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;let a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){let{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),u=ZC(t),d=hV(t,this._lastEvent,r,u);r&&(this._lastEvent=null,at(a.onHover,[t,s,this],this),u&&at(a.onClick,[t,s,this],this));let p=!tu(s,i);return(p||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=d,p}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;let a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},tP=()=>Pe(Qi.instances,e=>e._plugins.invalidate()),Vi=!0;Object.defineProperties(Qi,{defaults:{enumerable:Vi,value:we},instances:{enumerable:Vi,value:mp},overrides:{enumerable:Vi,value:Hi},registry:{enumerable:Vi,value:oi},version:{enumerable:Vi,value:uV},getChart:{enumerable:Vi,value:IP},register:{enumerable:Vi,value:(...e)=>{oi.add(...e),tP()}},unregister:{enumerable:Vi,value:(...e)=>{oi.remove(...e),tP()}}});function NP(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:u}=t,d=i/s;e.beginPath(),e.arc(a,o,s,r-d,n+d),u>i?(d=i/u,e.arc(a,o,u,n+d,r-d,!0)):e.arc(a,o,i,n+rt,r-rt),e.closePath(),e.clip()}function pV(e){return ep(e,["outerStart","outerEnd","innerStart","innerEnd"])}function mV(e,t,n,r){let i=pV(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=u=>{let d=(n-Math.min(a,u))*r/2;return Yt(u,0,Math.min(a,d))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Yt(i.innerStart,0,o),innerEnd:Yt(i.innerEnd,0,o)}}function Jo(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function n_(e,t,n,r,i){let{x:a,y:o,startAngle:s,pixelMargin:u,innerRadius:d}=t,p=Math.max(t.outerRadius+r+n-u,0),g=d>0?d+r+n+u:0,v=0,S=i-s;if(r){let oe=d>0?d-r:0,pe=p>0?p-r:0,de=(oe+pe)/2,Te=de!==0?S*de/(de+r):S;v=(S-Te)/2}let C=Math.max(.001,S*p-n/it)/p,x=(S-C)/2,w=s+x+v,_=i-x-v,{outerStart:D,outerEnd:O,innerStart:E,innerEnd:L}=mV(t,g,p,_-w),Y=p-D,q=p-O,B=w+D/Y,V=_-O/q,re=g+E,J=g+L,ue=w+E/re,ge=_-L/J;if(e.beginPath(),e.arc(a,o,p,B,V),O>0){let oe=Jo(q,V,a,o);e.arc(oe.x,oe.y,O,V,_+rt)}let ve=Jo(J,_,a,o);if(e.lineTo(ve.x,ve.y),L>0){let oe=Jo(J,ge,a,o);e.arc(oe.x,oe.y,L,_+rt,ge+Math.PI)}if(e.arc(a,o,g,_-L/g,w+E/g,!0),E>0){let oe=Jo(re,ue,a,o);e.arc(oe.x,oe.y,E,ue+Math.PI,w-rt)}let ae=Jo(Y,w,a,o);if(e.lineTo(ae.x,ae.y),D>0){let oe=Jo(Y,B,a,o);e.arc(oe.x,oe.y,D,w-rt,B)}e.closePath()}function gV(e,t,n,r){let{fullCircles:i,startAngle:a,circumference:o}=t,s=t.endAngle;if(i){n_(e,t,n,r,a+Ye);for(let u=0;u<i;++u)e.fill();isNaN(o)||(s=a+o%Ye,o%Ye===0&&(s+=Ye))}return n_(e,t,n,r,s),e.fill(),s}function vV(e,t,n){let{x:r,y:i,startAngle:a,pixelMargin:o,fullCircles:s}=t,u=Math.max(t.outerRadius-o,0),d=t.innerRadius+o,p;for(n&&NP(e,t,a+Ye),e.beginPath(),e.arc(r,i,d,a+Ye,a,!0),p=0;p<s;++p)e.stroke();for(e.beginPath(),e.arc(r,i,u,a,a+Ye),p=0;p<s;++p)e.stroke()}function yV(e,t,n,r,i){let{options:a}=t,{borderWidth:o,borderJoinStyle:s}=a,u=a.borderAlign==="inner";!o||(u?(e.lineWidth=o*2,e.lineJoin=s||"round"):(e.lineWidth=o,e.lineJoin=s||"bevel"),t.fullCircles&&vV(e,t,u),u&&NP(e,t,i),n_(e,t,n,r,i),e.stroke())}var wp=class extends Lr{constructor(t){super();this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){let i=this.getProps(["x","y"],r),{angle:a,distance:o}=C0(i,{x:t,y:n}),{startAngle:s,endAngle:u,innerRadius:d,outerRadius:p,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),v=this.options.spacing/2,C=be(g,u-s)>=Ye||Xo(a,s,u),x=nu(o,d+v,p+v);return C&&x}getCenterPoint(t){let{x:n,y:r,startAngle:i,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:u,spacing:d}=this.options,p=(i+a)/2,g=(o+s+d+u)/2;return{x:n+Math.cos(p)*g,y:r+Math.sin(p)*g}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:n,circumference:r}=this,i=(n.offset||0)/2,a=(n.spacing||0)/2;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Ye?Math.floor(r/Ye):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(i){o=i/2;let u=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(u)*o,Math.sin(u)*o),this.circumference>=it&&(o=i)}t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor;let s=gV(t,this,o,a);yV(t,this,o,a,s),t.restore()}};wp.id="arc";wp.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0};wp.defaultRoutes={backgroundColor:"backgroundColor"};function LP(e,t,n=t){e.lineCap=be(n.borderCapStyle,t.borderCapStyle),e.setLineDash(be(n.borderDash,t.borderDash)),e.lineDashOffset=be(n.borderDashOffset,t.borderDashOffset),e.lineJoin=be(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=be(n.borderWidth,t.borderWidth),e.strokeStyle=be(n.borderColor,t.borderColor)}function _V(e,t,n){e.lineTo(n.x,n.y)}function wV(e){return e.stepped?uO:e.tension||e.cubicInterpolationMode==="monotone"?cO:_V}function FP(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,u=Math.max(i,o),d=Math.min(a,s),p=i<o&&a<o||i>s&&a>s;return{count:r,start:u,loop:t.loop,ilen:d<u&&!p?r+d-u:d-u}}function xV(e,t,n,r){let{points:i,options:a}=t,{count:o,start:s,loop:u,ilen:d}=FP(i,n,r),p=wV(a),{move:g=!0,reverse:v}=r||{},S,C,x;for(S=0;S<=d;++S)C=i[(s+(v?d-S:S))%o],!C.skip&&(g?(e.moveTo(C.x,C.y),g=!1):p(e,x,C,v,a.stepped),x=C);return u&&(C=i[(s+(v?d:0))%o],p(e,x,C,v,a.stepped)),!!u}function bV(e,t,n,r){let i=t.points,{count:a,start:o,ilen:s}=FP(i,n,r),{move:u=!0,reverse:d}=r||{},p=0,g=0,v,S,C,x,w,_,D=E=>(o+(d?s-E:E))%a,O=()=>{x!==w&&(e.lineTo(p,w),e.lineTo(p,x),e.lineTo(p,_))};for(u&&(S=i[D(0)],e.moveTo(S.x,S.y)),v=0;v<=s;++v){if(S=i[D(v)],S.skip)continue;let E=S.x,L=S.y,Y=E|0;Y===C?(L<x?x=L:L>w&&(w=L),p=(g*p+E)/++g):(O(),e.lineTo(E,L),C=Y,g=0,x=w=L),_=L}O()}function r_(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?bV:xV}function SV(e){return e.stepped?SO:e.tension||e.cubicInterpolationMode==="monotone"?MO:Yi}function MV(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),LP(e,t.options),e.stroke(i)}function kV(e,t,n,r){let{segments:i,options:a}=t,o=r_(t);for(let s of i)LP(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var DV=typeof Path2D=="function";function CV(e,t,n,r){DV&&!t.options.segment?MV(e,t,n,r):kV(e,t,n,r)}var Aa=class extends Lr{constructor(t){super();this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let i=r.spanGaps?this._loop:this._fullLoop;wO(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=TO(this,this.options.segment))}first(){let t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){let t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){let r=this.options,i=t[n],a=this.points,o=PO(this,{property:n,start:i,end:i});if(!o.length)return;let s=[],u=SV(r),d,p;for(d=0,p=o.length;d<p;++d){let{start:g,end:v}=o[d],S=a[g],C=a[v];if(S===C){s.push(S);continue}let x=Math.abs((i-S[n])/(C[n]-S[n])),w=u(S,C,x,r.stepped);w[n]=t[n],s.push(w)}return s.length===1?s[0]:s}pathSegment(t,n,r){return r_(this)(t,this,n,r)}path(t,n,r){let i=this.segments,a=r_(this),o=this._loop;n=n||0,r=r||this.points.length-n;for(let s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){let a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),CV(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};Aa.id="line";Aa.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};Aa.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};Aa.descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};function nP(e,t,n,r){let i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}var es=class extends Lr{constructor(t){super();this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){let i=this.options,{x:a,y:o}=this.getProps(["x","y"],r);return Math.pow(t-a,2)+Math.pow(n-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return nP(this,t,"x",n)}inYRange(t,n){return nP(this,t,"y",n)}getCenterPoint(t){let{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);let r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){let r=this.options;this.skip||r.radius<.1||!zi(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Zh(t,r,this.x,this.y))}getRange(){let t=this.options||{};return t.radius+t.hitRadius}};es.id="point";es.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};es.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function AP(e,t){let{x:n,y:r,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t),s,u,d,p,g;return e.horizontal?(g=o/2,s=Math.min(n,i),u=Math.max(n,i),d=r-g,p=r+g):(g=a/2,s=n-g,u=n+g,d=Math.min(r,i),p=Math.max(r,i)),{left:s,top:d,right:u,bottom:p}}function ji(e,t,n,r){return e?0:Yt(t,n,r)}function OV(e,t,n){let r=e.options.borderWidth,i=e.borderSkipped,a=F0(r);return{t:ji(i.top,a.top,0,n),r:ji(i.right,a.right,0,t),b:ji(i.bottom,a.bottom,0,n),l:ji(i.left,a.left,0,t)}}function PV(e,t,n){let{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Ko(i),o=Math.min(t,n),s=e.borderSkipped,u=r||Me(i);return{topLeft:ji(!u||s.top||s.left,a.topLeft,0,o),topRight:ji(!u||s.top||s.right,a.topRight,0,o),bottomLeft:ji(!u||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:ji(!u||s.bottom||s.right,a.bottomRight,0,o)}}function TV(e){let t=AP(e),n=t.right-t.left,r=t.bottom-t.top,i=OV(e,n/2,r/2),a=PV(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function Z0(e,t,n,r){let i=t===null,a=n===null,s=e&&!(i&&a)&&AP(e,r);return s&&(i||nu(t,s.left,s.right))&&(a||nu(n,s.top,s.bottom))}function EV(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function RV(e,t){e.rect(t.x,t.y,t.w,t.h)}function J0(e,t,n={}){let r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}var xp=class extends Lr{constructor(t){super();this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:o}=TV(this),s=EV(o.radius)?Jh:RV;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,J0(o,n,a)),t.clip(),s(t,J0(a,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,J0(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return Z0(this,t,n,r)}inXRange(t,n){return Z0(this,t,null,n)}inYRange(t,n){return Z0(this,null,t,n)}getCenterPoint(t){let{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};xp.id="bar";xp.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};xp.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var pu={average(e){if(!e.length)return!1;let t,n,r=0,i=0,a=0;for(t=0,n=e.length;t<n;++t){let o=e[t].element;if(o&&o.hasValue()){let s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){let u=e[a].element;if(u&&u.hasValue()){let d=u.getCenterPoint(),p=jh(t,d);p<i&&(i=p,s=u)}}if(s){let u=s.tooltipPosition();n=u.x,r=u.y}return{x:n,y:r}}};function Nr(e,t){return t&&(Qe(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ai(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function IV(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function rP(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,u=_n(t.bodyFont),d=_n(t.titleFont),p=_n(t.footerFont),g=a.length,v=i.length,S=r.length,C=On(t.padding),x=C.height,w=0,_=r.reduce((E,L)=>E+L.before.length+L.lines.length+L.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,g&&(x+=g*d.lineHeight+(g-1)*t.titleSpacing+t.titleMarginBottom),_){let E=t.displayColors?Math.max(s,u.lineHeight):u.lineHeight;x+=S*E+(_-S)*u.lineHeight+(_-1)*t.bodySpacing}v&&(x+=t.footerMarginTop+v*p.lineHeight+(v-1)*t.footerSpacing);let D=0,O=function(E){w=Math.max(w,n.measureText(E).width+D)};return n.save(),n.font=d.string,Pe(e.title,O),n.font=u.string,Pe(e.beforeBody.concat(e.afterBody),O),D=t.displayColors?o+2+t.boxPadding:0,Pe(r,E=>{Pe(E.before,O),Pe(E.lines,O),Pe(E.after,O)}),D=0,n.font=p.string,Pe(e.footer,O),n.restore(),w+=C.width,{width:w,height:x}}function NV(e,t){let{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function LV(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function FV(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:u}}=e,d="center";return r==="center"?d=i<=(s+u)/2?"left":"right":i<=a/2?d="left":i>=o-a/2&&(d="right"),LV(d,e,t,n)&&(d="center"),d}function iP(e,t,n){let r=n.yAlign||t.yAlign||NV(e,n);return{xAlign:n.xAlign||t.xAlign||FV(e,t,n,r),yAlign:r}}function AV(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function WV(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function aP(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:u}=n,d=i+a,{topLeft:p,topRight:g,bottomLeft:v,bottomRight:S}=Ko(o),C=AV(t,s),x=WV(t,u,d);return u==="center"?s==="left"?C+=d:s==="right"&&(C-=d):s==="left"?C-=Math.max(p,v)+i:s==="right"&&(C+=Math.max(g,S)+i),{x:Yt(C,0,r.width-t.width),y:Yt(x,0,r.height-t.height)}}function cp(e,t,n){let r=On(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function oP(e){return Nr([],ai(e))}function YV(e,t,n){return ri(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function sP(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var gp=class extends Lr{constructor(t){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new a_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=YV(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:r}=n,i=r.beforeTitle.apply(this,[t]),a=r.title.apply(this,[t]),o=r.afterTitle.apply(this,[t]),s=[];return s=Nr(s,ai(i)),s=Nr(s,ai(a)),s=Nr(s,ai(o)),s}getBeforeBody(t,n){return oP(n.callbacks.beforeBody.apply(this,[t]))}getBody(t,n){let{callbacks:r}=n,i=[];return Pe(t,a=>{let o={before:[],lines:[],after:[]},s=sP(r,a);Nr(o.before,ai(s.beforeLabel.call(this,a))),Nr(o.lines,s.label.call(this,a)),Nr(o.after,ai(s.afterLabel.call(this,a))),i.push(o)}),i}getAfterBody(t,n){return oP(n.callbacks.afterBody.apply(this,[t]))}getFooter(t,n){let{callbacks:r}=n,i=r.beforeFooter.apply(this,[t]),a=r.footer.apply(this,[t]),o=r.afterFooter.apply(this,[t]),s=[];return s=Nr(s,ai(i)),s=Nr(s,ai(a)),s=Nr(s,ai(o)),s}_createItems(t){let n=this._active,r=this.chart.data,i=[],a=[],o=[],s=[],u,d;for(u=0,d=n.length;u<d;++u)s.push(IV(this.chart,n[u]));return t.filter&&(s=s.filter((p,g,v)=>t.filter(p,g,v,r))),t.itemSort&&(s=s.sort((p,g)=>t.itemSort(p,g,r))),Pe(s,p=>{let g=sP(t.callbacks,p);i.push(g.labelColor.call(this,p)),a.push(g.labelPointStyle.call(this,p)),o.push(g.labelTextColor.call(this,p))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){let r=this.options.setContext(this.getContext()),i=this._active,a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{let s=pu[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);let u=this._size=rP(this,r),d=Object.assign({},s,u),p=iP(this.chart,r,d),g=aP(r,d,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,a={opacity:1,x:g.x,y:g.y,width:u.width,height:u.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){let a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){let{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:g}=Ko(s),{x:v,y:S}=t,{width:C,height:x}=n,w,_,D,O,E,L;return a==="center"?(E=S+x/2,i==="left"?(w=v,_=w-o,O=E+o,L=E-o):(w=v+C,_=w+o,O=E-o,L=E+o),D=w):(i==="left"?_=v+Math.max(u,p)+o:i==="right"?_=v+C-Math.max(d,g)-o:_=this.caretX,a==="top"?(O=S,E=O-o,w=_-o,D=_+o):(O=S+x,E=O+o,w=_+o,D=_-o),L=O),{x1:w,x2:_,x3:D,y1:O,y2:E,y3:L}}drawTitle(t,n,r){let i=this.title,a=i.length,o,s,u;if(a){let d=ap(r.rtl,this.x,this.width);for(t.x=cp(this,r.titleAlign,r),n.textAlign=d.textAlign(r.titleAlign),n.textBaseline="middle",o=_n(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,u=0;u<a;++u)n.fillText(i[u],d.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,u+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){let o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:u,boxWidth:d,boxPadding:p}=a,g=_n(a.bodyFont),v=cp(this,"left",a),S=i.x(v),C=u<g.lineHeight?(g.lineHeight-u)/2:0,x=n.y+C;if(a.usePointStyle){let w={radius:Math.min(d,u)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},_=i.leftForLtr(S,d)+d/2,D=x+u/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Zh(t,w,_,D),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Zh(t,w,_,D)}else{t.lineWidth=o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;let w=i.leftForLtr(S,d-p),_=i.leftForLtr(i.xPlus(S,1),d-p-2),D=Ko(o.borderRadius);Object.values(D).some(O=>O!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Jh(t,{x:w,y:x,w:d,h:u,radius:D}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Jh(t,{x:_,y:x+1,w:d-2,h:u-2,radius:D}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(w,x,d,u),t.strokeRect(w,x,d,u),t.fillStyle=o.backgroundColor,t.fillRect(_,x+1,d-2,u-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){let{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:u,boxWidth:d,boxPadding:p}=r,g=_n(r.bodyFont),v=g.lineHeight,S=0,C=ap(r.rtl,this.x,this.width),x=function(B){n.fillText(B,C.x(t.x+S),t.y+v/2),t.y+=v+a},w=C.textAlign(o),_,D,O,E,L,Y,q;for(n.textAlign=o,n.textBaseline="middle",n.font=g.string,t.x=cp(this,w,r),n.fillStyle=r.bodyColor,Pe(this.beforeBody,x),S=s&&w!=="right"?o==="center"?d/2+p:d+2+p:0,E=0,Y=i.length;E<Y;++E){for(_=i[E],D=this.labelTextColors[E],n.fillStyle=D,Pe(_.before,x),O=_.lines,s&&O.length&&(this._drawColorBox(n,t,E,C,r),v=Math.max(g.lineHeight,u)),L=0,q=O.length;L<q;++L)x(O[L]),v=g.lineHeight;Pe(_.after,x)}S=0,v=g.lineHeight,Pe(this.afterBody,x),t.y-=a}drawFooter(t,n,r){let i=this.footer,a=i.length,o,s;if(a){let u=ap(r.rtl,this.x,this.width);for(t.x=cp(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=u.textAlign(r.footerAlign),n.textBaseline="middle",o=_n(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){let{xAlign:a,yAlign:o}=this,{x:s,y:u}=t,{width:d,height:p}=r,{topLeft:g,topRight:v,bottomLeft:S,bottomRight:C}=Ko(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+g,u),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+d-v,u),n.quadraticCurveTo(s+d,u,s+d,u+v),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+d,u+p-C),n.quadraticCurveTo(s+d,u+p,s+d-C,u+p),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+S,u+p),n.quadraticCurveTo(s,u+p,s,u+p-S),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,u+g),n.quadraticCurveTo(s,u,s+g,u),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){let o=pu[t.position].call(this,this._active,this._eventPosition);if(!o)return;let s=this._size=rP(this,t),u=Object.assign({},o,this._size),d=iP(n,t,u),p=aP(t,u,d,n);(i._to!==p.x||a._to!==p.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,p))}}draw(t){let n=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(n);let i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let o=On(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),kO(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),DO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){let r=this._active,i=t.map(({datasetIndex:s,index:u})=>{let d=this.chart.getDatasetMeta(s);if(!d)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:d.data[u],index:u}}),a=!tu(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),u=n||!tu(o,a)||s;return u&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,r,i){let a=this.options;if(t.type==="mouseout")return[];if(!i)return n;let o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){let{caretX:r,caretY:i,options:a}=this,o=pu[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}};gp.positioners=pu;var WP={id:"tooltip",_element:gp,positioners:pu,afterInit(e,t,n){n&&(e.tooltip=new gp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip,n={tooltip:t};e.notifyPlugins("beforeTooltipDraw",n)!==!1&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ir,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Ir,beforeBody:Ir,beforeLabel:Ir,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");let n=e.formattedValue;return Oe(n)||(t+=n),t},labelColor(e){let n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ir,afterBody:Ir,beforeFooter:Ir,footer:Ir,afterFooter:Ir}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var zV=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function qV(e,t,n,r){let i=e.indexOf(t);if(i===-1)return zV(e,t,n,r);let a=e.lastIndexOf(t);return i!==a?n:i}var HV=(e,t)=>e===null?null:Yt(Math.round(e),0,t),vp=class extends $i{constructor(t){super(t);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let n=this._addedLabels;if(n.length){let r=this.getLabels();for(let{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Oe(t))return null;let r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:qV(r,t,be(n,t),this._addedLabels),HV(n,r.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){let t=this.min,n=this.max,r=this.options.offset,i=[],a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){let n=this.getLabels();return t>=0&&t<n.length?n[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}};vp.id="category";vp.defaults={ticks:{callback:vp.prototype.getLabelForValue}};function UV(e,t){let n=[],{bounds:i,step:a,min:o,max:s,precision:u,count:d,maxTicks:p,maxDigits:g,includeBounds:v}=e,S=a||1,C=p-1,{min:x,max:w}=t,_=!Oe(o),D=!Oe(s),O=!Oe(d),E=(w-x)/(g+1),L=M0((w-x)/C/S)*S,Y,q,B,V;if(L<1e-14&&!_&&!D)return[{value:x},{value:w}];V=Math.ceil(w/L)-Math.floor(x/L),V>C&&(L=M0(V*L/C/S)*S),Oe(u)||(Y=Math.pow(10,u),L=Math.ceil(L*Y)/Y),i==="ticks"?(q=Math.floor(x/L)*L,B=Math.ceil(w/L)*L):(q=x,B=w),_&&D&&a&&eO((s-o)/a,L/1e3)?(V=Math.round(Math.min((s-o)/L,p)),L=(s-o)/V,q=o,B=s):O?(q=_?o:q,B=D?s:B,V=d-1,L=(B-q)/V):(V=(B-q)/L,Go(V,Math.round(V),L/1e3)?V=Math.round(V):V=Math.ceil(V));let re=Math.max(D0(L),D0(q));Y=Math.pow(10,Oe(u)?re:u),q=Math.round(q*Y)/Y,B=Math.round(B*Y)/Y;let J=0;for(_&&(v&&q!==o?(n.push({value:o}),q<o&&J++,Go(Math.round((q+J*L)*Y)/Y,o,lP(o,E,e))&&J++):q<o&&J++);J<V;++J)n.push({value:Math.round((q+J*L)*Y)/Y});return D&&v&&B!==s?n.length&&Go(n[n.length-1].value,s,lP(s,E,e))?n[n.length-1].value=s:n.push({value:s}):(!D||B===s)&&n.push({value:B}),n}function lP(e,t,{horizontal:n,minRotation:r}){let i=Qn(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}var gu=class extends $i{constructor(t){super(t);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Oe(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds(),{min:i,max:a}=this,o=u=>i=n?i:u,s=u=>a=r?a:u;if(t){let u=or(i),d=or(a);u<0&&d<0?s(0):u>0&&d>0&&o(0)}if(i===a){let u=1;(a>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(u=Math.abs(a*.05)),s(a+u),t||o(i-u)}this.min=i,this.max=a}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,n=t.ticks,r=this.getTickLimit();r=Math.max(2,r);let i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=UV(i,a);return t.bounds==="ticks"&&k0(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){let t=this.ticks,n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){let i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Zo(t,this.chart.options.locale,this.options.ticks.format)}},bu=class extends gu{determineDataLimits(){let{min:t,max:n}=this.getMinMax(!0);this.min=Rt(t)?t:0,this.max=Rt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),n=t?this.width:this.height,r=Qn(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}};bu.id="linear";bu.defaults={ticks:{callback:_p.formatters.numeric}};function uP(e){return e/Math.pow(10,Math.floor(Cn(e)))===1}function BV(e,t){let n=Math.floor(Cn(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],a=Dn(e.min,Math.pow(10,Math.floor(Cn(t.min)))),o=Math.floor(Cn(a)),s=Math.floor(a/Math.pow(10,o)),u=o<0?Math.pow(10,Math.abs(o)):1;do i.push({value:a,major:uP(a)}),++s,s===10&&(s=1,++o,u=o>=0?1:u),a=Math.round(s*Math.pow(10,o)*u)/u;while(o<n||o===n&&s<r);let d=Dn(e.max,a);return i.push({value:d,major:uP(a)}),i}var u_=class extends $i{constructor(t){super(t);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){let r=gu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Rt(r)&&r>0?r:null}determineDataLimits(){let{min:t,max:n}=this.getMinMax(!0);this.min=Rt(t)?Math.max(0,t):null,this.max=Rt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),r=this.min,i=this.max,a=u=>r=t?r:u,o=u=>i=n?i:u,s=(u,d)=>Math.pow(10,Math.floor(Cn(u))+d);r===i&&(r<=0?(a(1),o(10)):(a(s(r,-1)),o(s(i,1)))),r<=0&&a(s(i,-1)),i<=0&&o(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&a(s(r,-1)),this.min=r,this.max=i}buildTicks(){let t=this.options,n={min:this._userMin,max:this._userMax},r=BV(n,this);return t.bounds==="ticks"&&k0(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Zo(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=Cn(t),this._valueRange=Cn(this.max)-Cn(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Cn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}};u_.id="logarithmic";u_.defaults={ticks:{callback:_p.formatters.logarithmic,major:{enabled:!0}}};function i_(e){let t=e.ticks;if(t.display&&e.display){let n=On(t.backdropPadding);return be(t.font&&t.font.size,we.font.size)+n.height}return 0}function VV(e,t,n){return n=Qe(n)?n:[n],{w:lO(e,t.string,n),h:n.length*t.lineHeight}}function cP(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function jV(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?it/a:0;for(let u=0;u<a;u++){let d=o.setContext(e.getPointLabelContext(u));i[u]=d.padding;let p=e.getPointPosition(u,e.drawingArea+i[u],s),g=_n(d.font),v=VV(e.ctx,g,e._pointLabels[u]);r[u]=v;let S=$n(e.getIndexAngle(u)+s),C=Math.round(Gh(S)),x=cP(C,p.x,v.w,0,180),w=cP(C,p.y,v.h,90,270);$V(n,t,S,x,w)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=QV(e,r,i)}function $V(e,t,n,r,i){let a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,u=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(u=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-u)):i.end>t.b&&(u=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function QV(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,o=i_(a)/2,s=e.drawingArea,u=a.pointLabels.centerPointLabels?it/i:0;for(let d=0;d<i;d++){let p=e.getPointPosition(d,s+o+n[d],u),g=Math.round(Gh($n(p.angle+rt))),v=t[d],S=KV(p.y,v.h,g),C=GV(g),x=XV(p.x,v.w,C);r.push({x:p.x,y:S,textAlign:C,left:x,top:S,right:x+v.w,bottom:S+v.h})}return r}function GV(e){return e===0||e===180?"center":e<180?"left":"right"}function XV(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function KV(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function ZV(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let a=r.setContext(e.getPointLabelContext(i)),o=_n(a.font),{x:s,y:u,textAlign:d,left:p,top:g,right:v,bottom:S}=e._pointLabelItems[i],{backdropColor:C}=a;if(!Oe(C)){let x=On(a.backdropPadding);n.fillStyle=C,n.fillRect(p-x.left,g-x.top,v-p+x.width,S-g+x.height)}iu(n,e._pointLabels[i],s,u+o.lineHeight/2,o,{color:a.color,textAlign:d,textBaseline:"middle"})}}function YP(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ye);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function JV(e,t,n,r){let i=e.ctx,a=t.circular,{color:o,lineWidth:s}=t;!a&&!r||!o||!s||n<0||(i.save(),i.strokeStyle=o,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),YP(e,n,a,r),i.closePath(),i.stroke(),i.restore())}function e4(e,t,n){return ri(e,{label:n,index:t,type:"pointLabel"})}var Su=class extends gu{constructor(t){super(t);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=On(i_(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){let{min:t,max:n}=this.getMinMax(!1);this.min=Rt(t)&&!isNaN(t)?t:0,this.max=Rt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/i_(this.options))}generateTickLabels(t){gu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{let i=at(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){let t=this.options;t.display&&t.pointLabels.display?jV(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){let n=Ye/(this._pointLabels.length||1),r=this.options.startAngle||0;return $n(t*n+Qn(r))}getDistanceFromCenterForValue(t){if(Oe(t))return NaN;let n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Oe(t))return NaN;let n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){let n=this._pointLabels||[];if(t>=0&&t<n.length){let r=n[t];return e4(this.getContext(),t,r)}}getPointPosition(t,n,r=0){let i=this.getIndexAngle(t)-rt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){let{backgroundColor:t,grid:{circular:n}}=this.options;if(t){let r=this.ctx;r.save(),r.beginPath(),YP(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){let t=this.ctx,n=this.options,{angleLines:r,grid:i}=n,a=this._pointLabels.length,o,s,u;if(n.pointLabels.display&&ZV(this,a),i.display&&this.ticks.forEach((d,p)=>{if(p!==0){s=this.getDistanceFromCenterForValue(d.value);let g=i.setContext(this.getContext(p-1));JV(this,g,s,a)}}),r.display){for(t.save(),o=a-1;o>=0;o--){let d=r.setContext(this.getPointLabelContext(o)),{color:p,lineWidth:g}=d;!g||!p||(t.lineWidth=g,t.strokeStyle=p,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(o,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;let i=this.getIndexAngle(0),a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,u)=>{if(u===0&&!n.reverse)return;let d=r.setContext(this.getContext(u)),p=_n(d.font);if(a=this.getDistanceFromCenterForValue(this.ticks[u].value),d.showLabelBackdrop){t.font=p.string,o=t.measureText(s.label).width,t.fillStyle=d.backdropColor;let g=On(d.backdropPadding);t.fillRect(-o/2-g.left,-a-p.size/2-g.top,o+g.width,p.size+g.height)}iu(t,s.label,0,-a,p,{color:d.color})}),t.restore()}drawTitle(){}};Su.id="radialLinear";Su.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:_p.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};Su.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Su.descriptors={angleLines:{_fallback:"grid"}};var bp={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}},wn=Object.keys(bp);function t4(e,t){return e-t}function dP(e,t){if(Oe(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r=="function"&&(o=r(o)),Rt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Qo(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function fP(e,t,n,r){let i=wn.length;for(let a=wn.indexOf(e);a<i-1;++a){let o=bp[wn[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return wn[a]}return wn[i-1]}function n4(e,t,n,r,i){for(let a=wn.length-1;a>=wn.indexOf(n);a--){let o=wn[a];if(bp[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return wn[n?wn.indexOf(n):0]}function r4(e){for(let t=wn.indexOf(e)+1,n=wn.length;t<n;++t)if(bp[wn[t]].common)return wn[t]}function hP(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=tp(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function i4(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,u;for(s=a;s<=o;s=+i.add(s,1,r))u=n[s],u>=0&&(t[u].major=!0);return t}function pP(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:i4(e,r,i,n)}var Wa=class extends $i{constructor(t){super(t);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n){let r=t.time||(t.time={}),i=this._adapter=new o_._date(t.adapters.date);$o(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:dP(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,n=this._adapter,r=t.time.unit||"day",{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function u(d){!o&&!isNaN(d.min)&&(i=Math.min(i,d.min)),!s&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!o||!s)&&(u(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&u(this.getMinMax(!1))),i=Rt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Rt(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){let t=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){let t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);let a=this.min,o=this.max,s=hO(i,a,o);return this._unit=n.unit||(r.autoSkip?fP(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):n4(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:r4(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),pP(this,s,this._majorUnit)}initOffsets(t){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);let o=t.length<3?.5:.25;n=Yt(n,0,o),r=Yt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){let t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||fP(a.minUnit,n,r,this._getLabelCapacity(n)),s=be(a.stepSize,1),u=o==="week"?a.isoWeekday:!1,d=Qo(u)||u===!0,p={},g=n,v,S;if(d&&(g=+t.startOf(g,"isoWeek",u)),g=+t.startOf(g,d?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);let C=i.ticks.source==="data"&&this.getDataTimestamps();for(v=g,S=0;v<r;v=+t.add(v,s,o),S++)hP(p,v,C);return(v===r||i.bounds==="ticks"||S===1)&&hP(p,v,C),Object.keys(p).sort((x,w)=>x-w).map(x=>+x)}getLabelForValue(t){let n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){let a=this.options,o=a.time.displayFormats,s=this._unit,u=this._majorUnit,d=s&&o[s],p=u&&o[u],g=r[n],v=u&&p&&g&&g.major,S=this._adapter.format(t,i||(v?p:d)),C=a.ticks.callback;return C?at(C,[S,n,r],this):S}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){let n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){let n=this.options.ticks,r=this.ctx.measureText(t).width,i=Qn(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){let n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,pP(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;let i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],n,r;if(t.length)return t;let i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(dP(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return W0(t.sort(t4))}};Wa.id="time";Wa.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function dp(e,t,n){let r=0,i=e.length-1,a,o,s,u;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Bi(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:u}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Bi(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:u}=e[i]);let d=o-a;return d?s+(u-s)*(t-a)/d:s}var c_=class extends Wa{constructor(t){super(t);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=dp(n,this.min),this._tableRange=dp(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:n,max:r}=this,i=[],a=[],o,s,u,d,p;for(o=0,s=t.length;o<s;++o)d=t[o],d>=n&&d<=r&&i.push(d);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)p=i[o+1],u=i[o-1],d=i[o],Math.round((p+u)/2)!==d&&a.push({time:d,pos:o/(s-1)});return a}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(dp(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return dp(this._table,r*this._tableRange+this._minPos,!0)}};c_.id="timeseries";c_.defaults=Wa.defaults;var lr=fn(p0());var a4={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};o_._date.override(typeof lr.default=="function"?{_id:"moment",formats:function(){return a4},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=(0,lr.default)(e,t):e instanceof lr.default||(e=(0,lr.default)(e)),e.isValid()?e.valueOf():null},format:function(e,t){return(0,lr.default)(e).format(t)},add:function(e,t,n){return(0,lr.default)(e).add(t,n).valueOf()},diff:function(e,t,n){return(0,lr.default)(e).diff((0,lr.default)(t),n)},startOf:function(e,t,n){return e=(0,lr.default)(e),t==="isoWeek"?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return(0,lr.default)(e).endOf(t).valueOf()}}:{});var un=fn(Tt());var qP="label";function zP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function o4(e,t){e.options=eo({},t)}function HP(e,t){e.labels=t}function UP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qP,r=[];e.datasets=t.map(i=>{let a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?eo({},i):(r.push(a),Object.assign(a,i),a)})}function s4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qP,n={labels:[],datasets:[]};return HP(n,e.labels),UP(n,e.datasets,t),n}function l4(e,t){let w=e,{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:u,plugins:d=[],fallbackContent:p}=w,g=L_(w,["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent"]),v=(0,un.useRef)(null),S=(0,un.useRef)(),C=()=>{!v.current||(S.current=new Qi(v.current,{type:o,data:s4(s,a),options:u,plugins:d}),zP(t,S.current))},x=()=>{zP(t,null),S.current&&(S.current.destroy(),S.current=null)};return(0,un.useEffect)(()=>{!i&&S.current&&u&&o4(S.current,u)},[i,u]),(0,un.useEffect)(()=>{!i&&S.current&&HP(S.current.config.data,s.labels)},[i,s.labels]),(0,un.useEffect)(()=>{!i&&S.current&&s.datasets&&UP(S.current.config.data,s.datasets,a)},[i,s.datasets]),(0,un.useEffect)(()=>{!S.current||(i?(x(),setTimeout(C)):S.current.update())},[i,u,s.labels,s.datasets]),(0,un.useEffect)(()=>(C(),()=>x()),[]),un.default.createElement("canvas",Object.assign({ref:v,role:"img",height:n,width:r},g),p)}var u4=(0,un.forwardRef)(l4);function c4(e,t){return Qi.register(t),(0,un.forwardRef)((n,r)=>un.default.createElement(u4,Object.assign({},n,{ref:r,type:e})))}var BP=c4("line",Fa);Qi.register(Wa,bu,es,Aa,WP);function VP({tag:e,startDate:t,endDate:n}){let{tagData:r,tagTabs:i,loading:a,error:o}=EC(e),s=(0,Pn.useMemo)(()=>{let x=r||[];if(t!==null){let w=(0,si.default)(t).utcOffset(0).startOf("day");x=x.filter(_=>(0,si.default)(_.date).utcOffset(0).isAfter(w))}if(n!==null){let w=(0,si.default)(n).utcOffset(0).endOf("day");x=x.filter(_=>(0,si.default)(_.date).utcOffset(0).isBefore(w))}return x},[r,t,n]),u=s.map(x=>x.date),d=s.map(x=>x.viewCount),p={labels:u.map(x=>x.toISOString()),datasets:[{label:"Views",data:d,fill:!0,borderColor:"#E45780",backgroundColor:"#E45780"}]},g=(0,Pn.useMemo)(()=>{if(t!==null)return(0,si.default)(t).utcOffset(0).startOf("day");let x=u!=null&&u[0]?new Date(u==null?void 0:u[0]):new Date;return(0,si.default)(x).startOf("day")},[u]),v=(0,Pn.useMemo)(()=>{if(n!==null)return(0,si.default)(n).utcOffset(0).endOf("day");let x=((u==null?void 0:u.length)||0)-1,w=u!=null&&u[x]?new Date(u==null?void 0:u[x]):new Date;return(0,si.default)(w).endOf("day")},[u,n]),S={scales:{x:{type:"time",time:{unit:"day"},min:g,max:v,display:!0,text:"Date"},y:{min:0}},maintainAspectRatio:!1,showToolTips:!0},C=!o&&!a&&u&&u.length;return Pn.default.createElement("div",{className:"TagChart__outer"},Pn.default.createElement("h2",{className:"TagChart__title"},"Views for"," ",Pn.default.createElement("a",{key:e,className:"TagChart__link",target:"_blank",href:`https://tiktok.com/tag/${e}`},`${e}`),i==null?void 0:i.map(x=>Pn.default.createElement("span",{className:"TagChart__TabName"},x))),Pn.default.createElement("div",{className:"TagChart__canvasWrapper"},C?Pn.default.createElement(BP,{data:p,options:S,height:320}):Pn.default.createElement("div",{className:"TagChart__noData"},"No data (yet)")),Pn.default.createElement("hr",{className:"TagChart__ruler"}))}function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mu.apply(this,arguments)}function Sp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ku(e,t)}function d_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ku(e,t)}var jP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function d4(e,t){return!!(e===t||jP(e)&&jP(t))}function f4(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!d4(e[n],t[n]))return!1;return!0}function h4(e,t){t===void 0&&(t=f4);var n,r=[],i,a=!1;function o(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return a&&n===this&&t(s,r)||(i=e.apply(this,s),a=!0,n=this,r=s),i}return o}var Mp=h4;var ns=fn(Tt());var p4=typeof performance=="object"&&typeof performance.now=="function",$P=p4?function(){return performance.now()}:function(){return Date.now()};function QP(e){cancelAnimationFrame(e.id)}function m4(e,t){var n=$P();function r(){$P()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var f_=-1;function GP(e){if(e===void 0&&(e=!1),f_===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f_=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f_}var ts=null;function XP(e){if(e===void 0&&(e=!1),ts===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ts="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?ts="negative":ts="positive-ascending"),document.body.removeChild(t),ts}return ts}var g4=150,v4=function(t,n){return t};function y4(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(g){d_(v,g);function v(C){var x;return x=g.call(this,C)||this,x._instanceProps=u(x.props,Sp(x)),x._outerRef=void 0,x._resetIsScrollingTimeoutId=null,x.state={instance:Sp(x),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof x.props.initialScrollOffset=="number"?x.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},x._callOnItemsRendered=void 0,x._callOnItemsRendered=Mp(function(w,_,D,O){return x.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:_,visibleStartIndex:D,visibleStopIndex:O})}),x._callOnScroll=void 0,x._callOnScroll=Mp(function(w,_,D){return x.props.onScroll({scrollDirection:w,scrollOffset:_,scrollUpdateWasRequested:D})}),x._getItemStyle=void 0,x._getItemStyle=function(w){var _=x.props,D=_.direction,O=_.itemSize,E=_.layout,L=x._getItemStyleCache(d&&O,d&&E,d&&D),Y;if(L.hasOwnProperty(w))Y=L[w];else{var q=n(x.props,w,x._instanceProps),B=i(x.props,w,x._instanceProps),V=D==="horizontal"||E==="horizontal",re=D==="rtl",J=V?q:0;L[w]=Y={position:"absolute",left:re?void 0:J,right:re?J:void 0,top:V?0:q,height:V?"100%":B,width:V?B:"100%"}}return Y},x._getItemStyleCache=void 0,x._getItemStyleCache=Mp(function(w,_,D){return{}}),x._onScrollHorizontal=function(w){var _=w.currentTarget,D=_.clientWidth,O=_.scrollLeft,E=_.scrollWidth;x.setState(function(L){if(L.scrollOffset===O)return null;var Y=x.props.direction,q=O;if(Y==="rtl")switch(XP()){case"negative":q=-O;break;case"positive-descending":q=E-D-O;break}return q=Math.max(0,Math.min(q,E-D)),{isScrolling:!0,scrollDirection:L.scrollOffset<O?"forward":"backward",scrollOffset:q,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._onScrollVertical=function(w){var _=w.currentTarget,D=_.clientHeight,O=_.scrollHeight,E=_.scrollTop;x.setState(function(L){if(L.scrollOffset===E)return null;var Y=Math.max(0,Math.min(E,O-D));return{isScrolling:!0,scrollDirection:L.scrollOffset<Y?"forward":"backward",scrollOffset:Y,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._outerRefSetter=function(w){var _=x.props.outerRef;x._outerRef=w,typeof _=="function"?_(w):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=w)},x._resetIsScrollingDebounced=function(){x._resetIsScrollingTimeoutId!==null&&QP(x._resetIsScrollingTimeoutId),x._resetIsScrollingTimeoutId=m4(x._resetIsScrolling,g4)},x._resetIsScrolling=function(){x._resetIsScrollingTimeoutId=null,x.setState({isScrolling:!1},function(){x._getItemStyleCache(-1,null)})},x}v.getDerivedStateFromProps=function(x,w){return _4(x,w),p(x),null};var S=v.prototype;return S.scrollTo=function(x){x=Math.max(0,x),this.setState(function(w){return w.scrollOffset===x?null:{scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},S.scrollToItem=function(x,w){w===void 0&&(w="auto");var _=this.props,D=_.itemCount,O=_.layout,E=this.state.scrollOffset;x=Math.max(0,Math.min(x,D-1));var L=0;if(this._outerRef){var Y=this._outerRef;O==="vertical"?L=Y.scrollWidth>Y.clientWidth?GP():0:L=Y.scrollHeight>Y.clientHeight?GP():0}this.scrollTo(a(this.props,x,w,E,this._instanceProps,L))},S.componentDidMount=function(){var x=this.props,w=x.direction,_=x.initialScrollOffset,D=x.layout;if(typeof _=="number"&&this._outerRef!=null){var O=this._outerRef;w==="horizontal"||D==="horizontal"?O.scrollLeft=_:O.scrollTop=_}this._callPropsCallbacks()},S.componentDidUpdate=function(){var x=this.props,w=x.direction,_=x.layout,D=this.state,O=D.scrollOffset,E=D.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var L=this._outerRef;if(w==="horizontal"||_==="horizontal")if(w==="rtl")switch(XP()){case"negative":L.scrollLeft=-O;break;case"positive-ascending":L.scrollLeft=O;break;default:var Y=L.clientWidth,q=L.scrollWidth;L.scrollLeft=q-Y-O;break}else L.scrollLeft=O;else L.scrollTop=O}this._callPropsCallbacks()},S.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&QP(this._resetIsScrollingTimeoutId)},S.render=function(){var x=this.props,w=x.children,_=x.className,D=x.direction,O=x.height,E=x.innerRef,L=x.innerElementType,Y=x.innerTagName,q=x.itemCount,B=x.itemData,V=x.itemKey,re=V===void 0?v4:V,J=x.layout,ue=x.outerElementType,ge=x.outerTagName,ve=x.style,ae=x.useIsScrolling,oe=x.width,pe=this.state.isScrolling,de=D==="horizontal"||J==="horizontal",Te=de?this._onScrollHorizontal:this._onScrollVertical,Je=this._getRangeToRender(),ot=Je[0],Ee=Je[1],ne=[];if(q>0)for(var Be=ot;Be<=Ee;Be++)ne.push((0,ns.createElement)(w,{data:B,key:re(Be,B),index:Be,isScrolling:ae?pe:void 0,style:this._getItemStyle(Be)}));var Fe=r(this.props,this._instanceProps);return(0,ns.createElement)(ue||ge||"div",{className:_,onScroll:Te,ref:this._outerRefSetter,style:Mu({position:"relative",height:O,width:oe,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:D},ve)},(0,ns.createElement)(L||Y||"div",{children:ne,ref:E,style:{height:de?"100%":Fe,pointerEvents:pe?"none":void 0,width:de?Fe:"100%"}}))},S._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var x=this.props.itemCount;if(x>0){var w=this._getRangeToRender(),_=w[0],D=w[1],O=w[2],E=w[3];this._callOnItemsRendered(_,D,O,E)}}if(typeof this.props.onScroll=="function"){var L=this.state,Y=L.scrollDirection,q=L.scrollOffset,B=L.scrollUpdateWasRequested;this._callOnScroll(Y,q,B)}},S._getRangeToRender=function(){var x=this.props,w=x.itemCount,_=x.overscanCount,D=this.state,O=D.isScrolling,E=D.scrollDirection,L=D.scrollOffset;if(w===0)return[0,0,0,0];var Y=o(this.props,L,this._instanceProps),q=s(this.props,Y,L,this._instanceProps),B=!O||E==="backward"?Math.max(1,_):1,V=!O||E==="forward"?Math.max(1,_):1;return[Math.max(0,Y-B),Math.max(0,Math.min(w-1,q+V)),Y,q]},v}(ns.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var _4=function(t,n){var r=t.children,i=t.direction,a=t.height,o=t.layout,s=t.innerTagName,u=t.outerTagName,d=t.width,p=n.instance;if(!1){var g;switch(i){case"horizontal":case"vertical":case"ltr":case"rtl":default:}switch(o){case"horizontal":case"vertical":default:}}};var KP=y4({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,a,o){var s=t.direction,u=t.height,d=t.itemCount,p=t.itemSize,g=t.layout,v=t.width,S=s==="horizontal"||g==="horizontal",C=S?v:u,x=Math.max(0,d*p-C),w=Math.min(x,n*p),_=Math.max(0,n*p-C+p+o);switch(r==="smart"&&(i>=_-C&&i<=w+C?r="auto":r="center"),r){case"start":return w;case"end":return _;case"center":{var D=Math.round(_+(w-_)/2);return D<Math.ceil(C/2)?0:D>x+Math.floor(C/2)?x:D}case"auto":default:return i>=_&&i<=w?i:i<_?_:w}},getStartIndexForOffset:function(t,n){var r=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(t,n,r){var i=t.direction,a=t.height,o=t.itemCount,s=t.itemSize,u=t.layout,d=t.width,p=i==="horizontal"||u==="horizontal",g=n*s,v=p?d:a,S=Math.ceil((v+r-g)/s);return Math.max(0,Math.min(o-1,n+S-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){var n=t.itemSize}});var w4=({setValue:e})=>{let[t,n]=(0,bt.useState)(""),r=RC(()=>{e(t)},300),i=a=>{n(a.target.value)};return(0,bt.useEffect)(()=>{r()},[t,r]),bt.default.createElement("input",{className:"TagList__tagFilterInput",type:"text",value:t,onChange:i,placeholder:"Filter charts by name..."})};function JP({tags:e}){let[t,n]=(0,bt.useState)([null,null]),[r,i]=(0,bt.useState)(""),a=(0,bt.useMemo)(()=>(e||[]).filter(u=>u.includes(r)),[e,r]),[o,s]=t;return bt.default.createElement(bt.default.Fragment,null,bt.default.createElement("div",{className:"TagList__tagFilter"},bt.default.createElement(w4,{setValue:i}),bt.default.createElement("div",{className:"TagList__tagDateFilter"},bt.default.createElement(ZP.default,{selectsRange:!0,startDate:o,endDate:s,locale:"en-GB",dateFormat:"dd/MM/yyyy",placeholderText:"Filter between dates...",onChange:u=>{n(u)},isClearable:!0}))),bt.default.createElement("div",{className:"TagList__tagCharts"},bt.default.createElement(KP,{itemData:a,itemCount:a.length,height:800,width:"100%",itemSize:400},({data:u,index:d,style:p})=>bt.default.createElement("div",{style:p},bt.default.createElement(VP,{tag:u[d],startDate:o,endDate:s})))))}var h_=fn(Tt());function eT({tabNames:e,currentTab:t,changeTab:n}){return h_.default.createElement("div",{className:"TabNames__outer"},e.map(r=>h_.default.createElement("span",{className:"TabName__inner "+(r===t?"TabName__active":""),onClick:()=>n(r)},r)))}(0,tT.registerLocale)("en-GB",fC);function nT(){let{tabNames:e,currentTab:t,setCurrentTab:n,tabs:r,loading:i}=f0(),a=(0,ur.useMemo)(()=>i?[]:r[t],[r,t]),[o]=(0,ur.useState)([null,null]);if(i)return ur.default.createElement("h1",null,"Loading...");let[s,u]=o;return ur.default.createElement("div",{className:"TagList__outer"},ur.default.createElement("div",{className:"TagList__title"},ur.default.createElement("h1",null,"TikTok Tag Analytics")),ur.default.createElement(eT,{tabNames:e,currentTab:t,changeTab:n}),ur.default.createElement(JP,{tags:a}))}iT.default.render(rT.createElement(nT,null),document.getElementById("root"));})();
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
* chartjs-adapter-moment v1.0.0
* https://www.chartjs.org
* (c) 2021 chartjs-adapter-moment Contributors
* Released under the MIT license
*/
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
* @kurkle/color v0.1.9
* https://github.com/kurkle/color#readme
* (c) 2020 Jukka Kurkela
* Released under the MIT License
*/
/*!
* Chart.js v3.7.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/** @license React v0.20.2
* 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.
*/
/** @license React v16.14.0
* 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.
*/
/** @license React v17.0.2
* 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.
*/
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! moment.js
//! momentjs.com
//! version : 2.29.4
//# sourceMappingURL=index.js.map