vendor: 4,861 bytes, lines 1-9
1var Wy=Object.defineProperty;var Vy=(e,t,n)=>t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>(Vy(e,typeof t!="symbol"?t+"":t,n),n);function Uy(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function Yy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wr={},Ky={get exports(){return Wr},set exports(e){Wr=e}},wl={},S={},Xy={get exports(){return S},set exports(e){S=e}},Y={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ys=Symbol.for("react.element"),Qy=Symbol.for("react.portal"),Gy=Symbol.for("react.fragment"),qy=Symbol.for("react.strict_mode"),Jy=Symbol.for("react.profiler"),Zy=Symbol.for("react.provider"),e1=Symbol.for("react.context"),t1=Symbol.for("react.forward_ref"),n1=Symbol.for("react.suspense"),i1=Symbol.for("react.memo"),r1=Symbol.for("react.lazy"),$d=Symbol.iterator;function s1(e){return e===null||typeof e!="object"?null:(e=$d&&e[$d]||e["@@iterator"],typeof e=="function"?e:null)}var Wp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vp=Object.assign,Up={};function Zi(e,t,n){this.props=e,this.context=t,this.refs=Up,this.updater=n||Wp}Zi.prototype.isReactComponent={};Zi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Zi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yp(){}Yp.prototype=Zi.prototype;function yu(e,t,n){this.props=e,this.context=t,this.refs=Up,this.updater=n||Wp}var vu=yu.prototype=new Yp;vu.constructor=yu;Vp(vu,Zi.prototype);vu.isPureReactComponent=!0;var Hd=Array.isArray,Kp=Object.prototype.hasOwnProperty,xu={current:null},Xp={key:!0,ref:!0,__self:!0,__source:!0};function Qp(e,t,n){var i,r={},s=null,o=null;if(t!=null)for(i in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Kp.call(t,i)&&!Xp.hasOwnProperty(i)&&(r[i]=t[i]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)r[i]===void 0&&(r[i]=l[i]);return{$$typeof:ys,type:e,key:s,ref:o,props:r,_owner:xu.current}}function o1(e,t){return{$$typeof:ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _u(e){return typeof e=="object"&&e!==null&&e.$$typeof===ys}function l1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wd=/\/+/g;function ea(e,t){return typeof e=="object"&&e!==null&&e.key!=null?l1(""+e.key):t.toString(36)}function uo(e,t,n,i,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ys:case Qy:o=!0}}if(o)return o=e,r=r(o),e=i===""?"."+ea(o,0):i,Hd(r)?(n="",e!=null&&(n=e.replace(Wd,"$&/")+"/"),uo(r,t,n,"",function(c){return c})):r!=null&&(_u(r)&&(r=o1(r,n+(!r.key||o&&o.key===r.key?"":(""+r.key).replace(Wd,"$&/")+"/")+e)),t.push(r)),1;if(o=0,i=i===""?".":i+":",Hd(e))for(var l=0;l<e.length;l++){s=e[l];var a=i+ea(s,l);o+=uo(s,t,n,a,r)}else if(a=s1(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=i+ea(s,l++),o+=uo(s,t,n,a,r);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}
vendor: 4,803 bytes, lines 9-25
9function Ts(e,t,n){if(e==null)return e;var i=[],r=0;return uo(e,i,"","",function(s){return t.call(n,s,r++)}),i}function a1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ue={current:null},fo={transition:null},c1={ReactCurrentDispatcher:Ue,ReactCurrentBatchConfig:fo,ReactCurrentOwner:xu};Y.Children={map:Ts,forEach:function(e,t,n){Ts(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ts(e,function(){t++}),t},toArray:function(e){return Ts(e,function(t){return t})||[]},only:function(e){if(!_u(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Zi;Y.Fragment=Gy;Y.Profiler=Jy;Y.PureComponent=yu;Y.StrictMode=qy;Y.Suspense=n1;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c1;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=Vp({},e.props),r=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=xu.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Kp.call(t,a)&&!Xp.hasOwnProperty(a)&&(i[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:ys,type:e.type,key:r,ref:s,props:i,_owner:o}};Y.createContext=function(e){return e={$$typeof:e1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zy,_context:e},e.Consumer=e};Y.createElement=Qp;Y.createFactory=function(e){var t=Qp.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:t1,render:e}};Y.isValidElement=_u;Y.lazy=function(e){return{$$typeof:r1,_payload:{_status:-1,_result:e},_init:a1}};Y.memo=function(e,t){return{$$typeof:i1,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=fo.transition;fo.transition={};try{e()}finally{fo.transition=t}};Y.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Y.useCallback=function(e,t){return Ue.current.useCallback(e,t)};Y.useContext=function(e){return Ue.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ue.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ue.current.useEffect(e,t)};Y.useId=function(){return Ue.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ue.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ue.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ue.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ue.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ue.current.useReducer(e,t,n)};Y.useRef=function(e){return Ue.current.useRef(e)};Y.useState=function(e){return Ue.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ue.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ue.current.useTransition()};Y.version="18.2.0";(function(e){e.exports=Y})(Xy);const ve=Yy(S),Ga=Uy({__proto__:null,default:ve},[S]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var u1=S,d1=Symbol.for("react.element"),f1=Symbol.for("react.fragment"),h1=Object.prototype.hasOwnProperty,p1=u1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g1={key:!0,ref:!0,__self:!0,__source:!0};function Gp(e,t,n){var i,r={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(i in t)h1.call(t,i)&&!g1.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&&(r[i]=t[i]);return{$$typeof:d1,type:e,key:s,ref:o,props:r,_owner:p1.current}}wl.Fragment=f1;wl.jsx=Gp;wl.jsxs=Gp;(function(e){e.exports=wl})(Ky);const qp=Wr.Fragment,b=Wr.jsx,O=Wr.jsxs;var qa={},Ja={},m1={get exports(){return Ja},set exports(e){Ja=e}},at={},Za={},y1={get exports(){return Za},set exports(e){Za=e}},Jp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(R,A){var z=R.length;R.push(A);e:for(;0<z;){var $=z-1>>>1,te=R[$];
vendor: 9,783 bytes, lines 25-33
25if(0<r(te,A))R[$]=A,R[z]=te,z=$;else break e}}function n(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var A=R[0],z=R.pop();if(z!==A){R[0]=z;e:for(var $=0,te=R.length,j=te>>>1;$<j;){var W=2*($+1)-1,re=R[W],Pe=W+1,Hn=R[Pe];if(0>r(re,z))Pe<te&&0>r(Hn,re)?(R[$]=Hn,R[Pe]=z,$=Pe):(R[$]=re,R[W]=z,$=W);else if(Pe<te&&0>r(Hn,z))R[$]=Hn,R[Pe]=z,$=Pe;else break e}}return A}function r(R,A){var z=R.sortIndex-A.sortIndex;return z!==0?z:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],c=[],u=1,d=null,f=3,h=!1,p=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var A=n(c);A!==null;){if(A.callback===null)i(c);else if(A.startTime<=R)i(c),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(c)}}function _(R){if(y=!1,x(R),!p)if(n(a)!==null)p=!0,V(w);else{var A=n(c);A!==null&&q(_,A.startTime-R)}}function w(R,A){p=!1,y&&(y=!1,g(C),C=-1),h=!0;var z=f;try{for(x(A),d=n(a);d!==null&&(!(d.expirationTime>A)||R&&!F());){var $=d.callback;if(typeof $=="function"){d.callback=null,f=d.priorityLevel;var te=$(d.expirationTime<=A);A=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(a)&&i(a),x(A)}else i(a);d=n(a)}if(d!==null)var j=!0;else{var W=n(c);W!==null&&q(_,W.startTime-A),j=!1}return j}finally{d=null,f=z,h=!1}}var E=!1,k=null,C=-1,L=5,T=-1;function F(){return!(e.unstable_now()-T<L)}function I(){if(k!==null){var R=e.unstable_now();T=R;var A=!0;try{A=k(!0,R)}finally{A?G():(E=!1,k=null)}}else E=!1}var G;if(typeof m=="function")G=function(){m(I)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,H=_e.port2;_e.port1.onmessage=I,G=function(){H.postMessage(null)}}else G=function(){v(I,0)};function V(R){k=R,E||(E=!0,G())}function q(R,A){C=v(function(){R(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,V(w))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var z=f;f=A;try{return R()}finally{f=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,A){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var z=f;f=R;try{return A()}finally{f=z}},e.unstable_scheduleCallback=function(R,A,z){var $=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?$+z:$):z=$,R){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=z+te,R={id:u++,callback:A,priorityLevel:R,startTime:z,expirationTime:te,sortIndex:-1},z>$?(R.sortIndex=z,t(c,R),n(a)===null&&R===n(c)&&(y?(g(C),C=-1):y=!0,q(_,z-$))):(R.sortIndex=te,t(a,R),p||h||(p=!0,V(w))),R},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(R){var A=f;return function(){var z=f;f=A;try{return R.apply(this,arguments)}finally{f=z}}}})(Jp);(function(e){e.exports=Jp})(y1);/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Zp=S,lt=Za;function M(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 eg=new Set,Vr={};function hi(e,t){$i(e,t),$i(e+"Capture",t)}function $i(e,t){for(Vr[e]=t,e=0;e<t.length;e++)eg.add(t[e])}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ec=Object.prototype.hasOwnProperty,v1=/^[: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]*$/,Vd={},Ud={};function x1(e){return ec.call(Ud,e)?!0:ec.call(Vd,e)?!1:v1.test(e)?Ud[e]=!0:(Vd[e]=!0,!1)}function _1(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function w1(e,t,n,i){if(t===null||typeof t>"u"||_1(e,t,n,i))return!0;if(i)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 Ye(e,t,n,i,r,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Ye(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){Ae[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var wu=/[\-:]([a-z])/g;function bu(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(wu,bu);Ae[t]=new Ye(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(wu,bu);Ae[t]=new Ye(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(wu,bu);Ae[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Su(e,t,n,i){var r=Ae.hasOwnProperty(t)?Ae[t]:null;(r!==null?r.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(w1(t,n,r,i)&&(n=null),i||r===null?x1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,i=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var nn=Zp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ls=Symbol.for("react.element"),bi=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),ku=Symbol.for("react.strict_mode"),tc=Symbol.for("react.profiler"),tg=Symbol.for("react.provider"),ng=Symbol.for("react.context"),Eu=Symbol.for("react.forward_ref"),nc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),Cu=Symbol.for("react.memo"),
vendor: 18,454 bytes, lines 33-37
33cn=Symbol.for("react.lazy"),ig=Symbol.for("react.offscreen"),Yd=Symbol.iterator;function sr(e){return e===null||typeof e!="object"?null:(e=Yd&&e[Yd]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,ta;function xr(e){if(ta===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ta=t&&t[1]||""}return` 34`+ta+e}var na=!1;function ia(e,t){if(!e||na)return"";na=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var i=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){i=c}e.call(t.prototype)}else{try{throw Error()}catch(c){i=c}e()}}catch(c){if(c&&i&&typeof c.stack=="string"){for(var r=c.stack.split(` 35`),s=i.stack.split(` 36`),o=r.length-1,l=s.length-1;1<=o&&0<=l&&r[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(r[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||r[o]!==s[l]){var a=` 37`+r[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{na=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xr(e):""}function b1(e){switch(e.tag){case 5:return xr(e.type);case 16:return xr("Lazy");case 13:return xr("Suspense");case 19:return xr("SuspenseList");case 0:case 2:case 15:return e=ia(e.type,!1),e;case 11:return e=ia(e.type.render,!1),e;case 1:return e=ia(e.type,!0),e;default:return""}}function rc(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 Si:return"Fragment";case bi:return"Portal";case tc:return"Profiler";case ku:return"StrictMode";case nc:return"Suspense";case ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ng:return(e.displayName||"Context")+".Consumer";case tg:return(e._context.displayName||"Context")+".Provider";case Eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cu:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case cn:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}function S1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rc(t);case 8:return t===ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k1(e){var t=rg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){e._valueTracker||(e._valueTracker=k1(e))}function sg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=rg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Io(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function sc(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kd(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function og(e,t){t=t.checked,t!=null&&Su(e,"checked",t,!1)}function oc(e,t){og(e,t);var n=Tn(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lc(e,t.type,n):t.hasOwnProperty("defaultValue")&&lc(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="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 lc(e,t,n){(t!=="number"||Io(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _r=Array.isArray;function Di(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Tn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(_r(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tn(n)}}function lg(e,t){var n=Tn(t.value),i=Tn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),i!=null&&(e.defaultValue=""+i)}function Gd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ag(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 cc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ag(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ds,cg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ds=Ds||document.createElement("div"),Ds.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E1=["Webkit","ms","Moz","O"];Object.keys(Mr).forEach(function(e){E1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mr[t]=Mr[e]})});function ug(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mr.hasOwnProperty(e)&&Mr[e]?(""+t).trim():t+"px"}function dg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=ug(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var C1=he({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 uc(e,t){if(t){if(C1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function dc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fc=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hc=null,Ai=null,Fi=null;function qd(e){if(e=_s(e)){if(typeof hc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Cl(t),hc(e.stateNode,e.type,t))}}function fg(e){Ai?Fi?Fi.push(e):Fi=[e]:Ai=e}function hg(){if(Ai){var e=Ai,t=Fi;if(Fi=Ai=null,qd(e),t)for(e=0;e<t.length;e++)qd(t[e])}}function pg(e,t){return e(t)}function gg(){}var ra=!1;function mg(e,t,n){if(ra)return e(t,n);ra=!0;try{return pg(e,t,n)}finally{ra=!1,(Ai!==null||Fi!==null)&&(gg(),hg())}}function Yr(e,t){var n=e.stateNode;if(n===null)return null;var i=Cl(n);if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var pc=!1;if(Jt)try{var or={};Object.defineProperty(or,"passive",{get:function(){pc=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{pc=!1}function P1(e,t,n,i,r,s,o,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Or=!1,Bo=null,jo=!1,gc=null,M1={onError:function(e){Or=!0,Bo=e}};function O1(e,t,n,i,r,s,o,l,a){Or=!1,Bo=null,P1.apply(M1,arguments)}function R1(e,t,n,i,r,s,o,l,a){if(O1.apply(this,arguments),Or){if(Or){var c=Bo;Or=!1,Bo=null}else throw Error(M(198));jo||(jo=!0,gc=c)}}function pi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function yg(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 Jd(e){if(pi(e)!==e)throw Error(M(188))}function T1(e){var t=e.alternate;if(!t){if(t=pi(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Jd(r),e;if(s===i)return Jd(r),t;s=s.sibling}throw Error(M(188))}if(n.return!==i.return)n=r,i=s;else{for(var o=!1,l=r.child;l;){if(l===n){o=!0,n=r,i=s;break}if(l===i){o=!0,i=r,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,i=r;break}if(l===i){o=!0,i=s,n=r;break}l=l.sibling}if(!o)throw Error(M(189))}}if(n.alternate!==i)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function vg(e){return e=T1(e),e!==null?xg(e):null}function xg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xg(e);if(t!==null)return t;e=e.sibling}return null}var _g=lt.unstable_scheduleCallback,Zd=lt.unstable_cancelCallback,L1=lt.unstable_shouldYield,N1=lt.unstable_requestPaint,ye=lt.unstable_now,D1=lt.unstable_getCurrentPriorityLevel,Mu=lt.unstable_ImmediatePriority,wg=lt.unstable_UserBlockingPriority,$o=lt.unstable_NormalPriority,A1=lt.unstable_LowPriority,bg=lt.unstable_IdlePriority,bl=null,At=null;function F1(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(bl,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:B1,z1=Math.log,I1=Math.LN2;function B1(e){return e>>>=0,e===0?32:31-(z1(e)/I1|0)|0}var As=64,Fs=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ho(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~r;l!==0?i=wr(l):(s&=o,s!==0&&(i=wr(s)))}else o=n&~r,o!==0?i=wr(o):s!==0&&(i=wr(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,s=t&-t,r>=s||r===16&&(s&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)n=31-kt(t),r=1<<n,i|=e[n],t&=~r;return i}function j1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $1(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-kt(s),l=1<<o,a=r[o];a===-1?(!(l&n)||l&i)&&(r[o]=j1(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function mc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sg(){var e=As;return As<<=1,!(As&4194240)&&(As=64),e}function sa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function H1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-kt(n),s=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~s}}function Ou(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-kt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var ee=0;function kg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Eg,Ru,Cg,Pg,Mg,yc=!1,zs=[],_n=null,wn=null,bn=null,Kr=new Map,Xr=new Map,dn=[],W1="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 ef(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":wn=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":Kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xr.delete(t.pointerId)}}function lr(e,t,n,i,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:s,targetContainers:[r]},t!==null&&(t=_s(t),t!==null&&Ru(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function V1(e,t,n,i,r){switch(t){case"focusin":return _n=lr(_n,e,t,n,i,r),!0;case"dragenter":return wn=lr(wn,e,t,n,i,r),!0;case"mouseover":return bn=lr(bn,e,t,n,i,r),!0;case"pointerover":var s=r.pointerId;return Kr.set(s,lr(Kr.get(s)||null,e,t,n,i,r)),!0;case"gotpointercapture":return s=r.pointerId,Xr.set(s,lr(Xr.get(s)||null,e,t,n,i,r)),!0}return!1}function Og(e){var t=Jn(e.target);if(t!==null){var n=pi(t);if(n!==null){if(t=n.tag,t===13){if(t=yg(n),t!==null){e.blockedOn=t,Mg(e.priority,function(){Cg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);fc=i,n.target.dispatchEvent(i),fc=null}else return t=_s(n),t!==null&&Ru(t),e.blockedOn=n,!1;t.shift()}return!0}function tf(e,t,n){ho(e)&&n.delete(t)}function U1(){yc=!1,_n!==null&&ho(_n)&&(_n=null),wn!==null&&ho(wn)&&(wn=null),bn!==null&&ho(bn)&&(bn=null),Kr.forEach(tf),Xr.forEach(tf)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,yc||(yc=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,U1)))}function Qr(e){function t(r){return ar(r,e)}if(0<zs.length){ar(zs[0],e);for(var n=1;n<zs.length;n++){var i=zs[n];i.blockedOn===e&&(i.blockedOn=null)}}for(_n!==null&&ar(_n,e),wn!==null&&ar(wn,e),bn!==null&&ar(bn,e),Kr.forEach(t),Xr.forEach(t),n=0;n<dn.length;n++)i=dn[n],i.blockedOn===e&&(i.blockedOn=null);for(;0<dn.length&&(n=dn[0],n.blockedOn===null);)Og(n),n.blockedOn===null&&dn.shift()}var zi=nn.ReactCurrentBatchConfig,Wo=!0;function Y1(e,t,n,i){var r=ee,s=zi.transition;zi.transition=null;try{ee=1,Tu(e,t,n,i)}finally{ee=r,zi.transition=s}}function K1(e,t,n,i){var r=ee,s=zi.transition;zi.transition=null;try{ee=4,Tu(e,t,n,i)}finally{ee=r,zi.transition=s}}function Tu(e,t,n,i){if(Wo){var r=vc(e,t,n,i);if(r===null)ga(e,t,i,Vo,n),ef(e,i);else if(V1(r,e,t,n,i))i.stopPropagation();
vendor: 4,881 bytes, line 37
37else if(ef(e,i),t&4&&-1<W1.indexOf(e)){for(;r!==null;){var s=_s(r);if(s!==null&&Eg(s),s=vc(e,t,n,i),s===null&&ga(e,t,i,Vo,n),s===r)break;r=s}r!==null&&i.stopPropagation()}else ga(e,t,i,null,n)}}var Vo=null;function vc(e,t,n,i){if(Vo=null,e=Pu(i),e=Jn(e),e!==null)if(t=pi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=yg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vo=e,null}function Rg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(D1()){case Mu:return 1;case wg:return 4;case $o:case A1:return 16;case bg:return 536870912;default:return 16}default:return 16}}var hn=null,Lu=null,po=null;function Tg(){if(po)return po;var e,t=Lu,n=t.length,i,r="value"in hn?hn.value:hn.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===r[s-i];i++);return po=r.slice(e,1<i?1-i:void 0)}function go(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 Is(){return!0}function nf(){return!1}function ct(e){function t(n,i,r,s,o){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Is:nf,this.isPropagationStopped=nf,this}return he(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=Is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Is)},persist:function(){},isPersistent:Is}),t}var er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=ct(er),xs=he({},er,{view:0,detail:0}),X1=ct(xs),oa,la,cr,Sl=he({},xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,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!==cr&&(cr&&e.type==="mousemove"?(oa=e.screenX-cr.screenX,la=e.screenY-cr.screenY):la=oa=0,cr=e),oa)},movementY:function(e){return"movementY"in e?e.movementY:la}}),rf=ct(Sl),Q1=he({},Sl,{dataTransfer:0}),G1=ct(Q1),q1=he({},xs,{relatedTarget:0}),aa=ct(q1),J1=he({},er,{animationName:0,elapsedTime:0,pseudoElement:0}),Z1=ct(J1),ev=he({},er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tv=ct(ev),nv=he({},er,{data:0}),sf=ct(nv),iv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rv={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"},sv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ov(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sv[e])?!!t[e]:!1}function Du(){return ov}var lv=he({},xs,{key:function(e){if(e.key){var t=iv[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 5,675 bytes, line 37
37return e.type==="keypress"?(e=go(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(e){return e.type==="keypress"?go(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?go(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),av=ct(lv),cv=he({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=ct(cv),uv=he({},xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),dv=ct(uv),fv=he({},er,{propertyName:0,elapsedTime:0,pseudoElement:0}),hv=ct(fv),pv=he({},Sl,{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}),gv=ct(pv),mv=[9,13,27,32],Au=Jt&&"CompositionEvent"in window,Rr=null;Jt&&"documentMode"in document&&(Rr=document.documentMode);var yv=Jt&&"TextEvent"in window&&!Rr,Lg=Jt&&(!Au||Rr&&8<Rr&&11>=Rr),lf=String.fromCharCode(32),af=!1;function Ng(e,t){switch(e){case"keyup":return mv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ki=!1;function vv(e,t){switch(e){case"compositionend":return Dg(t);case"keypress":return t.which!==32?null:(af=!0,lf);case"textInput":return e=t.data,e===lf&&af?null:e;default:return null}}function xv(e,t){if(ki)return e==="compositionend"||!Au&&Ng(e,t)?(e=Tg(),po=Lu=hn=null,ki=!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 Lg&&t.locale!=="ko"?null:t.data;default:return null}}var _v={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 cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_v[e.type]:t==="textarea"}function Ag(e,t,n,i){fg(i),t=Uo(t,"onChange"),0<t.length&&(n=new Nu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Tr=null,Gr=null;function wv(e){Yg(e,0)}function kl(e){var t=Pi(e);if(sg(t))return e}function bv(e,t){if(e==="change")return t}var Fg=!1;if(Jt){var ca;if(Jt){var ua="oninput"in document;if(!ua){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),ua=typeof uf.oninput=="function"}ca=ua}else ca=!1;Fg=ca&&(!document.documentMode||9<document.documentMode)}function df(){Tr&&(Tr.detachEvent("onpropertychange",zg),Gr=Tr=null)}function zg(e){if(e.propertyName==="value"&&kl(Gr)){var t=[];Ag(t,Gr,e,Pu(e)),mg(wv,t)}}function Sv(e,t,n){e==="focusin"?(df(),Tr=t,Gr=n,Tr.attachEvent("onpropertychange",zg)):e==="focusout"&&df()}function kv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kl(Gr)}function Ev(e,t){if(e==="click")return kl(t)}function Cv(e,t){if(e==="input"||e==="change")return kl(t)}function Pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:Pv;function qr(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!ec.call(t,r)||!Pt(e[r],t[r]))return!1}return!0}function ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var n=ff(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ff(n)}}function Ig(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ig(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bg(){for(var e=window,t=Io();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Io(e.document)}return t}function Fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Mv(e){var t=Bg(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ig(n.ownerDocument.documentElement,n)){if(i!==null&&Fu(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!e.extend&&s>i&&(r=i,i=s,s=r),r=hf(n,s);var o=hf(n,i);r&&o&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),s>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ov=Jt&&"documentMode"in document&&11>
vendor: 4,330 bytes, line 37
37=document.documentMode,Ei=null,xc=null,Lr=null,_c=!1;function pf(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_c||Ei==null||Ei!==Io(i)||(i=Ei,"selectionStart"in i&&Fu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Lr&&qr(Lr,i)||(Lr=i,i=Uo(xc,"onSelect"),0<i.length&&(t=new Nu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ei)))}function Bs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ci={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionend:Bs("Transition","TransitionEnd")},da={},jg={};Jt&&(jg=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function El(e){if(da[e])return da[e];if(!Ci[e])return e;var t=Ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jg)return da[e]=t[n];return e}var $g=El("animationend"),Hg=El("animationiteration"),Wg=El("animationstart"),Vg=El("transitionend"),Ug=new Map,gf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zn(e,t){Ug.set(e,t),hi(t,[e])}for(var fa=0;fa<gf.length;fa++){var ha=gf[fa],Rv=ha.toLowerCase(),Tv=ha[0].toUpperCase()+ha.slice(1);zn(Rv,"on"+Tv)}zn($g,"onAnimationEnd");zn(Hg,"onAnimationIteration");zn(Wg,"onAnimationStart");zn("dblclick","onDoubleClick");zn("focusin","onFocus");zn("focusout","onBlur");zn(Vg,"onTransitionEnd");$i("onMouseEnter",["mouseout","mouseover"]);$i("onMouseLeave",["mouseout","mouseover"]);$i("onPointerEnter",["pointerout","pointerover"]);$i("onPointerLeave",["pointerout","pointerover"]);hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hi("onBeforeInput",["compositionend","keypress","textInput","paste"]);hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var br="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lv=new Set("cancel close invalid load scroll toggle".split(" ").concat(br));function mf(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,R1(i,t,void 0,e),e.currentTarget=null}function Yg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var s=void 0;if(t)for(var o=i.length-1;0<=o;o--){var l=i[o],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==s&&r.isPropagationStopped())break e;mf(r,l,c),s=a}else for(o=0;o<i.length;o++){if(l=i[o],a=l.instance,c=l.currentTarget,l=l.listener,a!==s&&r.isPropagationStopped())break e;mf(r,l,c),s=a}}}if(jo)throw e=gc,jo=!1,gc=null,e}function se(e,t){var n=t[Ec];n===void 0&&(n=t[Ec]=new Set);var i=e+"__bubble";n.has(i)||(Kg(t,e,2,!1),n.add(i))}function pa(e,t,n){var i=0;t&&(i|=4),Kg(n,e,i,t)}var js="_reactListening"+Math.random().toString(36).slice(2);function Jr(e){if(!e[js]){e[js]=!0,eg.forEach(function(n){n!=="selectionchange"&&(Lv.has(n)||pa(n,!1,e),pa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;
vendor: 3,467 bytes, line 37
37t===null||t[js]||(t[js]=!0,pa("selectionchange",!1,t))}}function Kg(e,t,n,i){switch(Rg(t)){case 1:var r=Y1;break;case 4:r=K1;break;default:r=Tu}n=r.bind(null,t,n,e),r=void 0,!pc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function ga(e,t,n,i,r){var s=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var l=i.stateNode.containerInfo;if(l===r||l.nodeType===8&&l.parentNode===r)break;if(o===4)for(o=i.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===r||a.nodeType===8&&a.parentNode===r))return;o=o.return}for(;l!==null;){if(o=Jn(l),o===null)return;if(a=o.tag,a===5||a===6){i=s=o;continue e}l=l.parentNode}}i=i.return}mg(function(){var c=s,u=Pu(n),d=[];e:{var f=Ug.get(e);if(f!==void 0){var h=Nu,p=e;switch(e){case"keypress":if(go(n)===0)break e;case"keydown":case"keyup":h=av;break;case"focusin":p="focus",h=aa;break;case"focusout":p="blur",h=aa;break;case"beforeblur":case"afterblur":h=aa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=G1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=dv;break;case $g:case Hg:case Wg:h=Z1;break;case Vg:h=hv;break;case"scroll":h=X1;break;case"wheel":h=gv;break;case"copy":case"cut":case"paste":h=tv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=of}var y=(t&4)!==0,v=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var m=c,x;m!==null;){x=m;var _=x.stateNode;if(x.tag===5&&_!==null&&(x=_,g!==null&&(_=Yr(m,g),_!=null&&y.push(Zr(m,_,x)))),v)break;m=m.return}0<y.length&&(f=new h(f,p,null,n,u),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==fc&&(p=n.relatedTarget||n.fromElement)&&(Jn(p)||p[Zt]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=c,p=p?Jn(p):null,p!==null&&(v=pi(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=c),h!==p)){if(y=rf,_="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(y=of,_="onPointerLeave",g="onPointerEnter",m="pointer"),v=h==null?f:Pi(h),x=p==null?f:Pi(p),f=new y(_,m+"leave",h,n,u),f.target=v,f.relatedTarget=x,_=null,Jn(u)===c&&(y=new y(g,m+"enter",p,n,u),y.target=x,y.relatedTarget=v,_=y),v=_,h&&p)t:{for(y=h,g=p,m=0,x=y;x;x=vi(x))m++;for(x=0,_=g;_;_=vi(_))x++;for(;0<m-x;)y=vi(y),m--;for(;0<x-m;)g=vi(g),x--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=vi(y),g=vi(g)}y=null}else y=null;h!==null&&yf(d,f,h,y,!1),p!==null&&v!==null&&yf(d,v,p,y,!0)}}e:{if(f=c?Pi(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var w=bv;else if(cf(f))if(Fg)w=Cv;else{w=kv;var E=Sv}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=Ev);if(w&&(w=w(e,c))){Ag(d,w,n,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&lc(f,"number",f.value)}
vendor: 5,976 bytes, lines 37-38
37switch(E=c?Pi(c):window,e){case"focusin":(cf(E)||E.contentEditable==="true")&&(Ei=E,xc=c,Lr=null);break;case"focusout":Lr=xc=Ei=null;break;case"mousedown":_c=!0;break;case"contextmenu":case"mouseup":case"dragend":_c=!1,pf(d,n,u);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":pf(d,n,u)}var k;if(Au)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ki?Ng(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Lg&&n.locale!=="ko"&&(ki||C!=="onCompositionStart"?C==="onCompositionEnd"&&ki&&(k=Tg()):(hn=u,Lu="value"in hn?hn.value:hn.textContent,ki=!0)),E=Uo(c,C),0<E.length&&(C=new sf(C,e,null,n,u),d.push({event:C,listeners:E}),k?C.data=k:(k=Dg(n),k!==null&&(C.data=k)))),(k=yv?vv(e,n):xv(e,n))&&(c=Uo(c,"onBeforeInput"),0<c.length&&(u=new sf("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=k))}Yg(d,t)})}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uo(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,s=r.stateNode;r.tag===5&&s!==null&&(r=s,s=Yr(e,n),s!=null&&i.unshift(Zr(e,s,r)),s=Yr(e,t),s!=null&&i.push(Zr(e,s,r))),e=e.return}return i}function vi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yf(e,t,n,i,r){for(var s=t._reactName,o=[];n!==null&&n!==i;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===i)break;l.tag===5&&c!==null&&(l=c,r?(a=Yr(n,s),a!=null&&o.unshift(Zr(n,a,l))):r||(a=Yr(n,s),a!=null&&o.push(Zr(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Nv=/\r\n?/g,Dv=/\u0000|\uFFFD/g;function vf(e){return(typeof e=="string"?e:""+e).replace(Nv,` 38`).replace(Dv,"")}function $s(e,t,n){if(t=vf(t),vf(e)!==t&&n)throw Error(M(425))}function Yo(){}var wc=null,bc=null;function Sc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kc=typeof setTimeout=="function"?setTimeout:void 0,Av=typeof clearTimeout=="function"?clearTimeout:void 0,xf=typeof Promise=="function"?Promise:void 0,Fv=typeof queueMicrotask=="function"?queueMicrotask:typeof xf<"u"?function(e){return xf.resolve(null).then(e).catch(zv)}:kc;function zv(e){setTimeout(function(){throw e})}function ma(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){e.removeChild(r),Qr(t);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);Qr(t)}function Sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _f(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 tr=Math.random().toString(36).slice(2),Nt="__reactFiber$"+tr,es="__reactProps$"+tr,Zt="__reactContainer$"+tr,Ec="__reactEvents$"+tr,Iv="__reactListeners$"+tr,Bv="__reactHandles$"+tr;function Jn(e){var t=e[Nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zt]||n[Nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[Nt])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function _s(e){return e=e[Nt]||e[Zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Cl(e){return e[es]||null}var Cc=[],Mi=-1;function In(e){return{current:e}}function le(e){0>Mi||(e.current=Cc[Mi],Cc[Mi]=null,Mi--)}function ie(e,t){Mi++,Cc[Mi]=e.current,e.current=t}var Ln={},$e=In(Ln),Je=In(!1),oi=Ln;function Hi(e,t){var n=e.type.contextTypes;if(!n)return Ln;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=t[s];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Ze(e){return e=e.childContextTypes,e!=null}function Ko(){le(Je),le($e)}function wf(e,t,n){if($e.current!==Ln)throw Error(M(168));ie($e,t),ie(Je,n)}function Xg(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(M(108,S1(e)||"Unknown",r));return he({},n,i)}function Xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,oi=$e.current,ie($e,e),ie(Je,Je.current),!0}function bf(e,t,n){var i=e.stateNode;if(!i)throw Error(M(169));n?(e=Xg(e,t,oi),i.__reactInternalMemoizedMergedChildContext=e,le(Je),le($e),ie($e,e)):le(Je),ie(Je,n)}var Ht=null,Pl=!1,ya=!1;function Qg(e){Ht===null?Ht=[e]:Ht.push(e)}function jv(e){Pl=!0,Qg(e)}function Bn(){if(!ya&&Ht!==null){ya=!0;var e=0,t=ee;try{var n=Ht;for(ee=1;e<n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}Ht=null,Pl=!1}catch(r){throw Ht!==null&&(Ht=Ht.slice(e+1)),_g(Mu,Bn),r}finally{ee=t,ya=!1}}return null}var Oi=[],Ri=0,Qo=null,Go=0,dt=[],ft=0,li=null,Vt=1,Ut="";function Xn(e,t){Oi[Ri++]=Go,Oi[Ri++]=Qo,Qo=e,Go=t}function Gg(e,t,n){dt[ft++]=Vt,dt[ft++]=Ut,dt[ft++]=li,li=e;var i=Vt;e=Ut;var r=32-kt(i)-1;i&=~(1<<r),n+=1;var s=32-kt(t)+r;if(30<s){var o=r-r%5;s=(i&(1<<o)-1).toString(32),i>>=o,r-=o,Vt=1<<32-kt(t)+r|n<<r|i,Ut=s+e}else Vt=1<<s|n<<r|i,Ut=e}function zu(e){e.return!==null&&(Xn(e,1),Gg(e,1,0))}function Iu(e){for(;e===Qo;)Qo=Oi[--Ri],Oi[Ri]=null,Go=Oi[--Ri],Oi[Ri]=null;for(;e===li;)li=dt[--ft],dt[ft]=null,Ut=dt[--ft],dt[ft]=null,Vt=dt[--ft],dt[ft]=null}var ot=null,st=null,ce=!1,bt=null;function qg(e,t){var n=ht(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sf(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 5,348 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ot=e,st=Sn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,st=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=li!==null?{id:Vt,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,st=null,!0):!1;default:return!1}}function Pc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mc(e){if(ce){var t=st;if(t){var n=t;if(!Sf(e,t)){if(Pc(e))throw Error(M(418));t=Sn(n.nextSibling);var i=ot;t&&Sf(e,t)?qg(i,n):(e.flags=e.flags&-4097|2,ce=!1,ot=e)}}else{if(Pc(e))throw Error(M(418));e.flags=e.flags&-4097|2,ce=!1,ot=e}}}function kf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Hs(e){if(e!==ot)return!1;if(!ce)return kf(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Sc(e.type,e.memoizedProps)),t&&(t=st)){if(Pc(e))throw Jg(),Error(M(418));for(;t;)qg(e,t),t=Sn(t.nextSibling)}if(kf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){st=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}st=null}}else st=ot?Sn(e.stateNode.nextSibling):null;return!0}function Jg(){for(var e=st;e;)e=Sn(e.nextSibling)}function Wi(){st=ot=null,ce=!1}function Bu(e){bt===null?bt=[e]:bt.push(e)}var $v=nn.ReactCurrentBatchConfig;function _t(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var qo=In(null),Jo=null,Ti=null,ju=null;function $u(){ju=Ti=Jo=null}function Hu(e){var t=qo.current;le(qo),e._currentValue=t}function Oc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){Jo=e,ju=Ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ge=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(ju!==e)if(e={context:e,memoizedValue:t,next:null},Ti===null){if(Jo===null)throw Error(M(308));Ti=e,Jo.dependencies={lanes:0,firstContext:e}}else Ti=Ti.next=e;return t}var Zn=null;function Wu(e){Zn===null?Zn=[e]:Zn.push(e)}function Zg(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,Wu(t)):(n.next=r.next,r.next=n),t.interleaved=n,en(e,i)}function en(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function em(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 Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,X&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,en(e,n)}return r=i.interleaved,r===null?(t.next=t,Wu(i)):(t.next=r.next,r.next=t),i.interleaved=t,en(e,n)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ou(e,n)}}function Ef(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,i){var r=e.updateQueue;un=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var a=l,c=a.next;a.next=null,o===null?s=c:o.next=c,o=a;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=a))}if(s!==null){var d=r.baseState;o=0,u=c=a=null,l=s;do{var f=l.lane,h=l.eventTime;if((i&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,y=l;switch(f=t,h=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=he({},d,f);break e;case 2:un=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=r.effects,f===null?r.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=h,a=d):u=u.next=h,o|=f;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;f=l,l=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(1);if(u===null&&(a=d),r.baseState=a,r.firstBaseUpdate=c,r.lastBaseUpdate=u,t
vendor: 5,095 bytes, line 38
38=r.shared.interleaved,t!==null){r=t;do o|=r.lane,r=r.next;while(r!==t)}else s===null&&(r.shared.lanes=0);ci|=o,e.lanes=o,e.memoizedState=d}}function Cf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!="function")throw Error(M(191,r));r.call(i)}}}var tm=new Zp.Component().refs;function Rc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?pi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Ve(),r=Cn(e),s=Qt(i,r);s.payload=t,n!=null&&(s.callback=n),t=kn(e,s,r),t!==null&&(Et(t,e,r,i),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Ve(),r=Cn(e),s=Qt(i,r);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=kn(e,s,r),t!==null&&(Et(t,e,r,i),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ve(),i=Cn(e),r=Qt(n,i);r.tag=2,t!=null&&(r.callback=t),t=kn(e,r,i),t!==null&&(Et(t,e,i,n),mo(t,e,i))}};function Pf(e,t,n,i,r,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,s,o):t.prototype&&t.prototype.isPureReactComponent?!qr(n,i)||!qr(r,s):!0}function nm(e,t,n){var i=!1,r=Ln,s=t.contextType;return typeof s=="object"&&s!==null?s=gt(s):(r=Ze(t)?oi:$e.current,i=t.contextTypes,s=(i=i!=null)?Hi(e,r):Ln),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=s),t}function Mf(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ml.enqueueReplaceState(t,t.state,null)}function Tc(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=tm,Vu(e);var s=t.contextType;typeof s=="object"&&s!==null?r.context=gt(s):(s=Ze(t)?oi:$e.current,r.context=Hi(e,s)),r.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Rc(e,t,s,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Ml.enqueueReplaceState(r,r.state,null),Zo(e,n,r,i),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function ur(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(M(309));var i=n.stateNode}if(!i)throw Error(M(147,e));var r=i,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=r.refs;l===tm&&(l=r.refs={}),o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function Ws(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Of(e){var t=e._init;return t(e._payload)}function im(e){function t(g,m){if(e){var x=g.deletions;x===null?(g.deletions=[m],g.flags|=16):x.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function i(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function r(g,m){return g=Pn(g,m),g.index=0,g.sibling=null,g}function s(g,m,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<m?(g.flags|=2,m):x):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,x,_){return m===null||m.tag!==6?(m=ka(x,g.mode,_),m.return=g,m):(m=r(m,x),m.return=g,m)}function a(g,m,x,_){var w=x.type;return w===Si?u(g,m,x.props.children,_,x.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===cn&&Of(w)===m.type)?(_=r(m,x.props),_.ref=ur(g,m,x),_.return=g,_):(_=bo(x.type,x.key,x.props,null,g.mode,_),_.ref=ur(g,m,x),_.return=g,_)}function c(g,m,x,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Ea(x,g.mode,_),m.return=g,m):(m=r(m,x.children||[]),m.return=g,m)}function u(g,m,x,_,w){return m===null||m.tag!==7?(m=ii(x,g.mode,_,w),m.return=g,m):(m=r(m,x),m.return=g,m)}function d(g,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ka(""+m,g.mode,x),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ls:return x=bo(m.type,m.key,m.props,null,g.mode,x),x.ref=ur(g,null,m),x.return=g,x;case bi:return m=Ea(m,g.mode,x),m.return=g,m;case cn:var _=m._init;return d(g,_(m._payload),x)}if(_r(m)||sr(m))return m=ii(m,g.mode,x,null),m.return=g,m;Ws(g,m)}return null}function f(g,m,x,_){var w=m!==null?m.key:null;
vendor: 25,224 bytes, lines 38-40
38if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:l(g,m,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ls:return x.key===w?a(g,m,x,_):null;case bi:return x.key===w?c(g,m,x,_):null;case cn:return w=x._init,f(g,m,w(x._payload),_)}if(_r(x)||sr(x))return w!==null?null:u(g,m,x,_,null);Ws(g,x)}return null}function h(g,m,x,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(x)||null,l(m,g,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ls:return g=g.get(_.key===null?x:_.key)||null,a(m,g,_,w);case bi:return g=g.get(_.key===null?x:_.key)||null,c(m,g,_,w);case cn:var E=_._init;return h(g,m,x,E(_._payload),w)}if(_r(_)||sr(_))return g=g.get(x)||null,u(m,g,_,w,null);Ws(m,_)}return null}function p(g,m,x,_){for(var w=null,E=null,k=m,C=m=0,L=null;k!==null&&C<x.length;C++){k.index>C?(L=k,k=null):L=k.sibling;var T=f(g,k,x[C],_);if(T===null){k===null&&(k=L);break}e&&k&&T.alternate===null&&t(g,k),m=s(T,m,C),E===null?w=T:E.sibling=T,E=T,k=L}if(C===x.length)return n(g,k),ce&&Xn(g,C),w;if(k===null){for(;C<x.length;C++)k=d(g,x[C],_),k!==null&&(m=s(k,m,C),E===null?w=k:E.sibling=k,E=k);return ce&&Xn(g,C),w}for(k=i(g,k);C<x.length;C++)L=h(k,g,C,x[C],_),L!==null&&(e&&L.alternate!==null&&k.delete(L.key===null?C:L.key),m=s(L,m,C),E===null?w=L:E.sibling=L,E=L);return e&&k.forEach(function(F){return t(g,F)}),ce&&Xn(g,C),w}function y(g,m,x,_){var w=sr(x);if(typeof w!="function")throw Error(M(150));if(x=w.call(x),x==null)throw Error(M(151));for(var E=w=null,k=m,C=m=0,L=null,T=x.next();k!==null&&!T.done;C++,T=x.next()){k.index>C?(L=k,k=null):L=k.sibling;var F=f(g,k,T.value,_);if(F===null){k===null&&(k=L);break}e&&k&&F.alternate===null&&t(g,k),m=s(F,m,C),E===null?w=F:E.sibling=F,E=F,k=L}if(T.done)return n(g,k),ce&&Xn(g,C),w;if(k===null){for(;!T.done;C++,T=x.next())T=d(g,T.value,_),T!==null&&(m=s(T,m,C),E===null?w=T:E.sibling=T,E=T);return ce&&Xn(g,C),w}for(k=i(g,k);!T.done;C++,T=x.next())T=h(k,g,C,T.value,_),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?C:T.key),m=s(T,m,C),E===null?w=T:E.sibling=T,E=T);return e&&k.forEach(function(I){return t(g,I)}),ce&&Xn(g,C),w}function v(g,m,x,_){if(typeof x=="object"&&x!==null&&x.type===Si&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ls:e:{for(var w=x.key,E=m;E!==null;){if(E.key===w){if(w=x.type,w===Si){if(E.tag===7){n(g,E.sibling),m=r(E,x.props.children),m.return=g,g=m;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===cn&&Of(w)===E.type){n(g,E.sibling),m=r(E,x.props),m.ref=ur(g,E,x),m.return=g,g=m;break e}n(g,E);break}else t(g,E);E=E.sibling}x.type===Si?(m=ii(x.props.children,g.mode,_,x.key),m.return=g,g=m):(_=bo(x.type,x.key,x.props,null,g.mode,_),_.ref=ur(g,m,x),_.return=g,g=_)}return o(g);case bi:e:{for(E=x.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(g,m.sibling),m=r(m,x.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Ea(x,g.mode,_),m.return=g,g=m}return o(g);case cn:return E=x._init,v(g,m,E(x._payload),_)}if(_r(x))return p(g,m,x,_);if(sr(x))return y(g,m,x,_);Ws(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(g,m.sibling),m=r(m,x),m.return=g,g=m):(n(g,m),m=ka(x,g.mode,_),m.return=g,g=m),o(g)):n(g,m)}return v}var Vi=im(!0),rm=im(!1),ws={},Ft=In(ws),ts=In(ws),ns=In(ws);function ei(e){if(e===ws)throw Error(M(174));return e}function Uu(e,t){switch(ie(ns,t),ie(ts,e),ie(Ft,ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cc(t,e)}le(Ft),ie(Ft,t)}function Ui(){le(Ft),le(ts),le(ns)}function sm(e){ei(ns.current);var t=ei(Ft.current),n=cc(t,e.type);t!==n&&(ie(ts,e),ie(Ft,n))}function Yu(e){ts.current===e&&(le(Ft),le(ts))}var de=In(0);function el(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=[];function Ku(){for(var e=0;e<va.length;e++)va[e]._workInProgressVersionPrimary=null;va.length=0}var yo=nn.ReactCurrentDispatcher,xa=nn.ReactCurrentBatchConfig,ai=0,fe=null,be=null,Oe=null,tl=!1,Nr=!1,is=0,Hv=0;function Fe(){throw Error(M(321))}function Xu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function Qu(e,t,n,i,r,s){if(ai=s,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?Yv:Kv,e=n(i,r),Nr){s=0;do{if(Nr=!1,is=0,25<=s)throw Error(M(301));s+=1,Oe=be=null,t.updateQueue=null,yo.current=Xv,e=n(i,r)}while(Nr)}if(yo.current=nl,t=be!==null&&be.next!==null,ai=0,Oe=be=fe=null,tl=!1,t)throw Error(M(300));return e}function Gu(){var e=is!==0;return is=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?fe.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function mt(){if(be===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Oe===null?fe.memoizedState:Oe.next;if(t!==null)Oe=t,be=e;else{if(e===null)throw Error(M(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Oe===null?fe.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function rs(e,t){return typeof t=="function"?t(e):t}function _a(e){var t=mt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var i=be,r=i.baseQueue,s=n.pending;if(s!==null){if(r!==null){var o=r.next;r.next=s.next,s.next=o}i.baseQueue=r=s,n.pending=null}if(r!==null){s=r.next,i=i.baseState;var l=o=null,a=null,c=s;do{var u=c.lane;if((ai&u)===u)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=d,o=i):a=a.next=d,fe.lanes|=u,ci|=u}c=c.next}while(c!==null&&c!==s);a===null?o=i:a.next=l,Pt(i,t.memoizedState)||(Ge=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=a,n.lastRenderedState=i}if(e=n.interleaved,e!==null){r=e;do s=r.lane,fe.lanes|=s,ci|=s,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wa(e){var t=mt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var o=r=r.next;do s=e(s,o.action),o=o.next;while(o!==r);Pt(s,t.memoizedState)||(Ge=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,i]}function om(){}function lm(e,t){var n=fe,i=mt(),r=t(),s=!Pt(i.memoizedState,r);if(s&&(i.memoizedState=r,Ge=!0),i=i.queue,qu(um.bind(null,n,i,e),[e]),i.getSnapshot!==t||s||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,ss(9,cm.bind(null,n,i,r,t),void 0,null),Te===null)throw Error(M(349));ai&30||am(n,t,r)}return r}function am(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cm(e,t,n,i){t.value=n,t.getSnapshot=i,dm(t)&&fm(e)}function um(e,t,n){return n(function(){dm(t)&&fm(e)})}function dm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function fm(e){var t=en(e,1);t!==null&&Et(t,e,1,-1)}function Rf(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:e},t.queue=e,e=e.dispatch=Uv.bind(null,fe,e),[t.memoizedState,e]}function ss(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function hm(){return mt().memoizedState}function vo(e,t,n,i){var r=Tt();fe.flags|=e,r.memoizedState=ss(1|t,n,void 0,i===void 0?null:i)}function Ol(e,t,n,i){var r=mt();i=i===void 0?null:i;var s=void 0;if(be!==null){var o=be.memoizedState;if(s=o.destroy,i!==null&&Xu(i,o.deps)){r.memoizedState=ss(t,n,s,i);return}}fe.flags|=e,r.memoizedState=ss(1|t,n,s,i)}function Tf(e,t){return vo(8390656,8,e,t)}function qu(e,t){return Ol(2048,8,e,t)}function pm(e,t){return Ol(4,2,e,t)}function gm(e,t){return Ol(4,4,e,t)}function mm(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 ym(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4,4,mm.bind(null,t,e),n)}function Ju(){}function vm(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&Xu(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function xm(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&Xu(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function _m(e,t,n){return ai&21?(Pt(n,t)||(n=Sg(),fe.lanes|=n,ci|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ge=!0),e.memoizedState=n)}function Wv(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var i=xa.transition;xa.transition={};try{e(!1),t()}finally{ee=n,xa.transition=i}}function wm(){return mt().memoizedState}function Vv(e,t,n){var i=Cn(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},bm(e))Sm(t,n);else if(n=Zg(e,t,n,i),n!==null){var r=Ve();Et(n,e,i,r),km(n,t,i)}}function Uv(e,t,n){var i=Cn(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(bm(e))Sm(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(r.hasEagerState=!0,r.eagerState=l,Pt(l,o)){var a=t.interleaved;a===null?(r.next=r,Wu(t)):(r.next=a.next,a.next=r),t.interleaved=r;return}}catch{}finally{}n=Zg(e,t,r,i),n!==null&&(r=Ve(),Et(n,e,i,r),km(n,t,i))}}function bm(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Sm(e,t){Nr=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function km(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ou(e,n)}}var nl={readContext:gt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Yv={readContext:gt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Tf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vo(4194308,4,mm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vo(4194308,4,e,t)},useInsertionEffect:function(e,t){return vo(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Tt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Vv.bind(null,fe,e),[i.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Rf,useDebugValue:Ju,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Rf(!1),t=e[0];return e=Wv.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=fe,r=Tt();if(ce){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Te===null)throw Error(M(349));ai&30||am(i,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Tf(um.bind(null,i,s,e),[e]),i.flags|=2048,ss(9,cm.bind(null,i,s,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Te.identifierPrefix;if(ce){var n=Ut,i=Vt;n=(i&~(1<<32-kt(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Hv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Kv={readContext:gt,useCallback:vm,useContext:gt,useEffect:qu,useImperativeHandle:ym,useInsertionEffect:pm,useLayoutEffect:gm,useMemo:xm,useReducer:_a,useRef:hm,useState:function(){return _a(rs)},useDebugValue:Ju,useDeferredValue:function(e){var t=mt();return _m(t,be.memoizedState,e)},useTransition:function(){var e=_a(rs)[0],t=mt().memoizedState;return[e,t]},useMutableSource:om,useSyncExternalStore:lm,useId:wm,unstable_isNewReconciler:!1},Xv={readContext:gt,useCallback:vm,useContext:gt,useEffect:qu,useImperativeHandle:ym,useInsertionEffect:pm,useLayoutEffect:gm,useMemo:xm,useReducer:wa,useRef:hm,useState:function(){return wa(rs)},useDebugValue:Ju,useDeferredValue:function(e){var t=mt();return be===null?t.memoizedState=e:_m(t,be.memoizedState,e)},useTransition:function(){var e=wa(rs)[0],t=mt().memoizedState;return[e,t]},useMutableSource:om,useSyncExternalStore:lm,useId:wm,unstable_isNewReconciler:!1};function Yi(e,t){try{var n="",i=t;do n+=b1(i),i=i.return;while(i);var r=n}catch(s){r=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:r,digest:null}}function ba(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Lc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qv=typeof WeakMap=="function"?WeakMap:Map;function Em(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){rl||(rl=!0,Hc=i),Lc(e,t)},n}function Cm(e,t,n){n=Qt(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){Lc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Lc(e,t),typeof i!="function"&&(En===null?En=new Set([this]):En.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Lf(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Qv;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=cx.bind(null,e,t,n),t.then(e,e))}function Nf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Df(e,t,n,i,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Qt(-1,1),t.tag=2,kn(n,t,1))),n.lanes|=1),e)}var Gv=nn.ReactCurrentOwner,Ge=!1;function We(e,t,n,i){t.child=e===null?rm(t,null,n,i):Vi(t,e.child,n,i)}function Af(e,t,n,i,r){n=n.render;var s=t.ref;return Ii(t,r),i=Qu(e,t,n,i,s,r),n=Gu(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,tn(e,t,r)):(ce&&n&&zu(t),t.flags|=1,We(e,t,i,r),t.child)}function Ff(e,t,n,i,r){if(e===null){var s=n.type;return typeof s=="function"&&!od(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Pm(e,t,s,i,r)):(e=bo(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&r)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:qr,n(o,i)&&e.ref===t.ref)return tn(e,t,r)}return t.flags|=1,e=Pn(s,i),e.ref=t.ref,e.return=t,t.child=e}function Pm(e,t,n,i,r){if(e!==null){var s=e.memoizedProps;if(qr(s,i)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=i=s,(e.lanes&r)!==0)e.flags&131072&&(Ge=!0);else return t.lanes=e.lanes,tn(e,t,r)}return Nc(e,t,n,i,r)}function Mm(e,t,n){var i=t.pendingProps,r=i.children,s=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(Ni,nt),nt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ie(Ni,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:n,ie(Ni,nt),nt|=i}else s!==null?(i=s.baseLanes|n,t.memoizedState=null):i=n,ie(Ni,nt),nt|=i;return We(e,t,r,n),t.child}function Om(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nc(e,t,n,i,r){var s=Ze(n)?oi:$e.current;return s=Hi(t,s),Ii(t,r),n=Qu(e,t,n,i,s,r),i=Gu(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,tn(e,t,r)):(ce&&i&&zu(t),t.flags|=1,We(e,t,n,r),t.child)}function zf(e,t,n,i,r){if(Ze(n)){var s=!0;Xo(t)}else s=!1;if(Ii(t,r),t.stateNode===null)xo(e,t),nm(t,n,i),Tc(t,n,i,r),i=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=gt(c):(c=Ze(n)?oi:$e.current,c=Hi(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==i||a!==c)&&Mf(t,o,i,c),un=!1;var f=t.memoizedState;o.state=f,Zo(t,i,o,r),a=t.memoizedState,l!==i||f!==a||Je.current||un?(typeof u=="function"&&(Rc(t,n,u,i),a=t.memoizedState),(l=un||Pf(t,n,l,i,f,a,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=a),o.props=i,o.state=a,o.context=c,i=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,em(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:_t(t.type,l),o.props=c,d=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=gt(a):(a=Ze(n)?oi:$e.current,a=Hi(t,a));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||f!==a)&&Mf(t,o,i,a),un=!1,f=t.memoizedState,o.state=f,Zo(t,i,o,r);var p=t.memoizedState;l!==d||f!==p||Je.current||un?(typeof h=="function"&&(Rc(t,n,h,i),p=t.memoizedState),(c=un||Pf(t,n,c,i,f,p,a)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,p,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,p,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=p),o.props=i,o.state=p,o.context=a,i=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return Dc(e,t,n,i,s,r)}function Dc(e,t,n,i,r,s){Om(e,t);var o=(t.flags&128)!==0;if(!i&&!o)return r&&bf(t,n,!1),tn(e,t,s);i=t.stateNode,Gv.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&o?(t.child=Vi(t,e.child,null,s),t.child=Vi(t,null,l,s)):We(e,t,l,s),t.memoizedState=i.state,r&&bf(t,n,!0),t.child}function Rm(e){var t=e.stateNode;t.pendingContext?wf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wf(e,t.context,!1),Uu(e,t.containerInfo)}function If(e,t,n,i,r){return Wi(),Bu(r),t.flags|=256,We(e,t,n,i),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0};function Fc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tm(e,t,n){var i=t.pendingProps,r=de.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(r&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),ie(de,r&1),e===null)return Mc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=i.children,e=i.fallback,s?(i=t.mode,s=t.child,o={mode:"hidden",children:o},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ll(o,i,0,null),e=ii(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fc(n),t.memoizedState=Ac,e):Zu(t,o));if(r=e.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return qv(e,t,o,i,l,r,n);if(s){s=i.fallback,o=t.mode,r=e.child,l=r.sibling;var a={mode:"hidden",children:i.children};return!(o&1)&&t.child!==r?(i=t.child,i.childLanes=0,i.pendingProps=a,t.deletions=null):(i=Pn(r,a),i.subtreeFlags=r.subtreeFlags&14680064),l!==null?s=Pn(l,s):(s=ii(s,o,n,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,o=e.child.memoizedState,o=o===null?Fc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Ac,i}return s=e.child,e=s.sibling,i=Pn(s,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Zu(e,t){return t=Ll({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vs(e,t,n,i){return i!==null&&Bu(i),Vi(t,e.child,null,n),e=Zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qv(e,t,n,i,r,s,o){if(n)return t.flags&256?(t.flags&=-257,i=ba(Error(M(422))),Vs(e,t,o,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=i.fallback,r=t.mode,i=Ll({mode:"visible",children:i.children},r,0,null),s=ii(s,r,o,null),s.flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,t.mode&1&&Vi(t,e.child,null,o),t.child.memoizedState=Fc(o),t.memoizedState=Ac,s);if(!(t.mode&1))return Vs(e,t,o,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var l=i.dgst;return i=l,s=Error(M(419)),i=ba(s,i,void 0),Vs(e,t,o,i)}if(l=(o&e.childLanes)!==0,Ge||l){if(i=Te,i!==null){switch(o&-o){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|o)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,en(e,r),Et(i,e,r,-1))}return sd(),i=ba(Error(M(421))),Vs(e,t,o,i)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=ux.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,st=Sn(r.nextSibling),ot=t,ce=!0,bt=null,e!==null&&(dt[ft++]=Vt,dt[ft++]=Ut,dt[ft++]=li,Vt=e.id,Ut=e.overflow,li=t),t=Zu(t,i.children),t.flags|=4096,t)}function Bf(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Oc(e.return,t,n)}function Sa(e,t,n,i,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r)}function Lm(e,t,n){var i=t.pendingProps,r=i.revealOrder,s=i.tail;if(We(e,t,i.children,n),i=de.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bf(e,n,t);else if(e.tag===19)Bf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ie(de,i),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&el(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Sa(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&el(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Sa(t,!0,n,null,s);break;case"together":Sa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ci|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Jv(e,t,n){switch(t.tag){case 3:Rm(t),Wi();break;case 5:sm(t);break;case 1:Ze(t.type)&&Xo(t);break;case 4:Uu(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;ie(qo,i._currentValue),i._currentValue=r;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ie(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Tm(e,t,n):(ie(de,de.current&1),e=tn(e,t,n
vendor: 4,850 bytes, line 40
40),e!==null?e.sibling:null);ie(de,de.current&1);break;case 19:if(i=(n&t.childLanes)!==0,e.flags&128){if(i)return Lm(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ie(de,de.current),i)break;return null;case 22:case 23:return t.lanes=0,Mm(e,t,n)}return tn(e,t,n)}var Nm,zc,Dm,Am;Nm=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}};zc=function(){};Dm=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ei(Ft.current);var s=null;switch(n){case"input":r=sc(e,r),i=sc(e,i),s=[];break;case"select":r=he({},r,{value:void 0}),i=he({},i,{value:void 0}),s=[];break;case"textarea":r=ac(e,r),i=ac(e,i),s=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Yo)}uc(n,i);var o;n=null;for(c in r)if(!i.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var l=r[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Vr.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in i){var a=i[c];if(l=r!=null?r[c]:void 0,i.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Vr.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&se("scroll",e),s||l===a||(s=[])):(s=s||[]).push(c,a))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Am=function(e,t,n,i){n!==i&&(t.flags|=4)};function dr(e,t){if(!ce)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Zv(e,t,n){var i=t.pendingProps;switch(Iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return Ze(t.type)&&Ko(),ze(t),null;case 3:return i=t.stateNode,Ui(),le(Je),le($e),Ku(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Hs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bt!==null&&(Uc(bt),bt=null))),zc(e,t),ze(t),null;case 5:Yu(t);var r=ei(ns.current);if(n=t.type,e!==null&&t.stateNode!=null)Dm(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(M(166));return ze(t),null}if(e=ei(Ft.current),Hs(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Nt]=t,i[es]=s,e=(t.mode&1)!==0,n){case"dialog":se("cancel",i),se("close",i);break;case"iframe":case"object":case"embed":se("load",i);break;case"video":case"audio":for(r=0;r<br.length;r++)se(br[r],i);break;case"source":se("error",i);break;case"img":case"image":case"link":se("error",i),se("load",i);break;case"details":se("toggle",i);break;case"input":Kd(i,s),se("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},se("invalid",i);break;case"textarea":Qd(i,s),se("invalid",i)}uc(n,s),r=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?i.textContent!==l&&(s.suppressHydrationWarning!==!0&&$s(i.textContent,l,e),r=["children",l]):typeof l=="number"&&i.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&$s(i.textContent,l,e),r=["children",""+l]):Vr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&se("scroll",i)}switch(n){case"input":Ns(i),Xd(i,s,!0);break;case"textarea":Ns(i),Gd(i);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(i.onclick=Yo)}i=r,t.updateQueue=i,i!==null&&(t.flags|=4)}else{o=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ag(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(n,{is:i.is}):(e=o.createElement(n),n==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,n),e[Nt]=t,e[es]=i,Nm(e,t,!1,!1),t.stateNode=e;e:{switch(o=dc(n,i),n){case"dialog":se("cancel",e),se("close",e),r=i;break;case"iframe":case"object":case"embed":se("load",e),r=i;break;case"video":case"audio":for(r=0;r<br.length;r++)se(br[r],e);r=i;break;case"source":se("error",e),r=i;break;case"img":case"image":case"link":se("error",e),se("load",e),r=i;break;case"details":se("toggle",e),r=i;break;case"input":Kd(e,i),r=sc(e,i),se("invalid",e);break;case"option":r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=he({},i,{value:void 0}),se("invalid",e);break;case"textarea":Qd(e,i),r=ac(e,i),se("invalid",e);break;default:r=i}uc(n,r),l=r;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?dg(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&cg(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Ur(e,a):typeof a=="number"&&Ur(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Vr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&se("scroll",e):a!=null&&Su(e,s,a,o))}switch(n){case"input":Ns(e),Xd(e,i,!1);break;case"textarea":Ns(e),Gd(e);break;case"option":i.value!=null&&e.setAttribute("value",""+Tn(i.value));break;case"select":e.multiple=!!i.multiple,s=i.value,s!=null?Di(e,!!i.multiple,s,!1):i.defaultValue!=null&&Di(e,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=Yo)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ze(t),null;case 6:if(e&&t.stateNode!=null)Am(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(M(166));if(n=ei(ns.current),ei(Ft.current),Hs(t)){if(i=t.stateNode,n=t.memoizedProps,i[Nt]=t,(s=i.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:$s(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$s(i.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Nt]=t,t.stateNode=i}return ze(t),null;case 13:if(le(de),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&st!==null&&t.mode&1&&!(t.flags&128))Jg(),Wi(),t.flags|=98560,s=!1;else if(s=Hs(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(M(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(M(317));s[Nt]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),s=!1}else bt!==null&&(Uc(bt),bt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Se===0&&(Se=3):sd())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return Ui(),zc(e,t),e===null&&Jr(t.stateNode.containerInfo),ze(t),null;case 10:return Hu(t.type._context),ze(t),null;case 17:return Ze(t.type)&&Ko(),ze(t),null;case 19:if(le(de),s=t.memoizedState,s===null)return ze(t),null;if(i=(t.flags&128)!==0,o=s.rendering,o===null)if(i)dr(s,!1);else{if(Se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=el(e),o!==null){for(t.flags|=128,dr(s,!1),i=o.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ie(de,de.current&1|2),t.child}e=e.sibling}s.tail!==null&&ye()>Ki&&(t.flags|=128,i=!0,dr(s,!1),t.lanes=4194304)}else{if(!i)if(e=el(o),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ce)return ze(t),null}else 2*ye()-s.renderingStartTime>Ki&&n!==1073741824&&(t.flags|=128,i=!0,dr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ye(),t.sibling=null,n=de.current,ie(de,i?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return rd(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?nt&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function ex(e,t){switch(Iu(t),t.tag){case 1:return Ze(t.type)&&Ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 9,882 bytes, line 40
40case 3:return Ui(),le(Je),le($e),Ku(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yu(t),null;case 13:if(le(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(de),null;case 4:return Ui(),null;case 10:return Hu(t.type._context),null;case 22:case 23:return rd(),null;case 24:return null;default:return null}}var Us=!1,Be=!1,tx=typeof WeakSet=="function"?WeakSet:Set,N=null;function Li(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){pe(e,t,i)}else n.current=null}function Ic(e,t,n){try{n()}catch(i){pe(e,t,i)}}var jf=!1;function nx(e,t){if(wc=Wo,e=Bg(),Fu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(l=o+r),d!==s||i!==0&&d.nodeType!==3||(a=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===r&&(l=o),f===s&&++u===i&&(a=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(bc={focusedElem:e,selectionRange:n},Wo=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,v=p.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:_t(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(_){pe(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return p=jf,jf=!1,p}function Dr(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,s!==void 0&&Ic(t,n,s)}r=r.next}while(r!==i)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[es],delete t[Ec],delete t[Iv],delete t[Bv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zm(e){return e.tag===5||e.tag===3||e.tag===4}function $f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yo));else if(i!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function $c(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}var Le=null,wt=!1;function on(e,t,n){for(n=n.child;n!==null;)Im(e,t,n),n=n.sibling}function Im(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 5:Be||Li(n,t);case 6:var i=Le,r=wt;Le=null,on(e,t,n),Le=i,wt=r,Le!==null&&(wt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(wt?(e=Le,n=n.stateNode,e.nodeType===8?ma(e.parentNode,n):e.nodeType===1&&ma(e,n),Qr(e)):ma(Le,n.stateNode));break;case 4:i=Le,r=wt,Le=n.stateNode.containerInfo,wt=!0,on(e,t,n),Le=i,wt=r;break;case 0:case 11:case 14:case 15:if(!Be&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ic(n,t,o),r=r.next}while(r!==i)}on(e,t,n);break;case 1:if(!Be&&(Li(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){pe(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Be=(i=Be)||n.memoizedState!==null,on(e,t,n),Be=i):on(e,t,n);break;default:on(e,t,n)}}function Hf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tx),t.forEach(function(i){var r=dx.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Le=l.stateNode,wt=!1;break e;case 3:Le=l.stateNode.containerInfo,wt=!0;break e;case 4:Le=l.stateNode.containerInfo,wt=!0;break e}l=l.return}if(Le===null)throw Error(M(160));Im(s,o,r),Le=null,wt=!1;var a=r.alternate;a!==null&&(a.return=null),r.return=null}catch(c){pe(r,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bm(t,e),t=t.sibling}function Bm(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),Ot(e),i&4){try{Dr(3,e,e.return),Rl(3,e)}catch(y){pe(e,e.return,y)}try{Dr(5,e,e.return)}catch(y){pe(e,e.return,y)}}break;case 1:xt(t,e),Ot(e),i&512&&n!==null&&Li(n,n.return);break;case 5:if(xt(t,e),Ot(e),i&512&&n!==null&&Li(n,n.return),e.flags&32){var r=e.stateNode;try{Ur(r,"")}catch(y){pe(e,e.return,y)}}if(i&4&&(r=e.stateNode,r!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&og(r,s),dc(l,o);var c=dc(l,s);for(o=0;o<a.length;o+=2){var u=a[o],d=a[o+1];u==="style"?dg(r,d):u==="dangerouslySetInnerHTML"?cg(r,d):u==="children"?Ur(r,d):Su(r,u,d,c)}switch(l){case"input":oc(r,s);break;case"textarea":lg(r,s);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Di(r,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?Di(r,!!s.multiple,s.defaultValue,!0):Di(r,!!s.multiple,s.multiple?[]:"",!1))}r[es]=s}catch(y){pe(e,e.return,y)}}break;case 6:if(xt(t,e),Ot(e),i&4){if(e.stateNode===null)throw Error(M(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(y){pe(e,e.return,y)}}break;case 3:if(xt(t,e),Ot(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Qr(t.containerInfo)}catch(y){pe(e,e.return,y)}break;case 4:xt(t,e),Ot(e);break;case 13:xt(t,e),Ot(e),r=e.child,r.flags&8192&&(s=r.memoizedState!==null,r.stateNode.isHidden=s,!s||r.alternate!==null&&r.alternate.memoizedState!==null||(nd=ye())),i&4&&Hf(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(c=Be)||u,xt(t,e),Be=c):xt(t,e),Ot(e),i&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(N=e,u=e.child;u!==null;){for(d=N=u;N!==null;){switch(f=N,h=f.child,f.tag){case 0:case 11:case 14:case 15:Dr(4,f,f.return);break;case 1:Li(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){i=f,n=f.return;try{t=i,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){pe(i,n,y)}}break;case 5:Li(f,f.return);break;case 22:if(f.memoizedState!==null){Vf(d);continue}}h!==null?(h.return=f,N=h):Vf(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{r=d.stateNode,c?(s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=ug("display",o))}catch(y){pe(e,e.return,y)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(y){pe(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:xt(t,e),Ot(e),i&4&&Hf(e);break;case 21:break;default:xt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(zm(n)){var i=n;break e}n=n.return}throw Error(M(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&32&&(Ur(r,""),i.flags&=-33);var s=$f(e);$c(e,s,r);break;case 3:case 4:var o=i.stateNode.containerInfo,l=$f(e);jc(e,l,o);break;default:throw Error(M(161))}}catch(a){pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ix(e,t,n){N=e,jm(e)}function jm(e,t,n){for(var i=(e.mode&1)!==0;N!==null;){var r=N,s=r.child;if(r.tag===22&&i){var o=r.memoizedState!==null||Us;if(!o){var l=r.alternate,a=l!==null&&l.memoizedState!==null||Be;l=Us;var c=Be;if(Us=o,(Be=a)&&!c)for(N=r;N!==null;)o=N,a=o.child,o.tag===22&&o.memoizedState!==null?Uf(r):a!==null?(a.return=o,N=a):Uf(r);for(;s!==null;)N=s,jm(s),s=s.sibling;N=r,Us=l,Be=c}Wf(e)}else r.subtreeFlags&8772&&s!==null?(s.return=r,N=s):Wf(e)}}function Wf(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Rl(5,t);break;case 1:var i=t.stateNode;
vendor: 12,156 bytes, line 40
40if(t.flags&4&&!Be)if(n===null)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:_t(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Cf(t,s,i);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Cf(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Qr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Be||t.flags&512&&Bc(t)}catch(f){pe(t,t.return,f)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function Vf(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function Uf(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rl(4,t)}catch(a){pe(t,n,a)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var r=t.return;try{i.componentDidMount()}catch(a){pe(t,r,a)}}var s=t.return;try{Bc(t)}catch(a){pe(t,s,a)}break;case 5:var o=t.return;try{Bc(t)}catch(a){pe(t,o,a)}}}catch(a){pe(t,t.return,a)}if(t===e){N=null;break}var l=t.sibling;if(l!==null){l.return=t.return,N=l;break}N=t.return}}var rx=Math.ceil,il=nn.ReactCurrentDispatcher,ed=nn.ReactCurrentOwner,pt=nn.ReactCurrentBatchConfig,X=0,Te=null,we=null,De=0,nt=0,Ni=In(0),Se=0,os=null,ci=0,Tl=0,td=0,Ar=null,Xe=null,nd=0,Ki=1/0,$t=null,rl=!1,Hc=null,En=null,Ys=!1,pn=null,sl=0,Fr=0,Wc=null,_o=-1,wo=0;function Ve(){return X&6?ye():_o!==-1?_o:_o=ye()}function Cn(e){return e.mode&1?X&2&&De!==0?De&-De:$v.transition!==null?(wo===0&&(wo=Sg()),wo):(e=ee,e!==0||(e=window.event,e=e===void 0?16:Rg(e.type)),e):1}function Et(e,t,n,i){if(50<Fr)throw Fr=0,Wc=null,Error(M(185));vs(e,n,i),(!(X&2)||e!==Te)&&(e===Te&&(!(X&2)&&(Tl|=n),Se===4&&fn(e,De)),et(e,i),n===1&&X===0&&!(t.mode&1)&&(Ki=ye()+500,Pl&&Bn()))}function et(e,t){var n=e.callbackNode;$1(e,t);var i=Ho(e,e===Te?De:0);if(i===0)n!==null&&Zd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(n!=null&&Zd(n),t===1)e.tag===0?jv(Yf.bind(null,e)):Qg(Yf.bind(null,e)),Fv(function(){!(X&6)&&Bn()}),n=null;else{switch(kg(i)){case 1:n=Mu;break;case 4:n=wg;break;case 16:n=$o;break;case 536870912:n=bg;break;default:n=$o}n=Xm(n,$m.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $m(e,t){if(_o=-1,wo=0,X&6)throw Error(M(327));var n=e.callbackNode;if(Bi()&&e.callbackNode!==n)return null;var i=Ho(e,e===Te?De:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=ol(e,i);else{t=i;var r=X;X|=2;var s=Wm();(Te!==e||De!==t)&&($t=null,Ki=ye()+500,ni(e,t));do try{lx();break}catch(l){Hm(e,l)}while(1);$u(),il.current=s,X=r,we!==null?t=0:(Te=null,De=0,t=Se)}if(t!==0){if(t===2&&(r=mc(e),r!==0&&(i=r,t=Vc(e,r))),t===1)throw n=os,ni(e,0),fn(e,i),et(e,ye()),n;if(t===6)fn(e,i);else{if(r=e.current.alternate,!(i&30)&&!sx(r)&&(t=ol(e,i),t===2&&(s=mc(e),s!==0&&(i=s,t=Vc(e,s))),t===1))throw n=os,ni(e,0),fn(e,i),et(e,ye()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(M(345));case 2:Qn(e,Xe,$t);break;case 3:if(fn(e,i),(i&130023424)===i&&(t=nd+500-ye(),10<t)){if(Ho(e,0)!==0)break;if(r=e.suspendedLanes,(r&i)!==i){Ve(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=kc(Qn.bind(null,e,Xe,$t),t);break}Qn(e,Xe,$t);break;case 4:if(fn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,r=-1;0<i;){var o=31-kt(i);s=1<<o,o=t[o],o>r&&(r=o),i&=~s}if(i=r,i=ye()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*rx(i/1960))-i,10<i){e.timeoutHandle=kc(Qn.bind(null,e,Xe,$t),i);break}Qn(e,Xe,$t);break;case 5:Qn(e,Xe,$t);break;default:throw Error(M(329))}}}return et(e,ye()),e.callbackNode===n?$m.bind(null,e):null}function Vc(e,t){var n=Ar;return e.current.memoizedState.isDehydrated&&(ni(e,t).flags|=256),e=ol(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&Uc(t)),e}function Uc(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function sx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var r=n[i],s=r.getSnapshot;r=r.value;try{if(!Pt(s(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~td,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kt(t),i=1<<n;e[n]=-1,t&=~i}}function Yf(e){if(X&6)throw Error(M(327));Bi();var t=Ho(e,0);if(!(t&1))return et(e,ye()),null;var n=ol(e,t);if(e.tag!==0&&n===2){var i=mc(e);i!==0&&(t=i,n=Vc(e,i))}if(n===1)throw n=os,ni(e,0),fn(e,t),et(e,ye()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qn(e,Xe,$t),et(e,ye()),null}function id(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Ki=ye()+500,Pl&&Bn())}}function ui(e){pn!==null&&pn.tag===0&&!(X&6)&&Bi();var t=X;X|=1;var n=pt.transition,i=ee;try{if(pt.transition=null,ee=1,e)return e()}finally{ee=i,pt.transition=n,X=t,!(X&6)&&Bn()}}function rd(){nt=Ni.current,le(Ni)}function ni(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Av(n)),we!==null)for(n=we.return;n!==null;){var i=n;switch(Iu(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Ko();break;case 3:Ui(),le(Je),le($e),Ku();break;case 5:Yu(i);break;case 4:Ui();break;case 13:le(de);break;case 19:le(de);break;case 10:Hu(i.type._context);break;case 22:case 23:rd()}n=n.return}if(Te=e,we=e=Pn(e.current,null),De=nt=t,Se=0,os=null,td=Tl=ci=0,Xe=Ar=null,Zn!==null){for(t=0;t<Zn.length;t++)if(n=Zn[t],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,s=n.pending;if(s!==null){var o=s.next;s.next=r,i.next=o}n.pending=i}Zn=null}return e}function Hm(e,t){do{var n=we;try{if($u(),yo.current=nl,tl){for(var i=fe.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}tl=!1}if(ai=0,Oe=be=fe=null,Nr=!1,is=0,ed.current=null,n===null||n.return===null){Se=1,os=t,we=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=De,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,u=l,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Nf(o);if(h!==null){h.flags&=-257,Df(h,o,l,s,t),h.mode&1&&Lf(s,c,t),t=h,a=c;var p=t.updateQueue;if(p===null){var y=new Set;y.add(a),t.updateQueue=y}else p.add(a);break e}else{if(!(t&1)){Lf(s,c,t),sd();break e}a=Error(M(426))}}else if(ce&&l.mode&1){var v=Nf(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Df(v,o,l,s,t),Bu(Yi(a,l));break e}}s=a=Yi(a,l),Se!==4&&(Se=2),Ar===null?Ar=[s]:Ar.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Em(s,a,t);Ef(s,g);break e;case 1:l=a;var m=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(En===null||!En.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=Cm(s,l,t);Ef(s,_);break e}}s=s.return}while(s!==null)}Um(n)}catch(w){t=w,we===n&&n!==null&&(we=n=n.return);continue}break}while(1)}function Wm(){var e=il.current;return il.current=nl,e===null?nl:e}function sd(){(Se===0||Se===3||Se===2)&&(Se=4),Te===null||!(ci&268435455)&&!(Tl&268435455)||fn(Te,De)}function ol(e,t){var n=X;X|=2;var i=Wm();(Te!==e||De!==t)&&($t=null,ni(e,t));do try{ox();break}catch(r){Hm(e,r)}while(1);if($u(),X=n,il.current=i,we!==null)throw Error(M(261));return Te=null,De=0,Se}function ox(){for(;we!==null;)Vm(we)}function lx(){for(;we!==null&&!L1();)Vm(we)}function Vm(e){var t=Km(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?Um(e):we=t,ed.current=null}function Um(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ex(n,t),n!==null){n.flags&=32767,we=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Se=6,we=null;return}}else if(n=Zv(n,t,nt),n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Se===0&&(Se=5)}function Qn(e,t,n){var i=ee,r=pt.transition;try{pt.transition=null,ee=1,ax(e,t,n,i)}finally{pt.transition=r,ee=i}return null}function ax(e,t,n,i){do Bi();while(pn!==null);if(X&6)throw Error(M(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(H1(e,s),e===Te&&(we=Te=null,De=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ys||(Ys=!0,Xm($o,function(){return Bi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=pt.transition,pt.transition=null;var o=ee;ee=1;var l=X;X|=4,ed.current=null,nx(e,n),Bm(n,e),Mv(bc),Wo=!!wc,bc=wc=null,e.current=n,ix(n),N1(),X=l,ee=o,pt.transition=s}else e.current=n;if(Ys&&(Ys=!1,pn=e,sl=r),s=e.pendingLanes,s===0&&(En=null),F1(n.stateNode),et(e,ye()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(rl)throw rl=!1,e=Hc,Hc=null,e;return sl&1&&e.tag!==0&&Bi(),s=e.pendingLanes,s&1?e===Wc?Fr++:(Fr=0,Wc=e):Fr=0,Bn(),null}function Bi(){if(pn!==null){var e=kg(sl),t=pt.transition,n=ee;try{if(pt.transition=null,ee=16>e?16:e,pn===null)var i=!1;else{if(e=pn,pn=null,sl=0,X&6)throw Error(M(331));var r=X;for(X|=4,N=e.current;N!==null;){var s=N,o=s.child;if(N.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(N=c;N!==null;){var u=N;switch(u.tag){case 0:case 11:case 15:Dr(8,u,s)}var d=u.child;if(d!==null)d.return=u,N=d;else for(;N!==null;){u=N;var f=u.sibling,h=u.return;if(Fm(u),u===c){N=null;break}if(f!==null){f.return=h,N=f;break}N=h}}}var p=s.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}N=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,N=o;else e:for(;N!==null;){if(s=N,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dr(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,N=g;break e}N=s.return}}var m=e.current;for(N=m;N!==null;){o=N;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,N=x;else e:for(o=m;N!==null;){if(l=N,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Rl(9,l)}}catch(w){pe(l,l.return,w)}if(l===o){N=null;break e}var _=l.sibling;if(_!==null){_.return=l.return,N=_;break e}N=l.return}}if(X=r,Bn(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(bl,e)}catch{}i=!0}return i}finally{ee=n,pt.transition=t}}return!1}function Kf(e,t,n){t=Yi(n,t),t=Em(e,t,1),e=kn(e,t,1),t=Ve(),e!==null&&(vs(e,1,t),et(e,t))}function pe(e,t,n){if(e.tag===3)Kf(e,e,n);else for(;t!==null;){if(t.tag===3){Kf(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(En===null||!En.has(i))){e=Yi(n,e),e=Cm(t,e,1),t=kn(t,e,1),e=Ve(),t!==null&&(vs(t,1,e),et(t,e));break}}t=t.return}}function cx(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=Ve(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(De&n)===n&&(Se===4||Se===3&&(De&130023424)===De&&500>ye()-nd?ni(e,0):td|=n),et(e,t)}function Ym(e,t){t===0&&(e.mode&1?(t=Fs,Fs<<=1,!(Fs&130023424)&&(Fs=4194304)):t=1);var n=Ve();e=en(e,t),e!==null&&(vs(e,t,n),et(e,n))}function ux(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ym(e,n)}function dx(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(M(314))}i!==null&&i.delete(t),Ym(e,n)}var Km;Km=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,Jv(e,t,n);Ge=!!(e.flags&131072)}
vendor: 4,611 bytes, line 40
40else Ge=!1,ce&&t.flags&1048576&&Gg(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;xo(e,t),e=t.pendingProps;var r=Hi(t,$e.current);Ii(t,n),r=Qu(null,t,i,e,r,n);var s=Gu();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ze(i)?(s=!0,Xo(t)):s=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Vu(t),r.updater=Ml,t.stateNode=r,r._reactInternals=t,Tc(t,i,e,n),t=Dc(null,t,i,!0,s,n)):(t.tag=0,ce&&s&&zu(t),We(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=hx(i),e=_t(i,e),r){case 0:t=Nc(null,t,i,e,n);break e;case 1:t=zf(null,t,i,e,n);break e;case 11:t=Af(null,t,i,e,n);break e;case 14:t=Ff(null,t,i,_t(i.type,e),n);break e}throw Error(M(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:_t(i,r),Nc(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:_t(i,r),zf(e,t,i,r,n);case 3:e:{if(Rm(t),e===null)throw Error(M(387));i=t.pendingProps,s=t.memoizedState,r=s.element,em(e,t),Zo(t,i,null,n);var o=t.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){r=Yi(Error(M(423)),t),t=If(e,t,i,n,r);break e}else if(i!==r){r=Yi(Error(M(424)),t),t=If(e,t,i,n,r);break e}else for(st=Sn(t.stateNode.containerInfo.firstChild),ot=t,ce=!0,bt=null,n=rm(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wi(),i===r){t=tn(e,t,n);break e}We(e,t,i,n)}t=t.child}return t;case 5:return sm(t),e===null&&Mc(t),i=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,o=r.children,Sc(i,r)?o=null:s!==null&&Sc(i,s)&&(t.flags|=32),Om(e,t),We(e,t,o,n),t.child;case 6:return e===null&&Mc(t),null;case 13:return Tm(e,t,n);case 4:return Uu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Vi(t,null,i,n):We(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:_t(i,r),Af(e,t,i,r,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,s=t.memoizedProps,o=r.value,ie(qo,i._currentValue),i._currentValue=o,s!==null)if(Pt(s.value,o)){if(s.children===r.children&&!Je.current){t=tn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===i){if(s.tag===1){a=Qt(-1,n&-n),a.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Oc(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(M(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Oc(o,n,t),o=s.sibling}else o=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}We(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Ii(t,n),r=gt(r),i=i(r),t.flags|=1,We(e,t,i,n),t.child;case 14:return i=t.type,r=_t(i,t.pendingProps),r=_t(i.type,r),Ff(e,t,i,r,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:_t(i,r),xo(e,t),t.tag=1,Ze(i)?(e=!0,Xo(t)):e=!1,Ii(t,n),nm(t,i,r),Tc(t,i,r,n),Dc(null,t,i,!0,e,n);case 19:return Lm(e,t,n);case 22:return Mm(e,t,n)}throw Error(M(156,t.tag))};function Xm(e,t){return _g(e,t)}function fx(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,i){return new fx(e,t,n,i)}function od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hx(e){if(typeof e=="function")return od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eu)return 11;if(e===Cu)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,613 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bo(e,t,n,i,r,s){var o=2;if(i=e,typeof e=="function")od(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Si:return ii(n.children,r,s,t);case ku:o=8,r|=8;break;case tc:return e=ht(12,n,t,r|2),e.elementType=tc,e.lanes=s,e;case nc:return e=ht(13,n,t,r),e.elementType=nc,e.lanes=s,e;case ic:return e=ht(19,n,t,r),e.elementType=ic,e.lanes=s,e;case ig:return Ll(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tg:o=10;break e;case ng:o=9;break e;case Eu:o=11;break e;case Cu:o=14;break e;case cn:o=16,i=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=ht(o,n,t,r),t.elementType=e,t.type=i,t.lanes=s,t}function ii(e,t,n,i){return e=ht(7,e,i,t),e.lanes=n,e}function Ll(e,t,n,i){return e=ht(22,e,i,t),e.elementType=ig,e.lanes=n,e.stateNode={isHidden:!1},e}function ka(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function px(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sa(0),this.expirationTimes=sa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sa(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ld(e,t,n,i,r,s,o,l,a){return e=new px(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(s),e}function gx(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:bi,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function Qm(e){if(!e)return Ln;e=e._reactInternals;e:{if(pi(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(Ze(n))return Xg(e,n,t)}return t}function Gm(e,t,n,i,r,s,o,l,a){return e=ld(n,i,!0,e,r,s,o,l,a),e.context=Qm(null),n=e.current,i=Ve(),r=Cn(n),s=Qt(i,r),s.callback=t??null,kn(n,s,r),e.current.lanes=r,vs(e,r,i),et(e,i),e}function Nl(e,t,n,i){var r=t.current,s=Ve(),o=Cn(r);return n=Qm(n),t.context===null?t.context=n:t.pendingContext=n,t=Qt(s,o),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=kn(r,t,o),e!==null&&(Et(e,r,o,s),mo(e,r,o)),o}function ll(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 Xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ad(e,t){Xf(e,t),(e=e.alternate)&&Xf(e,t)}function mx(){return null}var qm=typeof reportError=="function"?reportError:function(e){console.error(e)};function cd(e){this._internalRoot=e}Dl.prototype.render=cd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));Nl(e,t,null,null)};Dl.prototype.unmount=cd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ui(function(){Nl(null,e,null,null)}),t[Zt]=null}};function Dl(e){this._internalRoot=e}Dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dn.length&&t!==0&&t<dn[n].priority;n++);dn.splice(n,0,e),n===0&&Og(e)}};function ud(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qf(){}function yx(e,t,n,i,r){if(r){if(typeof i=="function"){var s=i;i=function(){var c=ll(o);s.call(c)}}var o=Gm(t,i,e,0,null,!1,!1,"",Qf);return e._reactRootContainer=o,e[Zt]=o.current,Jr(e.nodeType===8?e.parentNode:e),ui(),o}for(;r=e.lastChild;)e.removeChild(r);if(typeof i=="function"){var l=i;
40i=function(){var c=ll(a);l.call(c)}}var a=ld(e,0,!1,null,null,!1,!1,"",Qf);return e._reactRootContainer=a,e[Zt]=a.current,Jr(e.nodeType===8?e.parentNode:e),ui(function(){Nl(t,a,n,i)}),a}function Fl(e,t,n,i,r){var s=n._reactRootContainer;if(s){var o=s;if(typeof r=="function"){var l=r;r=function(){var a=ll(o);l.call(a)}}Nl(t,o,e,r)}else o=yx(n,t,e,r,i);return ll(o)}Eg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wr(t.pendingLanes);n!==0&&(Ou(t,n|1),et(t,ye()),!(X&6)&&(Ki=ye()+500,Bn()))}break;case 13:ui(function(){var i=en(e,1);if(i!==null){var r=Ve();Et(i,e,1,r)}}),ad(e,1)}};Ru=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=Ve();Et(t,e,134217728,n)}ad(e,134217728)}};Cg=function(e){if(e.tag===13){var t=Cn(e),n=en(e,t);if(n!==null){var i=Ve();Et(n,e,t,i)}ad(e,t)}};Pg=function(){return ee};Mg=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};hc=function(e,t,n){switch(t){case"input":if(oc(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 i=n[t];if(i!==e&&i.form===e.form){var r=Cl(i);if(!r)throw Error(M(90));sg(i),oc(i,r)}}}break;case"textarea":lg(e,n);break;case"select":t=n.value,t!=null&&Di(e,!!n.multiple,t,!1)}};pg=id;gg=ui;var vx={usingClientEntryPoint:!1,Events:[_s,Pi,Cl,fg,hg,id]},fr={findFiberByHostInstance:Jn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},xx={bundleType:fr.bundleType,version:fr.version,rendererPackageName:fr.rendererPackageName,rendererConfig:fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vg(e),e===null?null:e.stateNode},findFiberByHostInstance:fr.findFiberByHostInstance||mx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ks.isDisabled&&Ks.supportsFiber)try{bl=Ks.inject(xx),At=Ks}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vx;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ud(t))throw Error(M(200));return gx(e,t,null,n)};at.createRoot=function(e,t){if(!ud(e))throw Error(M(299));var n=!1,i="",r=qm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=ld(e,1,!1,null,null,n,!1,i,r),e[Zt]=t.current,Jr(e.nodeType===8?e.parentNode:e),new cd(t)};at.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=vg(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return ui(e)};at.hydrate=function(e,t,n){if(!Al(t))throw Error(M(200));return Fl(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!ud(e))throw Error(M(405));var i=n!=null&&n.hydratedSources||null,r=!1,s="",o=qm;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Gm(t,null,e,1,n??null,r,!1,s,o),e[Zt]=t.current,Jr(e),i)for(e=0;e<i.length;e++)n=i[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Dl(t)};at.render=function(e,t,n){if(!Al(t))throw Error(M(200));return Fl(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!Al(e))throw Error(M(40));return e._reactRootContainer?(ui(function(){Fl(null,null,e,!1,function(){e._reactRootContainer=null,e[Zt]=null})}),!0):!1};at.unstable_batchedUpdates=id;at.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Al(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return Fl(e,t,n,!1,i)};at.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=at})(m1);var Gf=Ja;qa.createRoot=Gf.createRoot,qa.hydrateRoot=Gf.hydrateRoot;/** 41 * @remix-run/router v1.4.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ls.apply(this,arguments)}var gn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gn||(gn={}));const qf="popstate";function _x(e){e===void 0&&(e={});function t(i,r){let{pathname:s,search:o,hash:l}=i.location;return Yc("",{pathname:s,search:o,hash:l},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:al(r)}return bx(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wx(){return Math.random().toString(36).substr(2,8)}function Jf(e,t){return{usr:e.state,key:e.key,idx:t}}function Yc(e,t,n,i){return n===void 0&&(n=null),ls({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||i||wx()})}function al(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function bx(e,t,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:s=!1}=i,o=r.history,l=gn.Pop,a=null,c=u();c==null&&(c=0,o.replaceState(ls({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){l=gn.Pop;let v=u(),g=v==null?null:v-c;c=v,a&&a({action:l,location:y.location,delta:g})}function f(v,g){l=gn.Push;let m=Yc(y.location,v,g);n&&n(m,v),c=u()+1;let x=Jf(m,c),_=y.createHref(m);try{o.pushState(x,"",_)}catch{r.location.assign(_)}s&&a&&a({action:l,location:y.location,delta:1})}function h(v,g){l=gn.Replace;let m=Yc(y.location,v,g);n&&n(m,v),c=u();let x=Jf(m,c),_=y.createHref(m);o.replaceState(x,"",_),s&&a&&a({action:l,location:y.location,delta:0})}function p(v){let g=r.location.origin!=="null"?r.location.origin:r.location.href,m=typeof v=="string"?v:al(v);return Ee(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return l},get location(){return e(r,o)},listen(v){if(a)throw new Error("A history only accepts one active listener");return r.addEventListener(qf,d),a=v,()=>{r.removeEventListener(qf,d),a=null}},createHref(v){return t(r,v)},createURL:p,encodeLocation(v){let g=p(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(v){return o.go(v)}};return y}var Zf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zf||(Zf={}));function Sx(e,t,n){n===void 0&&(n="/");let i=typeof t=="string"?nr(t):t,r=fd(i.pathname||"/",n);if(r==null)return null;let s=Jm(e);kx(s);let o=null;for(let l=0;o==null&&l<s.length;++l)o=Nx(s[l],Fx(r));return o}function Jm(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let r=(s,o,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(Ee(a.relativePath.startsWith(i),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+i+'" is not val
49id. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(i.length));let c=Mn([i,a.relativePath]),u=n.concat(a);s.children&&s.children.length>0&&(Ee(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Jm(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Tx(c,s.index),routesMeta:u})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))r(s,o);else for(let a of Zm(s.path))r(s,o,a)}),t}function Zm(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return r?[s,""]:[s];let o=Zm(i.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),r&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function kx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lx(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const Ex=/^:\w+$/,Cx=3,Px=2,Mx=1,Ox=10,Rx=-2,eh=e=>e==="*";function Tx(e,t){let n=e.split("/"),i=n.length;return n.some(eh)&&(i+=Rx),t&&(i+=Px),n.filter(r=>!eh(r)).reduce((r,s)=>r+(Ex.test(s)?Cx:s===""?Mx:Ox),i)}function Lx(e,t){return e.length===t.length&&e.slice(0,-1).every((i,r)=>i===t[r])?e[e.length-1]-t[t.length-1]:0}function Nx(e,t){let{routesMeta:n}=e,i={},r="/",s=[];for(let o=0;o<n.length;++o){let l=n[o],a=o===n.length-1,c=r==="/"?t:t.slice(r.length)||"/",u=Dx({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},c);if(!u)return null;
vendor: 4,440 bytes, lines 49-58
49Object.assign(i,u.params);let d=l.route;s.push({params:i,pathname:Mn([r,u.pathname]),pathnameBase:jx(Mn([r,u.pathnameBase])),route:d}),u.pathnameBase!=="/"&&(r=Mn([r,u.pathnameBase]))}return s}function Dx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=Ax(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],o=s.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:i.reduce((c,u,d)=>{if(u==="*"){let f=l[d]||"";o=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=zx(l[d]||"",u),c},{}),pathname:s,pathnameBase:o,pattern:e}}function Ax(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,l)=>(i.push(l),"/([^\\/]+)"));return e.endsWith("*")?(i.push("*"),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),i]}function Fx(e){try{return decodeURI(e)}catch(t){return dd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function zx(e,t){try{return decodeURIComponent(e)}catch(n){return dd(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function fd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function Ix(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:r=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:Bx(n,t):t,search:$x(i),hash:Hx(r)}}function Bx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Ca(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function e0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function t0(e,t,n,i){i===void 0&&(i=!1);let r;typeof e=="string"?r=nr(e):(r=ls({},e),Ee(!r.pathname||!r.pathname.includes("?"),Ca("?","pathname","search",r)),Ee(!r.pathname||!r.pathname.includes("#"),Ca("#","pathname","hash",r)),Ee(!r.search||!r.search.includes("#"),Ca("#","search","hash",r)));let s=e===""||r.pathname==="",o=s?"/":r.pathname,l;if(i||o==null)l=n;else{let d=t.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;r.pathname=f.join("/")}l=d>=0?t[d]:"/"}let a=Ix(r,l),c=o&&o!=="/"&&o.endsWith("/"),u=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||u)&&(a.pathname+="/"),a}const Mn=e=>e.join("/").replace(/\/\/+/g,"/"),jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$x=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Wx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}/** 50 * React Router v6.9.0 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function Vx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Ux=typeof Object.is=="function"?Object.is:Vx,{useState:Yx,useEffect:Kx,useLayoutEffect:Xx,useDebugValue:Qx}=Ga;function Gx(e,t,n){const i=t(),[{inst:r},s]=Yx({inst:{value:i,getSnapshot:t}});return Xx(()=>{r.value=i,r.getSnapshot=t,Pa(r)&&s({inst:r})},[e,i,t]),Kx(()=>(Pa(r)&&s({inst:r}),e(()=>{Pa(r)&&s({inst:r})})),[e]),Qx(i),i}function Pa(e){const t=e.getSnapshot,n=e.value;try{const i=t();return!Ux(n,i)}catch{return!0}}function qx(e,t,n){return t()}const Jx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zx=!Jx,e_=Z
58x?qx:Gx;"useSyncExternalStore"in Ga&&(e=>e.useSyncExternalStore)(Ga);const n0=S.createContext(null),i0=S.createContext(null),bs=S.createContext(null),zl=S.createContext(null),ir=S.createContext({outlet:null,matches:[]}),r0=S.createContext(null);function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kc.apply(this,arguments)}function t_(e,t){let{relative:n}=t===void 0?{}:t;Ss()||Ee(!1);let{basename:i,navigator:r}=S.useContext(bs),{hash:s,pathname:o,search:l}=s0(e,{relative:n}),a=o;return i!=="/"&&(a=o==="/"?i:Mn([i,o])),r.createHref({pathname:a,search:l,hash:s})}function Ss(){return S.useContext(zl)!=null}function Il(){return Ss()||Ee(!1),S.useContext(zl).location}function Bl(){Ss()||Ee(!1);let{basename:e,navigator:t}=S.useContext(bs),{matches:n}=S.useContext(ir),{pathname:i}=Il(),r=JSON.stringify(e0(n).map(l=>l.pathnameBase)),s=S.useRef(!1);return S.useEffect(()=>{s.current=!0}),S.useCallback(function(l,a){if(a===void 0&&(a={}),!s.current)return;if(typeof l=="number"){t.go(l);return}let c=t0(l,JSON.parse(r),i,a.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:Mn([e,c.pathname])),(a.replace?t.replace:t.push)(c,a.state,a)},[e,t,r,i])}function s0(e,t){let{relative:n}=t===void 0?{}:t,{matches:i}=S.useContext(ir),{pathname:r}=Il(),s=JSON.stringify(e0(i).map(o=>o.pathnameBase));return S.useMemo(()=>t0(e,JSON.parse(s),r,n==="path"),[e,s,r,n])}function n_(e,t){Ss()||Ee(!1);let{navigator:n}=S.useContext(bs),i=S.useContext(i0),{matches:r}=S.useContext(ir),s=r[r.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let a=Il(),c;if(t){var u;let y=typeof t=="string"?nr(t):t;l==="/"||(u=y.pathname)!=null&&u.startsWith(l)||Ee(!1),c=y}else c=a;let d=c.pathname||"/",f=l==="/"?d:d.slice(l.length)||"/",h=Sx(e,{pathname:f}),p=o_(h&&h.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:Mn([l,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:Mn([l,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),r,i||void 0);return t&&p?S.createElement(zl.Provider,{value:{location:Kc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gn.Pop}},p):p}function i_(){let e=u_(),t=Wx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:r},n):null,s)}class r_ extends S.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?S.createElement(ir.Provider,{value:this.props.routeContext},S.createElement(r0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function s_(e){let{routeContext:t,match:n,children:i}=e,r=S.useContext(n0);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(ir.Provider,{value:t},i)}function o_(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let i=e,r=n==null?void 0:n.errors;if(r!=null){let s=i.findIndex(o=>o.route.id&&(r==null?void 0:r[o.route.id]));s>=0||Ee(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,o,l)=>{let a=o.route.id?r==null?void 0:r[o.route.id]:null,c=null;n&&(o.route.ErrorBoundary?c=S.createElement(o.route.ErrorBoundary,null):o.route.errorElement?c=o.route.errorElement:c=S.createElement(i_,null));let u=t.concat(i.slice(0,l+1)),d=()=>{let f=s;return a?f=c:o.route.Component?f=S.createElement(o.route.Component,null):o.route.element&&(f=o.route.element),S.createElement(s_,{match:o,routeC
58ontext:{outlet:s,matches:u},children:f})};return n&&(o.route.ErrorBoundary||o.route.errorElement||l===0)?S.createElement(r_,{location:n.location,component:c,error:a,children:d(),routeContext:{outlet:null,matches:u}}):d()},null)}var th;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(th||(th={}));var cl;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(cl||(cl={}));function l_(e){let t=S.useContext(i0);return t||Ee(!1),t}function a_(e){let t=S.useContext(ir);return t||Ee(!1),t}function c_(e){let t=a_(),n=t.matches[t.matches.length-1];return n.route.id||Ee(!1),n.route.id}function u_(){var e;let t=S.useContext(r0),n=l_(cl.UseRouteError),i=c_(cl.UseRouteError);return t||((e=n.errors)==null?void 0:e[i])}function wi(e){Ee(!1)}function d_(e){let{basename:t="/",children:n=null,location:i,navigationType:r=gn.Pop,navigator:s,static:o=!1}=e;Ss()&&Ee(!1);let l=t.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:l,navigator:s,static:o}),[l,s,o]);typeof i=="string"&&(i=nr(i));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=i,p=S.useMemo(()=>{let y=fd(c,l);return y==null?null:{location:{pathname:y,search:u,hash:d,state:f,key:h},navigationType:r}},[l,c,u,d,f,h,r]);return p==null?null:S.createElement(bs.Provider,{value:a},S.createElement(zl.Provider,{children:n,value:p}))}function f_(e){let{children:t,location:n}=e,i=S.useContext(n0),r=i&&!t?i.router.routes:Xc(t);return n_(r,n)}var nh;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(nh||(nh={}));new Promise(()=>{});function Xc(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(i,r)=>{if(!S.isValidElement(i))return;if(i.type===S.Fragment){n.push.apply(n,Xc(i.props.children,t));return}i.type!==wi&&Ee(!1),!i.props.index||!i.props.children||Ee(!1);let s=[...t,r],o={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=Xc(i.props.children,s)),n.push(o)}),n}/** 59 * React Router DOM v6.9.0 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Qc.apply(this,arguments)}function h_(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,s;for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function p_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function g_(e,t){return e.button===0&&(!t||t==="_self")&&!p_(e)}const m_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function y_(e){let{basename:t,children:n,window:i}=e,r=S.useRef();r.current==null&&(r.current=_x({window:i,v5Compat:!0}));let s=r.current,[o,l]=S.useState({action:s.action,location:s.location});return S.useLayoutEffect(()=>s.listen(l),[s]),S.createElement(d_,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s})}const v_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",x_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,__=S.forwardRef(function(t,n){let{onClick:i,relative:r,reloadDocument:s,replace:o,state:l,target:a,to:c,preventScrollReset:u}=t,d=h_(t,m_),{basename:f}=S.useContext(bs),h,p=!1;if(typeof c=="string"&&x_.test(c)&&(h=c,v_)){let m=new URL(window.location.href),x=c.startsWith("//")?new URL(m.protocol+c):new URL(c),_=fd(x.pathname,f);x.origin===m.origin&&_!=null?c=_+x.search+x.hash:p=!0}let y=t_(c,{relative:r}),v=w_(c,{replace:o,state:l,target:a,preventScrollReset:u,relative:r});function g(m){i&&i(m),m.defaultPrevented||v(m)}return S.createElement("a",Qc({},d,{href:h||y,onClick:p||s?i:g,ref:n,target:a}))});var ih;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ih||(ih={}));var rh;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rh||(rh={}));function w_(e,t){let{target:n,replace:i,state:r,preventScrollReset:s,relative:o}=t===void 0?{}:t,l=Bl(),a=Il(),c=s0(e,{relative:o});return S.useCallback(u=>{if(g_(u,n)){u.preventDefault();let d=i!==void 0?i:al(a)===al(c);l(e,{replace:d,state:r,preventScrollReset:s,relative:o})}},[a,l,c,i,r,n,e,s,o])}const b_=()=>O("div",{className:"flex flex-wrap justify-between",children:[b("div",{className:"flex items-center",children:b("h6",{className:"text-base text-secondary font-bold",children:"Today overview"})}),O("div",{className:"flex justify-between items-center",children:[b("p",{className:"text-primary hover:text-indigo underline pr-2",children:"More details"}),b("div",{children:b(__,{target:"_blank",to:"https://github.com/chicacode",className:"hover:no-underline font-medium text-base text-secondary-dark",children:b("svg",{className:"w-4 h-4 hover:text-indigo ",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b("path",{d:"M21.883 12l-7.527 6.235.644.765 9-7.521-9-7.479-.645.764 7.529 6.236h-21.884v1h21.883z"})})})})]})]});function o0(e,t){return function(){return e.apply(t,arguments)}}const{toString:l0}=Object.prototype,{getPrototypeOf:hd}=Object,pd=(e=>t=>{const n=l0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>pd(t)===e),jl=e=>t=>typeof t===e,{isArray:rr}=Array,as=jl("undefined");function S_(e){return e!==null&&!as(e)&&e.constructor!==null&&!as(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const a0=rn("ArrayBuffer");function k_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&a0(e.buffer),t}const E_=jl("string"),Nn=jl("function"),c0=jl("number"),gd=e=>e!==null&&typeof e=="object",C_=e=>e===!0||e===!1,So=e=>{if(pd(e)!=="object")return!1;const t=hd(e);
vendor: 26,493 bytes, lines 67-69
67return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},P_=rn("Date"),M_=rn("File"),O_=rn("Blob"),R_=rn("FileList"),T_=e=>gd(e)&&Nn(e.pipe),L_=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||l0.call(e)===t||Nn(e.toString)&&e.toString()===t)},N_=rn("URLSearchParams"),D_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ks(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),rr(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let l;for(i=0;i<o;i++)l=s[i],t.call(null,e[l],l,e)}}function u0(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const d0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),f0=e=>!as(e)&&e!==d0;function Gc(){const{caseless:e}=f0(this)&&this||{},t={},n=(i,r)=>{const s=e&&u0(t,r)||r;So(t[s])&&So(i)?t[s]=Gc(t[s],i):So(i)?t[s]=Gc({},i):rr(i)?t[s]=i.slice():t[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&ks(arguments[i],n);return t}const A_=(e,t,n,{allOwnKeys:i}={})=>(ks(t,(r,s)=>{n&&Nn(r)?e[s]=o0(r,n):e[s]=r},{allOwnKeys:i}),e),F_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),z_=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},I_=(e,t,n,i)=>{let r,s,o;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)o=r[s],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&hd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},B_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},j_=e=>{if(!e)return null;if(rr(e))return e;let t=e.length;if(!c0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hd(Uint8Array)),H_=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},W_=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},V_=rn("HTMLFormElement"),U_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),sh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Y_=rn("RegExp"),h0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ks(n,(r,s)=>{t(r,s,e)!==!1&&(i[s]=r)}),Object.defineProperties(e,i)},K_=e=>{h0(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Nn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},X_=(e,t)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return rr(e)?i(e):i(String(e).split(t)),n},Q_=()=>{},G_=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ma="abcdefghijklmnopqrstuvwxyz",oh="0123456789",p0={DIGIT:oh,ALPHA:Ma,ALPHA_DIGIT:Ma+Ma.toUpperCase()+oh},q_=(e=16,t=p0.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function J_(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Z_=e=>{const t=new Array(10),n=(i,r)=>{if(gd(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const s=rr(i)?[]:{};return ks(i,(o,l)=>{const a=n(o,r+1);!as(a)&&(s[l]=a)}),t[r]=void 0,s}}return i};return n(e,0)},P={isArray:rr,isArrayBuffer:a0,isBuffer:S_,isFormData:L_,isArrayBufferView:k_,isString:E_,isNumber:c0,isBoolean:C_,isObject:gd,isPlainObject:So,isUndefined:as,isDate:P_,isFile:M_,isBlob:O_,isRegExp:Y_,isFunction:Nn,isStream:T_,isURLSearchParams:N_,isTypedArray:$_,isFileList:R_,forEach:ks,merge:Gc,extend:A_,trim:D_,stripBOM:F_,inherits:z_,toFlatObject:I_,kindOf:pd,kindOfTest:rn,endsWith:B_,toArray:j_,forEachEntry:H_,matchAll:W_,isHTMLForm:V_,hasOwnProperty:sh,hasOwnProp:sh,reduceDescriptors:h0,freezeMethods:K_,toObjectSet:X_,toCamelCase:U_,noop:Q_,toFiniteNumber:G_,findKey:u0,global:d0,isContextDefined:f0,ALPHABET:p0,generateString:q_,isSpecCompliantForm:J_,toJSONObject:Z_};function K(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}P.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const g0=K.prototype,m0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{m0[e]={value:e}});Object.defineProperties(K,m0);Object.defineProperty(g0,"isAxiosError",{value:!0});K.from=(e,t,n,i,r,s)=>{const o=Object.create(g0);return P.toFlatObject(e,o,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),K.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const ew=null;function qc(e){return P.isPlainObject(e)||P.isArray(e)}function y0(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function lh(e,t,n){return e?e.concat(t).map(function(r,s){return r=y0(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function tw(e){return P.isArray(e)&&!e.some(qc)}const nw=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function $l(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!P.isUndefined(v[y])});const i=n.metaTokens,r=n.visitor||u,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(P.isDate(p))return p.toISOString();if(!a&&P.isBlob(p))throw new K("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(p)||P.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,y,v){let g=p;if(p&&!v&&typeof p=="object"){if(P.endsWith(y,"{}"))y=i?y:y.slice(0,-2),p=JSON.stringify(p);else if(P.isArray(p)&&tw(p)||(P.isFileList(p)||P.endsWith(y,"[]"))&&(g=P.toArray(p)))return y=y0(y),g.forEach(function(x,_){!(P.isUndefined(x)||x===null)&&t.append(o===!0?lh([y],_,s):o===null?y:y+"[]",c(x))}),!1}return qc(p)?!0:(t.append(lh(v,y,s),c(p)),!1)}const d=[],f=Object.assign(nw,{defaultVisitor:u,convertValue:c,isVisitable:qc});function h(p,y){if(!P.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),P.forEach(p,function(g,m){(!(P.isUndefined(g)||g===null)&&r.call(t,g,P.isString(m)?m.trim():m,y,f))===!0&&h(g,y?y.concat(m):[m])}),d.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function md(e,t){this._pairs=[],e&&$l(e,this,t)}const v0=md.prototype;v0.append=function(t,n){this._pairs.push([t,n])};v0.toString=function(t){const n=t?function(i){return t.call(this,i,ah)}:ah;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function iw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x0(e,t,n){if(!t)return e;const i=n&&n.encode||iw,r=n&&n.serialize;let s;if(r?s=r(t,n):s=P.isURLSearchParams(t)?t.toString():new md(t,n).toString(i),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rw{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(i){i!==null&&t(i)})}}const ch=rw,_0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sw=typeof URLSearchParams<"u"?URLSearchParams:md,ow=typeof FormData<"u"?FormData:null,lw=typeof Blob<"u"?Blob:null,aw=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),cw=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Dt={isBrowser:!0,classes:{URLSearchParams:sw,FormData:ow,Blob:lw},isStandardBrowserEnv:aw,isStandardBrowserWebWorkerEnv:cw,protocols:["http","https","file","blob","url","data"]};function uw(e,t){return $l(e,new Dt.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return Dt.isNode&&P.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dw(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fw(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}function w0(e){function t(n,i,r,s){let o=n[s++];const l=Number.isFinite(+o),a=s>=n.length;return o=!o&&P.isArray(r)?r.length:o,a?(P.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!l):((!r[o]||!P.isObject(r[o]))&&(r[o]=[]),t(n,i,r[o],s)&&P.isArray(r[o])&&(r[o]=fw(r[o])),!l)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(i,r)=>{t(dw(i),r,n,0)}),n}return null}const hw={"Content-Type":void 0};function pw(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Hl={transitional:_0,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,s=P.isObject(t);if(s&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return r&&r?JSON.stringify(w0(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return uw(t,this.formSerializer).toString();if((l=P.isFileList(t))||i.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return $l(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),pw(t)):t}],transformResponse:[function(t){const n=this.transitional||Hl.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&P.isString(t)&&(i&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?K.from(l,K.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dt.classes.FormData,Blob:Dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};P.forEach(["delete","get","head"],function(t){Hl.headers[t]={}});P.forEach(["post","put","patch"],function(t){Hl.headers[t]=P.merge(hw)});const yd=Hl,gw=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mw=e=>{const t={};let n,i,r;return e&&e.split(` 68`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!n||t[n]&&gw[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},uh=Symbol("internals");function hr(e){return e&&String(e).trim().toLowerCase()}function ko(e){return e===!1||e==null?e:P.isArray(e)?e.map(ko):String(e)}function yw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}function vw(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Oa(e,t,n,i,r){if(P.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!P.isString(t)){if(P.isString(i))return t.indexOf(i)!==-1;if(P.isRegExp(i))return i.test(t)}}function xw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function _w(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,s,o){return this[i].call(this,t,r,s,o)},configurable:!0})})}class Wl{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function s(l,a,c){const u=hr(a);if(!u)throw new Error("header name must be a non-empty string");const d=P.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||a]=ko(l))}const o=(l,a)=>P.forEach(l,(c,u)=>s(c,u,a));return P.isPlainObject(t)||t instanceof this.constructor?o(t,n):P.isString(t)&&(t=t.trim())&&!vw(t)?o(mw(t),n):t!=null&&s(n,t,i),this}get(t,n){if(t=hr(t),t){const i=P.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return yw(r);if(P.isFunction(n))return n.call(this,r,i);if(P.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hr(t),t){const i=P.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Oa(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function s(o){if(o=hr(o),o){const l=P.findKey(i,o);l&&(!n||Oa(i,i[l],l,n))&&(delete i[l],r=!0)}}return P.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const s=n[i];(!t||Oa(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,i={};return P.forEach(this,(r,s)=>{const o=P.findKey(i,s);if(o){n[o]=ko(r),delete n[s];return}const l=t?xw(s):String(s).trim();l!==s&&delete n[s],n[l]=ko(r),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&P.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 69`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[uh]=this[uh]={accessors:{}}).accessors,r=this.prototype;function s(o){const l=hr(o);i[l]||(_w(r,o),i[l]=!0)}return P.isArray(t)?t.forEach(s):s(t),this}}Wl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.freezeMethods(Wl.prototype);P.freezeMethods(Wl);const Gt=Wl;function Ra(e,t){const n=this||yd,i=t||n,r=Gt.from(i.headers);let s=i.data;return P.forEach(e,function(l){s=l.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function b0(e){return!!(e&&e.__CANCEL__)}function Es(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}P.inherits(Es,K,{__CANCEL__:!0});function ww(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bw=Dt.isStandardBrowserEnv?function(){return{write:function(n,i,r,s,o,l){const a=[];a.push(n+"="+encodeURIComponent(i)),P.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),P.isString(s)&&a.push("path="+s),P.isString(o)&&a.push("domain="+o),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Sw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kw(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function S0(e,t){return e&&!Sw(t)?kw(e,t):t}const Ew=Dt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(o){const l=P.isString(o)?r(o):o;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Cw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pw(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=i[s];o||(o=c),n[r]=a,i[r]=c;let d=s,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function dh(e,t){let n=0;const i=Pw(50,250);return r=>{const s=r.loaded,o=r.lengthComputable?r.total:void 0,l=s-n,a=i(l),c=s<=o;n=s;const u={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:a||void 0,estimated:a&&o&&c?(o-s)/a:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const Mw=typeof XMLHttpRequest<"u",Ow=Mw&&function(e){return new Promise(function(n,i){let r=e.data;const s=Gt.from(e.headers).normalize(),o=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}P.isFormData(r)&&(Dt.isStandardBrowserEnv||Dt.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+p))}const u=S0(e.baseURL,e.url);c.open(e.method.toUpperCase(),x0(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const h=Gt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};ww(function(g){n(g),a()},function(g){i(g),a()},y),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(i(new K("Request aborted",K.ECONNABORTED,e,c)),c=null)},c.onerror=function(){i(new K("Network Error",K.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||_0;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),i(new K(p,y.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,c)),c=null},Dt.isStandardBrowserEnv){const h=(e.withCredentials||Ew(u))&&e.xsrfCookieName&&bw.read(e.xsrfCookieName);h&&s.set(e.xsrfHeaderName,h)}r===void 0&&s.setContentType(null),"setRequestHeader"in c&&P.forEach(s.toJSON(),function(p,y){c.setRequestHeader(y,p)}),P.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",dh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",dh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{c&&(i(!h||h.type?new Es(null,e,c):h),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const f=Cw(u);if(f&&Dt.protocols.indexOf(f)===-1){i(new K("Unsupported protocol "+f+":",K.ERR_BAD_REQUEST,e));return}c.send(r||null)})},Eo={http:ew,xhr:Ow};P.forEach(Eo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rw={getAdapter:e=>{e=P.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let r=0;r<t&&(n=e[r],!(i=P.isString(n)?Eo[n.toLowerCase()]:n));r++);if(!i)throw i===!1?new K(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(P.hasOwnProp(Eo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!P.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Eo};function Ta(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Es(null,e)}function fh(e){return Ta(e),e.headers=Gt.from(e.headers),e.data=Ra.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rw.getAdapter(e.adapter||yd.adapter)(e).then(function(i){return Ta(e),i.data=Ra.call(e,e.transformResponse,i),i.headers=Gt.from(i.headers),i},function(i){return b0(i)||(Ta(e),i&&i.response&&(i.response.data=Ra.call(e,e.transformResponse,i.response),i.response.headers=Gt.from(i.response.headers))),Promise.reject(i)})}const hh=e=>e instanceof Gt?e.toJSON():e;function Xi(e,t){t=t||{};const n={};function i(c,u,d){return P.isPlainObject(c)&&P.isPlainObject(u)?P.merge.call({caseless:d},c,u):P.isPlainObject(u)?P.merge({},u):P.isArray(u)?u.slice():u}function r(c,u,d){if(P.isUndefined(u)){if(!P.isUndefined(c))return i(void 0,c,d)}else return i(c,u,d)}function s(c,u){if(!P.isUndefined(u))return i(void 0,u)}function o(c,u){if(P.isUndefined(u)){if(!P.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function l(c,u,d){if(d in t)return i(c,u);if(d in e)return i(void 0,c)}const a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,u)=>r(hh(c),hh(u),!0)};return P.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=a[u]||r,f=d(e[u],t[u],u);P.isUndefined(f)&&d!==l||(n[u]=f)}),n}const k0="1.3.4",vd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vd[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const ph={};vd.transitional=function(t,n,i){function r(s,o){return"[Axios v"+k0+"] Transitional option '"+s+"'"+o+(i?". "+i:"")}return(s,o,l)=>{if(t===!1)throw new K(r(o," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!ph[o]&&(ph[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,l):!0}};function Tw(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const l=e[s],a=l===void 0||o(l,s,e);if(a!==!0)throw new K("option "+s+" must be "+a,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const Jc={assertOptions:Tw,validators:vd},ln=Jc.validators;class ul{constructor(t){this.defaults=t,this.interceptors={request:new ch,response:new ch}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xi(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:s}=n;i!==void 0&&Jc.assertOptions(i,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),r!==void 0&&Jc.assertOptions(r,{encode:ln.function,serialize:ln.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=s&&P.merge(s.common,s[n.method]),o&&P.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=Gt.concat(o,s);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!a){const p=[fh.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=l.length;let h=n;for(d=0;d<f;){const p=l[d++],y=l[d++];try{h=p(h)}catch(v){y.call(this,v);break}}try{u=fh.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Xi(this.defaults,t);const n=S0(t.baseURL,t.url);return x0(n,t.params,t.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(t){ul.prototype[t]=function(n,i){return this.request(Xi(i||{},{method:t,url:n,data:(i||{}).data}))}});P.forEach(["post","put","patch"],function(t){function n(i){return function(s,o,l){return this.request(Xi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}ul.prototype[t]=n(),ul.prototype[t+"Form"]=n(!0)});const Co=ul;class xd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const o=new Promise(l=>{i.subscribe(l),s=l}).then(r);return o.cancel=function(){i.unsubscribe(s)},o},t(function(s,o,l){i.reason||(i.reason=new Es(s,o,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xd(function(r){t=r}),cancel:t}}}const Lw=xd;function Nw(e){return function(n){return e.apply(null,n)}}function Dw(e){return P.isObject(e)&&e.isAxiosError===!0}const Zc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
69alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zc).forEach(([e,t])=>{Zc[t]=e});const Aw=Zc;function E0(e){const t=new Co(e),n=o0(Co.prototype.request,t);return P.extend(n,Co.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return E0(Xi(e,r))},n}const Ce=E0(yd);Ce.Axios=Co;Ce.CanceledError=Es;Ce.CancelToken=Lw;Ce.isCancel=b0;Ce.VERSION=k0;Ce.toFormData=$l;Ce.AxiosError=K;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=Nw;Ce.isAxiosError=Dw;Ce.mergeConfig=Xi;Ce.AxiosHeaders=Gt;Ce.formToJSON=e=>w0(P.isHTMLForm(e)?new FormData(e):e);Ce.HttpStatusCode=Aw;Ce.default=Ce;const gh=Ce,C0=S.createContext(),Fw=({children:e})=>{const[t,n]=S.useState({city:"",country:""}),[i,r]=S.useState({}),[s,o]=S.useState({}),[l,a]=S.useState(!1),[c,u]=S.useState(!1),[d,f]=S.useState("dark"),h=g=>{n({...t,[g.target.name]:g.target.value})},p=()=>{f(g=>g==="dark"?"light":"dark")},y=async g=>{a(!0),u(!1);try{const{city:m,country:x}=g,w=`https://api.openweathermap.org/data/2.5/weather?q=${m}, ${x}&appid=07913097fbe92c98944f64bb91481719`,{data:E}=await gh(w);r(E)}catch{u("No results from api, insert valid data")}finally{a(!1)}},v=async g=>{a(!0),u(!1);try{const{city:m}=g,_=`http://api.weatherapi.com/v1/forecast.json?key=95516dd747cd48dfb9035458230604&q=${m}&days=1&aqi=yes&alerts=yes`,{data:w}=await gh(_);o(w)}catch{u("No results from api, insert valid data")}finally{a(!1)}};return b(C0.Provider,{value:{searchData:t,setData:h,getData:y,forecastData:v,resultData:i,resultForecastData:s,loading:l,error:c,theme:d,toggleTheme:p},children:e})},gi=()=>S.useContext(C0),zw=({data:e})=>b("div",{children:b("div",{className:"mb-4 rounded-lg bg-primary-light px-6 py-5 text-base text-primary font-medium",role:"alert",children:O("div",{className:"flex justify-start",children:[b("span",{children:e==null?void 0:e.name}),O("span",{className:"mx-2",children:[e==null?void 0:e.region,","]}),b("span",{className:"font-bold",children:e==null?void 0:e.country})]})})}),Iw=()=>{var s;const{resultData:e,resultForecastData:t}=gi(),{current:n,forecast:i,location:r}=t;return O("div",{children:[b(zw,{data:r}),O("div",{className:"grid grid-cols-2 gap-4",children:[b("div",{className:"max-w-lg w-80 p-4 bg-grayDarkOpacity border border-gray rounded-lg",children:O("div",{className:"flex flex-col justify-around items-center",children:[b("h6",{className:"text-grayDarkTitles text-base font-base",children:"Wind Speed"}),O("div",{className:"grid grid-cols-3 gap-1 items-center",children:[b("div",{children:b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:b("path",{d:"M11 10h-11v-2h11c.552 0 1-.448 1-1s-.448-1-1-1c-.403 0-.747.242-.905.587l-1.749-.956c.499-.965 1.494-1.631 2.654-1.631 3.971 0 3.969 6 0 6zm7 7c0-1.656-1.344-3-3-3h-15v2h15c.552 0 1 .448 1 1s-.448 1-1 1c-.403 0-.747-.242-.905-.587l-1.749.956c.499.965 1.494 1.631 2.654 1.631 1.656 0 3-1.344 3-3zm1.014-7.655c.082-.753.712-1.345 1.486-1.345.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5h-20.5v2h20.5c1.932 0 3.5-1.568 3.5-3.5s-1.568-3.5-3.5-3.5c-1.624 0-2.977 1.116-3.372 2.617l1.886.728z"})})}),O("div",{className:"flex justify-center items-center mx-2",children:[O("h4",{className:"text-secondary text-4xl font-bold",children:[n==null?void 0:n.wind_kph," "]})," ",b("span",{className:"text-secondary text-2xl font-bold",children:"Km/h"})]}),O("div",{className:"flex justify-end items-center",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9 ml-2",fill:"rgb(245, 101, 101)",viewBox:"0 0 24 24",stroke:"rgb(245, 101, 101)",strokeWidth:2,children:b("path",{d:"m16.843 10.211c.108-.141.157-.3.157-.456 0-.389-.306-.755-.749-.755h-8.501c-.445 0-.75.367-.75.755 0 .157.05.316.159.457 1.203 1.554 3.252 4.199 4.258 5.498.142.184.36.29.592.29.23 0 .449-.107.591-.291 1.002-1.299 3.044-3.945 4.243-5.498z"})}),b("p",{className:"text-grayDarkTitles text-sm",children:"2km/h"})]})]})]})}),b("div",{className:"max-w-lg w-80 p-4 bg-grayDarkOpacity border border-gray rounded-lg",children:O("div",{className:"flex flex-col justify-around items-center",children:[b("h6",{className:"text-grayDarkTitles text-base font-base",children:"Rain Chance"}),O("div",{className:"grid grid-cols-3 gap-1 items-center",children:[b("div",{children:b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:b("path",{d:"M20.422 8.516c-.178-3.233-3.031-5.778-6.432-5.492-1.087-1.239-2.693-2.024-4.49-2.024-3.172 0-5.754 2.443-5.922 5.516-2.033.359-3.578 2.105-3.578 4.206 0 2.362 1.949 4.278 4.354 4.278h1.326c.771 1.198 2.124 2 3.674 2h10.291c2.406 0 4.355-1.9
6916 4.355-4.278 0-2.101-1.545-3.847-3.578-4.206zm-15.395 4.484h-.673c-1.297 0-2.354-1.022-2.354-2.278 0-2.118 2.104-2.597 3.488-2.512-.05-1.356.137-5.21 4.012-5.21.967 0 1.714.25 2.29.644-1.823.922-3.096 2.746-3.212 4.872-2.022.358-3.697 2.127-3.551 4.484zm14.618 2h-10.291c-1.297 0-2.354-1.022-2.354-2.278 0-2.118 2.104-2.597 3.488-2.512-.05-1.356.137-5.21 4.012-5.21 3.771 0 4.229 3.771 4.012 5.209 1.509-.105 3.488.437 3.488 2.513 0 1.256-1.057 2.278-2.355 2.278zm-14.063 8l-1.41-1.41 3.59-3.59 1.41 1.41-3.59 3.59zm8.543-3.59l-1.41-1.41-3.59 3.59 1.41 1.41 3.59-3.59zm4.875 0l-1.41-1.41-3.59 3.59 1.41 1.41 3.59-3.59z"})})}),O("div",{className:"flex justify-center items-center mx-2",children:[O("h4",{className:"text-secondary text-4xl font-bold",children:[(s=i==null?void 0:i.forecastday[0].day)==null?void 0:s.daily_chance_of_rain," "]})," ",b("span",{className:"text-secondary text-2xl font-bold",children:"-"})]}),O("div",{className:"flex justify-end items-center",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9 ml-2",fill:"rgb(245, 101, 101)",viewBox:"0 0 24 24",stroke:"rgb(245, 101, 101)",strokeWidth:2,children:b("path",{d:"m16.843 10.211c.108-.141.157-.3.157-.456 0-.389-.306-.755-.749-.755h-8.501c-.445 0-.75.367-.75.755 0 .157.05.316.159.457 1.203 1.554 3.252 4.199 4.258 5.498.142.184.36.29.592.29.23 0 .449-.107.591-.291 1.002-1.299 3.044-3.945 4.243-5.498z"})}),b("p",{className:"text-grayDarkTitles text-sm",children:"2km/h"})]})]})]})})]}),O("div",{className:"grid grid-cols-2 gap-4 mt-2",children:[b("div",{className:"max-w-lg w-80 p-4 bg-grayDarkOpacity border border-gray rounded-lg",children:O("div",{className:"flex flex-col justify-around items-center",children:[b("h6",{className:"text-grayDarkTitles text-base font-base",children:"Pressure"}),O("div",{className:"grid grid-cols-3 gap-1 items-center",children:[b("div",{children:b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:b("path",{d:"M11 10h-11v-2h11c.552 0 1-.448 1-1s-.448-1-1-1c-.403 0-.747.242-.905.587l-1.749-.956c.499-.965 1.494-1.631 2.654-1.631 3.971 0 3.969 6 0 6zm7 7c0-1.656-1.344-3-3-3h-15v2h15c.552 0 1 .448 1 1s-.448 1-1 1c-.403 0-.747-.242-.905-.587l-1.749.956c.499.965 1.494 1.631 2.654 1.631 1.656 0 3-1.344 3-3zm1.014-7.655c.082-.753.712-1.345 1.486-1.345.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5h-20.5v2h20.5c1.932 0 3.5-1.568 3.5-3.5s-1.568-3.5-3.5-3.5c-1.624 0-2.977 1.116-3.372 2.617l1.886.728z"})})}),O("div",{className:"flex justify-center items-center mx-2",children:[O("h4",{className:"text-secondary text-4xl font-bold",children:[n==null?void 0:n.pressure_in," "]})," ",b("span",{className:"text-secondary text-2xl font-bold",children:"Km/h"})]}),O("div",{className:"flex justify-end items-center",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9 ml-2",fill:"rgb(245, 101, 101)",viewBox:"0 0 24 24",stroke:"rgb(245, 101, 101)",strokeWidth:2,children:b("path",{d:"m16.843 10.211c.108-.141.157-.3.157-.456 0-.389-.306-.755-.749-.755h-8.501c-.445 0-.75.367-.75.755 0 .157.05.316.159.457 1.203 1.554 3.252 4.199 4.258 5.498.142.184.36.29.592.29.23 0 .449-.107.591-.291 1.002-1.299 3.044-3.945 4.243-5.498z"})}),b("p",{className:"text-grayDarkTitles text-sm",children:"2km/h"})]})]})]})}),b("div",{className:"max-w-lg w-80 p-4 bg-grayDarkOpacity border border-gray rounded-lg",children:O("div",{className:"flex flex-col justify-around items-center",children:[b("h6",{className:"text-grayDarkTitles text-base font-base",children:"UV Index"}),O("div",{className:"grid grid-cols-3 gap-1 items-center",children:[b("div",{children:b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:b("path",{d:"M20.422 8.516c-.178-3.233-3.031-5.778-6.432-5.492-1.087-1.239-2.693-2.024-4.49-2.024-3.172 0-5.754 2.443-5.922 5.516-2.033.359-3.578 2.105-3.578 4.206 0 2.362 1.949 4.278 4.354 4.278h1.326c.771 1.198 2.124 2 3.674 2h10.291c2.406 0 4.355-1.916 4.355-4.278 0-2.101-1.545-3.847-3.578-4.206zm-15.395 4.484h-.673c-1.297 0-2.354-1.022-2.354-2.278 0-2.118 2.104-2.597 3.488-2.512-.05-1.356.137-5.21 4.012-5.21.967 0 1.714.25 2.29.644-1.823.922-3.096 2.746-3.212 4.872-2.022.358-3.697 2.127-3.551 4.484zm14.618 2h-10.291c-1.297 0-2.354-1.022-2.354-2.278 0-2.118 2.104-2.597 3.488-2.512-.05-1.356.137-5.21 4.012-5.21 3.771 0 4.229 3.771 4.012 5.209 1.509-.105 3.488.437 3.488 2.513 0 1.256-1.057 2.278-2.355 2.278zm-14.063 8l-1.41-1.41 3.59-3.59 1.41 1.41-3.59 3.59zm8.543-3.59l-1.41-1.41-3.59 3.59 1.41 1.41 3.59-3.59zm4.875 0l-1.41-1.41-3.59 3.59 1.41 1.41 3.59-3.59z"})})}),O("div",{className:"flex justify-center items-center mx-2",children:[O("h4",{className:"text-secondary text-4xl font-bold",children:[n==null?void 0:n.uv," "]})," ",b("span",{className:"text-secondary text-2xl font-bold",children:"-"})]}),O("div",{className:"flex justify-end items-center",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9 ml-2",fill:"rgb(245, 101, 101)",viewBox:"0 0 24 24",stroke:"rgb(245, 101, 101)",strokeWidth:2,children:b("path",{d:"m16.843 10.211c.108-.141.157-.3.157-.456 0-.389-.306-.755-.749-.755h-8.501c-.445 0-.75.367-.75.755 0 .157.05.316.159.457 1.203 1.554 3.252 4.199 4.258 5.498.142.184.36.29.592.29.23 0 .449-.107.591-.291 1.002-1.299 3.044-3.945 4.243-5.498z"})}),b("p",{className:"text-grayDarkTitles text-sm",children:"2km/h"})]})]})]})})]})]})},Bw=()=>b("div",{className:"loading",children:O("div",{className:"sk-chase",children:[b("div",{className:"sk-chase-dot"}),b("div",{className:"sk-chase-dot"}),b("div",{className:"sk-chase-dot"}),b("div",{className:"sk-chase-dot"}),b("div",{className:"sk-chase-dot"}),b("div",{className:"sk-chase-dot"})]})}),jw=()=>{const{resultForecastData:e,loading:t,error:n}=gi();return b(qp,{children:O("main",{className:"flex w-full items-center justify-center",children:[t?b(Bw,{}):(e==null?void 0:e.current)&&b(Iw,{}),n&&O("div",{className:"flex justify-center text-center items-center container mx-auto w-86 bg-error text-light font-light",children:[b("span",{className:"px-0.5",children:b("i",{className:"fa-solid fa-circle-exclamation"})}),n]})]})})};var $w=Object.defineProperty,Hw=(e,t,n)=>t in e?$w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,La=(e,t,n)=>(Hw(e,typeof t!="symbol"?t+"":t,n),n);let Ww=class{constructor(){La(this,"current",this.detect()),La(this,"handoffState","pending"),La(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>
69"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},On=new Ww,yt=(e,t)=>{On.isServer?S.useEffect(e,t):S.useLayoutEffect(e,t)};function qt(e){let t=S.useRef(e);return yt(()=>{t.current=e},[e]),t}function P0(e,t){let[n,i]=S.useState(e),r=qt(e);return yt(()=>i(r.current),[r,i,...t]),n}function Vw(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Dn(){let e=[],t={addEventListener(n,i,r,s){return n.addEventListener(i,r,s),t.add(()=>n.removeEventListener(i,r,s))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return t.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return Vw(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,r){let s=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:r}),this.add(()=>{Object.assign(n.style,{[i]:s})})},group(n){let i=Dn();return n(i),this.add(()=>i.dispose())},add(n){return e.push(n),()=>{let i=e.indexOf(n);if(i>=0)for(let r of e.splice(i,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function Qi(){let[e]=S.useState(Dn);return S.useEffect(()=>()=>e.dispose(),[e]),e}let J=function(e){let t=qt(e);return ve.useCallback((...n)=>t.current(...n),[t])};function _d(){let[e,t]=S.useState(On.isHandoffComplete);return e&&On.isHandoffComplete===!1&&t(!1),S.useEffect(()=>{e!==!0&&t(!0)},[e]),S.useEffect(()=>On.handoff(),[]),e}var mh;let Vl=(mh=ve.useId)!=null?mh:function(){let e=_d(),[t,n]=ve.useState(e?()=>On.nextId():null);return yt(()=>{t===null&&n(On.nextId())},[t]),t!=null?""+t:void 0};function Ne(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Ne),i}function M0(e){return On.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let yh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Uw=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Uw||{}),Yw=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Yw||{}),Kw=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Kw||{}),wd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wd||{});function O0(e,t=0){var n;return e===((n=M0(e))==null?void 0:n.body)?!1:Ne(t,{[0](){return e.matches(yh)},[1](){let i=e;for(;i!==null;){if(i.matches(yh))return!0;i=i.parentElement}return!1}})}function Xw(e,t=n=>n){return e.slice().sort((n,i)=>{let r=t(n),s=t(i);if(r===null||s===null)return 0;let o=r.compareDocumentPosition(s);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Na(e,t,n){let i=qt(t);S.useEffect(()=>{function r(s){i.current(s)}return document.addEventListener(e,r,n),()=>document.removeEventListener(e,r,n)},[e,n])}function Qw(e,t,n=!0){let i=S.useRef(!1);S.useEffect(()=>{requestAnimationFrame(()=>{i.current=n})},[n]);function r(o,l){if(!i.current||o.defaultPrevented)return;let a=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e),c=l(o);if(c!==null&&c.getRootNode().contains(c)){for(let u of a){if(u===null)continue;let d=u instanceof HTMLElement?u:u.current;if(d!=null&&d.contains(c)||o.composed&&o.composedPath().includes(d))return}return!O0(c,wd.Loose)&&c.tabIndex!==-1&&o.preventDefault(),t(o,c)}}let s=S.useRef(null);Na("mousedown",o=>{var l,a;i.current&&(s.current=((a=(l=o.composedPath)==null?void 0:l.call(o))==null?void 0:a[0])||o.target)},!0),Na("click",o=>
69{s.current&&(r(o,()=>s.current),s.current=null)},!0),Na("blur",o=>r(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function vh(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Gw(e,t){let[n,i]=S.useState(()=>vh(e));return yt(()=>{i(vh(e))},[e.type,e.as]),yt(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[n,t]),n}let qw=Symbol();function mi(...e){let t=S.useRef(e);S.useEffect(()=>{t.current=e},[e]);let n=J(i=>{for(let r of t.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return e.every(i=>i==null||(i==null?void 0:i[qw]))?void 0:n}function Jw(e){throw new Error("Unexpected object: "+e)}var qe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(qe||{});function Zw(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=i??-1,s=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((l,a,c)=>r!==-1&&c.length-a-1>=r?!1:!t.resolveDisabled(l));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,l)=>l<=r?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:Jw(e)}})();return s===-1?i:s}function R0(...e){return e.filter(Boolean).join(" ")}var dl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dl||{}),Yt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Yt||{});function jn({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:s=!0,name:o}){let l=T0(t,e);if(s)return Xs(l,n,i,o);let a=r??0;if(a&2){let{static:c=!1,...u}=l;if(c)return Xs(u,n,i,o)}if(a&1){let{unmount:c=!0,...u}=l;return Ne(c?0:1,{[0](){return null},[1](){return Xs({...u,hidden:!0,style:{display:"none"}},n,i,o)}})}return Xs(l,n,i,o)}function Xs(e,t={},n,i){var r;let{as:s=n,children:o,refName:l="ref",...a}=Da(e,["unmount","static"]),c=e.ref!==void 0?{[l]:e.ref}:{},u=typeof o=="function"?o(t):o;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let d={};if(t){let f=!1,h=[];for(let[p,y]of Object.entries(t))typeof y=="boolean"&&(f=!0),y===!0&&h.push(p);f&&(d["data-headlessui-state"]=h.join(" "))}if(s===S.Fragment&&Object.keys(eu(a)).length>0){if(!S.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(p=>` - ${p}`).join(` 70`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(` 71`)].join(` 72`));let f=R0((r=u.props)==null?void 0:r.className,a.className),h=f?{className:f}:{};return S.cloneElement(u,Object.assign({},T0(u.props,eu(Da(a,["ref"]))),d,c,eb(u.ref,c.ref),h))}return S.createElement(s,Object.assign({},Da(a,["ref"]),s!==S.Fragment&&c,s!==S.Fragment&&d),u)}function eb(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function T0(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(i=>[i,void 0])));for(let i in n)Object.assign(t,{[i](r,...s){let o=n[i];for(let l of o){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;l(r,...s)}}});return t}function sn(e){var t;return Object.assign(S.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function eu(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Da(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function tb(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&nb(n)?!1:i}function nb(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function L0(e={},t=null,n=[]){for(let[i,r]of Object.entries(e))D0(n,N0(t,i),r);return n}function N0(e,t){return e?e+"["+t+"]":t}function D0(e,t,n){if(Array.isArray(n))for(let[i,r]of n.entries())D0(e,N0(t,i.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):L0(n,t,e)}let ib="div";var A0=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(A0||{});function rb(e,t){let{features:n=1,...i}=e,r={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return jn({ourProps:r,theirProps:i,slot:{},defaultTag:ib,name:"Hidden"})}let sb=sn(rb),bd=S.createContext(null);bd.displayName="OpenClosedContext";var rt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(rt||{});function Sd(){return S.useContext(bd)}function F0({value:e,children:t}){return ve.createElement(bd.Provider,{value:e},t)}var Me=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Me||{});function ob(e,t,n){let[i,r]=S.useState(n),s=e!==void 0,o=S.useRef(s),l=S.useRef(!1),a=S.useRef(!1);return s&&!o.current&&!l.current?(l.current=!0,o.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&o.current&&!a.current&&(a.current=!0,o.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:i,J(c=>(s||r(c),t==null?void 0:t(c)))]}function xh(e){return[e.screenX,e.screenY]}function lb(){let e=S.useRef([-1,-1]);return{wasMoved(t){let n=xh(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=xh(t)}}}function z0(){let e=S.useRef(!1);return yt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ab=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ab||{}),cb=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(cb||{}),ub=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ub||{}),db=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(db||{});function Aa(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,i=Xw(t(e.options.slice()),s=>s.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return r===-1&&(r=null),{options:i,activeOptionIndex:r}}let fb={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,i=e.options.findIndex(r=>n(r.dataRef.current.value));return i!==-1&&(t=i),{...e,listboxState:0,activeOptionIndex:t}},[2](e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let i=Aa(e),r=Zw(t,{resolveItems:()=>i.options,resolveActiveIndex:()=>i.activeOptionIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled});return{...e,...i,searchQuery:"",activeOptionIndex:r,activationTrigger:(n=t.trigger)!=null?n:1}},[3]:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,i=e.searchQuery+t.value.toLowerCase(),r=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var l;return!o.dataRef.current.disabled&&((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(i))}),s=r?e.options.indexOf(r):-1;return s===-1||s===e.activeOptionIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeOptionIndex:s,activationTrigger:1}},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},[5]:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},i=Aa(e,r=>[...r,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(n)),{...e,...i}},[6]:(e,t)=>{let n=Aa(e,i=>{let r=i.findIndex(s=>s.id===t.id);return r!==-1&&i.splice(r,1),i});return{...e,...n,activationTrigger:1}},[7]:(e,t)=>({...e,labelId:t.id})},kd=S.createContext(null);kd.displayName="ListboxActionsContext";function Cs(e){let t=S.useContext(kd);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Cs),n}return t}let Ed=S.createContext(null);Ed.displayName="ListboxDataContext";function Ps(e){let t=S.useContext(Ed);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ps),n}return t}function hb(e,t){return Ne(t.type,fb,e,t)}let pb=S.Fragment;function gb(e,t){let{value:n,defaultValue:i,name:r,onChange:s,by:o=(j,W)=>j===W,disabled:l=!1,horizontal:a=!1,multiple:c=!1,...u}=e;const d=a?"horizontal":"vertical";let f=mi(t),[h=c?[]:void 0,p]=ob(n,s,i),[y,v]=S.useReducer(hb,{dataRef:S.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),g=S.useRef({static:!1,hold:!1}),m=S.useRef(null),x=S.useRef(null),_=S.useRef(null),w=J(typeof o=="str
72ing"?(j,W)=>{let re=o;return(j==null?void 0:j[re])===(W==null?void 0:W[re])}:o),E=S.useCallback(j=>Ne(k.mode,{[1]:()=>h.some(W=>w(W,j)),[0]:()=>w(h,j)}),[h]),k=S.useMemo(()=>({...y,value:h,disabled:l,mode:c?1:0,orientation:d,compare:w,isSelected:E,optionsPropsRef:g,labelRef:m,buttonRef:x,optionsRef:_}),[h,l,c,y]);yt(()=>{y.dataRef.current=k},[k]),Qw([k.buttonRef,k.optionsRef],(j,W)=>{var re;v({type:1}),O0(W,wd.Loose)||(j.preventDefault(),(re=k.buttonRef.current)==null||re.focus())},k.listboxState===0);let C=S.useMemo(()=>({open:k.listboxState===0,disabled:l,value:h}),[k,l,h]),L=J(j=>{let W=k.options.find(re=>re.id===j);W&&V(W.dataRef.current.value)}),T=J(()=>{if(k.activeOptionIndex!==null){let{dataRef:j,id:W}=k.options[k.activeOptionIndex];V(j.current.value),v({type:2,focus:qe.Specific,id:W})}}),F=J(()=>v({type:0})),I=J(()=>v({type:1})),G=J((j,W,re)=>j===qe.Specific?v({type:2,focus:qe.Specific,id:W,trigger:re}):v({type:2,focus:j,trigger:re})),_e=J((j,W)=>(v({type:5,id:j,dataRef:W}),()=>v({type:6,id:j}))),H=J(j=>(v({type:7,id:j}),()=>v({type:7,id:null}))),V=J(j=>Ne(k.mode,{[0](){return p==null?void 0:p(j)},[1](){let W=k.value.slice(),re=W.findIndex(Pe=>w(Pe,j));return re===-1?W.push(j):W.splice(re,1),p==null?void 0:p(W)}})),q=J(j=>v({type:3,value:j})),R=J(()=>v({type:4})),A=S.useMemo(()=>({onChange:V,registerOption:_e,registerLabel:H,goToOption:G,closeListbox:I,openListbox:F,selectActiveOption:T,selectOption:L,search:q,clearSearch:R}),[]),z={ref:f},$=S.useRef(null),te=Qi();return S.useEffect(()=>{$.current&&i!==void 0&&te.addEventListener($.current,"reset",()=>{V(i)})},[$,V]),ve.createElement(kd.Provider,{value:A},ve.createElement(Ed.Provider,{value:k},ve.createElement(F0,{value:Ne(k.listboxState,{[0]:rt.Open,[1]:rt.Closed})},r!=null&&h!=null&&L0({[r]:h}).map(([j,W],re)=>ve.createElement(sb,{features:A0.Hidden,ref:re===0?Pe=>{var Hn;$.current=(Hn=Pe==null?void 0:Pe.closest("form"))!=null?Hn:null}:void 0,...eu({key:j,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:j,value:W})})),jn({ourProps:z,theirProps:u,slot:C,defaultTag:pb,name:"Listbox"}))))}let mb="button";function yb(e,t){var n;let i=Vl(),{id:r=`headlessui-listbox-button-${i}`,...s}=e,o=Ps("Listbox.Button"),l=Cs("Listbox.Button"),a=mi(o.buttonRef,t),c=Qi(),u=J(v=>{switch(v.key){case Me.Space:case Me.Enter:case Me.ArrowDown:v.preventDefault(),l.openListbox(),c.nextFrame(()=>{o.value||l.goToOption(qe.First)});break;case Me.ArrowUp:v.preventDefault(),l.openListbox(),c.nextFrame(()=>{o.value||l.goToOption(qe.Last)});break}}),d=J(v=>{switch(v.key){case Me.Space:v.preventDefault();break}}),f=J(v=>{if(tb(v.currentTarget))return v.preventDefault();o.listboxState===0?(l.closeListbox(),c.nextFrame(()=>{var g;return(g=o.buttonRef.current)==null?void 0:g.focus({preventScroll:!0})}
72)):(v.preventDefault(),l.openListbox())}),h=P0(()=>{if(o.labelId)return[o.labelId,r].join(" ")},[o.labelId,r]),p=S.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),y={ref:a,id:r,type:Gw(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.disabled?void 0:o.listboxState===0,"aria-labelledby":h,disabled:o.disabled,onKeyDown:u,onKeyUp:d,onClick:f};return jn({ourProps:y,theirProps:s,slot:p,defaultTag:mb,name:"Listbox.Button"})}let vb="label";function xb(e,t){let n=Vl(),{id:i=`headlessui-listbox-label-${n}`,...r}=e,s=Ps("Listbox.Label"),o=Cs("Listbox.Label"),l=mi(s.labelRef,t);yt(()=>o.registerLabel(i),[i]);let a=J(()=>{var u;return(u=s.buttonRef.current)==null?void 0:u.focus({preventScroll:!0})}),c=S.useMemo(()=>({open:s.listboxState===0,disabled:s.disabled}),[s]);return jn({ourProps:{ref:l,id:i,onClick:a},theirProps:r,slot:c,defaultTag:vb,name:"Listbox.Label"})}let _b="ul",wb=dl.RenderStrategy|dl.Static;function bb(e,t){var n;let i=Vl(),{id:r=`headlessui-listbox-options-${i}`,...s}=e,o=Ps("Listbox.Options"),l=Cs("Listbox.Options"),a=mi(o.optionsRef,t),c=Qi(),u=Qi(),d=Sd(),f=(()=>d!==null?(d&rt.Open)===rt.Open:o.listboxState===0)();S.useEffect(()=>{var g;let m=o.optionsRef.current;m&&o.listboxState===0&&m!==((g=M0(m))==null?void 0:g.activeElement)&&m.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let h=J(g=>{switch(u.dispose(),g.key){case Me.Space:if(o.searchQuery!=="")return g.preventDefault(),g.stopPropagation(),l.search(g.key);case Me.Enter:if(g.preventDefault(),g.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:m}=o.options[o.activeOptionIndex];l.onChange(m.current.value)}o.mode===0&&(l.closeListbox(),Dn().nextFrame(()=>{var m;return(m=o.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})}
72));break;case Ne(o.orientation,{vertical:Me.ArrowDown,horizontal:Me.ArrowRight}):return g.preventDefault(),g.stopPropagation(),l.goToOption(qe.Next);case Ne(o.orientation,{vertical:Me.ArrowUp,horizontal:Me.ArrowLeft}):return g.preventDefault(),g.stopPropagation(),l.goToOption(qe.Previous);case Me.Home:case Me.PageUp:return g.preventDefault(),g.stopPropagation(),l.goToOption(qe.First);case Me.End:case Me.PageDown:return g.preventDefault(),g.stopPropagation(),l.goToOption(qe.Last);case Me.Escape:return g.preventDefault(),g.stopPropagation(),l.closeListbox(),c.nextFrame(()=>{var m;return(m=o.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})});case Me.Tab:g.preventDefault(),g.stopPropagation();break;default:g.key.length===1&&(l.search(g.key),u.setTimeout(()=>l.clearSearch(),350));break}}),p=P0(()=>{var g,m,x;return(x=(g=o.labelRef.current)==null?void 0:g.id)!=null?x:(m=o.buttonRef.current)==null?void 0:m.id},[o.labelRef.current,o.buttonRef.current]),y=S.useMemo(()=>({open:o.listboxState===0}),[o]),v={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":p,"aria-orientation":o.orientation,id:r,onKeyDown:h,role:"listbox",tabIndex:0,ref:a};return jn({ourProps:v,theirProps:s,slot:y,defaultTag:_b,features:wb,visible:f,name:"Listbox.Options"})}let Sb="li";function kb(e,t){let n=Vl(),{id:i=`headlessui-listbox-option-${n}`,disabled:r=!1,value:s,...o}=e,l=Ps("Listbox.Option"),a=Cs("Listbox.Option"),c=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===i:!1,u=l.isSelected(s),d=S.useRef(null),f=qt({disabled:r,value:s,domRef:d,get textValue(){var w,E;return(E=(w=d.current)==null?void 0:w.textContent)==null?void 0:E.toLowerCase()}}),h=mi(t,d);yt(()=>{if(l.listboxState!==0||!c||l.activationTrigger===0)return;let w=Dn();return w.requestAnimationFrame(()=>{var E,k;(k=(E=d.current)==null?void 0:E.scrollIntoView)==null||k.call(E,{block:"nearest"})}),w.dispose},[d,c,l.listboxState,l.activationTrigger,l.activeOptionIndex]),yt(()=>a.registerOption(i,f),[f,i]);let p=J(w=>{if(r)return w.preventDefault();a.onChange(s),l.mode===0&&(a.closeListbox(),Dn().nextFrame(()=>{var E;return(E=l.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})}
72))}),y=J(()=>{if(r)return a.goToOption(qe.Nothing);a.goToOption(qe.Specific,i)}),v=lb(),g=J(w=>v.update(w)),m=J(w=>{v.wasMoved(w)&&(r||c||a.goToOption(qe.Specific,i,0))}),x=J(w=>{v.wasMoved(w)&&(r||c&&a.goToOption(qe.Nothing))}),_=S.useMemo(()=>({active:c,selected:u,disabled:r}),[c,u,r]);return jn({ourProps:{id:i,ref:h,role:"option",tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,"aria-selected":u,disabled:void 0,onClick:p,onFocus:y,onPointerEnter:g,onMouseEnter:g,onPointerMove:m,onMouseMove:m,onPointerLeave:x,onMouseLeave:x},theirProps:o,slot:_,defaultTag:Sb,name:"Listbox.Option"})}let Eb=sn(gb),Cb=sn(yb),Pb=sn(xb),Mb=sn(bb),Ob=sn(kb),Qs=Object.assign(Eb,{Button:Cb,Label:Pb,Options:Mb,Option:Ob});function Rb(e=0){let[t,n]=S.useState(e),i=S.useCallback(l=>n(a=>a|l),[t]),r=S.useCallback(l=>!!(t&l),[t]),s=S.useCallback(l=>n(a=>a&~l),[n]),o=S.useCallback(l=>n(a=>a^l),[n]);return{flags:t,addFlag:i,hasFlag:r,removeFlag:s,toggleFlag:o}}function Tb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Fa(e,...t){e&&t.length>0&&e.classList.add(...t)}function za(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Lb(e,t){let n=Dn();if(!e)return n.dispose;let{transitionDuration:i,transitionDelay:r}=getComputedStyle(e),[s,o]=[i,r].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),l=s+o;if(l!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},l),c.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let a=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),a())})}else t();return n.add(()=>t()),n.dispose}function Nb(e,t,n,i){let r=n?"enter":"leave",s=Dn(),o=i!==void 0?Tb(i):()=>{};r==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=Ne(r,{enter:()=>t.enter,leave:()=>t.leave}),a=Ne(r,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ne(r,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return za(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Fa(e,...l,...c),s.nextFrame(()=>{za(e,...c),Fa(e,...a),Lb(e,()=>(za(e,...l),Fa(e,...t.entered),o()))}),s.dispose}function Db({container:e,direction:t,classes:n,onStart:i,onStop:r}){let s=z0(),o=Qi(),l=qt(t);yt(()=>{let a=Dn();o.add(a.dispose);let c=e.current;if(c&&l.current!=="idle"&&s.current)return a.dispose(),i.current(l.current),a.add(Nb(c,n.current,l.current==="enter",()=>{a.dispose(),r.current(l.current)})),a.dispose},[t])}function Wn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Ul=S.createContext(null);Ul.displayName="TransitionContext";var Ab=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ab||{});function Fb(){let e=S.useContext(Ul);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function zb(){let e=S.useContext(Yl);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Yl=S.createContext(null);Yl.displayName="NestingContext";function Kl(e){return"children"in e?Kl(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function I0(e,t){let n=qt(e),i=S.useRef([]),r=z0(),s=Qi(),o=J((h,p=Yt.Hidden)=>{let y=i.current.findIndex(({el:v})=>v===h);y!==-1&&(Ne(p,{[Yt.Unmount](){i.current.splice(y,1)},[Yt.Hidden](){i.current[y].state="hidden"}}),s.microTask(()=>{var v;!Kl(i)&&r.current&&((v=n.current)==null||v.call(n))}))}),l=J(h=>{let p=i.current.find(({el:y})=>y===h);return p?p.state!=="visible"&&(p.state="visible"):i.current.push({el:h,state:"visible"}),()=>o(h,Yt.Unmount)}),a=S.useRef([]),c=S.useRef(Promise.resolve()),u=S.useRef({enter:[],leave:[],idle:[]}),d=J((h,p,y)=>{a.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([v])=>v!==h)),t==null||t.chains.current[p].push([h,new Promise(v=>{a.current.push(v)})]),t==null||t.chains.current[p].push([h,new Promise(v=>{Promise.all(u.current[p].map(([g,m])=>m)).then(()=>v())})]),p==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(p)):y(p)}),f=J((h,p,y)=>{Promise.all(u.current[p].splice(0).map(([v,g])=>g)).then(()=>{var v;(v=a.current.shift())==null||v()}).then(()=>y(p))});return S.useMemo(()=>({children:i,register:l,unregister:o,onStart:d,onStop:f,wait:c,chains:u}),[l,o,i,d,f,u,c])}function Ib(){}let Bb=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function _h(e){var t;let n={};for(let i of Bb)n[i]=(t=e[i])!=null?t:Ib;return n}function jb(e){let t=S.useRef(_h(e));return S.useEffect(()=>{t.current=_h(e)},[e]),t}let $b="div",B0=dl.RenderStrategy;
72function Hb(e,t){let{beforeEnter:n,afterEnter:i,beforeLeave:r,afterLeave:s,enter:o,enterFrom:l,enterTo:a,entered:c,leave:u,leaveFrom:d,leaveTo:f,...h}=e,p=S.useRef(null),y=mi(p,t),v=h.unmount?Yt.Unmount:Yt.Hidden,{show:g,appear:m,initial:x}=Fb(),[_,w]=S.useState(g?"visible":"hidden"),E=zb(),{register:k,unregister:C}=E,L=S.useRef(null);S.useEffect(()=>k(p),[k,p]),S.useEffect(()=>{if(v===Yt.Hidden&&p.current){if(g&&_!=="visible"){w("visible");return}return Ne(_,{hidden:()=>C(p),visible:()=>k(p)})}},[_,p,k,C,g,v]);let T=qt({enter:Wn(o),enterFrom:Wn(l),enterTo:Wn(a),entered:Wn(c),leave:Wn(u),leaveFrom:Wn(d),leaveTo:Wn(f)}),F=jb({beforeEnter:n,afterEnter:i,beforeLeave:r,afterLeave:s}),I=_d();S.useEffect(()=>{if(I&&_==="visible"&&p.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[p,_,I]);let G=x&&!m,_e=(()=>!I||G||L.current===g?"idle":g?"enter":"leave")(),H=Rb(0),V=J($=>Ne($,{enter:()=>{H.addFlag(rt.Opening),F.current.beforeEnter()},leave:()=>{H.addFlag(rt.Closing),F.current.beforeLeave()},idle:()=>{}})),q=J($=>Ne($,{enter:()=>{H.removeFlag(rt.Opening),F.current.afterEnter()},leave:()=>{H.removeFlag(rt.Closing),F.current.afterLeave()},idle:()=>{}})),R=I0(()=>{w("hidden"),C(p)},E);Db({container:p,classes:T,direction:_e,onStart:qt($=>{R.onStart(p,$,V)}),onStop:qt($=>{R.onStop(p,$,q),$==="leave"&&!Kl(R)&&(w("hidden"),C(p))})}),S.useEffect(()=>{G&&(v===Yt.Hidden?L.current=null:L.current=g)},[g,G,_]);let A=h,z={ref:y};return m&&g&&On.isServer&&(A={...A,className:R0(h.className,...T.current.enter,...T.current.enterFrom)}),ve.createElement(Yl.Provider,{value:R},ve.createElement(F0,{value:Ne(_,{visible:rt.Open,hidden:rt.Closed})|H.flags},jn({ourProps:z,theirProps:A,defaultTag:$b,features:B0,visible:_==="visible",name:"Transition.Child"})))}function Wb(e,t){let{show:n,appear:i=!1,unmount:r,...s}=e,o=S.useRef(null),l=mi(o,t);_d();let a=Sd();if(n===void 0&&a!==null&&(n=(a&rt.Open)===rt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=S.useState(n?"visible":"hidden"),d=I0(()=>{u("hidden")}),[f,h]=S.useState(!0),p=S.useRef([n]);yt(()=>{f!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))},[p,n]);let y=S.useMemo(()=>({show:n,appear:i,initial:f}),[n,i,f]);S.useEffect(()=>{if(n)u("visible");else if(!Kl(d))u("hidden");else{let g=o.current;if(!g)return;let m=g.getBoundingClientRect();m.x===0&&m.y===0&&m.width===0&&m.height===0&&u("hidden")}},[n,d]);let v={unmount:r};return ve.createElement(Yl.Provider,{value:d},ve.createElement(Ul.Provider,{value:y},jn({ourProps:{...v,as:S.Fragment,children:ve.createElement(j0,{ref:l,...v,...s})},theirProps:{},defaultTag:S.Fragment,features:B0,visible:c==="visible",name:"Transition"})))}function Vb(e,t){let n=S.useContext(Ul)!==null,i=Sd()!==null;return ve.createElement(ve.Fragment,null,!n&&i?ve.createElement(tu,{ref:t,...e}):ve.createElement(j0,{ref:t,...e}))}let tu=sn(Wb),j0=sn(Hb),Ub=sn(Vb),Yb=Object.assign(tu,{Child:Ub,Root:tu});const Po=S;function Kb({title:e,titleId:t,...n},i){return Po.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?Po.createElement("title",{id:t},e):null,Po.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}const Xb=Po.forwardRef(Kb);var Qb=Xb;const Mo=S;function Gb({title:e,titleId:t,...n},i){return Mo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?Mo.createElement("title",{id:t},e):null,Mo.createElement("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"}))}const qb=Mo.forwardRef(Gb);var Jb=qb,Zb=Qb,e2=Jb;const wh=[{name:"Select an option"},{name:"Hourly"},{name:"Daily"}],t2=()=>{const[e,t]=S.useState(wh[0]);
72return b("div",{children:b(Qs,{value:e,onChange:t,children:O("div",{className:"w-full",children:[O(Qs.Button,{className:"relative w-full cursor-default rounded-lg bg-light py-2 pl-3 pr-10 text-left shadow-sm border border-grayDarkOpacity26 focus:outline-none focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-gray focus-visible:ring-opacity-75 focus-visible:ring-offset-2",children:[b("span",{className:"block truncate text-sm",children:e.name}),b("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:b(e2,{className:"h-5 w-5 text-primary","aria-hidden":"true"})})]}),b(Yb,{as:S.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b(Qs.Options,{className:"text-base bg-light rounded-md shadow-lg max-h-60 ring-1 ring-light ring-opacity-10 focus:outline-none sm:text-sm",children:wh.map((n,i)=>b(Qs.Option,{className:({active:r})=>`relative cursor-default select-none py-2 pl-10 pr-4 ${r?"bg-gray text-secondary":"text-primary"}`,value:n,children:({selected:r})=>O(qp,{children:[b("span",{className:`block truncate ${r?"font-medium":"font-normal"}`,children:n.name}),r?b("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-indigo",children:b(Zb,{className:"h-5 w-5","aria-hidden":"true"})}):null]})},i))})})]})})})},n2=()=>b("div",{children:O("div",{className:"flex justify-between text-secondary text-lg mt-10 mr-32",children:[b("h5",{className:"capitalize mr-10",children:"average weekly temperature"}),b("div",{className:"w-72",children:b(t2,{})})]})});function Gs({data:e}){return b("span",{className:"rounded-full text-xs text-center capitalize bg-primary-light whitespace-nowrap px-2 py-1",children:b("span",{className:"text-light",children:e})})}const $0=()=>{var r,s,o,l,a,c,u,d,f,h,p,y;const{resultForecastData:e}=gi(),{current:t,forecast:n,location:i}=e;return b("div",{children:b("div",{className:"top-0 right-0 w-[20vw] bg-secondary p-10 text-light fixed h-full",children:O("div",{className:"space-y-3",children:[O("div",{className:"flex justify-between",children:[O("div",{className:"flex flex-col text-grayText",children:[b("div",{className:"text-2lg",children:i==null?void 0:i.name}),b("div",{className:"text-sm",children:i==null?void 0:i.country})]}),b("div",{className:"text-md",children:i==null?void 0:i.localtime})]}),O("section",{children:[b("img",{src:`${(r=t==null?void 0:t.condition)==null?void 0:r.icon}`,alt:`${(s=t==null?void 0:t.condition)==null?void 0:s.text}`}),O("h5",{className:"text-2xl text-grayDarkTitles",children:[t==null?void 0:t.temp_c," Cº"]}),O("div",{className:"fles justify-between items-center",children:[b("div",{className:"text-xl",children:O("p",{className:"text-grayText capitalize",children:["feels like:",b("span",{className:"px-2",children:t==null?void 0:t.feelslike_c}),"Cº"]})}),b("div",{className:"text-sm text-grayText capitalize",children:O("span",{children:["conditions ",t==null?void 0:t.condition.text]})}),b("div",{className:"text-sm text-grayText capitalize",children:O("span",{children:["humidity ",t==null?void 0:t.humidity]})})]})]}),O("section",{children:[b("h5",{className:"text-xl text-grayDarkTitles capitalize",children:"chance of rain"}),b("div",{className:"text-sm text-grayText capitalize",children:O("span",{children:[(l=(o=n==null?void 0:n.forecastday[0])==null?void 0:o.day)==null?void 0:l.daily_chance_of_rain," %"]})})]}),O("section",{children:[O("div",{className:"grid grid-cols-2 gap-1",children:[b("h5",{className:"text-sm text-grayDarkTitles capitalize",children:"max temp"}),b("h5",{className:"text-sm text-grayDarkTitles capitalize",children:"min temp"})]}),O("div",{className:"grid grid-cols-2 gap-1",children:[b(Gs,{data:(c=(a=n==null?void 0:n.forecastday[0])==null?void 0:a.day)==null?void 0:c.maxtemp_c}),b(Gs,{data:(d=(u=n==null?void 0:n.forecastday[0])==null?void 0:u.day)==null?void 0:d.mintemp_c})]})]}),O("section",{children:[O("div",{className:"grid grid-cols-2 gap-1",children:[b("h5",{className:"text-sm text-grayDarkTitles capitalize",children:"Sunrise"}),b("h5",{className:"text-sm text-grayDarkTitles capitalize",children:"Sunset"})]}),O("div",{className:"grid grid-cols-2 gap-1",children:[b(Gs,{data:(h=(f=n==null?void 0:n.forecastday[0])==null?void 0:f.astro)==null?void 0:h.sunrise}),b(Gs,{data:(y=(p=n==null?void 0:n.forecastday[0])==null?void 0:p.astro)==null?void 0:y.sunset})]})]}),b("section",{className:"fixed bottom-1",children:O("div",{className:"text-md text-center text-grayDarkOpacity26",children:["Powered by"," ",b("a",{href:"https://www.weatherapi.com/",title:"Free Weather API",className:"hover:text-light",children:"WeatherAPI.com"})]})})]})})})},i2=()=>{const{resultForecastData:e}=gi();return O("div",{children:[(e==null?void 0:e.current)&&b($0,{}),b(b_,{}),b(jw,{}),b(n2,{})]})},r2=()=>{const e=Bl();return b("div",{children:b("div",{className:"hide-in-print z-30 fixed h-screen w-20 lg:w-64 bg-white transition-all duration-500 p-3 bg-grayDark shadow pt-10",children:O("div",{className:"space-y-3",children:[b("div",{className:"flex items-center",children:b("h2",{className:"text-xl font-bold text-secondary",children:"Chicacode Weather"})}),b("div",{className:"flex-1",children:O("ul",{className:"pt-2 pb-4 space-y-1 text-sm",children:[b("li",{className:"rounded-sm",children:O("div",{onClick:()=>e("/"),className:"flex items-center p-2 space-x-3 rounded-md",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),b("span",{className:"text-primary hover:cursor-pointer",children:"Dashboard"})]})}),b("li",{className:"rounded-sm",children:O("div",{onClick:()=>e("/favorites"),className:"flex items-center p-2 space-x-3 rounded-md",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})}),b("span",{className:"text-grayDarkTitles hover:cursor-pointer",children:"Favorites"})]})}),b("li",{className:"rounded-sm",children:O("div",{onClick:()=>e("/recent-searches"),className:"flex items-center p-2 space-x-3 rounded-md",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})}),b("span",{className:"text-grayDarkTitles hover:cursor-pointer",children:"Recent Searches"})]})}),b("li",{className:"rounded-sm",children:O("div",{onClick:()=>e("/settings"),className:"flex items-center p-2 space-x-3 rounded-md",children:[O("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[b("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),b("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),b("span",{className:"text-grayDarkTitles hover:cursor-pointer",children:"Settings"})]})}),b("li",{className:"rounded-sm",children:O("a",{href:"#",className:"flex items-center p-2 space-x-3 rounded-md",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"})}),b("span",{className:"text-error hover:cursor-pointer",children:"Logout"})]})})]})})]})})})},s2=()=>{const[e,t]=S.useState(""),{searchData:n,setData:i,getData:r,forecastData:s}=gi(),{city:o,country:l}=n;return O("div",{className:"text-primary container",children:[e&&O("div",{className:"flex justify-center text-center items-center container mx-auto w-64 bg-error text-light font-light",children:[b("span",{className:"px-0.5",children:b("i",{className:"fa-solid fa-circle-exclamation"})}),e]}),b("div",{className:"form",children:b("form",{onSubmit:c=>{c.preventDefault(),Object.values(n).includes("")&&t("All fields are required"),t(""),s(n)},children:O("div",{className:"flex justify-start",children:[b("div",{className:"form-field-city w-72",children:b("input",{type:"text",placeholder:"Search location here",className:"px-4 py-3",id:"city",name:"city",onChange:i,value:o})}),b("div",{className:"w-16 ml-5",children:b("input",{type:"submit",value:"search",className:"px-2 py-2 bg-primary text-light rounded-xl border-0 items-center"})})]})})})]})},o2=()=>b("div",{children:b(s2,{})}),l2=()=>{const e=["January","February","March","April","May","June","July","August","September","October","November","December"],t=new Date,n=e[t.getMonth()],i=t.getFullYear(),r=t.toDateString();return b("div",{className:"mt-4 pr-44",children:O("div",{className:"grid grid-col-1 md:grid-cols-2 gap-1 justify-center items-center ",children:[O("div",{className:" flex flex-col text-sm font-medium text-secondary",children:[O("div",{className:"flex items-center",children:[O("h6",{className:"text-lg text-secondary font-bold pr-1",children:[n,", "]}),b("h6",{className:"text-lg text-secondary font-bold",children:i})]}),b("h6",{className:"text-sm text-grayText font-medium",children:r})]}),b("div",{children:b(o2,{})})]})})},a2=()=>{const e=Bl();return b("div",{className:"h-96 bg-error text-light flex justify-center py-10 my-10",children:b("div",{class:"flex justify-center",children:O("div",{class:"block max-w-sm rounded-lg bg-light p-6 shadow-lg dark:bg-neutral-700",children:[b("h5",{class:"mb-2 text-xl font-medium leading-tight text-secondary dark:text-neutral-50",children:"Not found"}),b("p",{class:"mb-4 text-base text-secondary dark:text-neutral-200",children:b("h5",{children:"You have landed on a page that doesn't exist!"})}),b("button",{type:"button",class:"inline-block rounded bg-primary px-6 pt-2.5 pb-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)]","data-te-ripple-init":!0,"data-te-ripple-color":"light",onClick:()=>e("/"),children:"Go back"})]})})})},c2=()=>b("div",{children:"FavoritesPage"}),u2=()=>b("div",{children:"RecentSearchesPage"}),d2=()=>{const e=Bl(),{resultForecastData:t}=gi();return O("div",{children:[(t==null?void 0:t.current)&&b($0,{}),b("section",{children:b("div",{className:"container mx-auto px-4",children:b("div",{className:"flex flex-col min-w-0 break-words bg-white w-full mb-6 shadow-xl rounded-lg",children:O("div",{className:"px-6",children:[O("div",{className:"flex flex-wrap justify-center",children:[b("div",{className:"w-full lg:w-4/12 px-4 lg:order-3 lg:text-right lg:self-ce
72nter",children:b("div",{className:"py-6 px-3 mt-32 sm:mt-0",children:b("button",{className:"bg-success hover:bg-success-hover uppercase text-black font-bold hover:shadow-md shadow text-xs px-4 py-2 rounded outline-none focus:outline-none sm:mr-2 mb-1",type:"button",style:{transition:"all .15s ease"},onClick:()=>e("/"),children:"Connect"})})}),b("div",{className:"w-full lg:w-4/12 px-4 lg:order-1",children:O("div",{className:"flex justify-center py-4 lg:pt-4 pt-8",children:[O("div",{className:"mr-4 p-3 text-center",children:[b("span",{className:"text-xl font-bold block uppercase tracking-wide text-gray-700",children:b("i",{className:"fa-regular fa-user text-black"})}),b("span",{className:"text-sm text-gray-500",children:"Personal"})]}),O("div",{className:"mr-4 p-3 text-center",children:[b("span",{className:"text-xl font-bold block uppercase tracking-wide text-gray-700",children:b("i",{className:"fa-regular fa-address-card"})}),b("span",{className:"text-sm text-gray-500",children:"Profile"})]}),O("div",{className:"mr-4 p-3 text-center",children:[b("span",{className:"text-xl font-bold block uppercase tracking-wide text-gray-700",children:b("i",{className:"fa fa-gear"})}),b("span",{className:"text-sm text-gray-500",children:"Language & Regions"})]})]})})]}),O("div",{className:"text-center mt-12",children:[b("h3",{className:"text-4xl font-semibold leading-normal mb-2 text-gray-800",children:"Jenna Stones"}),O("div",{className:"text-sm leading-normal mt-0 mb-2 text-gray-500 font-bold uppercase",children:[b("i",{className:"fas fa-map-marker-alt mr-2 text-lg text-gray-500"})," ","Vancouver, Canada"]}),O("div",{className:"mb-2 text-primary mt-10",children:[b("i",{className:"fas fa-briefcase mr-2 text-lg text-gray-500"}),"Solution Manager - Creative Tim Officer"]}),O("div",{className:"mb-2 text-gray-700",children:[b("i",{className:"fas fa-university mr-2 text-lg text-gray-500"}),"University of Computer Science"]})]}),b("div",{className:"mt-10 py-10 border-t border-gray-300 text-center",children:b("div",{className:"flex flex-wrap justify-center",children:O("div",{className:"w-full lg:w-9/12 px-4",children:[b("p",{className:"mb-4 text-lg leading-relaxed text-gray-800",children:"An artist of considerable range, Jenna the name taken by Melbourne-raised, Brooklyn-based Nick Murphy writes, performs and records all of his own music, giving it a warm, intimate feel with a solid groove structure. An artist of considerable range."}),b("a",{href:"https://github.com/settings/profile",className:"font-normal text-indigo",onClick:n=>n.preventDefault(),children:"Show more"})]})})})]})})})})]})};/*! 73 * @kurkle/color v0.3.2 74 * https://github.com/kurkle/color#readme 75 * (c) 2023 Jukka Kurkela 76 * Released under the MIT License 77 */function Ms(e){return e+.5|0}const mn=(e,t,n)=>Math.max(Math.min(e,n),t);function Sr(e){return mn(Ms(e*2.55),0,255)}function Rn(e){return mn(Ms(e*255),0,255)}function Wt(e){return mn(Ms(e/2.55)/100,0,1)}function bh(e){return mn(Ms(e*100),0,100)}const ut={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},nu=[..."0123456789ABCDEF"],f2=e=>nu[e&15],h2=e=>nu[(e&240)>>4]+nu[e&15],qs=e=>(e&240)>>4===(e&15),p2=e=>qs(e.r)&&qs(e.g)&&qs(e.b)&&qs(e.a);function g2(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&ut[e[1]]*17,g:255&ut[e[2]]*17,b:255&ut[e[3]]*17,a:t===5?ut[e[4]]*17:255}:(t===7||t===9)&&(n={r:ut[e[1]]<<4|ut[e[2]],g:ut[e[3]]<<4|ut[e[4]],b:ut[e[5]]<<4|ut[e[6]],a:t===9?ut[e[7]]<<4|ut[e[8]]:255})),n}const m2=(e,t)=>e<255?t(e):"";function y2(e){var t=p2(e)?f2:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+m2(e.a,t):void 0}const v2=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function H0(e,t,n){const i=t*Math.min(n,1-n),r=(s,o=(s+e/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function x2(e,t,n){const i=(r,s=(r+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function _2(e,t,n){const i=H0(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function w2(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}function Cd(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=Math.max(n,i,r),o=Math.min(n,i,r),l=(s+o)/2;let a,c,u;return s!==o&&(u=s-o,c=l>.5?u/(2-s-o):u/(s+o),a=w2(n,i,r,u,s),a=a*60+.5),[a|0,c||0,l]}function Pd(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Rn)}
vendor: 4,854 bytes, line 77
77function Md(e,t,n){return Pd(H0,e,t,n)}function b2(e,t,n){return Pd(_2,e,t,n)}function S2(e,t,n){return Pd(x2,e,t,n)}function W0(e){return(e%360+360)%360}function k2(e){const t=v2.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Sr(+t[5]):Rn(+t[5]));const r=W0(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=b2(r,s,o):t[1]==="hsv"?i=S2(r,s,o):i=Md(r,s,o),{r:i[0],g:i[1],b:i[2],a:n}}function E2(e,t){var n=Cd(e);n[0]=W0(n[0]+t),n=Md(n),e.r=n[0],e.g=n[1],e.b=n[2]}function C2(e){if(!e)return;const t=Cd(e),n=t[0],i=bh(t[1]),r=bh(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${Wt(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const Sh={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"},kh={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 P2(){const e={},t=Object.keys(kh),n=Object.keys(Sh);let i,r,s,o,l;for(i=0;i<t.length;i++){for(o=l=t[i],r=0;r<n.length;r++)s=n[r],l=l.replace(s,Sh[s]);s=parseInt(kh[o],16),e[l]=[s>>16&255,s>>8&255,s&255]}return e}let Js;function M2(e){Js||(Js=P2(),Js.transparent=[0,0,0,0]);const t=Js[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const O2=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function R2(e){const t=O2.exec(e);let n=255,i,r,s;if(t){if(t[7]!==i){const o=+t[7];n=t[8]?Sr(o):mn(o*255,0,255)}return i=+t[1],r=+t[3],s=+t[5],i=255&(t[2]?Sr(i):mn(i,0,255)),r=255&(t[4]?Sr(r):mn(r,0,255)),s=255&(t[6]?Sr(s):mn(s,0,255)),{r:i,g:r,b:s,a:n}}}function T2(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Wt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ia=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,xi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function L2(e,t,n){const i=xi(Wt(e.r)),r=xi(Wt(e.g)),s=xi(Wt(e.b));return{r:Rn(Ia(i+n*(xi(Wt(t.r))-i))),g:Rn(Ia(r+n*(xi(Wt(t.g))-r))),b:Rn(Ia(s+n*(xi(Wt(t.b))-s))),a:e.a+n*(t.a-e.a)}}function Zs(e,t,n){if(e){let i=Cd(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Md(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function V0(e,t){return e&&Object.assign(t||{},e)}function Eh(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=Rn(e[3]))):(t=V0(e,{r:0,g:0,b:0,a:1}),t.a=Rn(t.a)),t}function N2(e){return e.charAt(0)==="r"?R2(e):k2(e)}class cs{constructor(t){if(t instanceof cs)return t;const n=typeof t;let i;n==="object"?i=Eh(t):n==="string"&&(i=g2(t)||M2(t)||N2(t)),this._rgb=i,this._val
vendor: 13,290 bytes, lines 77-82
77id=!!i}get valid(){return this._valid}get rgb(){var t=V0(this._rgb);return t&&(t.a=Wt(t.a)),t}set rgb(t){this._rgb=Eh(t)}rgbString(){return this._valid?T2(this._rgb):void 0}hexString(){return this._valid?y2(this._rgb):void 0}hslString(){return this._valid?C2(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,r=t.rgb;let s;const o=n===s?.5:n,l=2*o-1,a=i.a-r.a,c=((l*a===-1?l:(l+a)/(1+l*a))+1)/2;s=1-c,i.r=255&c*i.r+s*r.r+.5,i.g=255&c*i.g+s*r.g+.5,i.b=255&c*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=L2(this._rgb,t._rgb,n)),this}clone(){return new cs(this.rgb)}alpha(t){return this._rgb.a=Rn(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Ms(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Zs(this._rgb,2,t),this}darken(t){return Zs(this._rgb,2,-t),this}saturate(t){return Zs(this._rgb,1,t),this}desaturate(t){return Zs(this._rgb,1,-t),this}rotate(t){return E2(this._rgb,t),this}}/*! 78 * Chart.js v4.2.1 79 * https://www.chartjs.org 80 * (c) 2023 Chart.js Contributors 81 * Released under the MIT License 82 */function It(){}const D2=(()=>{let e=0;return()=>e++})();function Q(e){return e===null||typeof e>"u"}function oe(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function U(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ge(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function tt(e,t){return ge(e)?e:t}function B(e,t){return typeof e>"u"?t:e}const A2=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,U0=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ne(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Z(e,t,n,i){let r,s,o;if(oe(e))if(s=e.length,i)for(r=s-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<s;r++)t.call(n,e[r],r);else if(U(e))for(o=Object.keys(e),s=o.length,r=0;r<s;r++)t.call(n,e[o[r]],o[r])}function fl(e,t){let n,i,r,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],s=t[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function hl(e){if(oe(e))return e.map(hl);if(U(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=hl(e[n[r]]);return t}return e}function Y0(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function F2(e,t,n,i){if(!Y0(e))return;const r=t[e],s=n[e];U(r)&&U(s)?us(r,s,i):t[e]=hl(s)}function us(e,t,n){const i=oe(t)?t:[t],r=i.length;if(!U(e))return e;n=n||{};const s=n.merger||F2;let o;for(let l=0;l<r;++l){if(o=i[l],!U(o))continue;const a=Object.keys(o);for(let c=0,u=a.length;c<u;++c)s(a[c],e,o,n)}return e}function zr(e,t){return us(e,t,{merger:z2})}function z2(e,t,n){if(!Y0(e))return;const i=t[e],r=n[e];U(i)&&U(r)?zr(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=hl(r))}const Ch={"":e=>e,x:e=>e.x,y:e=>e.y};function I2(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function B2(e){const t=I2(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function An(e,t){return(Ch[t]||(Ch[t]=B2(t)))(e)}function Od(e){return e.charAt(0).toUpperCase()+e.slice(1)}const vt=e=>typeof e<"u",Fn=e=>typeof e=="function",Ph=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function j2(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ue=Math.PI,ae=2*ue,$2=ae+ue,pl=Number.POSITIVE_INFINITY,H2=ue/180,me=ue/2,Vn=ue/4,Mh=ue*2/3,yn=Math.log10,zt=Math.sign;function Ir(e,t,n){return Math.abs(e-t)<n}function Oh(e){const t=Math.round(e);e=Ir(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(yn(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function W2(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((r,s)=>r-s).pop(),t}function Gi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function V2(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function K0(e,t,n){let i,r,s;for(i=0,r=e.length;i<r;i++)s=e[i][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function St(e){return e*(ue/180)}function Rd(e){return e*(180/ue)}function Rh(e){if(!ge(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function X0(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*ue&&(s+=ae),{angle:s,distance:r}}function iu(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function U2(e,t){return(e-t+$2)%ae-ue}function it(e){return(e%ae+ae)%ae}function ds(e,t,n,i){const r=it(e),s=it(t),o=it(n),l=it(s-r),a=it(o-r),c=it(r-s),u=it(r-o);return r===s||r===o||i&&s===o||l>a&&c<u}function Re(e,t,n){return Math.max(t,Math.min(n,e))}function Y2(e){return Re(e,-32768,32767)}function Kt(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Td(e,t,n){n=n||(o=>e[o]<t);let i=e.length-1,r=0,s;for(;i-r>1;)s=r+i>>1,n(s)?r=s:i=s;return{lo:r,hi:i}}const Xt=(e,t,n,i)=>Td(e,n,i?r=>{const s=e[r][t];return s<n||s===n&&e[r+1][t]===n}:r=>e[r][t]<n),K2=(e,t,n)=>Td(e,n,i=>e[i][t]>=n);function X2(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}const Q0=["push","pop","shift","splice","unshift"];function Q2(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Q0.forEach(n=>{const i="_onData"+Od(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=r.apply(this,s);return e._chartjs.listeners.forEach(l=>{typeof l[i]=="function"&&l[i](...s)}),o}})})}function Th(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(Q0.forEach(s=>{delete e[s]}),delete e._chartjs)}function G0(e){const t=new Set;let n,i;for(n=0,i=e.length;n<i;++n)t.add(e[n]);return t.size===i?e:Array.from(t)}const q0=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function J0(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,q0.call(window,()=>{i=!1,e.apply(t,n)}))}}function G2(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const Ld=e=>e==="start"?"left":e==="end"?"right":"center",Ie=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,q2=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Z0(e,t,n){const i=t.length;let r=0,s=i;if(e._sorted){const{iScale:o,_parsed:l}=e,a=o.axis,{min:c,max:u,minDefined:d,maxDefined:f}=o.getUserBounds();d&&(r=Re(Math.min(Xt(l,o.axis,c).lo,n?i:Xt(t,a,o.getPixelForValue(c)).lo),0,i-1)),f?s=Re(Math.max(Xt(l,o.axis,u,!0).hi+1,n?0:Xt(t,a,o.getPixelForValue(u),!0).hi+1),r,i)-r:s=i-r}return{start:r,count:s}}function ey(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),s}const eo=e=>e===0||e===1,Lh=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ae/n)),Nh=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ae/n)+1,Br={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*me)+1,easeOutSine:e=>Math.sin(e*me),easeInOutSine:e=>-.5*(Math.cos(ue*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=>eo(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=>eo(e)?e:Lh(e,.075,.3),easeOutElastic:e=>eo(e)?e:Nh(e,.075,.3),easeInOutElastic(e){return eo(e)?e:e<.5?.5*Lh(e*2,.1125,.45):.5+.5*Nh(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-Br.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?Br.easeInBounce(e*2)*.5:Br.easeOutBounce(e*2-1)*.5+.5};function ty(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Dh(e){return ty(e)?e:new cs(e)}function Ba(e){return ty(e)?e:new cs(e).saturate(.5).darken(.1).hexString()}const J2=["x","y","borderWidth","radius","tension"],Z2=["color","borderColor","backgroundColor"];function eS(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Z2},numbers:{type:"number",properties:J2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function tS(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ah=new Map;function nS(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Ah.get(n);return i||(i=new Intl.NumberFormat(e,t),Ah.set(n,i)),i}function Os(e,t,n){return nS(t,n).format(e)}const ny={values(e){return oe(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let r,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),s=iS(e,n)}const o=yn(Math.abs(s)),l=Math.max(Math.min(-1*Math.floor(o),20),0),a={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(a,this.options.ticks.format),Os(e,i,a)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(yn(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?ny.numeric.call(this,e,t,n):""}};function iS(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 Xl={formatters:ny};function rS(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Xl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const di=Object.create(null),ru=Object.create(null);function jr(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;i<r;++i){const s=n[i];e=e[s]||(e[s]=Object.create(null))}return e}function ja(e,t,n){return typeof t=="string"?us(jr(e,t),n):us(jr(e,""),t)}class sS{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.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=(i,r)=>Ba(r.backgroundColor),this.hoverBorderColor=(i,r)=>Ba(r.borderColor),this.hoverColor=(i,r)=>Ba(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 4,401 bytes, line 82
82,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return ja(this,t,n)}get(t){return jr(this,t)}describe(t,n){return ja(ru,t,n)}override(t,n){return ja(di,t,n)}route(t,n,i,r){const s=jr(this,t),o=jr(this,i),l="_"+n;Object.defineProperties(s,{[l]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const a=this[l],c=o[r];return U(a)?Object.assign({},c,a):B(a,c)},set(a){this[l]=a}}})}apply(t){t.forEach(n=>n(this))}}var xe=new sS({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[eS,tS,rS]);function oS(e){return!e||Q(e.size)||Q(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function gl(e,t,n,i,r){let s=t[r];return s||(s=t[r]=e.measureText(r).width,n.push(r)),s>i&&(i=s),i}function lS(e,t,n,i){i=i||{};let r=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},s=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const l=n.length;let a,c,u,d,f;for(a=0;a<l;a++)if(d=n[a],d!=null&&oe(d)!==!0)o=gl(e,r,s,o,d);else if(oe(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!oe(f)&&(o=gl(e,r,s,o,f));e.restore();const h=s.length/2;if(h>n.length){for(a=0;a<h;a++)delete r[s[a]];s.splice(0,h)}return o}function Un(e,t,n){const i=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function Fh(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function su(e,t,n,i){iy(e,t,n,i,null)}function iy(e,t,n,i,r){let s,o,l,a,c,u,d,f;const h=t.pointStyle,p=t.rotation,y=t.radius;let v=(p||0)*H2;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),h){default:r?e.ellipse(n,i,r/2,y,0,0,ae):e.arc(n,i,y,0,ae),e.closePath();break;case"triangle":u=r?r/2:y,e.moveTo(n+Math.sin(v)*u,i-Math.cos(v)*y),v+=Mh,e.lineTo(n+Math.sin(v)*u,i-Math.cos(v)*y),v+=Mh,e.lineTo(n+Math.sin(v)*u,i-Math.cos(v)*y),e.closePath();break;case"rectRounded":c=y*.516,a=y-c,o=Math.cos(v+Vn)*a,d=Math.cos(v+Vn)*(r?r/2-c:a),l=Math.sin(v+Vn)*a,f=Math.sin(v+Vn)*(r?r/2-c:a),e.arc(n-d,i-l,c,v-ue,v-me),e.arc(n+f,i-o,c,v-me,v),e.arc(n+d,i+l,c,v,v+me),e.arc(n-f,i+o,c,v+me,v+ue),e.closePath();break;case"rect":if(!p){a=Math.SQRT1_2*y,u=r?r/2:a,e.rect(n-u,i-a,2*u,2*a);break}v+=Vn;case"rectRot":d=Math.cos(v)*(r?r/2:y),o=Math.cos(v)*y,l=Math.sin(v)*y,f=Math.sin(v)*(r?r/2:y),e.moveTo(n-d,i-l),e.lineTo(n+f,i-o),e.lineTo(n+d,i+l),e.lineTo(n-f,i+o),e.closePath();break;case"crossRot":v+=Vn;case"cross":d=Math.cos(v)*(r?r/2:y),o=Math.cos(v)*y,l=Math.sin(v)*y,f=Math.sin(v)*(r?r/2:y),e.moveTo(n-d,i-l),e.lineTo(n+d,i+l),e.moveTo(n+f,i-o),e.lineTo(n-f,i+o);break;case"star":d=Math.cos(v)*(r?r/2:y),o=Math.cos(v)*y,l=Math.sin(v)*y,f=Math.sin(v)*(r?r/2:y),e.moveTo(n-d,i-l),e.lineTo(n+d,i+l),e.moveTo(n+f,i-o),e.lineTo(n-f,i+o),v+=Vn,d=Math.cos(v)*(r?r/2:y),o=Math.cos(v)*y,l=Math.sin(v)*y,f=Math.sin(v)*(r?r/2:y),e.moveTo(n-d,i-l),e.lineTo(n+d,i+l),e.moveTo(n+f,i-o),e.lineTo(n-f,i+o);break;case"line":o=r?r/2:Math.cos(v)*y,l=Math.sin(v)*y,e.moveTo(n-o,i-l),e.lineTo(n+o,i+l);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(v)*(r?r/2:y),i+Math.sin(v)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function fs(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 Ql(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Gl(e){e.restore()}function aS(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const s=(t.x+n.x)/2;e.lineTo(s,t.y),e.lineTo(s,n.y)}else r==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function cS(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function fi(e,t,n,i,r,s={}){const o=oe(t)?t:[t],l=s.strokeWidth>0&&s.strokeColor!=="";let a,c;for(e.save(),e.font=r.string,uS(e,s),a=0;a<o.length;++a)c=o[a],s.backdrop&&fS(e,s.backdrop),l&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),Q(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(c,n,i,s.maxWidth)),e.fillText(c,n,i,s.maxWidth),dS(e,n,i,c,s),i+=r.lineHeight;
vendor: 19,749 bytes, lines 82-87
82e.restore()}function uS(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Q(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 dS(e,t,n,i,r){if(r.strikethrough||r.underline){const s=e.measureText(i),o=t-s.actualBoundingBoxLeft,l=t+s.actualBoundingBoxRight,a=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=r.strikethrough?(a+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(o,u),e.lineTo(l,u),e.stroke()}}function fS(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function hs(e,t){const{x:n,y:i,w:r,h:s,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,-me,ue,!0),e.lineTo(n,i+s-o.bottomLeft),e.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,ue,me,!0),e.lineTo(n+r-o.bottomRight,i+s),e.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,me,0,!0),e.lineTo(n+r,i+o.topRight),e.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-me,!0),e.lineTo(n+o.topLeft,i)}const hS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pS=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function gS(e,t){const n=(""+e).match(hS);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const mS=e=>+e||0;function Nd(e,t){const n={},i=U(t),r=i?Object.keys(t):t,s=U(e)?i?o=>B(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of r)n[o]=mS(s(o));return n}function ry(e){return Nd(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ri(e){return Nd(e,["topLeft","topRight","bottomLeft","bottomRight"])}function He(e){const t=ry(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ke(e,t){e=e||{},t=t||xe.font;let n=B(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=B(e.style,t.style);i&&!(""+i).match(pS)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:B(e.family,t.family),lineHeight:gS(B(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:B(e.weight,t.weight),string:""};return r.string=oS(r),r}function kr(e,t,n,i){let r=!0,s,o,l;for(s=0,o=e.length;s<o;++s)if(l=e[s],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),r=!1),n!==void 0&&oe(l)&&(l=l[n%l.length],r=!1),l!==void 0))return i&&!r&&(i.cacheable=!1),l}function yS(e,t,n){const{min:i,max:r}=e,s=U0(t,(r-i)/2),o=(l,a)=>n&&l===0?0:l+a;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function $n(e,t){return Object.assign(Object.create(e),t)}function Dd(e,t=[""],n=e,i,r=()=>e[0]){vt(i)||(i=ay("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:i,_getTarget:r,override:o=>Dd([o,...e],t,n,i)};return new Proxy(s,{deleteProperty(o,l){return delete o[l],delete o._keys,delete e[0][l],!0},get(o,l){return oy(o,l,()=>ES(l,t,e,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,l){return Ih(o).includes(l)},ownKeys(o){return Ih(o)},set(o,l,a){const c=o._storage||(o._storage=r());return o[l]=c[l]=a,delete o._keys,!0}})}function qi(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:sy(e,i),setContext:s=>qi(e,s,n,i),override:s=>qi(e.override(s),t,n,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,l){return oy(s,o,()=>xS(s,o,l))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,l){return e[o]=l,delete s[o],!0}})}function sy(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:Fn(n)?n:()=>n,isIndexable:Fn(i)?i:()=>i}}const vS=(e,t)=>e?e+Od(t):t,Ad=(e,t)=>U(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function oy(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function xS(e,t,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=e;let l=i[t];return Fn(l)&&o.isScriptable(t)&&(l=_S(t,l,e,n)),oe(l)&&l.length&&(l=wS(t,l,e,o.isIndexable)),Ad(t,l)&&(l=qi(l,r,s&&s[t],o)),l}function _S(e,t,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(s,o||i),l.delete(e),Ad(e,t)&&(t=Fd(r._scopes,r,e,t)),t}function wS(e,t,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:l}=n;if(vt(s.index)&&i(e))t=t[s.index%t.length];else if(U(t[0])){const a=t,c=r._scopes.filter(u=>u!==a);t=[];for(const u of a){const d=Fd(c,r,e,u);t.push(qi(d,s,o&&o[e],l))}}return t}function ly(e,t,n){return Fn(e)?e(t,n):e}const bS=(e,t)=>e===!0?t:typeof e=="string"?An(t,e):void 0;function SS(e,t,n,i,r){for(const s of t){const o=bS(n,s);if(o){e.add(o);const l=ly(o._fallback,n,r);if(vt(l)&&l!==n&&l!==i)return l}else if(o===!1&&vt(i)&&n!==i)return null}return!1}function Fd(e,t,n,i){const r=t._rootScopes,s=ly(t._fallback,n,i),o=[...e,...r],l=new Set;l.add(i);let a=zh(l,o,n,s||n,i);return a===null||vt(s)&&s!==n&&(a=zh(l,o,s,a,i),a===null)?!1:Dd(Array.from(l),[""],r,s,()=>kS(t,n,i))}function zh(e,t,n,i,r){for(;n;)n=SS(e,t,n,i,r);return n}function kS(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];return oe(r)&&U(n)?n:r||{}}function ES(e,t,n,i){let r;for(const s of t)if(r=ay(vS(s,e),n),vt(r))return Ad(e,r)?Fd(n,i,e,r):r}function ay(e,t){for(const n of t){if(!n)continue;const i=n[e];if(vt(i))return i}}function Ih(e){let t=e._keys;return t||(t=e._keys=CS(e._scopes)),t}function CS(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function cy(e,t,n,i){const{iScale:r}=e,{key:s="r"}=this._parsing,o=new Array(i);let l,a,c,u;for(l=0,a=i;l<a;++l)c=l+n,u=t[c],o[l]={r:r.parse(An(u,s),c)};return o}const PS=Number.EPSILON||1e-14,Ji=(e,t)=>t<e.length&&!e[t].skip&&e[t],uy=e=>e==="x"?"y":"x";function MS(e,t,n,i){const r=e.skip?t:e,s=t,o=n.skip?t:n,l=iu(s,r),a=iu(o,s);let c=l/(l+a),u=a/(l+a);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,f=i*u;return{previous:{x:s.x-d*(o.x-r.x),y:s.y-d*(o.y-r.y)},next:{x:s.x+f*(o.x-r.x),y:s.y+f*(o.y-r.y)}}}function OS(e,t,n){const i=e.length;let r,s,o,l,a,c=Ji(e,0);for(let u=0;u<i-1;++u)if(a=c,c=Ji(e,u+1),!(!a||!c)){if(Ir(t[u],0,PS)){n[u]=n[u+1]=0;continue}r=n[u]/t[u],s=n[u+1]/t[u],l=Math.pow(r,2)+Math.pow(s,2),!(l<=9)&&(o=3/Math.sqrt(l),n[u]=r*o*t[u],n[u+1]=s*o*t[u])}}function RS(e,t,n="x"){const i=uy(n),r=e.length;let s,o,l,a=Ji(e,0);for(let c=0;c<r;++c){if(o=l,l=a,a=Ji(e,c+1),!l)continue;const u=l[n],d=l[i];o&&(s=(u-o[n])/3,l[`cp1${n}`]=u-s,l[`cp1${i}`]=d-s*t[c]),a&&(s=(a[n]-u)/3,l[`cp2${n}`]=u+s,l[`cp2${i}`]=d+s*t[c])}}function TS(e,t="x"){const n=uy(t),i=e.length,r=Array(i).fill(0),s=Array(i);let o,l,a,c=Ji(e,0);for(o=0;o<i;++o)if(l=a,a=c,c=Ji(e,o+1),!!a){if(c){const u=c[t]-a[t];r[o]=u!==0?(c[n]-a[n])/u:0}s[o]=l?c?zt(r[o-1])!==zt(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}OS(e,r,s),RS(e,s,t)}function to(e,t,n){return Math.max(Math.min(e,n),t)}function LS(e,t){let n,i,r,s,o,l=fs(e[0],t);for(n=0,i=e.length;n<i;++n)o=s,s=l,l=n<i-1&&fs(e[n+1],t),s&&(r=e[n],o&&(r.cp1x=to(r.cp1x,t.left,t.right),r.cp1y=to(r.cp1y,t.top,t.bottom)),l&&(r.cp2x=to(r.cp2x,t.left,t.right),r.cp2y=to(r.cp2y,t.top,t.bottom)))}function NS(e,t,n,i,r){let s,o,l,a;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")TS(e,r);else{let c=i?e[e.length-1]:e[0];for(s=0,o=e.length;s<o;++s)l=e[s],a=MS(c,l,e[Math.min(s+1,o-(i?0:1))%o],t.tension),l.cp1x=a.previous.x,l.cp1y=a.previous.y,l.cp2x=a.next.x,l.cp2y=a.next.y,c=l}t.capBezierPoints&&LS(e,n)}function dy(){return typeof window<"u"&&typeof document<"u"}function zd(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ml(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const ql=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function DS(e,t){return ql(e).getPropertyValue(t)}const AS=["top","right","bottom","left"];function si(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=AS[r];i[s]=parseFloat(e[t+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const FS=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function zS(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:s}=i;let o=!1,l,a;if(FS(r,s,e.target))l=r,a=s;else{const c=t.getBoundingClientRect();l=i.clientX-c.left,a=i.clientY-c.top,o=!0}return{x:l,y:a,box:o}}function Gn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=ql(n),s=r.boxSizing==="border-box",o=si(r,"padding"),l=si(r,"border","width"),{x:a,y:c,box:u}=zS(e,n),d=o.left+(u&&l.left),f=o.top+(u&&l.top);let{width:h,height:p}=t;return s&&(h-=o.width+l.width,p-=o.height+l.height),{x:Math.round((a-d)/h*n.width/i),y:Math.round((c-f)/p*n.height/i)}}function IS(e,t,n){let i,r;if(t===void 0||n===void 0){const s=zd(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),l=ql(s),a=si(l,"border","width"),c=si(l,"padding");t=o.width-c.width-a.width,n=o.height-c.height-a.height,i=ml(l.maxWidth,s,"clientWidth"),r=ml(l.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:i||pl,maxHeight:r||pl}}const no=e=>Math.round(e*10)/10;function BS(e,t,n,i){const r=ql(e),s=si(r,"margin"),o=ml(r.maxWidth,e,"clientWidth")||pl,l=ml(r.maxHeight,e,"clientHeight")||pl,a=IS(e,t,n);let{width:c,height:u}=a;if(r.boxSizing==="content-box"){const f=si(r,"border","width"),h=si(r,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=no(Math.min(c,o,a.maxWidth)),u=no(Math.min(u,l,a.maxHeight)),c&&!u&&(u=no(c/2)),(t!==void 0||n!==void 0)&&i&&a.height&&u>a.height&&(u=a.height,c=no(Math.floor(u*i))),{width:c,height:u}}function Bh(e,t,n){const i=t||1,r=Math.floor(e.height*i),s=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const 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!==i||o.height!==r||o.width!==s?(e.currentDevicePixelRatio=i,o.height=r,o.width=s,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const jS=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function jh(e,t){const n=DS(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function qn(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function $S(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function HS(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=qn(e,r,n),l=qn(r,s,n),a=qn(s,t,n),c=qn(o,l,n),u=qn(l,a,n);return qn(c,u,n)}const WS=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,i){return n-i},leftForLtr(n,i){return n-i}}},VS=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ji(e,t,n){return e?WS(t,n):VS()}function fy(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function hy(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function py(e){return e==="angle"?{between:ds,compare:U2,normalize:it}:{between:Kt,compare:(t,n)=>t-n,normalize:t=>t}}function $h({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:r}}function US(e,t,n){const{property:i,start:r,end:s}=n,{between:o,normalize:l}=py(i),a=t.length;let{start:c,end:u,loop:d}=e,f,h;if(d){for(c+=a,u+=a,f=0,h=a;f<h&&o(l(t[c%a][i]),r,s);++f)c--,u--;c%=a,u%=a}return u<c&&(u+=a),{start:c,end:u,loop:d,style:e.style}}function gy(e,t,n){if(!n)return[e];const{property:i,start:r,end:s}=n,o=t.length,{compare:l,between:a,normalize:c}=py(i),{start:u,end:d,loop:f,style:h}=US(e,t,n),p=[];let y=!1,v=null,g,m,x;const _=()=>a(r,x,g)&&l(r,x)!==0,w=()=>l(s,g)===0||a(s,x,g),E=()=>y||_(),k=()=>!y||w();for(let C=u,L=u;C<=d;++C)m=t[C%o],!m.skip&&(g=c(m[i]),g!==x&&(y=a(g,r,s),v===null&&E()&&(v=l(g,r)===0?C:L),v!==null&&k()&&(p.push($h({start:v,end:C,loop:f,count:o,style:h})),v=null),L=C,x=g));return v!==null&&p.push($h({start:v,end:d,loop:f,count:o,style:h})),p}function my(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const s=gy(i[r],e.points,t);s.length&&n.push(...s)}return n}function YS(e,t,n,i){let r=0,s=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(s+=r);s>r&&e[s%t].skip;)s--;return s%=t,{start:r,end:s}}function KS(e,t,n,i){const r=e.length,s=[];let o=t,l=e[t],a;for(a=t+1;a<=n;++a){const c=e[a%r];c.skip||c.stop?l.skip||(i=!1,s.push({start:t%r,end:(a-1)%r,loop:i}),t=o=c.stop?a:null):(o=a,l.skip&&(t=a)),l=c}return o!==null&&s.push({start:t%r,end:o%r,loop:i}),s}function XS(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const s=!!e._loop,{start:o,end:l}=YS(n,r,s,i);if(i===!0)return Hh(e,[{start:o,end:l,loop:s}],n,t);const a=l<o?l+r:l,c=!!e._fullLoop&&o===0&&l===r-1;return Hh(e,KS(n,o,a,c),n,t)}function Hh(e,t,n,i){return!i||!i.setContext||!n?t:QS(e,t,n,i)}function QS(e,t,n,i){const r=e._chart.getContext(),s=Wh(e.options),{_datasetIndex:o,options:{spanGaps:l}}=e,a=n.length,c=[];let u=s,d=t[0].start,f=d;function h(p,y,v,g){const m=l?-1:1;if(p!==y){for(p+=a;n[p%a].skip;)p-=m;for(;n[y%a].skip;)y+=m;p%a!==y%a&&(c.push({start:p%a,end:y%a,loop:v,style:g}),u=g,d=y%a)}}for(const p of t){d=l?d:p.start;let y=n[d%a],v;for(f=d+1;f<=p.end;f++){const g=n[f%a];v=Wh(i.setContext($n(r,{type:"segment",p0:y,p1:g,p0DataIndex:(f-1)%a,p1DataIndex:f%a,datasetIndex:o}))),GS(v,u)&&h(d,f-1,p.loop,u),y=g,u=v}d<f-1&&h(d,f-1,p.loop,u)}return c}function Wh(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function GS(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*! 83 * Chart.js v4.2.1 84 * https://www.chartjs.org 85 * (c) 2023 Chart.js Contributors 86 * Released under the MIT License 87 */class qS{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,r){const s=n.listeners[r],o=n.duration;s.forEach(l=>l({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=q0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const s=i.items;let o=s.length-1,l=!1,a;for(;o>=0;--o)a=s[o],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(t),l=!0):(s[o]=s[s.length-1],s.pop());l&&(r.draw(),this._notify(r,i,t,"progress")),s.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Bt=new qS;const Vh="transparent",JS={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Dh(e||Vh),r=i.valid&&Dh(t||Vh);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class ZS{constructor(t,n,i,r){const s=n[i];r=kr([t.to,r,s,t.from]);const o=kr([t.from,s,r]);this._active=!0,this._fn=t.fn||JS[t.type||typeof o],this._easing=Br[t.easing]||Br.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=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=kr([t.to,n,r,t.from]),this._from=kr([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,l=this._to;let a;if(this._active=s!==l&&(o||n<i),!this._active){this._target[r]=l,this._notify(!0);return}if(n<0){this._target[r]=s;return}a=n/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[r]=this._fn(s,l,a)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}class yy{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!U(t))return;const n=Object.keys(xe.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const s=t[r];if(!U(s))return;const o={};for(const l of n)o[l]=s[l];(oe(s.properties)&&s.properties||[r]).forEach(l=>{(l===r||!i.has(l))&&i.set(l,o)})})}_animateOptions(t,n){const i=n.options,r=tk(t,i);if(!r)return[];const s=this._createAnimations(r,i);return i.$shared&&ek(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,n){const i=this._properties,r=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),l=Date.now();let a;for(a=o.length-1;a>=0;--a){const c=o[a];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(t,n));continue}const u=n[c];let d=s[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,u,l);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}s[c]=d=new ZS(f,t,c,u),r.push(d)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Bt.add(this._chart,i),!0}}function ek(e,t){const n=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const s=e[i[r]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function tk(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 Uh(e,t){const n=e&&e.options||{},i=n.reverse,r=n.min===void 0?t:0,s=n.max===void 0?t:0;return{start:i?s:r,end:i?r:s}}function nk(e,t,n){if(n===!1)return!1;const i=Uh(e,n),r=Uh(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function ik(e){let t,n,i,r;return U(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:e===!1}}function vy(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function Yh(e,t,n,i={}){const r=e.keys,s=i.mode==="single";let o,l,a,c;if(t!==null){for(o=0,l=r.length;o<l;
vendor: 4,783 bytes, line 87
87++o){if(a=+r[o],a===n){if(i.all)continue;break}c=e.values[a],ge(c)&&(s||t===0||zt(t)===zt(c))&&(t+=c)}return t}}function rk(e){const t=Object.keys(e),n=new Array(t.length);let i,r,s;for(i=0,r=t.length;i<r;++i)s=t[i],n[i]={x:s,y:e[s]};return n}function Kh(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function sk(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function ok(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function lk(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function Xh(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const s=e[r.index];if(n&&s>0||!n&&s<0)return r.index}return null}function Qh(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:l}=i,a=s.axis,c=o.axis,u=sk(s,o,i),d=t.length;let f;for(let h=0;h<d;++h){const p=t[h],{[a]:y,[c]:v}=p,g=p._stacks||(p._stacks={});f=g[c]=lk(r,u,y),f[l]=v,f._top=Xh(f,o,!0,i.type),f._bottom=Xh(f,o,!1,i.type);const m=f._visualValues||(f._visualValues={});m[l]=v}}function $a(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function ak(e,t){return $n(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function ck(e,t,n){return $n(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function pr(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const r of t){const s=r._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const Ha=e=>e==="reset"||e==="none",Gh=(e,t)=>t?e:Object.assign({},e),uk=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:vy(n,!0),values:null};class Ct{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Kh(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&pr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,s=n.xAxisID=B(i.xAxisID,$a(t,"x")),o=n.yAxisID=B(i.yAxisID,$a(t,"y")),l=n.rAxisID=B(i.rAxisID,$a(t,"r")),a=n.indexAxis,c=n.iAxisID=r(a,s,o,l),u=n.vAxisID=r(a,o,s,l);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Th(this._data,this),t._stacked&&pr(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(U(n))this._data=rk(n);else if(i!==n){if(i){Th(i,this);const r=this._cachedMeta;pr(r),r._parsed=[]}n&&Object.isExtensible(n)&&Q2(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const s=n._stacked;n._stacked=Kh(n.vScale,n),n.stack!==i.stack&&(r=!0,pr(n),n.stack=i.stack),this._resyncElements(t),(r||s!==n._stacked)&&Qh(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,l=s.axis;let a=t===0&&n===r.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,d,f;if(this._parsing===!1)i._parsed=r,i._sorted=!0,f=r;else{oe(r[t])?f=this.parseArrayData(i,r,t,n):U(r[t])?f=this.parseObjectData(i,r,t,n):f=this.parsePrimitiveData(i,r,t,n);const h=()=>d[l]===null||c&&d[l]<c[l];for(u=0;
vendor: 24,647 bytes, line 87
87u<n;++u)i._parsed[u+t]=d=f[u],a&&(h()&&(a=!1),c=d);i._sorted=a}o&&Qh(this,f)}parsePrimitiveData(t,n,i,r){const{iScale:s,vScale:o}=t,l=s.axis,a=o.axis,c=s.getLabels(),u=s===o,d=new Array(r);let f,h,p;for(f=0,h=r;f<h;++f)p=f+i,d[f]={[l]:u||s.parse(c[p],p),[a]:o.parse(n[p],p)};return d}parseArrayData(t,n,i,r){const{xScale:s,yScale:o}=t,l=new Array(r);let a,c,u,d;for(a=0,c=r;a<c;++a)u=a+i,d=n[u],l[a]={x:s.parse(d[0],u),y:o.parse(d[1],u)};return l}parseObjectData(t,n,i,r){const{xScale:s,yScale:o}=t,{xAxisKey:l="x",yAxisKey:a="y"}=this._parsing,c=new Array(r);let u,d,f,h;for(u=0,d=r;u<d;++u)f=u+i,h=n[f],c[u]={x:s.parse(An(h,l),f),y:o.parse(An(h,a),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const r=this.chart,s=this._cachedMeta,o=n[t.axis],l={keys:vy(r,!0),values:n._stacks[t.axis]._visualValues};return Yh(l,o,s.index,{mode:i})}updateRangeFromParsed(t,n,i,r){const s=i[n.axis];let o=s===null?NaN:s;const l=r&&i._stacks[n.axis];r&&l&&(r.values=l,o=Yh(r,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const i=this._cachedMeta,r=i._parsed,s=i._sorted&&t===i.iScale,o=r.length,l=this._getOtherScale(t),a=uk(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=ok(l);let f,h;function p(){h=r[f];const y=h[l.axis];return!ge(h[t.axis])||u>y||d<y}for(f=0;f<o&&!(!p()&&(this.updateRangeFromParsed(c,t,h,a),s));++f);if(s){for(f=o-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,t,h,a);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let r,s,o;for(r=0,s=n.length;r<s;++r)o=n[r][t.axis],ge(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,r=n.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:r?""+r.getLabelForValue(s[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=ik(B(this.options.clip,nk(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],s=n.chartArea,o=[],l=this._drawStart||0,a=this._drawCount||r.length-l,c=this.options.drawActiveElementsOnTop;let u;for(i.dataset&&i.dataset.draw(t,s,l,a),u=l;u<l+a;++u){const d=r[u];d.hidden||(d.active&&c?o.push(d):d.draw(t,s))}for(u=0;u<o.length;++u)o[u].draw(t,s)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const r=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];s=o.$context||(o.$context=ck(this.getContext(),t,o)),s.parsed=this.getParsed(t),s.raw=r.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=ak(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const r=n==="active",s=this._cachedDataOpts,o=t+"-"+n,l=s[o],a=this.enableOptionSharing&&vt(i);if(l)return Gh(l,a);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=r?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),h=Object.keys(xe.elements[t]),p=()=>this.getContext(i,r,n),y=c.resolveNamedOptions(f,h,p,d);return y.$shared&&(y.$shared=a,s[o]=Object.freeze(Gh(y,a))),y}_resolveAnimations(t,n,i){const r=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,l=s[o];if(l)return l;let a;if(r.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);a=u.createResolver(f,this.getContext(t,i,n))}const c=new yy(r,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ha(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(n,s)||s!==r;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:o}}updateElement(t,n,i,r){Ha(r)?Object.assign(t,i):this._resolveAnimations(n,r).update(t,i)}updateSharedOptions(t,n,i){t&&!Ha(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,r){t.active=r;const s=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(t,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[l,a,c]of this._syncList)this[l](a,c);this._syncList=[];const r=i.length,s=n.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,t):s<r&&this._removeElements(s,r-s)}_insertElements(t,n,i=!0){const r=this._cachedMeta,s=r.data,o=t+n;let l;const a=c=>{for(c.length+=n,l=c.length-1;l>=o;l--)c[l]=c[l-n]};for(a(s),l=t;l<o;++l)s[l]=new this.dataElementType;this._parsing&&a(r._parsed),this.parse(t,n),i&&this.updateElements(s,t,n,"reset")}updateElements(t,n,i,r){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,n);i._stacked&&pr(i,r)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,r]=t;this[n](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}D(Ct,"defaults",{}),D(Ct,"datasetElementType",null),D(Ct,"dataElementType",null);function dk(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let r=0,s=n.length;r<s;r++)i=i.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=G0(i.sort((r,s)=>r-s))}return e._cache.$bar}function fk(e){const t=e.iScale,n=dk(t,e.type);let i=t._length,r,s,o,l;const a=()=>{o===32767||o===-32768||(vt(l)&&(i=Math.min(i,Math.abs(o-l)||i)),l=o)};for(r=0,s=n.length;r<s;++r)o=t.getPixelForValue(n[r]),a();for(l=void 0,r=0,s=t.ticks.length;r<s;++r)o=t.getPixelForTick(r),a();return i}function hk(e,t,n,i){const r=n.barThickness;let s,o;return Q(r)?(s=t.min*n.categoryPercentage,o=n.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:t.pixels[e]-s/2}}function pk(e,t,n,i){const r=t.pixels,s=r[e];let o=e>0?r[e-1]:null,l=e<r.length-1?r[e+1]:null;const a=n.categoryPercentage;o===null&&(o=s-(l===null?t.end-t.start:l-s)),l===null&&(l=s+s-o);const c=s-(s-Math.min(o,l))/2*a;return{chunk:Math.abs(l-o)/2*a/i,ratio:n.barPercentage,start:c}}function gk(e,t,n,i){const r=n.parse(e[0],i),s=n.parse(e[1],i),o=Math.min(r,s),l=Math.max(r,s);let a=o,c=l;Math.abs(o)>Math.abs(l)&&(a=l,c=o),t[n.axis]=c,t._custom={barStart:a,barEnd:c,start:r,end:s,min:o,max:l}}function xy(e,t,n,i){return oe(e)?gk(e,t,n,i):t[n.axis]=n.parse(e,i),t}function qh(e,t,n,i){const r=e.iScale,s=e.vScale,o=r.getLabels(),l=r===s,a=[];let c,u,d,f;for(c=n,u=n+i;c<u;++c)f=t[c],d={},d[r.axis]=l||r.parse(o[c],c),a.push(xy(f,d,s,c));return a}function Wa(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function mk(e,t,n){return e!==0?zt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function yk(e){let t,n,i,r,s;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:t,top:r,bottom:s}}function vk(e,t,n,i){let r=t.borderSkipped;const s={};if(!r){e.borderSkipped=s;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:l,reverse:a,top:c,bottom:u}=yk(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(s[Jh(u,o,l,a)]=!0,r=c)),s[Jh(r,o,l,a)]=!0,e.borderSkipped=s}function Jh(e,t,n,i){return i?(e=xk(e,t,n),e=Zh(e,n,t)):e=Zh(e,t,n),e}function xk(e,t,n){return e===t?n:e===n?t:e}function Zh(e,t,n){return e==="start"?t:e==="end"?n:e}function _k(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Oo extends Ct{parsePrimitiveData(t,n,i,r){return qh(t,n,i,r)}parseArrayData(t,n,i,r){return qh(t,n,i,r)}parseObjectData(t,n,i,r){const{iScale:s,vScale:o}=t,{xAxisKey:l="x",yAxisKey:a="y"}=this._parsing,c=s.axis==="x"?l:a,u=o.axis==="x"?l:a,d=[];let f,h,p,y;for(f=i,h=i+r;f<h;++f)y=n[f],p={},p[s.axis]=s.parse(An(y,c),f),d.push(xy(An(y,u),p,o,f));return d}updateRangeFromParsed(t,n,i,r){super.updateRangeFromParsed(t,n,i,r);const s=i._custom;s&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:r}=n,s=this.getParsed(t),o=s._custom,l=Wa(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(s[r.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,r){const s=r==="reset",{index:o,_cachedMeta:{vScale:l}}=this,a=l.getBasePixel(),c=l.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,r);for(let h=n;h<n+i;h++){const p=this.getParsed(h),y=s||Q(p[l.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),v=this._calculateBarIndexPixels(h,u),g=(p._stacks||{})[l.axis],m={horizontal:c,base:y.base,enableBorderRadius:!g||Wa(p._custom)||o===g._top||o===g._bottom,x:c?y.head:v.center,y:c?v.center:y.head,height:c?v.size:Math.abs(y.size),width:c?Math.abs(y.size):v.size};f&&(m.options=d||this.resolveDataElementOptions(h,t[h].active?"active":r));const x=m.options||t[h].options;vk(m,x,g,o),_k(m,x,u.ratio),this.updateElement(t[h],h,m,r)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(a=>a.controller.options.grouped),s=i.options.stacked,o=[],l=a=>{const c=a.controller.getParsed(n),u=c&&c[a.vScale.axis];if(Q(u)||isNaN(u))return!0};for(const a of r)if(!(n!==void 0&&l(a))&&((s===!1||o.indexOf(a.stack)===-1||s===void 0&&a.stack===void 0)&&o.push(a.stack),a.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const r=this._getStacks(t,i),s=n!==void 0?r.indexOf(n):-1;return s===-1?r.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,r=[];let s,o;for(s=0,o=n.data.length;s<o;++s)r.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const l=t.barThickness;return{min:l||fk(n),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:r},options:{base:s,minBarLength:o}}=this,l=s||0,a=this.getParsed(t),c=a._custom,u=Wa(c);let d=a[n.axis],f=0,h=i?this.applyStack(n,a,i):d,p,y;h!==d&&(f=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&zt(d)!==zt(c.barEnd)&&(f=0),f+=d);const v=!Q(s)&&!u?s:f;let g=n.getPixelForValue(v);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(f+h):p=g,y=p-g,Math.abs(y)<o){y=mk(y,n,l)*o,d===l&&(g-=y/2);const m=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),_=Math.min(m,x),w=Math.max(m,x);g=Math.max(Math.min(g,w),_),p=g+y,i&&!u&&(a._stacks[n.axis]._visualValues[r]=n.getValueForPixel(p)-n.getValueForPixel(g))}if(g===n.getPixelForValue(l)){const m=zt(y)*n.getLineWidthForValue(l)/2;g+=m,y-=m}return{size:y,base:g,head:p,center:p+y/2}}_calculateBarIndexPixels(t,n){const i=n.scale,r=this.options,s=r.skipNull,o=B(r.maxBarThickness,1/0);let l,a;if(n.grouped){const c=s?this._getStackCount(t):n.stackCount,u=r.barThickness==="flex"?pk(t,n,r,c):hk(t,n,r,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);l=u.start+u.chunk*d+u.chunk/2,a=Math.min(o,u.chunk*u.ratio)}else l=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(o,n.min*n.ratio);return{base:l-a/2,head:l+a/2,center:l,size:a}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,r=i.length;let s=0;for(;s<r;++s)this.getParsed(s)[n.axis]!==null&&i[s].draw(this._ctx)}}D(Oo,"id","bar"),D(Oo,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),D(Oo,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Ro extends Ct{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,i,r){const s=super.parsePrimitiveData(t,n,i,r);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(t,n,i,r){const s=super.parseArrayData(t,n,i,r);for(let o=0;o<s.length;o++){const l=n[i+o];s[o]._custom=B(l[2],this.resolveDataElementOptions(o+i).radius)}return s}parseObjectData(t,n,i,r){const s=super.parseObjectData(t,n,i,r);for(let o=0;o<s.length;o++){const l=n[i+o];s[o]._custom=B(l&&l.r&&+l.r,this.resolveDataElementOptions(o+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let i=t.length-1;i>=0;--i)n=Math.max(n,t[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=n,o=this.getParsed(t),l=r.getLabelForValue(o.x),a=s.getLabelForValue(o.y),c=o._custom;return{label:i[t]||"",value:"("+l+", "+a+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,r){const s=r==="reset",{iScale:o,vScale:l}=this._cachedMeta,{sharedOptions:a,includeOptions:c}=this._getSharedOptions(n,r),u=o.axis,d=l.axis;for(let f=n;f<n+i;f++){const h=t[f],p=!s&&this.getParsed(f),y={},v=y[u]=s?o.getPixelForDecimal(.5):o.getPixelForValue(p[u]),g=y[d]=s?l.getBasePixel():l.getPixelForValue(p[d]);y.skip=isNaN(v)||isNaN(g),c&&(y.options=a||this.resolveDataElementOptions(f,h.active?"active":r),s&&(y.options.radius=0)),this.updateElement(h,f,y,r)}}resolveDataElementOptions(t,n){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,n);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const s=r.radius;return n!=="active"&&(r.radius=0),r.radius+=B(i&&i._custom,s),r}}D(Ro,"id","bubble"),D(Ro,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),D(Ro,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function wk(e,t,n){let i=1,r=1,s=0,o=0;if(t<ae){const l=e,a=l+t,c=Math.cos(l),u=Math.sin(l),d=Math.cos(a),f=Math.sin(a),h=(x,_,w)=>ds(x,l,a,!0)?1:Math.max(_,_*n,w,w*n),p=(x,_,w)=>ds(x,l,a,!0)?-1:Math.min(_,_*n,w,w*n),y=h(0,c,d),v=h(me,u,f),g=p(ue,c,d),m=p(ue+me,u,f);i=(y-g)/2,r=(v-m)/2,s=-(y+g)/2,o=-(v+m)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}class ti extends Ct{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let s=a=>+i[a];if(U(i[t])){const{key:a="value"}=this._parsing;s=c=>+An(i[c],a)}let o,l;for(o=t,l=t+n;o<l;++o)r._parsed[o]=s(o)}}_getRotation(){return St(this.options.rotation-90)}_getCircumference(){return St(this.options.circumference)}_getRotationExtents(){let t=ae,n=-ae;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,s=r._getRotation(),o=r._getCircumference();t=Math.min(t,s),n=Math.max(n,s+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,s=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,l=Math.max((Math.min(i.width,i.height)-o)/2,0),a=Math.min(A2(this.options.cutout,l),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:y}=wk(d,u,a),v=(i.width-o)/f,g=(i.height-o)/h,m=Math.max(Math.min(v,g)/2,0),x=U0(this.options.radius,m),_=Math.max(x*a,0),w=(x-_)/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=y*x,r.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,n){const i=this.options,r=this._cachedMeta,s=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*s/ae)}updateElements(t,n,i,r){const s=r==="reset",o=this.chart,l=o.chartArea,c=o.options.animation,u=(l.left+l.right)/2,d=(l.top+l.bottom)/2,f=s&&c.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:y,includeOptions:v}=this._getSharedOptions(n,r);let g=this._getRotation(),m;for(m=0;m<n;++m)g+=this._circumference(m,s);for(m=n;m<n+i;++m){const x=this._circumference(m,s),_=t[m],w={x:u+this.offsetX,y:d+this.offsetY,startAngle:g,endAngle:g+x,circumference:x,outerRadius:p,innerRadius:h};v&&(w.options=y||this.resolveDataElementOptions(m,_.active?"active":r)),g+=x,this.updateElement(_,m,w,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,r;for(r=0;r<n.length;r++){const s=t._parsed[r];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?ae*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Os(n._parsed[t],i.options.locale);return{label:r[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const i=this.chart;let r,s,o,l,a;if(!t){for(r=0,s=i.data.datasets.length;r<s;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),t=o.data,l=o.controller;break}}if(!t)return 0;for(r=0,s=t.length;r<s;++r)a=l.resolveDataElementOptions(r),a.borderAlign!=="inner"&&(n=Math.max(n,a.borderWidth||0,a.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,r=t.length;i<r;++i){const s=this.resolveDataElementOptions(i);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(B(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}D(ti,"id","doughnut"),D(ti,"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"}),D(ti,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),D(ti,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((s,o)=>{const a=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class $r extends Ct{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:l,count:a}=Z0(n,r,o);this._drawStart=l,this._drawCount=a,ey(n)&&(l=0,a=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=r;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},t),this.updateElements(r,l,a,t)}updateElements(t,n,i,r){const s=r==="reset",{iScale:o,vScale:l,_stacked:a,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,r),f=o.axis,h=l.axis,{spanGaps:p,segment:y}=this.options,v=Gi(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||s||r==="none",m=n+i,x=t.length;let _=n>0&&this.getParsed(n-1);for(let w=0;w<x;++w){const E=t[w],k=g?E:{};if(w<n||w>=m){k.skip=!0;continue}const C=this.getParsed(w),L=Q(C[h]),T=k[f]=o.getPixelForValue(C[f],w),F=k[h]=s||L?l.getBasePixel():l.getPixelForValue(a?this.applyStack(l,C,a):C[h],w);k.skip=isNaN(T)||isNaN(F)||L,k.stop=w>0&&Math.abs(C[f]-_[f])>v,y&&(k.parsed=C,k.raw=c.data[w]),d&&(k.options=u||this.resolveDataElementOptions(w,E.active?"active":r)),g||this.updateElement(E,w,k,r),_=C}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const s=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}D($r,"id","line"),D($r,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),D($r,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Hr extends Ct{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Os(n._parsed[t].r,i.options.locale);return{label:r[t]||"",value:s}}parseObjectData(t,n,i,r){return cy.bind(this)(t,n,i,r)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{const s=this.getParsed(r).r;!isNaN(s)&&this.chart.getDataVisibility(r)&&(s<n.min&&(n.min=s),s>n.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(r/2,0),o=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),l=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,n,i,r){const s=r==="reset",o=this.chart,a=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*ue;let h=f,p;const y=360/this.countVisibleElements();for(p=0;p<n;++p)h+=this._computeAngle(p,r,y);for(p=n;p<n+i;p++){const v=t[p];let g=h,m=h+this._computeAngle(p,r,y),x=o.getDataVisibility(p)?c.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=m,s&&(a.animateScale&&(x=0),a.animateRotate&&(g=m=f));const _={x:u,y:d,innerRadius:0,outerRadius:x,startAngle:g,endAngle:m,options:this.resolveDataElementOptions(p,v.active?"active":r)};this.updateElement(v,p,_,r)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?St(this.resolveDataElementOptions(t,n).angle||i):0}}D(Hr,"id","polarArea"),D(Hr,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),D(Hr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((s,o)=>{const a=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update(
vendor: 6,148 bytes, line 87
87)}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ou extends ti{}D(ou,"id","pie"),D(ou,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class To extends Ct{getLabelAndValue(t){const n=this._cachedMeta.vScale,i=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(t,n,i,r){return cy.bind(this)(t,n,i,r)}update(t){const n=this._cachedMeta,i=n.dataset,r=n.data||[],s=n.iScale.getLabels();if(i.points=r,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const l={_loop:!0,_fullLoop:s.length===r.length,options:o};this.updateElement(i,void 0,l,t)}this.updateElements(r,0,r.length,t)}updateElements(t,n,i,r){const s=this._cachedMeta.rScale,o=r==="reset";for(let l=n;l<n+i;l++){const a=t[l],c=this.resolveDataElementOptions(l,a.active?"active":r),u=s.getPointPositionForValue(l,this.getParsed(l).r),d=o?s.xCenter:u.x,f=o?s.yCenter:u.y,h={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(a,l,h,r)}}}D(To,"id","radar"),D(To,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),D(To,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Lo extends Ct{getLabelAndValue(t){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=n,o=this.getParsed(t),l=r.getLabelForValue(o.x),a=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+l+", "+a+")"}}update(t){const n=this._cachedMeta,{data:i=[]}=n,r=this.chart._animationsDisabled;let{start:s,count:o}=Z0(n,i,r);if(this._drawStart=s,this._drawCount=o,ey(n)&&(s=0,o=i.length),this.options.showLine){const{dataset:l,_dataset:a}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!a._decimated,l.points=i;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(l,void 0,{animated:!r,options:c},t)}this.updateElements(i,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,i,r){const s=r==="reset",{iScale:o,vScale:l,_stacked:a,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,r),d=this.getSharedOptions(u),f=this.includeOptions(r,d),h=o.axis,p=l.axis,{spanGaps:y,segment:v}=this.options,g=Gi(y)?y:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||s||r==="none";let x=n>0&&this.getParsed(n-1);for(let _=n;_<n+i;++_){const w=t[_],E=this.getParsed(_),k=m?w:{},C=Q(E[p]),L=k[h]=o.getPixelForValue(E[h],_),T=k[p]=s||C?l.getBasePixel():l.getPixelForValue(a?this.applyStack(l,E,a):E[p],_);k.skip=isNaN(L)||isNaN(T)||C,k.stop=_>0&&Math.abs(E[h]-x[h])>g,v&&(k.parsed=E,k.raw=c.data[_]),f&&(k.options=d||this.resolveDataElementOptions(_,w.active?"active":r)),m||this.updateElement(w,_,k,r),x=E}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let l=0;for(let a=n.length-1;a>=0;--a)l=Math.max(l,n[a].size(this.resolveDataElementOptions(a))/2);return l>0&&l}const i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!n.length)return r;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,s,o)/2}}D(Lo,"id","scatter"),D(Lo,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),D(Lo,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var bk=Object.freeze({__proto__:null,BarController:Oo,BubbleController:Ro,DoughnutController:ti,LineController:$r,PolarAreaController:Hr,PieController:ou,RadarController:To,ScatterController:Lo});function Yn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Id{static override(t){Object.assign(Id.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return Yn()}parse(){return Yn()}format(){return Yn()}add(){return Yn()}diff(){return Yn()}startOf(){return Yn()}endOf(){return Yn()}}var Sk={_date:Id};function kk(e,t,n,i){const{controller:r,data:s,_sorted:o}=e,l=r._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&o&&s.length){const a=l._reversePixels?K2:Xt;if(i){if(r._sharedOptions){const c=s[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=a(s,t,n-u),f=a(s,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return a(s,t,n)}return{lo:0,hi:s.length-1}}function Rs(e,t,n,i,r){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let l=0,a=s.length;l<a;++l){const{index:c,data:u}=s[l],{lo:d,hi:f}=kk(s[l],t,o,r);for(let h=d;h<=f;++h){const p=u[h];p.skip||i(p,c,h)}}}function Ek(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,r){const s=t?Math.abs(i.x-r.x):0,o=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function Va(e,t,n,i,r){const s=[];return!r&&!e.isPointInArea(t)||Rs(e,n,t,function(l,a,c){!r&&!fs(l,e.chartArea,0)||l.inRange(t.x,t.y,i)&&s.push({element:l,datasetIndex:a,index:c})},!0),s}function Ck(e,t,n,i){let r=[];function s(o,l,a){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],i),{angle:d}=X0(o,{x:t.x,y:t.y});ds(d,c,u)&&r.push({element:o,datasetIndex:l,index:a})}return Rs(e,n,t,s),r}function Pk(e,t,n,i,r,s){let o=[];const l=Ek(n);let a=Number.POSITIVE_INFINITY;function c(u,d,f){const h=u.inRange(t.x,t.y,r);if(i&&!h)return;const p=u.getCenterPoint(r);if(!(!!s||e.isPointInArea(p))&&!h)return;const v=l(t,p);v<a?(o=[{element:u,datasetIndex:d,index:f}],a=v):v===a&&o.push({element:u,datasetIndex:d,index:f})}return Rs(e,n,t,c),o}function Ua(e,t,n,i,r,s){return!s&&!e.isPointInArea(t)?[]:n==="r"&&!i?Ck(e,t,n,r):Pk(e,t,n,i,r,s)}function ep(e,t,n,i,r){const s=[],o=n==="x"?"inXRange":"inYRange";let l=!1;return Rs(e,n,t,(a,c,u)=>{a[o](t[n],r)&&(s.push({element:a,datasetIndex:c,index:u}),l=l||a.inRange(t.x,t.y,r))}),i&&!l?[]:s}var Mk={evaluateInteractionItems:Rs,modes:{index(e,t,n,i){const r=Gn(t,e),s=n.axis||"x",o=n.includeInvisible||!1,l=n.intersect?Va(e,r,s,i,o):Ua(e,r,s,!1,i,o),a=[];
vendor: 91,168 bytes, lines 87-89
87return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=l[0].index,d=c.data[u];d&&!d.skip&&a.push({element:d,datasetIndex:c.index,index:u})}),a):[]},dataset(e,t,n,i){const r=Gn(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let l=n.intersect?Va(e,r,s,i,o):Ua(e,r,s,!1,i,o);if(l.length>0){const a=l[0].datasetIndex,c=e.getDatasetMeta(a).data;l=[];for(let u=0;u<c.length;++u)l.push({element:c[u],datasetIndex:a,index:u})}return l},point(e,t,n,i){const r=Gn(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;return Va(e,r,s,i,o)},nearest(e,t,n,i){const r=Gn(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;return Ua(e,r,s,n.intersect,i,o)},x(e,t,n,i){const r=Gn(t,e);return ep(e,r,"x",n.intersect,i)},y(e,t,n,i){const r=Gn(t,e);return ep(e,r,"y",n.intersect,i)}}};const _y=["left","top","right","bottom"];function gr(e,t){return e.filter(n=>n.pos===t)}function tp(e,t){return e.filter(n=>_y.indexOf(n.pos)===-1&&n.box.axis===t)}function mr(e,t){return e.sort((n,i)=>{const r=t?i:n,s=t?n:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function Ok(e){const t=[];let n,i,r,s,o,l;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],{position:s,options:{stack:o,stackWeight:l=1}}=r,t.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:l});return t}function Rk(e){const t={};for(const n of e){const{stack:i,pos:r,stackWeight:s}=n;if(!i||!_y.includes(r))continue;const o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return t}function Tk(e,t){const n=Rk(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let s,o,l;for(s=0,o=e.length;s<o;++s){l=e[s];const{fullSize:a}=l.box,c=n[l.stack],u=c&&l.stackWeight/c.weight;l.horizontal?(l.width=u?u*i:a&&t.availableWidth,l.height=r):(l.width=i,l.height=u?u*r:a&&t.availableHeight)}return n}function Lk(e){const t=Ok(e),n=mr(t.filter(c=>c.box.fullSize),!0),i=mr(gr(t,"left"),!0),r=mr(gr(t,"right")),s=mr(gr(t,"top"),!0),o=mr(gr(t,"bottom")),l=tp(t,"x"),a=tp(t,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(a).concat(o).concat(l),chartArea:gr(t,"chartArea"),vertical:i.concat(r).concat(a),horizontal:s.concat(o).concat(l)}}function np(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function wy(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 Nk(e,t,n,i){const{pos:r,box:s}=n,o=e.maxPadding;if(!U(r)){n.size&&(e[r]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,e[r]+=n.size}s.getPadding&&wy(o,s.getPadding());const l=Math.max(0,t.outerWidth-np(o,e,"left","right")),a=Math.max(0,t.outerHeight-np(o,e,"top","bottom")),c=l!==e.w,u=a!==e.h;return e.w=l,e.h=a,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Dk(e){const t=e.maxPadding;function n(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ak(e,t){const n=t.maxPadding;function i(r){const s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return i(e?["left","right"]:["top","bottom"])}function Er(e,t,n,i){const r=[];let s,o,l,a,c,u;for(s=0,o=e.length,c=0;s<o;++s){l=e[s],a=l.box,a.update(l.width||t.w,l.height||t.h,Ak(l.horizontal,t));const{same:d,other:f}=Nk(t,n,l,i);c|=d&&r.length,u=u||f,a.fullSize||r.push(l)}return c&&Er(r,t,n,i)||u}function io(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function ip(e,t,n,i){const r=n.padding;let{x:s,y:o}=t;for(const l of e){const a=l.box,c=i[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/c.weight||1;if(l.horizontal){const d=t.w*u,f=c.size||a.height;vt(c.start)&&(o=c.start),a.fullSize?io(a,r.left,o,n.outerWidth-r.right-r.left,f):io(a,t.left+c.placed,o,d,f),c.start=o,c.placed+=d,o=a.bottom}else{const d=t.h*u,f=c.size||a.width;vt(c.start)&&(s=c.start),a.fullSize?io(a,s,r.top,f,n.outerHeight-r.bottom-r.top):io(a,s,t.top+c.placed,f,d),c.start=s,c.placed+=d,s=a.right}}t.x=s,t.y=o}var je={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=He(e.options.layout.padding),s=Math.max(t-r.width,0),o=Math.max(n-r.height,0),l=Lk(e.boxes),a=l.vertical,c=l.horizontal;Z(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=a.reduce((y,v)=>v.box.options&&v.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},r);wy(f,He(i));const h=Object.assign({maxPadding:f,w:s,h:o,x:r.left,y:r.top},r),p=Tk(a.concat(c),d);Er(l.fullSize,h,d,p),Er(a,h,d,p),Er(c,h,d,p)&&Er(a,h,d,p),Dk(h),ip(l.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,ip(l.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Z(l.chartArea,y=>{const v=y.box;Object.assign(v,e.chartArea),v.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class by{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,r){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(t){return!0}updateConfig(t){}}class Fk extends by{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const No="$chartjs",zk={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},rp=e=>e===null||e==="";function Ik(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[No]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",rp(r)){const s=jh(e,"width");s!==void 0&&(e.width=s)}if(rp(i))if(e.style.height==="")e.height=e.width/(t||2);else{const s=jh(e,"height");s!==void 0&&(e.height=s)}return e}const Sy=jS?{passive:!0}:!1;function Bk(e,t,n){e.addEventListener(t,n,Sy)}function jk(e,t,n){e.canvas.removeEventListener(t,n,Sy)}function $k(e,t){const n=zk[e.type]||e.type,{x:i,y:r}=Gn(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:r!==void 0?r:null}}function yl(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Hk(e,t,n){const i=e.canvas,r=new MutationObserver(s=>{let o=!1;for(const l of s)o=o||yl(l.addedNodes,i),o=o&&!yl(l.removedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function Wk(e,t,n){const i=e.canvas,r=new MutationObserver(s=>{let o=!1;for(const l of s)o=o||yl(l.removedNodes,i),o=o&&!yl(l.addedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const ps=new Map;let sp=0;function ky(){const e=window.devicePixelRatio;e!==sp&&(sp=e,ps.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Vk(e,t){ps.size||window.addEventListener("resize",ky),ps.set(e,t)}function Uk(e){ps.delete(e),ps.size||window.removeEventListener("resize",ky)}function Yk(e,t,n){const i=e.canvas,r=i&&zd(i);if(!r)return;const s=J0((l,a)=>{const c=r.clientWidth;n(l,a),c<r.clientWidth&&n()},window),o=new ResizeObserver(l=>{const a=l[0],c=a.contentRect.width,u=a.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(r),Vk(e,s),o}function Ya(e,t,n){n&&n.disconnect(),t==="resize"&&Uk(e)}function Kk(e,t,n){const i=e.canvas,r=J0(s=>{e.ctx!==null&&n($k(s,e))},e);return Bk(i,t,r),r}class Xk extends by{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Ik(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[No])return!1;const i=n[No].initial;["height","width"].forEach(s=>{const o=i[s];Q(o)?n.removeAttribute(s):n.setAttribute(s,o)});const r=i.style||{};return Object.keys(r).forEach(s=>{n.style[s]=r[s]}),n.width=n.width,delete n[No],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),o={attach:Hk,detach:Wk,resize:Yk}[n]||Kk;r[n]=o(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),r=i[n];if(!r)return;({attach:Ya,detach:Ya,resize:Ya}[n]||jk)(t,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,r){return BS(t,n,i,r)}isAttached(t){const n=zd(t);return!!(n&&n.isConnected)}}function Qk(e){return!dy()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Fk:Xk}class Mt{constructor(){D(this,"active",!1)}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return Gi(this.x)&&Gi(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const r={};return t.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}}D(Mt,"defaults",{}),D(Mt,"defaultRoutes");function Gk(e,t){const n=e.options.ticks,i=qk(e),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?Zk(t):[],o=s.length,l=s[0],a=s[o-1],c=[];if(o>r)return eE(t,c,s,o/r),c;const u=Jk(s,t,r);if(o>0){let d,f;const h=o>1?Math.round((a-l)/(o-1)):null;for(ro(t,c,u,Q(h)?0:l-h,l),d=0,f=o-1;d<f;d++)ro(t,c,u,s[d],s[d+1]);return ro(t,c,u,a,Q(h)?t.length:a+h),c}return ro(t,c,u),c}function qk(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}function Jk(e,t,n){const i=tE(e),r=t.length/n;if(!i)return Math.max(r,1);const s=W2(i);for(let o=0,l=s.length-1;o<l;o++){const a=s[o];if(a>r)return a}return Math.max(r,1)}function Zk(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function eE(e,t,n,i){let r=0,s=n[0],o;for(i=Math.ceil(i),o=0;o<e.length;o++)o===s&&(t.push(e[o]),r++,s=n[r*i])}function ro(e,t,n,i,r){const s=B(i,0),o=Math.min(B(r,e.length),e.length);let l=0,a,c,u;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),u=s;u<0;)l++,u=Math.round(s+l*n);for(c=Math.max(s,0);c<o;c++)c===u&&(t.push(e[c]),l++,u=Math.round(s+l*n))}function tE(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const nE=e=>e==="left"?"right":e==="right"?"left":e,op=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,lp=(e,t)=>Math.min(t||e,e);function ap(e,t){const n=[],i=e.length/t,r=e.length;let s=0;for(;s<r;s+=i)n.push(e[Math.floor(s)]);return n}function iE(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),s=e._startPixel,o=e._endPixel,l=1e-6;let a=e.getPixelForTick(r),c;if(!(n&&(i===1?c=Math.max(a-s,o-a):t===0?c=(e.getPixelForTick(1)-a)/2:c=(a-e.getPixelForTick(r-1))/2,a+=r<t?c:-c,a<s-l||a>o+l)))return a}function rE(e,t){Z(e,n=>{const i=n.gc,r=i.length/2;let s;if(r>t){for(s=0;s<r;++s)delete n.data[i[s]];i.splice(0,r)}})}function yr(e){return e.drawTicks?e.tickLength:0}function cp(e,t){if(!e.display)return 0;const n=ke(e.font,t),i=He(e.padding);return(oe(e.text)?e.text.length:1)*n.lineHeight+i.height}function sE(e,t){return $n(e,{scale:t,type:"scale"})}function oE(e,t,n){return $n(e,{tick:n,index:t,type:"tick"})}function lE(e,t,n){let i=Ld(e);return(n&&t!=="right"||!n&&t==="right")&&(i=nE(i)),i}function aE(e,t,n,i){const{top:r,left:s,bottom:o,right:l,chart:a}=e,{chartArea:c,scales:u}=a;let d=0,f,h,p;const y=o-r,v=l-s;if(e.isHorizontal()){if(h=Ie(i,s,l),U(n)){const g=Object.keys(n)[0],m=n[g];p=u[g].getPixelForValue(m)+y-t}else n==="center"?p=(c.bottom+c.top)/2+y-t:p=op(e,n,t);f=l-s}else{if(U(n)){const g=Object.keys(n)[0],m=n[g];h=u[g].getPixelForValue(m)-v+t}else n==="center"?h=(c.left+c.right)/2-v+t:h=op(e,n,t);p=Ie(i,o,r),d=n==="left"?-me:me}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class yi extends Mt{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:i,_suggestedMax:r}=this;return t=tt(t,Number.POSITIVE_INFINITY),n=tt(n,Number.NEGATIVE_INFINITY),i=tt(i,Number.POSITIVE_INFINITY),r=tt(r,Number.NEGATIVE_INFINITY),{min:tt(t,i),max:tt(n,r),minDefined:ge(t),maxDefined:ge(n)}}getMinMax(t){let{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds(),o;if(r&&s)return{min:n,max:i};const l=this.getMatchingVisibleMetas();for(let a=0,c=l.length;a<c;++a)o=l[a].controller.getMinMax(this,t),r||(n=Math.min(n,o.min)),s||(i=Math.max(i,o.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:tt(n,tt(i,n)),max:tt(i,tt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ne(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:r,grace:s,ticks:o}=this.options,l=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=yS(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=l<this.ticks.length;this._convertTicksToLabels(a?ap(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Gk(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ne(this.options.afterUpdate,[this])}beforeSetDimensions(){ne(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(){ne(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ne(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ne(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i],s.label=ne(n.callback,[s.value,i,t],this)}afterTickToLabelConversion(){ne(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ne(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=lp(this.ticks.length,t.ticks.maxTicksLimit),r=n.minRotation||0,s=n.maxRotation;let o=r,l,a,c;if(!this._isVisible()||!n.display||r>=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=Re(this.chart.width-d,0,this.maxWidth);l=t.offset?this.maxWidth/i:h/(i-1),d+6>l&&(l=h/(i-(t.offset?.5:1)),a=this.maxHeight-yr(t.grid)-n.padding-cp(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=Rd(Math.min(Math.asin(Re((u.highest.height+6)/l,-1,1)),Math.asin(Re(a/c,-1,1))-Math.asin(Re(f/c,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){ne(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ne(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),l=this.isHorizontal();if(o){const a=cp(r,n.options.font);if(l?(t.width=this.maxWidth,t.height=yr(s)+a):(t.height=this.maxHeight,t.width=yr(s)+a),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=i.padding*2,p=St(this.labelRotation),y=Math.cos(p),v=Math.sin(p);if(l){const g=i.mirror?0:v*d.width+y*f.height;t.height=Math.min(this.maxHeight,t.height+g+h)}else{const g=i.mirror?0:y*d.width+v*f.height;t.width=Math.min(this.maxWidth,t.width+g+h)}this._calculatePadding(c,u,v,y)}}this._handleMargins(),l?(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,i,r){const{ticks:{align:s,padding:o},position:l}=this.options,a=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;a?c?(f=r*t.width,h=i*n.height):(f=i*t.height,h=r*n.width):s==="start"?h=n.width:s==="end"?f=t.width:s!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;s==="start"?(u=0,d=t.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ne(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)Q(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=ap(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:r,_longestTextCache:s}=this,o=[],l=[],a=Math.floor(n/lp(n,i));let c=0,u=0,d,f,h,p,y,v,g,m,x,_,w;for(d=0;d<n;d+=a){if(p=t[d].label,y=this._resolveTickFontOptions(d),r.font=v=y.string,g=s[v]=s[v]||{data:{},gc:[]},m=y.lineHeight,x=_=0,!Q(p)&&!oe(p))x=gl(r,g.data,g.gc,x,p),_=m;else if(oe(p))for(f=0,h=p.length;f<h;++f)w=p[f],!Q(w)&&!oe(w)&&(x=gl(r,g.data,g.gc,x,w),_+=m);o.push(x),l.push(_),c=Math.max(x,c),u=Math.max(_,u)}rE(s,n);const E=o.indexOf(c),k=l.indexOf(u),C=L=>({width:o[L]||0,height:l[L]||0});return{first:C(0),last:C(n-1),widest:C(E),highest:C(k),widths:o,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Y2(this._alignToPixels?Un(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=oE(this.getContext(),t,i))}return this.$context||(this.$context=sE(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=St(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,l=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*i>l*r?l/i:a/r:a*r<l*i?a/i:l/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:l}=r,a=s.offset,c=this.isHorizontal(),d=this.ticks.length+(a?1:0),f=yr(s),h=[],p=l.setContext(this.getContext()),y=p.display?p.width:0,v=y/2,g=function(V){return Un(i,V,y)};let m,x,_,w,E,k,C,L,T,F,I,G;if(o==="top")m=g(this.bottom),k=this.bottom-f,L=m-v,F=g(t.top)+v,G=t.bottom;else if(o==="bottom")m=g(this.top),F=t.top,G=g(t.bottom)-v,k=m+v,L=this.top+f;else if(o==="left")m=g(this.right),E=this.right-f,C=m-v,T=g(t.left)+v,I=t.right;else if(o==="right")m=g(this.left),T=t.left,I=g(t.right)-v,E=m+v,C=this.left+f;else if(n==="x"){if(o==="center")m=g((t.top+t.bottom)/2+.5);else if(U(o)){const V=Object.keys(o)[0],q=o[V];m=g(this.chart.scales[V].getPixelForValue(q))}F=t.top,G=t.bottom,k=m+v,L=k+f}else if(n==="y"){if(o==="center")m=g((t.left+t.right)/2);else if(U(o)){const V=Object.keys(o)[0],q=o[V];m=g(this.chart.scales[V].getPixelForValue(q))}E=m-v,C=E-f,T=t.left,I=t.right}const _e=B(r.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/_e));for(x=0;x<d;x+=H){const V=this.getContext(x),q=s.setContext(V),R=l.setContext(V),A=q.lineWidth,z=q.color,$=R.dash||[],te=R.dashOffset,j=q.tickWidth,W=q.tickColor,re=q.tickBorderDash||[],Pe=q.tickBorderDashOffset;_=iE(this,x,a),_!==void 0&&(w=Un(i,_,A),c?E=C=T=I=w:k=L=F=G=w,h.push({tx1:E,ty1:k,tx2:C,ty2:L,x1:T,y1:F,x2:I,y2:G,width:A,color:z,borderDash:$,borderDashOffset:te,tickWidth:j,tickColor:W,tickBorderDash:re,tickBorderDashOffset:Pe}))}return this._ticksLength=d,this._borderValue=m,h}_computeLabelItems(t){const n=this.axis,i=this.options,{position:r,ticks:s}=i,o=this.isHorizontal(),l=this.ticks,{align:a,crossAlign:c,padding:u,mirror:d}=s,f=yr(i.grid),h=f+u,p=d?-u:h,y=-St(this.labelRotation),v=[];let g,m,x,_,w,E,k,C,L,T,F,I,G="middle";if(r==="top")E=this.bottom-p,k=this._getXAxisLabelAlignment();else if(r==="bottom")E=this.top+p,k=this._getXAxisLabelAlignment();else if(r==="left"){const H=this._getYAxisLabelAlignment(f);k=H.textAlign,w=H.x}else if(r==="right"){const H=this._getYAxisLabelAlignment(f);k=H.textAlign,w=H.x}else if(n==="x"){if(r==="center")E=(t.top+t.bottom)/2+h;else if(U(r)){const H=Object.keys(r)[0],V=r[H];E=this.chart.scales[H].getPixelForValue(V)+h}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")w=(t.left+t.right)/2-h;else if(U(r)){const H=Object.keys(r)[0],V=r[H];w=this.chart.scales[H].getPixelForValue(V)}k=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(a==="start"?G="top":a==="end"&&(G="bottom"));const _e=this._getLabelSizes();for(g=0,m=l.length;g<m;++g){x=l[g],_=x.label;const H=s.setContext(this.getContext(g));C=this.getPixelForTick(g)+s.labelOffset,L=this._resolveTickFontOptions(g),T=L.lineHeight,F=oe(_)?_.length:1;const V=F/2,q=H.color,R=H.textStrokeColor,A=H.textStrokeWidth;let z=k;o?(w=C,k==="inner"&&(g===m-1?z=this.options.reverse?"left":"right":g===0?z=this.options.reverse?"right":"left":z="center"),r==="top"?c==="near"||y!==0?I=-F*T+T/2:c==="center"?I=-_e.highest.height/2-V*T+T:I=-_e.highest.height+T/2:c==="near"||y!==0?I=T/2:c==="center"?I=_e.highest.height/2-V*T:I=_e.highest.height-F*T,d&&(I*=-1),y!==0&&!H.showLabelBackdrop&&(w+=T/2*Math.sin(y))):(E=C,I=(1-F)*T/2);let $;if(H.showLabelBackdrop){const te=He(H.backdropPadding),j=_e.heights[g],W=_e.widths[g];let re=I-te.top,Pe=0-te.left;switch(G){case"middle":re-=j/2;break;case"bottom":re-=j;break}switch(k){case"center":Pe-=W/2;break;case"right":Pe-=W;break}$={left:Pe,top:re,width:W+te.width,height:j+te.height,color:H.backdropColor}}v.push({label:_,font:L,textOffset:I,options:{rotation:y,color:q,strokeColor:R,strokeWidth:A,textAlign:z,textBaseline:G,translation:[w,E],backdrop:$}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-St(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),l=t+s,a=o.widest.width;let c,u;return n==="left"?r?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=a/2):(c="right",u+=a)):(u=this.right-l,i==="near"?c="right":i==="center"?(c="center",u-=a/2):(c="left",u=this.left)):n==="right"?r?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=a/2):(c="left",u-=a)):(u=this.left+l,i==="near"?c="left":i==="center"?(c="center",u+=a/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:r,width:s,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,r,s,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(s=>s.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const l=(a,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(a.x,a.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(s=0,o=r.length;s<o;++s){const a=r[s];n.drawOnChartArea&&l({x:a.x1,y:a.y1},{x:a.x2,y:a.y2},a),n.drawTicks&&l({x:a.tx1,y:a.ty1},{x:a.tx2,y:a.ty2},{color:a.tickColor,width:a.tickWidth,borderDash:a.tickBorderDash,borderDashOffset:a.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:r}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const l=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=Un(t,this.left,o)-o/2,u=Un(t,this.right,l)+l/2,d=f=a):(d=Un(t,this.top,o)-o/2,f=Un(t,this.bottom,l)+l/2,c=u=a),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&Ql(i,r);const s=this.getLabelItems(t);for(const o of s){const l=o.options,a=o.font,c=o.label,u=o.textOffset;fi(i,c,0,u,a,l)}r&&Gl(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const s=ke(i.font),o=He(i.padding),l=i.align;let a=s.lineHeight/2;n==="bottom"||n==="center"||U(n)?(a+=o.bottom,oe(i.text)&&(a+=s.lineHeight*(i.text.length-1))):a+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=aE(this,a,n,l);fi(t,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:f,textAlign:lE(l,n,r),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=B(t.grid&&t.grid.z,-1),r=B(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==yi.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let s,o;for(s=0,o=n.length;s<o;++s){const l=n[s];l[i]===this.id&&(!t||l.type===t)&&r.push(l)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return ke(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class so{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;dE(n)&&(i=this.register(n));const r=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in r||(r[s]=t,cE(t,o,i),this.override&&xe.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,r=this.scope;i in n&&delete n[i],r&&i in xe[r]&&(delete xe[r][i],this.override&&delete di[i])}}function cE(e,t,n){const i=us(Object.create(null),[n?xe.get(n):{},xe.get(t),e.defaults]);xe.set(t,i),e.defaultRoutes&&uE(t,e.defaultRoutes),e.descriptors&&xe.describe(t,e.descriptors)}function uE(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),r=i.pop(),s=[e].concat(i).join("."),o=t[n].split("."),l=o.pop(),a=o.join(".");xe.route(s,r,a,l)})}function dE(e){return"id"in e&&"defaults"in e}class fE{constructor(){this.controllers=new so(Ct,"datasets",!0),this.elements=new so(Mt,"elements"),this.plugins=new so(Object,"plugins"),this.scales=new so(yi,"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,i){[...n].forEach(r=>{const s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(t,s,r):Z(r,o=>{const l=i||this._getRegistryForType(o);this._exec(t,l,o)})})}_exec(t,n,i){const r=Od(t);ne(i["before"+r],[],i),n[t](i),ne(i["after"+r],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var Lt=new fE;class hE{constructor(){this._init=[]}notify(t,n,i,r){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(s,t,n,i);return n==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,i,r){r=r||{};for(const s of t){const o=s.plugin,l=o[i],a=[n,r,s.options];if(ne(l,a,o)===!1&&r.cancelable)return!1}return!0}invalidate(){Q(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,r=B(i.options&&i.options.plugins,{}),s=pE(i);return r===!1&&!n?[]:mE(t,s,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,r=(s,o)=>s.filter(l=>!o.some(a=>l.plugin.id===a.plugin.id));this._notify(r(n,i),t,"stop"),this._notify(r(i,n),t,"start")}}function pE(e){const t={},n=[],i=Object.keys(Lt.plugins.items);for(let s=0;s<i.length;s++)n.push(Lt.getPlugin(i[s]));const r=e.plugins||[];for(let s=0;s<r.length;s++){const o=r[s];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function gE(e,t){return!t&&e===!1?null:e===!0?{}:e}function mE(e,{plugins:t,localIds:n},i,r){const s=[],o=e.getContext();for(const l of t){const a=l.id,c=gE(i[a],r);c!==null&&s.push({plugin:l,options:yE(e.config,{plugin:l,local:n[a]},c,o)})}return s}function yE(e,{plugin:t,local:n},i,r){const s=e.pluginScopeKeys(t),o=e.getOptionScopes(i,s);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function lu(e,t){const n=xe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function vE(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function xE(e,t){return e===t?"_index_":"_value_"}function _E(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function vl(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||_E(t.position)||e.length>1&&vl(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function wE(e,t){const n=di[e.type]||{scales:{}},i=t.scales||{},r=lu(e.type,t),s=Object.create(null);return Object.keys(i).forEach(o=>{const l=i[o];if(!U(l))return console.error(`Invalid scale configuration for scale: ${o}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const a=vl(o,l),c=xE(a,r),u=n.scales||{};s[o]=zr(Object.create(null),[{axis:a},l,u[a],u[c]])}),e.data.datasets.forEach(o=>{const l=o.type||e.type,a=o.indexAxis||lu(l,t),u=(di[l]||{}).scales||{};Object.keys(u).forEach(d=>{const f=vE(d,a),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),zr(s[h],[{axis:f},i[h],u[d]])})}),Object.keys(s).forEach(o=>{const l=s[o];zr(l,[xe.scales[l.type],xe.scale])}),s}function Ey(e){const t=e.options||(e.options={});t.plugins=B(t.plugins,{}),t.scales=wE(e,t)}function Cy(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function bE(e){return e=e||{},e.data=Cy(e.data),Ey(e),e}const up=new Map,Py=new Set;function oo(e,t){let n=up.get(e);return n||(n=t(),up.set(e,n),Py.add(n)),n}const vr=(e,t,n)=>{const i=An(t,n);i!==void 0&&e.add(i)};class SE{constructor(t){this._config=bE(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=Cy(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ey(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return oo(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return oo(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return oo(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return oo(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let r=i.get(t);return(!r||n)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,n,i){const{options:r,type:s}=this,o=this._cachedScopes(t,i),l=o.get(n);if(l)return l;const a=new Set;n.forEach(u=>{t&&(a.add(t),u.forEach(d=>vr(a,t,d))),u.forEach(d=>vr(a,r,d)),u.forEach(d=>vr(a,di[s]||{},d)),u.forEach(d=>vr(a,xe,d)),u.forEach(d=>vr(a,ru,d))});const c=Array.from(a);return c.length===0&&c.push(Object.create(null)),Py.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,di[n]||{},xe.datasets[n]||{},{type:n},xe,ru]}resolveNamedOptions(t,n,i,r=[""]){const s={$shared:!0},{resolver:o,subPrefixes:l}=dp(this._resolverCache,t,r);let a=o;if(EE(o,n)){s.$shared=!1,i=Fn(i)?i():i;const c=this.createResolver(t,i,l);a=qi(o,i,c)}for(const c of n)s[c]=a[c];return s}createResolver(t,n,i=[""],r){const{resolver:s}=dp(this._resolverCache,t,i);return U(n)?qi(s,n,void 0,r):s}}function dp(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let s=i.get(r);return s||(s={resolver:Dd(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},i.set(r,s)),s}const kE=e=>U(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Fn(e[n]),!1);function EE(e,t){const{isScriptable:n,isIndexable:i}=sy(e);for(const r of t){const s=n(r),o=i(r),l=(o||s)&&e[r];if(s&&(Fn(l)||kE(l))||o&&oe(l))return!0}return!1}var CE="4.2.1";const PE=["top","bottom","left","right","chartArea"];function fp(e,t){return e==="top"||e==="bottom"||PE.indexOf(e)===-1&&t==="x"}function hp(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function pp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ne(n&&n.onComplete,[e],t)}function ME(e){const t=e.chart,n=t.options.animation;ne(n&&n.onProgress,[e],t)}function My(e){return dy()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Do={},gp=e=>{const t=My(e);return Object.values(Do).filter(n=>n.canvas===t).pop()};function OE(e,t,n){const i=Object.keys(e);for(const r of i){const s=+r;if(s>=t){const o=e[r];delete e[r],(n>0||s>t)&&(e[s+n]=o)}}}function RE(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function TE(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var an;let Jl=(an=class{static register(...t){Lt.add(...t),mp()}static unregister(...t){Lt.remove(...t),mp()}constructor(t,n){const i=this.config=new SE(n),r=My(t),s=gp(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Qk(r)),this.platform.updateConfig(i);const l=this.platform.acquireContext(r,o.aspectRatio),a=l&&l.canvas,c=a&&a.height,u=a&&a.width;if(this.id=D2(),this.ctx=l,this.canvas=a,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new hE,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=G2(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Do[this.id]=this,!l||!a){console.error("Failed to create chart: can't acquire context from the given item");return}Bt.listen(this,"complete",pp),Bt.listen(this,"progress",ME),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:r,_aspectRatio:s}=this;return Q(t)?n&&s?s:r?i/r: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}get registry(){return Lt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Bh(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Fh(this.canvas,this.ctx),this}stop(){return Bt.stop(this),this}resize(t,n){Bt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,n,s),l=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Bh(this,l,!0)&&(this.notifyPlugins("resize",{size:o}),ne(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Z(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,r=Object.keys(i).reduce((o,l)=>(o[l]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const l=n[o],a=vl(o,l),c=a==="r",u=a==="x";return{options:l,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Z(s,o=>{const l=o.options,a=l.id,c=vl(a,l),u=B(l.type,o.dtype);(l.position===void 0||fp(l.position,c)!==fp(o.dposition))&&(l.position=o.dposition),r[a]=!0;let d=null;if(a in i&&i[a].type===u)d=i[a];else{const f=Lt.getScale(u);d=new f({id:a,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(l,t)}),Z(r,(o,l)=>{o||delete i[l]}),Z(i,o=>{je.configure(this,o,o.options),je.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((r,s)=>r.index-s.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(hp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,r)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const s=n[i];let o=this.getDatasetMeta(i);const l=s.type||this.config.type;if(o.type&&o.type!==l&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=l,o.indexAxis=s.indexAxis||lu(l,this.options),o.order=s.order||0,o.index=i,o.label=""+s.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const a=Lt.getController(l),{datasetElementType:c,dataElementType:u}=xe.datasets[l];Object.assign(a,{dataElementType:Lt.getElement(u),datasetElementType:c&&Lt.getElement(c)}),o.controller=new a(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Z(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!r&&s.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||Z(s,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hp("z","_idx"));const{_active:l,_lastEvent:a}=this;a?this._eventHandler(a,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Z(this.scales,t=>{je.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Ph(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:s}of n){const o=i==="_removeElements"?-s:s;OE(t,r,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(t.filter(o=>o[0]===s).map((o,l)=>l+","+o.splice(1).join(","))),r=i(0);for(let s=1;s<n;s++)if(!Ph(r,i(s)))return;return Array.from(r).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;je.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Z(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Fn(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Bt.has(this)?this.attached&&!Bt.running(this)&&Bt.start(this):(this.draw(),pp({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let r,s;for(r=0,s=n.length;r<s;++r){const o=n[r];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,r=!i.disabled,s=TE(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&Ql(n,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),t.controller.draw(),r&&Gl(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return fs(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,r){const s=Mk.modes[n];return typeof s=="function"?s(this,t,i,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let r=i.filter(s=>s&&s._dataset===n).pop();return r||(r={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},i.push(r)),r}getContext(){return this.$context||(this.$context=$n(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const r=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,r);vt(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(l=>l.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Bt.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Fh(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Do[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(s,o)=>{n.addEventListener(this,s,o),t[s]=o},r=(s,o,l)=>{s.offsetX=o,s.offsetY=l,this._eventHandler(s)};Z(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(a,c)=>{n.addEventListener(this,a,c),t[a]=c},r=(a,c)=>{t[a]&&(n.removeEventListener(this,a,c),delete t[a])},s=(a,c)=>{this.canvas&&this.resize(a,c)};let o;const l=()=>{r("attach",l),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",l)},n.isAttached(this.canvas)?l():o()}unbindEvents(){Z(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Z(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const r=i?"set":"remove";let s,o,l,a;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),l=0,a=t.length;l<a;++l){o=t[l];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:s,index:o})=>{const l=this.getDatasetMeta(s);if(!l)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:l.data[o],index:o}});!fl(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const r=this.options.hover,s=(a,c)=>a.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=s(n,t),l=i?t:s(t,n);o.length&&this.updateHoverStyle(o,r.mode,!1),l.length&&r.mode&&this.updateHoverStyle(l,r.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const s=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:r=[],options:s}=this,o=n,l=this._getActiveElements(t,r,i,o),a=j2(t),c=RE(t,this._lastEvent,i,a);i&&(this._lastEvent=null,ne(s.onHover,[t,l,this],this),a&&ne(s.onClick,[t,l,this],this));const u=!fl(l,r);return(u||n)&&(this._active=l,this._updateHoverStyles(l,r,n)),this._lastEvent=c,u}_getActiveElements(t,n,i,r){if(t.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,r)}},D(an,"defaults",xe),D(an,"instances",Do),D(an,"overrides",di),D(an,"registry",Lt),D(an,"version",CE),D(an,"getChart",gp),an);function mp(){return Z(Jl.instances,e=>e._plugins.invalidate())}function LE(e,t,n){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:l,innerRadius:a}=t;let c=r/l;e.beginPath(),e.arc(s,o,l,i-c,n+c),a>r?(c=r/a,e.arc(s,o,a,n+c,i-c,!0)):e.arc(s,o,r,n+me,i-me),e.closePath(),e.clip()}function NE(e){return Nd(e,["outerStart","outerEnd","innerStart","innerEnd"])}function DE(e,t,n,i){const r=NE(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,i*t/2),l=a=>{const c=(n-Math.min(s,a))*i/2;return Re(a,0,Math.min(s,c))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:Re(r.innerStart,0,o),innerEnd:Re(r.innerEnd,0,o)}}function _i(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function xl(e,t,n,i,r,s){const{x:o,y:l,startAngle:a,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),f=u>0?u+i+n+c:0;let h=0;const p=r-a;if(i){const H=u>0?u-i:0,V=d>0?d-i:0,q=(H+V)/2,R=q!==0?p*q/(q+i):p;h=(p-R)/2}const y=Math.max(.001,p*d-n/ue)/d,v=(p-y)/2,g=a+v+h,m=r-v-h,{outerStart:x,outerEnd:_,innerStart:w,innerEnd:E}=DE(t,f,d,m-g),k=d-x,C=d-_,L=g+x/k,T=m-_/C,F=f+w,I=f+E,G=g+w/F,_e=m-E/I;if(e.beginPath(),s){const H=(L+T)/2;if(e.arc(o,l,d,L,H),e.arc(o,l,d,H,T),_>0){const A=_i(C,T,o,l);e.arc(A.x,A.y,_,T,m+me)}const V=_i(I,m,o,l);if(e.lineTo(V.x,V.y),E>0){const A=_i(I,_e,o,l);e.arc(A.x,A.y,E,m+me,_e+Math.PI)}const q=(m-E/f+(g+w/f))/2;if(e.arc(o,l,f,m-E/f,q,!0),e.arc(o,l,f,q,g+w/f,!0),w>0){const A=_i(F,G,o,l);e.arc(A.x,A.y,w,G+Math.PI,g-me)}const R=_i(k,g,o,l);if(e.lineTo(R.x,R.y),x>0){const A=_i(k,L,o,l);e.arc(A.x,A.y,x,g-me,L)}}else{e.moveTo(o,l);const H=Math.cos(L)*d+o,V=Math.sin(L)*d+l;e.lineTo(H,V);const q=Math.cos(T)*d+o,R=Math.sin(T)*d+l;e.lineTo(q,R)}e.closePath()}function AE(e,t,n,i,r){const{fullCircles:s,startAngle:o,circumference:l}=t;let a=t.endAngle;if(s){xl(e,t,n,i,a,r);for(let c=0;c<s;++c)e.fill();isNaN(l)||(a=o+(l%ae||ae))}return xl(e,t,n,i,a,r),e.fill(),a}function FE(e,t,n,i,r){const{fullCircles:s,startAngle:o,circumference:l,options:a}=t,{borderWidth:c,borderJoinStyle:u}=a,d=a.borderAlign==="inner";if(!c)return;d?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let f=t.endAngle;if(s){xl(e,t,n,i,f,r);for(let h=0;h<s;++h)e.stroke();isNaN(l)||(f=o+(l%ae||ae))}d&&LE(e,t,f),s||(xl(e,t,n,i,f,r),e.stroke())}class Ao extends Mt{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,i){const r=this.getProps(["x","y"],i),{angle:s,distance:o}=X0(r,{x:t,y:n}),{startAngle:l,endAngle:a,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=this.options.spacing/2,p=B(d,a-l)>=ae||ds(s,l,a),y=Kt(o,c+f,u+f);return p&&y}getCenterPoint(t){const{x:n,y:i,startAngle:r,endAngle:s,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:c}=this.options,u=(r+s)/2,d=(o+l+c+a)/2;return{x:n+Math.cos(u)*d,y:i+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:i}=this,r=(n.offset||0)/4,s=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>ae?Math.floor(i/ae):0,i===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*r,Math.sin(l)*r);const a=1-Math.sin(Math.min(ue,i||0)),c=r*a;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,AE(t,this,c,s,o),FE(t,this,c,s,o),t.restore()}}D(Ao,"id","arc"),D(Ao,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),D(Ao,"defaultRoutes",{backgroundColor:"backgroundColor"});function Oy(e,t,n=t){e.lineCap=B(n.borderCapStyle,t.borderCapStyle),e.setLineDash(B(n.borderDash,t.borderDash)),e.lineDashOffset=B(n.borderDashOffset,t.borderDashOffset),e.lineJoin=B(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=B(n.borderWidth,t.borderWidth),e.strokeStyle=B(n.borderColor,t.borderColor)}function zE(e,t,n){e.lineTo(n.x,n.y)}function IE(e){return e.stepped?aS:e.tension||e.cubicInterpolationMode==="monotone"?cS:zE}function Ry(e,t,n={}){const i=e.length,{start:r=0,end:s=i-1}=n,{start:o,end:l}=t,a=Math.max(r,o),c=Math.min(s,l),u=r<o&&s<o||r>l&&s>l;return{count:i,start:a,loop:t.loop,ilen:c<a&&!u?i+c-a:c-a}}function BE(e,t,n,i){const{points:r,options:s}=t,{count:o,start:l,loop:a,ilen:c}=Ry(r,n,i),u=IE(s);let{move:d=!0,reverse:f}=i||{},h,p,y;for(h=0;h<=c;++h)p=r[(l+(f?c-h:h))%o],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):u(e,y,p,f,s.stepped),y=p);return a&&(p=r[(l+(f?c:0))%o],u(e,y,p,f,s.stepped)),!!a}function jE(e,t,n,i){const r=t.points,{count:s,start:o,ilen:l}=Ry(r,n,i),{move:a=!0,reverse:c}=i||{};let u=0,d=0,f,h,p,y,v,g;const m=_=>(o+(c?l-_:_))%s,x=()=>{y!==v&&(e.lineTo(u,v),e.lineTo(u,y),e.lineTo(u,g))};for(a&&(h=r[m(0)],e.moveTo(h.x,h.y)),f=0;f<=l;++f){if(h=r[m(f)],h.skip)continue;const _=h.x,w=h.y,E=_|0;E===p?(w<y?y=w:w>v&&(v=w),u=(d*u+_)/++d):(x(),e.lineTo(_,w),p=E,d=0,y=v=w),g=w}x()}function au(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?jE:BE}function $E(e){return e.stepped?$S:e.tension||e.cubicInterpolationMode==="monotone"?HS:qn}function HE(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),Oy(e,t.options),e.stroke(r)}function WE(e,t,n,i){const{segments:r,options:s}=t,o=au(t);for(const l of r)Oy(e,s,l.style),e.beginPath(),o(e,t,l,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const VE=typeof Path2D=="function";function UE(e,t,n,i){VE&&!t.options.segment?HE(e,t,n,i):WE(e,t,n,i)}class vn extends Mt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;NS(this._points,i,t,r,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=XS(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,r=t[n],s=this.points,o=my(this,{property:n,start:r,end:r});if(!o.length)return;const l=[],a=$E(i);let c,u;for(c=0,u=o.length;c<u;++c){const{start:d,end:f}=o[c],h=s[d],p=s[f];if(h===p){l.push(h);continue}const y=Math.abs((r-h[n])/(p[n]-h[n])),v=a(h,p,y,i.stepped);v[n]=t[n],l.push(v)}return l.length===1?l[0]:l}pathSegment(t,n,i){return au(this)(t,this,n,i)}path(t,n,i){const r=this.segments,s=au(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const l of r)o&=s(t,this,l,{start:n,end:n+i-1});return!!o}draw(t,n,i,r){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),UE(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}D(vn,"id","line"),D(vn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),D(vn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),D(vn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function yp(e,t,n,i){const r=e.options,{[n]:s}=e.getProps([n],i);return Math.abs(t-s)<r.radius+r.hitRadius}class Fo extends Mt{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,i){const r=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(n-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,n){return yp(this,t,"x",n)}inYRange(t,n){return yp(this,t,"y",n)}getCenterPoint(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const i=n&&t.borderWidth||0;return(n+i)*2}draw(t,n){const i=this.options;this.skip||i.radius<.1||!fs(this,n,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,su(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}D(Fo,"id","point"),D(Fo,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),D(Fo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ty(e,t){const{x:n,y:i,base:r,width:s,height:o}=e.getProps(["x","y","base","width","height"],t);let l,a,c,u,d;return e.horizontal?(d=o/2,l=Math.min(n,r),a=Math.max(n,r),c=i-d,u=i+d):(d=s/2,l=n-d,a=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:l,top:c,right:a,bottom:u}}function xn(e,t,n,i){return e?0:Re(t,n,i)}function YE(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,s=ry(i);return{t:xn(r.top,s.top,0,n),r:xn(r.right,s.right,0,t),b:xn(r.bottom,s.bottom,0,n),l:xn(r.left,s.left,0,t)}}function KE(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,s=ri(r),o=Math.min(t,n),l=e.borderSkipped,a=i||U(r);return{topLeft:xn(!a||l.top||l.left,s.topLeft,0,o),topRight:xn(!a||l.top||l.right,s.topRight,0,o),bottomLeft:xn(!a||l.bottom||l.left,s.bottomLeft,0,o),bottomRight:xn(!a||l.bottom||l.right,s.bottomRight,0,o)}}function XE(e){const t=Ty(e),n=t.right-t.left,i=t.bottom-t.top,r=YE(e,n/2,i/2),s=KE(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:s},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Ka(e,t,n,i){const r=t===null,s=n===null,l=e&&!(r&&s)&&Ty(e,i);return l&&(r||Kt(t,l.left,l.right))&&(s||Kt(n,l.top,l.bottom))}function QE(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function GE(e,t){e.rect(t.x,t.y,t.w,t.h)}function Xa(e,t,n={}){const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,s=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+s,h:e.h+o,radius:e.radius}}class zo extends Mt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:r}}=this,{inner:s,outer:o}=XE(this),l=QE(o.radius)?hs:GE;t.save(),(o.w!==s.w||o.h!==s.h)&&(t.beginPath(),l(t,Xa(o,n,s)),t.clip(),l(t,Xa(s,-n,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),l(t,Xa(s,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,i){return Ka(this,t,n,i)}inXRange(t,n){return Ka(this,t,null,n)}inYRange(t,n){return Ka(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(n+r)/2:n,y:s?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}D(zo,"id","bar"),D(zo,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),D(zo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var qE=Object.freeze({__proto__:null,ArcElement:Ao,LineElement:vn,PointElement:Fo,BarElement:zo});const cu=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],vp=cu.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Ly(e){return cu[e%cu.length]}function Ny(e){return vp[e%vp.length]}function JE(e,t){return e.borderColor=Ly(t),e.backgroundColor=Ny(t),++t}function ZE(e,t){return e.backgroundColor=e.data.map(()=>Ly(t++)),t}function eC(e,t){return e.backgroundColor=e.data.map(()=>Ny(t++)),t}function tC(e){let t=0;return(n,i)=>{const r=e.getDatasetMeta(i).controller;r instanceof ti?t=ZE(n,t):r instanceof Hr?t=eC(n,t):r&&(t=JE(n,t))}}function xp(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function nC(e){return e&&(e.borderColor||e.backgroundColor)}var iC={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=e.config,{elements:s}=r;if(!n.forceOverride&&(xp(i)||nC(r)||s&&xp(s)))return;const o=tC(e);i.forEach(o)}};function rC(e,t,n,i,r){const s=r.samples||i;if(s>=n)return e.slice(t,t+n);const o=[],l=(n-2)/(s-2);let a=0;const c=t+n-1;let u=t,d,f,h,p,y;for(o[a++]=e[u],d=0;d<s-2;d++){let v=0,g=0,m;const x=Math.floor((d+1)*l)+1+t,_=Math.min(Math.floor((d+2)*l)+1,n)+t,w=_-x;for(m=x;m<_;m++)v+=e[m].x,g+=e[m].y;v/=w,g/=w;const E=Math.floor(d*l)+1+t,k=Math.min(Math.floor((d+1)*l)+1,n)+t,{x:C,y:L}=e[u];for(h=p=-1,m=E;m<k;m++)p=.5*Math.abs((C-v)*(e[m].y-L)-(C-e[m].x)*(g-L)),p>h&&(h=p,f=e[m],y=m);o[a++]=f,u=y}return o[a++]=e[c],o}function sC(e,t,n,i){let r=0,s=0,o,l,a,c,u,d,f,h,p,y;const v=[],g=t+n-1,m=e[t].x,_=e[g].x-m;for(o=t;o<t+n;++o){l=e[o],a=(l.x-m)/_*i,c=l.y;const w=a|0;if(w===u)c<p?(p=c,d=o):c>y&&(y=c,f=o),r=(s*r+l.x)/++s;else{const E=o-1;if(!Q(d)&&!Q(f)){const k=Math.min(d,f),C=Math.max(d,f);k!==h&&k!==E&&v.push({...e[k],x:r}),C!==h&&C!==E&&v.push({...e[C],x:r})}o>0&&E!==h&&v.push(e[E]),v.push(l),u=w,s=0,p=y=c,d=f=h=o}}return v}function Dy(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _p(e){e.data.datasets.forEach(t=>{Dy(t)})}function oC(e,t){const n=t.length;let i=0,r;const{iScale:s}=e,{min:o,max:l,minDefined:a,maxDefined:c}=s.getUserBounds();return a&&(i=Re(Xt(t,s.axis,o).lo,0,n-1)),c?r=Re(Xt(t,s.axis,l).hi+1,i,n)-i:r=n-i,{start:i,count:r}}var lC={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){_p(e);return}const i=e.width;e.data.datasets.forEach((r,s)=>{const{_data:o,indexAxis:l}=r,a=e.getDatasetMeta(s),c=o||r.data;if(kr([l,e.options.indexAxis])==="y"||!a.controller.supportsDecimation)return;const u=e.scales[a.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=oC(a,c);const h=n.threshold||4*i;if(f<=h){Dy(r);return}Q(o)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let p;switch(n.algorithm){case"lttb":p=rC(c,d,f,i,n);break;case"min-max":p=sC(c,d,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}r._decimated=p})},destroy(e){_p(e)}};function aC(e,t,n){const i=e.segments,r=e.points,s=t.points,o=[];for(const l of i){let{start:a,end:c}=l;c=Bd(a,c,r);const u=uu(n,r[a],r[c],l.loop);if(!t.segments){o.push({source:l,target:u,start:r[a],end:r[c]});continue}const d=my(t,u);for(const f of d){const h=uu(n,s[f.start],s[f.end],f.loop),p=gy(l,r,h);for(const y of p)o.push({source:y,target:f,start:{[n]:wp(u,h,"start",Math.max)},end:{[n]:wp(u,h,"end",Math.min)}})}}return o}function uu(e,t,n,i){if(i)return;let r=t[e],s=n[e];return e==="angle"&&(r=it(r),s=it(s)),{property:e,start:r,end:s}}function cC(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,s=[];return t.segments.forEach(({start:o,end:l})=>{l=Bd(o,l,r);const a=r[o],c=r[l];i!==null?(s.push({x:a.x,y:i}),s.push({x:c.x,y:i})):n!==null&&(s.push({x:n,y:a.y}),s.push({x:n,y:c.y}))}),s}function Bd(e,t,n){for(;t>e;t--){const i=n[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function wp(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function Ay(e,t){let n=[],i=!1;return oe(e)?(i=!0,n=e):n=cC(e,t),n.length?new vn({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function bp(e){return e&&e.fill!==!1}function uC(e,t,n){let r=e[t].fill;const s=[t];let o;if(!n)return r;for(;r!==!1&&s.indexOf(r)===-1;){if(!ge(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;s.push(r),r=o.fill}return!1}function dC(e,t,n){const i=gC(e);if(U(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return ge(r)&&Math.floor(r)===r?fC(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function fC(e,t,n,i){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=i?!1:n}function hC(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:U(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function pC(e,t,n){let i;return e==="start"?i=n:e==="end"?i=t.options.reverse?t.min:t.max:U(e)?i=e.value:i=t.getBaseValue(),i}function gC(e){const t=e.options,n=t.fill;let i=B(n&&n.target,n);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function mC(e){const{scale:t,index:n,line:i}=e,r=[],s=i.segments,o=i.points,l=yC(t,n);l.push(Ay({x:null,y:t.bottom},i));for(let a=0;a<s.length;a++){const c=s[a];for(let u=c.start;u<=c.end;u++)vC(r,o[u],l)}return new vn({points:r,options:{}})}function yC(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const s=i[r];if(s.index===t)break;s.hidden||n.unshift(s.dataset)}return n}function vC(e,t,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r],{first:o,last:l,point:a}=xC(s,t,"x");if(!(!a||o&&l)){if(o)i.unshift(a);else if(e.push(a),!l)break}}e.push(...i)}function xC(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const r=i[n],s=e.segments,o=e.points;let l=!1,a=!1;for(let c=0;c<s.length;c++){const u=s[c],d=o[u.start][n],f=o[u.end][n];if(Kt(r,d,f)){l=r===d,a=r===f;break}}return{first:l,last:a,point:i}}class Fy{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,i){const{x:r,y:s,radius:o}=this;return n=n||{start:0,end:ae},t.arc(r,s,o,n.end,n.start,!0),!i.bounds}interpolate(t){const{x:n,y:i,radius:r}=this,s=t.angle;return{x:n+Math.cos(s)*r,y:i+Math.sin(s)*r,angle:s}}}function _C(e){const{chart:t,fill:n,line:i}=e;if(ge(n))return wC(t,n);if(n==="stack")return mC(e);if(n==="shape")return!0;const r=bC(e);return r instanceof Fy?r:Ay(r,i)}function wC(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function bC(e){return(e.scale||{}).getPointPositionForValue?kC(e):SC(e)}function SC(e){const{scale:t={},fill:n}=e,i=hC(n,t);if(ge(i)){const r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function kC(e){const{scale:t,fill:n}=e,i=t.options,r=t.getLabels().length,s=i.reverse?t.max:t.min,o=pC(n,t,s),l=[];if(i.grid.circular){const a=t.getPointPositionForValue(0,s);return new Fy({x:a.x,y:a.y,radius:t.getDistanceFromCenterForValue(o)})}for(let a=0;a<r;++a)l.push(t.getPointPositionForValue(a,o));return l}function Qa(e,t,n){const i=_C(t),{line:r,scale:s,axis:o}=t,l=r.options,a=l.fill,c=l.backgroundColor,{above:u=c,below:d=c}=a||{};i&&r.points.length&&(Ql(e,n),EC(e,{line:r,target:i,above:u,below:d,area:n,scale:s,axis:o}),Gl(e))}function EC(e,t){const{line:n,target:i,above:r,below:s,area:o,scale:l}=t,a=n._loop?"angle":t.axis;e.save(),a==="x"&&s!==r&&(Sp(e,i,o.top),kp(e,{line:n,target:i,color:r,scale:l,property:a}),e.restore(),e.save(),Sp(e,i,o.bottom)),kp(e,{line:n,target:i,color:s,scale:l,property:a}),e.restore()}function Sp(e,t,n){const{segments:i,points:r}=t;let s=!0,o=!1;e.beginPath();for(const l of i){const{start:a,end:c}=l,u=r[a],d=r[Bd(a,c,r)];s?(e.moveTo(u.x,u.y),s=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),o=!!t.pathSegment(e,l,{move:o}),o?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function kp(e,t){const{line:n,target:i,property:r,color:s,scale:o}=t,l=aC(n,i,r);for(const{source:a,target:c,start:u,end:d}of l){const{style:{backgroundColor:f=s}={}}=a,h=i!==!0;e.save(),e.fillStyle=f,CC(e,o,h&&uu(r,u,d)),e.beginPath();const p=!!n.pathSegment(e,a);let y;if(h){p?e.closePath():Ep(e,i,d,r);const v=!!i.pathSegment(e,c,{move:p,reverse:!0});y=p&&v,y||Ep(e,i,u,r)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function CC(e,t,n){const{top:i,bottom:r}=t.chart.chartArea,{property:s,start:o,end:l}=n||{};s==="x"&&(e.beginPath(),e.rect(o,i,l-o,r-i),e.clip())}function Ep(e,t,n,i){const r=t.interpolate(n,i);r&&e.lineTo(r.x,r.y)}var PC={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,r=[];let s,o,l,a;for(o=0;o<i;++o)s=e.getDatasetMeta(o),l=s.dataset,a=null,l&&l.options&&l instanceof vn&&(a={visible:e.isDatasetVisible(o),index:o,fill:dC(l,o,i),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:l}),s.$filler=a,r.push(a);for(o=0;o<i;++o)a=r[o],!(!a||a.fill===!1)&&(a.fill=uC(r,o,n.propagate))},beforeDraw(e,t,n){const i=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let o=r.length-1;o>=0;--o){const l=r[o].$filler;l&&(l.line.updateControlPoints(s,l.axis),i&&l.fill&&Qa(e.ctx,l,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const s=i[r].$filler;bp(s)&&Qa(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;!bp(i)||n.drawTime!=="beforeDatasetDraw"||Qa(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Cp=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},MC=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Pp extends Mt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=ne(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=ke(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:l,itemHeight:a}=Cp(i,s);let c,u;n.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,l,a)+10):(u=this.maxHeight,c=this._fitCols(o,r,l,a)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,r){const{ctx:s,maxWidth:o,options:{labels:{padding:l}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+l;let d=t;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((p,y)=>{const v=i+n/2+s.measureText(p.text).width;(y===0||c[c.length-1]+v+2*l>o)&&(d+=u,c[c.length-(y>0?0:1)]=0,h+=u,f++),a[y]={left:0,top:h,row:f,width:v,height:r},c[c.length-1]+=v+l}),d}_fitCols(t,n,i,r){const{ctx:s,maxHeight:o,options:{labels:{padding:l}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let d=l,f=0,h=0,p=0,y=0;return this.legendItems.forEach((v,g)=>{const{itemWidth:m,itemHeight:x}=OC(i,n,s,v,r);g>0&&h+x+2*l>u&&(d+=f+l,c.push({width:f,height:h}),p+=f+l,y++,f=h=0),a[g]={left:p,top:h,col:y,width:m,height:x},f=Math.max(f,m),h+=x+l}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:s}}=this,o=ji(s,this.left,this.width);if(this.isHorizontal()){let l=0,a=Ie(i,this.left+r,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,a=Ie(i,this.left+r,this.right-this.lineWidths[l])),c.top+=this.top+t+r,c.left=o.leftForLtr(o.x(a),c.width),a+=c.width+r}else{let l=0,a=Ie(i,this.top+t+r,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,a=Ie(i,this.top+t+r,this.bottom-this.columnSizes[l].height)),c.top=a,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),a+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ql(t,this),this._draw(),Gl(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:r}=this,{align:s,labels:o}=t,l=xe.color,a=ji(t.rtl,this.left,this.width),c=ke(o.font),{padding:u}=o,d=c.size,f=d/2;let h;this.drawTitle(),r.textAlign=a.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:p,boxHeight:y,itemHeight:v}=Cp(o,d),g=function(E,k,C){if(isNaN(p)||p<=0||isNaN(y)||y<0)return;r.save();const L=B(C.lineWidth,1);if(r.fillStyle=B(C.fillStyle,l),r.lineCap=B(C.lineCap,"butt"),r.lineDashOffset=B(C.lineDashOffset,0),r.lineJoin=B(C.lineJoin,"miter"),r.lineWidth=L,r.strokeStyle=B(C.strokeStyle,l),r.setLineDash(B(C.lineDash,[])),o.usePointStyle){const T={radius:y*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:L},F=a.xPlus(E,p/2),I=k+f;iy(r,T,F,I,o.pointStyleWidth&&p)}else{const T=k+Math.max((d-y)/2,0),F=a.leftForLtr(E,p),I=ri(C.borderRadius);r.beginPath(),Object.values(I).some(G=>G!==0)?hs(r,{x:F,y:T,w:p,h:y,radius:I}):r.rect(F,T,p,y),r.fill(),L!==0&&r.stroke()}r.restore()},m=function(E,k,C){fi(r,C.text,E,k+v/2,c,{strikethrough:C.hidden,textAlign:a.textAlign(C.textAlign)})},x=this.isHorizontal(),_=this._computeTitleHeight();x?h={x:Ie(s,this.left+u,this.right-i[0]),y:this.top+u+_,line:0}:h={x:this.left+u,y:Ie(s,this.top+_+u,this.bottom-n[0].height),line:0},fy(this.ctx,t.textDirection);const w=v+u;this.legendItems.forEach((E,k)=>{r.strokeStyle=E.fontColor,r.fillStyle=E.fontColor;const C=r.measureText(E.text).width,L=a.textAlign(E.textAlign||(E.textAlign=o.textAlign)),T=p+f+C;let F=h.x,I=h.y;a.setWidth(this.width),x?k>0&&F+T+u>this.right&&(I=h.y+=w,h.line++,F=h.x=Ie(s,this.left+u,this.right-i[h.line])):k>0&&I+w>this.bottom&&(F=h.x=F+n[h.line].width+u,h.line++,I=h.y=Ie(s,this.top+_+u,this.bottom-n[h.line].height));const G=a.x(F);if(g(G,I,E),F=q2(L,F+p+f,x?F+T:this.right,t.rtl),m(a.x(F),I,E),x)h.x+=T+u;else if(typeof E.text!="string"){const _e=c.lineHeight;h.y+=zy(E,_e)}else h.y+=w}),hy(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=ke(n.font),r=He(n.padding);if(!n.display)return;const s=ji(t.rtl,this.left,this.width),o=this.ctx,l=n.position,a=i.size/2,c=r.top+a;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=Ie(t.align,d,this.right-f);else{const p=this.columnSizes.reduce((y,v)=>Math.max(y,v.height),0);u=c+Ie(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const h=Ie(l,d,d+f);o.textAlign=s.textAlign(Ld(l)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,fi(o,n.text,h,u,i)}_computeTitleHeight(){const t=this.options.title,n=ke(t.font),i=He(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,r,s;if(Kt(t,this.left,this.right)&&Kt(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],Kt(t,r.left,r.left+r.width)&&Kt(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!LC(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,s=MC(r,i);r&&!s&&ne(n.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!s&&ne(n.onHover,[t,i,this],this)}else i&&ne(n.onClick,[t,i,this],this)}}function OC(e,t,n,i,r){const s=RC(i,e,t,n),o=TC(r,i,t.lineHeight);return{itemWidth:s,itemHeight:o}}function RC(e,t,n,i){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((s,o)=>s.length>o.length?s:o)),t+n.size/2+i.measureText(r).width}function TC(e,t,n){let i=e;return typeof t.text!="string"&&(i=zy(t,n)),i}function zy(e,t){const n=e.text?e.text.length+.5:0;return t*n}function LC(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var NC={id:"legend",_element:Pp,start(e,t,n){const i=e.legend=new Pp({ctx:e.ctx,options:n,chart:e});je.configure(e,i,n),je.addBox(e,i)},stop(e){je.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;je.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(a=>{const c=a.controller.getStyle(n?0:void 0),u=He(c.borderWidth);return{text:t[a.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!a.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:o&&(l||c.borderRadius),datasetIndex:a.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class jd extends Mt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const r=oe(i.text)?i.text.length:1;this._padding=He(i.padding);const s=r*ke(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:r,right:s,options:o}=this,l=o.align;let a=0,c,u,d;return this.isHorizontal()?(u=Ie(l,i,s),d=n+t,c=s-i):(o.position==="left"?(u=i+t,d=Ie(l,r,n),a=ue*-.5):(u=s-t,d=Ie(l,n,r),a=ue*.5),c=r-n),{titleX:u,titleY:d,maxWidth:c,rotation:a}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=ke(n.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:l,maxWidth:a,rotation:c}=this._drawArgs(s);fi(t,n.text,0,0,i,{color:n.color,maxWidth:a,rotation:c,textAlign:Ld(n.align),textBaseline:"middle",translation:[o,l]})}}function DC(e,t){const n=new jd({ctx:e.ctx,options:t,chart:e});je.configure(e,n,t),je.addBox(e,n),e.titleBlock=n}var AC={id:"title",_element:jd,start(e,t,n){DC(e,n)},stop(e){const t=e.titleBlock;je.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;je.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const lo=new WeakMap;var FC={id:"subtitle",start(e,t,n){const i=new jd({ctx:e.ctx,options:n,chart:e});je.configure(e,i,n),je.addBox(e,i),lo.set(e,i)},stop(e){je.removeBox(e,lo.get(e)),lo.delete(e)},beforeUpdate(e,t,n){const i=lo.get(e);je.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Cr={average(e){if(!e.length)return!1;let t,n,i=0,r=0,s=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();i+=l.x,r+=l.y,++s}}return{x:i/s,y:r/s}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,r=Number.POSITIVE_INFINITY,s,o,l;for(s=0,o=e.length;s<o;++s){const a=e[s].element;if(a&&a.hasValue()){const c=a.getCenterPoint(),u=iu(t,c);u<r&&(r=u,l=a)}}if(l){const a=l.tooltipPosition();n=a.x,i=a.y}return{x:n,y:i}}};function Rt(e,t){return t&&(oe(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function jt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` 88`)>-1?e.split(` 89`):e}function zC(e,t){const{element:n,datasetIndex:i,index:r}=t,s=e.getDatasetMeta(i).controller,{label:o,value:l}=s.getLabelAndValue(r);return{chart:e,label:o,parsed:s.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:l,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Mp(e,t){const n=e.chart.ctx,{body:i,footer:r,title:s}=e,{boxWidth:o,boxHeight:l}=t,a=ke(t.bodyFont),c=ke(t.titleFont),u=ke(t.footerFont),d=s.length,f=r.length,h=i.length,p=He(t.padding);let y=p.height,v=0,g=i.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(y+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const _=t.displayColors?Math.max(l,a.lineHeight):a.lineHeight;y+=h*_+(g-h)*a.lineHeight+(g-1)*t.bodySpacing}f&&(y+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let m=0;const x=function(_){v=Math.max(v,n.measureText(_).width+m)};return n.save(),n.font=c.string,Z(e.title,x),n.font=a.string,Z(e.beforeBody.concat(e.afterBody),x),m=t.displayColors?o+2+t.boxPadding:0,Z(i,_=>{Z(_.before,x),Z(_.lines,x),Z(_.after,x)}),m=0,n.font=u.string,Z(e.footer,x),n.restore(),v+=p.width,{width:v,height:y}}function IC(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function BC(e,t,n,i){const{x:r,width:s}=i,o=n.caretSize+n.caretPadding;if(e==="left"&&r+s+o>t.width||e==="right"&&r-s-o<0)return!0}function jC(e,t,n,i){const{x:r,width:s}=n,{width:o,chartArea:{left:l,right:a}}=e;let c="center";return i==="center"?c=r<=(l+a)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),BC(c,e,t,n)&&(c="center"),c}function Op(e,t,n){const i=n.yAlign||t.yAlign||IC(e,n);return{xAlign:n.xAlign||t.xAlign||jC(e,t,n,i),yAlign:i}}function $C(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function HC(e,t,n){let{y:i,height:r}=e;return t==="top"?i+=n:t==="bottom"?i-=r+n:i-=r/2,i}function Rp(e,t,n,i){const{caretSize:r,caretPadding:s,cornerRadius:o}=e,{xAlign:l,yAlign:a}=n,c=r+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=ri(o);let p=$C(t,l);const y=HC(t,a,c);return a==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(u,f)+r:l==="right"&&(p+=Math.max(d,h)+r),{x:Re(p,0,i.width-t.width),y:Re(y,0,i.height-t.height)}}function ao(e,t,n){const i=He(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function Tp(e){return Rt([],jt(e))}function WC(e,t,n){return $n(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Lp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Iy={beforeTitle:It,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:It,beforeBody:It,beforeLabel:It,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Q(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:It,afterBody:It,beforeFooter:It,footer:It,afterFooter:It};function Ke(e,t,n,i){const r=e[t].call(n,i);return typeof r>"u"?Iy[t].call(n,i):r}class du extends Mt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,s=new yy(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=WC(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,r=Ke(i,"beforeTitle",this,t),s=Ke(i,"title",this,t),o=Ke(i,"afterTitle",this,t);let l=[];return l=Rt(l,jt(r)),l=Rt(l,jt(s)),l=Rt(l,jt(o)),l}getBeforeBody(t,n){return Tp(Ke(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,r=[];return Z(t,s=>{const o={before:[],lines:[],after:[]},l=Lp(i,s);Rt(o.before,jt(Ke(l,"beforeLabel",this,s))),Rt(o.lines,Ke(l,"label",this,s)),Rt(o.after,jt(Ke(l,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(t,n){return Tp(Ke(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,r=Ke(i,"beforeFooter",this,t),s=Ke(i,"footer",this,t),o=Ke(i,"afterFooter",this,t);let l=[];return l=Rt(l,jt(r)),l=Rt(l,jt(s)),l=Rt(l,jt(o)),l}_createItems(t){const n=this._active,i=this.chart.data,r=[],s=[],o=[];let l=[],a,c;for(a=0,c=n.length;a<c;++a)l.push(zC(this.chart,n[a]));return t.filter&&(l=l.filter((u,d,f)=>t.filter(u,d,f,i))),t.itemSort&&(l=l.sort((u,d)=>t.itemSort(u,d,i))),Z(l,u=>{const d=Lp(t.callbacks,u);r.push(Ke(d,"labelColor",this,u)),s.push(Ke(d,"labelPointStyle",this,u)),o.push(Ke(d,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,n){const i=this.options.setContext(this.getContext()),r=this._active;let s,o=[];if(!r.length)this.opacity!==0&&(s={opacity:0}
vendor: 11,669 bytes, line 89
89);else{const l=Cr[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const a=this._size=Mp(this,i),c=Object.assign({},l,a),u=Op(this.chart,i,c),d=Rp(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:a.width,height:a.height,caretX:l.x,caretY:l.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,r){const s=this.getCaretPosition(t,i,r);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,i){const{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:l}=i,{topLeft:a,topRight:c,bottomLeft:u,bottomRight:d}=ri(l),{x:f,y:h}=t,{width:p,height:y}=n;let v,g,m,x,_,w;return s==="center"?(_=h+y/2,r==="left"?(v=f,g=v-o,x=_+o,w=_-o):(v=f+p,g=v+o,x=_-o,w=_+o),m=v):(r==="left"?g=f+Math.max(a,u)+o:r==="right"?g=f+p-Math.max(c,d)-o:g=this.caretX,s==="top"?(x=h,_=x-o,v=g-o,m=g+o):(x=h+y,_=x+o,v=g+o,m=g-o),w=x),{x1:v,x2:g,x3:m,y1:x,y2:_,y3:w}}drawTitle(t,n,i){const r=this.title,s=r.length;let o,l,a;if(s){const c=ji(i.rtl,this.x,this.width);for(t.x=ao(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",o=ke(i.titleFont),l=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,a=0;a<s;++a)n.fillText(r[a],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+l,a+1===s&&(t.y+=i.titleMarginBottom-l)}}_drawColorBox(t,n,i,r,s){const o=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:a,boxWidth:c,boxPadding:u}=s,d=ke(s.bodyFont),f=ao(this,"left",s),h=r.x(f),p=a<d.lineHeight?(d.lineHeight-a)/2:0,y=n.y+p;if(s.usePointStyle){const v={radius:Math.min(c,a)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},g=r.leftForLtr(h,c)+c/2,m=y+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,su(t,v,g,m),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,su(t,v,g,m)}else{t.lineWidth=U(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const v=r.leftForLtr(h,c-u),g=r.leftForLtr(r.xPlus(h,1),c-u-2),m=ri(o.borderRadius);Object.values(m).some(x=>x!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,hs(t,{x:v,y,w:c,h:a,radius:m}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),hs(t,{x:g,y:y+1,w:c-2,h:a-2,radius:m}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,y,c,a),t.strokeRect(v,y,c,a),t.fillStyle=o.backgroundColor,t.fillRect(g,y+1,c-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:l,boxHeight:a,boxWidth:c,boxPadding:u}=i,d=ke(i.bodyFont);let f=d.lineHeight,h=0;const p=ji(i.rtl,this.x,this.width),y=function(C){n.fillText(C,p.x(t.x+h),t.y+f/2),t.y+=f+s},v=p.textAlign(o);let g,m,x,_,w,E,k;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=ao(this,v,i),n.fillStyle=i.bodyColor,Z(this.beforeBody,y),h=l&&v!=="right"?o==="center"?c/2+u:c+2+u:0,_=0,E=r.length;_<E;++_){for(g=r[_],m=this.labelTextColors[_],n.fillStyle=m,Z(g.before,y),x=g.lines,l&&x.length&&(this._drawColorBox(n,t,_,p,i),f=Math.max(d.lineHeight,a)),w=0,k=x.length;w<k;++w)y(x[w]),f=d.lineHeight;Z(g.after,y)}h=0,f=d.lineHeight,Z(this.afterBody,y),t.y-=s}drawFooter(t,n,i){const r=this.footer,s=r.length;let o,l;if(s){const a=ji(i.rtl,this.x,this.width);for(t.x=ao(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=a.textAlign(i.footerAlign),n.textBaseline="middle",o=ke(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,l=0;l<s;++l)n.fillText(r[l],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,n,i,r){const{xAlign:s,yAlign:o}=this,{x:l,y:a}=t,{width:c,height:u}=i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=ri(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(l+d,a),o==="top"&&this.drawCaret(t,n,i,r),n.lineTo(l+c-f,a),n.quadraticCurveTo(l+c,a,l+c,a+f),o==="center"&&s==="right"&&this.drawCaret(t,n,i,r),n.lineTo(l+c,a+u-p),n.quadraticCurveTo(l+c,a+u,l+c-p,a+u),o==="bottom"&&this.drawCaret(t,n,i,r),n.lineTo(l+h,a+u),n.quadraticCurveTo(l,a+u,l,a+u-h),o==="center"&&s==="left"&&this.drawCaret(t,n,i,r),n.lineTo(l,a+d),n.quadraticCurveTo(l,a,l+d,a),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){const o=Cr[t.position].call(this,this._active,this._eventPosition);if(!o)return;const l=this._size=Mp(this,t),a=Object.assign({},o,this._size),c=Op(n,t,a),u=Rp(t,a,c,n);(r._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=He(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,r,n),fy(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),hy(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,r=t.map(({datasetIndex:l,index:a})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[a],index:a}}),s=!fl(i,r),o=this._positionChanged(r,n);(s||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,i),l=this._positionChanged(o,t),a=n||!fl(o,s)||l;return a&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),a}_getActiveElements(t,n,i,r){const s=this.options;if(t.type==="mouseout")return[];if(!r)return n;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:i,caretY:r,options:s}=this,o=Cr[s.position].call(this,t,n);return o!==!1&&(i!==o.x||r!==o.y)}}D(du,"positioners",Cr);var VC={id:"tooltip",_element:du,positioners:Cr,afterInit(e,t,n){n&&(e.tooltip=new du({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Iy},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"]},UC=Object.freeze({__proto__:null,Colors:iC,Decimation:lC,Filler:PC,Legend:NC,SubTitle:FC,Title:AC,Tooltip:VC});const YC=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function KC(e,t,n,i){const r=e.indexOf(t);if(r===-1)return YC(e,t,n,i);const s=e.lastIndexOf(t);return r!==s?n:r}const XC=(e,t)=>e===null?null:Re(Math.round(e),0,t);function Np(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class fu extends yi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:r,label:s}of n)i[r]===s&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Q(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:KC(i,t,B(n,t),this._addedLabels),XC(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,r=[];let s=this.getLabels();s=t===0&&n===s.length-1?s:s.slice(t,n+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=n;o++)r.push({value:o});return r}getLabelForValue(t){return Np.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}D(fu,"id","category"),D(fu,"defaults",{ticks:{callback:Np}});function QC(e,t){const n=[],{bounds:r,step:s,min:o,max:l,precision:a,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,h=s||1,p=u-1,{min:y,max:v}=t,g=!Q(o),m=!Q(l),x=!Q(c),_=(v-y)/(d+1);let w=Oh((v-y)/p/h)*h,E,k,C,L;if(w<1e-14&&!g&&!m)return[{value:y},{value:v}];L=Math.ceil(v/w)-Math.floor(y/w),L>p&&(w=Oh(L*w/p/h)*h),Q(a)||(E=Math.pow(10,a),w=Math.ceil(w*E)/E),r==="ticks"?(k=Math.floor(y/w)*w,C=Math.ceil(v/w)*w):(k=y,C=v),g&&m&&s&&V2((l-o)/s,w/1e3)?(L=Math.round(Math.min((l-o)/w,u)),w=(l-o)/L,k=o,C=l):x?(k=g?o:k,C=m?l:C,L=c-1,w=(C-k)/L):(L=(C-k)/w,Ir(L,Math.round(L),w/1e3)?L=Math.round(L):L=Math.ceil(L));const T=Math.max(Rh(w),Rh(k));E=Math.pow(10,Q(a)?T:a),k=Math.round(k*E)/E,C=Math.round(C*E)/E;let F=0;for(g&&(f&&k!==o?(n.push({value:o}),k<o&&F++,Ir(Math.round((k+F*w)*E)/E,o,Dp(o,_,e))&&F++):k<o&&F++);F<L;++F)n.push({value:Math.round((k+F*w)*E)/E});return m&&f&&C!==l?n.length&&Ir(n[n.length-1].value,l,Dp(l,_,e))?n[n.length-1].value=l:n.push({value:l}):(!m||C===l)&&n.push({value:C}),n}function Dp(e,t,{horizontal:n,minRotation:i}){const r=St(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class _l extends yi{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 Q(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:s}=this;const o=a=>r=n?r:a,l=a=>
vendor: 17,264 bytes, line 89
89s=i?s:a;if(t){const a=zt(r),c=zt(s);a<0&&c<0?l(0):a>0&&c>0&&o(0)}if(r===s){let a=s===0?1:Math.abs(s*.05);l(s+a),t||o(r-a)}this.min=r,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,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},s=this._range||this,o=QC(r,s);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(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-n)/Math.max(t.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Os(t,this.chart.options.locale,this.options.ticks.format)}}class hu extends _l{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ge(t)?t:0,this.max=ge(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=St(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}D(hu,"id","linear"),D(hu,"defaults",{ticks:{callback:Xl.formatters.numeric}});const gs=e=>Math.floor(yn(e)),Kn=(e,t)=>Math.pow(10,gs(e)+t);function Ap(e){return e/Math.pow(10,gs(e))===1}function Fp(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function GC(e,t){const n=t-e;let i=gs(n);for(;Fp(e,t,i)>10;)i++;for(;Fp(e,t,i)<10;)i--;return Math.min(i,gs(e))}function qC(e,{min:t,max:n}){t=tt(e.min,t);const i=[],r=gs(t);let s=GC(t,n),o=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),a=r>s?Math.pow(10,r):0,c=Math.round((t-a)*o)/o,u=Math.floor((t-a)/l/10)*l*10;let d=Math.floor((c-u)/Math.pow(10,s)),f=tt(e.min,Math.round((a+u+d*Math.pow(10,s))*o)/o);for(;f<n;)i.push({value:f,major:Ap(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,o=s>=0?1:o),f=Math.round((a+u+d*Math.pow(10,s))*o)/o;const h=tt(e.max,f);return i.push({value:h,major:Ap(h),significand:d}),i}class pu extends yi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=_l.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return ge(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ge(t)?Math.max(0,t):null,this.max=ge(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ge(this._userMin)&&(this.min=t===Kn(this.min,0)?Kn(this.min,-1):Kn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const s=l=>i=t?i:l,o=l=>r=n?r:l;i===r&&(i<=0?(s(1),o(10)):(s(Kn(i,-1)),o(Kn(r,1)))),i<=0&&s(Kn(r,-1)),r<=0&&o(Kn(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=qC(n,this);return t.bounds==="ticks"&&K0(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":Os(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=yn(t),this._valueRange=yn(this.max)-yn(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(yn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}D(pu,"id","logarithmic"),D(pu,"defaults",{ticks:{callback:Xl.formatters.logarithmic,major:{enabled:!0}}});function gu(e){const t=e.ticks;if(t.display&&e.display){const n=He(t.backdropPadding);return B(t.font&&t.font.size,xe.font.size)+n.height}return 0}function JC(e,t,n){return n=oe(n)?n:[n],{w:lS(e,t.string,n),h:n.length*t.lineHeight}}function zp(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function ZC(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],s=e._pointLabels.length,o=e.options.pointLabels,l=o.centerPointLabels?ue/s:0;for(let a=0;a<s;a++){const c=o.setContext(e.getPointLabelContext(a));r[a]=c.padding;const u=e.getPointPosition(a,e.drawingArea+r[a],l),d=ke(c.font),f=JC(e.ctx,d,e._pointLabels[a]);i[a]=f;const h=it(e.getIndexAngle(a)+l),p=Math.round(Rd(h)),y=zp(p,u.x,f.w,0,180),v=zp(p,u.y,f.h,90,270);eP(n,t,h,y,v)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=tP(e,i,r)}function eP(e,t,n,i,r){const s=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let l=0,a=0;i.start<t.l?(l=(t.l-i.start)/s,e.l=Math.min(e.l,t.l-l)):i.end>t.r&&(l=(i.end-t.r)/s,e.r=Math.max(e.r,t.r+l)),r.start<t.t?(a=(t.t-r.start)/o,e.t=Math.min(e.t,t.t-a)):r.end>t.b&&(a=(r.end-t.b)/o,e.b=Math.max(e.b,t.b+a))}function tP(e,t,n){const i=[],r=e._pointLabels.length,s=e.options,o=gu(s)/2,l=e.drawingArea,a=s.pointLabels.centerPointLabels?ue/r:0;for(let c=0;c<r;c++){const u=e.getPointPosition(c,l+o+n[c],a),d=Math.round(Rd(it(u.angle+me))),f=t[c],h=rP(u.y,f.h,d),p=nP(d),y=iP(u.x,f.w,p);i.push({x:u.x,y:h,textAlign:p,left:y,top:h,right:y+f.w,bottom:h+f.h})}return i}function nP(e){return e===0||e===180?"center":e<180?"left":"right"}function iP(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function rP(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function sP(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const s=i.setContext(e.getPointLabelContext(r)),o=ke(s.font),{x:l,y:a,textAlign:c,left:u,top:d,right:f,bottom:h}=e._pointLabelItems[r],{backdropColor:p}=s;if(!Q(p)){const y=ri(s.borderRadius),v=He(s.backdropPadding);n.fillStyle=p;const g=u-v.left,m=d-v.top,x=f-u+v.width,_=h-d+v.height;Object.values(y).some(w=>w!==0)?(n.beginPath(),hs(n,{x:g,y:m,w:x,h:_,radius:y}),n.fill()):n.fillRect(g,m,x,_)}fi(n,e._pointLabels[r],l,a+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}function By(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,ae);else{let s=e.getPointPosition(0,t);r.moveTo(s.x,s.y);for(let o=1;o<i;o++)s=e.getPointPosition(o,t),r.lineTo(s.x,s.y)}}function oP(e,t,n,i,r){const s=e.ctx,o=t.circular,{color:l,lineWidth:a}=t;!o&&!i||!l||!a||n<0||(s.save(),s.strokeStyle=l,s.lineWidth=a,s.setLineDash(r.dash),s.lineDashOffset=r.dashOffset,s.beginPath(),By(e,n,o,i),s.closePath(),s.stroke(),s.restore())}function lP(e,t,n){return $n(e,{label:n,index:t,type:"pointLabel"})}class Pr extends _l{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=He(gu(this.options)/2),n=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ge(t)&&!isNaN(t)?t:0,this.max=ge(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/gu(this.options))}generateTickLabels(t){_l.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,i)=>{const r=ne(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?ZC(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,r))}getIndexAngle(t){const n=ae/(this._pointLabels.length||1),i=this.options.startAngle||0;return it(t*n+St(i))}getDistanceFromCenterForValue(t){if(Q(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Q(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const i=n[t];return lP(this.getContext(),t,i)}}getPointPosition(t,n,i=0){const r=this.getIndexAngle(t)-me+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:i,right:r,bottom:s}=this._pointLabelItems[t];return{left:n,top:i,right:r,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),By(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:i,grid:r,border:s}=n,o=this._pointLabels.length;let l,a,c;if(n.pointLabels.display&&sP(this,o),r.display&&this.ticks.forEach((u,d)=>{if(d!==0){a=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),h=r.setContext(f),p=s.setContext(f);oP(this,h,a,o,p)}}),i.display){for(t.save(),l=o-1;l>=0;l--){const u=i.setContext(this.getPointLabelContext(l)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,a=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,a)=>{if(a===0&&!n.reverse)return;const c=i.setContext(this.getContext(a)),u=ke(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[a].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const d=He(c.backdropPadding);t.fillRect(-o/2-d.left,-s-u.size/2-d.top,o+d.width,u.size+d.height)}fi(t,l.label,0,-s,u,{color:c.color})}),t.restore()}drawTitle(){}}D(Pr,"id","radialLinear"),D(Pr,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Xl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),D(Pr,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),D(Pr,"descriptors",{angleLines:{_fallback:"grid"}});const Zl={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}},Qe=Object.keys(Zl);function aP(e,t){return e-t}function Ip(e,t){if(Q(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:s}=e._parseOpts;let o=t;return typeof i=="function"&&(o=i(o)),ge(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(r&&(o=r==="week"&&(Gi(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,r)),+o)}function Bp(e,t,n,i){const r=Qe.length;for(let s=Qe.indexOf(e);s<r-1;++s){const o=Zl[Qe[s]],l=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(l*o.size))<=i)return Qe[s]}return Qe[r-1]}function cP(e,t,n,i,r){for(let s=Qe.length-1;s>=Qe.indexOf(n);s--){const o=Qe[s];if(Zl[o].common&&e._adapter.diff(r,i,o)>=t-1)return o}return Qe[n?Qe.indexOf(n):0]}function uP(e){for(let t=Qe.indexOf(e)+1,n=Qe.length;t<n;++t)if(Zl[Qe[t]].common)return Qe[t]}function jp(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:r}=Td(n,t),s=n[i]>=t?n[i]:n[r];e[s]=!0}}function dP(e,t,n,i){const r=e._adapter,s=+r.startOf(t[0].value,i),o=t[t.length-1].value;let l,a;for(l=s;l<=o;l=+r.add(l,1,i))a=n[l],a>=0&&(t[a].major=!0);return t}function $p(e,t,n){const i=[],r={},s=t.length;let o,l;for(o=0;o<s;++o)l=t[o],r[l]=o,i.push({value:l,major:!1});return s===0||!n?i:dP(e,i,r,n)}class ms extends yi{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),r=this._adapter=new Sk._date(t.adapters.date);r.init(n),zr(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Ip(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:r,max:s,minDefined:o,maxDefined:l}=this.getUserBounds();function a(c){!o&&!isNaN(c.min)&&(r=Math.min(r,c.min)),!l&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!l)&&(a(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&a(this.getMinMax(!1))),r=ge(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),s=ge(s)&&!isNaN(s)?s:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,s-1),this.max=Math.max(r+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const s=this.min,o=this.max,l=X2(r,s,o);return this._unit=n.unit||(i.autoSkip?Bp(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):cP(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:uP(this._unit),this.initOffsets(r),t.reverse&&l.reverse(),$p(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,r,s;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?i=s:i=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Re(n,0,o),i=Re(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||Bp(s.minUnit,n,i,this._getLabelCapacity(n)),l=B(r.ticks.stepSize,1),a=o==="week"?s.isoWeekday:!1,c=Gi(a)||a===!0,u={};let d=n,f,h;if(c&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,c?"day":o),t.diff(i,n,o)>1e5*l)throw new Error(n+" and "+i+" are too far apart with stepSize of "+l+" "+o);const p=r.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<i;f=+t.add(f,l,o),h++)jp(u,f,p);return(f===i||r.bounds==="ticks"||h===1)&&jp(u,f,p),Object.keys(u).sort((y,v)=>y-v).map(y=>+y)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,s=this._unit,o=n||r[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,i,r){const s=this.options,o=s.ticks.callback;if(o)return ne(o,[t,n,i],this);const l=s.time.displayFormats,a=this._unit,c=this._majorUnit,u=a&&l[a],d=c&&l[c],f=i[n],h=c&&d&&f&&f.major;return this._adapter.format(t,r||(h?d:u))}generateTickLabels(t){let n,i,r;for(n=0,i=t.length;n<i;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,r=St(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(r),o=Math.sin(r),l=this._resolveTickFontOptions(0).size;return{w:i*s+l*o,h:i*o+l*s}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,s=this._tick
89FormatFunction(t,0,$p(this,[t],this._majorUnit),r),o=this._getLabelSize(s),l=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)t.push(Ip(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return G0(t.sort(aP))}}D(ms,"id","time"),D(ms,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function co(e,t,n){let i=0,r=e.length-1,s,o,l,a;n?(t>=e[i].pos&&t<=e[r].pos&&({lo:i,hi:r}=Xt(e,"pos",t)),{pos:s,time:l}=e[i],{pos:o,time:a}=e[r]):(t>=e[i].time&&t<=e[r].time&&({lo:i,hi:r}=Xt(e,"time",t)),{time:s,pos:l}=e[i],{time:o,pos:a}=e[r]);const c=o-s;return c?l+(a-l)*(t-s)/c:l}class mu extends ms{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=co(n,this.min),this._tableRange=co(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,r=[],s=[];let o,l,a,c,u;for(o=0,l=t.length;o<l;++o)c=t[o],c>=n&&c<=i&&r.push(c);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,l=r.length;o<l;++o)u=r[o+1],a=r[o-1],c=r[o],Math.round((u+a)/2)!==c&&s.push({time:c,pos:o/(l-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(co(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return co(this._table,i*this._tableRange+this._minPos,!0)}}D(mu,"id","timeseries"),D(mu,"defaults",ms.defaults);var fP=Object.freeze({__proto__:null,CategoryScale:fu,LinearScale:hu,LogarithmicScale:pu,RadialLinearScale:Pr,TimeScale:ms,TimeSeriesScale:mu});const hP=[bk,qE,UC,fP],jy="label";function Hp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pP(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function $y(e,t){e.labels=t}function Hy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jy;const i=[];e.datasets=t.map(r=>{const s=e.datasets.find(o=>o[n]===r[n]);return!s||!r.data||i.includes(s)?{...r}:(i.push(s),Object.assign(s,r),s)})}function gP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jy;const n={labels:[],datasets:[]};return $y(n,e.labels),Hy(n,e.datasets,t),n}function mP(e,t){const{height:n=150,width:i=300,redraw:r=!1,datasetIdKey:s,type:o,data:l,options:a,plugins:c=[],fallbackContent:u,updateMode:d,...f}=e,h=S.useRef(null),p=S.useRef(),y=()=>{h.current&&(p.current=new Jl(h.current,{type:o,data:gP(l,s),options:a&&{...a},plugins:c}),Hp(t,p.current))},v=()=>{Hp(t,null),p.current&&(p.current.destroy(),p.current=null)};return S.useEffect(()=>{!r&&p.current&&a&&pP(p.current,a)},[r,a]),S.useEffect(()=>{!r&&p.current&&$y(p.current.config.data,l.labels)},[r,l.labels]),S.useEffect(()=>{!r&&p.current&&l.datasets&&Hy(p.current.config.data,l.datasets,s)},[r,l.datasets]),S.useEffect(()=>{p.current&&(r?(v(),setTimeout(y)):p.current.update(d))},[r,a,l.labels,l.datasets,d]),S.useEffect(()=>{p.current&&(v(),setTimeout(y))},[o]),S.useEffect(()=>(y(),()=>v()),[]),ve.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:i},f),u)}const yP=S.forwardRef(mP);function vP(e,t){return Jl.register(t),S.forwardRef((n,i)=>ve.createElement(yP,Object.assign({},n,{ref:i,type:e})))}const xP=vP("line",$r);Jl.register(...hP);const _P=({chartDarta:e,options:t})=>(console.log("linechart data",e),b(xP,{data:e,options:t})),wP=()=>{gi();const e=" hsla(213, 55%, 19%, 1)",[t,n]=S.useState({labels:["8am","9am","10am","11am","12","1pm","2pm","3pm","4pm","5pm","6pm","7pm"],datasets:[{label:"Forecast day",fill:!0,backgroundColor:r=>{const o=r.chart.ctx.createLinearGradient(0,0,0,510);return o.addColorStop(0,"hsla(213, 55%, 19%, 1)"),o.addColorStop(1,"hsla(192, 17%, 94%, 1)"),o},borderColor:e,borderWidth:1,data:[65,59,80,81,56,65,59,80,81,56,40,56]}]});return b("div",{className:"w-fit max-w-screen-xl",children:b(_P,{chartDarta:t,options:{responsive:!0,datasetStrokeWidth:3,pointDotStrokeWidth:4,tooltipFillColor:"#4C9FCe",tooltipFontStyle:"medium",tooltipTemplate:"<%if (label){%><%=label + ' hod' %>: <%}%><%= value + '°C' %>",scaleLabel:"<%= Number(value).toFixed(0).replace('.', ',') + '°C'%>",scales:{x:{grid:{display:!1}},y:{grid:{display:!1}}}}})})};function bP(){return O(Fw,{children:[b(r2,{}),O("div",{className:"h-screen mx-auto flex flex-col ml-28 pl-28 lg:pl-48",children:[b(l2,{}),b("main",{className:"flex-grow",children:b("div",{className:"max-w-2xl lg:max-w-4xl xl:max-w-5xl",children:O(f_,{children:[b(wi,{exact:!0,path:"/",element:b(i2,{})}),b(wi,{path:"/recent-searches",element:b(u2,{})}),b(wi,{path:"/favorites",element:b(c2,{})}),b(wi,{path:"/settings",element:b(d2,{})}),b(wi,{path:"*",element:b(a2,{})})]})})}),b("div",{className:"fix bottom-0",children:b(wP,{})})]})]})}qa.createRoot(document.getElementById("root")).render(b(ve.StrictMode,{children:b(y_,{children:b(bP,{})})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.